Compare commits
10 Commits
gos_tech_1
...
v1.6.13
| Author | SHA1 | Date | |
|---|---|---|---|
| 55027a1605 | |||
| de9cca4053 | |||
| 83bf1fb1fa | |||
| 16cad7a3e7 | |||
| 96273d2a12 | |||
| d4065938ac | |||
| cd741b7f11 | |||
| a85ad3acd5 | |||
| 823dfb49bc | |||
| e6440bc4a3 |
@@ -1,5 +1,4 @@
|
||||
## Version 1.6.14
|
||||
## Version 1.6.13
|
||||
|
||||
### Bugfix
|
||||
- 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
|
||||
- Fix url for Disable method in cloudapi/bservice
|
||||
@@ -159,7 +159,7 @@ func (dc *DecortClient) do(req *http.Request, ctype string) ([]byte, error) {
|
||||
return nil, err
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
|
||||
|
||||
// handle successful request
|
||||
respBytes, _ := io.ReadAll(resp.Body)
|
||||
if resp.StatusCode == 200 {
|
||||
|
||||
@@ -156,11 +156,10 @@ func (ldc *LegacyDecortClient) do(req *http.Request, ctype string) ([]byte, erro
|
||||
return nil, err
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
|
||||
|
||||
// handle successful request
|
||||
respBytes, err := io.ReadAll(resp.Body)
|
||||
if err!= nil {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if resp.StatusCode == 200 {
|
||||
|
||||
@@ -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" json:"permanently"`
|
||||
Permanently bool `url:"permanently,omitempty" json:"permanently,omitempty"`
|
||||
|
||||
// Reason to delete
|
||||
// Required: false
|
||||
|
||||
@@ -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" json:"permanently"`
|
||||
Permanently bool `url:"permanently,omitempty" json:"permanently,omitempty"`
|
||||
}
|
||||
|
||||
// DeleteDisks deletes multiple disks permanently
|
||||
|
||||
@@ -16,8 +16,8 @@ type DeleteRequest struct {
|
||||
|
||||
// True if cluster is destroyed permanently.
|
||||
// Otherwise it can be restored from Recycle Bin
|
||||
// Required: false
|
||||
Permanently bool `url:"permanently" json:"permanently"`
|
||||
// Required: true
|
||||
Permanently bool `url:"permanently" json:"permanently" validate:"required"`
|
||||
}
|
||||
|
||||
// Delete deletes kubernetes cluster
|
||||
|
||||
@@ -43,4 +43,4 @@ func (lpd ListPCIDevices) IDs() []uint64 {
|
||||
res = append(res, pd.ID)
|
||||
}
|
||||
return res
|
||||
}
|
||||
}
|
||||
|
||||
@@ -721,7 +721,7 @@ type RecordCompute struct {
|
||||
}
|
||||
|
||||
// Information about of disk IDs
|
||||
type ListInfoDisks []InfoDisk
|
||||
type ListInfoDisks []InfoDisk
|
||||
|
||||
// Main information about compute for list
|
||||
type ItemCompute struct {
|
||||
|
||||
@@ -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" json:"permanently"`
|
||||
Permanently bool `url:"permanently,omitempty" json:"permanently,omitempty"`
|
||||
|
||||
// Reason to delete
|
||||
// Required: false
|
||||
|
||||
@@ -20,7 +20,7 @@ type DeleteDisksRequest struct {
|
||||
|
||||
// Whether to completely delete the disks, works only with non attached disks
|
||||
// Required: false
|
||||
Permanently bool `url:"permanently" json:"permanently"`
|
||||
Permanently bool `url:"permanently,omitempty" json:"permanently,omitempty"`
|
||||
}
|
||||
|
||||
// DeleteDisks deletes multiple disks permanently
|
||||
|
||||
Reference in New Issue
Block a user