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

Commit3b4664c

Browse files
committed
fix: codersdk: add documentation for UpdateWorkspaceAutostartRequest / UpdateWorkspaceAutostart
1 parentff80571 commit3b4664c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎codersdk/workspaces.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,13 @@ func (c *Client) WorkspaceBuildByName(ctx context.Context, workspace uuid.UUID,
9090
returnworkspaceBuild,json.NewDecoder(res.Body).Decode(&workspaceBuild)
9191
}
9292

93+
// UpdateWorkspaceAutostartRequest is a request to update a workspace's autostart schedule.
9394
typeUpdateWorkspaceAutostartRequeststruct {
9495
Schedulestring
9596
}
9697

98+
// UpdateWorkspaceAutostart sets the autostart schedule for workspace by id.
99+
// If the provided schedule is empty, autostart is disabled for the workspace.
97100
func (c*Client)UpdateWorkspaceAutostart(ctx context.Context,id uuid.UUID,reqUpdateWorkspaceAutostartRequest)error {
98101
path:=fmt.Sprintf("/api/v2/workspaces/%s/autostart",id.String())
99102
res,err:=c.request(ctx,http.MethodPut,path,req)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp