From d3868a07cc5edefc16dad78423a4185b1a2bffa0 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Fri, 27 Sep 2024 17:14:19 +0100 Subject: [PATCH] Generate iaasalpha --- services/iaasalpha/model_create_nic_payload.go | 18 ++++++------------ .../model_create_security_group_payload.go | 6 ++---- ...model_create_security_group_rule_payload.go | 6 ++---- .../iaasalpha/model_create_volume_payload.go | 6 ++---- services/iaasalpha/model_network_range.go | 3 +-- services/iaasalpha/model_nic.go | 18 ++++++------------ services/iaasalpha/model_route.go | 3 +-- services/iaasalpha/model_security_group.go | 6 ++---- .../iaasalpha/model_security_group_rule.go | 6 ++---- services/iaasalpha/model_update_nic_payload.go | 18 ++++++------------ services/iaasalpha/model_volume.go | 6 ++---- 11 files changed, 32 insertions(+), 64 deletions(-) diff --git a/services/iaasalpha/model_create_nic_payload.go b/services/iaasalpha/model_create_nic_payload.go index a976bea59..53c38d42e 100644 --- a/services/iaasalpha/model_create_nic_payload.go +++ b/services/iaasalpha/model_create_nic_payload.go @@ -15,11 +15,9 @@ type CreateNICPayload struct { // A list of IPs or CIDR notations. AllowedAddresses *[]AllowedAddressesInner `json:"allowedAddresses,omitempty"` // Universally Unique Identifier (UUID). - // REQUIRED - Device *string `json:"device"` + Device *string `json:"device,omitempty"` // Universally Unique Identifier (UUID). - // REQUIRED - Id *string `json:"id"` + Id *string `json:"id,omitempty"` // Object that represents an IP address. Ipv4 *string `json:"ipv4,omitempty"` // Object that represents an IPv6 address. @@ -27,19 +25,15 @@ type CreateNICPayload struct { // Object that represents the labels of an object. Labels *map[string]interface{} `json:"labels,omitempty"` // Object that represents an MAC address. - // REQUIRED - Mac *string `json:"mac"` + Mac *string `json:"mac,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name *string `json:"name,omitempty"` // Universally Unique Identifier (UUID). - // REQUIRED - NetworkId *string `json:"networkId"` + NetworkId *string `json:"networkId,omitempty"` // If this is set to false, then no security groups will apply to this network interface. NicSecurity *bool `json:"nicSecurity,omitempty"` // A list of UUIDs. SecurityGroups *[]string `json:"securityGroups,omitempty"` - // REQUIRED - Status *string `json:"status"` - // REQUIRED - Type *string `json:"type"` + Status *string `json:"status,omitempty"` + Type *string `json:"type,omitempty"` } diff --git a/services/iaasalpha/model_create_security_group_payload.go b/services/iaasalpha/model_create_security_group_payload.go index a5bbfbca2..f225beb25 100644 --- a/services/iaasalpha/model_create_security_group_payload.go +++ b/services/iaasalpha/model_create_security_group_payload.go @@ -15,16 +15,14 @@ type CreateSecurityGroupPayload struct { // Description Object. Allows string up to 127 Characters. Description *string `json:"description,omitempty"` // Universally Unique Identifier (UUID). - // REQUIRED - Id *string `json:"id"` + Id *string `json:"id,omitempty"` // Object that represents the labels of an object. Labels *map[string]interface{} `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. // REQUIRED Name *string `json:"name"` // A list containing security group rule objects. - // REQUIRED - Rules *[]SecurityGroupRule `json:"rules"` + Rules *[]SecurityGroupRule `json:"rules,omitempty"` // Shows if a security group is stateful or stateless. You can only have one type of security groups per network interface/server. Stateful *bool `json:"stateful,omitempty"` } diff --git a/services/iaasalpha/model_create_security_group_rule_payload.go b/services/iaasalpha/model_create_security_group_rule_payload.go index bc77ec55b..1565d3d5b 100644 --- a/services/iaasalpha/model_create_security_group_rule_payload.go +++ b/services/iaasalpha/model_create_security_group_rule_payload.go @@ -21,8 +21,7 @@ type CreateSecurityGroupRulePayload struct { Ethertype *string `json:"ethertype,omitempty"` IcmpParameters *ICMPParameters `json:"icmpParameters,omitempty"` // Universally Unique Identifier (UUID). - // REQUIRED - Id *string `json:"id"` + Id *string `json:"id,omitempty"` // Classless Inter-Domain Routing (CIDR). IpRange *string `json:"ipRange,omitempty"` PortRange *PortRange `json:"portRange,omitempty"` @@ -30,6 +29,5 @@ type CreateSecurityGroupRulePayload struct { // Universally Unique Identifier (UUID). RemoteSecurityGroupId *string `json:"remoteSecurityGroupId,omitempty"` // Universally Unique Identifier (UUID). - // REQUIRED - SecurityGroupId *string `json:"securityGroupId"` + SecurityGroupId *string `json:"securityGroupId,omitempty"` } diff --git a/services/iaasalpha/model_create_volume_payload.go b/services/iaasalpha/model_create_volume_payload.go index d50128b0a..d5b0c2a09 100644 --- a/services/iaasalpha/model_create_volume_payload.go +++ b/services/iaasalpha/model_create_volume_payload.go @@ -18,8 +18,7 @@ type CreateVolumePayload struct { // Description Object. Allows string up to 127 Characters. Description *string `json:"description,omitempty"` // Universally Unique Identifier (UUID). - // REQUIRED - Id *string `json:"id"` + Id *string `json:"id,omitempty"` // Object that represents the labels of an object. Labels *map[string]interface{} `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. @@ -32,6 +31,5 @@ type CreateVolumePayload struct { Size *int64 `json:"size,omitempty"` Source *CreateVolumePayloadSource `json:"source,omitempty"` // The status of a volume object. - // REQUIRED - Status *string `json:"status"` + Status *string `json:"status,omitempty"` } diff --git a/services/iaasalpha/model_network_range.go b/services/iaasalpha/model_network_range.go index 72199e6f5..682f37592 100644 --- a/services/iaasalpha/model_network_range.go +++ b/services/iaasalpha/model_network_range.go @@ -13,8 +13,7 @@ package iaasalpha // NetworkRange Object that represents a network range. type NetworkRange struct { // Universally Unique Identifier (UUID). - // REQUIRED - NetworkRangeId *string `json:"networkRangeId"` + NetworkRangeId *string `json:"networkRangeId,omitempty"` // Classless Inter-Domain Routing (CIDR). // REQUIRED Prefix *string `json:"prefix"` diff --git a/services/iaasalpha/model_nic.go b/services/iaasalpha/model_nic.go index 07244f827..e63a308c4 100644 --- a/services/iaasalpha/model_nic.go +++ b/services/iaasalpha/model_nic.go @@ -15,11 +15,9 @@ type NIC struct { // A list of IPs or CIDR notations. AllowedAddresses *[]AllowedAddressesInner `json:"allowedAddresses,omitempty"` // Universally Unique Identifier (UUID). - // REQUIRED - Device *string `json:"device"` + Device *string `json:"device,omitempty"` // Universally Unique Identifier (UUID). - // REQUIRED - Id *string `json:"id"` + Id *string `json:"id,omitempty"` // Object that represents an IP address. Ipv4 *string `json:"ipv4,omitempty"` // Object that represents an IPv6 address. @@ -27,19 +25,15 @@ type NIC struct { // Object that represents the labels of an object. Labels *map[string]interface{} `json:"labels,omitempty"` // Object that represents an MAC address. - // REQUIRED - Mac *string `json:"mac"` + Mac *string `json:"mac,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name *string `json:"name,omitempty"` // Universally Unique Identifier (UUID). - // REQUIRED - NetworkId *string `json:"networkId"` + NetworkId *string `json:"networkId,omitempty"` // If this is set to false, then no security groups will apply to this network interface. NicSecurity *bool `json:"nicSecurity,omitempty"` // A list of UUIDs. SecurityGroups *[]string `json:"securityGroups,omitempty"` - // REQUIRED - Status *string `json:"status"` - // REQUIRED - Type *string `json:"type"` + Status *string `json:"status,omitempty"` + Type *string `json:"type,omitempty"` } diff --git a/services/iaasalpha/model_route.go b/services/iaasalpha/model_route.go index b2b39aad3..bd76a9419 100644 --- a/services/iaasalpha/model_route.go +++ b/services/iaasalpha/model_route.go @@ -21,6 +21,5 @@ type Route struct { // REQUIRED Prefix *string `json:"prefix"` // Universally Unique Identifier (UUID). - // REQUIRED - RouteId *string `json:"routeId"` + RouteId *string `json:"routeId,omitempty"` } diff --git a/services/iaasalpha/model_security_group.go b/services/iaasalpha/model_security_group.go index 1822ee78f..cc616916c 100644 --- a/services/iaasalpha/model_security_group.go +++ b/services/iaasalpha/model_security_group.go @@ -15,16 +15,14 @@ type SecurityGroup struct { // Description Object. Allows string up to 127 Characters. Description *string `json:"description,omitempty"` // Universally Unique Identifier (UUID). - // REQUIRED - Id *string `json:"id"` + Id *string `json:"id,omitempty"` // Object that represents the labels of an object. Labels *map[string]interface{} `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. // REQUIRED Name *string `json:"name"` // A list containing security group rule objects. - // REQUIRED - Rules *[]SecurityGroupRule `json:"rules"` + Rules *[]SecurityGroupRule `json:"rules,omitempty"` // Shows if a security group is stateful or stateless. You can only have one type of security groups per network interface/server. Stateful *bool `json:"stateful,omitempty"` } diff --git a/services/iaasalpha/model_security_group_rule.go b/services/iaasalpha/model_security_group_rule.go index 75e1c3aa4..a005ad48a 100644 --- a/services/iaasalpha/model_security_group_rule.go +++ b/services/iaasalpha/model_security_group_rule.go @@ -21,8 +21,7 @@ type SecurityGroupRule struct { Ethertype *string `json:"ethertype,omitempty"` IcmpParameters *ICMPParameters `json:"icmpParameters,omitempty"` // Universally Unique Identifier (UUID). - // REQUIRED - Id *string `json:"id"` + Id *string `json:"id,omitempty"` // Classless Inter-Domain Routing (CIDR). IpRange *string `json:"ipRange,omitempty"` PortRange *PortRange `json:"portRange,omitempty"` @@ -30,6 +29,5 @@ type SecurityGroupRule struct { // Universally Unique Identifier (UUID). RemoteSecurityGroupId *string `json:"remoteSecurityGroupId,omitempty"` // Universally Unique Identifier (UUID). - // REQUIRED - SecurityGroupId *string `json:"securityGroupId"` + SecurityGroupId *string `json:"securityGroupId,omitempty"` } diff --git a/services/iaasalpha/model_update_nic_payload.go b/services/iaasalpha/model_update_nic_payload.go index db4916364..60b397eda 100644 --- a/services/iaasalpha/model_update_nic_payload.go +++ b/services/iaasalpha/model_update_nic_payload.go @@ -15,11 +15,9 @@ type UpdateNICPayload struct { // A list of IPs or CIDR notations. AllowedAddresses *[]AllowedAddressesInner `json:"allowedAddresses,omitempty"` // Universally Unique Identifier (UUID). - // REQUIRED - Device *string `json:"device"` + Device *string `json:"device,omitempty"` // Universally Unique Identifier (UUID). - // REQUIRED - Id *string `json:"id"` + Id *string `json:"id,omitempty"` // Object that represents an IP address. Ipv4 *string `json:"ipv4,omitempty"` // Object that represents an IPv6 address. @@ -27,19 +25,15 @@ type UpdateNICPayload struct { // Object that represents the labels of an object. Labels *map[string]interface{} `json:"labels,omitempty"` // Object that represents an MAC address. - // REQUIRED - Mac *string `json:"mac"` + Mac *string `json:"mac,omitempty"` // The name for a General Object. Matches Names and also UUIDs. Name *string `json:"name,omitempty"` // Universally Unique Identifier (UUID). - // REQUIRED - NetworkId *string `json:"networkId"` + NetworkId *string `json:"networkId,omitempty"` // If this is set to false, then no security groups will apply to this network interface. NicSecurity *bool `json:"nicSecurity,omitempty"` // A list of UUIDs. SecurityGroups *[]string `json:"securityGroups,omitempty"` - // REQUIRED - Status *string `json:"status"` - // REQUIRED - Type *string `json:"type"` + Status *string `json:"status,omitempty"` + Type *string `json:"type,omitempty"` } diff --git a/services/iaasalpha/model_volume.go b/services/iaasalpha/model_volume.go index ebc2ac28b..ce1b919cf 100644 --- a/services/iaasalpha/model_volume.go +++ b/services/iaasalpha/model_volume.go @@ -18,8 +18,7 @@ type Volume struct { // Description Object. Allows string up to 127 Characters. Description *string `json:"description,omitempty"` // Universally Unique Identifier (UUID). - // REQUIRED - Id *string `json:"id"` + Id *string `json:"id,omitempty"` // Object that represents the labels of an object. Labels *map[string]interface{} `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. @@ -32,6 +31,5 @@ type Volume struct { Size *int64 `json:"size,omitempty"` Source *CreateVolumePayloadSource `json:"source,omitempty"` // The status of a volume object. - // REQUIRED - Status *string `json:"status"` + Status *string `json:"status,omitempty"` }