mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: mark PatchAppStatus as deprecated in agentsdk (#22355)
relates to #21335 Marks the sdk method that directly calls Coderd to patch App status as deprecated in favor of the Agent API.
This commit is contained in:
@@ -584,6 +584,8 @@ type PatchAppStatus struct {
|
||||
NeedsUserAttention bool `json:"needs_user_attention"`
|
||||
}
|
||||
|
||||
// PatchAppStatus updates the status of a workspace app.
|
||||
// Deprecated: use the DRPCAgentClient.UpdateAppStatus instead
|
||||
func (c *Client) PatchAppStatus(ctx context.Context, req PatchAppStatus) error {
|
||||
res, err := c.SDK.Request(ctx, http.MethodPatch, "/api/v2/workspaceagents/me/app-status", req)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user