From c2ed7d9355b85a3ebf4e65e28bc4f5594473cb22 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Tue, 23 Sep 2025 16:22:14 +0000 Subject: [PATCH] Generate iaas --- services/iaas/model_backup.go | 2 +- .../iaas/model_base_security_group_rule.go | 97 +++++++++++++ services/iaas/model_create_backup_payload.go | 2 +- services/iaas/model_create_image_payload.go | 2 +- .../iaas/model_create_key_pair_payload.go | 2 +- .../iaas/model_create_network_area_payload.go | 2 +- services/iaas/model_create_network_payload.go | 2 +- services/iaas/model_create_nic_payload.go | 51 ++++++- .../iaas/model_create_public_ip_payload.go | 2 +- .../model_create_security_group_payload.go | 2 +- ...odel_create_security_group_rule_payload.go | 99 +++++++++++++- services/iaas/model_create_server_payload.go | 49 ++++++- .../iaas/model_create_snapshot_payload.go | 2 +- services/iaas/model_create_volume_payload.go | 2 +- services/iaas/model_image.go | 2 +- services/iaas/model_keypair.go | 2 +- services/iaas/model_network.go | 2 +- services/iaas/model_network_area.go | 2 +- services/iaas/model_nic.go | 51 ++++++- ...del_partial_update_network_area_payload.go | 2 +- .../model_partial_update_network_payload.go | 2 +- services/iaas/model_public_ip.go | 2 +- services/iaas/model_route.go | 2 +- services/iaas/model_security_group.go | 2 +- services/iaas/model_security_group_rule.go | 99 +++++++++++++- services/iaas/model_server.go | 49 ++++++- services/iaas/model_server_agent.go | 128 ++++++++++++++++++ services/iaas/model_server_agent_test.go | 11 ++ services/iaas/model_snapshot.go | 2 +- services/iaas/model_update_backup_payload.go | 2 +- services/iaas/model_update_image_payload.go | 2 +- .../iaas/model_update_key_pair_payload.go | 2 +- ...model_update_network_area_route_payload.go | 2 +- services/iaas/model_update_nic_payload.go | 51 ++++++- .../iaas/model_update_public_ip_payload.go | 2 +- .../model_update_security_group_payload.go | 2 +- services/iaas/model_update_server_payload.go | 2 +- .../iaas/model_update_snapshot_payload.go | 2 +- services/iaas/model_update_volume_payload.go | 2 +- services/iaas/model_volume.go | 2 +- .../iaas/model_volume_performance_class.go | 2 +- 41 files changed, 709 insertions(+), 38 deletions(-) create mode 100644 services/iaas/model_server_agent.go create mode 100644 services/iaas/model_server_agent_test.go diff --git a/services/iaas/model_backup.go b/services/iaas/model_backup.go index b9cdf41b1..d9be5a336 100644 --- a/services/iaas/model_backup.go +++ b/services/iaas/model_backup.go @@ -232,7 +232,7 @@ type Backup struct { CreatedAt BackupGetCreatedAtAttributeType `json:"createdAt,omitempty"` // Universally Unique Identifier (UUID). Id BackupGetIdAttributeType `json:"id,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels BackupGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name BackupGetNameAttributeType `json:"name,omitempty"` diff --git a/services/iaas/model_base_security_group_rule.go b/services/iaas/model_base_security_group_rule.go index e2312d221..e5976e31e 100644 --- a/services/iaas/model_base_security_group_rule.go +++ b/services/iaas/model_base_security_group_rule.go @@ -12,11 +12,32 @@ package iaas import ( "encoding/json" + "time" ) // checks if the BaseSecurityGroupRule type satisfies the MappedNullable interface at compile time var _ MappedNullable = &BaseSecurityGroupRule{} +/* + types and functions for createdAt +*/ + +// isDateTime +type BaseSecurityGroupRuleGetCreatedAtAttributeType = *time.Time +type BaseSecurityGroupRuleGetCreatedAtArgType = time.Time +type BaseSecurityGroupRuleGetCreatedAtRetType = time.Time + +func getBaseSecurityGroupRuleGetCreatedAtAttributeTypeOk(arg BaseSecurityGroupRuleGetCreatedAtAttributeType) (ret BaseSecurityGroupRuleGetCreatedAtRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setBaseSecurityGroupRuleGetCreatedAtAttributeType(arg *BaseSecurityGroupRuleGetCreatedAtAttributeType, val BaseSecurityGroupRuleGetCreatedAtRetType) { + *arg = &val +} + /* types and functions for description */ @@ -204,8 +225,30 @@ func setBaseSecurityGroupRuleGetSecurityGroupIdAttributeType(arg *BaseSecurityGr type BaseSecurityGroupRuleGetSecurityGroupIdArgType = string type BaseSecurityGroupRuleGetSecurityGroupIdRetType = string +/* + types and functions for updatedAt +*/ + +// isDateTime +type BaseSecurityGroupRuleGetUpdatedAtAttributeType = *time.Time +type BaseSecurityGroupRuleGetUpdatedAtArgType = time.Time +type BaseSecurityGroupRuleGetUpdatedAtRetType = time.Time + +func getBaseSecurityGroupRuleGetUpdatedAtAttributeTypeOk(arg BaseSecurityGroupRuleGetUpdatedAtAttributeType) (ret BaseSecurityGroupRuleGetUpdatedAtRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setBaseSecurityGroupRuleGetUpdatedAtAttributeType(arg *BaseSecurityGroupRuleGetUpdatedAtAttributeType, val BaseSecurityGroupRuleGetUpdatedAtRetType) { + *arg = &val +} + // BaseSecurityGroupRule The base schema for a security group rule. type BaseSecurityGroupRule struct { + // Date-time when resource was created. + CreatedAt BaseSecurityGroupRuleGetCreatedAtAttributeType `json:"createdAt,omitempty"` // Description Object. Allows string up to 255 Characters. Description BaseSecurityGroupRuleGetDescriptionAttributeType `json:"description,omitempty"` // The direction of the traffic which the rule should match. Possible values: `ingress`, `egress`. @@ -223,6 +266,8 @@ type BaseSecurityGroupRule struct { RemoteSecurityGroupId BaseSecurityGroupRuleGetRemoteSecurityGroupIdAttributeType `json:"remoteSecurityGroupId,omitempty"` // Universally Unique Identifier (UUID). SecurityGroupId BaseSecurityGroupRuleGetSecurityGroupIdAttributeType `json:"securityGroupId,omitempty"` + // Date-time when resource was last updated. + UpdatedAt BaseSecurityGroupRuleGetUpdatedAtAttributeType `json:"updatedAt,omitempty"` } type _BaseSecurityGroupRule BaseSecurityGroupRule @@ -247,6 +292,29 @@ func NewBaseSecurityGroupRuleWithDefaults() *BaseSecurityGroupRule { return &this } +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *BaseSecurityGroupRule) GetCreatedAt() (res BaseSecurityGroupRuleGetCreatedAtRetType) { + res, _ = o.GetCreatedAtOk() + return +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BaseSecurityGroupRule) GetCreatedAtOk() (ret BaseSecurityGroupRuleGetCreatedAtRetType, ok bool) { + return getBaseSecurityGroupRuleGetCreatedAtAttributeTypeOk(o.CreatedAt) +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *BaseSecurityGroupRule) HasCreatedAt() bool { + _, ok := o.GetCreatedAtOk() + return ok +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *BaseSecurityGroupRule) SetCreatedAt(v BaseSecurityGroupRuleGetCreatedAtRetType) { + setBaseSecurityGroupRuleGetCreatedAtAttributeType(&o.CreatedAt, v) +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *BaseSecurityGroupRule) GetDescription() (res BaseSecurityGroupRuleGetDescriptionRetType) { res, _ = o.GetDescriptionOk() @@ -448,8 +516,34 @@ func (o *BaseSecurityGroupRule) SetSecurityGroupId(v BaseSecurityGroupRuleGetSec setBaseSecurityGroupRuleGetSecurityGroupIdAttributeType(&o.SecurityGroupId, v) } +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *BaseSecurityGroupRule) GetUpdatedAt() (res BaseSecurityGroupRuleGetUpdatedAtRetType) { + res, _ = o.GetUpdatedAtOk() + return +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BaseSecurityGroupRule) GetUpdatedAtOk() (ret BaseSecurityGroupRuleGetUpdatedAtRetType, ok bool) { + return getBaseSecurityGroupRuleGetUpdatedAtAttributeTypeOk(o.UpdatedAt) +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *BaseSecurityGroupRule) HasUpdatedAt() bool { + _, ok := o.GetUpdatedAtOk() + return ok +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *BaseSecurityGroupRule) SetUpdatedAt(v BaseSecurityGroupRuleGetUpdatedAtRetType) { + setBaseSecurityGroupRuleGetUpdatedAtAttributeType(&o.UpdatedAt, v) +} + func (o BaseSecurityGroupRule) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if val, ok := getBaseSecurityGroupRuleGetCreatedAtAttributeTypeOk(o.CreatedAt); ok { + toSerialize["CreatedAt"] = val + } if val, ok := getBaseSecurityGroupRuleGetDescriptionAttributeTypeOk(o.Description); ok { toSerialize["Description"] = val } @@ -477,6 +571,9 @@ func (o BaseSecurityGroupRule) ToMap() (map[string]interface{}, error) { if val, ok := getBaseSecurityGroupRuleGetSecurityGroupIdAttributeTypeOk(o.SecurityGroupId); ok { toSerialize["SecurityGroupId"] = val } + if val, ok := getBaseSecurityGroupRuleGetUpdatedAtAttributeTypeOk(o.UpdatedAt); ok { + toSerialize["UpdatedAt"] = val + } return toSerialize, nil } diff --git a/services/iaas/model_create_backup_payload.go b/services/iaas/model_create_backup_payload.go index b89d6d9a6..0ec328547 100644 --- a/services/iaas/model_create_backup_payload.go +++ b/services/iaas/model_create_backup_payload.go @@ -80,7 +80,7 @@ func setCreateBackupPayloadGetSourceAttributeType(arg *CreateBackupPayloadGetSou // CreateBackupPayload Object that represents a backup create request body. type CreateBackupPayload struct { - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels CreateBackupPayloadGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name CreateBackupPayloadGetNameAttributeType `json:"name,omitempty"` diff --git a/services/iaas/model_create_image_payload.go b/services/iaas/model_create_image_payload.go index e5658fde2..655a9970c 100644 --- a/services/iaas/model_create_image_payload.go +++ b/services/iaas/model_create_image_payload.go @@ -356,7 +356,7 @@ type CreateImagePayload struct { DiskFormat CreateImagePayloadGetDiskFormatAttributeType `json:"diskFormat" required:"true"` // Universally Unique Identifier (UUID). Id CreateImagePayloadGetIdAttributeType `json:"id,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels CreateImagePayloadGetLabelsAttributeType `json:"labels,omitempty"` // Size in Gigabyte. MinDiskSize CreateImagePayloadGetMinDiskSizeAttributeType `json:"minDiskSize,omitempty"` diff --git a/services/iaas/model_create_key_pair_payload.go b/services/iaas/model_create_key_pair_payload.go index e3b153357..9e94dec76 100644 --- a/services/iaas/model_create_key_pair_payload.go +++ b/services/iaas/model_create_key_pair_payload.go @@ -147,7 +147,7 @@ type CreateKeyPairPayload struct { CreatedAt CreateKeyPairPayloadGetCreatedAtAttributeType `json:"createdAt,omitempty"` // Object that represents an SSH keypair MD5 fingerprint. Fingerprint CreateKeyPairPayloadGetFingerprintAttributeType `json:"fingerprint,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels CreateKeyPairPayloadGetLabelsAttributeType `json:"labels,omitempty"` // The name of an SSH keypair. Allowed characters are letters [a-zA-Z], digits [0-9] and the following special characters: [@._-]. Name CreateKeyPairPayloadGetNameAttributeType `json:"name,omitempty"` diff --git a/services/iaas/model_create_network_area_payload.go b/services/iaas/model_create_network_area_payload.go index 5f64084e7..8bc10afc1 100644 --- a/services/iaas/model_create_network_area_payload.go +++ b/services/iaas/model_create_network_area_payload.go @@ -82,7 +82,7 @@ type CreateNetworkAreaPayloadGetNameRetType = string type CreateNetworkAreaPayload struct { // REQUIRED AddressFamily CreateNetworkAreaPayloadGetAddressFamilyAttributeType `json:"addressFamily" required:"true"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels CreateNetworkAreaPayloadGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. // REQUIRED diff --git a/services/iaas/model_create_network_payload.go b/services/iaas/model_create_network_payload.go index 10ed3d5d4..2dd399a31 100644 --- a/services/iaas/model_create_network_payload.go +++ b/services/iaas/model_create_network_payload.go @@ -123,7 +123,7 @@ type CreateNetworkPayload struct { AddressFamily CreateNetworkPayloadGetAddressFamilyAttributeType `json:"addressFamily,omitempty"` // Enable or disable DHCP for a network. Dhcp CreateNetworkPayloadgetDhcpAttributeType `json:"dhcp,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels CreateNetworkPayloadGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. // REQUIRED diff --git a/services/iaas/model_create_nic_payload.go b/services/iaas/model_create_nic_payload.go index a741e8055..adda25ba5 100644 --- a/services/iaas/model_create_nic_payload.go +++ b/services/iaas/model_create_nic_payload.go @@ -37,6 +37,27 @@ func setCreateNicPayloadGetAllowedAddressesAttributeType(arg *CreateNicPayloadGe *arg = &val } +/* + types and functions for description +*/ + +// isNotNullableString +type CreateNicPayloadGetDescriptionAttributeType = *string + +func getCreateNicPayloadGetDescriptionAttributeTypeOk(arg CreateNicPayloadGetDescriptionAttributeType) (ret CreateNicPayloadGetDescriptionRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setCreateNicPayloadGetDescriptionAttributeType(arg *CreateNicPayloadGetDescriptionAttributeType, val CreateNicPayloadGetDescriptionRetType) { + *arg = &val +} + +type CreateNicPayloadGetDescriptionArgType = string +type CreateNicPayloadGetDescriptionRetType = string + /* types and functions for device */ @@ -290,6 +311,8 @@ type CreateNicPayloadGetTypeRetType = string type CreateNicPayload struct { // A list of IPs or CIDR notations. AllowedAddresses CreateNicPayloadGetAllowedAddressesAttributeType `json:"allowedAddresses,omitempty"` + // Description Object. Allows string up to 255 Characters. + Description CreateNicPayloadGetDescriptionAttributeType `json:"description,omitempty"` // Universally Unique Identifier (UUID). Device CreateNicPayloadGetDeviceAttributeType `json:"device,omitempty"` // Universally Unique Identifier (UUID). @@ -298,7 +321,7 @@ type CreateNicPayload struct { Ipv4 CreateNicPayloadGetIpv4AttributeType `json:"ipv4,omitempty"` // String that represents an IPv6 address. Ipv6 CreateNicPayloadGetIpv6AttributeType `json:"ipv6,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels CreateNicPayloadGetLabelsAttributeType `json:"labels,omitempty"` // Object that represents an MAC address. Mac CreateNicPayloadGetMacAttributeType `json:"mac,omitempty"` @@ -358,6 +381,29 @@ func (o *CreateNicPayload) SetAllowedAddresses(v CreateNicPayloadGetAllowedAddre setCreateNicPayloadGetAllowedAddressesAttributeType(&o.AllowedAddresses, v) } +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CreateNicPayload) GetDescription() (res CreateNicPayloadGetDescriptionRetType) { + res, _ = o.GetDescriptionOk() + return +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateNicPayload) GetDescriptionOk() (ret CreateNicPayloadGetDescriptionRetType, ok bool) { + return getCreateNicPayloadGetDescriptionAttributeTypeOk(o.Description) +} + +// HasDescription returns a boolean if a field has been set. +func (o *CreateNicPayload) HasDescription() bool { + _, ok := o.GetDescriptionOk() + return ok +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CreateNicPayload) SetDescription(v CreateNicPayloadGetDescriptionRetType) { + setCreateNicPayloadGetDescriptionAttributeType(&o.Description, v) +} + // GetDevice returns the Device field value if set, zero value otherwise. func (o *CreateNicPayload) GetDevice() (res CreateNicPayloadGetDeviceRetType) { res, _ = o.GetDeviceOk() @@ -639,6 +685,9 @@ func (o CreateNicPayload) ToMap() (map[string]interface{}, error) { if val, ok := getCreateNicPayloadGetAllowedAddressesAttributeTypeOk(o.AllowedAddresses); ok { toSerialize["AllowedAddresses"] = val } + if val, ok := getCreateNicPayloadGetDescriptionAttributeTypeOk(o.Description); ok { + toSerialize["Description"] = val + } if val, ok := getCreateNicPayloadGetDeviceAttributeTypeOk(o.Device); ok { toSerialize["Device"] = val } diff --git a/services/iaas/model_create_public_ip_payload.go b/services/iaas/model_create_public_ip_payload.go index 484377cbe..18724483b 100644 --- a/services/iaas/model_create_public_ip_payload.go +++ b/services/iaas/model_create_public_ip_payload.go @@ -110,7 +110,7 @@ type CreatePublicIPPayload struct { Id CreatePublicIPPayloadGetIdAttributeType `json:"id,omitempty"` // Object that represents an IP address. Ip CreatePublicIPPayloadGetIpAttributeType `json:"ip,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels CreatePublicIPPayloadGetLabelsAttributeType `json:"labels,omitempty"` // Universally Unique Identifier (UUID). NetworkInterface CreatePublicIPPayloadGetNetworkInterfaceAttributeType `json:"networkInterface,omitempty"` diff --git a/services/iaas/model_create_security_group_payload.go b/services/iaas/model_create_security_group_payload.go index ba5527147..37dc93b44 100644 --- a/services/iaas/model_create_security_group_payload.go +++ b/services/iaas/model_create_security_group_payload.go @@ -189,7 +189,7 @@ type CreateSecurityGroupPayload struct { Description CreateSecurityGroupPayloadGetDescriptionAttributeType `json:"description,omitempty"` // Universally Unique Identifier (UUID). Id CreateSecurityGroupPayloadGetIdAttributeType `json:"id,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels CreateSecurityGroupPayloadGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. // REQUIRED diff --git a/services/iaas/model_create_security_group_rule_payload.go b/services/iaas/model_create_security_group_rule_payload.go index 691dce0db..6fc2154cb 100644 --- a/services/iaas/model_create_security_group_rule_payload.go +++ b/services/iaas/model_create_security_group_rule_payload.go @@ -12,11 +12,32 @@ package iaas import ( "encoding/json" + "time" ) // checks if the CreateSecurityGroupRulePayload type satisfies the MappedNullable interface at compile time var _ MappedNullable = &CreateSecurityGroupRulePayload{} +/* + types and functions for createdAt +*/ + +// isDateTime +type CreateSecurityGroupRulePayloadGetCreatedAtAttributeType = *time.Time +type CreateSecurityGroupRulePayloadGetCreatedAtArgType = time.Time +type CreateSecurityGroupRulePayloadGetCreatedAtRetType = time.Time + +func getCreateSecurityGroupRulePayloadGetCreatedAtAttributeTypeOk(arg CreateSecurityGroupRulePayloadGetCreatedAtAttributeType) (ret CreateSecurityGroupRulePayloadGetCreatedAtRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setCreateSecurityGroupRulePayloadGetCreatedAtAttributeType(arg *CreateSecurityGroupRulePayloadGetCreatedAtAttributeType, val CreateSecurityGroupRulePayloadGetCreatedAtRetType) { + *arg = &val +} + /* types and functions for description */ @@ -204,6 +225,26 @@ func setCreateSecurityGroupRulePayloadGetSecurityGroupIdAttributeType(arg *Creat type CreateSecurityGroupRulePayloadGetSecurityGroupIdArgType = string type CreateSecurityGroupRulePayloadGetSecurityGroupIdRetType = string +/* + types and functions for updatedAt +*/ + +// isDateTime +type CreateSecurityGroupRulePayloadGetUpdatedAtAttributeType = *time.Time +type CreateSecurityGroupRulePayloadGetUpdatedAtArgType = time.Time +type CreateSecurityGroupRulePayloadGetUpdatedAtRetType = time.Time + +func getCreateSecurityGroupRulePayloadGetUpdatedAtAttributeTypeOk(arg CreateSecurityGroupRulePayloadGetUpdatedAtAttributeType) (ret CreateSecurityGroupRulePayloadGetUpdatedAtRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setCreateSecurityGroupRulePayloadGetUpdatedAtAttributeType(arg *CreateSecurityGroupRulePayloadGetUpdatedAtAttributeType, val CreateSecurityGroupRulePayloadGetUpdatedAtRetType) { + *arg = &val +} + /* types and functions for protocol */ @@ -226,6 +267,8 @@ func setCreateSecurityGroupRulePayloadGetProtocolAttributeType(arg *CreateSecuri // CreateSecurityGroupRulePayload Object that represents a request body for security group rule creation. type CreateSecurityGroupRulePayload struct { + // Date-time when resource was created. + CreatedAt CreateSecurityGroupRulePayloadGetCreatedAtAttributeType `json:"createdAt,omitempty"` // Description Object. Allows string up to 255 Characters. Description CreateSecurityGroupRulePayloadGetDescriptionAttributeType `json:"description,omitempty"` // The direction of the traffic which the rule should match. Possible values: `ingress`, `egress`. @@ -243,7 +286,9 @@ type CreateSecurityGroupRulePayload struct { RemoteSecurityGroupId CreateSecurityGroupRulePayloadGetRemoteSecurityGroupIdAttributeType `json:"remoteSecurityGroupId,omitempty"` // Universally Unique Identifier (UUID). SecurityGroupId CreateSecurityGroupRulePayloadGetSecurityGroupIdAttributeType `json:"securityGroupId,omitempty"` - Protocol CreateSecurityGroupRulePayloadGetProtocolAttributeType `json:"protocol,omitempty"` + // Date-time when resource was last updated. + UpdatedAt CreateSecurityGroupRulePayloadGetUpdatedAtAttributeType `json:"updatedAt,omitempty"` + Protocol CreateSecurityGroupRulePayloadGetProtocolAttributeType `json:"protocol,omitempty"` } type _CreateSecurityGroupRulePayload CreateSecurityGroupRulePayload @@ -268,6 +313,29 @@ func NewCreateSecurityGroupRulePayloadWithDefaults() *CreateSecurityGroupRulePay return &this } +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *CreateSecurityGroupRulePayload) GetCreatedAt() (res CreateSecurityGroupRulePayloadGetCreatedAtRetType) { + res, _ = o.GetCreatedAtOk() + return +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateSecurityGroupRulePayload) GetCreatedAtOk() (ret CreateSecurityGroupRulePayloadGetCreatedAtRetType, ok bool) { + return getCreateSecurityGroupRulePayloadGetCreatedAtAttributeTypeOk(o.CreatedAt) +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *CreateSecurityGroupRulePayload) HasCreatedAt() bool { + _, ok := o.GetCreatedAtOk() + return ok +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *CreateSecurityGroupRulePayload) SetCreatedAt(v CreateSecurityGroupRulePayloadGetCreatedAtRetType) { + setCreateSecurityGroupRulePayloadGetCreatedAtAttributeType(&o.CreatedAt, v) +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *CreateSecurityGroupRulePayload) GetDescription() (res CreateSecurityGroupRulePayloadGetDescriptionRetType) { res, _ = o.GetDescriptionOk() @@ -469,6 +537,29 @@ func (o *CreateSecurityGroupRulePayload) SetSecurityGroupId(v CreateSecurityGrou setCreateSecurityGroupRulePayloadGetSecurityGroupIdAttributeType(&o.SecurityGroupId, v) } +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *CreateSecurityGroupRulePayload) GetUpdatedAt() (res CreateSecurityGroupRulePayloadGetUpdatedAtRetType) { + res, _ = o.GetUpdatedAtOk() + return +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateSecurityGroupRulePayload) GetUpdatedAtOk() (ret CreateSecurityGroupRulePayloadGetUpdatedAtRetType, ok bool) { + return getCreateSecurityGroupRulePayloadGetUpdatedAtAttributeTypeOk(o.UpdatedAt) +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *CreateSecurityGroupRulePayload) HasUpdatedAt() bool { + _, ok := o.GetUpdatedAtOk() + return ok +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *CreateSecurityGroupRulePayload) SetUpdatedAt(v CreateSecurityGroupRulePayloadGetUpdatedAtRetType) { + setCreateSecurityGroupRulePayloadGetUpdatedAtAttributeType(&o.UpdatedAt, v) +} + // GetProtocol returns the Protocol field value if set, zero value otherwise. func (o *CreateSecurityGroupRulePayload) GetProtocol() (res CreateSecurityGroupRulePayloadGetProtocolRetType) { res, _ = o.GetProtocolOk() @@ -494,6 +585,9 @@ func (o *CreateSecurityGroupRulePayload) SetProtocol(v CreateSecurityGroupRulePa func (o CreateSecurityGroupRulePayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if val, ok := getCreateSecurityGroupRulePayloadGetCreatedAtAttributeTypeOk(o.CreatedAt); ok { + toSerialize["CreatedAt"] = val + } if val, ok := getCreateSecurityGroupRulePayloadGetDescriptionAttributeTypeOk(o.Description); ok { toSerialize["Description"] = val } @@ -521,6 +615,9 @@ func (o CreateSecurityGroupRulePayload) ToMap() (map[string]interface{}, error) if val, ok := getCreateSecurityGroupRulePayloadGetSecurityGroupIdAttributeTypeOk(o.SecurityGroupId); ok { toSerialize["SecurityGroupId"] = val } + if val, ok := getCreateSecurityGroupRulePayloadGetUpdatedAtAttributeTypeOk(o.UpdatedAt); ok { + toSerialize["UpdatedAt"] = val + } if val, ok := getCreateSecurityGroupRulePayloadGetProtocolAttributeTypeOk(o.Protocol); ok { toSerialize["Protocol"] = val } diff --git a/services/iaas/model_create_server_payload.go b/services/iaas/model_create_server_payload.go index bbac883dd..d2dc20685 100644 --- a/services/iaas/model_create_server_payload.go +++ b/services/iaas/model_create_server_payload.go @@ -39,6 +39,26 @@ func setCreateServerPayloadGetAffinityGroupAttributeType(arg *CreateServerPayloa type CreateServerPayloadGetAffinityGroupArgType = string type CreateServerPayloadGetAffinityGroupRetType = string +/* + types and functions for agent +*/ + +// isModel +type CreateServerPayloadGetAgentAttributeType = *ServerAgent +type CreateServerPayloadGetAgentArgType = ServerAgent +type CreateServerPayloadGetAgentRetType = ServerAgent + +func getCreateServerPayloadGetAgentAttributeTypeOk(arg CreateServerPayloadGetAgentAttributeType) (ret CreateServerPayloadGetAgentRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setCreateServerPayloadGetAgentAttributeType(arg *CreateServerPayloadGetAgentAttributeType, val CreateServerPayloadGetAgentRetType) { + *arg = &val +} + /* types and functions for availabilityZone */ @@ -492,6 +512,7 @@ func setCreateServerPayloadGetVolumesAttributeType(arg *CreateServerPayloadGetVo type CreateServerPayload struct { // Universally Unique Identifier (UUID). AffinityGroup CreateServerPayloadGetAffinityGroupAttributeType `json:"affinityGroup,omitempty"` + Agent CreateServerPayloadGetAgentAttributeType `json:"agent,omitempty"` // Object that represents an availability zone. AvailabilityZone CreateServerPayloadGetAvailabilityZoneAttributeType `json:"availabilityZone,omitempty"` BootVolume CreateServerPayloadGetBootVolumeAttributeType `json:"bootVolume,omitempty"` @@ -505,7 +526,7 @@ type CreateServerPayload struct { ImageId CreateServerPayloadGetImageIdAttributeType `json:"imageId,omitempty"` // The name of an SSH keypair. Allowed characters are letters [a-zA-Z], digits [0-9] and the following special characters: [@._-]. KeypairName CreateServerPayloadGetKeypairNameAttributeType `json:"keypairName,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels CreateServerPayloadGetLabelsAttributeType `json:"labels,omitempty"` // Date-time when resource was launched. LaunchedAt CreateServerPayloadGetLaunchedAtAttributeType `json:"launchedAt,omitempty"` @@ -581,6 +602,29 @@ func (o *CreateServerPayload) SetAffinityGroup(v CreateServerPayloadGetAffinityG setCreateServerPayloadGetAffinityGroupAttributeType(&o.AffinityGroup, v) } +// GetAgent returns the Agent field value if set, zero value otherwise. +func (o *CreateServerPayload) GetAgent() (res CreateServerPayloadGetAgentRetType) { + res, _ = o.GetAgentOk() + return +} + +// GetAgentOk returns a tuple with the Agent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateServerPayload) GetAgentOk() (ret CreateServerPayloadGetAgentRetType, ok bool) { + return getCreateServerPayloadGetAgentAttributeTypeOk(o.Agent) +} + +// HasAgent returns a boolean if a field has been set. +func (o *CreateServerPayload) HasAgent() bool { + _, ok := o.GetAgentOk() + return ok +} + +// SetAgent gets a reference to the given ServerAgent and assigns it to the Agent field. +func (o *CreateServerPayload) SetAgent(v CreateServerPayloadGetAgentRetType) { + setCreateServerPayloadGetAgentAttributeType(&o.Agent, v) +} + // GetAvailabilityZone returns the AvailabilityZone field value if set, zero value otherwise. func (o *CreateServerPayload) GetAvailabilityZone() (res CreateServerPayloadGetAvailabilityZoneRetType) { res, _ = o.GetAvailabilityZoneOk() @@ -1080,6 +1124,9 @@ func (o CreateServerPayload) ToMap() (map[string]interface{}, error) { if val, ok := getCreateServerPayloadGetAffinityGroupAttributeTypeOk(o.AffinityGroup); ok { toSerialize["AffinityGroup"] = val } + if val, ok := getCreateServerPayloadGetAgentAttributeTypeOk(o.Agent); ok { + toSerialize["Agent"] = val + } if val, ok := getCreateServerPayloadGetAvailabilityZoneAttributeTypeOk(o.AvailabilityZone); ok { toSerialize["AvailabilityZone"] = val } diff --git a/services/iaas/model_create_snapshot_payload.go b/services/iaas/model_create_snapshot_payload.go index c33d469c2..f8d75cbfe 100644 --- a/services/iaas/model_create_snapshot_payload.go +++ b/services/iaas/model_create_snapshot_payload.go @@ -188,7 +188,7 @@ type CreateSnapshotPayload struct { CreatedAt CreateSnapshotPayloadGetCreatedAtAttributeType `json:"createdAt,omitempty"` // Universally Unique Identifier (UUID). Id CreateSnapshotPayloadGetIdAttributeType `json:"id,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels CreateSnapshotPayloadGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name CreateSnapshotPayloadGetNameAttributeType `json:"name,omitempty"` diff --git a/services/iaas/model_create_volume_payload.go b/services/iaas/model_create_volume_payload.go index 225304a4e..b2e177d77 100644 --- a/services/iaas/model_create_volume_payload.go +++ b/services/iaas/model_create_volume_payload.go @@ -362,7 +362,7 @@ type CreateVolumePayload struct { // Universally Unique Identifier (UUID). Id CreateVolumePayloadGetIdAttributeType `json:"id,omitempty"` ImageConfig CreateVolumePayloadGetImageConfigAttributeType `json:"imageConfig,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels CreateVolumePayloadGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name CreateVolumePayloadGetNameAttributeType `json:"name,omitempty"` diff --git a/services/iaas/model_image.go b/services/iaas/model_image.go index 45ea1d568..4ea8f890e 100644 --- a/services/iaas/model_image.go +++ b/services/iaas/model_image.go @@ -356,7 +356,7 @@ type Image struct { DiskFormat ImageGetDiskFormatAttributeType `json:"diskFormat" required:"true"` // Universally Unique Identifier (UUID). Id ImageGetIdAttributeType `json:"id,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels ImageGetLabelsAttributeType `json:"labels,omitempty"` // Size in Gigabyte. MinDiskSize ImageGetMinDiskSizeAttributeType `json:"minDiskSize,omitempty"` diff --git a/services/iaas/model_keypair.go b/services/iaas/model_keypair.go index 6c7ce8baf..cc881e99b 100644 --- a/services/iaas/model_keypair.go +++ b/services/iaas/model_keypair.go @@ -147,7 +147,7 @@ type Keypair struct { CreatedAt KeypairGetCreatedAtAttributeType `json:"createdAt,omitempty"` // Object that represents an SSH keypair MD5 fingerprint. Fingerprint KeypairGetFingerprintAttributeType `json:"fingerprint,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels KeypairGetLabelsAttributeType `json:"labels,omitempty"` // The name of an SSH keypair. Allowed characters are letters [a-zA-Z], digits [0-9] and the following special characters: [@._-]. Name KeypairGetNameAttributeType `json:"name,omitempty"` diff --git a/services/iaas/model_network.go b/services/iaas/model_network.go index 46fefd56a..f2ac1f25e 100644 --- a/services/iaas/model_network.go +++ b/services/iaas/model_network.go @@ -342,7 +342,7 @@ type Network struct { Gateway NetworkGetGatewayAttributeType `json:"gateway,omitempty"` // The gateway of a network. If not specified the first IP of the network will be assigned as the gateway. If 'null' is sent, then the network doesn't have a gateway. Gatewayv6 NetworkGetGatewayv6AttributeType `json:"gatewayv6,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels NetworkGetLabelsAttributeType `json:"labels,omitempty"` // REQUIRED Name NetworkGetNameAttributeType `json:"name" required:"true"` diff --git a/services/iaas/model_network_area.go b/services/iaas/model_network_area.go index b07ff7e5c..56897810e 100644 --- a/services/iaas/model_network_area.go +++ b/services/iaas/model_network_area.go @@ -189,7 +189,7 @@ type NetworkArea struct { // Date-time when resource was created. CreatedAt NetworkAreaGetCreatedAtAttributeType `json:"createdAt,omitempty"` Ipv4 NetworkAreaGetIpv4AttributeType `json:"ipv4,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels NetworkAreaGetLabelsAttributeType `json:"labels,omitempty"` // REQUIRED Name NetworkAreaGetNameAttributeType `json:"name" required:"true"` diff --git a/services/iaas/model_nic.go b/services/iaas/model_nic.go index ab5ead4bb..12c22fe2c 100644 --- a/services/iaas/model_nic.go +++ b/services/iaas/model_nic.go @@ -37,6 +37,27 @@ func setNICGetAllowedAddressesAttributeType(arg *NICGetAllowedAddressesAttribute *arg = &val } +/* + types and functions for description +*/ + +// isNotNullableString +type NICGetDescriptionAttributeType = *string + +func getNICGetDescriptionAttributeTypeOk(arg NICGetDescriptionAttributeType) (ret NICGetDescriptionRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setNICGetDescriptionAttributeType(arg *NICGetDescriptionAttributeType, val NICGetDescriptionRetType) { + *arg = &val +} + +type NICGetDescriptionArgType = string +type NICGetDescriptionRetType = string + /* types and functions for device */ @@ -290,6 +311,8 @@ type NICGetTypeRetType = string type NIC struct { // A list of IPs or CIDR notations. AllowedAddresses NICGetAllowedAddressesAttributeType `json:"allowedAddresses,omitempty"` + // Description Object. Allows string up to 255 Characters. + Description NICGetDescriptionAttributeType `json:"description,omitempty"` // Universally Unique Identifier (UUID). Device NICGetDeviceAttributeType `json:"device,omitempty"` // Universally Unique Identifier (UUID). @@ -298,7 +321,7 @@ type NIC struct { Ipv4 NICGetIpv4AttributeType `json:"ipv4,omitempty"` // String that represents an IPv6 address. Ipv6 NICGetIpv6AttributeType `json:"ipv6,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels NICGetLabelsAttributeType `json:"labels,omitempty"` // Object that represents an MAC address. Mac NICGetMacAttributeType `json:"mac,omitempty"` @@ -358,6 +381,29 @@ func (o *NIC) SetAllowedAddresses(v NICGetAllowedAddressesRetType) { setNICGetAllowedAddressesAttributeType(&o.AllowedAddresses, v) } +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *NIC) GetDescription() (res NICGetDescriptionRetType) { + res, _ = o.GetDescriptionOk() + return +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NIC) GetDescriptionOk() (ret NICGetDescriptionRetType, ok bool) { + return getNICGetDescriptionAttributeTypeOk(o.Description) +} + +// HasDescription returns a boolean if a field has been set. +func (o *NIC) HasDescription() bool { + _, ok := o.GetDescriptionOk() + return ok +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *NIC) SetDescription(v NICGetDescriptionRetType) { + setNICGetDescriptionAttributeType(&o.Description, v) +} + // GetDevice returns the Device field value if set, zero value otherwise. func (o *NIC) GetDevice() (res NICGetDeviceRetType) { res, _ = o.GetDeviceOk() @@ -639,6 +685,9 @@ func (o NIC) ToMap() (map[string]interface{}, error) { if val, ok := getNICGetAllowedAddressesAttributeTypeOk(o.AllowedAddresses); ok { toSerialize["AllowedAddresses"] = val } + if val, ok := getNICGetDescriptionAttributeTypeOk(o.Description); ok { + toSerialize["Description"] = val + } if val, ok := getNICGetDeviceAttributeTypeOk(o.Device); ok { toSerialize["Device"] = val } diff --git a/services/iaas/model_partial_update_network_area_payload.go b/services/iaas/model_partial_update_network_area_payload.go index 04266462a..cc33493ae 100644 --- a/services/iaas/model_partial_update_network_area_payload.go +++ b/services/iaas/model_partial_update_network_area_payload.go @@ -81,7 +81,7 @@ type PartialUpdateNetworkAreaPayloadGetNameRetType = string // PartialUpdateNetworkAreaPayload struct for PartialUpdateNetworkAreaPayload type PartialUpdateNetworkAreaPayload struct { AddressFamily PartialUpdateNetworkAreaPayloadGetAddressFamilyAttributeType `json:"addressFamily,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels PartialUpdateNetworkAreaPayloadGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name PartialUpdateNetworkAreaPayloadGetNameAttributeType `json:"name,omitempty"` diff --git a/services/iaas/model_partial_update_network_payload.go b/services/iaas/model_partial_update_network_payload.go index 7c9a09735..12d2e1280 100644 --- a/services/iaas/model_partial_update_network_payload.go +++ b/services/iaas/model_partial_update_network_payload.go @@ -123,7 +123,7 @@ type PartialUpdateNetworkPayload struct { AddressFamily PartialUpdateNetworkPayloadGetAddressFamilyAttributeType `json:"addressFamily,omitempty"` // Enable or disable DHCP for a network. Dhcp PartialUpdateNetworkPayloadgetDhcpAttributeType `json:"dhcp,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels PartialUpdateNetworkPayloadGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name PartialUpdateNetworkPayloadGetNameAttributeType `json:"name,omitempty"` diff --git a/services/iaas/model_public_ip.go b/services/iaas/model_public_ip.go index d53634d7f..e0ea851aa 100644 --- a/services/iaas/model_public_ip.go +++ b/services/iaas/model_public_ip.go @@ -110,7 +110,7 @@ type PublicIp struct { Id PublicIpGetIdAttributeType `json:"id,omitempty"` // Object that represents an IP address. Ip PublicIpGetIpAttributeType `json:"ip,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels PublicIpGetLabelsAttributeType `json:"labels,omitempty"` // Universally Unique Identifier (UUID). NetworkInterface PublicIpGetNetworkInterfaceAttributeType `json:"networkInterface,omitempty"` diff --git a/services/iaas/model_route.go b/services/iaas/model_route.go index 487b6c8c7..e25af0b95 100644 --- a/services/iaas/model_route.go +++ b/services/iaas/model_route.go @@ -145,7 +145,7 @@ func setRouteGetUpdatedAtAttributeType(arg *RouteGetUpdatedAtAttributeType, val type Route struct { // Date-time when resource was created. CreatedAt RouteGetCreatedAtAttributeType `json:"createdAt,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels RouteGetLabelsAttributeType `json:"labels,omitempty"` // Object that represents an IP address. // REQUIRED diff --git a/services/iaas/model_security_group.go b/services/iaas/model_security_group.go index 2cb4308f3..f7800cf34 100644 --- a/services/iaas/model_security_group.go +++ b/services/iaas/model_security_group.go @@ -189,7 +189,7 @@ type SecurityGroup struct { Description SecurityGroupGetDescriptionAttributeType `json:"description,omitempty"` // Universally Unique Identifier (UUID). Id SecurityGroupGetIdAttributeType `json:"id,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels SecurityGroupGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. // REQUIRED diff --git a/services/iaas/model_security_group_rule.go b/services/iaas/model_security_group_rule.go index 6a487e11a..54d98eaa3 100644 --- a/services/iaas/model_security_group_rule.go +++ b/services/iaas/model_security_group_rule.go @@ -12,11 +12,32 @@ package iaas import ( "encoding/json" + "time" ) // checks if the SecurityGroupRule type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SecurityGroupRule{} +/* + types and functions for createdAt +*/ + +// isDateTime +type SecurityGroupRuleGetCreatedAtAttributeType = *time.Time +type SecurityGroupRuleGetCreatedAtArgType = time.Time +type SecurityGroupRuleGetCreatedAtRetType = time.Time + +func getSecurityGroupRuleGetCreatedAtAttributeTypeOk(arg SecurityGroupRuleGetCreatedAtAttributeType) (ret SecurityGroupRuleGetCreatedAtRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setSecurityGroupRuleGetCreatedAtAttributeType(arg *SecurityGroupRuleGetCreatedAtAttributeType, val SecurityGroupRuleGetCreatedAtRetType) { + *arg = &val +} + /* types and functions for description */ @@ -204,6 +225,26 @@ func setSecurityGroupRuleGetSecurityGroupIdAttributeType(arg *SecurityGroupRuleG type SecurityGroupRuleGetSecurityGroupIdArgType = string type SecurityGroupRuleGetSecurityGroupIdRetType = string +/* + types and functions for updatedAt +*/ + +// isDateTime +type SecurityGroupRuleGetUpdatedAtAttributeType = *time.Time +type SecurityGroupRuleGetUpdatedAtArgType = time.Time +type SecurityGroupRuleGetUpdatedAtRetType = time.Time + +func getSecurityGroupRuleGetUpdatedAtAttributeTypeOk(arg SecurityGroupRuleGetUpdatedAtAttributeType) (ret SecurityGroupRuleGetUpdatedAtRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setSecurityGroupRuleGetUpdatedAtAttributeType(arg *SecurityGroupRuleGetUpdatedAtAttributeType, val SecurityGroupRuleGetUpdatedAtRetType) { + *arg = &val +} + /* types and functions for protocol */ @@ -226,6 +267,8 @@ func setSecurityGroupRuleGetProtocolAttributeType(arg *SecurityGroupRuleGetProto // SecurityGroupRule Object that represents a security group rule. type SecurityGroupRule struct { + // Date-time when resource was created. + CreatedAt SecurityGroupRuleGetCreatedAtAttributeType `json:"createdAt,omitempty"` // Description Object. Allows string up to 255 Characters. Description SecurityGroupRuleGetDescriptionAttributeType `json:"description,omitempty"` // The direction of the traffic which the rule should match. Possible values: `ingress`, `egress`. @@ -243,7 +286,9 @@ type SecurityGroupRule struct { RemoteSecurityGroupId SecurityGroupRuleGetRemoteSecurityGroupIdAttributeType `json:"remoteSecurityGroupId,omitempty"` // Universally Unique Identifier (UUID). SecurityGroupId SecurityGroupRuleGetSecurityGroupIdAttributeType `json:"securityGroupId,omitempty"` - Protocol SecurityGroupRuleGetProtocolAttributeType `json:"protocol,omitempty"` + // Date-time when resource was last updated. + UpdatedAt SecurityGroupRuleGetUpdatedAtAttributeType `json:"updatedAt,omitempty"` + Protocol SecurityGroupRuleGetProtocolAttributeType `json:"protocol,omitempty"` } type _SecurityGroupRule SecurityGroupRule @@ -268,6 +313,29 @@ func NewSecurityGroupRuleWithDefaults() *SecurityGroupRule { return &this } +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SecurityGroupRule) GetCreatedAt() (res SecurityGroupRuleGetCreatedAtRetType) { + res, _ = o.GetCreatedAtOk() + return +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityGroupRule) GetCreatedAtOk() (ret SecurityGroupRuleGetCreatedAtRetType, ok bool) { + return getSecurityGroupRuleGetCreatedAtAttributeTypeOk(o.CreatedAt) +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *SecurityGroupRule) HasCreatedAt() bool { + _, ok := o.GetCreatedAtOk() + return ok +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *SecurityGroupRule) SetCreatedAt(v SecurityGroupRuleGetCreatedAtRetType) { + setSecurityGroupRuleGetCreatedAtAttributeType(&o.CreatedAt, v) +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *SecurityGroupRule) GetDescription() (res SecurityGroupRuleGetDescriptionRetType) { res, _ = o.GetDescriptionOk() @@ -469,6 +537,29 @@ func (o *SecurityGroupRule) SetSecurityGroupId(v SecurityGroupRuleGetSecurityGro setSecurityGroupRuleGetSecurityGroupIdAttributeType(&o.SecurityGroupId, v) } +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *SecurityGroupRule) GetUpdatedAt() (res SecurityGroupRuleGetUpdatedAtRetType) { + res, _ = o.GetUpdatedAtOk() + return +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SecurityGroupRule) GetUpdatedAtOk() (ret SecurityGroupRuleGetUpdatedAtRetType, ok bool) { + return getSecurityGroupRuleGetUpdatedAtAttributeTypeOk(o.UpdatedAt) +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *SecurityGroupRule) HasUpdatedAt() bool { + _, ok := o.GetUpdatedAtOk() + return ok +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *SecurityGroupRule) SetUpdatedAt(v SecurityGroupRuleGetUpdatedAtRetType) { + setSecurityGroupRuleGetUpdatedAtAttributeType(&o.UpdatedAt, v) +} + // GetProtocol returns the Protocol field value if set, zero value otherwise. func (o *SecurityGroupRule) GetProtocol() (res SecurityGroupRuleGetProtocolRetType) { res, _ = o.GetProtocolOk() @@ -494,6 +585,9 @@ func (o *SecurityGroupRule) SetProtocol(v SecurityGroupRuleGetProtocolRetType) { func (o SecurityGroupRule) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if val, ok := getSecurityGroupRuleGetCreatedAtAttributeTypeOk(o.CreatedAt); ok { + toSerialize["CreatedAt"] = val + } if val, ok := getSecurityGroupRuleGetDescriptionAttributeTypeOk(o.Description); ok { toSerialize["Description"] = val } @@ -521,6 +615,9 @@ func (o SecurityGroupRule) ToMap() (map[string]interface{}, error) { if val, ok := getSecurityGroupRuleGetSecurityGroupIdAttributeTypeOk(o.SecurityGroupId); ok { toSerialize["SecurityGroupId"] = val } + if val, ok := getSecurityGroupRuleGetUpdatedAtAttributeTypeOk(o.UpdatedAt); ok { + toSerialize["UpdatedAt"] = val + } if val, ok := getSecurityGroupRuleGetProtocolAttributeTypeOk(o.Protocol); ok { toSerialize["Protocol"] = val } diff --git a/services/iaas/model_server.go b/services/iaas/model_server.go index 809448495..76e22cb33 100644 --- a/services/iaas/model_server.go +++ b/services/iaas/model_server.go @@ -39,6 +39,26 @@ func setServerGetAffinityGroupAttributeType(arg *ServerGetAffinityGroupAttribute type ServerGetAffinityGroupArgType = string type ServerGetAffinityGroupRetType = string +/* + types and functions for agent +*/ + +// isModel +type ServerGetAgentAttributeType = *ServerAgent +type ServerGetAgentArgType = ServerAgent +type ServerGetAgentRetType = ServerAgent + +func getServerGetAgentAttributeTypeOk(arg ServerGetAgentAttributeType) (ret ServerGetAgentRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setServerGetAgentAttributeType(arg *ServerGetAgentAttributeType, val ServerGetAgentRetType) { + *arg = &val +} + /* types and functions for availabilityZone */ @@ -492,6 +512,7 @@ func setServerGetVolumesAttributeType(arg *ServerGetVolumesAttributeType, val Se type Server struct { // Universally Unique Identifier (UUID). AffinityGroup ServerGetAffinityGroupAttributeType `json:"affinityGroup,omitempty"` + Agent ServerGetAgentAttributeType `json:"agent,omitempty"` // Object that represents an availability zone. AvailabilityZone ServerGetAvailabilityZoneAttributeType `json:"availabilityZone,omitempty"` BootVolume ServerGetBootVolumeAttributeType `json:"bootVolume,omitempty"` @@ -505,7 +526,7 @@ type Server struct { ImageId ServerGetImageIdAttributeType `json:"imageId,omitempty"` // The name of an SSH keypair. Allowed characters are letters [a-zA-Z], digits [0-9] and the following special characters: [@._-]. KeypairName ServerGetKeypairNameAttributeType `json:"keypairName,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels ServerGetLabelsAttributeType `json:"labels,omitempty"` // Date-time when resource was launched. LaunchedAt ServerGetLaunchedAtAttributeType `json:"launchedAt,omitempty"` @@ -581,6 +602,29 @@ func (o *Server) SetAffinityGroup(v ServerGetAffinityGroupRetType) { setServerGetAffinityGroupAttributeType(&o.AffinityGroup, v) } +// GetAgent returns the Agent field value if set, zero value otherwise. +func (o *Server) GetAgent() (res ServerGetAgentRetType) { + res, _ = o.GetAgentOk() + return +} + +// GetAgentOk returns a tuple with the Agent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Server) GetAgentOk() (ret ServerGetAgentRetType, ok bool) { + return getServerGetAgentAttributeTypeOk(o.Agent) +} + +// HasAgent returns a boolean if a field has been set. +func (o *Server) HasAgent() bool { + _, ok := o.GetAgentOk() + return ok +} + +// SetAgent gets a reference to the given ServerAgent and assigns it to the Agent field. +func (o *Server) SetAgent(v ServerGetAgentRetType) { + setServerGetAgentAttributeType(&o.Agent, v) +} + // GetAvailabilityZone returns the AvailabilityZone field value if set, zero value otherwise. func (o *Server) GetAvailabilityZone() (res ServerGetAvailabilityZoneRetType) { res, _ = o.GetAvailabilityZoneOk() @@ -1080,6 +1124,9 @@ func (o Server) ToMap() (map[string]interface{}, error) { if val, ok := getServerGetAffinityGroupAttributeTypeOk(o.AffinityGroup); ok { toSerialize["AffinityGroup"] = val } + if val, ok := getServerGetAgentAttributeTypeOk(o.Agent); ok { + toSerialize["Agent"] = val + } if val, ok := getServerGetAvailabilityZoneAttributeTypeOk(o.AvailabilityZone); ok { toSerialize["AvailabilityZone"] = val } diff --git a/services/iaas/model_server_agent.go b/services/iaas/model_server_agent.go new file mode 100644 index 000000000..6503dfaaf --- /dev/null +++ b/services/iaas/model_server_agent.go @@ -0,0 +1,128 @@ +/* +IaaS-API + +This API allows you to create and modify IaaS resources. + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package iaas + +import ( + "encoding/json" +) + +// checks if the ServerAgent type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServerAgent{} + +/* + types and functions for provisioned +*/ + +// isBoolean +type ServerAgentgetProvisionedAttributeType = *bool +type ServerAgentgetProvisionedArgType = bool +type ServerAgentgetProvisionedRetType = bool + +func getServerAgentgetProvisionedAttributeTypeOk(arg ServerAgentgetProvisionedAttributeType) (ret ServerAgentgetProvisionedRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setServerAgentgetProvisionedAttributeType(arg *ServerAgentgetProvisionedAttributeType, val ServerAgentgetProvisionedRetType) { + *arg = &val +} + +// ServerAgent STACKIT server agent options for a server. +type ServerAgent struct { + // Configure the STACKIT server agent provisioning during the first boot of the server. Only works when booting from an images that supports the STACKIT server agent. When `false` the agent IS NOT installed. When `true` the agent IS installed. When its not set the result depend on the used image and its default provisioning setting. + Provisioned ServerAgentgetProvisionedAttributeType `json:"provisioned,omitempty"` +} + +// NewServerAgent instantiates a new ServerAgent object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServerAgent() *ServerAgent { + this := ServerAgent{} + return &this +} + +// NewServerAgentWithDefaults instantiates a new ServerAgent object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServerAgentWithDefaults() *ServerAgent { + this := ServerAgent{} + return &this +} + +// GetProvisioned returns the Provisioned field value if set, zero value otherwise. +func (o *ServerAgent) GetProvisioned() (res ServerAgentgetProvisionedRetType) { + res, _ = o.GetProvisionedOk() + return +} + +// GetProvisionedOk returns a tuple with the Provisioned field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServerAgent) GetProvisionedOk() (ret ServerAgentgetProvisionedRetType, ok bool) { + return getServerAgentgetProvisionedAttributeTypeOk(o.Provisioned) +} + +// HasProvisioned returns a boolean if a field has been set. +func (o *ServerAgent) HasProvisioned() bool { + _, ok := o.GetProvisionedOk() + return ok +} + +// SetProvisioned gets a reference to the given bool and assigns it to the Provisioned field. +func (o *ServerAgent) SetProvisioned(v ServerAgentgetProvisionedRetType) { + setServerAgentgetProvisionedAttributeType(&o.Provisioned, v) +} + +func (o ServerAgent) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if val, ok := getServerAgentgetProvisionedAttributeTypeOk(o.Provisioned); ok { + toSerialize["Provisioned"] = val + } + return toSerialize, nil +} + +type NullableServerAgent struct { + value *ServerAgent + isSet bool +} + +func (v NullableServerAgent) Get() *ServerAgent { + return v.value +} + +func (v *NullableServerAgent) Set(val *ServerAgent) { + v.value = val + v.isSet = true +} + +func (v NullableServerAgent) IsSet() bool { + return v.isSet +} + +func (v *NullableServerAgent) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServerAgent(val *ServerAgent) *NullableServerAgent { + return &NullableServerAgent{value: val, isSet: true} +} + +func (v NullableServerAgent) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServerAgent) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/iaas/model_server_agent_test.go b/services/iaas/model_server_agent_test.go new file mode 100644 index 000000000..69a4aa858 --- /dev/null +++ b/services/iaas/model_server_agent_test.go @@ -0,0 +1,11 @@ +/* +IaaS-API + +This API allows you to create and modify IaaS resources. + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package iaas diff --git a/services/iaas/model_snapshot.go b/services/iaas/model_snapshot.go index c59ba389e..5ec17e33a 100644 --- a/services/iaas/model_snapshot.go +++ b/services/iaas/model_snapshot.go @@ -188,7 +188,7 @@ type Snapshot struct { CreatedAt SnapshotGetCreatedAtAttributeType `json:"createdAt,omitempty"` // Universally Unique Identifier (UUID). Id SnapshotGetIdAttributeType `json:"id,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels SnapshotGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name SnapshotGetNameAttributeType `json:"name,omitempty"` diff --git a/services/iaas/model_update_backup_payload.go b/services/iaas/model_update_backup_payload.go index d812b9659..56453f0a0 100644 --- a/services/iaas/model_update_backup_payload.go +++ b/services/iaas/model_update_backup_payload.go @@ -232,7 +232,7 @@ type UpdateBackupPayload struct { CreatedAt UpdateBackupPayloadGetCreatedAtAttributeType `json:"createdAt,omitempty"` // Universally Unique Identifier (UUID). Id UpdateBackupPayloadGetIdAttributeType `json:"id,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels UpdateBackupPayloadGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name UpdateBackupPayloadGetNameAttributeType `json:"name,omitempty"` diff --git a/services/iaas/model_update_image_payload.go b/services/iaas/model_update_image_payload.go index bf118a86a..b9d1af0c3 100644 --- a/services/iaas/model_update_image_payload.go +++ b/services/iaas/model_update_image_payload.go @@ -185,7 +185,7 @@ type UpdateImagePayload struct { Config UpdateImagePayloadGetConfigAttributeType `json:"config,omitempty"` // Object that represents a disk format. Possible values: `raw`, `qcow2`, `iso`. DiskFormat UpdateImagePayloadGetDiskFormatAttributeType `json:"diskFormat,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels UpdateImagePayloadGetLabelsAttributeType `json:"labels,omitempty"` // Size in Gigabyte. MinDiskSize UpdateImagePayloadGetMinDiskSizeAttributeType `json:"minDiskSize,omitempty"` diff --git a/services/iaas/model_update_key_pair_payload.go b/services/iaas/model_update_key_pair_payload.go index ed52e3778..dd9651bf2 100644 --- a/services/iaas/model_update_key_pair_payload.go +++ b/services/iaas/model_update_key_pair_payload.go @@ -39,7 +39,7 @@ func setUpdateKeyPairPayloadGetLabelsAttributeType(arg *UpdateKeyPairPayloadGetL // UpdateKeyPairPayload Object that represents an update request body of a public key of an SSH keypair. type UpdateKeyPairPayload struct { - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels UpdateKeyPairPayloadGetLabelsAttributeType `json:"labels,omitempty"` } diff --git a/services/iaas/model_update_network_area_route_payload.go b/services/iaas/model_update_network_area_route_payload.go index f2911712a..a7b4b7535 100644 --- a/services/iaas/model_update_network_area_route_payload.go +++ b/services/iaas/model_update_network_area_route_payload.go @@ -39,7 +39,7 @@ func setUpdateNetworkAreaRoutePayloadGetLabelsAttributeType(arg *UpdateNetworkAr // UpdateNetworkAreaRoutePayload Object that represents the request body for a route update. type UpdateNetworkAreaRoutePayload struct { - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels UpdateNetworkAreaRoutePayloadGetLabelsAttributeType `json:"labels,omitempty"` } diff --git a/services/iaas/model_update_nic_payload.go b/services/iaas/model_update_nic_payload.go index 58edd950d..07933fe42 100644 --- a/services/iaas/model_update_nic_payload.go +++ b/services/iaas/model_update_nic_payload.go @@ -37,6 +37,27 @@ func setUpdateNicPayloadGetAllowedAddressesAttributeType(arg *UpdateNicPayloadGe *arg = &val } +/* + types and functions for description +*/ + +// isNotNullableString +type UpdateNicPayloadGetDescriptionAttributeType = *string + +func getUpdateNicPayloadGetDescriptionAttributeTypeOk(arg UpdateNicPayloadGetDescriptionAttributeType) (ret UpdateNicPayloadGetDescriptionRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setUpdateNicPayloadGetDescriptionAttributeType(arg *UpdateNicPayloadGetDescriptionAttributeType, val UpdateNicPayloadGetDescriptionRetType) { + *arg = &val +} + +type UpdateNicPayloadGetDescriptionArgType = string +type UpdateNicPayloadGetDescriptionRetType = string + /* types and functions for labels */ @@ -122,7 +143,9 @@ func setUpdateNicPayloadGetSecurityGroupsAttributeType(arg *UpdateNicPayloadGetS type UpdateNicPayload struct { // A list of IPs or CIDR notations. AllowedAddresses UpdateNicPayloadGetAllowedAddressesAttributeType `json:"allowedAddresses,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Description Object. Allows string up to 255 Characters. + Description UpdateNicPayloadGetDescriptionAttributeType `json:"description,omitempty"` + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels UpdateNicPayloadGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name UpdateNicPayloadGetNameAttributeType `json:"name,omitempty"` @@ -172,6 +195,29 @@ func (o *UpdateNicPayload) SetAllowedAddresses(v UpdateNicPayloadGetAllowedAddre setUpdateNicPayloadGetAllowedAddressesAttributeType(&o.AllowedAddresses, v) } +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *UpdateNicPayload) GetDescription() (res UpdateNicPayloadGetDescriptionRetType) { + res, _ = o.GetDescriptionOk() + return +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateNicPayload) GetDescriptionOk() (ret UpdateNicPayloadGetDescriptionRetType, ok bool) { + return getUpdateNicPayloadGetDescriptionAttributeTypeOk(o.Description) +} + +// HasDescription returns a boolean if a field has been set. +func (o *UpdateNicPayload) HasDescription() bool { + _, ok := o.GetDescriptionOk() + return ok +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *UpdateNicPayload) SetDescription(v UpdateNicPayloadGetDescriptionRetType) { + setUpdateNicPayloadGetDescriptionAttributeType(&o.Description, v) +} + // GetLabels returns the Labels field value if set, zero value otherwise. func (o *UpdateNicPayload) GetLabels() (res UpdateNicPayloadGetLabelsRetType) { res, _ = o.GetLabelsOk() @@ -269,6 +315,9 @@ func (o UpdateNicPayload) ToMap() (map[string]interface{}, error) { if val, ok := getUpdateNicPayloadGetAllowedAddressesAttributeTypeOk(o.AllowedAddresses); ok { toSerialize["AllowedAddresses"] = val } + if val, ok := getUpdateNicPayloadGetDescriptionAttributeTypeOk(o.Description); ok { + toSerialize["Description"] = val + } if val, ok := getUpdateNicPayloadGetLabelsAttributeTypeOk(o.Labels); ok { toSerialize["Labels"] = val } diff --git a/services/iaas/model_update_public_ip_payload.go b/services/iaas/model_update_public_ip_payload.go index 6cc466230..39da8a737 100644 --- a/services/iaas/model_update_public_ip_payload.go +++ b/services/iaas/model_update_public_ip_payload.go @@ -110,7 +110,7 @@ type UpdatePublicIPPayload struct { Id UpdatePublicIPPayloadGetIdAttributeType `json:"id,omitempty"` // Object that represents an IP address. Ip UpdatePublicIPPayloadGetIpAttributeType `json:"ip,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels UpdatePublicIPPayloadGetLabelsAttributeType `json:"labels,omitempty"` // Universally Unique Identifier (UUID). NetworkInterface UpdatePublicIPPayloadGetNetworkInterfaceAttributeType `json:"networkInterface,omitempty"` diff --git a/services/iaas/model_update_security_group_payload.go b/services/iaas/model_update_security_group_payload.go index 90db42133..94bfb1f35 100644 --- a/services/iaas/model_update_security_group_payload.go +++ b/services/iaas/model_update_security_group_payload.go @@ -83,7 +83,7 @@ type UpdateSecurityGroupPayloadGetNameRetType = string type UpdateSecurityGroupPayload struct { // Description Object. Allows string up to 255 Characters. Description UpdateSecurityGroupPayloadGetDescriptionAttributeType `json:"description,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels UpdateSecurityGroupPayloadGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name UpdateSecurityGroupPayloadGetNameAttributeType `json:"name,omitempty"` diff --git a/services/iaas/model_update_server_payload.go b/services/iaas/model_update_server_payload.go index 4b25eff6a..8022915ab 100644 --- a/services/iaas/model_update_server_payload.go +++ b/services/iaas/model_update_server_payload.go @@ -80,7 +80,7 @@ type UpdateServerPayloadGetNameRetType = string // UpdateServerPayload Object that represents an update request body of a server. type UpdateServerPayload struct { - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels UpdateServerPayloadGetLabelsAttributeType `json:"labels,omitempty"` // Object that represents the metadata of an object. Regex for keys: `^[a-zA-Z0-9-_:. ]{1,255}$`. Regex for values: `^.{0,255}$`. Providing a `null` value for a key will remove that key. Metadata UpdateServerPayloadGetMetadataAttributeType `json:"metadata,omitempty"` diff --git a/services/iaas/model_update_snapshot_payload.go b/services/iaas/model_update_snapshot_payload.go index 5db8cbd19..b4261ea11 100644 --- a/services/iaas/model_update_snapshot_payload.go +++ b/services/iaas/model_update_snapshot_payload.go @@ -60,7 +60,7 @@ type UpdateSnapshotPayloadGetNameRetType = string // UpdateSnapshotPayload Object that represents an update request body of a snapshot. type UpdateSnapshotPayload struct { - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels UpdateSnapshotPayloadGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name UpdateSnapshotPayloadGetNameAttributeType `json:"name,omitempty"` diff --git a/services/iaas/model_update_volume_payload.go b/services/iaas/model_update_volume_payload.go index fc92dc764..0f53088e9 100644 --- a/services/iaas/model_update_volume_payload.go +++ b/services/iaas/model_update_volume_payload.go @@ -126,7 +126,7 @@ type UpdateVolumePayload struct { // Description Object. Allows string up to 255 Characters. Description UpdateVolumePayloadGetDescriptionAttributeType `json:"description,omitempty"` ImageConfig UpdateVolumePayloadGetImageConfigAttributeType `json:"imageConfig,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels UpdateVolumePayloadGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name UpdateVolumePayloadGetNameAttributeType `json:"name,omitempty"` diff --git a/services/iaas/model_volume.go b/services/iaas/model_volume.go index a77d4f32b..eecc77104 100644 --- a/services/iaas/model_volume.go +++ b/services/iaas/model_volume.go @@ -362,7 +362,7 @@ type Volume struct { // Universally Unique Identifier (UUID). Id VolumeGetIdAttributeType `json:"id,omitempty"` ImageConfig VolumeGetImageConfigAttributeType `json:"imageConfig,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels VolumeGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name VolumeGetNameAttributeType `json:"name,omitempty"` diff --git a/services/iaas/model_volume_performance_class.go b/services/iaas/model_volume_performance_class.go index f2a7ad7d3..3d809fed4 100644 --- a/services/iaas/model_volume_performance_class.go +++ b/services/iaas/model_volume_performance_class.go @@ -125,7 +125,7 @@ type VolumePerformanceClass struct { Description VolumePerformanceClassGetDescriptionAttributeType `json:"description,omitempty"` // Input/Output Operations per second. Iops VolumePerformanceClassGetIopsAttributeType `json:"iops,omitempty"` - // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Providing a `null` value for a key will remove that key. + // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels VolumePerformanceClassGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. // REQUIRED