This commit is contained in:
asteam
2025-08-29 12:51:25 +03:00
parent e10ee7f801
commit 825b1a0a00
177 changed files with 4821 additions and 349 deletions

View File

@@ -42,6 +42,11 @@ type ListRequest struct {
// Required: false
SortBy string `url:"sortBy,omitempty" json:"sortBy,omitempty" validate:"omitempty,sortBy"`
// Sort by zone id
// Default value: 0
// Required: false
ZoneID uint64 `url:"zone_id,omitempty" json:"zone_id,omitempty"`
// Page number
// Required: false
Page uint64 `url:"page,omitempty" json:"page,omitempty"`

View File

@@ -58,6 +58,9 @@ type ItemExtNet struct {
// CKey
CKey string `json:"_ckey"`
// Enable Security Groups
EnableSecGroups bool `json:"enable_secgroups"`
// Meta
Meta []interface{} `json:"_meta"`
@@ -166,6 +169,9 @@ type RecordExtNet struct {
// List excludes
Excluded ListReservations `json:"excluded"`
// Enable Security Groups
EnableSecGroups bool `json:"enable_secgroups"`
// Free IPs number
FreeIPs int64 `json:"free_ips"`

View File

@@ -26,6 +26,10 @@ type UpdateRequest struct {
// Default: 1500
// Required: false
MTU uint64 `url:"mtu,omitempty" json:"mtu,omitempty"`
// Flag indicating whether security groups are enabled for this network
// Required: false
EnableSecGroups interface{} `url:"enable_secgroups,omitempty" json:"enable_secgroups,omitempty" validate:"omitempty,isBool"`
}
// Update updates external network parameters