This commit is contained in:
2024-03-14 14:52:56 +03:00
parent 55027a1605
commit d137c7507a
50 changed files with 1965 additions and 720 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/disable"
url := "/cloudapi/bservice/delete"
res, err := b.client.DecortApiCall(ctx, http.MethodPost, url, req)
if err != nil {

View File

@@ -93,7 +93,7 @@ type RecordBasicService struct {
// Main information about Compute
type ItemCompute struct {
// Account ID
AccountID uint64
AccountID uint64 `json:"accountId"`
// Architecture
Architecture string `json:"arch"`
@@ -168,6 +168,9 @@ type ItemSnapshot struct {
Valid bool `json:"valid"`
}
// List of Snapshot
type ListSnapshots []ItemSnapshot
// List of Snapshots
type ListInfoSnapshots struct {
// Data
@@ -177,9 +180,6 @@ type ListInfoSnapshots struct {
EntryCount uint64 `json:"entryCount"`
}
// List of Snapshots inside RecordBasicService
type ListSnapshots []ItemSnapshot
// Main information about Group
type RecordGroup struct {
// Account ID