Compare commits

..

4 Commits

Author SHA1 Message Date
8a813abfcb v1.6.14 2024-03-22 12:11:46 +03:00
e7b30fb686 v1.6.12 2024-03-18 15:18:17 +03:00
cf11855fa3 v1.6.11 2024-01-22 14:08:06 +03:00
f111787976 v1.6.10 2023-12-14 17:52:12 +03:00
10 changed files with 14 additions and 12 deletions

View File

@@ -1,4 +1,5 @@
## Version 1.6.13 ## Version 1.6.14
### Bugfix ### Bugfix
- Fix url for Disable method in cloudapi/bservice - Delete tag required from DeleteRequest field Permanently in cloudapi/k8s
- Delete tag omitempty from DeleteDisksRequest and DisksDeleteRequest field Permanently in cloudapi/disks and cloudbroker/disks

View File

@@ -159,7 +159,7 @@ func (dc *DecortClient) do(req *http.Request, ctype string) ([]byte, error) {
return nil, err return nil, err
} }
defer resp.Body.Close() defer resp.Body.Close()
// handle successful request // handle successful request
respBytes, _ := io.ReadAll(resp.Body) respBytes, _ := io.ReadAll(resp.Body)
if resp.StatusCode == 200 { if resp.StatusCode == 200 {

View File

@@ -156,10 +156,11 @@ func (ldc *LegacyDecortClient) do(req *http.Request, ctype string) ([]byte, erro
return nil, err return nil, err
} }
defer resp.Body.Close() defer resp.Body.Close()
// handle successful request // handle successful request
respBytes, err := io.ReadAll(resp.Body) respBytes, err := io.ReadAll(resp.Body)
if err != nil { if err!= nil {
return nil, err return nil, err
} }
if resp.StatusCode == 200 { if resp.StatusCode == 200 {

View File

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

View File

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

View File

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

View File

@@ -43,4 +43,4 @@ func (lpd ListPCIDevices) IDs() []uint64 {
res = append(res, pd.ID) res = append(res, pd.ID)
} }
return res return res
} }

View File

@@ -721,7 +721,7 @@ type RecordCompute struct {
} }
// Information about of disk IDs // Information about of disk IDs
type ListInfoDisks []InfoDisk type ListInfoDisks []InfoDisk
// Main information about compute for list // Main information about compute for list
type ItemCompute struct { type ItemCompute struct {

View File

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

View File

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