This commit is contained in:
2024-03-22 12:11:46 +03:00
parent e7b30fb686
commit 8a813abfcb
9 changed files with 13 additions and 14 deletions

View File

@@ -24,7 +24,7 @@ func (b BService) Disable(ctx context.Context, req DisableRequest) (bool, error)
return false, validators.ValidationErrors(validators.GetErrors(err))
}
url := "/cloudapi/bservice/delete"
url := "/cloudapi/bservice/disable"
res, err := b.client.DecortApiCall(ctx, http.MethodPost, url, req)
if err != nil {

View File

@@ -20,7 +20,7 @@ type DeleteRequest struct {
// Whether to completely delete the disk, works only with non attached disks
// Required: false
Permanently bool `url:"permanently,omitempty" json:"permanently,omitempty"`
Permanently bool `url:"permanently" json:"permanently"`
// Reason to delete
// Required: false

View File

@@ -20,7 +20,7 @@ type DisksDeleteRequest struct {
// Whether to completely delete the disks, works only with non attached disks
// Required: false
Permanently bool `url:"permanently,omitempty" json:"permanently,omitempty"`
Permanently bool `url:"permanently" json:"permanently"`
}
// DeleteDisks deletes multiple disks permanently

View File

@@ -16,8 +16,8 @@ type DeleteRequest struct {
// True if cluster is destroyed permanently.
// Otherwise it can be restored from Recycle Bin
// Required: true
Permanently bool `url:"permanently" json:"permanently" validate:"required"`
// Required: false
Permanently bool `url:"permanently" json:"permanently"`
}
// Delete deletes kubernetes cluster