Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1f8682a

Browse files
committed
feat: add DeleteWorkspaceACL method to client
1 parentf59dd06 commit1f8682a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

‎codersdk/workspaces.go‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,18 @@ func (c *Client) UpdateWorkspaceACL(ctx context.Context, workspaceID uuid.UUID,
722722
returnnil
723723
}
724724

725+
func (c*Client)DeleteWorkspaceACL(ctx context.Context,workspaceID uuid.UUID)error {
726+
res,err:=c.Request(ctx,http.MethodDelete,fmt.Sprintf("/api/v2/workspaces/%s/acl",workspaceID),nil)
727+
iferr!=nil {
728+
returnerr
729+
}
730+
deferres.Body.Close()
731+
ifres.StatusCode!=http.StatusNoContent {
732+
returnReadBodyAsError(res)
733+
}
734+
returnnil
735+
}
736+
725737
// ExternalAgentCredentials contains the credentials needed for an external agent to connect to Coder.
726738
typeExternalAgentCredentialsstruct {
727739
Commandstring`json:"command"`

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp