DeletedWorkspace returns a single workspace that was deleted.
(ctx context.Context, id uuid.UUID)
| 161 | |
| 162 | // DeletedWorkspace returns a single workspace that was deleted. |
| 163 | func (c *Client) DeletedWorkspace(ctx context.Context, id uuid.UUID) (Workspace, error) { |
| 164 | o := WorkspaceOptions{ |
| 165 | IncludeDeleted: true, |
| 166 | } |
| 167 | return c.getWorkspace(ctx, id, o.asRequestOption()) |
| 168 | } |
| 169 | |
| 170 | func (c *Client) getWorkspace(ctx context.Context, id uuid.UUID, opts ...RequestOption) (Workspace, error) { |
| 171 | res, err := c.Request(ctx, http.MethodGet, fmt.Sprintf("/api/v2/workspaces/%s", id), nil, opts...) |