Compare commits

..

2 Commits

Author SHA1 Message Date
16cad7a3e7 v1.7.5 2024-02-01 10:50:38 +03:00
96273d2a12 v1.7.4 2024-01-22 13:10:00 +03:00
17 changed files with 45 additions and 27 deletions

View File

@@ -1,7 +1,12 @@
## Version 1.7.3 ## Version 1.7.5
## Bugfix ### Bugfix
- Refactoring clients - Add json tag to a field AccountID in ItemCompute in cloudapi/bservice
- Add fields FrontendHAIP and BackendHAIP in model ItemLB in cloudbroker/rg and RecordLoadBalancer in cloudapi/rg - Add boolean field NeedReboot in RecordCompute and ItemCompute in cloudapi/compute
- Add field AuthBroker in ItemLocation model in cloudapi/locations - Change json and url tags for field ShowAll in GetRequest in cloudapi/image
- Change json and url tags for field ByID in ListRequest in cloudapi/k8ci
- Change json and url tags for field AccountID in ListRequest in cloudapi/lb
- Add boolean field Safe in RestartRequest in cloudapi/lb
- Remove omitempty from json and url tags in ExtNetID in CreateInRGRequest in cloudapi/vins and cloudbroker/vins
- Change type of field ExtNetID from uint64 to int64 in CreateInRGRequest in cloudapi/vins and cloudbroker/vins

View File

@@ -93,7 +93,7 @@ type RecordBasicService struct {
// Main information about Compute // Main information about Compute
type ItemCompute struct { type ItemCompute struct {
// Account ID // Account ID
AccountID uint64 AccountID uint64 `json:"accountId"`
// Architecture // Architecture
Architecture string `json:"arch"` Architecture string `json:"arch"`

View File

@@ -38,8 +38,8 @@ type AffinityRuleAddRequest struct {
Key string `url:"key" json:"key" validate:"required"` Key string `url:"key" json:"key" validate:"required"`
// Value that must match the key to be taken into account when analyzing this rule // Value that must match the key to be taken into account when analyzing this rule
// Required: true // Required: false
Value string `url:"value" json:"value" validate:"required"` Value string `url:"value" json:"value"`
} }
// AffinityRuleAdd add affinity rule // AffinityRuleAdd add affinity rule

View File

@@ -38,8 +38,8 @@ type AffinityRuleRemoveRequest struct {
Key string `url:"key" json:"key" validate:"required"` Key string `url:"key" json:"key" validate:"required"`
// Value that must match the key to be taken into account when analyzing this rule // Value that must match the key to be taken into account when analyzing this rule
// Required: true // Required: false
Value string `url:"value" json:"value" validate:"required"` Value string `url:"value" json:"value"`
} }
// AffinityRuleRemove remove affinity rule // AffinityRuleRemove remove affinity rule

View File

@@ -38,8 +38,8 @@ type AntiAffinityRuleAddRequest struct {
Key string `url:"key" json:"key" validate:"required"` Key string `url:"key" json:"key" validate:"required"`
// Value that must match the key to be taken into account when analyzing this rule // Value that must match the key to be taken into account when analyzing this rule
// Required: true // Required: false
Value string `url:"value" json:"value" validate:"required"` Value string `url:"value" json:"value"`
} }
// AntiAffinityRuleAdd add anti affinity rule // AntiAffinityRuleAdd add anti affinity rule

View File

@@ -38,8 +38,8 @@ type AntiAffinityRuleRemoveRequest struct {
Key string `url:"key" json:"key" validate:"required"` Key string `url:"key" json:"key" validate:"required"`
// Value that must match the key to be taken into account when analyzing this rule // Value that must match the key to be taken into account when analyzing this rule
// Required: true // Required: false
Value string `url:"value" json:"value" validate:"required"` Value string `url:"value" json:"value"`
} }
// AntiAffinityRuleRemove remove anti affinity rule // AntiAffinityRuleRemove remove anti affinity rule

View File

@@ -380,6 +380,9 @@ type RecordCompute struct {
// Name // Name
Name string `json:"name"` Name string `json:"name"`
// NeedReboot
NeedReboot bool `json:"needReboot"`
// Natable VINS ID // Natable VINS ID
NatableVINSID uint64 `json:"natableVinsId"` NatableVINSID uint64 `json:"natableVinsId"`
@@ -857,6 +860,9 @@ type ItemCompute struct {
// Name // Name
Name string `json:"name"` Name string `json:"name"`
// NeedReboot
NeedReboot bool `json:"needReboot"`
// Pinned or not // Pinned or not
Pinned bool `json:"pinned"` Pinned bool `json:"pinned"`

View File

@@ -16,7 +16,7 @@ type GetRequest struct {
// If set to False returns only images in status CREATED // If set to False returns only images in status CREATED
// Required: false // Required: false
ShowAll bool `url:"show_all,omitempty" json:"show_all,omitempty"` ShowAll bool `url:"showAll,omitempty" json:"showAll,omitempty"`
} }
// Get gets image by ID. // Get gets image by ID.

View File

@@ -10,7 +10,7 @@ import (
type ListRequest struct { type ListRequest struct {
// Find by ID // Find by ID
// Required: false // Required: false
ByID uint64 `url:"id,omitempty" json:"id,omitempty"` ByID uint64 `url:"by_id,omitempty" json:"by_id,omitempty"`
// Find by name // Find by name
// Required: false // Required: false

View File

@@ -18,7 +18,7 @@ type ListRequest struct {
// Find by account ID // Find by account ID
// Required: false // Required: false
AccountID uint64 `url:"accountID,omitempty" json:"accountID,omitempty"` AccountID uint64 `url:"accountId,omitempty" json:"accountId,omitempty"`
// Find by resource group ID // Find by resource group ID
// Required: false // Required: false

View File

@@ -13,6 +13,11 @@ type RestartRequest struct {
// ID of the load balancer instance to restart // ID of the load balancer instance to restart
// Required: true // Required: true
LBID uint64 `url:"lbId" json:"lbId" validate:"required"` LBID uint64 `url:"lbId" json:"lbId" validate:"required"`
// restart secondary and primary nodes sequentially in HA mode
// Default is true
// Required: false
Safe bool `url:"safe" json:"safe"`
} }
// Restart restarts specified load balancer instance // Restart restarts specified load balancer instance

View File

@@ -25,7 +25,8 @@ type CreateInRGRequest struct {
// External network ID // External network ID
// Required: false // Required: false
ExtNetID uint64 `url:"extNetId,omitempty" json:"extNetId,omitempty"` // -1 - not connect to extnet, 0 - auto select, 1+ - extnet ID
ExtNetID int64 `url:"extNetId" json:"extNetId"`
// External IP, related only for extNetId >= 0 // External IP, related only for extNetId >= 0
// Required: false // Required: false

View File

@@ -40,8 +40,8 @@ type AffinityRuleAddRequest struct {
Key string `url:"key" json:"key" validate:"required"` Key string `url:"key" json:"key" validate:"required"`
// Value that must match the key to be taken into account when analyzing this rule // Value that must match the key to be taken into account when analyzing this rule
// Required: true // Required: false
Value string `url:"value" json:"value" validate:"required"` Value string `url:"value" json:"value"`
} }
// AffinityRuleAdd adds affinity rule // AffinityRuleAdd adds affinity rule

View File

@@ -38,8 +38,8 @@ type AffinityRuleRemoveRequest struct {
Key string `url:"key" json:"key" validate:"required"` Key string `url:"key" json:"key" validate:"required"`
// Value that must match the key to be taken into account when analyzing this rule // Value that must match the key to be taken into account when analyzing this rule
// Required: true // Required: false
Value string `url:"value" json:"value" validate:"required"` Value string `url:"value" json:"value"`
} }
// AffinityRuleRemove remove affinity rule // AffinityRuleRemove remove affinity rule

View File

@@ -38,8 +38,8 @@ type AntiAffinityRuleAddRequest struct {
Key string `url:"key" json:"key" validate:"required"` Key string `url:"key" json:"key" validate:"required"`
// Value that must match the key to be taken into account when analyzing this rule // Value that must match the key to be taken into account when analyzing this rule
// Required: true // Required: false
Value string `url:"value" json:"value" validate:"required"` Value string `url:"value" json:"value"`
} }
// AntiAffinityRuleAdd adds anti affinity rule // AntiAffinityRuleAdd adds anti affinity rule

View File

@@ -38,8 +38,8 @@ type AntiAffinityRuleRemoveRequest struct {
Key string `url:"key" json:"key" validate:"required"` Key string `url:"key" json:"key" validate:"required"`
// Value that must match the key to be taken into account when analyzing this rule // Value that must match the key to be taken into account when analyzing this rule
// Required: true // Required: false
Value string `url:"value" json:"value" validate:"required"` Value string `url:"value" json:"value"`
} }
// AntiAffinityRuleRemove removes anti affinity rule // AntiAffinityRuleRemove removes anti affinity rule

View File

@@ -25,7 +25,8 @@ type CreateInRGRequest struct {
// External network ID // External network ID
// Required: false // Required: false
ExtNetID uint64 `url:"extNetId,omitempty" json:"extNetId,omitempty"` // -1 - not connect to extnet, 0 - auto select, 1+ - extnet ID
ExtNetID int64 `url:"extNetId" json:"extNetId"`
// External IP, related only for extNetId >= 0 // External IP, related only for extNetId >= 0
// Required: false // Required: false