(instanceID string)
| 259 | } |
| 260 | |
| 261 | func (c *Client) DeleteInstance(instanceID string) (*DeleteInstanceResponse, error) { |
| 262 | if err := c.doRequest(context.Background(), "POST", fmt.Sprintf("/v1/instances/%s/delete", instanceID), nil, nil); err != nil { |
| 263 | return nil, err |
| 264 | } |
| 265 | return &DeleteInstanceResponse{Message: "Instance deleted successfully", Success: true}, nil |
| 266 | } |
| 267 | |
| 268 | // ModifyInstance modifies an existing instance configuration. |
| 269 | func (c *Client) ModifyInstance(instanceID string, req InstanceModifyRequest) (*InstanceModifyResponse, error) { |
no test coverage detected