diff --git a/next/core/core.go b/next/core/core.go index 4fb39ea..84190c6 100644 --- a/next/core/core.go +++ b/next/core/core.go @@ -23,6 +23,11 @@ const ( AuthenticatorScopes = "Authenticator.Scopes" ) +// Defines values for APITokenNotFoundEnum. +const ( + ApiTokenNotFound APITokenNotFoundEnum = "api_token_not_found" +) + // Defines values for AddressListEntryNotFoundEnum. const ( AddressListEntryNotFound AddressListEntryNotFoundEnum = "address_list_entry_not_found" @@ -429,6 +434,11 @@ const ( UDP SecurityGroupRuleProtocolEnum = "UDP" ) +// Defines values for ServiceUnavailableEnum. +const ( + ServiceUnavailable ServiceUnavailableEnum = "service_unavailable" +) + // Defines values for SpeedProfileAlreadyAssignedEnum. const ( SpeedProfileAlreadyAssigned SpeedProfileAlreadyAssignedEnum = "speed_profile_already_assigned" @@ -628,6 +638,43 @@ type APIAuthenticator400Schema struct { Detail *map[string]interface{} `json:"detail,omitempty"` } +// APIAuthenticator503Schema The service is currently unavailable, please try again later +type APIAuthenticator503Schema struct { + Code *ServiceUnavailableEnum `json:"code,omitempty"` + Description *string `json:"description,omitempty"` + Detail *map[string]interface{} `json:"detail,omitempty"` +} + +// APIToken defines model for APIToken. +type APIToken struct { + AuthorizedIpAddresses *[]string `json:"authorized_ip_addresses,omitempty"` + ExpiresAt nullable.Nullable[int] `json:"expires_at,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + OrganizationId nullable.Nullable[string] `json:"organization_id,omitempty"` + RateLimit *int `json:"rate_limit,omitempty"` + Scopes *[]string `json:"scopes,omitempty"` + + // Secret The secret will only be returned on token creation or when a new secret is generated. + Secret nullable.Nullable[string] `json:"secret,omitempty"` +} + +// APITokenArguments All 'properties[]' params are mutually exclusive, only one can be provided. +type APITokenArguments struct { + AuthorizedIpAddresses *[]string `json:"authorized_ip_addresses,omitempty"` + ExpiresAt *int `json:"expires_at,omitempty"` + Name *string `json:"name,omitempty"` + Scopes *[]string `json:"scopes,omitempty"` +} + +// APITokenLookup All 'api_token[]' params are mutually exclusive, only one can be provided. +type APITokenLookup struct { + Id *string `json:"id,omitempty"` +} + +// APITokenNotFoundEnum defines model for APITokenNotFoundEnum. +type APITokenNotFoundEnum string + // AddressList defines model for AddressList. type AddressList struct { Entries *[]AddressListEntry `json:"entries,omitempty"` @@ -977,10 +1024,10 @@ type DNSZoneNotVerifiedEnum string // DataCenter defines model for DataCenter. type DataCenter struct { - Country *Country `json:"country,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Country *Country `json:"country,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // DataCenterLookup All 'data_center[]' params are mutually exclusive, only one can be provided. @@ -1005,6 +1052,12 @@ type DecimalOrUnlimited struct { Value nullable.Nullable[float32] `json:"value,omitempty"` } +// DeleteAPIToken200ResponseAPIToken defines model for DeleteAPIToken200ResponseAPIToken. +type DeleteAPIToken200ResponseAPIToken struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` +} + // DeleteDisk200ResponseDisk defines model for DeleteDisk200ResponseDisk. type DeleteDisk200ResponseDisk struct { BusType nullable.Nullable[DiskBusEnum] `json:"bus_type,omitempty"` @@ -1035,9 +1088,9 @@ type DeleteDiskBackupPolicySchedule200ResponseDiskBackupPolicy struct { // DeleteDiskPartDataCenter defines model for DeleteDiskPartDataCenter. type DeleteDiskPartDataCenter struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // DeleteDiskPartVirtualMachine defines model for DeleteDiskPartVirtualMachine. @@ -1071,9 +1124,9 @@ type DeleteFileStorageVolume200ResponseFileStorageVolume struct { // DeleteFileStorageVolumePartDataCenter defines model for DeleteFileStorageVolumePartDataCenter. type DeleteFileStorageVolumePartDataCenter struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // DeleteLoadBalancer200ResponseLoadBalancer defines model for DeleteLoadBalancer200ResponseLoadBalancer. @@ -1393,7 +1446,7 @@ type GetDataCenter200ResponseDataCenter struct { Country *GetDataCenterPartCountry `json:"country,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // GetDataCenterDefaultNetwork200ResponseNetwork defines model for GetDataCenterDefaultNetwork200ResponseNetwork. @@ -1406,9 +1459,9 @@ type GetDataCenterDefaultNetwork200ResponseNetwork struct { // GetDataCenterDefaultNetworkPartDataCenter defines model for GetDataCenterDefaultNetworkPartDataCenter. type GetDataCenterDefaultNetworkPartDataCenter struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // GetDataCenterGPUTypes200ResponseGPUTypes defines model for GetDataCenterGPUTypes200ResponseGPUTypes. @@ -1432,7 +1485,7 @@ type GetDataCenters200ResponseDataCenters struct { Country *GetDataCentersPartCountry `json:"country,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // GetDataCentersPartCountry defines model for GetDataCentersPartCountry. @@ -1484,9 +1537,9 @@ type GetDiskDiskBackupPoliciesPartSchedule struct { // GetDiskPartDataCenter defines model for GetDiskPartDataCenter. type GetDiskPartDataCenter struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // GetDiskPartVirtualMachine defines model for GetDiskPartVirtualMachine. @@ -1583,9 +1636,9 @@ type GetFileStorageVolume200ResponseFileStorageVolume struct { // GetFileStorageVolumePartDataCenter defines model for GetFileStorageVolumePartDataCenter. type GetFileStorageVolumePartDataCenter struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // GetGPUType200ResponseGPUType defines model for GetGPUType200ResponseGPUType. @@ -1601,9 +1654,9 @@ type GetGPUType200ResponseGPUType struct { // GetGPUTypePartDataCenters defines model for GetGPUTypePartDataCenters. type GetGPUTypePartDataCenters struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // GetGPUTypes200ResponseGPUTypes defines model for GetGPUTypes200ResponseGPUTypes. @@ -1619,9 +1672,9 @@ type GetGPUTypes200ResponseGPUTypes struct { // GetGPUTypesPartDataCenters defines model for GetGPUTypesPartDataCenters. type GetGPUTypesPartDataCenters struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // GetIPAddress200ResponseAllocation defines model for GetIPAddress200ResponseAllocation. @@ -1650,9 +1703,9 @@ type GetLoadBalancer200ResponseLoadBalancer struct { // GetLoadBalancerPartDataCenter defines model for GetLoadBalancerPartDataCenter. type GetLoadBalancerPartDataCenter struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // GetLoadBalancerPartIPAddress defines model for GetLoadBalancerPartIPAddress. @@ -1747,9 +1800,9 @@ type GetOrganizationAvailableNetworks200ResponseVirtualNetworks struct { // GetOrganizationAvailableNetworksPartDataCenter defines model for GetOrganizationAvailableNetworksPartDataCenter. type GetOrganizationAvailableNetworksPartDataCenter struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // GetOrganizationCertificates200ResponseCertificates defines model for GetOrganizationCertificates200ResponseCertificates. @@ -1838,9 +1891,9 @@ type GetOrganizationFileStorageVolumes200ResponseFileStorageVolumes struct { // GetOrganizationFileStorageVolumesPartDataCenter defines model for GetOrganizationFileStorageVolumesPartDataCenter. type GetOrganizationFileStorageVolumesPartDataCenter struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // GetOrganizationIPAddresses200ResponseIPAddresses defines model for GetOrganizationIPAddresses200ResponseIPAddresses. @@ -1930,13 +1983,14 @@ type GetOrganizationVirtualMachinesPartPackage struct { // GetOrganizations200ResponseOrganizations defines model for GetOrganizations200ResponseOrganizations. type GetOrganizations200ResponseOrganizations struct { - CreatedAt *int `json:"created_at,omitempty"` - Id *string `json:"id,omitempty"` - InfrastructureDomain *string `json:"infrastructure_domain,omitempty"` - Managed *bool `json:"managed,omitempty"` - Name *string `json:"name,omitempty"` - SubDomain *string `json:"sub_domain,omitempty"` - Suspended *bool `json:"suspended,omitempty"` + ActivatedAt nullable.Nullable[int] `json:"activated_at,omitempty"` + CreatedAt *int `json:"created_at,omitempty"` + Id *string `json:"id,omitempty"` + InfrastructureDomain *string `json:"infrastructure_domain,omitempty"` + Managed *bool `json:"managed,omitempty"` + Name *string `json:"name,omitempty"` + SubDomain *string `json:"sub_domain,omitempty"` + Suspended *bool `json:"suspended,omitempty"` } // GetSecurityGroupRules200ResponseSecurityGroupRules defines model for GetSecurityGroupRules200ResponseSecurityGroupRules. @@ -2175,9 +2229,9 @@ type GetZones200ResponseZones struct { // GetZonesPartDataCenter defines model for GetZonesPartDataCenter. type GetZonesPartDataCenter struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // IPAddress defines model for IPAddress. @@ -2314,7 +2368,7 @@ type InvalidTimestampSchema struct { // IssuerEnum defines model for IssuerEnum. type IssuerEnum string -// KeyValue All 'disk_template_options[]' params are mutually exclusive, only one can be provided. +// KeyValue All 'annotations[]' params are mutually exclusive, only one can be provided. type KeyValue struct { Key string `json:"key"` Value *string `json:"value,omitempty"` @@ -2477,6 +2531,13 @@ type NoAllocationEnum string // NoAvailableAddressesEnum defines model for NoAvailableAddressesEnum. type NoAvailableAddressesEnum string +// NoAvailableAddressesSchema Our pool of addresses for that version seems to have run dry. If this issue continues, please contact support. +type NoAvailableAddressesSchema struct { + Code *NoAvailableAddressesEnum `json:"code,omitempty"` + Description *string `json:"description,omitempty"` + Detail *map[string]interface{} `json:"detail,omitempty"` +} + // NoInterfaceAvailableEnum defines model for NoInterfaceAvailableEnum. type NoInterfaceAvailableEnum string @@ -2588,6 +2649,11 @@ type OneOfNetworkSpeedProfileNotFoundVirtualMachineNetworkInterfaceNotFound404Re union json.RawMessage } +// OneOfNoAvailableAddresses503Res defines model for OneOfNoAvailableAddresses503Res. +type OneOfNoAvailableAddresses503Res struct { + union json.RawMessage +} + // OneOfObjectInTrashTaskQueueingError406Res defines model for OneOfObjectInTrashTaskQueueingError406Res. type OneOfObjectInTrashTaskQueueingError406Res struct { union json.RawMessage @@ -2657,6 +2723,7 @@ type OperatingSystemNotFoundSchema struct { // Organization defines model for Organization. type Organization struct { + ActivatedAt nullable.Nullable[int] `json:"activated_at,omitempty"` Address1 nullable.Nullable[string] `json:"address1,omitempty"` Address2 nullable.Nullable[string] `json:"address2,omitempty"` Address3 nullable.Nullable[string] `json:"address3,omitempty"` @@ -2789,9 +2856,9 @@ type PatchDiskBackupPolicy200ResponseDiskBackupPolicy struct { // PatchDiskPartDataCenter defines model for PatchDiskPartDataCenter. type PatchDiskPartDataCenter struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // PatchDiskPartVirtualMachine defines model for PatchDiskPartVirtualMachine. @@ -2825,9 +2892,9 @@ type PatchFileStorageVolume200ResponseFileStorageVolume struct { // PatchFileStorageVolumePartDataCenter defines model for PatchFileStorageVolumePartDataCenter. type PatchFileStorageVolumePartDataCenter struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // PatchLoadBalancer200ResponseLoadBalancer defines model for PatchLoadBalancer200ResponseLoadBalancer. @@ -2850,9 +2917,9 @@ type PatchLoadBalancer200ResponseLoadBalancer struct { // PatchLoadBalancerPartDataCenter defines model for PatchLoadBalancerPartDataCenter. type PatchLoadBalancerPartDataCenter struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // PatchLoadBalancerPartIPAddress defines model for PatchLoadBalancerPartIPAddress. @@ -2984,9 +3051,9 @@ type PostDiskAssign200ResponseDisk struct { // PostDiskAssignPartDataCenter defines model for PostDiskAssignPartDataCenter. type PostDiskAssignPartDataCenter struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // PostDiskAssignPartVirtualMachine defines model for PostDiskAssignPartVirtualMachine. @@ -3021,9 +3088,9 @@ type PostDiskAttach200ResponseDisk struct { // PostDiskAttachPartDataCenter defines model for PostDiskAttachPartDataCenter. type PostDiskAttachPartDataCenter struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // PostDiskAttachPartVirtualMachine defines model for PostDiskAttachPartVirtualMachine. @@ -3058,9 +3125,9 @@ type PostDiskDetach200ResponseDisk struct { // PostDiskDetachPartDataCenter defines model for PostDiskDetachPartDataCenter. type PostDiskDetachPartDataCenter struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // PostDiskDetachPartVirtualMachine defines model for PostDiskDetachPartVirtualMachine. @@ -3105,9 +3172,9 @@ type PostDiskUnassign200ResponseDisk struct { // PostDiskUnassignPartDataCenter defines model for PostDiskUnassignPartDataCenter. type PostDiskUnassignPartDataCenter struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // PostDiskUnassignPartVirtualMachine defines model for PostDiskUnassignPartVirtualMachine. @@ -3178,9 +3245,9 @@ type PostOrganizationDisks201ResponseDisk struct { // PostOrganizationDisksPartDataCenter defines model for PostOrganizationDisksPartDataCenter. type PostOrganizationDisksPartDataCenter struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // PostOrganizationDisksPartVirtualMachine defines model for PostOrganizationDisksPartVirtualMachine. @@ -3214,9 +3281,9 @@ type PostOrganizationFileStorageVolumes201ResponseFileStorageVolume struct { // PostOrganizationFileStorageVolumesPartDataCenter defines model for PostOrganizationFileStorageVolumesPartDataCenter. type PostOrganizationFileStorageVolumesPartDataCenter struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // PostOrganizationLoadBalancers201ResponseLoadBalancer defines model for PostOrganizationLoadBalancers201ResponseLoadBalancer. @@ -3239,9 +3306,9 @@ type PostOrganizationLoadBalancers201ResponseLoadBalancer struct { // PostOrganizationLoadBalancersPartDataCenter defines model for PostOrganizationLoadBalancersPartDataCenter. type PostOrganizationLoadBalancersPartDataCenter struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // PostOrganizationLoadBalancersPartIPAddress defines model for PostOrganizationLoadBalancersPartIPAddress. @@ -3411,9 +3478,9 @@ type PutDiskIOProfile200ResponseDisk struct { // PutDiskIOProfilePartDataCenter defines model for PutDiskIOProfilePartDataCenter. type PutDiskIOProfilePartDataCenter struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // PutDiskIOProfilePartVirtualMachine defines model for PutDiskIOProfilePartVirtualMachine. @@ -3448,9 +3515,9 @@ type PutDiskResize200ResponseDisk struct { // PutDiskResizePartDataCenter defines model for PutDiskResizePartDataCenter. type PutDiskResizePartDataCenter struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Permalink nullable.Nullable[string] `json:"permalink,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Permalink *string `json:"permalink,omitempty"` } // PutDiskResizePartVirtualMachine defines model for PutDiskResizePartVirtualMachine. @@ -3660,6 +3727,9 @@ type SecurityGroupRuleNotFoundEnum string // SecurityGroupRuleProtocolEnum defines model for SecurityGroupRuleProtocolEnum. type SecurityGroupRuleProtocolEnum string +// ServiceUnavailableEnum defines model for ServiceUnavailableEnum. +type ServiceUnavailableEnum string + // SpeedProfileAlreadyAssignedEnum defines model for SpeedProfileAlreadyAssignedEnum. type SpeedProfileAlreadyAssignedEnum string @@ -4064,6 +4134,20 @@ type APIAuthenticator429Response struct { Detail *RateLimitReached `json:"detail,omitempty"` } +// APIAuthenticator503Response defines model for APIAuthenticator503Response. +type APIAuthenticator503Response struct { + Code *ServiceUnavailableEnum `json:"code,omitempty"` + Description *string `json:"description,omitempty"` + Detail *map[string]interface{} `json:"detail,omitempty"` +} + +// APITokenNotFoundResponse defines model for APITokenNotFoundResponse. +type APITokenNotFoundResponse struct { + Code *APITokenNotFoundEnum `json:"code,omitempty"` + Description *string `json:"description,omitempty"` + Detail *map[string]interface{} `json:"detail,omitempty"` +} + // AddressListEntryNotFoundResponse defines model for AddressListEntryNotFoundResponse. type AddressListEntryNotFoundResponse struct { Code *AddressListEntryNotFoundEnum `json:"code,omitempty"` @@ -4263,12 +4347,8 @@ type NoAllocationResponse struct { Detail *map[string]interface{} `json:"detail,omitempty"` } -// NoAvailableAddressesResponse defines model for NoAvailableAddressesResponse. -type NoAvailableAddressesResponse struct { - Code *NoAvailableAddressesEnum `json:"code,omitempty"` - Description *string `json:"description,omitempty"` - Detail *map[string]interface{} `json:"detail,omitempty"` -} +// NoAvailableAddresses503Res defines model for NoAvailableAddresses503Res. +type NoAvailableAddresses503Res = OneOfNoAvailableAddresses503Res // NoUserAssociatedWithIdentityResponse defines model for NoUserAssociatedWithIdentityResponse. type NoUserAssociatedWithIdentityResponse struct { @@ -4511,6 +4591,7 @@ type GetAddressListParams struct { type PatchAddressListJSONBody struct { // AddressList All 'address_list[]' params are mutually exclusive, only one can be provided. AddressList AddressListLookup `json:"address_list"` + Annotations *[]KeyValue `json:"annotations,omitempty"` // Properties All 'properties[]' params are mutually exclusive, only one can be provided. Properties AddressListArguments `json:"properties"` @@ -4533,6 +4614,29 @@ type PostAddressListEntriesJSONBody struct { Properties AddressListEntryArguments `json:"properties"` } +// DeleteApiTokenJSONBody defines parameters for DeleteApiToken. +type DeleteApiTokenJSONBody struct { + // ApiToken All 'api_token[]' params are mutually exclusive, only one can be provided. + ApiToken APITokenLookup `json:"api_token"` +} + +// PatchApiTokenJSONBody defines parameters for PatchApiToken. +type PatchApiTokenJSONBody struct { + Annotations *[]KeyValue `json:"annotations,omitempty"` + + // ApiToken All 'api_token[]' params are mutually exclusive, only one can be provided. + ApiToken APITokenLookup `json:"api_token"` + + // Properties All 'properties[]' params are mutually exclusive, only one can be provided. + Properties APITokenArguments `json:"properties"` +} + +// PostApiTokenRegenerateSecretJSONBody defines parameters for PostApiTokenRegenerateSecret. +type PostApiTokenRegenerateSecretJSONBody struct { + // ApiToken All 'api_token[]' params are mutually exclusive, only one can be provided. + ApiToken APITokenLookup `json:"api_token"` +} + // GetCertificateParams defines parameters for GetCertificate. type GetCertificateParams struct { // CertificateId All 'certificate[]' params are mutually exclusive, only one can be provided. @@ -4697,6 +4801,8 @@ type GetDiskParams struct { // PatchDiskJSONBody defines parameters for PatchDisk. type PatchDiskJSONBody struct { + Annotations *[]KeyValue `json:"annotations,omitempty"` + // Disk All 'disk[]' params are mutually exclusive, only one can be provided. Disk DiskLookup `json:"disk"` @@ -4848,6 +4954,8 @@ type GetFileStorageVolumeParams struct { // PatchFileStorageVolumeJSONBody defines parameters for PatchFileStorageVolume. type PatchFileStorageVolumeJSONBody struct { + Annotations *[]KeyValue `json:"annotations,omitempty"` + // FileStorageVolume All 'file_storage_volume[]' params are mutually exclusive, only one can be provided. FileStorageVolume FileStorageVolumeLookup `json:"file_storage_volume"` @@ -4926,6 +5034,8 @@ type GetLoadBalancerParams struct { // PatchLoadBalancerJSONBody defines parameters for PatchLoadBalancer. type PatchLoadBalancerJSONBody struct { + Annotations *[]KeyValue `json:"annotations,omitempty"` + // LoadBalancer All 'load_balancer[]' params are mutually exclusive, only one can be provided. LoadBalancer LoadBalancerLookup `json:"load_balancer"` @@ -5011,12 +5121,20 @@ type GetOrganizationAddressListsParams struct { // OrganizationSubDomain The organization for which the address lists should be returned. All 'organization[]' params are mutually exclusive, only one can be provided. OrganizationSubDomain *string `form:"organization[sub_domain],omitempty" json:"organization[sub_domain],omitempty"` - Page *int `form:"page,omitempty" json:"page,omitempty"` - PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` + + // AnnotationsKey An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided. + AnnotationsKey *string `form:"annotations[key],omitempty" json:"annotations[key],omitempty"` + + // AnnotationsValue An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided. + AnnotationsValue *string `form:"annotations[value],omitempty" json:"annotations[value],omitempty"` + Page *int `form:"page,omitempty" json:"page,omitempty"` + PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` } // PostOrganizationAddressListsJSONBody defines parameters for PostOrganizationAddressLists. type PostOrganizationAddressListsJSONBody struct { + Annotations *[]KeyValue `json:"annotations,omitempty"` + // Organization All 'organization[]' params are mutually exclusive, only one can be provided. Organization OrganizationLookup `json:"organization"` @@ -5024,6 +5142,34 @@ type PostOrganizationAddressListsJSONBody struct { Properties AddressListArguments `json:"properties"` } +// GetOrganizationApiTokensParams defines parameters for GetOrganizationApiTokens. +type GetOrganizationApiTokensParams struct { + // OrganizationId The organization to list API tokens for. All 'organization[]' params are mutually exclusive, only one can be provided. + OrganizationId *string `form:"organization[id],omitempty" json:"organization[id],omitempty"` + + // OrganizationSubDomain The organization to list API tokens for. All 'organization[]' params are mutually exclusive, only one can be provided. + OrganizationSubDomain *string `form:"organization[sub_domain],omitempty" json:"organization[sub_domain],omitempty"` + + // AnnotationsKey An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided. + AnnotationsKey *string `form:"annotations[key],omitempty" json:"annotations[key],omitempty"` + + // AnnotationsValue An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided. + AnnotationsValue *string `form:"annotations[value],omitempty" json:"annotations[value],omitempty"` + Page *int `form:"page,omitempty" json:"page,omitempty"` + PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` +} + +// PostOrganizationApiTokensJSONBody defines parameters for PostOrganizationApiTokens. +type PostOrganizationApiTokensJSONBody struct { + Annotations *[]KeyValue `json:"annotations,omitempty"` + + // Organization All 'organization[]' params are mutually exclusive, only one can be provided. + Organization OrganizationLookup `json:"organization"` + + // Properties All 'properties[]' params are mutually exclusive, only one can be provided. + Properties APITokenArguments `json:"properties"` +} + // GetOrganizationAvailableNetworksParams defines parameters for GetOrganizationAvailableNetworks. type GetOrganizationAvailableNetworksParams struct { // OrganizationId All 'organization[]' params are mutually exclusive, only one can be provided. @@ -5090,12 +5236,20 @@ type GetOrganizationDisksParams struct { // OrganizationSubDomain The organization to find disks for. All 'organization[]' params are mutually exclusive, only one can be provided. OrganizationSubDomain *string `form:"organization[sub_domain],omitempty" json:"organization[sub_domain],omitempty"` - Page *int `form:"page,omitempty" json:"page,omitempty"` - PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` + + // AnnotationsKey An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided. + AnnotationsKey *string `form:"annotations[key],omitempty" json:"annotations[key],omitempty"` + + // AnnotationsValue An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided. + AnnotationsValue *string `form:"annotations[value],omitempty" json:"annotations[value],omitempty"` + Page *int `form:"page,omitempty" json:"page,omitempty"` + PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` } // PostOrganizationDisksJSONBody defines parameters for PostOrganizationDisks. type PostOrganizationDisksJSONBody struct { + Annotations *[]KeyValue `json:"annotations,omitempty"` + // Organization All 'organization[]' params are mutually exclusive, only one can be provided. Organization OrganizationLookup `json:"organization"` @@ -5139,12 +5293,20 @@ type GetOrganizationFileStorageVolumesParams struct { // OrganizationSubDomain The organization to return all file storage volumes for. All 'organization[]' params are mutually exclusive, only one can be provided. OrganizationSubDomain *string `form:"organization[sub_domain],omitempty" json:"organization[sub_domain],omitempty"` - Page *int `form:"page,omitempty" json:"page,omitempty"` - PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` + + // AnnotationsKey An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided. + AnnotationsKey *string `form:"annotations[key],omitempty" json:"annotations[key],omitempty"` + + // AnnotationsValue An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided. + AnnotationsValue *string `form:"annotations[value],omitempty" json:"annotations[value],omitempty"` + Page *int `form:"page,omitempty" json:"page,omitempty"` + PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` } // PostOrganizationFileStorageVolumesJSONBody defines parameters for PostOrganizationFileStorageVolumes. type PostOrganizationFileStorageVolumesJSONBody struct { + Annotations *[]KeyValue `json:"annotations,omitempty"` + // Organization All 'organization[]' params are mutually exclusive, only one can be provided. Organization OrganizationLookup `json:"organization"` @@ -5189,12 +5351,20 @@ type GetOrganizationLoadBalancersParams struct { // OrganizationSubDomain The organization to return all load balancers for. All 'organization[]' params are mutually exclusive, only one can be provided. OrganizationSubDomain *string `form:"organization[sub_domain],omitempty" json:"organization[sub_domain],omitempty"` - Page *int `form:"page,omitempty" json:"page,omitempty"` - PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` + + // AnnotationsKey An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided. + AnnotationsKey *string `form:"annotations[key],omitempty" json:"annotations[key],omitempty"` + + // AnnotationsValue An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided. + AnnotationsValue *string `form:"annotations[value],omitempty" json:"annotations[value],omitempty"` + Page *int `form:"page,omitempty" json:"page,omitempty"` + PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` } // PostOrganizationLoadBalancersJSONBody defines parameters for PostOrganizationLoadBalancers. type PostOrganizationLoadBalancersJSONBody struct { + Annotations *[]KeyValue `json:"annotations,omitempty"` + // Organization All 'organization[]' params are mutually exclusive, only one can be provided. Organization OrganizationLookup `json:"organization"` @@ -5209,13 +5379,20 @@ type GetOrganizationManagedParams struct { // OrganizationSubDomain All 'organization[]' params are mutually exclusive, only one can be provided. OrganizationSubDomain *string `form:"organization[sub_domain],omitempty" json:"organization[sub_domain],omitempty"` - Page *int `form:"page,omitempty" json:"page,omitempty"` - PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` + + // AnnotationsKey An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided. + AnnotationsKey *string `form:"annotations[key],omitempty" json:"annotations[key],omitempty"` + + // AnnotationsValue An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided. + AnnotationsValue *string `form:"annotations[value],omitempty" json:"annotations[value],omitempty"` + Page *int `form:"page,omitempty" json:"page,omitempty"` + PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` } // PostOrganizationManagedJSONBody defines parameters for PostOrganizationManaged. type PostOrganizationManagedJSONBody struct { - Name string `json:"name"` + Annotations *[]KeyValue `json:"annotations,omitempty"` + Name string `json:"name"` // Organization All 'organization[]' params are mutually exclusive, only one can be provided. Organization OrganizationLookup `json:"organization"` @@ -5249,12 +5426,20 @@ type GetOrganizationSecurityGroupsParams struct { // OrganizationSubDomain The organization to return all security groups for. All 'organization[]' params are mutually exclusive, only one can be provided. OrganizationSubDomain *string `form:"organization[sub_domain],omitempty" json:"organization[sub_domain],omitempty"` - Page *int `form:"page,omitempty" json:"page,omitempty"` - PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` + + // AnnotationsKey An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided. + AnnotationsKey *string `form:"annotations[key],omitempty" json:"annotations[key],omitempty"` + + // AnnotationsValue An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided. + AnnotationsValue *string `form:"annotations[value],omitempty" json:"annotations[value],omitempty"` + Page *int `form:"page,omitempty" json:"page,omitempty"` + PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` } // PostOrganizationSecurityGroupsJSONBody defines parameters for PostOrganizationSecurityGroups. type PostOrganizationSecurityGroupsJSONBody struct { + Annotations *[]KeyValue `json:"annotations,omitempty"` + // Organization All 'organization[]' params are mutually exclusive, only one can be provided. Organization OrganizationLookup `json:"organization"` @@ -5355,12 +5540,20 @@ type GetOrganizationVirtualMachinesParams struct { // OrganizationSubDomain All 'organization[]' params are mutually exclusive, only one can be provided. OrganizationSubDomain *string `form:"organization[sub_domain],omitempty" json:"organization[sub_domain],omitempty"` - Page *int `form:"page,omitempty" json:"page,omitempty"` - PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` + + // AnnotationsKey An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided. + AnnotationsKey *string `form:"annotations[key],omitempty" json:"annotations[key],omitempty"` + + // AnnotationsValue An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided. + AnnotationsValue *string `form:"annotations[value],omitempty" json:"annotations[value],omitempty"` + Page *int `form:"page,omitempty" json:"page,omitempty"` + PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"` } // PostOrganizationVirtualMachinesBuildJSONBody defines parameters for PostOrganizationVirtualMachinesBuild. type PostOrganizationVirtualMachinesBuildJSONBody struct { + Annotations *[]KeyValue `json:"annotations,omitempty"` + // DataCenter All 'data_center[]' params are mutually exclusive, only one can be provided. DataCenter *DataCenterLookup `json:"data_center,omitempty"` @@ -5384,6 +5577,8 @@ type PostOrganizationVirtualMachinesBuildJSONBody struct { // PostOrganizationVirtualMachinesBuildFromSpecJSONBody defines parameters for PostOrganizationVirtualMachinesBuildFromSpec. type PostOrganizationVirtualMachinesBuildFromSpecJSONBody struct { + Annotations *[]KeyValue `json:"annotations,omitempty"` + // Organization All 'organization[]' params are mutually exclusive, only one can be provided. Organization OrganizationLookup `json:"organization"` Xml string `json:"xml"` @@ -5403,6 +5598,8 @@ type GetSecurityGroupParams struct { // PatchSecurityGroupJSONBody defines parameters for PatchSecurityGroup. type PatchSecurityGroupJSONBody struct { + Annotations *[]KeyValue `json:"annotations,omitempty"` + // Properties All 'properties[]' params are mutually exclusive, only one can be provided. Properties SecurityGroupArguments `json:"properties"` @@ -5601,6 +5798,8 @@ type GetVirtualMachineParams struct { // PatchVirtualMachineJSONBody defines parameters for PatchVirtualMachine. type PatchVirtualMachineJSONBody struct { + Annotations *[]KeyValue `json:"annotations,omitempty"` + // Properties All 'properties[]' params are mutually exclusive, only one can be provided. Properties VirtualMachineArguments `json:"properties"` @@ -5755,6 +5954,15 @@ type PatchAddressListJSONRequestBody PatchAddressListJSONBody // PostAddressListEntriesJSONRequestBody defines body for PostAddressListEntries for application/json ContentType. type PostAddressListEntriesJSONRequestBody PostAddressListEntriesJSONBody +// DeleteApiTokenJSONRequestBody defines body for DeleteApiToken for application/json ContentType. +type DeleteApiTokenJSONRequestBody DeleteApiTokenJSONBody + +// PatchApiTokenJSONRequestBody defines body for PatchApiToken for application/json ContentType. +type PatchApiTokenJSONRequestBody PatchApiTokenJSONBody + +// PostApiTokenRegenerateSecretJSONRequestBody defines body for PostApiTokenRegenerateSecret for application/json ContentType. +type PostApiTokenRegenerateSecretJSONRequestBody PostApiTokenRegenerateSecretJSONBody + // DeleteDiskBackupPolicyJSONRequestBody defines body for DeleteDiskBackupPolicy for application/json ContentType. type DeleteDiskBackupPolicyJSONRequestBody DeleteDiskBackupPolicyJSONBody @@ -5845,6 +6053,9 @@ type PatchLoadBalancersRulesLoadBalancerRuleJSONRequestBody PatchLoadBalancersRu // PostOrganizationAddressListsJSONRequestBody defines body for PostOrganizationAddressLists for application/json ContentType. type PostOrganizationAddressListsJSONRequestBody PostOrganizationAddressListsJSONBody +// PostOrganizationApiTokensJSONRequestBody defines body for PostOrganizationApiTokens for application/json ContentType. +type PostOrganizationApiTokensJSONRequestBody PostOrganizationApiTokensJSONBody + // PostOrganizationDisksJSONRequestBody defines body for PostOrganizationDisks for application/json ContentType. type PostOrganizationDisksJSONRequestBody PostOrganizationDisksJSONBody @@ -7338,6 +7549,68 @@ func (t *OneOfNetworkSpeedProfileNotFoundVirtualMachineNetworkInterfaceNotFound4 return err } +// AsAPIAuthenticator503Schema returns the union data inside the OneOfNoAvailableAddresses503Res as a APIAuthenticator503Schema +func (t OneOfNoAvailableAddresses503Res) AsAPIAuthenticator503Schema() (APIAuthenticator503Schema, error) { + var body APIAuthenticator503Schema + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromAPIAuthenticator503Schema overwrites any union data inside the OneOfNoAvailableAddresses503Res as the provided APIAuthenticator503Schema +func (t *OneOfNoAvailableAddresses503Res) FromAPIAuthenticator503Schema(v APIAuthenticator503Schema) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeAPIAuthenticator503Schema performs a merge with any union data inside the OneOfNoAvailableAddresses503Res, using the provided APIAuthenticator503Schema +func (t *OneOfNoAvailableAddresses503Res) MergeAPIAuthenticator503Schema(v APIAuthenticator503Schema) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsNoAvailableAddressesSchema returns the union data inside the OneOfNoAvailableAddresses503Res as a NoAvailableAddressesSchema +func (t OneOfNoAvailableAddresses503Res) AsNoAvailableAddressesSchema() (NoAvailableAddressesSchema, error) { + var body NoAvailableAddressesSchema + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromNoAvailableAddressesSchema overwrites any union data inside the OneOfNoAvailableAddresses503Res as the provided NoAvailableAddressesSchema +func (t *OneOfNoAvailableAddresses503Res) FromNoAvailableAddressesSchema(v NoAvailableAddressesSchema) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeNoAvailableAddressesSchema performs a merge with any union data inside the OneOfNoAvailableAddresses503Res, using the provided NoAvailableAddressesSchema +func (t *OneOfNoAvailableAddresses503Res) MergeNoAvailableAddressesSchema(v NoAvailableAddressesSchema) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +func (t OneOfNoAvailableAddresses503Res) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + return b, err +} + +func (t *OneOfNoAvailableAddresses503Res) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) + return err +} + // AsObjectInTrashSchema returns the union data inside the OneOfObjectInTrashTaskQueueingError406Res as a ObjectInTrashSchema func (t OneOfObjectInTrashTaskQueueingError406Res) AsObjectInTrashSchema() (ObjectInTrashSchema, error) { var body ObjectInTrashSchema @@ -8455,6 +8728,21 @@ type ClientInterface interface { PostAddressListEntries(ctx context.Context, body PostAddressListEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // DeleteApiTokenWithBody request with any body + DeleteApiTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + DeleteApiToken(ctx context.Context, body DeleteApiTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PatchApiTokenWithBody request with any body + PatchApiTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + PatchApiToken(ctx context.Context, body PatchApiTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostApiTokenRegenerateSecretWithBody request with any body + PostApiTokenRegenerateSecretWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + PostApiTokenRegenerateSecret(ctx context.Context, body PostApiTokenRegenerateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetCertificate request GetCertificate(ctx context.Context, params *GetCertificateParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -8707,6 +8995,14 @@ type ClientInterface interface { PostOrganizationAddressLists(ctx context.Context, body PostOrganizationAddressListsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetOrganizationApiTokens request + GetOrganizationApiTokens(ctx context.Context, params *GetOrganizationApiTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostOrganizationApiTokensWithBody request with any body + PostOrganizationApiTokensWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + PostOrganizationApiTokens(ctx context.Context, body PostOrganizationApiTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetOrganizationAvailableNetworks request GetOrganizationAvailableNetworks(ctx context.Context, params *GetOrganizationAvailableNetworksParams, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -9197,6 +9493,78 @@ func (c *Client) PostAddressListEntries(ctx context.Context, body PostAddressLis return c.Client.Do(req) } +func (c *Client) DeleteApiTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteApiTokenRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteApiToken(ctx context.Context, body DeleteApiTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteApiTokenRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PatchApiTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchApiTokenRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PatchApiToken(ctx context.Context, body PatchApiTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchApiTokenRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostApiTokenRegenerateSecretWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostApiTokenRegenerateSecretRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostApiTokenRegenerateSecret(ctx context.Context, body PostApiTokenRegenerateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostApiTokenRegenerateSecretRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *Client) GetCertificate(ctx context.Context, params *GetCertificateParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetCertificateRequest(c.Server, params) if err != nil { @@ -10325,6 +10693,42 @@ func (c *Client) PostOrganizationAddressLists(ctx context.Context, body PostOrga return c.Client.Do(req) } +func (c *Client) GetOrganizationApiTokens(ctx context.Context, params *GetOrganizationApiTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrganizationApiTokensRequest(c.Server, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostOrganizationApiTokensWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrganizationApiTokensRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostOrganizationApiTokens(ctx context.Context, body PostOrganizationApiTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrganizationApiTokensRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *Client) GetOrganizationAvailableNetworks(ctx context.Context, params *GetOrganizationAvailableNetworksParams, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetOrganizationAvailableNetworksRequest(c.Server, params) if err != nil { @@ -12209,6 +12613,126 @@ func NewPostAddressListEntriesRequestWithBody(server string, contentType string, return req, nil } +// NewDeleteApiTokenRequest calls the generic DeleteApiToken builder with application/json body +func NewDeleteApiTokenRequest(server string, body DeleteApiTokenJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewDeleteApiTokenRequestWithBody(server, "application/json", bodyReader) +} + +// NewDeleteApiTokenRequestWithBody generates requests for DeleteApiToken with any type of body +func NewDeleteApiTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api_tokens/:api_token") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewPatchApiTokenRequest calls the generic PatchApiToken builder with application/json body +func NewPatchApiTokenRequest(server string, body PatchApiTokenJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPatchApiTokenRequestWithBody(server, "application/json", bodyReader) +} + +// NewPatchApiTokenRequestWithBody generates requests for PatchApiToken with any type of body +func NewPatchApiTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api_tokens/:api_token") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewPostApiTokenRegenerateSecretRequest calls the generic PostApiTokenRegenerateSecret builder with application/json body +func NewPostApiTokenRegenerateSecretRequest(server string, body PostApiTokenRegenerateSecretJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostApiTokenRegenerateSecretRequestWithBody(server, "application/json", bodyReader) +} + +// NewPostApiTokenRegenerateSecretRequestWithBody generates requests for PostApiTokenRegenerateSecret with any type of body +func NewPostApiTokenRegenerateSecretRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/api_tokens/:api_token/regenerate_secret") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + // NewGetCertificateRequest generates requests for GetCertificate func NewGetCertificateRequest(server string, params *GetCertificateParams) (*http.Request, error) { var err error @@ -15508,6 +16032,38 @@ func NewGetOrganizationAddressListsRequest(server string, params *GetOrganizatio } + if params.AnnotationsKey != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "annotations[key]", runtime.ParamLocationQuery, *params.AnnotationsKey); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.AnnotationsValue != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "annotations[value]", runtime.ParamLocationQuery, *params.AnnotationsValue); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + if params.Page != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { @@ -15591,8 +16147,8 @@ func NewPostOrganizationAddressListsRequestWithBody(server string, contentType s return req, nil } -// NewGetOrganizationAvailableNetworksRequest generates requests for GetOrganizationAvailableNetworks -func NewGetOrganizationAvailableNetworksRequest(server string, params *GetOrganizationAvailableNetworksParams) (*http.Request, error) { +// NewGetOrganizationApiTokensRequest generates requests for GetOrganizationApiTokens +func NewGetOrganizationApiTokensRequest(server string, params *GetOrganizationApiTokensParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -15600,7 +16156,7 @@ func NewGetOrganizationAvailableNetworksRequest(server string, params *GetOrgani return nil, err } - operationPath := fmt.Sprintf("/organizations/:organization/available_networks") + operationPath := fmt.Sprintf("/organizations/:organization/api_tokens") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -15645,42 +16201,9 @@ func NewGetOrganizationAvailableNetworksRequest(server string, params *GetOrgani } - queryURL.RawQuery = queryValues.Encode() - } + if params.AnnotationsKey != nil { - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetOrganizationCertificatesRequest generates requests for GetOrganizationCertificates -func NewGetOrganizationCertificatesRequest(server string, params *GetOrganizationCertificatesParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/organizations/:organization/certificates") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.OrganizationId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "organization[id]", runtime.ParamLocationQuery, *params.OrganizationId); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "annotations[key]", runtime.ParamLocationQuery, *params.AnnotationsKey); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15694,9 +16217,9 @@ func NewGetOrganizationCertificatesRequest(server string, params *GetOrganizatio } - if params.OrganizationSubDomain != nil { + if params.AnnotationsValue != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "organization[sub_domain]", runtime.ParamLocationQuery, *params.OrganizationSubDomain); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "annotations[value]", runtime.ParamLocationQuery, *params.AnnotationsValue); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15753,8 +16276,19 @@ func NewGetOrganizationCertificatesRequest(server string, params *GetOrganizatio return req, nil } -// NewGetOrganizationDiskBackupPoliciesRequest generates requests for GetOrganizationDiskBackupPolicies -func NewGetOrganizationDiskBackupPoliciesRequest(server string, params *GetOrganizationDiskBackupPoliciesParams) (*http.Request, error) { +// NewPostOrganizationApiTokensRequest calls the generic PostOrganizationApiTokens builder with application/json body +func NewPostOrganizationApiTokensRequest(server string, body PostOrganizationApiTokensJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostOrganizationApiTokensRequestWithBody(server, "application/json", bodyReader) +} + +// NewPostOrganizationApiTokensRequestWithBody generates requests for PostOrganizationApiTokens with any type of body +func NewPostOrganizationApiTokensRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -15762,7 +16296,7 @@ func NewGetOrganizationDiskBackupPoliciesRequest(server string, params *GetOrgan return nil, err } - operationPath := fmt.Sprintf("/organizations/:organization/disk_backup_policies") + operationPath := fmt.Sprintf("/organizations/:organization/api_tokens") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -15772,44 +16306,41 @@ func NewGetOrganizationDiskBackupPoliciesRequest(server string, params *GetOrgan return nil, err } - if params != nil { - queryValues := queryURL.Query() + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } - if params.OrganizationId != nil { + req.Header.Add("Content-Type", contentType) - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "organization[id]", runtime.ParamLocationQuery, *params.OrganizationId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } + return req, nil +} - } +// NewGetOrganizationAvailableNetworksRequest generates requests for GetOrganizationAvailableNetworks +func NewGetOrganizationAvailableNetworksRequest(server string, params *GetOrganizationAvailableNetworksParams) (*http.Request, error) { + var err error - if params.OrganizationSubDomain != nil { + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "organization[sub_domain]", runtime.ParamLocationQuery, *params.OrganizationSubDomain); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } + operationPath := fmt.Sprintf("/organizations/:organization/available_networks") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - } + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - if params.Page != nil { + if params != nil { + queryValues := queryURL.Query() - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if params.OrganizationId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "organization[id]", runtime.ParamLocationQuery, *params.OrganizationId); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15823,9 +16354,9 @@ func NewGetOrganizationDiskBackupPoliciesRequest(server string, params *GetOrgan } - if params.PerPage != nil { + if params.OrganizationSubDomain != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "organization[sub_domain]", runtime.ParamLocationQuery, *params.OrganizationSubDomain); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15850,8 +16381,8 @@ func NewGetOrganizationDiskBackupPoliciesRequest(server string, params *GetOrgan return req, nil } -// NewGetOrganizationDiskIoProfilesRequest generates requests for GetOrganizationDiskIoProfiles -func NewGetOrganizationDiskIoProfilesRequest(server string, params *GetOrganizationDiskIoProfilesParams) (*http.Request, error) { +// NewGetOrganizationCertificatesRequest generates requests for GetOrganizationCertificates +func NewGetOrganizationCertificatesRequest(server string, params *GetOrganizationCertificatesParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -15859,7 +16390,7 @@ func NewGetOrganizationDiskIoProfilesRequest(server string, params *GetOrganizat return nil, err } - operationPath := fmt.Sprintf("/organizations/:organization/disk_io_profiles") + operationPath := fmt.Sprintf("/organizations/:organization/certificates") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -15947,8 +16478,8 @@ func NewGetOrganizationDiskIoProfilesRequest(server string, params *GetOrganizat return req, nil } -// NewGetOrganizationDiskTemplatesRequest generates requests for GetOrganizationDiskTemplates -func NewGetOrganizationDiskTemplatesRequest(server string, params *GetOrganizationDiskTemplatesParams) (*http.Request, error) { +// NewGetOrganizationDiskBackupPoliciesRequest generates requests for GetOrganizationDiskBackupPolicies +func NewGetOrganizationDiskBackupPoliciesRequest(server string, params *GetOrganizationDiskBackupPoliciesParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -15956,7 +16487,7 @@ func NewGetOrganizationDiskTemplatesRequest(server string, params *GetOrganizati return nil, err } - operationPath := fmt.Sprintf("/organizations/:organization/disk_templates") + operationPath := fmt.Sprintf("/organizations/:organization/disk_backup_policies") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -16001,38 +16532,6 @@ func NewGetOrganizationDiskTemplatesRequest(server string, params *GetOrganizati } - if params.IncludeUniversal != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_universal", runtime.ParamLocationQuery, *params.IncludeUniversal); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.OperatingSystemId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "operating_system[id]", runtime.ParamLocationQuery, *params.OperatingSystemId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - if params.Page != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { @@ -16076,8 +16575,8 @@ func NewGetOrganizationDiskTemplatesRequest(server string, params *GetOrganizati return req, nil } -// NewGetOrganizationDisksRequest generates requests for GetOrganizationDisks -func NewGetOrganizationDisksRequest(server string, params *GetOrganizationDisksParams) (*http.Request, error) { +// NewGetOrganizationDiskIoProfilesRequest generates requests for GetOrganizationDiskIoProfiles +func NewGetOrganizationDiskIoProfilesRequest(server string, params *GetOrganizationDiskIoProfilesParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -16085,7 +16584,7 @@ func NewGetOrganizationDisksRequest(server string, params *GetOrganizationDisksP return nil, err } - operationPath := fmt.Sprintf("/organizations/:organization/disks") + operationPath := fmt.Sprintf("/organizations/:organization/disk_io_profiles") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -16173,48 +16672,8 @@ func NewGetOrganizationDisksRequest(server string, params *GetOrganizationDisksP return req, nil } -// NewPostOrganizationDisksRequest calls the generic PostOrganizationDisks builder with application/json body -func NewPostOrganizationDisksRequest(server string, body PostOrganizationDisksJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPostOrganizationDisksRequestWithBody(server, "application/json", bodyReader) -} - -// NewPostOrganizationDisksRequestWithBody generates requests for PostOrganizationDisks with any type of body -func NewPostOrganizationDisksRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/organizations/:organization/disks") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetOrganizationDnsZonesRequest generates requests for GetOrganizationDnsZones -func NewGetOrganizationDnsZonesRequest(server string, params *GetOrganizationDnsZonesParams) (*http.Request, error) { +// NewGetOrganizationDiskTemplatesRequest generates requests for GetOrganizationDiskTemplates +func NewGetOrganizationDiskTemplatesRequest(server string, params *GetOrganizationDiskTemplatesParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -16222,7 +16681,7 @@ func NewGetOrganizationDnsZonesRequest(server string, params *GetOrganizationDns return nil, err } - operationPath := fmt.Sprintf("/organizations/:organization/dns_zones") + operationPath := fmt.Sprintf("/organizations/:organization/disk_templates") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -16267,9 +16726,9 @@ func NewGetOrganizationDnsZonesRequest(server string, params *GetOrganizationDns } - if params.Page != nil { + if params.IncludeUniversal != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_universal", runtime.ParamLocationQuery, *params.IncludeUniversal); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -16283,9 +16742,9 @@ func NewGetOrganizationDnsZonesRequest(server string, params *GetOrganizationDns } - if params.PerPage != nil { + if params.OperatingSystemId != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "operating_system[id]", runtime.ParamLocationQuery, *params.OperatingSystemId); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -16299,82 +16758,9 @@ func NewGetOrganizationDnsZonesRequest(server string, params *GetOrganizationDns } - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostOrganizationDnsZonesRequest calls the generic PostOrganizationDnsZones builder with application/json body -func NewPostOrganizationDnsZonesRequest(server string, body PostOrganizationDnsZonesJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPostOrganizationDnsZonesRequestWithBody(server, "application/json", bodyReader) -} - -// NewPostOrganizationDnsZonesRequestWithBody generates requests for PostOrganizationDnsZones with any type of body -func NewPostOrganizationDnsZonesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/organizations/:organization/dns_zones") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetOrganizationDnsZonesNameserversRequest generates requests for GetOrganizationDnsZonesNameservers -func NewGetOrganizationDnsZonesNameserversRequest(server string, params *GetOrganizationDnsZonesNameserversParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/organizations/:organization/dns_zones/nameservers") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - queryValues := queryURL.Query() - - if params.OrganizationId != nil { + if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "organization[id]", runtime.ParamLocationQuery, *params.OrganizationId); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -16388,9 +16774,9 @@ func NewGetOrganizationDnsZonesNameserversRequest(server string, params *GetOrga } - if params.OrganizationSubDomain != nil { + if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "organization[sub_domain]", runtime.ParamLocationQuery, *params.OrganizationSubDomain); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -16415,8 +16801,8 @@ func NewGetOrganizationDnsZonesNameserversRequest(server string, params *GetOrga return req, nil } -// NewGetOrganizationFileStorageVolumesRequest generates requests for GetOrganizationFileStorageVolumes -func NewGetOrganizationFileStorageVolumesRequest(server string, params *GetOrganizationFileStorageVolumesParams) (*http.Request, error) { +// NewGetOrganizationDisksRequest generates requests for GetOrganizationDisks +func NewGetOrganizationDisksRequest(server string, params *GetOrganizationDisksParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -16424,7 +16810,7 @@ func NewGetOrganizationFileStorageVolumesRequest(server string, params *GetOrgan return nil, err } - operationPath := fmt.Sprintf("/organizations/:organization/file_storage_volumes") + operationPath := fmt.Sprintf("/organizations/:organization/disks") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -16469,6 +16855,38 @@ func NewGetOrganizationFileStorageVolumesRequest(server string, params *GetOrgan } + if params.AnnotationsKey != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "annotations[key]", runtime.ParamLocationQuery, *params.AnnotationsKey); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.AnnotationsValue != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "annotations[value]", runtime.ParamLocationQuery, *params.AnnotationsValue); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + if params.Page != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { @@ -16512,19 +16930,19 @@ func NewGetOrganizationFileStorageVolumesRequest(server string, params *GetOrgan return req, nil } -// NewPostOrganizationFileStorageVolumesRequest calls the generic PostOrganizationFileStorageVolumes builder with application/json body -func NewPostOrganizationFileStorageVolumesRequest(server string, body PostOrganizationFileStorageVolumesJSONRequestBody) (*http.Request, error) { +// NewPostOrganizationDisksRequest calls the generic PostOrganizationDisks builder with application/json body +func NewPostOrganizationDisksRequest(server string, body PostOrganizationDisksJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostOrganizationFileStorageVolumesRequestWithBody(server, "application/json", bodyReader) + return NewPostOrganizationDisksRequestWithBody(server, "application/json", bodyReader) } -// NewPostOrganizationFileStorageVolumesRequestWithBody generates requests for PostOrganizationFileStorageVolumes with any type of body -func NewPostOrganizationFileStorageVolumesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewPostOrganizationDisksRequestWithBody generates requests for PostOrganizationDisks with any type of body +func NewPostOrganizationDisksRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -16532,7 +16950,7 @@ func NewPostOrganizationFileStorageVolumesRequestWithBody(server string, content return nil, err } - operationPath := fmt.Sprintf("/organizations/:organization/file_storage_volumes") + operationPath := fmt.Sprintf("/organizations/:organization/disks") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -16552,8 +16970,8 @@ func NewPostOrganizationFileStorageVolumesRequestWithBody(server string, content return req, nil } -// NewGetOrganizationIpAddressesRequest generates requests for GetOrganizationIpAddresses -func NewGetOrganizationIpAddressesRequest(server string, params *GetOrganizationIpAddressesParams) (*http.Request, error) { +// NewGetOrganizationDnsZonesRequest generates requests for GetOrganizationDnsZones +func NewGetOrganizationDnsZonesRequest(server string, params *GetOrganizationDnsZonesParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -16561,7 +16979,7 @@ func NewGetOrganizationIpAddressesRequest(server string, params *GetOrganization return nil, err } - operationPath := fmt.Sprintf("/organizations/:organization/ip_addresses") + operationPath := fmt.Sprintf("/organizations/:organization/dns_zones") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -16606,22 +17024,6 @@ func NewGetOrganizationIpAddressesRequest(server string, params *GetOrganization } - if params.Allocated != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "allocated", runtime.ParamLocationQuery, *params.Allocated); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - if params.Page != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { @@ -16665,19 +17067,19 @@ func NewGetOrganizationIpAddressesRequest(server string, params *GetOrganization return req, nil } -// NewPostOrganizationIpAddressesRequest calls the generic PostOrganizationIpAddresses builder with application/json body -func NewPostOrganizationIpAddressesRequest(server string, body PostOrganizationIpAddressesJSONRequestBody) (*http.Request, error) { +// NewPostOrganizationDnsZonesRequest calls the generic PostOrganizationDnsZones builder with application/json body +func NewPostOrganizationDnsZonesRequest(server string, body PostOrganizationDnsZonesJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostOrganizationIpAddressesRequestWithBody(server, "application/json", bodyReader) + return NewPostOrganizationDnsZonesRequestWithBody(server, "application/json", bodyReader) } -// NewPostOrganizationIpAddressesRequestWithBody generates requests for PostOrganizationIpAddresses with any type of body -func NewPostOrganizationIpAddressesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewPostOrganizationDnsZonesRequestWithBody generates requests for PostOrganizationDnsZones with any type of body +func NewPostOrganizationDnsZonesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -16685,7 +17087,7 @@ func NewPostOrganizationIpAddressesRequestWithBody(server string, contentType st return nil, err } - operationPath := fmt.Sprintf("/organizations/:organization/ip_addresses") + operationPath := fmt.Sprintf("/organizations/:organization/dns_zones") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -16705,8 +17107,8 @@ func NewPostOrganizationIpAddressesRequestWithBody(server string, contentType st return req, nil } -// NewGetOrganizationLoadBalancersRequest generates requests for GetOrganizationLoadBalancers -func NewGetOrganizationLoadBalancersRequest(server string, params *GetOrganizationLoadBalancersParams) (*http.Request, error) { +// NewGetOrganizationDnsZonesNameserversRequest generates requests for GetOrganizationDnsZonesNameservers +func NewGetOrganizationDnsZonesNameserversRequest(server string, params *GetOrganizationDnsZonesNameserversParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -16714,7 +17116,7 @@ func NewGetOrganizationLoadBalancersRequest(server string, params *GetOrganizati return nil, err } - operationPath := fmt.Sprintf("/organizations/:organization/load_balancers") + operationPath := fmt.Sprintf("/organizations/:organization/dns_zones/nameservers") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -16759,6 +17161,103 @@ func NewGetOrganizationLoadBalancersRequest(server string, params *GetOrganizati } + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetOrganizationFileStorageVolumesRequest generates requests for GetOrganizationFileStorageVolumes +func NewGetOrganizationFileStorageVolumesRequest(server string, params *GetOrganizationFileStorageVolumesParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/organizations/:organization/file_storage_volumes") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.OrganizationId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "organization[id]", runtime.ParamLocationQuery, *params.OrganizationId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.OrganizationSubDomain != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "organization[sub_domain]", runtime.ParamLocationQuery, *params.OrganizationSubDomain); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.AnnotationsKey != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "annotations[key]", runtime.ParamLocationQuery, *params.AnnotationsKey); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.AnnotationsValue != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "annotations[value]", runtime.ParamLocationQuery, *params.AnnotationsValue); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + if params.Page != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { @@ -16802,19 +17301,19 @@ func NewGetOrganizationLoadBalancersRequest(server string, params *GetOrganizati return req, nil } -// NewPostOrganizationLoadBalancersRequest calls the generic PostOrganizationLoadBalancers builder with application/json body -func NewPostOrganizationLoadBalancersRequest(server string, body PostOrganizationLoadBalancersJSONRequestBody) (*http.Request, error) { +// NewPostOrganizationFileStorageVolumesRequest calls the generic PostOrganizationFileStorageVolumes builder with application/json body +func NewPostOrganizationFileStorageVolumesRequest(server string, body PostOrganizationFileStorageVolumesJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostOrganizationLoadBalancersRequestWithBody(server, "application/json", bodyReader) + return NewPostOrganizationFileStorageVolumesRequestWithBody(server, "application/json", bodyReader) } -// NewPostOrganizationLoadBalancersRequestWithBody generates requests for PostOrganizationLoadBalancers with any type of body -func NewPostOrganizationLoadBalancersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewPostOrganizationFileStorageVolumesRequestWithBody generates requests for PostOrganizationFileStorageVolumes with any type of body +func NewPostOrganizationFileStorageVolumesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -16822,7 +17321,7 @@ func NewPostOrganizationLoadBalancersRequestWithBody(server string, contentType return nil, err } - operationPath := fmt.Sprintf("/organizations/:organization/load_balancers") + operationPath := fmt.Sprintf("/organizations/:organization/file_storage_volumes") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -16842,8 +17341,8 @@ func NewPostOrganizationLoadBalancersRequestWithBody(server string, contentType return req, nil } -// NewGetOrganizationManagedRequest generates requests for GetOrganizationManaged -func NewGetOrganizationManagedRequest(server string, params *GetOrganizationManagedParams) (*http.Request, error) { +// NewGetOrganizationIpAddressesRequest generates requests for GetOrganizationIpAddresses +func NewGetOrganizationIpAddressesRequest(server string, params *GetOrganizationIpAddressesParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -16851,7 +17350,7 @@ func NewGetOrganizationManagedRequest(server string, params *GetOrganizationMana return nil, err } - operationPath := fmt.Sprintf("/organizations/:organization/managed") + operationPath := fmt.Sprintf("/organizations/:organization/ip_addresses") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -16896,6 +17395,22 @@ func NewGetOrganizationManagedRequest(server string, params *GetOrganizationMana } + if params.Allocated != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "allocated", runtime.ParamLocationQuery, *params.Allocated); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + if params.Page != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { @@ -16939,19 +17454,19 @@ func NewGetOrganizationManagedRequest(server string, params *GetOrganizationMana return req, nil } -// NewPostOrganizationManagedRequest calls the generic PostOrganizationManaged builder with application/json body -func NewPostOrganizationManagedRequest(server string, body PostOrganizationManagedJSONRequestBody) (*http.Request, error) { +// NewPostOrganizationIpAddressesRequest calls the generic PostOrganizationIpAddresses builder with application/json body +func NewPostOrganizationIpAddressesRequest(server string, body PostOrganizationIpAddressesJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostOrganizationManagedRequestWithBody(server, "application/json", bodyReader) + return NewPostOrganizationIpAddressesRequestWithBody(server, "application/json", bodyReader) } -// NewPostOrganizationManagedRequestWithBody generates requests for PostOrganizationManaged with any type of body -func NewPostOrganizationManagedRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewPostOrganizationIpAddressesRequestWithBody generates requests for PostOrganizationIpAddresses with any type of body +func NewPostOrganizationIpAddressesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -16959,7 +17474,7 @@ func NewPostOrganizationManagedRequestWithBody(server string, contentType string return nil, err } - operationPath := fmt.Sprintf("/organizations/:organization/managed") + operationPath := fmt.Sprintf("/organizations/:organization/ip_addresses") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -16979,8 +17494,8 @@ func NewPostOrganizationManagedRequestWithBody(server string, contentType string return req, nil } -// NewGetOrganizationNetworkSpeedProfilesRequest generates requests for GetOrganizationNetworkSpeedProfiles -func NewGetOrganizationNetworkSpeedProfilesRequest(server string, params *GetOrganizationNetworkSpeedProfilesParams) (*http.Request, error) { +// NewGetOrganizationLoadBalancersRequest generates requests for GetOrganizationLoadBalancers +func NewGetOrganizationLoadBalancersRequest(server string, params *GetOrganizationLoadBalancersParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -16988,7 +17503,7 @@ func NewGetOrganizationNetworkSpeedProfilesRequest(server string, params *GetOrg return nil, err } - operationPath := fmt.Sprintf("/organizations/:organization/network_speed_profiles") + operationPath := fmt.Sprintf("/organizations/:organization/load_balancers") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -17033,6 +17548,38 @@ func NewGetOrganizationNetworkSpeedProfilesRequest(server string, params *GetOrg } + if params.AnnotationsKey != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "annotations[key]", runtime.ParamLocationQuery, *params.AnnotationsKey); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.AnnotationsValue != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "annotations[value]", runtime.ParamLocationQuery, *params.AnnotationsValue); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + if params.Page != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { @@ -17076,8 +17623,19 @@ func NewGetOrganizationNetworkSpeedProfilesRequest(server string, params *GetOrg return req, nil } -// NewGetOrganizationPolicyLimitsRequest generates requests for GetOrganizationPolicyLimits -func NewGetOrganizationPolicyLimitsRequest(server string, params *GetOrganizationPolicyLimitsParams) (*http.Request, error) { +// NewPostOrganizationLoadBalancersRequest calls the generic PostOrganizationLoadBalancers builder with application/json body +func NewPostOrganizationLoadBalancersRequest(server string, body PostOrganizationLoadBalancersJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostOrganizationLoadBalancersRequestWithBody(server, "application/json", bodyReader) +} + +// NewPostOrganizationLoadBalancersRequestWithBody generates requests for PostOrganizationLoadBalancers with any type of body +func NewPostOrganizationLoadBalancersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -17085,7 +17643,36 @@ func NewGetOrganizationPolicyLimitsRequest(server string, params *GetOrganizatio return nil, err } - operationPath := fmt.Sprintf("/organizations/:organization/policy_limits") + operationPath := fmt.Sprintf("/organizations/:organization/load_balancers") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetOrganizationManagedRequest generates requests for GetOrganizationManaged +func NewGetOrganizationManagedRequest(server string, params *GetOrganizationManagedParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/organizations/:organization/managed") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -17130,42 +17717,9 @@ func NewGetOrganizationPolicyLimitsRequest(server string, params *GetOrganizatio } - queryURL.RawQuery = queryValues.Encode() - } - - req, err := http.NewRequest("GET", queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetOrganizationSecurityGroupsRequest generates requests for GetOrganizationSecurityGroups -func NewGetOrganizationSecurityGroupsRequest(server string, params *GetOrganizationSecurityGroupsParams) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/organizations/:organization/security_groups") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + if params.AnnotationsKey != nil { - if params != nil { - queryValues := queryURL.Query() - - if params.OrganizationId != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "organization[id]", runtime.ParamLocationQuery, *params.OrganizationId); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "annotations[key]", runtime.ParamLocationQuery, *params.AnnotationsKey); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -17179,9 +17733,9 @@ func NewGetOrganizationSecurityGroupsRequest(server string, params *GetOrganizat } - if params.OrganizationSubDomain != nil { + if params.AnnotationsValue != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "organization[sub_domain]", runtime.ParamLocationQuery, *params.OrganizationSubDomain); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "annotations[value]", runtime.ParamLocationQuery, *params.AnnotationsValue); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -17238,19 +17792,19 @@ func NewGetOrganizationSecurityGroupsRequest(server string, params *GetOrganizat return req, nil } -// NewPostOrganizationSecurityGroupsRequest calls the generic PostOrganizationSecurityGroups builder with application/json body -func NewPostOrganizationSecurityGroupsRequest(server string, body PostOrganizationSecurityGroupsJSONRequestBody) (*http.Request, error) { +// NewPostOrganizationManagedRequest calls the generic PostOrganizationManaged builder with application/json body +func NewPostOrganizationManagedRequest(server string, body PostOrganizationManagedJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostOrganizationSecurityGroupsRequestWithBody(server, "application/json", bodyReader) + return NewPostOrganizationManagedRequestWithBody(server, "application/json", bodyReader) } -// NewPostOrganizationSecurityGroupsRequestWithBody generates requests for PostOrganizationSecurityGroups with any type of body -func NewPostOrganizationSecurityGroupsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewPostOrganizationManagedRequestWithBody generates requests for PostOrganizationManaged with any type of body +func NewPostOrganizationManagedRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -17258,7 +17812,7 @@ func NewPostOrganizationSecurityGroupsRequestWithBody(server string, contentType return nil, err } - operationPath := fmt.Sprintf("/organizations/:organization/security_groups") + operationPath := fmt.Sprintf("/organizations/:organization/managed") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -17278,8 +17832,8 @@ func NewPostOrganizationSecurityGroupsRequestWithBody(server string, contentType return req, nil } -// NewGetOrganizationSshKeysRequest generates requests for GetOrganizationSshKeys -func NewGetOrganizationSshKeysRequest(server string, params *GetOrganizationSshKeysParams) (*http.Request, error) { +// NewGetOrganizationNetworkSpeedProfilesRequest generates requests for GetOrganizationNetworkSpeedProfiles +func NewGetOrganizationNetworkSpeedProfilesRequest(server string, params *GetOrganizationNetworkSpeedProfilesParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -17287,7 +17841,7 @@ func NewGetOrganizationSshKeysRequest(server string, params *GetOrganizationSshK return nil, err } - operationPath := fmt.Sprintf("/organizations/:organization/ssh_keys") + operationPath := fmt.Sprintf("/organizations/:organization/network_speed_profiles") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -17375,48 +17929,8 @@ func NewGetOrganizationSshKeysRequest(server string, params *GetOrganizationSshK return req, nil } -// NewPostOrganizationSshKeysRequest calls the generic PostOrganizationSshKeys builder with application/json body -func NewPostOrganizationSshKeysRequest(server string, body PostOrganizationSshKeysJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPostOrganizationSshKeysRequestWithBody(server, "application/json", bodyReader) -} - -// NewPostOrganizationSshKeysRequestWithBody generates requests for PostOrganizationSshKeys with any type of body -func NewPostOrganizationSshKeysRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/organizations/:organization/ssh_keys") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetOrganizationTagsRequest generates requests for GetOrganizationTags -func NewGetOrganizationTagsRequest(server string, params *GetOrganizationTagsParams) (*http.Request, error) { +// NewGetOrganizationPolicyLimitsRequest generates requests for GetOrganizationPolicyLimits +func NewGetOrganizationPolicyLimitsRequest(server string, params *GetOrganizationPolicyLimitsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -17424,7 +17938,7 @@ func NewGetOrganizationTagsRequest(server string, params *GetOrganizationTagsPar return nil, err } - operationPath := fmt.Sprintf("/organizations/:organization/tags") + operationPath := fmt.Sprintf("/organizations/:organization/policy_limits") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -17469,38 +17983,6 @@ func NewGetOrganizationTagsRequest(server string, params *GetOrganizationTagsPar } - if params.Page != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - - if params.PerPage != nil { - - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { - return nil, err - } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } - } - } - - } - queryURL.RawQuery = queryValues.Encode() } @@ -17512,48 +17994,8 @@ func NewGetOrganizationTagsRequest(server string, params *GetOrganizationTagsPar return req, nil } -// NewPostOrganizationTagsRequest calls the generic PostOrganizationTags builder with application/json body -func NewPostOrganizationTagsRequest(server string, body PostOrganizationTagsJSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewPostOrganizationTagsRequestWithBody(server, "application/json", bodyReader) -} - -// NewPostOrganizationTagsRequestWithBody generates requests for PostOrganizationTags with any type of body -func NewPostOrganizationTagsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/organizations/:organization/tags") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest("POST", queryURL.String(), body) - if err != nil { - return nil, err - } - - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetOrganizationTrashObjectsRequest generates requests for GetOrganizationTrashObjects -func NewGetOrganizationTrashObjectsRequest(server string, params *GetOrganizationTrashObjectsParams) (*http.Request, error) { +// NewGetOrganizationSecurityGroupsRequest generates requests for GetOrganizationSecurityGroups +func NewGetOrganizationSecurityGroupsRequest(server string, params *GetOrganizationSecurityGroupsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -17561,7 +18003,7 @@ func NewGetOrganizationTrashObjectsRequest(server string, params *GetOrganizatio return nil, err } - operationPath := fmt.Sprintf("/organizations/:organization/trash_objects") + operationPath := fmt.Sprintf("/organizations/:organization/security_groups") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -17606,6 +18048,38 @@ func NewGetOrganizationTrashObjectsRequest(server string, params *GetOrganizatio } + if params.AnnotationsKey != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "annotations[key]", runtime.ParamLocationQuery, *params.AnnotationsKey); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.AnnotationsValue != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "annotations[value]", runtime.ParamLocationQuery, *params.AnnotationsValue); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + if params.Page != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { @@ -17649,19 +18123,19 @@ func NewGetOrganizationTrashObjectsRequest(server string, params *GetOrganizatio return req, nil } -// NewPostOrganizationTrashObjectsPurgeAllRequest calls the generic PostOrganizationTrashObjectsPurgeAll builder with application/json body -func NewPostOrganizationTrashObjectsPurgeAllRequest(server string, body PostOrganizationTrashObjectsPurgeAllJSONRequestBody) (*http.Request, error) { +// NewPostOrganizationSecurityGroupsRequest calls the generic PostOrganizationSecurityGroups builder with application/json body +func NewPostOrganizationSecurityGroupsRequest(server string, body PostOrganizationSecurityGroupsJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewPostOrganizationTrashObjectsPurgeAllRequestWithBody(server, "application/json", bodyReader) + return NewPostOrganizationSecurityGroupsRequestWithBody(server, "application/json", bodyReader) } -// NewPostOrganizationTrashObjectsPurgeAllRequestWithBody generates requests for PostOrganizationTrashObjectsPurgeAll with any type of body -func NewPostOrganizationTrashObjectsPurgeAllRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewPostOrganizationSecurityGroupsRequestWithBody generates requests for PostOrganizationSecurityGroups with any type of body +func NewPostOrganizationSecurityGroupsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -17669,7 +18143,7 @@ func NewPostOrganizationTrashObjectsPurgeAllRequestWithBody(server string, conte return nil, err } - operationPath := fmt.Sprintf("/organizations/:organization/trash_objects/purge_all") + operationPath := fmt.Sprintf("/organizations/:organization/security_groups") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -17689,8 +18163,8 @@ func NewPostOrganizationTrashObjectsPurgeAllRequestWithBody(server string, conte return req, nil } -// NewGetOrganizationUsersWithAccessRequest generates requests for GetOrganizationUsersWithAccess -func NewGetOrganizationUsersWithAccessRequest(server string, params *GetOrganizationUsersWithAccessParams) (*http.Request, error) { +// NewGetOrganizationSshKeysRequest generates requests for GetOrganizationSshKeys +func NewGetOrganizationSshKeysRequest(server string, params *GetOrganizationSshKeysParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -17698,7 +18172,418 @@ func NewGetOrganizationUsersWithAccessRequest(server string, params *GetOrganiza return nil, err } - operationPath := fmt.Sprintf("/organizations/:organization/users_with_access") + operationPath := fmt.Sprintf("/organizations/:organization/ssh_keys") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.OrganizationId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "organization[id]", runtime.ParamLocationQuery, *params.OrganizationId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.OrganizationSubDomain != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "organization[sub_domain]", runtime.ParamLocationQuery, *params.OrganizationSubDomain); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewPostOrganizationSshKeysRequest calls the generic PostOrganizationSshKeys builder with application/json body +func NewPostOrganizationSshKeysRequest(server string, body PostOrganizationSshKeysJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostOrganizationSshKeysRequestWithBody(server, "application/json", bodyReader) +} + +// NewPostOrganizationSshKeysRequestWithBody generates requests for PostOrganizationSshKeys with any type of body +func NewPostOrganizationSshKeysRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/organizations/:organization/ssh_keys") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetOrganizationTagsRequest generates requests for GetOrganizationTags +func NewGetOrganizationTagsRequest(server string, params *GetOrganizationTagsParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/organizations/:organization/tags") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.OrganizationId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "organization[id]", runtime.ParamLocationQuery, *params.OrganizationId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.OrganizationSubDomain != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "organization[sub_domain]", runtime.ParamLocationQuery, *params.OrganizationSubDomain); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewPostOrganizationTagsRequest calls the generic PostOrganizationTags builder with application/json body +func NewPostOrganizationTagsRequest(server string, body PostOrganizationTagsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostOrganizationTagsRequestWithBody(server, "application/json", bodyReader) +} + +// NewPostOrganizationTagsRequestWithBody generates requests for PostOrganizationTags with any type of body +func NewPostOrganizationTagsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/organizations/:organization/tags") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetOrganizationTrashObjectsRequest generates requests for GetOrganizationTrashObjects +func NewGetOrganizationTrashObjectsRequest(server string, params *GetOrganizationTrashObjectsParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/organizations/:organization/trash_objects") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.OrganizationId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "organization[id]", runtime.ParamLocationQuery, *params.OrganizationId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.OrganizationSubDomain != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "organization[sub_domain]", runtime.ParamLocationQuery, *params.OrganizationSubDomain); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewPostOrganizationTrashObjectsPurgeAllRequest calls the generic PostOrganizationTrashObjectsPurgeAll builder with application/json body +func NewPostOrganizationTrashObjectsPurgeAllRequest(server string, body PostOrganizationTrashObjectsPurgeAllJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPostOrganizationTrashObjectsPurgeAllRequestWithBody(server, "application/json", bodyReader) +} + +// NewPostOrganizationTrashObjectsPurgeAllRequestWithBody generates requests for PostOrganizationTrashObjectsPurgeAll with any type of body +func NewPostOrganizationTrashObjectsPurgeAllRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/organizations/:organization/trash_objects/purge_all") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetOrganizationUsersWithAccessRequest generates requests for GetOrganizationUsersWithAccess +func NewGetOrganizationUsersWithAccessRequest(server string, params *GetOrganizationUsersWithAccessParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/organizations/:organization/users_with_access") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -17945,6 +18830,38 @@ func NewGetOrganizationVirtualMachinesRequest(server string, params *GetOrganiza } + if params.AnnotationsKey != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "annotations[key]", runtime.ParamLocationQuery, *params.AnnotationsKey); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.AnnotationsValue != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "annotations[value]", runtime.ParamLocationQuery, *params.AnnotationsValue); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + if params.Page != nil { if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { @@ -20513,6 +21430,21 @@ type ClientWithResponsesInterface interface { PostAddressListEntriesWithResponse(ctx context.Context, body PostAddressListEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAddressListEntriesResponse, error) + // DeleteApiTokenWithBodyWithResponse request with any body + DeleteApiTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteApiTokenResponse, error) + + DeleteApiTokenWithResponse(ctx context.Context, body DeleteApiTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteApiTokenResponse, error) + + // PatchApiTokenWithBodyWithResponse request with any body + PatchApiTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchApiTokenResponse, error) + + PatchApiTokenWithResponse(ctx context.Context, body PatchApiTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchApiTokenResponse, error) + + // PostApiTokenRegenerateSecretWithBodyWithResponse request with any body + PostApiTokenRegenerateSecretWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiTokenRegenerateSecretResponse, error) + + PostApiTokenRegenerateSecretWithResponse(ctx context.Context, body PostApiTokenRegenerateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiTokenRegenerateSecretResponse, error) + // GetCertificateWithResponse request GetCertificateWithResponse(ctx context.Context, params *GetCertificateParams, reqEditors ...RequestEditorFn) (*GetCertificateResponse, error) @@ -20765,6 +21697,14 @@ type ClientWithResponsesInterface interface { PostOrganizationAddressListsWithResponse(ctx context.Context, body PostOrganizationAddressListsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrganizationAddressListsResponse, error) + // GetOrganizationApiTokensWithResponse request + GetOrganizationApiTokensWithResponse(ctx context.Context, params *GetOrganizationApiTokensParams, reqEditors ...RequestEditorFn) (*GetOrganizationApiTokensResponse, error) + + // PostOrganizationApiTokensWithBodyWithResponse request with any body + PostOrganizationApiTokensWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrganizationApiTokensResponse, error) + + PostOrganizationApiTokensWithResponse(ctx context.Context, body PostOrganizationApiTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrganizationApiTokensResponse, error) + // GetOrganizationAvailableNetworksWithResponse request GetOrganizationAvailableNetworksWithResponse(ctx context.Context, params *GetOrganizationAvailableNetworksParams, reqEditors ...RequestEditorFn) (*GetOrganizationAvailableNetworksResponse, error) @@ -21098,6 +22038,7 @@ type DeleteAddressListEntryResponse struct { JSON403 *PermissionDenied403Res JSON404 *AddressListEntryNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21127,6 +22068,7 @@ type GetAddressListEntryResponse struct { JSON403 *APIAuthenticator403Response JSON404 *AddressListEntryNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21157,6 +22099,7 @@ type PatchAddressListEntryResponse struct { JSON404 *AddressListEntryNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21186,6 +22129,7 @@ type GetAddressListsResponse struct { JSON400 *APIAuthenticator400Response JSON403 *APIAuthenticator403Response JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21215,6 +22159,7 @@ type DeleteAddressListResponse struct { JSON403 *PermissionDenied403Res JSON404 *AddressListNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21239,11 +22184,13 @@ type GetAddressListResponse struct { JSON200 *struct { // AddressList The address list. AddressList AddressList `json:"address_list"` + Annotations []KeyValue `json:"annotations"` } JSON400 *APIAuthenticator400Response JSON403 *APIAuthenticator403Response JSON404 *AddressListNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21268,12 +22215,14 @@ type PatchAddressListResponse struct { JSON200 *struct { // AddressList The address list. AddressList AddressList `json:"address_list"` + Annotations []KeyValue `json:"annotations"` } JSON400 *APIAuthenticator400Response JSON403 *PermissionDenied403Res JSON404 *AddressListNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21304,6 +22253,7 @@ type GetAddressListEntriesResponse struct { JSON403 *PermissionDenied403Res JSON404 *AddressListNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21334,6 +22284,7 @@ type PostAddressListEntriesResponse struct { JSON404 *AddressListNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21352,6 +22303,102 @@ func (r PostAddressListEntriesResponse) StatusCode() int { return 0 } +type DeleteApiTokenResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // ApiToken The API token that has been destroyed + ApiToken DeleteAPIToken200ResponseAPIToken `json:"api_token"` + } + JSON400 *APIAuthenticator400Response + JSON403 *PermissionDenied403Res + JSON404 *APITokenNotFoundResponse + JSON422 *ValidationErrorResponse + JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response +} + +// Status returns HTTPResponse.Status +func (r DeleteApiTokenResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteApiTokenResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PatchApiTokenResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // Annotations Annotations for this API token + Annotations []KeyValue `json:"annotations"` + + // ApiToken The API token that has been updated + ApiToken APIToken `json:"api_token"` + } + JSON400 *APIAuthenticator400Response + JSON403 *PermissionDenied403Res + JSON404 *APITokenNotFoundResponse + JSON422 *ValidationErrorResponse + JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response +} + +// Status returns HTTPResponse.Status +func (r PatchApiTokenResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PatchApiTokenResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostApiTokenRegenerateSecretResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // ApiToken The API token that has had its secret regenerated + ApiToken APIToken `json:"api_token"` + } + JSON400 *APIAuthenticator400Response + JSON403 *PermissionDenied403Res + JSON404 *APITokenNotFoundResponse + JSON422 *ValidationErrorResponse + JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response +} + +// Status returns HTTPResponse.Status +func (r PostApiTokenRegenerateSecretResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostApiTokenRegenerateSecretResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + type GetCertificateResponse struct { Body []byte HTTPResponse *http.Response @@ -21363,6 +22410,7 @@ type GetCertificateResponse struct { JSON404 *CertificateNotFoundResponse JSON406 *ObjectInTrashResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21392,6 +22440,7 @@ type GetCountriesResponse struct { JSON400 *APIAuthenticator400Response JSON403 *APIAuthenticator403Response JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21421,6 +22470,7 @@ type GetCountryResponse struct { JSON403 *APIAuthenticator403Response JSON404 *CountryNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21451,6 +22501,7 @@ type GetCountryCountryStatesResponse struct { JSON403 *APIAuthenticator403Response JSON404 *CountryNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21480,6 +22531,7 @@ type GetCountryStateResponse struct { JSON403 *APIAuthenticator403Response JSON404 *CountryStateNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21509,6 +22561,7 @@ type GetCurrenciesResponse struct { JSON400 *APIAuthenticator400Response JSON403 *APIAuthenticator403Response JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21538,6 +22591,7 @@ type GetCurrencyResponse struct { JSON403 *APIAuthenticator403Response JSON404 *CurrencyNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21565,6 +22619,7 @@ type GetDataCentersResponse struct { JSON400 *APIAuthenticator400Response JSON403 *APIAuthenticator403Response JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21593,6 +22648,7 @@ type GetDataCenterResponse struct { JSON403 *APIAuthenticator403Response JSON404 *DataCenterNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21622,6 +22678,7 @@ type GetDataCenterDefaultNetworkResponse struct { JSON403 *APIAuthenticator403Response JSON404 *DataCenterNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21651,6 +22708,7 @@ type GetDataCenterGpuTypesResponse struct { JSON403 *APIAuthenticator403Response JSON404 *DataCenterNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21681,6 +22739,7 @@ type DeleteDiskBackupPolicyResponse struct { JSON404 *DiskBackupPolicyNotFoundResponse JSON406 *ObjectInTrashResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21711,6 +22770,7 @@ type GetDiskBackupPolicyResponse struct { JSON404 *DiskBackupPolicyNotFoundResponse JSON406 *ObjectInTrashResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21742,6 +22802,7 @@ type PatchDiskBackupPolicyResponse struct { JSON406 *ObjectInTrashResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21772,6 +22833,7 @@ type DeleteDiskBackupPolicyScheduleResponse struct { JSON404 *DiskBackupPolicyNotFoundResponse JSON406 *ObjectInTrashResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21801,6 +22863,7 @@ type GetDiskTemplateVersionResponse struct { JSON403 *APIAuthenticator403Response JSON404 *DiskTemplateVersionNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21831,6 +22894,7 @@ type GetDiskTemplateVersionSpecResponse struct { JSON403 *APIAuthenticator403Response JSON404 *DiskTemplateVersionNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21860,6 +22924,7 @@ type GetDiskTemplateResponse struct { JSON403 *APIAuthenticator403Response JSON404 *DiskTemplateNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21892,6 +22957,7 @@ type GetDiskTemplateVersionsResponse struct { JSON403 *APIAuthenticator403Response JSON404 *DiskTemplateNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21924,6 +22990,7 @@ type DeleteDiskResponse struct { JSON406 *ObjectInTrashResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21946,6 +23013,8 @@ type GetDiskResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { + Annotations []KeyValue `json:"annotations"` + // Disk The disk details Disk GetDisk200ResponseDisk `json:"disk"` } @@ -21954,6 +23023,7 @@ type GetDiskResponse struct { JSON404 *DiskNotFoundResponse JSON406 *ObjectInTrashResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -21976,6 +23046,9 @@ type PatchDiskResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { + // Annotations Annotations for this disk + Annotations []KeyValue `json:"annotations"` + // Disk The disk that has been updated. Disk PatchDisk200ResponseDisk `json:"disk"` } @@ -21985,6 +23058,7 @@ type PatchDiskResponse struct { JSON406 *ObjectInTrashResponse JSON422 *UnassignedDiskValidationError422Res JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22016,6 +23090,7 @@ type PostDiskAssignResponse struct { JSON406 *ObjectInTrashResponse JSON422 *UnableToAssignResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22048,6 +23123,7 @@ type PostDiskAttachResponse struct { JSON406 *ObjectInTrashTaskQueueingError406Res JSON422 *UnassignedDiskResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22080,6 +23156,7 @@ type PostDiskDetachResponse struct { JSON406 *ObjectInTrashTaskQueueingError406Res JSON422 *UnassignedDiskResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22111,6 +23188,7 @@ type GetDiskDiskBackupPoliciesResponse struct { JSON404 *DiskNotFoundResponse JSON406 *ObjectInTrashResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22142,6 +23220,7 @@ type PostDiskDiskBackupPoliciesResponse struct { JSON406 *ObjectInTrashResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22173,6 +23252,7 @@ type PutDiskIoProfileResponse struct { JSON404 *DiskIOProfileNotFoundDiskNotFound404Res JSON406 *ObjectInTrashTaskQueueingError406Res JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22205,6 +23285,7 @@ type PutDiskResizeResponse struct { JSON406 *ObjectInTrashTaskQueueingError406Res JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22236,6 +23317,7 @@ type PostDiskUnassignResponse struct { JSON406 *ObjectInTrashResponse JSON422 *UnableToUnassignResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22264,6 +23346,7 @@ type DeleteDnsRecordResponse struct { JSON403 *APIAuthenticator403Response JSON404 *DNSRecordNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22293,6 +23376,7 @@ type GetDnsRecordResponse struct { JSON403 *APIAuthenticator403Response JSON404 *DNSRecordNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22323,6 +23407,7 @@ type PatchDnsRecordResponse struct { JSON404 *DNSRecordNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22351,6 +23436,7 @@ type DeleteDnsZoneResponse struct { JSON403 *APIAuthenticator403Response JSON404 *DNSZoneNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22380,6 +23466,7 @@ type GetDnsZoneResponse struct { JSON403 *APIAuthenticator403Response JSON404 *DNSZoneNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22410,6 +23497,7 @@ type PatchDnsZoneResponse struct { JSON404 *DNSZoneNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22439,6 +23527,7 @@ type GetDnsZoneRecordsResponse struct { JSON403 *PermissionDenied403Res JSON404 *DNSZoneNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22468,6 +23557,7 @@ type PostDnsZoneRecordsResponse struct { JSON404 *DNSZoneNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22498,6 +23588,7 @@ type PostDnsZoneVerifyResponse struct { JSON404 *DNSZoneNotFoundResponse JSON422 *DNSZoneNotVerifiedResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22530,6 +23621,7 @@ type DeleteFileStorageVolumeResponse struct { JSON406 *ObjectInTrashResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22552,6 +23644,8 @@ type GetFileStorageVolumeResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { + Annotations []KeyValue `json:"annotations"` + // FileStorageVolume The file storage volume. FileStorageVolume GetFileStorageVolume200ResponseFileStorageVolume `json:"file_storage_volume"` } @@ -22560,6 +23654,7 @@ type GetFileStorageVolumeResponse struct { JSON404 *FileStorageVolumeNotFoundResponse JSON406 *ObjectInTrashResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22582,6 +23677,8 @@ type PatchFileStorageVolumeResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { + Annotations []KeyValue `json:"annotations"` + // FileStorageVolume The file storage volume. FileStorageVolume PatchFileStorageVolume200ResponseFileStorageVolume `json:"file_storage_volume"` } @@ -22591,6 +23688,7 @@ type PatchFileStorageVolumeResponse struct { JSON406 *ObjectInTrashResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22619,6 +23717,7 @@ type GetGpuTypesResponse struct { JSON400 *APIAuthenticator400Response JSON403 *APIAuthenticator403Response JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22647,6 +23746,7 @@ type GetGpuTypeResponse struct { JSON403 *APIAuthenticator403Response JSON404 *GPUTypeNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22674,6 +23774,7 @@ type PostInvalidateLinkedWebSessionResponse struct { JSON400 *IdentityNotLinkedToWebSession400Res JSON403 *APIAuthenticator403Response JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22701,6 +23802,7 @@ type DeleteIpAddressResponse struct { JSON404 *IPAddressNotFoundResponse JSON409 *ResourceDoesNotSupportUnallocationResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22733,6 +23835,7 @@ type GetIpAddressResponse struct { JSON403 *APIAuthenticator403Response JSON404 *IPAddressNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22763,6 +23866,7 @@ type PatchIpAddressResponse struct { JSON404 *IPAddressNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22791,6 +23895,7 @@ type PostIpAddressUnallocateResponse struct { JSON409 *ResourceDoesNotSupportUnallocationResponse JSON422 *NoAllocationResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22821,6 +23926,7 @@ type DeleteLoadBalancerResponse struct { JSON404 *LoadBalancerNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22843,6 +23949,8 @@ type GetLoadBalancerResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { + Annotations []KeyValue `json:"annotations"` + // LoadBalancer The load balancer LoadBalancer GetLoadBalancer200ResponseLoadBalancer `json:"load_balancer"` } @@ -22850,6 +23958,7 @@ type GetLoadBalancerResponse struct { JSON403 *APIAuthenticator403Response JSON404 *LoadBalancerNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22872,6 +23981,8 @@ type PatchLoadBalancerResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { + Annotations []KeyValue `json:"annotations"` + // LoadBalancer The load balancer that has been updated LoadBalancer PatchLoadBalancer200ResponseLoadBalancer `json:"load_balancer"` } @@ -22880,6 +23991,7 @@ type PatchLoadBalancerResponse struct { JSON404 *LoadBalancerNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22910,6 +24022,7 @@ type GetLoadBalancerRulesResponse struct { JSON403 *PermissionDenied403Res JSON404 *LoadBalancerNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22940,6 +24053,7 @@ type PostLoadBalancerRulesResponse struct { JSON404 *LoadBalancerNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22970,6 +24084,7 @@ type DeleteLoadBalancersRulesLoadBalancerRuleResponse struct { JSON404 *LoadBalancerRuleNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -22999,6 +24114,7 @@ type GetLoadBalancersRulesLoadBalancerRuleResponse struct { JSON403 *APIAuthenticator403Response JSON404 *LoadBalancerRuleNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23029,6 +24145,7 @@ type PatchLoadBalancersRulesLoadBalancerRuleResponse struct { JSON404 *LoadBalancerRuleNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23058,6 +24175,7 @@ type GetNetworkResponse struct { JSON403 *APIAuthenticator403Response JSON404 *NetworkNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23087,6 +24205,7 @@ type GetOperatingSystemsResponse struct { JSON400 *APIAuthenticator400Response JSON403 *APIAuthenticator403Response JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23116,6 +24235,7 @@ type GetOperatingSystemResponse struct { JSON403 *APIAuthenticator403Response JSON404 *OperatingSystemNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23143,6 +24263,7 @@ type GetOrganizationsResponse struct { JSON400 *APIAuthenticator400Response JSON403 *APIAuthenticator403Response JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23171,6 +24292,7 @@ type GetOrganizationResponse struct { JSON403 *OrganizationNotActivatedOrganizationSuspended403Res JSON404 *OrganizationNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23201,6 +24323,7 @@ type GetOrganizationAddressListsResponse struct { JSON403 *OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res JSON404 *OrganizationNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23225,12 +24348,14 @@ type PostOrganizationAddressListsResponse struct { JSON201 *struct { // AddressList The address list. AddressList AddressList `json:"address_list"` + Annotations []KeyValue `json:"annotations"` } JSON400 *APIAuthenticator400Response JSON403 *OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res JSON404 *OrganizationNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23249,6 +24374,70 @@ func (r PostOrganizationAddressListsResponse) StatusCode() int { return 0 } +type GetOrganizationApiTokensResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + ApiTokens []APIToken `json:"api_tokens"` + Pagination PaginationObject `json:"pagination"` + } + JSON400 *APIAuthenticator400Response + JSON403 *OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res + JSON404 *OrganizationNotFoundResponse + JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response +} + +// Status returns HTTPResponse.Status +func (r GetOrganizationApiTokensResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrganizationApiTokensResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostOrganizationApiTokensResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // Annotations Annotations for this API token + Annotations []KeyValue `json:"annotations"` + + // ApiToken The API token that has been created + ApiToken APIToken `json:"api_token"` + } + JSON400 *APIAuthenticator400Response + JSON403 *OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res + JSON404 *OrganizationNotFoundResponse + JSON422 *ValidationErrorResponse + JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response +} + +// Status returns HTTPResponse.Status +func (r PostOrganizationApiTokensResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostOrganizationApiTokensResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + type GetOrganizationAvailableNetworksResponse struct { Body []byte HTTPResponse *http.Response @@ -23260,6 +24449,7 @@ type GetOrganizationAvailableNetworksResponse struct { JSON403 *OrganizationNotActivatedOrganizationSuspended403Res JSON404 *OrganizationNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23289,6 +24479,7 @@ type GetOrganizationCertificatesResponse struct { JSON403 *OrganizationNotActivatedOrganizationSuspended403Res JSON404 *OrganizationNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23319,6 +24510,7 @@ type GetOrganizationDiskBackupPoliciesResponse struct { JSON403 *OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res JSON404 *OrganizationNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23349,6 +24541,7 @@ type GetOrganizationDiskIoProfilesResponse struct { JSON403 *OrganizationNotActivatedOrganizationSuspended403Res JSON404 *OrganizationNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23379,6 +24572,7 @@ type GetOrganizationDiskTemplatesResponse struct { JSON403 *OrganizationNotActivatedOrganizationSuspended403Res JSON404 *OperatingSystemNotFoundOrganizationNotFound404Res JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23409,6 +24603,7 @@ type GetOrganizationDisksResponse struct { JSON403 *OrganizationNotActivatedOrganizationSuspended403Res JSON404 *OrganizationNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23431,6 +24626,9 @@ type PostOrganizationDisksResponse struct { Body []byte HTTPResponse *http.Response JSON201 *struct { + // Annotations Annotations for this disk + Annotations []KeyValue `json:"annotations"` + // Disk The disk that has been created. Disk PostOrganizationDisks201ResponseDisk `json:"disk"` Task Task `json:"task"` @@ -23441,6 +24639,7 @@ type PostOrganizationDisksResponse struct { JSON406 *TaskQueueingErrorResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23471,6 +24670,7 @@ type GetOrganizationDnsZonesResponse struct { JSON403 *OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res JSON404 *OrganizationNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23501,6 +24701,7 @@ type PostOrganizationDnsZonesResponse struct { JSON404 *OrganizationNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23529,6 +24730,7 @@ type GetOrganizationDnsZonesNameserversResponse struct { JSON403 *OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res JSON404 *OrganizationNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23559,6 +24761,7 @@ type GetOrganizationFileStorageVolumesResponse struct { JSON403 *OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res JSON404 *OrganizationNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23581,6 +24784,8 @@ type PostOrganizationFileStorageVolumesResponse struct { Body []byte HTTPResponse *http.Response JSON201 *struct { + Annotations []KeyValue `json:"annotations"` + // FileStorageVolume The file storage volume. FileStorageVolume PostOrganizationFileStorageVolumes201ResponseFileStorageVolume `json:"file_storage_volume"` } @@ -23589,6 +24794,7 @@ type PostOrganizationFileStorageVolumesResponse struct { JSON404 *OrganizationNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23619,6 +24825,7 @@ type GetOrganizationIpAddressesResponse struct { JSON403 *OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res JSON404 *OrganizationNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23649,7 +24856,7 @@ type PostOrganizationIpAddressesResponse struct { JSON404 *NetworkNotFoundOrganizationNotFound404Res JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response - JSON503 *NoAvailableAddressesResponse + JSON503 *NoAvailableAddresses503Res } // Status returns HTTPResponse.Status @@ -23680,6 +24887,7 @@ type GetOrganizationLoadBalancersResponse struct { JSON403 *OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res JSON404 *OrganizationNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23702,6 +24910,8 @@ type PostOrganizationLoadBalancersResponse struct { Body []byte HTTPResponse *http.Response JSON201 *struct { + Annotations []KeyValue `json:"annotations"` + // LoadBalancer The load balancer that has been created LoadBalancer PostOrganizationLoadBalancers201ResponseLoadBalancer `json:"load_balancer"` } @@ -23710,6 +24920,7 @@ type PostOrganizationLoadBalancersResponse struct { JSON404 *OrganizationNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23739,6 +24950,7 @@ type GetOrganizationManagedResponse struct { JSON403 *OrganizationNotActivatedOrganizationSuspended403Res JSON404 *OrganizationNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23761,6 +24973,7 @@ type PostOrganizationManagedResponse struct { Body []byte HTTPResponse *http.Response JSON201 *struct { + Annotations []KeyValue `json:"annotations"` Organization Organization `json:"organization"` } JSON400 *APIAuthenticator400Response @@ -23768,6 +24981,7 @@ type PostOrganizationManagedResponse struct { JSON404 *OrganizationNotFoundResponse JSON422 *OrganizationLimitReachedValidationError422Res JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23798,6 +25012,7 @@ type GetOrganizationNetworkSpeedProfilesResponse struct { JSON403 *OrganizationNotActivatedOrganizationSuspended403Res JSON404 *OrganizationNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23826,6 +25041,7 @@ type GetOrganizationPolicyLimitsResponse struct { JSON403 *OrganizationNotActivatedOrganizationSuspended403Res JSON404 *OrganizationNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23857,6 +25073,7 @@ type GetOrganizationSecurityGroupsResponse struct { JSON403 *OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res JSON404 *OrganizationNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23879,6 +25096,8 @@ type PostOrganizationSecurityGroupsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { + Annotations []KeyValue `json:"annotations"` + // SecurityGroup The security group that has been created SecurityGroup SecurityGroup `json:"security_group"` } @@ -23887,6 +25106,7 @@ type PostOrganizationSecurityGroupsResponse struct { JSON404 *OrganizationNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23916,6 +25136,7 @@ type GetOrganizationSshKeysResponse struct { JSON403 *OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res JSON404 *OrganizationNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23945,6 +25166,7 @@ type PostOrganizationSshKeysResponse struct { JSON404 *OrganizationNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -23976,6 +25198,7 @@ type GetOrganizationTagsResponse struct { JSON403 *OrganizationNotActivatedOrganizationSuspended403Res JSON404 *OrganizationNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24006,6 +25229,7 @@ type PostOrganizationTagsResponse struct { JSON404 *OrganizationNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24037,6 +25261,7 @@ type GetOrganizationTrashObjectsResponse struct { JSON403 *OrganizationNotActivatedOrganizationSuspended403Res JSON404 *OrganizationNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24066,6 +25291,7 @@ type PostOrganizationTrashObjectsPurgeAllResponse struct { JSON404 *OrganizationNotFoundResponse JSON406 *TaskQueueingErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24095,6 +25321,7 @@ type GetOrganizationUsersWithAccessResponse struct { JSON403 *OrganizationNotActivatedOrganizationSuspended403Res JSON404 *OrganizationNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24124,6 +25351,7 @@ type GetOrganizationVirtualMachineGroupsResponse struct { JSON403 *OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res JSON404 *OrganizationNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24154,6 +25382,7 @@ type PostOrganizationVirtualMachineGroupsResponse struct { JSON404 *OrganizationNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24183,6 +25412,7 @@ type GetOrganizationVirtualMachinesResponse struct { JSON403 *OrganizationNotActivatedOrganizationSuspended403Res JSON404 *OrganizationNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24205,6 +25435,8 @@ type PostOrganizationVirtualMachinesBuildResponse struct { Body []byte HTTPResponse *http.Response JSON201 *struct { + Annotations []KeyValue `json:"annotations"` + // Build Deprecated, please use "virtual_machine_build" instead Build PostOrganizationVirtualMachinesBuild201ResponseBuild `json:"build"` Hostname string `json:"hostname"` @@ -24216,6 +25448,7 @@ type PostOrganizationVirtualMachinesBuildResponse struct { JSON404 *DataCenterNotFoundVirtualMachinePackageNotFoundZoneNotFound404Res JSON422 *LocationRequiredValidationError422Res JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24238,6 +25471,8 @@ type PostOrganizationVirtualMachinesBuildFromSpecResponse struct { Body []byte HTTPResponse *http.Response JSON201 *struct { + Annotations []KeyValue `json:"annotations"` + // Build Deprecated, please use "virtual_machine_build" instead Build PostOrganizationVirtualMachinesBuildFromSpec201ResponseBuild `json:"build"` Hostname string `json:"hostname"` @@ -24249,6 +25484,7 @@ type PostOrganizationVirtualMachinesBuildFromSpecResponse struct { JSON404 *OrganizationNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24280,6 +25516,7 @@ type DeleteSecurityGroupResponse struct { JSON409 *DeletionRestrictedResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24302,6 +25539,8 @@ type GetSecurityGroupResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { + Annotations []KeyValue `json:"annotations"` + // SecurityGroup The security group SecurityGroup SecurityGroup `json:"security_group"` } @@ -24309,6 +25548,7 @@ type GetSecurityGroupResponse struct { JSON403 *APIAuthenticator403Response JSON404 *SecurityGroupNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24331,6 +25571,8 @@ type PatchSecurityGroupResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { + Annotations []KeyValue `json:"annotations"` + // SecurityGroup The security group that has been updated SecurityGroup SecurityGroup `json:"security_group"` } @@ -24339,6 +25581,7 @@ type PatchSecurityGroupResponse struct { JSON404 *SecurityGroupNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24370,6 +25613,7 @@ type GetSecurityGroupRulesResponse struct { JSON403 *PermissionDenied403Res JSON404 *SecurityGroupNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24400,6 +25644,7 @@ type PostSecurityGroupRulesResponse struct { JSON404 *SecurityGroupNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24430,6 +25675,7 @@ type DeleteSecurityGroupsRulesSecurityGroupRuleResponse struct { JSON404 *SecurityGroupRuleNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24459,6 +25705,7 @@ type GetSecurityGroupsRulesSecurityGroupRuleResponse struct { JSON403 *PermissionDenied403Res JSON404 *SecurityGroupRuleNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24489,6 +25736,7 @@ type PatchSecurityGroupsRulesSecurityGroupRuleResponse struct { JSON404 *SecurityGroupRuleNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24518,6 +25766,7 @@ type DeleteSshKeyResponse struct { JSON404 *SSHKeyNotFoundResponse JSON409 *DeletionRestrictedResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24547,6 +25796,7 @@ type DeleteTagResponse struct { JSON403 *PermissionDenied403Res JSON404 *TagNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24576,6 +25826,7 @@ type GetTagResponse struct { JSON403 *APIAuthenticator403Response JSON404 *TagNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24606,6 +25857,7 @@ type PatchTagResponse struct { JSON404 *TagNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24634,6 +25886,7 @@ type GetTaskResponse struct { JSON403 *APIAuthenticator403Response JSON404 *TaskNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24663,6 +25916,7 @@ type DeleteTrashObjectResponse struct { JSON404 *TrashObjectNotFoundResponse JSON406 *TaskQueueingErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24692,6 +25946,7 @@ type GetTrashObjectResponse struct { JSON403 *APIAuthenticator403Response JSON404 *TrashObjectNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24721,6 +25976,7 @@ type PostTrashObjectRestoreResponse struct { JSON403 *PermissionDenied403Res JSON404 *TrashObjectNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24743,7 +25999,7 @@ type GetUsersCurrentResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { - ApiTokenId string `json:"api_token_id"` + ApiTokenId nullable.Nullable[string] `json:"api_token_id"` Organizations []GetUsersCurrent200ResponseOrganizations `json:"organizations"` User User `json:"user"` } @@ -24751,6 +26007,7 @@ type GetUsersCurrentResponse struct { JSON403 *APIAuthenticator403Response JSON404 *NoUserAssociatedWithIdentityResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24776,6 +26033,7 @@ type GetVirtualMachineAuthorizedKeysResponse struct { JSON403 *APIAuthenticator403Response JSON404 *NoVirtualMachineForAPITokenResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24806,6 +26064,7 @@ type DeleteVirtualMachineGroupResponse struct { JSON404 *VirtualMachineGroupNotFoundResponse JSON409 *DeletionRestrictedResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24835,6 +26094,7 @@ type GetVirtualMachineGroupResponse struct { JSON403 *PermissionDenied403Res JSON404 *VirtualMachineGroupNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24865,6 +26125,7 @@ type PatchVirtualMachineGroupResponse struct { JSON404 *VirtualMachineGroupNotFoundResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24894,6 +26155,7 @@ type GetVMNIVMNIResponse struct { JSON403 *APIAuthenticator403Response JSON404 *VirtualMachineNetworkInterfaceNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24924,6 +26186,7 @@ type PostVirtualMachineNetworkInterfaceAllocateIpResponse struct { JSON404 *IPAddressNotFoundVirtualMachineNetworkInterfaceNotFound404Res JSON422 *IPAlreadyAllocatedInvalidIP422Res JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -24953,7 +26216,7 @@ type PostVirtualMachineNetworkInterfaceAllocateNewIpResponse struct { JSON403 *PermissionDenied403Res JSON404 *VirtualMachineNetworkInterfaceNotFoundResponse JSON429 *APIAuthenticator429Response - JSON503 *NoAvailableAddressesResponse + JSON503 *NoAvailableAddresses503Res } // Status returns HTTPResponse.Status @@ -24983,6 +26246,7 @@ type GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionResponse struct JSON403 *APIAuthenticator403Response JSON404 *VirtualMachineNetworkInterfaceNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -25014,6 +26278,7 @@ type PatchVirtualMachineNetworkInterfaceUpdateSpeedProfileResponse struct { JSON406 *TaskQueueingErrorResponse JSON422 *SpeedProfileAlreadyAssignedResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -25043,6 +26308,7 @@ type GetVirtualMachinePackagesResponse struct { JSON403 *OrganizationNotActivatedOrganizationSuspended403Res JSON404 *OrganizationNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -25071,6 +26337,7 @@ type GetVirtualMachinePackageResponse struct { JSON403 *APIAuthenticator403Response JSON404 *VirtualMachinePackageNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -25101,6 +26368,7 @@ type DeleteVirtualMachineResponse struct { JSON404 *VirtualMachineNotFoundResponse JSON406 *ObjectInTrashResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -25123,6 +26391,7 @@ type GetVirtualMachineResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { + Annotations []KeyValue `json:"annotations"` VirtualMachine GetVirtualMachine200ResponseVirtualMachine `json:"virtual_machine"` } JSON400 *APIAuthenticator400Response @@ -25130,6 +26399,7 @@ type GetVirtualMachineResponse struct { JSON404 *VirtualMachineNotFoundResponse JSON406 *ObjectInTrashResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -25152,6 +26422,8 @@ type PatchVirtualMachineResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { + Annotations []KeyValue `json:"annotations"` + // VirtualMachine The newly updated virtual machine VirtualMachine PatchVirtualMachine200ResponseVirtualMachine `json:"virtual_machine"` } @@ -25160,6 +26432,7 @@ type PatchVirtualMachineResponse struct { JSON404 *VirtualMachineNotFoundResponse JSON406 *ObjectInTrashResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -25191,6 +26464,7 @@ type PostVirtualMachineAllocateIpResponse struct { JSON406 *ObjectInTrashResponse JSON422 *IPAlreadyAllocatedNoInterfaceAvailable422Res JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -25221,6 +26495,7 @@ type PostVirtualMachineConsoleSessionsResponse struct { JSON406 *ObjectInTrashVirtualMachineMustBeStarted406Res JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -25252,6 +26527,7 @@ type GetVirtualMachineDiskBackupPoliciesResponse struct { JSON404 *VirtualMachineNotFoundResponse JSON406 *ObjectInTrashResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -25283,6 +26559,7 @@ type PostVirtualMachineDiskBackupPoliciesResponse struct { JSON406 *ObjectInTrashResponse JSON422 *ValidationErrorResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -25314,6 +26591,7 @@ type GetVirtualMachineDisksResponse struct { JSON404 *VirtualMachineNotFoundResponse JSON406 *ObjectInTrashResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -25343,6 +26621,7 @@ type PutVirtualMachineFlexibleResourcesResponse struct { JSON404 *VirtualMachineNotFoundResponse JSON406 *ObjectInTrashTaskQueueingError406Res JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -25375,6 +26654,7 @@ type GetVirtualMachineNetworkInterfacesResponse struct { JSON404 *VirtualMachineNotFoundResponse JSON406 *ObjectInTrashResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -25405,6 +26685,7 @@ type GetVirtualMachineNetworkInterfaceResponse struct { JSON404 *InterfaceNotFoundNetworkNotFoundVirtualMachineNotFound404Res JSON406 *ObjectInTrashResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -25434,6 +26715,7 @@ type PutVirtualMachinePackageResponse struct { JSON404 *VirtualMachineNotFoundVirtualMachinePackageNotFound404Res JSON406 *ObjectInTrashTaskQueueingError406Res JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -25463,6 +26745,7 @@ type PostVirtualMachineResetResponse struct { JSON404 *VirtualMachineNotFoundResponse JSON406 *ObjectInTrashTaskQueueingError406Res JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -25492,6 +26775,7 @@ type PostVirtualMachineShutdownResponse struct { JSON404 *VirtualMachineNotFoundResponse JSON406 *ObjectInTrashTaskQueueingError406Res JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -25521,6 +26805,7 @@ type PostVirtualMachineStartResponse struct { JSON404 *VirtualMachineNotFoundResponse JSON406 *ObjectInTrashTaskQueueingError406Res JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -25550,6 +26835,7 @@ type PostVirtualMachineStopResponse struct { JSON404 *VirtualMachineNotFoundResponse JSON406 *ObjectInTrashTaskQueueingError406Res JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -25572,12 +26858,14 @@ type GetVirtualMachinesBuildsVirtualMachineBuildResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { + Annotations []KeyValue `json:"annotations"` VirtualMachineBuild GetVirtualMachinesBuildsVirtualMachineBuild200ResponseVirtualMachineBuild `json:"virtual_machine_build"` } JSON400 *APIAuthenticator400Response JSON403 *APIAuthenticator403Response JSON404 *VirtualMachineBuildNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -25606,6 +26894,7 @@ type GetZonesResponse struct { JSON400 *APIAuthenticator400Response JSON403 *APIAuthenticator403Response JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -25635,6 +26924,7 @@ type GetZoneResponse struct { JSON403 *APIAuthenticator403Response JSON404 *ZoneNotFoundResponse JSON429 *APIAuthenticator429Response + JSON503 *APIAuthenticator503Response } // Status returns HTTPResponse.Status @@ -25970,6 +27260,141 @@ func (c *ClientWithResponses) PostAddressListEntriesWithResponse(ctx context.Con return res, nil } +// DeleteApiTokenWithBodyWithResponse request with arbitrary body returning *DeleteApiTokenResponse +func (c *ClientWithResponses) DeleteApiTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteApiTokenResponse, error) { + rsp, err := c.DeleteApiTokenWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + + res, err := ParseDeleteApiTokenResponse(rsp) + if err != nil { + return nil, err + } + + if rsp.StatusCode == http.StatusNotFound { + return res, ErrNotFound + } + + if rsp.StatusCode < 200 || rsp.StatusCode >= 300 { + return res, ErrRequestFailed + } + + return res, nil +} + +func (c *ClientWithResponses) DeleteApiTokenWithResponse(ctx context.Context, body DeleteApiTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteApiTokenResponse, error) { + rsp, err := c.DeleteApiToken(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + + res, err := ParseDeleteApiTokenResponse(rsp) + if err != nil { + return nil, err + } + + if rsp.StatusCode == http.StatusNotFound { + return res, ErrNotFound + } + + if rsp.StatusCode < 200 || rsp.StatusCode >= 300 { + return res, ErrRequestFailed + } + + return res, nil +} + +// PatchApiTokenWithBodyWithResponse request with arbitrary body returning *PatchApiTokenResponse +func (c *ClientWithResponses) PatchApiTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchApiTokenResponse, error) { + rsp, err := c.PatchApiTokenWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + + res, err := ParsePatchApiTokenResponse(rsp) + if err != nil { + return nil, err + } + + if rsp.StatusCode == http.StatusNotFound { + return res, ErrNotFound + } + + if rsp.StatusCode < 200 || rsp.StatusCode >= 300 { + return res, ErrRequestFailed + } + + return res, nil +} + +func (c *ClientWithResponses) PatchApiTokenWithResponse(ctx context.Context, body PatchApiTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchApiTokenResponse, error) { + rsp, err := c.PatchApiToken(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + + res, err := ParsePatchApiTokenResponse(rsp) + if err != nil { + return nil, err + } + + if rsp.StatusCode == http.StatusNotFound { + return res, ErrNotFound + } + + if rsp.StatusCode < 200 || rsp.StatusCode >= 300 { + return res, ErrRequestFailed + } + + return res, nil +} + +// PostApiTokenRegenerateSecretWithBodyWithResponse request with arbitrary body returning *PostApiTokenRegenerateSecretResponse +func (c *ClientWithResponses) PostApiTokenRegenerateSecretWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostApiTokenRegenerateSecretResponse, error) { + rsp, err := c.PostApiTokenRegenerateSecretWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + + res, err := ParsePostApiTokenRegenerateSecretResponse(rsp) + if err != nil { + return nil, err + } + + if rsp.StatusCode == http.StatusNotFound { + return res, ErrNotFound + } + + if rsp.StatusCode < 200 || rsp.StatusCode >= 300 { + return res, ErrRequestFailed + } + + return res, nil +} + +func (c *ClientWithResponses) PostApiTokenRegenerateSecretWithResponse(ctx context.Context, body PostApiTokenRegenerateSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*PostApiTokenRegenerateSecretResponse, error) { + rsp, err := c.PostApiTokenRegenerateSecret(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + + res, err := ParsePostApiTokenRegenerateSecretResponse(rsp) + if err != nil { + return nil, err + } + + if rsp.StatusCode == http.StatusNotFound { + return res, ErrNotFound + } + + if rsp.StatusCode < 200 || rsp.StatusCode >= 300 { + return res, ErrRequestFailed + } + + return res, nil +} + // GetCertificateWithResponse request returning *GetCertificateResponse func (c *ClientWithResponses) GetCertificateWithResponse(ctx context.Context, params *GetCertificateParams, reqEditors ...RequestEditorFn) (*GetCertificateResponse, error) { rsp, err := c.GetCertificate(ctx, params, reqEditors...) @@ -28102,6 +29527,74 @@ func (c *ClientWithResponses) PostOrganizationAddressListsWithResponse(ctx conte return res, nil } +// GetOrganizationApiTokensWithResponse request returning *GetOrganizationApiTokensResponse +func (c *ClientWithResponses) GetOrganizationApiTokensWithResponse(ctx context.Context, params *GetOrganizationApiTokensParams, reqEditors ...RequestEditorFn) (*GetOrganizationApiTokensResponse, error) { + rsp, err := c.GetOrganizationApiTokens(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + + res, err := ParseGetOrganizationApiTokensResponse(rsp) + if err != nil { + return nil, err + } + + if rsp.StatusCode == http.StatusNotFound { + return res, ErrNotFound + } + + if rsp.StatusCode < 200 || rsp.StatusCode >= 300 { + return res, ErrRequestFailed + } + + return res, nil +} + +// PostOrganizationApiTokensWithBodyWithResponse request with arbitrary body returning *PostOrganizationApiTokensResponse +func (c *ClientWithResponses) PostOrganizationApiTokensWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrganizationApiTokensResponse, error) { + rsp, err := c.PostOrganizationApiTokensWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + + res, err := ParsePostOrganizationApiTokensResponse(rsp) + if err != nil { + return nil, err + } + + if rsp.StatusCode == http.StatusNotFound { + return res, ErrNotFound + } + + if rsp.StatusCode < 200 || rsp.StatusCode >= 300 { + return res, ErrRequestFailed + } + + return res, nil +} + +func (c *ClientWithResponses) PostOrganizationApiTokensWithResponse(ctx context.Context, body PostOrganizationApiTokensJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrganizationApiTokensResponse, error) { + rsp, err := c.PostOrganizationApiTokens(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + + res, err := ParsePostOrganizationApiTokensResponse(rsp) + if err != nil { + return nil, err + } + + if rsp.StatusCode == http.StatusNotFound { + return res, ErrNotFound + } + + if rsp.StatusCode < 200 || rsp.StatusCode >= 300 { + return res, ErrRequestFailed + } + + return res, nil +} + // GetOrganizationAvailableNetworksWithResponse request returning *GetOrganizationAvailableNetworksResponse func (c *ClientWithResponses) GetOrganizationAvailableNetworksWithResponse(ctx context.Context, params *GetOrganizationAvailableNetworksParams, reqEditors ...RequestEditorFn) (*GetOrganizationAvailableNetworksResponse, error) { rsp, err := c.GetOrganizationAvailableNetworks(ctx, params, reqEditors...) @@ -30862,12 +32355,687 @@ func ParseDeleteAddressListEntryResponse(rsp *http.Response) (*DeleteAddressList response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest AddressListEntryNotFoundResponse + var dest AddressListEntryNotFoundResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + + } + + return response, nil +} + +// ParseGetAddressListEntryResponse parses an HTTP response from a GetAddressListEntryWithResponse call +func ParseGetAddressListEntryResponse(rsp *http.Response) (*GetAddressListEntryResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAddressListEntryResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // AddressListEntry The address list entry. + AddressListEntry AddressListEntry `json:"address_list_entry"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest APIAuthenticator400Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest APIAuthenticator403Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest AddressListEntryNotFoundResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + + } + + return response, nil +} + +// ParsePatchAddressListEntryResponse parses an HTTP response from a PatchAddressListEntryWithResponse call +func ParsePatchAddressListEntryResponse(rsp *http.Response) (*PatchAddressListEntryResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PatchAddressListEntryResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // AddressListEntry The address list entry. + AddressListEntry AddressListEntry `json:"address_list_entry"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest APIAuthenticator400Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest PermissionDenied403Res + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest AddressListEntryNotFoundResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest ValidationErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + + } + + return response, nil +} + +// ParseGetAddressListsResponse parses an HTTP response from a GetAddressListsWithResponse call +func ParseGetAddressListsResponse(rsp *http.Response) (*GetAddressListsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAddressListsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // AddressLists A list of all global address lists. + AddressLists []GetAddressLists200ResponseAddressLists `json:"address_lists"` + Pagination PaginationObject `json:"pagination"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest APIAuthenticator400Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest APIAuthenticator403Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + + } + + return response, nil +} + +// ParseDeleteAddressListResponse parses an HTTP response from a DeleteAddressListWithResponse call +func ParseDeleteAddressListResponse(rsp *http.Response) (*DeleteAddressListResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteAddressListResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // AddressList The address list that has been destroyed. + AddressList AddressList `json:"address_list"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest APIAuthenticator400Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest PermissionDenied403Res + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest AddressListNotFoundResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + + } + + return response, nil +} + +// ParseGetAddressListResponse parses an HTTP response from a GetAddressListWithResponse call +func ParseGetAddressListResponse(rsp *http.Response) (*GetAddressListResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAddressListResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // AddressList The address list. + AddressList AddressList `json:"address_list"` + Annotations []KeyValue `json:"annotations"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest APIAuthenticator400Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest APIAuthenticator403Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest AddressListNotFoundResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + + } + + return response, nil +} + +// ParsePatchAddressListResponse parses an HTTP response from a PatchAddressListWithResponse call +func ParsePatchAddressListResponse(rsp *http.Response) (*PatchAddressListResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PatchAddressListResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // AddressList The address list. + AddressList AddressList `json:"address_list"` + Annotations []KeyValue `json:"annotations"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest APIAuthenticator400Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest PermissionDenied403Res + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest AddressListNotFoundResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest ValidationErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + + } + + return response, nil +} + +// ParseGetAddressListEntriesResponse parses an HTTP response from a GetAddressListEntriesWithResponse call +func ParseGetAddressListEntriesResponse(rsp *http.Response) (*GetAddressListEntriesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAddressListEntriesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // AddressListEntries A list of all address list entries for the given address list. + AddressListEntries []AddressListEntry `json:"address_list_entries"` + Pagination PaginationObject `json:"pagination"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest APIAuthenticator400Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest PermissionDenied403Res + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest AddressListNotFoundResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + + } + + return response, nil +} + +// ParsePostAddressListEntriesResponse parses an HTTP response from a PostAddressListEntriesWithResponse call +func ParsePostAddressListEntriesResponse(rsp *http.Response) (*PostAddressListEntriesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostAddressListEntriesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest struct { + // AddressListEntry The address list entry. + AddressListEntry AddressListEntry `json:"address_list_entry"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest APIAuthenticator400Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest PermissionDenied403Res + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest AddressListNotFoundResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest ValidationErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + + } + + return response, nil +} + +// ParseDeleteApiTokenResponse parses an HTTP response from a DeleteApiTokenWithResponse call +func ParseDeleteApiTokenResponse(rsp *http.Response) (*DeleteApiTokenResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteApiTokenResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // ApiToken The API token that has been destroyed + ApiToken DeleteAPIToken200ResponseAPIToken `json:"api_token"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest APIAuthenticator400Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest PermissionDenied403Res + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest APITokenNotFoundResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest ValidationErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + + } + + return response, nil +} + +// ParsePatchApiTokenResponse parses an HTTP response from a PatchApiTokenWithResponse call +func ParsePatchApiTokenResponse(rsp *http.Response) (*PatchApiTokenResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PatchApiTokenResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // Annotations Annotations for this API token + Annotations []KeyValue `json:"annotations"` + + // ApiToken The API token that has been updated + ApiToken APIToken `json:"api_token"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest APIAuthenticator400Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest PermissionDenied403Res + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest APITokenNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest ValidationErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -30875,20 +33043,27 @@ func ParseDeleteAddressListEntryResponse(rsp *http.Response) (*DeleteAddressList } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetAddressListEntryResponse parses an HTTP response from a GetAddressListEntryWithResponse call -func ParseGetAddressListEntryResponse(rsp *http.Response) (*GetAddressListEntryResponse, error) { +// ParsePostApiTokenRegenerateSecretResponse parses an HTTP response from a PostApiTokenRegenerateSecretWithResponse call +func ParsePostApiTokenRegenerateSecretResponse(rsp *http.Response) (*PostApiTokenRegenerateSecretResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetAddressListEntryResponse{ + response := &PostApiTokenRegenerateSecretResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -30896,8 +33071,8 @@ func ParseGetAddressListEntryResponse(rsp *http.Response) (*GetAddressListEntryR switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // AddressListEntry The address list entry. - AddressListEntry AddressListEntry `json:"address_list_entry"` + // ApiToken The API token that has had its secret regenerated + ApiToken APIToken `json:"api_token"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -30912,19 +33087,26 @@ func ParseGetAddressListEntryResponse(rsp *http.Response) (*GetAddressListEntryR response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APIAuthenticator403Response + var dest PermissionDenied403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest AddressListEntryNotFoundResponse + var dest APITokenNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest ValidationErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -30932,20 +33114,27 @@ func ParseGetAddressListEntryResponse(rsp *http.Response) (*GetAddressListEntryR } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParsePatchAddressListEntryResponse parses an HTTP response from a PatchAddressListEntryWithResponse call -func ParsePatchAddressListEntryResponse(rsp *http.Response) (*PatchAddressListEntryResponse, error) { +// ParseGetCertificateResponse parses an HTTP response from a GetCertificateWithResponse call +func ParseGetCertificateResponse(rsp *http.Response) (*GetCertificateResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PatchAddressListEntryResponse{ + response := &GetCertificateResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -30953,8 +33142,7 @@ func ParsePatchAddressListEntryResponse(rsp *http.Response) (*PatchAddressListEn switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // AddressListEntry The address list entry. - AddressListEntry AddressListEntry `json:"address_list_entry"` + Certificate []Certificate `json:"certificate"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -30969,25 +33157,25 @@ func ParsePatchAddressListEntryResponse(rsp *http.Response) (*PatchAddressListEn response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest PermissionDenied403Res + var dest APIAuthenticator403Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest AddressListEntryNotFoundResponse + var dest CertificateNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest ValidationErrorResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: + var dest ObjectInTrashResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON406 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest APIAuthenticator429Response @@ -30996,20 +33184,27 @@ func ParsePatchAddressListEntryResponse(rsp *http.Response) (*PatchAddressListEn } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetAddressListsResponse parses an HTTP response from a GetAddressListsWithResponse call -func ParseGetAddressListsResponse(rsp *http.Response) (*GetAddressListsResponse, error) { +// ParseGetCountriesResponse parses an HTTP response from a GetCountriesWithResponse call +func ParseGetCountriesResponse(rsp *http.Response) (*GetCountriesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetAddressListsResponse{ + response := &GetCountriesResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -31017,9 +33212,9 @@ func ParseGetAddressListsResponse(rsp *http.Response) (*GetAddressListsResponse, switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // AddressLists A list of all global address lists. - AddressLists []GetAddressLists200ResponseAddressLists `json:"address_lists"` - Pagination PaginationObject `json:"pagination"` + // Countries The list of countries + Countries []GetCountries200ResponseCountries `json:"countries"` + Pagination PaginationObject `json:"pagination"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -31047,20 +33242,27 @@ func ParseGetAddressListsResponse(rsp *http.Response) (*GetAddressListsResponse, } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseDeleteAddressListResponse parses an HTTP response from a DeleteAddressListWithResponse call -func ParseDeleteAddressListResponse(rsp *http.Response) (*DeleteAddressListResponse, error) { +// ParseGetCountryResponse parses an HTTP response from a GetCountryWithResponse call +func ParseGetCountryResponse(rsp *http.Response) (*GetCountryResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteAddressListResponse{ + response := &GetCountryResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -31068,8 +33270,8 @@ func ParseDeleteAddressListResponse(rsp *http.Response) (*DeleteAddressListRespo switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // AddressList The address list that has been destroyed. - AddressList AddressList `json:"address_list"` + // Country The country details + Country Country `json:"country"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -31084,14 +33286,14 @@ func ParseDeleteAddressListResponse(rsp *http.Response) (*DeleteAddressListRespo response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest PermissionDenied403Res + var dest APIAuthenticator403Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest AddressListNotFoundResponse + var dest CountryNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -31104,20 +33306,27 @@ func ParseDeleteAddressListResponse(rsp *http.Response) (*DeleteAddressListRespo } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetAddressListResponse parses an HTTP response from a GetAddressListWithResponse call -func ParseGetAddressListResponse(rsp *http.Response) (*GetAddressListResponse, error) { +// ParseGetCountryCountryStatesResponse parses an HTTP response from a GetCountryCountryStatesWithResponse call +func ParseGetCountryCountryStatesResponse(rsp *http.Response) (*GetCountryCountryStatesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetAddressListResponse{ + response := &GetCountryCountryStatesResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -31125,8 +33334,9 @@ func ParseGetAddressListResponse(rsp *http.Response) (*GetAddressListResponse, e switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // AddressList The address list. - AddressList AddressList `json:"address_list"` + // CountryStates The list of country states for the given country + CountryStates []GetCountryCountryStates200ResponseCountryStates `json:"country_states"` + Pagination PaginationObject `json:"pagination"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -31148,7 +33358,7 @@ func ParseGetAddressListResponse(rsp *http.Response) (*GetAddressListResponse, e response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest AddressListNotFoundResponse + var dest CountryNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -31161,20 +33371,27 @@ func ParseGetAddressListResponse(rsp *http.Response) (*GetAddressListResponse, e } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParsePatchAddressListResponse parses an HTTP response from a PatchAddressListWithResponse call -func ParsePatchAddressListResponse(rsp *http.Response) (*PatchAddressListResponse, error) { +// ParseGetCountryStateResponse parses an HTTP response from a GetCountryStateWithResponse call +func ParseGetCountryStateResponse(rsp *http.Response) (*GetCountryStateResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PatchAddressListResponse{ + response := &GetCountryStateResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -31182,8 +33399,8 @@ func ParsePatchAddressListResponse(rsp *http.Response) (*PatchAddressListRespons switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // AddressList The address list. - AddressList AddressList `json:"address_list"` + // CountryState The country state details + CountryState CountryState `json:"country_state"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -31198,47 +33415,47 @@ func ParsePatchAddressListResponse(rsp *http.Response) (*PatchAddressListRespons response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest PermissionDenied403Res + var dest APIAuthenticator403Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest AddressListNotFoundResponse + var dest CountryStateNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest ValidationErrorResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParseGetAddressListEntriesResponse parses an HTTP response from a GetAddressListEntriesWithResponse call -func ParseGetAddressListEntriesResponse(rsp *http.Response) (*GetAddressListEntriesResponse, error) { +// ParseGetCurrenciesResponse parses an HTTP response from a GetCurrenciesWithResponse call +func ParseGetCurrenciesResponse(rsp *http.Response) (*GetCurrenciesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetAddressListEntriesResponse{ + response := &GetCurrenciesResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -31246,9 +33463,9 @@ func ParseGetAddressListEntriesResponse(rsp *http.Response) (*GetAddressListEntr switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // AddressListEntries A list of all address list entries for the given address list. - AddressListEntries []AddressListEntry `json:"address_list_entries"` - Pagination PaginationObject `json:"pagination"` + // Currencies The list of currencies + Currencies []GetCurrencies200ResponseCurrencies `json:"currencies"` + Pagination PaginationObject `json:"pagination"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -31263,54 +33480,54 @@ func ParseGetAddressListEntriesResponse(rsp *http.Response) (*GetAddressListEntr response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest PermissionDenied403Res + var dest APIAuthenticator403Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest AddressListNotFoundResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParsePostAddressListEntriesResponse parses an HTTP response from a PostAddressListEntriesWithResponse call -func ParsePostAddressListEntriesResponse(rsp *http.Response) (*PostAddressListEntriesResponse, error) { +// ParseGetCurrencyResponse parses an HTTP response from a GetCurrencyWithResponse call +func ParseGetCurrencyResponse(rsp *http.Response) (*GetCurrencyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostAddressListEntriesResponse{ + response := &GetCurrencyResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // AddressListEntry The address list entry. - AddressListEntry AddressListEntry `json:"address_list_entry"` + // Currency The currency details + Currency Currency `json:"currency"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest APIAuthenticator400Response @@ -31320,47 +33537,47 @@ func ParsePostAddressListEntriesResponse(rsp *http.Response) (*PostAddressListEn response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest PermissionDenied403Res + var dest APIAuthenticator403Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest AddressListNotFoundResponse + var dest CurrencyNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest ValidationErrorResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParseGetCertificateResponse parses an HTTP response from a GetCertificateWithResponse call -func ParseGetCertificateResponse(rsp *http.Response) (*GetCertificateResponse, error) { +// ParseGetDataCentersResponse parses an HTTP response from a GetDataCentersWithResponse call +func ParseGetDataCentersResponse(rsp *http.Response) (*GetDataCentersResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetCertificateResponse{ + response := &GetDataCentersResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -31368,7 +33585,7 @@ func ParseGetCertificateResponse(rsp *http.Response) (*GetCertificateResponse, e switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Certificate []Certificate `json:"certificate"` + DataCenters []GetDataCenters200ResponseDataCenters `json:"data_centers"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -31389,41 +33606,34 @@ func ParseGetCertificateResponse(rsp *http.Response) (*GetCertificateResponse, e } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest CertificateNotFoundResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: - var dest ObjectInTrashResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON406 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParseGetCountriesResponse parses an HTTP response from a GetCountriesWithResponse call -func ParseGetCountriesResponse(rsp *http.Response) (*GetCountriesResponse, error) { +// ParseGetDataCenterResponse parses an HTTP response from a GetDataCenterWithResponse call +func ParseGetDataCenterResponse(rsp *http.Response) (*GetDataCenterResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetCountriesResponse{ + response := &GetDataCenterResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -31431,9 +33641,7 @@ func ParseGetCountriesResponse(rsp *http.Response) (*GetCountriesResponse, error switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // Countries The list of countries - Countries []GetCountries200ResponseCountries `json:"countries"` - Pagination PaginationObject `json:"pagination"` + DataCenter GetDataCenter200ResponseDataCenter `json:"data_center"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -31454,6 +33662,13 @@ func ParseGetCountriesResponse(rsp *http.Response) (*GetCountriesResponse, error } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest DataCenterNotFoundResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -31461,20 +33676,27 @@ func ParseGetCountriesResponse(rsp *http.Response) (*GetCountriesResponse, error } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetCountryResponse parses an HTTP response from a GetCountryWithResponse call -func ParseGetCountryResponse(rsp *http.Response) (*GetCountryResponse, error) { +// ParseGetDataCenterDefaultNetworkResponse parses an HTTP response from a GetDataCenterDefaultNetworkWithResponse call +func ParseGetDataCenterDefaultNetworkResponse(rsp *http.Response) (*GetDataCenterDefaultNetworkResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetCountryResponse{ + response := &GetDataCenterDefaultNetworkResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -31482,8 +33704,8 @@ func ParseGetCountryResponse(rsp *http.Response) (*GetCountryResponse, error) { switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // Country The country details - Country Country `json:"country"` + // Network The details for the requested network + Network GetDataCenterDefaultNetwork200ResponseNetwork `json:"network"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -31505,7 +33727,7 @@ func ParseGetCountryResponse(rsp *http.Response) (*GetCountryResponse, error) { response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest CountryNotFoundResponse + var dest DataCenterNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -31518,20 +33740,27 @@ func ParseGetCountryResponse(rsp *http.Response) (*GetCountryResponse, error) { } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetCountryCountryStatesResponse parses an HTTP response from a GetCountryCountryStatesWithResponse call -func ParseGetCountryCountryStatesResponse(rsp *http.Response) (*GetCountryCountryStatesResponse, error) { +// ParseGetDataCenterGpuTypesResponse parses an HTTP response from a GetDataCenterGpuTypesWithResponse call +func ParseGetDataCenterGpuTypesResponse(rsp *http.Response) (*GetDataCenterGpuTypesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetCountryCountryStatesResponse{ + response := &GetDataCenterGpuTypesResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -31539,9 +33768,8 @@ func ParseGetCountryCountryStatesResponse(rsp *http.Response) (*GetCountryCountr switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // CountryStates The list of country states for the given country - CountryStates []GetCountryCountryStates200ResponseCountryStates `json:"country_states"` - Pagination PaginationObject `json:"pagination"` + GpuTypes []GetDataCenterGPUTypes200ResponseGPUTypes `json:"gpu_types"` + Pagination PaginationObject `json:"pagination"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -31563,7 +33791,7 @@ func ParseGetCountryCountryStatesResponse(rsp *http.Response) (*GetCountryCountr response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest CountryNotFoundResponse + var dest DataCenterNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -31576,20 +33804,27 @@ func ParseGetCountryCountryStatesResponse(rsp *http.Response) (*GetCountryCountr } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetCountryStateResponse parses an HTTP response from a GetCountryStateWithResponse call -func ParseGetCountryStateResponse(rsp *http.Response) (*GetCountryStateResponse, error) { +// ParseDeleteDiskBackupPolicyResponse parses an HTTP response from a DeleteDiskBackupPolicyWithResponse call +func ParseDeleteDiskBackupPolicyResponse(rsp *http.Response) (*DeleteDiskBackupPolicyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetCountryStateResponse{ + response := &DeleteDiskBackupPolicyResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -31597,8 +33832,8 @@ func ParseGetCountryStateResponse(rsp *http.Response) (*GetCountryStateResponse, switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // CountryState The country state details - CountryState CountryState `json:"country_state"` + // DiskBackupPolicy The disk backup policy that has been destroyed + DiskBackupPolicy DeleteDiskBackupPolicy200ResponseDiskBackupPolicy `json:"disk_backup_policy"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -31613,19 +33848,26 @@ func ParseGetCountryStateResponse(rsp *http.Response) (*GetCountryStateResponse, response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APIAuthenticator403Response + var dest PermissionDenied403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest CountryStateNotFoundResponse + var dest DiskBackupPolicyNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: + var dest ObjectInTrashResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON406 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -31633,20 +33875,27 @@ func ParseGetCountryStateResponse(rsp *http.Response) (*GetCountryStateResponse, } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetCurrenciesResponse parses an HTTP response from a GetCurrenciesWithResponse call -func ParseGetCurrenciesResponse(rsp *http.Response) (*GetCurrenciesResponse, error) { +// ParseGetDiskBackupPolicyResponse parses an HTTP response from a GetDiskBackupPolicyWithResponse call +func ParseGetDiskBackupPolicyResponse(rsp *http.Response) (*GetDiskBackupPolicyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetCurrenciesResponse{ + response := &GetDiskBackupPolicyResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -31654,9 +33903,8 @@ func ParseGetCurrenciesResponse(rsp *http.Response) (*GetCurrenciesResponse, err switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // Currencies The list of currencies - Currencies []GetCurrencies200ResponseCurrencies `json:"currencies"` - Pagination PaginationObject `json:"pagination"` + // DiskBackupPolicy The located disk backup policy + DiskBackupPolicy GetDiskBackupPolicy200ResponseDiskBackupPolicy `json:"disk_backup_policy"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -31677,6 +33925,20 @@ func ParseGetCurrenciesResponse(rsp *http.Response) (*GetCurrenciesResponse, err } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest DiskBackupPolicyNotFoundResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: + var dest ObjectInTrashResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON406 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -31684,20 +33946,27 @@ func ParseGetCurrenciesResponse(rsp *http.Response) (*GetCurrenciesResponse, err } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetCurrencyResponse parses an HTTP response from a GetCurrencyWithResponse call -func ParseGetCurrencyResponse(rsp *http.Response) (*GetCurrencyResponse, error) { +// ParsePatchDiskBackupPolicyResponse parses an HTTP response from a PatchDiskBackupPolicyWithResponse call +func ParsePatchDiskBackupPolicyResponse(rsp *http.Response) (*PatchDiskBackupPolicyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetCurrencyResponse{ + response := &PatchDiskBackupPolicyResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -31705,8 +33974,8 @@ func ParseGetCurrencyResponse(rsp *http.Response) (*GetCurrencyResponse, error) switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // Currency The currency details - Currency Currency `json:"currency"` + // DiskBackupPolicy The disk backup policy that has been updated + DiskBackupPolicy PatchDiskBackupPolicy200ResponseDiskBackupPolicy `json:"disk_backup_policy"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -31721,89 +33990,61 @@ func ParseGetCurrencyResponse(rsp *http.Response) (*GetCurrencyResponse, error) response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APIAuthenticator403Response + var dest PermissionDenied403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest CurrencyNotFoundResponse + var dest DiskBackupPolicyNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - - } - - return response, nil -} - -// ParseGetDataCentersResponse parses an HTTP response from a GetDataCentersWithResponse call -func ParseGetDataCentersResponse(rsp *http.Response) (*GetDataCentersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetDataCentersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - DataCenters []GetDataCenters200ResponseDataCenters `json:"data_centers"` - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: + var dest ObjectInTrashResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON406 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest APIAuthenticator400Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest ValidationErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON422 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APIAuthenticator403Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParseGetDataCenterResponse parses an HTTP response from a GetDataCenterWithResponse call -func ParseGetDataCenterResponse(rsp *http.Response) (*GetDataCenterResponse, error) { +// ParseDeleteDiskBackupPolicyScheduleResponse parses an HTTP response from a DeleteDiskBackupPolicyScheduleWithResponse call +func ParseDeleteDiskBackupPolicyScheduleResponse(rsp *http.Response) (*DeleteDiskBackupPolicyScheduleResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDataCenterResponse{ + response := &DeleteDiskBackupPolicyScheduleResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -31811,7 +34052,8 @@ func ParseGetDataCenterResponse(rsp *http.Response) (*GetDataCenterResponse, err switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - DataCenter GetDataCenter200ResponseDataCenter `json:"data_center"` + // DiskBackupPolicy The disk backup policy that has been scheduled for deletion + DiskBackupPolicy DeleteDiskBackupPolicySchedule200ResponseDiskBackupPolicy `json:"disk_backup_policy"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -31819,26 +34061,33 @@ func ParseGetDataCenterResponse(rsp *http.Response) (*GetDataCenterResponse, err response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest APIAuthenticator400Response + var dest InvalidTimestamp400Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APIAuthenticator403Response + var dest PermissionDenied403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DataCenterNotFoundResponse + var dest DiskBackupPolicyNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: + var dest ObjectInTrashResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON406 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -31846,20 +34095,27 @@ func ParseGetDataCenterResponse(rsp *http.Response) (*GetDataCenterResponse, err } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetDataCenterDefaultNetworkResponse parses an HTTP response from a GetDataCenterDefaultNetworkWithResponse call -func ParseGetDataCenterDefaultNetworkResponse(rsp *http.Response) (*GetDataCenterDefaultNetworkResponse, error) { +// ParseGetDiskTemplateVersionResponse parses an HTTP response from a GetDiskTemplateVersionWithResponse call +func ParseGetDiskTemplateVersionResponse(rsp *http.Response) (*GetDiskTemplateVersionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDataCenterDefaultNetworkResponse{ + response := &GetDiskTemplateVersionResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -31867,8 +34123,8 @@ func ParseGetDataCenterDefaultNetworkResponse(rsp *http.Response) (*GetDataCente switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // Network The details for the requested network - Network GetDataCenterDefaultNetwork200ResponseNetwork `json:"network"` + // DiskTemplateVersion The disk template version details + DiskTemplateVersion GetDiskTemplateVersion200ResponseDiskTemplateVersion `json:"disk_template_version"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -31890,7 +34146,7 @@ func ParseGetDataCenterDefaultNetworkResponse(rsp *http.Response) (*GetDataCente response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DataCenterNotFoundResponse + var dest DiskTemplateVersionNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -31903,20 +34159,27 @@ func ParseGetDataCenterDefaultNetworkResponse(rsp *http.Response) (*GetDataCente } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetDataCenterGpuTypesResponse parses an HTTP response from a GetDataCenterGpuTypesWithResponse call -func ParseGetDataCenterGpuTypesResponse(rsp *http.Response) (*GetDataCenterGpuTypesResponse, error) { +// ParseGetDiskTemplateVersionSpecResponse parses an HTTP response from a GetDiskTemplateVersionSpecWithResponse call +func ParseGetDiskTemplateVersionSpecResponse(rsp *http.Response) (*GetDiskTemplateVersionSpecResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDataCenterGpuTypesResponse{ + response := &GetDiskTemplateVersionSpecResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -31924,8 +34187,9 @@ func ParseGetDataCenterGpuTypesResponse(rsp *http.Response) (*GetDataCenterGpuTy switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - GpuTypes []GetDataCenterGPUTypes200ResponseGPUTypes `json:"gpu_types"` - Pagination PaginationObject `json:"pagination"` + // DiskTemplateVersion The disk template version details + DiskTemplateVersion GetDiskTemplateVersionSpec200ResponseDiskTemplateVersion `json:"disk_template_version"` + Spec TemplateSpec `json:"spec"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -31947,7 +34211,7 @@ func ParseGetDataCenterGpuTypesResponse(rsp *http.Response) (*GetDataCenterGpuTy response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DataCenterNotFoundResponse + var dest DiskTemplateVersionNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -31960,20 +34224,27 @@ func ParseGetDataCenterGpuTypesResponse(rsp *http.Response) (*GetDataCenterGpuTy } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseDeleteDiskBackupPolicyResponse parses an HTTP response from a DeleteDiskBackupPolicyWithResponse call -func ParseDeleteDiskBackupPolicyResponse(rsp *http.Response) (*DeleteDiskBackupPolicyResponse, error) { +// ParseGetDiskTemplateResponse parses an HTTP response from a GetDiskTemplateWithResponse call +func ParseGetDiskTemplateResponse(rsp *http.Response) (*GetDiskTemplateResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteDiskBackupPolicyResponse{ + response := &GetDiskTemplateResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -31981,8 +34252,8 @@ func ParseDeleteDiskBackupPolicyResponse(rsp *http.Response) (*DeleteDiskBackupP switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // DiskBackupPolicy The disk backup policy that has been destroyed - DiskBackupPolicy DeleteDiskBackupPolicy200ResponseDiskBackupPolicy `json:"disk_backup_policy"` + // DiskTemplate The disk template details + DiskTemplate GetDiskTemplate200ResponseDiskTemplate `json:"disk_template"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -31997,47 +34268,47 @@ func ParseDeleteDiskBackupPolicyResponse(rsp *http.Response) (*DeleteDiskBackupP response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest PermissionDenied403Res + var dest APIAuthenticator403Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DiskBackupPolicyNotFoundResponse + var dest DiskTemplateNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: - var dest ObjectInTrashResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON406 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParseGetDiskBackupPolicyResponse parses an HTTP response from a GetDiskBackupPolicyWithResponse call -func ParseGetDiskBackupPolicyResponse(rsp *http.Response) (*GetDiskBackupPolicyResponse, error) { +// ParseGetDiskTemplateVersionsResponse parses an HTTP response from a GetDiskTemplateVersionsWithResponse call +func ParseGetDiskTemplateVersionsResponse(rsp *http.Response) (*GetDiskTemplateVersionsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDiskBackupPolicyResponse{ + response := &GetDiskTemplateVersionsResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -32045,8 +34316,11 @@ func ParseGetDiskBackupPolicyResponse(rsp *http.Response) (*GetDiskBackupPolicyR switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // DiskBackupPolicy The located disk backup policy - DiskBackupPolicy GetDiskBackupPolicy200ResponseDiskBackupPolicy `json:"disk_backup_policy"` + DiskTemplate GetDiskTemplateVersions200ResponseDiskTemplate `json:"disk_template"` + + // DiskTemplateVersions The disk template versions for the provided template + DiskTemplateVersions []GetDiskTemplateVersions200ResponseDiskTemplateVersions `json:"disk_template_versions"` + Pagination PaginationObject `json:"pagination"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -32068,40 +34342,40 @@ func ParseGetDiskBackupPolicyResponse(rsp *http.Response) (*GetDiskBackupPolicyR response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DiskBackupPolicyNotFoundResponse + var dest DiskTemplateNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: - var dest ObjectInTrashResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON406 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParsePatchDiskBackupPolicyResponse parses an HTTP response from a PatchDiskBackupPolicyWithResponse call -func ParsePatchDiskBackupPolicyResponse(rsp *http.Response) (*PatchDiskBackupPolicyResponse, error) { +// ParseDeleteDiskResponse parses an HTTP response from a DeleteDiskWithResponse call +func ParseDeleteDiskResponse(rsp *http.Response) (*DeleteDiskResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PatchDiskBackupPolicyResponse{ + response := &DeleteDiskResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -32109,8 +34383,9 @@ func ParsePatchDiskBackupPolicyResponse(rsp *http.Response) (*PatchDiskBackupPol switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // DiskBackupPolicy The disk backup policy that has been updated - DiskBackupPolicy PatchDiskBackupPolicy200ResponseDiskBackupPolicy `json:"disk_backup_policy"` + // Disk The disk that has been move to the trash. + Disk DeleteDisk200ResponseDisk `json:"disk"` + TrashObject TrashObject `json:"trash_object"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -32132,7 +34407,7 @@ func ParsePatchDiskBackupPolicyResponse(rsp *http.Response) (*PatchDiskBackupPol response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DiskBackupPolicyNotFoundResponse + var dest DiskNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -32159,20 +34434,27 @@ func ParsePatchDiskBackupPolicyResponse(rsp *http.Response) (*PatchDiskBackupPol } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseDeleteDiskBackupPolicyScheduleResponse parses an HTTP response from a DeleteDiskBackupPolicyScheduleWithResponse call -func ParseDeleteDiskBackupPolicyScheduleResponse(rsp *http.Response) (*DeleteDiskBackupPolicyScheduleResponse, error) { +// ParseGetDiskResponse parses an HTTP response from a GetDiskWithResponse call +func ParseGetDiskResponse(rsp *http.Response) (*GetDiskResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteDiskBackupPolicyScheduleResponse{ + response := &GetDiskResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -32180,8 +34462,10 @@ func ParseDeleteDiskBackupPolicyScheduleResponse(rsp *http.Response) (*DeleteDis switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // DiskBackupPolicy The disk backup policy that has been scheduled for deletion - DiskBackupPolicy DeleteDiskBackupPolicySchedule200ResponseDiskBackupPolicy `json:"disk_backup_policy"` + Annotations []KeyValue `json:"annotations"` + + // Disk The disk details + Disk GetDisk200ResponseDisk `json:"disk"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -32189,21 +34473,21 @@ func ParseDeleteDiskBackupPolicyScheduleResponse(rsp *http.Response) (*DeleteDis response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest InvalidTimestamp400Res + var dest APIAuthenticator400Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest PermissionDenied403Res + var dest APIAuthenticator403Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DiskBackupPolicyNotFoundResponse + var dest DiskNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -32223,20 +34507,27 @@ func ParseDeleteDiskBackupPolicyScheduleResponse(rsp *http.Response) (*DeleteDis } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetDiskTemplateVersionResponse parses an HTTP response from a GetDiskTemplateVersionWithResponse call -func ParseGetDiskTemplateVersionResponse(rsp *http.Response) (*GetDiskTemplateVersionResponse, error) { +// ParsePatchDiskResponse parses an HTTP response from a PatchDiskWithResponse call +func ParsePatchDiskResponse(rsp *http.Response) (*PatchDiskResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDiskTemplateVersionResponse{ + response := &PatchDiskResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -32244,8 +34535,11 @@ func ParseGetDiskTemplateVersionResponse(rsp *http.Response) (*GetDiskTemplateVe switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // DiskTemplateVersion The disk template version details - DiskTemplateVersion GetDiskTemplateVersion200ResponseDiskTemplateVersion `json:"disk_template_version"` + // Annotations Annotations for this disk + Annotations []KeyValue `json:"annotations"` + + // Disk The disk that has been updated. + Disk PatchDisk200ResponseDisk `json:"disk"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -32260,19 +34554,33 @@ func ParseGetDiskTemplateVersionResponse(rsp *http.Response) (*GetDiskTemplateVe response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APIAuthenticator403Response + var dest PermissionDenied403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DiskTemplateVersionNotFoundResponse + var dest DiskNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: + var dest ObjectInTrashResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON406 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnassignedDiskValidationError422Res + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -32280,20 +34588,27 @@ func ParseGetDiskTemplateVersionResponse(rsp *http.Response) (*GetDiskTemplateVe } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetDiskTemplateVersionSpecResponse parses an HTTP response from a GetDiskTemplateVersionSpecWithResponse call -func ParseGetDiskTemplateVersionSpecResponse(rsp *http.Response) (*GetDiskTemplateVersionSpecResponse, error) { +// ParsePostDiskAssignResponse parses an HTTP response from a PostDiskAssignWithResponse call +func ParsePostDiskAssignResponse(rsp *http.Response) (*PostDiskAssignResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDiskTemplateVersionSpecResponse{ + response := &PostDiskAssignResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -32301,9 +34616,8 @@ func ParseGetDiskTemplateVersionSpecResponse(rsp *http.Response) (*GetDiskTempla switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // DiskTemplateVersion The disk template version details - DiskTemplateVersion GetDiskTemplateVersionSpec200ResponseDiskTemplateVersion `json:"disk_template_version"` - Spec TemplateSpec `json:"spec"` + // Disk The disk that has been assigned to a virtual machine. + Disk PostDiskAssign200ResponseDisk `json:"disk"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -32318,19 +34632,33 @@ func ParseGetDiskTemplateVersionSpecResponse(rsp *http.Response) (*GetDiskTempla response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APIAuthenticator403Response + var dest PermissionDenied403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DiskTemplateVersionNotFoundResponse + var dest DiskNotFoundVirtualMachineNotFound404Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: + var dest ObjectInTrashResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON406 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnableToAssignResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -32338,20 +34666,27 @@ func ParseGetDiskTemplateVersionSpecResponse(rsp *http.Response) (*GetDiskTempla } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetDiskTemplateResponse parses an HTTP response from a GetDiskTemplateWithResponse call -func ParseGetDiskTemplateResponse(rsp *http.Response) (*GetDiskTemplateResponse, error) { +// ParsePostDiskAttachResponse parses an HTTP response from a PostDiskAttachWithResponse call +func ParsePostDiskAttachResponse(rsp *http.Response) (*PostDiskAttachResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDiskTemplateResponse{ + response := &PostDiskAttachResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -32359,8 +34694,9 @@ func ParseGetDiskTemplateResponse(rsp *http.Response) (*GetDiskTemplateResponse, switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // DiskTemplate The disk template details - DiskTemplate GetDiskTemplate200ResponseDiskTemplate `json:"disk_template"` + // Disk The disk that will be attached to its virtual machine. + Disk PostDiskAttach200ResponseDisk `json:"disk"` + Task Task `json:"task"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -32375,19 +34711,33 @@ func ParseGetDiskTemplateResponse(rsp *http.Response) (*GetDiskTemplateResponse, response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APIAuthenticator403Response + var dest PermissionDenied403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DiskTemplateNotFoundResponse + var dest DiskNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: + var dest ObjectInTrashTaskQueueingError406Res + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON406 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnassignedDiskResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -32395,20 +34745,27 @@ func ParseGetDiskTemplateResponse(rsp *http.Response) (*GetDiskTemplateResponse, } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetDiskTemplateVersionsResponse parses an HTTP response from a GetDiskTemplateVersionsWithResponse call -func ParseGetDiskTemplateVersionsResponse(rsp *http.Response) (*GetDiskTemplateVersionsResponse, error) { +// ParsePostDiskDetachResponse parses an HTTP response from a PostDiskDetachWithResponse call +func ParsePostDiskDetachResponse(rsp *http.Response) (*PostDiskDetachResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDiskTemplateVersionsResponse{ + response := &PostDiskDetachResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -32416,11 +34773,9 @@ func ParseGetDiskTemplateVersionsResponse(rsp *http.Response) (*GetDiskTemplateV switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - DiskTemplate GetDiskTemplateVersions200ResponseDiskTemplate `json:"disk_template"` - - // DiskTemplateVersions The disk template versions for the provided template - DiskTemplateVersions []GetDiskTemplateVersions200ResponseDiskTemplateVersions `json:"disk_template_versions"` - Pagination PaginationObject `json:"pagination"` + // Disk The disk that will be detached from its virtual machine. + Disk PostDiskDetach200ResponseDisk `json:"disk"` + Task Task `json:"task"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -32435,19 +34790,33 @@ func ParseGetDiskTemplateVersionsResponse(rsp *http.Response) (*GetDiskTemplateV response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APIAuthenticator403Response + var dest PermissionDenied403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DiskTemplateNotFoundResponse + var dest DiskNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: + var dest ObjectInTrashTaskQueueingError406Res + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON406 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest UnassignedDiskResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -32455,20 +34824,27 @@ func ParseGetDiskTemplateVersionsResponse(rsp *http.Response) (*GetDiskTemplateV } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseDeleteDiskResponse parses an HTTP response from a DeleteDiskWithResponse call -func ParseDeleteDiskResponse(rsp *http.Response) (*DeleteDiskResponse, error) { +// ParseGetDiskDiskBackupPoliciesResponse parses an HTTP response from a GetDiskDiskBackupPoliciesWithResponse call +func ParseGetDiskDiskBackupPoliciesResponse(rsp *http.Response) (*GetDiskDiskBackupPoliciesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteDiskResponse{ + response := &GetDiskDiskBackupPoliciesResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -32476,9 +34852,9 @@ func ParseDeleteDiskResponse(rsp *http.Response) (*DeleteDiskResponse, error) { switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // Disk The disk that has been move to the trash. - Disk DeleteDisk200ResponseDisk `json:"disk"` - TrashObject TrashObject `json:"trash_object"` + // DiskBackupPolicies The disk backup policies for the provided disk + DiskBackupPolicies []GetDiskDiskBackupPolicies200ResponseDiskBackupPolicies `json:"disk_backup_policies"` + Pagination PaginationObject `json:"pagination"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -32513,34 +34889,34 @@ func ParseDeleteDiskResponse(rsp *http.Response) (*DeleteDiskResponse, error) { } response.JSON406 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest ValidationErrorResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParseGetDiskResponse parses an HTTP response from a GetDiskWithResponse call -func ParseGetDiskResponse(rsp *http.Response) (*GetDiskResponse, error) { +// ParsePostDiskDiskBackupPoliciesResponse parses an HTTP response from a PostDiskDiskBackupPoliciesWithResponse call +func ParsePostDiskDiskBackupPoliciesResponse(rsp *http.Response) (*PostDiskDiskBackupPoliciesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDiskResponse{ + response := &PostDiskDiskBackupPoliciesResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -32548,8 +34924,8 @@ func ParseGetDiskResponse(rsp *http.Response) (*GetDiskResponse, error) { switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // Disk The disk details - Disk GetDisk200ResponseDisk `json:"disk"` + // DiskBackupPolicy The new disk backup policy that has been created + DiskBackupPolicy PostDiskDiskBackupPolicies200ResponseDiskBackupPolicy `json:"disk_backup_policy"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -32564,7 +34940,7 @@ func ParseGetDiskResponse(rsp *http.Response) (*GetDiskResponse, error) { response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APIAuthenticator403Response + var dest PermissionDenied403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -32584,6 +34960,13 @@ func ParseGetDiskResponse(rsp *http.Response) (*GetDiskResponse, error) { } response.JSON406 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest ValidationErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -32591,20 +34974,27 @@ func ParseGetDiskResponse(rsp *http.Response) (*GetDiskResponse, error) { } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParsePatchDiskResponse parses an HTTP response from a PatchDiskWithResponse call -func ParsePatchDiskResponse(rsp *http.Response) (*PatchDiskResponse, error) { +// ParsePutDiskIoProfileResponse parses an HTTP response from a PutDiskIoProfileWithResponse call +func ParsePutDiskIoProfileResponse(rsp *http.Response) (*PutDiskIoProfileResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PatchDiskResponse{ + response := &PutDiskIoProfileResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -32613,7 +35003,8 @@ func ParsePatchDiskResponse(rsp *http.Response) (*PatchDiskResponse, error) { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { // Disk The disk that has been updated. - Disk PatchDisk200ResponseDisk `json:"disk"` + Disk PutDiskIOProfile200ResponseDisk `json:"disk"` + Task Task `json:"task"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -32635,47 +35026,47 @@ func ParsePatchDiskResponse(rsp *http.Response) (*PatchDiskResponse, error) { response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DiskNotFoundResponse + var dest DiskIOProfileNotFoundDiskNotFound404Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: - var dest ObjectInTrashResponse + var dest ObjectInTrashTaskQueueingError406Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON406 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnassignedDiskValidationError422Res + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParsePostDiskAssignResponse parses an HTTP response from a PostDiskAssignWithResponse call -func ParsePostDiskAssignResponse(rsp *http.Response) (*PostDiskAssignResponse, error) { +// ParsePutDiskResizeResponse parses an HTTP response from a PutDiskResizeWithResponse call +func ParsePutDiskResizeResponse(rsp *http.Response) (*PutDiskResizeResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostDiskAssignResponse{ + response := &PutDiskResizeResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -32683,8 +35074,9 @@ func ParsePostDiskAssignResponse(rsp *http.Response) (*PostDiskAssignResponse, e switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // Disk The disk that has been assigned to a virtual machine. - Disk PostDiskAssign200ResponseDisk `json:"disk"` + // Disk The disk that has been resized. + Disk PutDiskResize200ResponseDisk `json:"disk"` + Task Task `json:"task"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -32706,21 +35098,21 @@ func ParsePostDiskAssignResponse(rsp *http.Response) (*PostDiskAssignResponse, e response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DiskNotFoundVirtualMachineNotFound404Res + var dest DiskNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: - var dest ObjectInTrashResponse + var dest ObjectInTrashTaskQueueingError406Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON406 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnableToAssignResponse + var dest ValidationErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -32733,20 +35125,27 @@ func ParsePostDiskAssignResponse(rsp *http.Response) (*PostDiskAssignResponse, e } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParsePostDiskAttachResponse parses an HTTP response from a PostDiskAttachWithResponse call -func ParsePostDiskAttachResponse(rsp *http.Response) (*PostDiskAttachResponse, error) { +// ParsePostDiskUnassignResponse parses an HTTP response from a PostDiskUnassignWithResponse call +func ParsePostDiskUnassignResponse(rsp *http.Response) (*PostDiskUnassignResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostDiskAttachResponse{ + response := &PostDiskUnassignResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -32754,9 +35153,8 @@ func ParsePostDiskAttachResponse(rsp *http.Response) (*PostDiskAttachResponse, e switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // Disk The disk that will be attached to its virtual machine. - Disk PostDiskAttach200ResponseDisk `json:"disk"` - Task Task `json:"task"` + // Disk The disk that has been unassigned from a virtual machine. + Disk PostDiskUnassign200ResponseDisk `json:"disk"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -32785,14 +35183,14 @@ func ParsePostDiskAttachResponse(rsp *http.Response) (*PostDiskAttachResponse, e response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: - var dest ObjectInTrashTaskQueueingError406Res + var dest ObjectInTrashResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON406 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnassignedDiskResponse + var dest UnableToUnassignResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -32805,20 +35203,27 @@ func ParsePostDiskAttachResponse(rsp *http.Response) (*PostDiskAttachResponse, e } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParsePostDiskDetachResponse parses an HTTP response from a PostDiskDetachWithResponse call -func ParsePostDiskDetachResponse(rsp *http.Response) (*PostDiskDetachResponse, error) { +// ParseDeleteDnsRecordResponse parses an HTTP response from a DeleteDnsRecordWithResponse call +func ParseDeleteDnsRecordResponse(rsp *http.Response) (*DeleteDnsRecordResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostDiskDetachResponse{ + response := &DeleteDnsRecordResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -32826,9 +35231,7 @@ func ParsePostDiskDetachResponse(rsp *http.Response) (*PostDiskDetachResponse, e switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // Disk The disk that will be detached from its virtual machine. - Disk PostDiskDetach200ResponseDisk `json:"disk"` - Task Task `json:"task"` + Deleted bool `json:"deleted"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -32843,54 +35246,47 @@ func ParsePostDiskDetachResponse(rsp *http.Response) (*PostDiskDetachResponse, e response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest PermissionDenied403Res + var dest APIAuthenticator403Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DiskNotFoundResponse + var dest DNSRecordNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: - var dest ObjectInTrashTaskQueueingError406Res - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON406 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnassignedDiskResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParseGetDiskDiskBackupPoliciesResponse parses an HTTP response from a GetDiskDiskBackupPoliciesWithResponse call -func ParseGetDiskDiskBackupPoliciesResponse(rsp *http.Response) (*GetDiskDiskBackupPoliciesResponse, error) { +// ParseGetDnsRecordResponse parses an HTTP response from a GetDnsRecordWithResponse call +func ParseGetDnsRecordResponse(rsp *http.Response) (*GetDnsRecordResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDiskDiskBackupPoliciesResponse{ + response := &GetDnsRecordResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -32898,9 +35294,8 @@ func ParseGetDiskDiskBackupPoliciesResponse(rsp *http.Response) (*GetDiskDiskBac switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // DiskBackupPolicies The disk backup policies for the provided disk - DiskBackupPolicies []GetDiskDiskBackupPolicies200ResponseDiskBackupPolicies `json:"disk_backup_policies"` - Pagination PaginationObject `json:"pagination"` + // DnsRecord The DNS record for the provided organization + DnsRecord DNSRecord `json:"dns_record"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -32915,47 +35310,47 @@ func ParseGetDiskDiskBackupPoliciesResponse(rsp *http.Response) (*GetDiskDiskBac response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest PermissionDenied403Res + var dest APIAuthenticator403Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DiskNotFoundResponse + var dest DNSRecordNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: - var dest ObjectInTrashResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON406 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParsePostDiskDiskBackupPoliciesResponse parses an HTTP response from a PostDiskDiskBackupPoliciesWithResponse call -func ParsePostDiskDiskBackupPoliciesResponse(rsp *http.Response) (*PostDiskDiskBackupPoliciesResponse, error) { +// ParsePatchDnsRecordResponse parses an HTTP response from a PatchDnsRecordWithResponse call +func ParsePatchDnsRecordResponse(rsp *http.Response) (*PatchDnsRecordResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostDiskDiskBackupPoliciesResponse{ + response := &PatchDnsRecordResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -32963,8 +35358,8 @@ func ParsePostDiskDiskBackupPoliciesResponse(rsp *http.Response) (*PostDiskDiskB switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // DiskBackupPolicy The new disk backup policy that has been created - DiskBackupPolicy PostDiskDiskBackupPolicies200ResponseDiskBackupPolicy `json:"disk_backup_policy"` + // DnsRecord The DNS record that has been updated + DnsRecord DNSRecord `json:"dns_record"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -32979,26 +35374,19 @@ func ParsePostDiskDiskBackupPoliciesResponse(rsp *http.Response) (*PostDiskDiskB response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest PermissionDenied403Res + var dest APIAuthenticator403Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DiskNotFoundResponse + var dest DNSRecordNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: - var dest ObjectInTrashResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON406 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: var dest ValidationErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -33013,20 +35401,27 @@ func ParsePostDiskDiskBackupPoliciesResponse(rsp *http.Response) (*PostDiskDiskB } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParsePutDiskIoProfileResponse parses an HTTP response from a PutDiskIoProfileWithResponse call -func ParsePutDiskIoProfileResponse(rsp *http.Response) (*PutDiskIoProfileResponse, error) { +// ParseDeleteDnsZoneResponse parses an HTTP response from a DeleteDnsZoneWithResponse call +func ParseDeleteDnsZoneResponse(rsp *http.Response) (*DeleteDnsZoneResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PutDiskIoProfileResponse{ + response := &DeleteDnsZoneResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -33034,9 +35429,7 @@ func ParsePutDiskIoProfileResponse(rsp *http.Response) (*PutDiskIoProfileRespons switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // Disk The disk that has been updated. - Disk PutDiskIOProfile200ResponseDisk `json:"disk"` - Task Task `json:"task"` + Deleted bool `json:"deleted"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -33051,47 +35444,47 @@ func ParsePutDiskIoProfileResponse(rsp *http.Response) (*PutDiskIoProfileRespons response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest PermissionDenied403Res + var dest APIAuthenticator403Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DiskIOProfileNotFoundDiskNotFound404Res + var dest DNSZoneNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: - var dest ObjectInTrashTaskQueueingError406Res + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON406 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParsePutDiskResizeResponse parses an HTTP response from a PutDiskResizeWithResponse call -func ParsePutDiskResizeResponse(rsp *http.Response) (*PutDiskResizeResponse, error) { +// ParseGetDnsZoneResponse parses an HTTP response from a GetDnsZoneWithResponse call +func ParseGetDnsZoneResponse(rsp *http.Response) (*GetDnsZoneResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PutDiskResizeResponse{ + response := &GetDnsZoneResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -33099,9 +35492,8 @@ func ParsePutDiskResizeResponse(rsp *http.Response) (*PutDiskResizeResponse, err switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // Disk The disk that has been resized. - Disk PutDiskResize200ResponseDisk `json:"disk"` - Task Task `json:"task"` + // DnsZone The DNS zones for the provided organization + DnsZone DNSZone `json:"dns_zone"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -33116,25 +35508,82 @@ func ParsePutDiskResizeResponse(rsp *http.Response) (*PutDiskResizeResponse, err response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest PermissionDenied403Res + var dest APIAuthenticator403Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DiskNotFoundResponse + var dest DNSZoneNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: - var dest ObjectInTrashTaskQueueingError406Res + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON406 = &dest + response.JSON429 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + + } + + return response, nil +} + +// ParsePatchDnsZoneResponse parses an HTTP response from a PatchDnsZoneWithResponse call +func ParsePatchDnsZoneResponse(rsp *http.Response) (*PatchDnsZoneResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PatchDnsZoneResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // DnsZone The DNS zones for the provided organization + DnsZone DNSZone `json:"dns_zone"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest APIAuthenticator400Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: + var dest APIAuthenticator403Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON403 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest DNSZoneNotFoundResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: var dest ValidationErrorResponse @@ -33150,20 +35599,27 @@ func ParsePutDiskResizeResponse(rsp *http.Response) (*PutDiskResizeResponse, err } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParsePostDiskUnassignResponse parses an HTTP response from a PostDiskUnassignWithResponse call -func ParsePostDiskUnassignResponse(rsp *http.Response) (*PostDiskUnassignResponse, error) { +// ParseGetDnsZoneRecordsResponse parses an HTTP response from a GetDnsZoneRecordsWithResponse call +func ParseGetDnsZoneRecordsResponse(rsp *http.Response) (*GetDnsZoneRecordsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostDiskUnassignResponse{ + response := &GetDnsZoneRecordsResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -33171,8 +35627,8 @@ func ParsePostDiskUnassignResponse(rsp *http.Response) (*PostDiskUnassignRespons switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // Disk The disk that has been unassigned from a virtual machine. - Disk PostDiskUnassign200ResponseDisk `json:"disk"` + // DnsRecords The DNS record for the provided zone + DnsRecords []DNSRecord `json:"dns_records"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -33194,47 +35650,40 @@ func ParsePostDiskUnassignResponse(rsp *http.Response) (*PostDiskUnassignRespons response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DiskNotFoundResponse + var dest DNSZoneNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: - var dest ObjectInTrashResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON406 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest UnableToUnassignResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParseDeleteDnsRecordResponse parses an HTTP response from a DeleteDnsRecordWithResponse call -func ParseDeleteDnsRecordResponse(rsp *http.Response) (*DeleteDnsRecordResponse, error) { +// ParsePostDnsZoneRecordsResponse parses an HTTP response from a PostDnsZoneRecordsWithResponse call +func ParsePostDnsZoneRecordsResponse(rsp *http.Response) (*PostDnsZoneRecordsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteDnsRecordResponse{ + response := &PostDnsZoneRecordsResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -33242,7 +35691,7 @@ func ParseDeleteDnsRecordResponse(rsp *http.Response) (*DeleteDnsRecordResponse, switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Deleted bool `json:"deleted"` + DnsRecord DNSRecord `json:"dns_record"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -33257,19 +35706,26 @@ func ParseDeleteDnsRecordResponse(rsp *http.Response) (*DeleteDnsRecordResponse, response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APIAuthenticator403Response + var dest PermissionDenied403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DNSRecordNotFoundResponse + var dest DNSZoneNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest ValidationErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -33277,20 +35733,27 @@ func ParseDeleteDnsRecordResponse(rsp *http.Response) (*DeleteDnsRecordResponse, } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetDnsRecordResponse parses an HTTP response from a GetDnsRecordWithResponse call -func ParseGetDnsRecordResponse(rsp *http.Response) (*GetDnsRecordResponse, error) { +// ParsePostDnsZoneVerifyResponse parses an HTTP response from a PostDnsZoneVerifyWithResponse call +func ParsePostDnsZoneVerifyResponse(rsp *http.Response) (*PostDnsZoneVerifyResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDnsRecordResponse{ + response := &PostDnsZoneVerifyResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -33298,8 +35761,8 @@ func ParseGetDnsRecordResponse(rsp *http.Response) (*GetDnsRecordResponse, error switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // DnsRecord The DNS record for the provided organization - DnsRecord DNSRecord `json:"dns_record"` + // DnsZone The DNS zones for the provided organization + DnsZone DNSZone `json:"dns_zone"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -33321,12 +35784,19 @@ func ParseGetDnsRecordResponse(rsp *http.Response) (*GetDnsRecordResponse, error response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DNSRecordNotFoundResponse + var dest DNSZoneNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest DNSZoneNotVerifiedResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -33334,20 +35804,27 @@ func ParseGetDnsRecordResponse(rsp *http.Response) (*GetDnsRecordResponse, error } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParsePatchDnsRecordResponse parses an HTTP response from a PatchDnsRecordWithResponse call -func ParsePatchDnsRecordResponse(rsp *http.Response) (*PatchDnsRecordResponse, error) { +// ParseDeleteFileStorageVolumeResponse parses an HTTP response from a DeleteFileStorageVolumeWithResponse call +func ParseDeleteFileStorageVolumeResponse(rsp *http.Response) (*DeleteFileStorageVolumeResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PatchDnsRecordResponse{ + response := &DeleteFileStorageVolumeResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -33355,8 +35832,9 @@ func ParsePatchDnsRecordResponse(rsp *http.Response) (*PatchDnsRecordResponse, e switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // DnsRecord The DNS record that has been updated - DnsRecord DNSRecord `json:"dns_record"` + // FileStorageVolume The file storage volume that has been destroyed. + FileStorageVolume DeleteFileStorageVolume200ResponseFileStorageVolume `json:"file_storage_volume"` + TrashObject TrashObject `json:"trash_object"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -33371,19 +35849,26 @@ func ParsePatchDnsRecordResponse(rsp *http.Response) (*PatchDnsRecordResponse, e response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APIAuthenticator403Response + var dest PermissionDenied403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DNSRecordNotFoundResponse + var dest FileStorageVolumeNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: + var dest ObjectInTrashResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON406 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: var dest ValidationErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -33398,20 +35883,27 @@ func ParsePatchDnsRecordResponse(rsp *http.Response) (*PatchDnsRecordResponse, e } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseDeleteDnsZoneResponse parses an HTTP response from a DeleteDnsZoneWithResponse call -func ParseDeleteDnsZoneResponse(rsp *http.Response) (*DeleteDnsZoneResponse, error) { +// ParseGetFileStorageVolumeResponse parses an HTTP response from a GetFileStorageVolumeWithResponse call +func ParseGetFileStorageVolumeResponse(rsp *http.Response) (*GetFileStorageVolumeResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteDnsZoneResponse{ + response := &GetFileStorageVolumeResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -33419,7 +35911,10 @@ func ParseDeleteDnsZoneResponse(rsp *http.Response) (*DeleteDnsZoneResponse, err switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Deleted bool `json:"deleted"` + Annotations []KeyValue `json:"annotations"` + + // FileStorageVolume The file storage volume. + FileStorageVolume GetFileStorageVolume200ResponseFileStorageVolume `json:"file_storage_volume"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -33434,97 +35929,54 @@ func ParseDeleteDnsZoneResponse(rsp *http.Response) (*DeleteDnsZoneResponse, err response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APIAuthenticator403Response + var dest PermissionDenied403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DNSZoneNotFoundResponse + var dest FileStorageVolumeNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - - } - - return response, nil -} - -// ParseGetDnsZoneResponse parses an HTTP response from a GetDnsZoneWithResponse call -func ParseGetDnsZoneResponse(rsp *http.Response) (*GetDnsZoneResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetDnsZoneResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - // DnsZone The DNS zones for the provided organization - DnsZone DNSZone `json:"dns_zone"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest APIAuthenticator400Response - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APIAuthenticator403Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: + var dest ObjectInTrashResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON406 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DNSZoneNotFoundResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParsePatchDnsZoneResponse parses an HTTP response from a PatchDnsZoneWithResponse call -func ParsePatchDnsZoneResponse(rsp *http.Response) (*PatchDnsZoneResponse, error) { +// ParsePatchFileStorageVolumeResponse parses an HTTP response from a PatchFileStorageVolumeWithResponse call +func ParsePatchFileStorageVolumeResponse(rsp *http.Response) (*PatchFileStorageVolumeResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PatchDnsZoneResponse{ + response := &PatchFileStorageVolumeResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -33532,8 +35984,10 @@ func ParsePatchDnsZoneResponse(rsp *http.Response) (*PatchDnsZoneResponse, error switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // DnsZone The DNS zones for the provided organization - DnsZone DNSZone `json:"dns_zone"` + Annotations []KeyValue `json:"annotations"` + + // FileStorageVolume The file storage volume. + FileStorageVolume PatchFileStorageVolume200ResponseFileStorageVolume `json:"file_storage_volume"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -33548,19 +36002,26 @@ func ParsePatchDnsZoneResponse(rsp *http.Response) (*PatchDnsZoneResponse, error response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APIAuthenticator403Response + var dest PermissionDenied403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DNSZoneNotFoundResponse + var dest FileStorageVolumeNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: + var dest ObjectInTrashResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON406 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: var dest ValidationErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -33575,20 +36036,27 @@ func ParsePatchDnsZoneResponse(rsp *http.Response) (*PatchDnsZoneResponse, error } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetDnsZoneRecordsResponse parses an HTTP response from a GetDnsZoneRecordsWithResponse call -func ParseGetDnsZoneRecordsResponse(rsp *http.Response) (*GetDnsZoneRecordsResponse, error) { +// ParseGetGpuTypesResponse parses an HTTP response from a GetGpuTypesWithResponse call +func ParseGetGpuTypesResponse(rsp *http.Response) (*GetGpuTypesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDnsZoneRecordsResponse{ + response := &GetGpuTypesResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -33596,8 +36064,8 @@ func ParseGetDnsZoneRecordsResponse(rsp *http.Response) (*GetDnsZoneRecordsRespo switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // DnsRecords The DNS record for the provided zone - DnsRecords []DNSRecord `json:"dns_records"` + GpuTypes []GetGPUTypes200ResponseGPUTypes `json:"gpu_types"` + Pagination PaginationObject `json:"pagination"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -33612,40 +36080,40 @@ func ParseGetDnsZoneRecordsResponse(rsp *http.Response) (*GetDnsZoneRecordsRespo response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest PermissionDenied403Res + var dest APIAuthenticator403Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DNSZoneNotFoundResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON404 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParsePostDnsZoneRecordsResponse parses an HTTP response from a PostDnsZoneRecordsWithResponse call -func ParsePostDnsZoneRecordsResponse(rsp *http.Response) (*PostDnsZoneRecordsResponse, error) { +// ParseGetGpuTypeResponse parses an HTTP response from a GetGpuTypeWithResponse call +func ParseGetGpuTypeResponse(rsp *http.Response) (*GetGpuTypeResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostDnsZoneRecordsResponse{ + response := &GetGpuTypeResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -33653,7 +36121,7 @@ func ParsePostDnsZoneRecordsResponse(rsp *http.Response) (*PostDnsZoneRecordsRes switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - DnsRecord DNSRecord `json:"dns_record"` + GpuType GetGPUType200ResponseGPUType `json:"gpu_type"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -33668,47 +36136,47 @@ func ParsePostDnsZoneRecordsResponse(rsp *http.Response) (*PostDnsZoneRecordsRes response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest PermissionDenied403Res + var dest APIAuthenticator403Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DNSZoneNotFoundResponse + var dest GPUTypeNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest ValidationErrorResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParsePostDnsZoneVerifyResponse parses an HTTP response from a PostDnsZoneVerifyWithResponse call -func ParsePostDnsZoneVerifyResponse(rsp *http.Response) (*PostDnsZoneVerifyResponse, error) { +// ParsePostInvalidateLinkedWebSessionResponse parses an HTTP response from a PostInvalidateLinkedWebSessionWithResponse call +func ParsePostInvalidateLinkedWebSessionResponse(rsp *http.Response) (*PostInvalidateLinkedWebSessionResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostDnsZoneVerifyResponse{ + response := &PostInvalidateLinkedWebSessionResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -33716,8 +36184,7 @@ func ParsePostDnsZoneVerifyResponse(rsp *http.Response) (*PostDnsZoneVerifyRespo switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // DnsZone The DNS zones for the provided organization - DnsZone DNSZone `json:"dns_zone"` + Status bool `json:"status"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -33725,7 +36192,7 @@ func ParsePostDnsZoneVerifyResponse(rsp *http.Response) (*PostDnsZoneVerifyRespo response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest APIAuthenticator400Response + var dest IdentityNotLinkedToWebSession400Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -33738,52 +36205,41 @@ func ParsePostDnsZoneVerifyResponse(rsp *http.Response) (*PostDnsZoneVerifyRespo } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest DNSZoneNotFoundResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest DNSZoneNotVerifiedResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParseDeleteFileStorageVolumeResponse parses an HTTP response from a DeleteFileStorageVolumeWithResponse call -func ParseDeleteFileStorageVolumeResponse(rsp *http.Response) (*DeleteFileStorageVolumeResponse, error) { +// ParseDeleteIpAddressResponse parses an HTTP response from a DeleteIpAddressWithResponse call +func ParseDeleteIpAddressResponse(rsp *http.Response) (*DeleteIpAddressResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteFileStorageVolumeResponse{ + response := &DeleteIpAddressResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - // FileStorageVolume The file storage volume that has been destroyed. - FileStorageVolume DeleteFileStorageVolume200ResponseFileStorageVolume `json:"file_storage_volume"` - TrashObject TrashObject `json:"trash_object"` - } + var dest interface{} if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -33804,47 +36260,47 @@ func ParseDeleteFileStorageVolumeResponse(rsp *http.Response) (*DeleteFileStorag response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest FileStorageVolumeNotFoundResponse + var dest IPAddressNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: - var dest ObjectInTrashResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest ResourceDoesNotSupportUnallocationResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON406 = &dest + response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest ValidationErrorResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParseGetFileStorageVolumeResponse parses an HTTP response from a GetFileStorageVolumeWithResponse call -func ParseGetFileStorageVolumeResponse(rsp *http.Response) (*GetFileStorageVolumeResponse, error) { +// ParseGetIpAddressResponse parses an HTTP response from a GetIpAddressWithResponse call +func ParseGetIpAddressResponse(rsp *http.Response) (*GetIpAddressResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetFileStorageVolumeResponse{ + response := &GetIpAddressResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -33852,8 +36308,11 @@ func ParseGetFileStorageVolumeResponse(rsp *http.Response) (*GetFileStorageVolum switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // FileStorageVolume The file storage volume. - FileStorageVolume GetFileStorageVolume200ResponseFileStorageVolume `json:"file_storage_volume"` + // Allocation The resource this address is allocated to + Allocation nullable.Nullable[GetIPAddress200ResponseAllocation] `json:"allocation"` + + // IpAddress The IP address that has been located + IpAddress IPAddress `json:"ip_address"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -33868,47 +36327,47 @@ func ParseGetFileStorageVolumeResponse(rsp *http.Response) (*GetFileStorageVolum response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest PermissionDenied403Res + var dest APIAuthenticator403Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest FileStorageVolumeNotFoundResponse + var dest IPAddressNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: - var dest ObjectInTrashResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON406 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParsePatchFileStorageVolumeResponse parses an HTTP response from a PatchFileStorageVolumeWithResponse call -func ParsePatchFileStorageVolumeResponse(rsp *http.Response) (*PatchFileStorageVolumeResponse, error) { +// ParsePatchIpAddressResponse parses an HTTP response from a PatchIpAddressWithResponse call +func ParsePatchIpAddressResponse(rsp *http.Response) (*PatchIpAddressResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PatchFileStorageVolumeResponse{ + response := &PatchIpAddressResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -33916,8 +36375,8 @@ func ParsePatchFileStorageVolumeResponse(rsp *http.Response) (*PatchFileStorageV switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // FileStorageVolume The file storage volume. - FileStorageVolume PatchFileStorageVolume200ResponseFileStorageVolume `json:"file_storage_volume"` + // IpAddress The IP address that has been updated + IpAddress IPAddress `json:"ip_address"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -33939,19 +36398,12 @@ func ParsePatchFileStorageVolumeResponse(rsp *http.Response) (*PatchFileStorageV response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest FileStorageVolumeNotFoundResponse + var dest IPAddressNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: - var dest ObjectInTrashResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON406 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: var dest ValidationErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -33966,79 +36418,34 @@ func ParsePatchFileStorageVolumeResponse(rsp *http.Response) (*PatchFileStorageV } response.JSON429 = &dest - } - - return response, nil -} - -// ParseGetGpuTypesResponse parses an HTTP response from a GetGpuTypesWithResponse call -func ParseGetGpuTypesResponse(rsp *http.Response) (*GetGpuTypesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetGpuTypesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - GpuTypes []GetGPUTypes200ResponseGPUTypes `json:"gpu_types"` - Pagination PaginationObject `json:"pagination"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest APIAuthenticator400Response - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APIAuthenticator403Response - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParseGetGpuTypeResponse parses an HTTP response from a GetGpuTypeWithResponse call -func ParseGetGpuTypeResponse(rsp *http.Response) (*GetGpuTypeResponse, error) { +// ParsePostIpAddressUnallocateResponse parses an HTTP response from a PostIpAddressUnallocateWithResponse call +func ParsePostIpAddressUnallocateResponse(rsp *http.Response) (*PostIpAddressUnallocateResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetGpuTypeResponse{ + response := &PostIpAddressUnallocateResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - GpuType GetGPUType200ResponseGPUType `json:"gpu_type"` - } + var dest interface{} if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -34059,89 +36466,64 @@ func ParseGetGpuTypeResponse(rsp *http.Response) (*GetGpuTypeResponse, error) { response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest GPUTypeNotFoundResponse + var dest IPAddressNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - - } - - return response, nil -} - -// ParsePostInvalidateLinkedWebSessionResponse parses an HTTP response from a PostInvalidateLinkedWebSessionWithResponse call -func ParsePostInvalidateLinkedWebSessionResponse(rsp *http.Response) (*PostInvalidateLinkedWebSessionResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostInvalidateLinkedWebSessionResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - Status bool `json:"status"` - } + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest ResourceDoesNotSupportUnallocationResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON409 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest IdentityNotLinkedToWebSession400Res + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest NoAllocationResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON400 = &dest + response.JSON422 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APIAuthenticator403Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON403 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParseDeleteIpAddressResponse parses an HTTP response from a DeleteIpAddressWithResponse call -func ParseDeleteIpAddressResponse(rsp *http.Response) (*DeleteIpAddressResponse, error) { +// ParseDeleteLoadBalancerResponse parses an HTTP response from a DeleteLoadBalancerWithResponse call +func ParseDeleteLoadBalancerResponse(rsp *http.Response) (*DeleteLoadBalancerResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteIpAddressResponse{ + response := &DeleteLoadBalancerResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest interface{} + var dest struct { + // LoadBalancer The load balancer that has been destroyed + LoadBalancer DeleteLoadBalancer200ResponseLoadBalancer `json:"load_balancer"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -34162,18 +36544,18 @@ func ParseDeleteIpAddressResponse(rsp *http.Response) (*DeleteIpAddressResponse, response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest IPAddressNotFoundResponse + var dest LoadBalancerNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest ResourceDoesNotSupportUnallocationResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest ValidationErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON409 = &dest + response.JSON422 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest APIAuthenticator429Response @@ -34182,20 +36564,27 @@ func ParseDeleteIpAddressResponse(rsp *http.Response) (*DeleteIpAddressResponse, } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetIpAddressResponse parses an HTTP response from a GetIpAddressWithResponse call -func ParseGetIpAddressResponse(rsp *http.Response) (*GetIpAddressResponse, error) { +// ParseGetLoadBalancerResponse parses an HTTP response from a GetLoadBalancerWithResponse call +func ParseGetLoadBalancerResponse(rsp *http.Response) (*GetLoadBalancerResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetIpAddressResponse{ + response := &GetLoadBalancerResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -34203,11 +36592,10 @@ func ParseGetIpAddressResponse(rsp *http.Response) (*GetIpAddressResponse, error switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // Allocation The resource this address is allocated to - Allocation nullable.Nullable[GetIPAddress200ResponseAllocation] `json:"allocation"` + Annotations []KeyValue `json:"annotations"` - // IpAddress The IP address that has been located - IpAddress IPAddress `json:"ip_address"` + // LoadBalancer The load balancer + LoadBalancer GetLoadBalancer200ResponseLoadBalancer `json:"load_balancer"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -34229,7 +36617,7 @@ func ParseGetIpAddressResponse(rsp *http.Response) (*GetIpAddressResponse, error response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest IPAddressNotFoundResponse + var dest LoadBalancerNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -34242,20 +36630,27 @@ func ParseGetIpAddressResponse(rsp *http.Response) (*GetIpAddressResponse, error } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParsePatchIpAddressResponse parses an HTTP response from a PatchIpAddressWithResponse call -func ParsePatchIpAddressResponse(rsp *http.Response) (*PatchIpAddressResponse, error) { +// ParsePatchLoadBalancerResponse parses an HTTP response from a PatchLoadBalancerWithResponse call +func ParsePatchLoadBalancerResponse(rsp *http.Response) (*PatchLoadBalancerResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PatchIpAddressResponse{ + response := &PatchLoadBalancerResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -34263,8 +36658,10 @@ func ParsePatchIpAddressResponse(rsp *http.Response) (*PatchIpAddressResponse, e switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // IpAddress The IP address that has been updated - IpAddress IPAddress `json:"ip_address"` + Annotations []KeyValue `json:"annotations"` + + // LoadBalancer The load balancer that has been updated + LoadBalancer PatchLoadBalancer200ResponseLoadBalancer `json:"load_balancer"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -34286,7 +36683,7 @@ func ParsePatchIpAddressResponse(rsp *http.Response) (*PatchIpAddressResponse, e response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest IPAddressNotFoundResponse + var dest LoadBalancerNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -34306,27 +36703,38 @@ func ParsePatchIpAddressResponse(rsp *http.Response) (*PatchIpAddressResponse, e } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParsePostIpAddressUnallocateResponse parses an HTTP response from a PostIpAddressUnallocateWithResponse call -func ParsePostIpAddressUnallocateResponse(rsp *http.Response) (*PostIpAddressUnallocateResponse, error) { +// ParseGetLoadBalancerRulesResponse parses an HTTP response from a GetLoadBalancerRulesWithResponse call +func ParseGetLoadBalancerRulesResponse(rsp *http.Response) (*GetLoadBalancerRulesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostIpAddressUnallocateResponse{ + response := &GetLoadBalancerRulesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest interface{} + var dest struct { + // LoadBalancerRules The load balancer rules for this load balancer + LoadBalancerRules []GetLoadBalancerRules200ResponseLoadBalancerRules `json:"load_balancer_rules"` + Pagination PaginationObject `json:"pagination"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -34340,54 +36748,47 @@ func ParsePostIpAddressUnallocateResponse(rsp *http.Response) (*PostIpAddressUna response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APIAuthenticator403Response + var dest PermissionDenied403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest IPAddressNotFoundResponse + var dest LoadBalancerNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: - var dest ResourceDoesNotSupportUnallocationResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON409 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest NoAllocationResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParseDeleteLoadBalancerResponse parses an HTTP response from a DeleteLoadBalancerWithResponse call -func ParseDeleteLoadBalancerResponse(rsp *http.Response) (*DeleteLoadBalancerResponse, error) { +// ParsePostLoadBalancerRulesResponse parses an HTTP response from a PostLoadBalancerRulesWithResponse call +func ParsePostLoadBalancerRulesResponse(rsp *http.Response) (*PostLoadBalancerRulesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteLoadBalancerResponse{ + response := &PostLoadBalancerRulesResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -34395,8 +36796,8 @@ func ParseDeleteLoadBalancerResponse(rsp *http.Response) (*DeleteLoadBalancerRes switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // LoadBalancer The load balancer that has been destroyed - LoadBalancer DeleteLoadBalancer200ResponseLoadBalancer `json:"load_balancer"` + // LoadBalancerRule The load balancer rule that has been created + LoadBalancerRule PostLoadBalancerRules200ResponseLoadBalancerRule `json:"load_balancer_rule"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -34438,20 +36839,27 @@ func ParseDeleteLoadBalancerResponse(rsp *http.Response) (*DeleteLoadBalancerRes } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetLoadBalancerResponse parses an HTTP response from a GetLoadBalancerWithResponse call -func ParseGetLoadBalancerResponse(rsp *http.Response) (*GetLoadBalancerResponse, error) { +// ParseDeleteLoadBalancersRulesLoadBalancerRuleResponse parses an HTTP response from a DeleteLoadBalancersRulesLoadBalancerRuleWithResponse call +func ParseDeleteLoadBalancersRulesLoadBalancerRuleResponse(rsp *http.Response) (*DeleteLoadBalancersRulesLoadBalancerRuleResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetLoadBalancerResponse{ + response := &DeleteLoadBalancersRulesLoadBalancerRuleResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -34459,8 +36867,8 @@ func ParseGetLoadBalancerResponse(rsp *http.Response) (*GetLoadBalancerResponse, switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // LoadBalancer The load balancer - LoadBalancer GetLoadBalancer200ResponseLoadBalancer `json:"load_balancer"` + // LoadBalancerRule The load balancer rule that has been destroyed + LoadBalancerRule DeleteLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRule `json:"load_balancer_rule"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -34475,19 +36883,26 @@ func ParseGetLoadBalancerResponse(rsp *http.Response) (*GetLoadBalancerResponse, response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APIAuthenticator403Response + var dest PermissionDenied403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest LoadBalancerNotFoundResponse + var dest LoadBalancerRuleNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest ValidationErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -34495,20 +36910,27 @@ func ParseGetLoadBalancerResponse(rsp *http.Response) (*GetLoadBalancerResponse, } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParsePatchLoadBalancerResponse parses an HTTP response from a PatchLoadBalancerWithResponse call -func ParsePatchLoadBalancerResponse(rsp *http.Response) (*PatchLoadBalancerResponse, error) { +// ParseGetLoadBalancersRulesLoadBalancerRuleResponse parses an HTTP response from a GetLoadBalancersRulesLoadBalancerRuleWithResponse call +func ParseGetLoadBalancersRulesLoadBalancerRuleResponse(rsp *http.Response) (*GetLoadBalancersRulesLoadBalancerRuleResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PatchLoadBalancerResponse{ + response := &GetLoadBalancersRulesLoadBalancerRuleResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -34516,8 +36938,8 @@ func ParsePatchLoadBalancerResponse(rsp *http.Response) (*PatchLoadBalancerRespo switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // LoadBalancer The load balancer that has been updated - LoadBalancer PatchLoadBalancer200ResponseLoadBalancer `json:"load_balancer"` + // LoadBalancerRule The resolved load balancer rule + LoadBalancerRule GetLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRule `json:"load_balancer_rule"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -34532,47 +36954,47 @@ func ParsePatchLoadBalancerResponse(rsp *http.Response) (*PatchLoadBalancerRespo response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest PermissionDenied403Res + var dest APIAuthenticator403Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest LoadBalancerNotFoundResponse + var dest LoadBalancerRuleNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest ValidationErrorResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParseGetLoadBalancerRulesResponse parses an HTTP response from a GetLoadBalancerRulesWithResponse call -func ParseGetLoadBalancerRulesResponse(rsp *http.Response) (*GetLoadBalancerRulesResponse, error) { +// ParsePatchLoadBalancersRulesLoadBalancerRuleResponse parses an HTTP response from a PatchLoadBalancersRulesLoadBalancerRuleWithResponse call +func ParsePatchLoadBalancersRulesLoadBalancerRuleResponse(rsp *http.Response) (*PatchLoadBalancersRulesLoadBalancerRuleResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetLoadBalancerRulesResponse{ + response := &PatchLoadBalancersRulesLoadBalancerRuleResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -34580,9 +37002,8 @@ func ParseGetLoadBalancerRulesResponse(rsp *http.Response) (*GetLoadBalancerRule switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // LoadBalancerRules The load balancer rules for this load balancer - LoadBalancerRules []GetLoadBalancerRules200ResponseLoadBalancerRules `json:"load_balancer_rules"` - Pagination PaginationObject `json:"pagination"` + // LoadBalancerRule The load balancer that has been updated + LoadBalancerRule PatchLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRule `json:"load_balancer_rule"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -34604,12 +37025,19 @@ func ParseGetLoadBalancerRulesResponse(rsp *http.Response) (*GetLoadBalancerRule response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest LoadBalancerNotFoundResponse + var dest LoadBalancerRuleNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest ValidationErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -34617,20 +37045,27 @@ func ParseGetLoadBalancerRulesResponse(rsp *http.Response) (*GetLoadBalancerRule } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParsePostLoadBalancerRulesResponse parses an HTTP response from a PostLoadBalancerRulesWithResponse call -func ParsePostLoadBalancerRulesResponse(rsp *http.Response) (*PostLoadBalancerRulesResponse, error) { +// ParseGetNetworkResponse parses an HTTP response from a GetNetworkWithResponse call +func ParseGetNetworkResponse(rsp *http.Response) (*GetNetworkResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostLoadBalancerRulesResponse{ + response := &GetNetworkResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -34638,8 +37073,8 @@ func ParsePostLoadBalancerRulesResponse(rsp *http.Response) (*PostLoadBalancerRu switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // LoadBalancerRule The load balancer rule that has been created - LoadBalancerRule PostLoadBalancerRules200ResponseLoadBalancerRule `json:"load_balancer_rule"` + // Network The details for the requested network + Network Network `json:"network"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -34654,47 +37089,47 @@ func ParsePostLoadBalancerRulesResponse(rsp *http.Response) (*PostLoadBalancerRu response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest PermissionDenied403Res + var dest APIAuthenticator403Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest LoadBalancerNotFoundResponse + var dest NetworkNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest ValidationErrorResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParseDeleteLoadBalancersRulesLoadBalancerRuleResponse parses an HTTP response from a DeleteLoadBalancersRulesLoadBalancerRuleWithResponse call -func ParseDeleteLoadBalancersRulesLoadBalancerRuleResponse(rsp *http.Response) (*DeleteLoadBalancersRulesLoadBalancerRuleResponse, error) { +// ParseGetOperatingSystemsResponse parses an HTTP response from a GetOperatingSystemsWithResponse call +func ParseGetOperatingSystemsResponse(rsp *http.Response) (*GetOperatingSystemsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteLoadBalancersRulesLoadBalancerRuleResponse{ + response := &GetOperatingSystemsResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -34702,8 +37137,9 @@ func ParseDeleteLoadBalancersRulesLoadBalancerRuleResponse(rsp *http.Response) ( switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // LoadBalancerRule The load balancer rule that has been destroyed - LoadBalancerRule DeleteLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRule `json:"load_balancer_rule"` + // OperatingSystems The list of available operating systems + OperatingSystems []GetOperatingSystems200ResponseOperatingSystems `json:"operating_systems"` + Pagination PaginationObject `json:"pagination"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -34718,47 +37154,40 @@ func ParseDeleteLoadBalancersRulesLoadBalancerRuleResponse(rsp *http.Response) ( response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest PermissionDenied403Res + var dest APIAuthenticator403Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest LoadBalancerRuleNotFoundResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest ValidationErrorResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParseGetLoadBalancersRulesLoadBalancerRuleResponse parses an HTTP response from a GetLoadBalancersRulesLoadBalancerRuleWithResponse call -func ParseGetLoadBalancersRulesLoadBalancerRuleResponse(rsp *http.Response) (*GetLoadBalancersRulesLoadBalancerRuleResponse, error) { +// ParseGetOperatingSystemResponse parses an HTTP response from a GetOperatingSystemWithResponse call +func ParseGetOperatingSystemResponse(rsp *http.Response) (*GetOperatingSystemResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetLoadBalancersRulesLoadBalancerRuleResponse{ + response := &GetOperatingSystemResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -34766,8 +37195,8 @@ func ParseGetLoadBalancersRulesLoadBalancerRuleResponse(rsp *http.Response) (*Ge switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // LoadBalancerRule The resolved load balancer rule - LoadBalancerRule GetLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRule `json:"load_balancer_rule"` + // OperatingSystem The operating system details + OperatingSystem OperatingSystem `json:"operating_system"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -34789,7 +37218,7 @@ func ParseGetLoadBalancersRulesLoadBalancerRuleResponse(rsp *http.Response) (*Ge response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest LoadBalancerRuleNotFoundResponse + var dest OperatingSystemNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -34802,20 +37231,27 @@ func ParseGetLoadBalancersRulesLoadBalancerRuleResponse(rsp *http.Response) (*Ge } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParsePatchLoadBalancersRulesLoadBalancerRuleResponse parses an HTTP response from a PatchLoadBalancersRulesLoadBalancerRuleWithResponse call -func ParsePatchLoadBalancersRulesLoadBalancerRuleResponse(rsp *http.Response) (*PatchLoadBalancersRulesLoadBalancerRuleResponse, error) { +// ParseGetOrganizationsResponse parses an HTTP response from a GetOrganizationsWithResponse call +func ParseGetOrganizationsResponse(rsp *http.Response) (*GetOrganizationsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PatchLoadBalancersRulesLoadBalancerRuleResponse{ + response := &GetOrganizationsResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -34823,8 +37259,7 @@ func ParsePatchLoadBalancersRulesLoadBalancerRuleResponse(rsp *http.Response) (* switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // LoadBalancerRule The load balancer that has been updated - LoadBalancerRule PatchLoadBalancersRulesLoadBalancerRule200ResponseLoadBalancerRule `json:"load_balancer_rule"` + Organizations []GetOrganizations200ResponseOrganizations `json:"organizations"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -34839,47 +37274,40 @@ func ParsePatchLoadBalancersRulesLoadBalancerRuleResponse(rsp *http.Response) (* response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest PermissionDenied403Res + var dest APIAuthenticator403Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest LoadBalancerRuleNotFoundResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest ValidationErrorResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParseGetNetworkResponse parses an HTTP response from a GetNetworkWithResponse call -func ParseGetNetworkResponse(rsp *http.Response) (*GetNetworkResponse, error) { +// ParseGetOrganizationResponse parses an HTTP response from a GetOrganizationWithResponse call +func ParseGetOrganizationResponse(rsp *http.Response) (*GetOrganizationResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetNetworkResponse{ + response := &GetOrganizationResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -34887,8 +37315,7 @@ func ParseGetNetworkResponse(rsp *http.Response) (*GetNetworkResponse, error) { switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // Network The details for the requested network - Network Network `json:"network"` + Organization Organization `json:"organization"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -34903,14 +37330,14 @@ func ParseGetNetworkResponse(rsp *http.Response) (*GetNetworkResponse, error) { response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APIAuthenticator403Response + var dest OrganizationNotActivatedOrganizationSuspended403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NetworkNotFoundResponse + var dest OrganizationNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -34923,20 +37350,27 @@ func ParseGetNetworkResponse(rsp *http.Response) (*GetNetworkResponse, error) { } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetOperatingSystemsResponse parses an HTTP response from a GetOperatingSystemsWithResponse call -func ParseGetOperatingSystemsResponse(rsp *http.Response) (*GetOperatingSystemsResponse, error) { +// ParseGetOrganizationAddressListsResponse parses an HTTP response from a GetOrganizationAddressListsWithResponse call +func ParseGetOrganizationAddressListsResponse(rsp *http.Response) (*GetOrganizationAddressListsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOperatingSystemsResponse{ + response := &GetOrganizationAddressListsResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -34944,9 +37378,9 @@ func ParseGetOperatingSystemsResponse(rsp *http.Response) (*GetOperatingSystemsR switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // OperatingSystems The list of available operating systems - OperatingSystems []GetOperatingSystems200ResponseOperatingSystems `json:"operating_systems"` - Pagination PaginationObject `json:"pagination"` + // AddressLists A list of all address lists for the given organization. + AddressLists []GetOrganizationAddressLists200ResponseAddressLists `json:"address_lists"` + Pagination PaginationObject `json:"pagination"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -34961,12 +37395,19 @@ func ParseGetOperatingSystemsResponse(rsp *http.Response) (*GetOperatingSystemsR response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APIAuthenticator403Response + var dest OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest OrganizationNotFoundResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -34974,34 +37415,42 @@ func ParseGetOperatingSystemsResponse(rsp *http.Response) (*GetOperatingSystemsR } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetOperatingSystemResponse parses an HTTP response from a GetOperatingSystemWithResponse call -func ParseGetOperatingSystemResponse(rsp *http.Response) (*GetOperatingSystemResponse, error) { +// ParsePostOrganizationAddressListsResponse parses an HTTP response from a PostOrganizationAddressListsWithResponse call +func ParsePostOrganizationAddressListsResponse(rsp *http.Response) (*PostOrganizationAddressListsResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOperatingSystemResponse{ + response := &PostOrganizationAddressListsResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest struct { - // OperatingSystem The operating system details - OperatingSystem OperatingSystem `json:"operating_system"` + // AddressList The address list. + AddressList AddressList `json:"address_list"` + Annotations []KeyValue `json:"annotations"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest APIAuthenticator400Response @@ -35011,19 +37460,26 @@ func ParseGetOperatingSystemResponse(rsp *http.Response) (*GetOperatingSystemRes response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APIAuthenticator403Response + var dest OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest OperatingSystemNotFoundResponse + var dest OrganizationNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest ValidationErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -35031,20 +37487,27 @@ func ParseGetOperatingSystemResponse(rsp *http.Response) (*GetOperatingSystemRes } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetOrganizationsResponse parses an HTTP response from a GetOrganizationsWithResponse call -func ParseGetOrganizationsResponse(rsp *http.Response) (*GetOrganizationsResponse, error) { +// ParseGetOrganizationApiTokensResponse parses an HTTP response from a GetOrganizationApiTokensWithResponse call +func ParseGetOrganizationApiTokensResponse(rsp *http.Response) (*GetOrganizationApiTokensResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrganizationsResponse{ + response := &GetOrganizationApiTokensResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -35052,7 +37515,8 @@ func ParseGetOrganizationsResponse(rsp *http.Response) (*GetOrganizationsRespons switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Organizations []GetOrganizations200ResponseOrganizations `json:"organizations"` + ApiTokens []APIToken `json:"api_tokens"` + Pagination PaginationObject `json:"pagination"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -35067,12 +37531,19 @@ func ParseGetOrganizationsResponse(rsp *http.Response) (*GetOrganizationsRespons response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest APIAuthenticator403Response + var dest OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest OrganizationNotFoundResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -35080,20 +37551,27 @@ func ParseGetOrganizationsResponse(rsp *http.Response) (*GetOrganizationsRespons } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetOrganizationResponse parses an HTTP response from a GetOrganizationWithResponse call -func ParseGetOrganizationResponse(rsp *http.Response) (*GetOrganizationResponse, error) { +// ParsePostOrganizationApiTokensResponse parses an HTTP response from a PostOrganizationApiTokensWithResponse call +func ParsePostOrganizationApiTokensResponse(rsp *http.Response) (*PostOrganizationApiTokensResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrganizationResponse{ + response := &PostOrganizationApiTokensResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -35101,7 +37579,11 @@ func ParseGetOrganizationResponse(rsp *http.Response) (*GetOrganizationResponse, switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Organization Organization `json:"organization"` + // Annotations Annotations for this API token + Annotations []KeyValue `json:"annotations"` + + // ApiToken The API token that has been created + ApiToken APIToken `json:"api_token"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -35116,7 +37598,7 @@ func ParseGetOrganizationResponse(rsp *http.Response) (*GetOrganizationResponse, response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest OrganizationNotActivatedOrganizationSuspended403Res + var dest OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -35129,6 +37611,13 @@ func ParseGetOrganizationResponse(rsp *http.Response) (*GetOrganizationResponse, } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest ValidationErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -35136,20 +37625,27 @@ func ParseGetOrganizationResponse(rsp *http.Response) (*GetOrganizationResponse, } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetOrganizationAddressListsResponse parses an HTTP response from a GetOrganizationAddressListsWithResponse call -func ParseGetOrganizationAddressListsResponse(rsp *http.Response) (*GetOrganizationAddressListsResponse, error) { +// ParseGetOrganizationAvailableNetworksResponse parses an HTTP response from a GetOrganizationAvailableNetworksWithResponse call +func ParseGetOrganizationAvailableNetworksResponse(rsp *http.Response) (*GetOrganizationAvailableNetworksResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrganizationAddressListsResponse{ + response := &GetOrganizationAvailableNetworksResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -35157,9 +37653,8 @@ func ParseGetOrganizationAddressListsResponse(rsp *http.Response) (*GetOrganizat switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // AddressLists A list of all address lists for the given organization. - AddressLists []GetOrganizationAddressLists200ResponseAddressLists `json:"address_lists"` - Pagination PaginationObject `json:"pagination"` + Networks []GetOrganizationAvailableNetworks200ResponseNetworks `json:"networks"` + VirtualNetworks []GetOrganizationAvailableNetworks200ResponseVirtualNetworks `json:"virtual_networks"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -35174,7 +37669,7 @@ func ParseGetOrganizationAddressListsResponse(rsp *http.Response) (*GetOrganizat response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res + var dest OrganizationNotActivatedOrganizationSuspended403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -35194,34 +37689,41 @@ func ParseGetOrganizationAddressListsResponse(rsp *http.Response) (*GetOrganizat } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParsePostOrganizationAddressListsResponse parses an HTTP response from a PostOrganizationAddressListsWithResponse call -func ParsePostOrganizationAddressListsResponse(rsp *http.Response) (*PostOrganizationAddressListsResponse, error) { +// ParseGetOrganizationCertificatesResponse parses an HTTP response from a GetOrganizationCertificatesWithResponse call +func ParseGetOrganizationCertificatesResponse(rsp *http.Response) (*GetOrganizationCertificatesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostOrganizationAddressListsResponse{ + response := &GetOrganizationCertificatesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // AddressList The address list. - AddressList AddressList `json:"address_list"` + Certificates []GetOrganizationCertificates200ResponseCertificates `json:"certificates"` + Pagination PaginationObject `json:"pagination"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest APIAuthenticator400Response @@ -35231,7 +37733,7 @@ func ParsePostOrganizationAddressListsResponse(rsp *http.Response) (*PostOrganiz response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res + var dest OrganizationNotActivatedOrganizationSuspended403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -35244,34 +37746,34 @@ func ParsePostOrganizationAddressListsResponse(rsp *http.Response) (*PostOrganiz } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest ValidationErrorResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParseGetOrganizationAvailableNetworksResponse parses an HTTP response from a GetOrganizationAvailableNetworksWithResponse call -func ParseGetOrganizationAvailableNetworksResponse(rsp *http.Response) (*GetOrganizationAvailableNetworksResponse, error) { +// ParseGetOrganizationDiskBackupPoliciesResponse parses an HTTP response from a GetOrganizationDiskBackupPoliciesWithResponse call +func ParseGetOrganizationDiskBackupPoliciesResponse(rsp *http.Response) (*GetOrganizationDiskBackupPoliciesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrganizationAvailableNetworksResponse{ + response := &GetOrganizationDiskBackupPoliciesResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -35279,8 +37781,9 @@ func ParseGetOrganizationAvailableNetworksResponse(rsp *http.Response) (*GetOrga switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Networks []GetOrganizationAvailableNetworks200ResponseNetworks `json:"networks"` - VirtualNetworks []GetOrganizationAvailableNetworks200ResponseVirtualNetworks `json:"virtual_networks"` + // DiskBackupPolicies The disk backup policies for the provided organization + DiskBackupPolicies []GetOrganizationDiskBackupPolicies200ResponseDiskBackupPolicies `json:"disk_backup_policies"` + Pagination PaginationObject `json:"pagination"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -35295,7 +37798,7 @@ func ParseGetOrganizationAvailableNetworksResponse(rsp *http.Response) (*GetOrga response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest OrganizationNotActivatedOrganizationSuspended403Res + var dest OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -35315,20 +37818,27 @@ func ParseGetOrganizationAvailableNetworksResponse(rsp *http.Response) (*GetOrga } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetOrganizationCertificatesResponse parses an HTTP response from a GetOrganizationCertificatesWithResponse call -func ParseGetOrganizationCertificatesResponse(rsp *http.Response) (*GetOrganizationCertificatesResponse, error) { +// ParseGetOrganizationDiskIoProfilesResponse parses an HTTP response from a GetOrganizationDiskIoProfilesWithResponse call +func ParseGetOrganizationDiskIoProfilesResponse(rsp *http.Response) (*GetOrganizationDiskIoProfilesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrganizationCertificatesResponse{ + response := &GetOrganizationDiskIoProfilesResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -35336,8 +37846,9 @@ func ParseGetOrganizationCertificatesResponse(rsp *http.Response) (*GetOrganizat switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - Certificates []GetOrganizationCertificates200ResponseCertificates `json:"certificates"` - Pagination PaginationObject `json:"pagination"` + // DiskIoProfiles The list of disk IO profiles + DiskIoProfiles []DiskIOProfile `json:"disk_io_profiles"` + Pagination PaginationObject `json:"pagination"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -35372,20 +37883,27 @@ func ParseGetOrganizationCertificatesResponse(rsp *http.Response) (*GetOrganizat } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetOrganizationDiskBackupPoliciesResponse parses an HTTP response from a GetOrganizationDiskBackupPoliciesWithResponse call -func ParseGetOrganizationDiskBackupPoliciesResponse(rsp *http.Response) (*GetOrganizationDiskBackupPoliciesResponse, error) { +// ParseGetOrganizationDiskTemplatesResponse parses an HTTP response from a GetOrganizationDiskTemplatesWithResponse call +func ParseGetOrganizationDiskTemplatesResponse(rsp *http.Response) (*GetOrganizationDiskTemplatesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrganizationDiskBackupPoliciesResponse{ + response := &GetOrganizationDiskTemplatesResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -35393,9 +37911,9 @@ func ParseGetOrganizationDiskBackupPoliciesResponse(rsp *http.Response) (*GetOrg switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // DiskBackupPolicies The disk backup policies for the provided organization - DiskBackupPolicies []GetOrganizationDiskBackupPolicies200ResponseDiskBackupPolicies `json:"disk_backup_policies"` - Pagination PaginationObject `json:"pagination"` + // DiskTemplates The list of disk templates + DiskTemplates []GetOrganizationDiskTemplates200ResponseDiskTemplates `json:"disk_templates"` + Pagination PaginationObject `json:"pagination"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -35410,14 +37928,14 @@ func ParseGetOrganizationDiskBackupPoliciesResponse(rsp *http.Response) (*GetOrg response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res + var dest OrganizationNotActivatedOrganizationSuspended403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest OrganizationNotFoundResponse + var dest OperatingSystemNotFoundOrganizationNotFound404Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -35430,20 +37948,27 @@ func ParseGetOrganizationDiskBackupPoliciesResponse(rsp *http.Response) (*GetOrg } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetOrganizationDiskIoProfilesResponse parses an HTTP response from a GetOrganizationDiskIoProfilesWithResponse call -func ParseGetOrganizationDiskIoProfilesResponse(rsp *http.Response) (*GetOrganizationDiskIoProfilesResponse, error) { +// ParseGetOrganizationDisksResponse parses an HTTP response from a GetOrganizationDisksWithResponse call +func ParseGetOrganizationDisksResponse(rsp *http.Response) (*GetOrganizationDisksResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrganizationDiskIoProfilesResponse{ + response := &GetOrganizationDisksResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -35451,9 +37976,9 @@ func ParseGetOrganizationDiskIoProfilesResponse(rsp *http.Response) (*GetOrganiz switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // DiskIoProfiles The list of disk IO profiles - DiskIoProfiles []DiskIOProfile `json:"disk_io_profiles"` - Pagination PaginationObject `json:"pagination"` + // Disk The list of disks + Disk []GetOrganizationDisks200ResponseDisk `json:"disk"` + Pagination PaginationObject `json:"pagination"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -35488,35 +38013,45 @@ func ParseGetOrganizationDiskIoProfilesResponse(rsp *http.Response) (*GetOrganiz } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetOrganizationDiskTemplatesResponse parses an HTTP response from a GetOrganizationDiskTemplatesWithResponse call -func ParseGetOrganizationDiskTemplatesResponse(rsp *http.Response) (*GetOrganizationDiskTemplatesResponse, error) { +// ParsePostOrganizationDisksResponse parses an HTTP response from a PostOrganizationDisksWithResponse call +func ParsePostOrganizationDisksResponse(rsp *http.Response) (*PostOrganizationDisksResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrganizationDiskTemplatesResponse{ + response := &PostOrganizationDisksResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest struct { - // DiskTemplates The list of disk templates - DiskTemplates []GetOrganizationDiskTemplates200ResponseDiskTemplates `json:"disk_templates"` - Pagination PaginationObject `json:"pagination"` + // Annotations Annotations for this disk + Annotations []KeyValue `json:"annotations"` + + // Disk The disk that has been created. + Disk PostOrganizationDisks201ResponseDisk `json:"disk"` + Task Task `json:"task"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest APIAuthenticator400Response @@ -35526,19 +38061,33 @@ func ParseGetOrganizationDiskTemplatesResponse(rsp *http.Response) (*GetOrganiza response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest OrganizationNotActivatedOrganizationSuspended403Res + var dest OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest OperatingSystemNotFoundOrganizationNotFound404Res + var dest OrganizationNotFoundResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: + var dest TaskQueueingErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON406 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest ValidationErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -35546,20 +38095,27 @@ func ParseGetOrganizationDiskTemplatesResponse(rsp *http.Response) (*GetOrganiza } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetOrganizationDisksResponse parses an HTTP response from a GetOrganizationDisksWithResponse call -func ParseGetOrganizationDisksResponse(rsp *http.Response) (*GetOrganizationDisksResponse, error) { +// ParseGetOrganizationDnsZonesResponse parses an HTTP response from a GetOrganizationDnsZonesWithResponse call +func ParseGetOrganizationDnsZonesResponse(rsp *http.Response) (*GetOrganizationDnsZonesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrganizationDisksResponse{ + response := &GetOrganizationDnsZonesResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -35567,9 +38123,9 @@ func ParseGetOrganizationDisksResponse(rsp *http.Response) (*GetOrganizationDisk switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // Disk The list of disks - Disk []GetOrganizationDisks200ResponseDisk `json:"disk"` - Pagination PaginationObject `json:"pagination"` + // DnsZones The DNS zones for the provided organization + DnsZones []DNSZone `json:"dns_zones"` + Pagination PaginationObject `json:"pagination"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -35584,7 +38140,7 @@ func ParseGetOrganizationDisksResponse(rsp *http.Response) (*GetOrganizationDisk response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest OrganizationNotActivatedOrganizationSuspended403Res + var dest OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -35604,20 +38160,27 @@ func ParseGetOrganizationDisksResponse(rsp *http.Response) (*GetOrganizationDisk } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParsePostOrganizationDisksResponse parses an HTTP response from a PostOrganizationDisksWithResponse call -func ParsePostOrganizationDisksResponse(rsp *http.Response) (*PostOrganizationDisksResponse, error) { +// ParsePostOrganizationDnsZonesResponse parses an HTTP response from a PostOrganizationDnsZonesWithResponse call +func ParsePostOrganizationDnsZonesResponse(rsp *http.Response) (*PostOrganizationDnsZonesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostOrganizationDisksResponse{ + response := &PostOrganizationDnsZonesResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -35625,9 +38188,8 @@ func ParsePostOrganizationDisksResponse(rsp *http.Response) (*PostOrganizationDi switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest struct { - // Disk The disk that has been created. - Disk PostOrganizationDisks201ResponseDisk `json:"disk"` - Task Task `json:"task"` + // DnsZone The new DNS zone that has been created + DnsZone DNSZone `json:"dns_zone"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -35642,7 +38204,7 @@ func ParsePostOrganizationDisksResponse(rsp *http.Response) (*PostOrganizationDi response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res + var dest OrganizationNotActivatedPermissionDeniedResourceCreationRestricted403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -35655,13 +38217,6 @@ func ParsePostOrganizationDisksResponse(rsp *http.Response) (*PostOrganizationDi } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 406: - var dest TaskQueueingErrorResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON406 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: var dest ValidationErrorResponse if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -35676,20 +38231,27 @@ func ParsePostOrganizationDisksResponse(rsp *http.Response) (*PostOrganizationDi } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetOrganizationDnsZonesResponse parses an HTTP response from a GetOrganizationDnsZonesWithResponse call -func ParseGetOrganizationDnsZonesResponse(rsp *http.Response) (*GetOrganizationDnsZonesResponse, error) { +// ParseGetOrganizationDnsZonesNameserversResponse parses an HTTP response from a GetOrganizationDnsZonesNameserversWithResponse call +func ParseGetOrganizationDnsZonesNameserversResponse(rsp *http.Response) (*GetOrganizationDnsZonesNameserversResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrganizationDnsZonesResponse{ + response := &GetOrganizationDnsZonesNameserversResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -35697,9 +38259,7 @@ func ParseGetOrganizationDnsZonesResponse(rsp *http.Response) (*GetOrganizationD switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // DnsZones The DNS zones for the provided organization - DnsZones []DNSZone `json:"dns_zones"` - Pagination PaginationObject `json:"pagination"` + Nameservers []string `json:"nameservers"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -35734,34 +38294,42 @@ func ParseGetOrganizationDnsZonesResponse(rsp *http.Response) (*GetOrganizationD } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParsePostOrganizationDnsZonesResponse parses an HTTP response from a PostOrganizationDnsZonesWithResponse call -func ParsePostOrganizationDnsZonesResponse(rsp *http.Response) (*PostOrganizationDnsZonesResponse, error) { +// ParseGetOrganizationFileStorageVolumesResponse parses an HTTP response from a GetOrganizationFileStorageVolumesWithResponse call +func ParseGetOrganizationFileStorageVolumesResponse(rsp *http.Response) (*GetOrganizationFileStorageVolumesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostOrganizationDnsZonesResponse{ + response := &GetOrganizationFileStorageVolumesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // DnsZone The new DNS zone that has been created - DnsZone DNSZone `json:"dns_zone"` + // FileStorageVolumes A list of all file storage volumes for the given organization. + FileStorageVolumes []GetOrganizationFileStorageVolumes200ResponseFileStorageVolumes `json:"file_storage_volumes"` + Pagination PaginationObject `json:"pagination"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest APIAuthenticator400Response @@ -35771,7 +38339,7 @@ func ParsePostOrganizationDnsZonesResponse(rsp *http.Response) (*PostOrganizatio response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest OrganizationNotActivatedPermissionDeniedResourceCreationRestricted403Res + var dest OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -35784,47 +38352,50 @@ func ParsePostOrganizationDnsZonesResponse(rsp *http.Response) (*PostOrganizatio } response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest ValidationErrorResponse + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON422 = &dest + response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON503 = &dest } return response, nil } -// ParseGetOrganizationDnsZonesNameserversResponse parses an HTTP response from a GetOrganizationDnsZonesNameserversWithResponse call -func ParseGetOrganizationDnsZonesNameserversResponse(rsp *http.Response) (*GetOrganizationDnsZonesNameserversResponse, error) { +// ParsePostOrganizationFileStorageVolumesResponse parses an HTTP response from a PostOrganizationFileStorageVolumesWithResponse call +func ParsePostOrganizationFileStorageVolumesResponse(rsp *http.Response) (*PostOrganizationFileStorageVolumesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrganizationDnsZonesNameserversResponse{ + response := &PostOrganizationFileStorageVolumesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest struct { - Nameservers []string `json:"nameservers"` + Annotations []KeyValue `json:"annotations"` + + // FileStorageVolume The file storage volume. + FileStorageVolume PostOrganizationFileStorageVolumes201ResponseFileStorageVolume `json:"file_storage_volume"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest APIAuthenticator400Response @@ -35834,7 +38405,7 @@ func ParseGetOrganizationDnsZonesNameserversResponse(rsp *http.Response) (*GetOr response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res + var dest OrganizationNotActivatedPermissionDeniedResourceCreationRestricted403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -35847,6 +38418,13 @@ func ParseGetOrganizationDnsZonesNameserversResponse(rsp *http.Response) (*GetOr } response.JSON404 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: + var dest ValidationErrorResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest APIAuthenticator429Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -35854,20 +38432,27 @@ func ParseGetOrganizationDnsZonesNameserversResponse(rsp *http.Response) (*GetOr } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetOrganizationFileStorageVolumesResponse parses an HTTP response from a GetOrganizationFileStorageVolumesWithResponse call -func ParseGetOrganizationFileStorageVolumesResponse(rsp *http.Response) (*GetOrganizationFileStorageVolumesResponse, error) { +// ParseGetOrganizationIpAddressesResponse parses an HTTP response from a GetOrganizationIpAddressesWithResponse call +func ParseGetOrganizationIpAddressesResponse(rsp *http.Response) (*GetOrganizationIpAddressesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrganizationFileStorageVolumesResponse{ + response := &GetOrganizationIpAddressesResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -35875,9 +38460,9 @@ func ParseGetOrganizationFileStorageVolumesResponse(rsp *http.Response) (*GetOrg switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // FileStorageVolumes A list of all file storage volumes for the given organization. - FileStorageVolumes []GetOrganizationFileStorageVolumes200ResponseFileStorageVolumes `json:"file_storage_volumes"` - Pagination PaginationObject `json:"pagination"` + // IpAddresses The IP addresses belonging to this organization + IpAddresses []GetOrganizationIPAddresses200ResponseIPAddresses `json:"ip_addresses"` + Pagination PaginationObject `json:"pagination"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -35912,34 +38497,41 @@ func ParseGetOrganizationFileStorageVolumesResponse(rsp *http.Response) (*GetOrg } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParsePostOrganizationFileStorageVolumesResponse parses an HTTP response from a PostOrganizationFileStorageVolumesWithResponse call -func ParsePostOrganizationFileStorageVolumesResponse(rsp *http.Response) (*PostOrganizationFileStorageVolumesResponse, error) { +// ParsePostOrganizationIpAddressesResponse parses an HTTP response from a PostOrganizationIpAddressesWithResponse call +func ParsePostOrganizationIpAddressesResponse(rsp *http.Response) (*PostOrganizationIpAddressesResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostOrganizationFileStorageVolumesResponse{ + response := &PostOrganizationIpAddressesResponse{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // FileStorageVolume The file storage volume. - FileStorageVolume PostOrganizationFileStorageVolumes201ResponseFileStorageVolume `json:"file_storage_volume"` + // IpAddress The newly allocated IP address + IpAddress IPAddress `json:"ip_address"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON201 = &dest + response.JSON200 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest APIAuthenticator400Response @@ -35949,14 +38541,14 @@ func ParsePostOrganizationFileStorageVolumesResponse(rsp *http.Response) (*PostO response.JSON400 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest OrganizationNotActivatedPermissionDeniedResourceCreationRestricted403Res + var dest OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest OrganizationNotFoundResponse + var dest NetworkNotFoundOrganizationNotFound404Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -35976,20 +38568,27 @@ func ParsePostOrganizationFileStorageVolumesResponse(rsp *http.Response) (*PostO } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest NoAvailableAddresses503Res + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil } -// ParseGetOrganizationIpAddressesResponse parses an HTTP response from a GetOrganizationIpAddressesWithResponse call -func ParseGetOrganizationIpAddressesResponse(rsp *http.Response) (*GetOrganizationIpAddressesResponse, error) { +// ParseGetOrganizationLoadBalancersResponse parses an HTTP response from a GetOrganizationLoadBalancersWithResponse call +func ParseGetOrganizationLoadBalancersResponse(rsp *http.Response) (*GetOrganizationLoadBalancersResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetOrganizationIpAddressesResponse{ + response := &GetOrganizationLoadBalancersResponse{ Body: bodyBytes, HTTPResponse: rsp, } @@ -35997,9 +38596,9 @@ func ParseGetOrganizationIpAddressesResponse(rsp *http.Response) (*GetOrganizati switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - // IpAddresses The IP addresses belonging to this organization - IpAddresses []GetOrganizationIPAddresses200ResponseIPAddresses `json:"ip_addresses"` - Pagination PaginationObject `json:"pagination"` + // LoadBalancers The load balancers owned by this organization + LoadBalancers []GetOrganizationLoadBalancers200ResponseLoadBalancers `json:"load_balancers"` + Pagination PaginationObject `json:"pagination"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err @@ -36034,72 +38633,8 @@ func ParseGetOrganizationIpAddressesResponse(rsp *http.Response) (*GetOrganizati } response.JSON429 = &dest - } - - return response, nil -} - -// ParsePostOrganizationIpAddressesResponse parses an HTTP response from a PostOrganizationIpAddressesWithResponse call -func ParsePostOrganizationIpAddressesResponse(rsp *http.Response) (*PostOrganizationIpAddressesResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &PostOrganizationIpAddressesResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - // IpAddress The newly allocated IP address - IpAddress IPAddress `json:"ip_address"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest APIAuthenticator400Response - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest NetworkNotFoundOrganizationNotFound404Res - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 422: - var dest ValidationErrorResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON422 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: - var dest NoAvailableAddressesResponse + var dest APIAuthenticator503Response if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -36110,64 +38645,6 @@ func ParsePostOrganizationIpAddressesResponse(rsp *http.Response) (*PostOrganiza return response, nil } -// ParseGetOrganizationLoadBalancersResponse parses an HTTP response from a GetOrganizationLoadBalancersWithResponse call -func ParseGetOrganizationLoadBalancersResponse(rsp *http.Response) (*GetOrganizationLoadBalancersResponse, error) { - bodyBytes, err := io.ReadAll(rsp.Body) - defer func() { _ = rsp.Body.Close() }() - if err != nil { - return nil, err - } - - response := &GetOrganizationLoadBalancersResponse{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest struct { - // LoadBalancers The load balancers owned by this organization - LoadBalancers []GetOrganizationLoadBalancers200ResponseLoadBalancers `json:"load_balancers"` - Pagination PaginationObject `json:"pagination"` - } - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON200 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: - var dest APIAuthenticator400Response - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON400 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 403: - var dest OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON403 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest OrganizationNotFoundResponse - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest APIAuthenticator429Response - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON429 = &dest - - } - - return response, nil -} - // ParsePostOrganizationLoadBalancersResponse parses an HTTP response from a PostOrganizationLoadBalancersWithResponse call func ParsePostOrganizationLoadBalancersResponse(rsp *http.Response) (*PostOrganizationLoadBalancersResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) @@ -36184,6 +38661,8 @@ func ParsePostOrganizationLoadBalancersResponse(rsp *http.Response) (*PostOrgani switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest struct { + Annotations []KeyValue `json:"annotations"` + // LoadBalancer The load balancer that has been created LoadBalancer PostOrganizationLoadBalancers201ResponseLoadBalancer `json:"load_balancer"` } @@ -36227,6 +38706,13 @@ func ParsePostOrganizationLoadBalancersResponse(rsp *http.Response) (*PostOrgani } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -36284,6 +38770,13 @@ func ParseGetOrganizationManagedResponse(rsp *http.Response) (*GetOrganizationMa } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -36305,6 +38798,7 @@ func ParsePostOrganizationManagedResponse(rsp *http.Response) (*PostOrganization switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest struct { + Annotations []KeyValue `json:"annotations"` Organization Organization `json:"organization"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -36347,6 +38841,13 @@ func ParsePostOrganizationManagedResponse(rsp *http.Response) (*PostOrganization } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -36405,6 +38906,13 @@ func ParseGetOrganizationNetworkSpeedProfilesResponse(rsp *http.Response) (*GetO } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -36461,6 +38969,13 @@ func ParseGetOrganizationPolicyLimitsResponse(rsp *http.Response) (*GetOrganizat } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -36520,6 +39035,13 @@ func ParseGetOrganizationSecurityGroupsResponse(rsp *http.Response) (*GetOrganiz } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -36541,6 +39063,8 @@ func ParsePostOrganizationSecurityGroupsResponse(rsp *http.Response) (*PostOrgan switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { + Annotations []KeyValue `json:"annotations"` + // SecurityGroup The security group that has been created SecurityGroup SecurityGroup `json:"security_group"` } @@ -36584,6 +39108,13 @@ func ParsePostOrganizationSecurityGroupsResponse(rsp *http.Response) (*PostOrgan } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -36641,6 +39172,13 @@ func ParseGetOrganizationSshKeysResponse(rsp *http.Response) (*GetOrganizationSs } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -36704,6 +39242,13 @@ func ParsePostOrganizationSshKeysResponse(rsp *http.Response) (*PostOrganization } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -36763,6 +39308,13 @@ func ParseGetOrganizationTagsResponse(rsp *http.Response) (*GetOrganizationTagsR } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -36827,6 +39379,13 @@ func ParsePostOrganizationTagsResponse(rsp *http.Response) (*PostOrganizationTag } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -36886,6 +39445,13 @@ func ParseGetOrganizationTrashObjectsResponse(rsp *http.Response) (*GetOrganizat } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -36949,6 +39515,13 @@ func ParsePostOrganizationTrashObjectsPurgeAllResponse(rsp *http.Response) (*Pos } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -37006,6 +39579,13 @@ func ParseGetOrganizationUsersWithAccessResponse(rsp *http.Response) (*GetOrgani } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -37063,6 +39643,13 @@ func ParseGetOrganizationVirtualMachineGroupsResponse(rsp *http.Response) (*GetO } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -37127,6 +39714,13 @@ func ParsePostOrganizationVirtualMachineGroupsResponse(rsp *http.Response) (*Pos } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -37184,6 +39778,13 @@ func ParseGetOrganizationVirtualMachinesResponse(rsp *http.Response) (*GetOrgani } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -37205,6 +39806,8 @@ func ParsePostOrganizationVirtualMachinesBuildResponse(rsp *http.Response) (*Pos switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest struct { + Annotations []KeyValue `json:"annotations"` + // Build Deprecated, please use "virtual_machine_build" instead Build PostOrganizationVirtualMachinesBuild201ResponseBuild `json:"build"` Hostname string `json:"hostname"` @@ -37251,6 +39854,13 @@ func ParsePostOrganizationVirtualMachinesBuildResponse(rsp *http.Response) (*Pos } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -37272,6 +39882,8 @@ func ParsePostOrganizationVirtualMachinesBuildFromSpecResponse(rsp *http.Respons switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: var dest struct { + Annotations []KeyValue `json:"annotations"` + // Build Deprecated, please use "virtual_machine_build" instead Build PostOrganizationVirtualMachinesBuildFromSpec201ResponseBuild `json:"build"` Hostname string `json:"hostname"` @@ -37318,6 +39930,13 @@ func ParsePostOrganizationVirtualMachinesBuildFromSpecResponse(rsp *http.Respons } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -37389,6 +40008,13 @@ func ParseDeleteSecurityGroupResponse(rsp *http.Response) (*DeleteSecurityGroupR } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -37410,6 +40036,8 @@ func ParseGetSecurityGroupResponse(rsp *http.Response) (*GetSecurityGroupRespons switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { + Annotations []KeyValue `json:"annotations"` + // SecurityGroup The security group SecurityGroup SecurityGroup `json:"security_group"` } @@ -37446,6 +40074,13 @@ func ParseGetSecurityGroupResponse(rsp *http.Response) (*GetSecurityGroupRespons } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -37467,6 +40102,8 @@ func ParsePatchSecurityGroupResponse(rsp *http.Response) (*PatchSecurityGroupRes switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { + Annotations []KeyValue `json:"annotations"` + // SecurityGroup The security group that has been updated SecurityGroup SecurityGroup `json:"security_group"` } @@ -37510,6 +40147,13 @@ func ParsePatchSecurityGroupResponse(rsp *http.Response) (*PatchSecurityGroupRes } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -37569,6 +40213,13 @@ func ParseGetSecurityGroupRulesResponse(rsp *http.Response) (*GetSecurityGroupRu } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -37633,6 +40284,13 @@ func ParsePostSecurityGroupRulesResponse(rsp *http.Response) (*PostSecurityGroup } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -37697,6 +40355,13 @@ func ParseDeleteSecurityGroupsRulesSecurityGroupRuleResponse(rsp *http.Response) } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -37754,6 +40419,13 @@ func ParseGetSecurityGroupsRulesSecurityGroupRuleResponse(rsp *http.Response) (* } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -37818,6 +40490,13 @@ func ParsePatchSecurityGroupsRulesSecurityGroupRuleResponse(rsp *http.Response) } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -37881,6 +40560,13 @@ func ParseDeleteSshKeyResponse(rsp *http.Response) (*DeleteSshKeyResponse, error } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -37938,6 +40624,13 @@ func ParseDeleteTagResponse(rsp *http.Response) (*DeleteTagResponse, error) { } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -37995,6 +40688,13 @@ func ParseGetTagResponse(rsp *http.Response) (*GetTagResponse, error) { } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -38059,6 +40759,13 @@ func ParsePatchTagResponse(rsp *http.Response) (*PatchTagResponse, error) { } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -38115,6 +40822,13 @@ func ParseGetTaskResponse(rsp *http.Response) (*GetTaskResponse, error) { } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -38178,6 +40892,13 @@ func ParseDeleteTrashObjectResponse(rsp *http.Response) (*DeleteTrashObjectRespo } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -38235,6 +40956,13 @@ func ParseGetTrashObjectResponse(rsp *http.Response) (*GetTrashObjectResponse, e } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -38292,6 +41020,13 @@ func ParsePostTrashObjectRestoreResponse(rsp *http.Response) (*PostTrashObjectRe } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -38313,7 +41048,7 @@ func ParseGetUsersCurrentResponse(rsp *http.Response) (*GetUsersCurrentResponse, switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { - ApiTokenId string `json:"api_token_id"` + ApiTokenId nullable.Nullable[string] `json:"api_token_id"` Organizations []GetUsersCurrent200ResponseOrganizations `json:"organizations"` User User `json:"user"` } @@ -38350,6 +41085,13 @@ func ParseGetUsersCurrentResponse(rsp *http.Response) (*GetUsersCurrentResponse, } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -38397,6 +41139,13 @@ func ParseGetVirtualMachineAuthorizedKeysResponse(rsp *http.Response) (*GetVirtu } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -38461,6 +41210,13 @@ func ParseDeleteVirtualMachineGroupResponse(rsp *http.Response) (*DeleteVirtualM } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -38518,6 +41274,13 @@ func ParseGetVirtualMachineGroupResponse(rsp *http.Response) (*GetVirtualMachine } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -38582,6 +41345,13 @@ func ParsePatchVirtualMachineGroupResponse(rsp *http.Response) (*PatchVirtualMac } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -38639,6 +41409,13 @@ func ParseGetVMNIVMNIResponse(rsp *http.Response) (*GetVMNIVMNIResponse, error) } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -38703,6 +41480,13 @@ func ParsePostVirtualMachineNetworkInterfaceAllocateIpResponse(rsp *http.Respons } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -38761,7 +41545,7 @@ func ParsePostVirtualMachineNetworkInterfaceAllocateNewIpResponse(rsp *http.Resp response.JSON429 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: - var dest NoAvailableAddressesResponse + var dest NoAvailableAddresses503Res if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -38824,6 +41608,13 @@ func ParseGetVirtualMachineNetworkInterfaceAvailableIpsAddressVersionResponse(rs } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -38895,6 +41686,13 @@ func ParsePatchVirtualMachineNetworkInterfaceUpdateSpeedProfileResponse(rsp *htt } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -38952,6 +41750,13 @@ func ParseGetVirtualMachinePackagesResponse(rsp *http.Response) (*GetVirtualMach } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -39008,6 +41813,13 @@ func ParseGetVirtualMachinePackageResponse(rsp *http.Response) (*GetVirtualMachi } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -39072,6 +41884,13 @@ func ParseDeleteVirtualMachineResponse(rsp *http.Response) (*DeleteVirtualMachin } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -39093,6 +41912,7 @@ func ParseGetVirtualMachineResponse(rsp *http.Response) (*GetVirtualMachineRespo switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { + Annotations []KeyValue `json:"annotations"` VirtualMachine GetVirtualMachine200ResponseVirtualMachine `json:"virtual_machine"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -39135,6 +41955,13 @@ func ParseGetVirtualMachineResponse(rsp *http.Response) (*GetVirtualMachineRespo } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -39156,6 +41983,8 @@ func ParsePatchVirtualMachineResponse(rsp *http.Response) (*PatchVirtualMachineR switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { + Annotations []KeyValue `json:"annotations"` + // VirtualMachine The newly updated virtual machine VirtualMachine PatchVirtualMachine200ResponseVirtualMachine `json:"virtual_machine"` } @@ -39199,6 +42028,13 @@ func ParsePatchVirtualMachineResponse(rsp *http.Response) (*PatchVirtualMachineR } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -39270,6 +42106,13 @@ func ParsePostVirtualMachineAllocateIpResponse(rsp *http.Response) (*PostVirtual } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -39340,6 +42183,13 @@ func ParsePostVirtualMachineConsoleSessionsResponse(rsp *http.Response) (*PostVi } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -39405,6 +42255,13 @@ func ParseGetVirtualMachineDiskBackupPoliciesResponse(rsp *http.Response) (*GetV } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -39476,6 +42333,13 @@ func ParsePostVirtualMachineDiskBackupPoliciesResponse(rsp *http.Response) (*Pos } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -39541,6 +42405,13 @@ func ParseGetVirtualMachineDisksResponse(rsp *http.Response) (*GetVirtualMachine } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -39604,6 +42475,13 @@ func ParsePutVirtualMachineFlexibleResourcesResponse(rsp *http.Response) (*PutVi } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -39670,6 +42548,13 @@ func ParseGetVirtualMachineNetworkInterfacesResponse(rsp *http.Response) (*GetVi } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -39734,6 +42619,13 @@ func ParseGetVirtualMachineNetworkInterfaceResponse(rsp *http.Response) (*GetVir } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -39797,6 +42689,13 @@ func ParsePutVirtualMachinePackageResponse(rsp *http.Response) (*PutVirtualMachi } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -39860,6 +42759,13 @@ func ParsePostVirtualMachineResetResponse(rsp *http.Response) (*PostVirtualMachi } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -39923,6 +42829,13 @@ func ParsePostVirtualMachineShutdownResponse(rsp *http.Response) (*PostVirtualMa } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -39986,6 +42899,13 @@ func ParsePostVirtualMachineStartResponse(rsp *http.Response) (*PostVirtualMachi } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -40049,6 +42969,13 @@ func ParsePostVirtualMachineStopResponse(rsp *http.Response) (*PostVirtualMachin } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -40070,6 +42997,7 @@ func ParseGetVirtualMachinesBuildsVirtualMachineBuildResponse(rsp *http.Response switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { + Annotations []KeyValue `json:"annotations"` VirtualMachineBuild GetVirtualMachinesBuildsVirtualMachineBuild200ResponseVirtualMachineBuild `json:"virtual_machine_build"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -40105,6 +43033,13 @@ func ParseGetVirtualMachinesBuildsVirtualMachineBuildResponse(rsp *http.Response } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -40155,6 +43090,13 @@ func ParseGetZonesResponse(rsp *http.Response) (*GetZonesResponse, error) { } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil @@ -40212,6 +43154,13 @@ func ParseGetZoneResponse(rsp *http.Response) (*GetZoneResponse, error) { } response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 503: + var dest APIAuthenticator503Response + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON503 = &dest + } return response, nil diff --git a/next/katapult-core-openapi.json b/next/katapult-core-openapi.json index d89105b..1116d1e 100644 --- a/next/katapult-core-openapi.json +++ b/next/katapult-core-openapi.json @@ -49,6 +49,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -106,6 +109,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -168,6 +174,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -210,6 +219,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -267,6 +279,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -324,6 +339,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -402,6 +420,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -429,6 +450,22 @@ }, "description": "All 'organization[]' params are mutually exclusive, only one can be provided." }, + { + "name": "annotations[key]", + "in": "query", + "schema": { + "type": "string" + }, + "description": "An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided." + }, + { + "name": "annotations[value]", + "in": "query", + "schema": { + "type": "string" + }, + "description": "An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided." + }, { "name": "page", "in": "query", @@ -480,6 +517,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -501,6 +541,12 @@ }, "sub_domain": { "type": "string" + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ @@ -521,10 +567,17 @@ "properties": { "organization": { "$ref": "#/components/schemas/Organization" + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ - "organization" + "organization", + "annotations" ] } } @@ -544,6 +597,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -571,6 +627,22 @@ }, "description": "The organization to find disks for. All 'organization[]' params are mutually exclusive, only one can be provided." }, + { + "name": "annotations[key]", + "in": "query", + "schema": { + "type": "string" + }, + "description": "An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided." + }, + { + "name": "annotations[value]", + "in": "query", + "schema": { + "type": "string" + }, + "description": "An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided." + }, { "name": "page", "in": "query", @@ -623,6 +695,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -641,6 +716,12 @@ }, "properties": { "$ref": "#/components/schemas/DiskArguments" + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ @@ -668,11 +749,19 @@ }, "task": { "$ref": "#/components/schemas/Task" + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + }, + "description": "Annotations for this disk" } }, "required": [ "disk", - "task" + "task", + "annotations" ] } } @@ -695,6 +784,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -729,10 +821,17 @@ "$ref": "#/components/schemas/GetDisk200ResponseDisk" } ] + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ - "disk" + "disk", + "annotations" ] } } @@ -752,6 +851,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -770,6 +872,12 @@ }, "properties": { "$ref": "#/components/schemas/DiskArguments" + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ @@ -794,10 +902,18 @@ "$ref": "#/components/schemas/PatchDisk200ResponseDisk" } ] + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + }, + "description": "Annotations for this disk" } }, "required": [ - "disk" + "disk", + "annotations" ] } } @@ -820,6 +936,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -888,6 +1007,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -958,6 +1080,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -1024,6 +1149,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -1094,6 +1222,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -1164,6 +1295,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -1241,6 +1375,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -1312,6 +1449,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -1394,6 +1534,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -1473,6 +1616,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -1569,6 +1715,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -1631,6 +1780,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -1714,6 +1866,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -1768,6 +1923,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -1826,6 +1984,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -1885,6 +2046,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -1942,6 +2106,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -2020,6 +2187,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -2047,6 +2217,22 @@ }, "description": "All 'organization[]' params are mutually exclusive, only one can be provided." }, + { + "name": "annotations[key]", + "in": "query", + "schema": { + "type": "string" + }, + "description": "An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided." + }, + { + "name": "annotations[value]", + "in": "query", + "schema": { + "type": "string" + }, + "description": "An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided." + }, { "name": "page", "in": "query", @@ -2098,6 +2284,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -2135,10 +2324,17 @@ "properties": { "virtual_machine": { "$ref": "#/components/schemas/GetVirtualMachine200ResponseVirtualMachine" + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ - "virtual_machine" + "virtual_machine", + "annotations" ] } } @@ -2158,6 +2354,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -2176,6 +2375,12 @@ }, "properties": { "$ref": "#/components/schemas/VirtualMachineArguments" + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ @@ -2200,10 +2405,17 @@ "$ref": "#/components/schemas/PatchVirtualMachine200ResponseVirtualMachine" } ] + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ - "virtual_machine" + "virtual_machine", + "annotations" ] } } @@ -2223,6 +2435,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -2280,6 +2495,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -2342,6 +2560,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -2404,6 +2625,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -2474,6 +2698,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -2509,6 +2736,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -2550,6 +2780,12 @@ }, "hostname": { "type": "string" + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ @@ -2583,13 +2819,20 @@ }, "hostname": { "type": "string" + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ "task", "build", "virtual_machine_build", - "hostname" + "hostname", + "annotations" ] } } @@ -2609,6 +2852,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -2629,6 +2875,12 @@ }, "xml": { "type": "string" + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ @@ -2662,13 +2914,20 @@ }, "hostname": { "type": "string" + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ "task", "build", "virtual_machine_build", - "hostname" + "hostname", + "annotations" ] } } @@ -2688,6 +2947,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -2717,10 +2979,17 @@ "properties": { "virtual_machine_build": { "$ref": "#/components/schemas/GetVirtualMachinesBuildsVirtualMachineBuild200ResponseVirtualMachineBuild" + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ - "virtual_machine_build" + "virtual_machine_build", + "annotations" ] } } @@ -2737,6 +3006,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -2795,6 +3067,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -2853,6 +3128,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -2911,6 +3189,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -2969,6 +3250,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -3030,6 +3314,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -3108,6 +3395,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -3165,6 +3455,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -3243,6 +3536,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -3303,6 +3599,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -3361,13 +3660,16 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } }, - "/organizations/:organization/disk_backup_policies": { + "/organizations/:organization/api_tokens": { "get": { - "operationId": "get:organization_disk_backup_policies", + "operationId": "get:organization_api_tokens", "tags": [ "Core" ], @@ -3378,7 +3680,7 @@ "schema": { "type": "string" }, - "description": "The organization to return disk backup policies for. All 'organization[]' params are mutually exclusive, only one can be provided." + "description": "The organization to list API tokens for. All 'organization[]' params are mutually exclusive, only one can be provided." }, { "name": "organization[sub_domain]", @@ -3386,7 +3688,23 @@ "schema": { "type": "string" }, - "description": "The organization to return disk backup policies for. All 'organization[]' params are mutually exclusive, only one can be provided." + "description": "The organization to list API tokens for. All 'organization[]' params are mutually exclusive, only one can be provided." + }, + { + "name": "annotations[key]", + "in": "query", + "schema": { + "type": "string" + }, + "description": "An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided." + }, + { + "name": "annotations[value]", + "in": "query", + "schema": { + "type": "string" + }, + "description": "An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided." }, { "name": "page", @@ -3405,7 +3723,7 @@ ], "responses": { "200": { - "description": "Returns a list of all disk backup policies for a given organization", + "description": "Returns a list of all API tokens for an organization", "content": { "application/json": { "schema": { @@ -3413,17 +3731,16 @@ "pagination": { "$ref": "#/components/schemas/PaginationObject" }, - "disk_backup_policies": { + "api_tokens": { "type": "array", "items": { - "$ref": "#/components/schemas/GetOrganizationDiskBackupPolicies200ResponseDiskBackupPolicies" - }, - "description": "The disk backup policies for the provided organization" + "$ref": "#/components/schemas/APIToken" + } } }, "required": [ "pagination", - "disk_backup_policies" + "api_tokens" ] } } @@ -3440,26 +3757,407 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } - } - }, - "/virtual_machines/:virtual_machine/disk_backup_policies": { - "get": { - "operationId": "get:virtual_machine_disk_backup_policies", + }, + "post": { + "operationId": "post:organization_api_tokens", "tags": [ "Core" ], - "parameters": [ - { - "name": "virtual_machine[id]", - "in": "query", - "schema": { - "type": "string" - }, - "description": "The virtual machine to return disk backup policies for. All 'virtual_machine[]' params are mutually exclusive, only one can be provided." - }, - { + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "organization": { + "$ref": "#/components/schemas/OrganizationLookup" + }, + "properties": { + "$ref": "#/components/schemas/APITokenArguments" + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } + } + }, + "required": [ + "organization", + "properties" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Create a new API token for a given organization", + "content": { + "application/json": { + "schema": { + "properties": { + "api_token": { + "description": "The API token that has been created", + "allOf": [ + { + "$ref": "#/components/schemas/APIToken" + } + ] + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + }, + "description": "Annotations for this API token" + } + }, + "required": [ + "api_token", + "annotations" + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/APIAuthenticator400Response" + }, + "403": { + "$ref": "#/components/responses/OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res" + }, + "404": { + "$ref": "#/components/responses/OrganizationNotFoundResponse" + }, + "422": { + "$ref": "#/components/responses/ValidationErrorResponse" + }, + "429": { + "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" + } + } + } + }, + "/api_tokens/:api_token": { + "patch": { + "operationId": "patch:api_token", + "tags": [ + "Core" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "api_token": { + "$ref": "#/components/schemas/APITokenLookup" + }, + "properties": { + "$ref": "#/components/schemas/APITokenArguments" + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } + } + }, + "required": [ + "api_token", + "properties" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Updates an organization API token with new properties", + "content": { + "application/json": { + "schema": { + "properties": { + "api_token": { + "description": "The API token that has been updated", + "allOf": [ + { + "$ref": "#/components/schemas/APIToken" + } + ] + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + }, + "description": "Annotations for this API token" + } + }, + "required": [ + "api_token", + "annotations" + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/APIAuthenticator400Response" + }, + "403": { + "$ref": "#/components/responses/PermissionDenied403Res" + }, + "404": { + "$ref": "#/components/responses/APITokenNotFoundResponse" + }, + "422": { + "$ref": "#/components/responses/ValidationErrorResponse" + }, + "429": { + "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" + } + } + }, + "delete": { + "operationId": "delete:api_token", + "tags": [ + "Core" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "api_token": { + "$ref": "#/components/schemas/APITokenLookup" + } + }, + "required": [ + "api_token" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Delete an organization API token", + "content": { + "application/json": { + "schema": { + "properties": { + "api_token": { + "description": "The API token that has been destroyed", + "allOf": [ + { + "$ref": "#/components/schemas/DeleteAPIToken200ResponseAPIToken" + } + ] + } + }, + "required": [ + "api_token" + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/APIAuthenticator400Response" + }, + "403": { + "$ref": "#/components/responses/PermissionDenied403Res" + }, + "404": { + "$ref": "#/components/responses/APITokenNotFoundResponse" + }, + "422": { + "$ref": "#/components/responses/ValidationErrorResponse" + }, + "429": { + "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" + } + } + } + }, + "/api_tokens/:api_token/regenerate_secret": { + "post": { + "operationId": "post:api_token_regenerate_secret", + "tags": [ + "Core" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "api_token": { + "$ref": "#/components/schemas/APITokenLookup" + } + }, + "required": [ + "api_token" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Regenerates the secret for an organization API token", + "content": { + "application/json": { + "schema": { + "properties": { + "api_token": { + "description": "The API token that has had its secret regenerated", + "allOf": [ + { + "$ref": "#/components/schemas/APIToken" + } + ] + } + }, + "required": [ + "api_token" + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/APIAuthenticator400Response" + }, + "403": { + "$ref": "#/components/responses/PermissionDenied403Res" + }, + "404": { + "$ref": "#/components/responses/APITokenNotFoundResponse" + }, + "422": { + "$ref": "#/components/responses/ValidationErrorResponse" + }, + "429": { + "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" + } + } + } + }, + "/organizations/:organization/disk_backup_policies": { + "get": { + "operationId": "get:organization_disk_backup_policies", + "tags": [ + "Core" + ], + "parameters": [ + { + "name": "organization[id]", + "in": "query", + "schema": { + "type": "string" + }, + "description": "The organization to return disk backup policies for. All 'organization[]' params are mutually exclusive, only one can be provided." + }, + { + "name": "organization[sub_domain]", + "in": "query", + "schema": { + "type": "string" + }, + "description": "The organization to return disk backup policies for. All 'organization[]' params are mutually exclusive, only one can be provided." + }, + { + "name": "page", + "in": "query", + "schema": { + "type": "integer" + } + }, + { + "name": "per_page", + "in": "query", + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "Returns a list of all disk backup policies for a given organization", + "content": { + "application/json": { + "schema": { + "properties": { + "pagination": { + "$ref": "#/components/schemas/PaginationObject" + }, + "disk_backup_policies": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GetOrganizationDiskBackupPolicies200ResponseDiskBackupPolicies" + }, + "description": "The disk backup policies for the provided organization" + } + }, + "required": [ + "pagination", + "disk_backup_policies" + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/APIAuthenticator400Response" + }, + "403": { + "$ref": "#/components/responses/OrganizationNotActivatedOrganizationSuspendedPermissionDenied403Res" + }, + "404": { + "$ref": "#/components/responses/OrganizationNotFoundResponse" + }, + "429": { + "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" + } + } + } + }, + "/virtual_machines/:virtual_machine/disk_backup_policies": { + "get": { + "operationId": "get:virtual_machine_disk_backup_policies", + "tags": [ + "Core" + ], + "parameters": [ + { + "name": "virtual_machine[id]", + "in": "query", + "schema": { + "type": "string" + }, + "description": "The virtual machine to return disk backup policies for. All 'virtual_machine[]' params are mutually exclusive, only one can be provided." + }, + { "name": "virtual_machine[fqdn]", "in": "query", "schema": { @@ -3531,6 +4229,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -3599,6 +4300,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -3673,6 +4377,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -3741,6 +4448,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -3798,6 +4508,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -3859,6 +4572,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -3927,6 +4643,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -3995,6 +4714,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -4074,6 +4796,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -4139,6 +4864,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -4199,6 +4927,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -4261,6 +4992,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -4326,6 +5060,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -4379,6 +5116,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -4442,6 +5182,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -4503,6 +5246,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -4563,6 +5309,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -4617,6 +5366,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -4682,6 +5434,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -4735,6 +5490,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -4762,6 +5520,22 @@ }, "description": "The organization to return all security groups for. All 'organization[]' params are mutually exclusive, only one can be provided." }, + { + "name": "annotations[key]", + "in": "query", + "schema": { + "type": "string" + }, + "description": "An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided." + }, + { + "name": "annotations[value]", + "in": "query", + "schema": { + "type": "string" + }, + "description": "An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided." + }, { "name": "page", "in": "query", @@ -4814,6 +5588,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -4832,6 +5609,12 @@ }, "properties": { "$ref": "#/components/schemas/SecurityGroupArguments" + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ @@ -4856,10 +5639,17 @@ "$ref": "#/components/schemas/SecurityGroup" } ] + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ - "security_group" + "security_group", + "annotations" ] } } @@ -4879,6 +5669,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -4913,10 +5706,17 @@ "$ref": "#/components/schemas/SecurityGroup" } ] + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ - "security_group" + "security_group", + "annotations" ] } } @@ -4933,6 +5733,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -4951,6 +5754,12 @@ }, "properties": { "$ref": "#/components/schemas/SecurityGroupArguments" + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ @@ -4975,10 +5784,17 @@ "$ref": "#/components/schemas/SecurityGroup" } ] + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ - "security_group" + "security_group", + "annotations" ] } } @@ -4998,6 +5814,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -5062,6 +5881,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -5133,6 +5955,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -5198,6 +6023,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -5252,6 +6080,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -5317,6 +6148,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -5378,6 +6212,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -5398,12 +6235,28 @@ "description": "The organization to return all file storage volumes for. All 'organization[]' params are mutually exclusive, only one can be provided." }, { - "name": "organization[sub_domain]", + "name": "organization[sub_domain]", + "in": "query", + "schema": { + "type": "string" + }, + "description": "The organization to return all file storage volumes for. All 'organization[]' params are mutually exclusive, only one can be provided." + }, + { + "name": "annotations[key]", + "in": "query", + "schema": { + "type": "string" + }, + "description": "An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided." + }, + { + "name": "annotations[value]", "in": "query", "schema": { "type": "string" }, - "description": "The organization to return all file storage volumes for. All 'organization[]' params are mutually exclusive, only one can be provided." + "description": "An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided." }, { "name": "page", @@ -5457,6 +6310,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -5475,6 +6331,12 @@ }, "properties": { "$ref": "#/components/schemas/FileStorageVolumeArguments" + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ @@ -5499,10 +6361,17 @@ "$ref": "#/components/schemas/PostOrganizationFileStorageVolumes201ResponseFileStorageVolume" } ] + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ - "file_storage_volume" + "file_storage_volume", + "annotations" ] } } @@ -5522,6 +6391,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -5556,10 +6428,17 @@ "$ref": "#/components/schemas/GetFileStorageVolume200ResponseFileStorageVolume" } ] + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ - "file_storage_volume" + "file_storage_volume", + "annotations" ] } } @@ -5579,6 +6458,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -5597,6 +6479,12 @@ }, "properties": { "$ref": "#/components/schemas/FileStorageVolumeArguments" + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ @@ -5621,10 +6509,17 @@ "$ref": "#/components/schemas/PatchFileStorageVolume200ResponseFileStorageVolume" } ] + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ - "file_storage_volume" + "file_storage_volume", + "annotations" ] } } @@ -5647,6 +6542,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -5715,6 +6613,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -5782,6 +6683,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -5844,6 +6748,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -5923,6 +6830,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -5983,6 +6893,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -6010,6 +6923,22 @@ }, "description": "The organization for which the address lists should be returned. All 'organization[]' params are mutually exclusive, only one can be provided." }, + { + "name": "annotations[key]", + "in": "query", + "schema": { + "type": "string" + }, + "description": "An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided." + }, + { + "name": "annotations[value]", + "in": "query", + "schema": { + "type": "string" + }, + "description": "An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided." + }, { "name": "page", "in": "query", @@ -6062,6 +6991,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -6080,6 +7012,12 @@ }, "properties": { "$ref": "#/components/schemas/AddressListArguments" + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ @@ -6104,10 +7042,17 @@ "$ref": "#/components/schemas/AddressList" } ] + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ - "address_list" + "address_list", + "annotations" ] } } @@ -6127,6 +7072,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -6161,10 +7109,17 @@ "$ref": "#/components/schemas/AddressList" } ] + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ - "address_list" + "address_list", + "annotations" ] } } @@ -6181,6 +7136,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -6199,6 +7157,12 @@ }, "properties": { "$ref": "#/components/schemas/AddressListArguments" + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ @@ -6223,10 +7187,17 @@ "$ref": "#/components/schemas/AddressList" } ] + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ - "address_list" + "address_list", + "annotations" ] } } @@ -6246,6 +7217,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -6304,6 +7278,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -6375,6 +7352,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -6440,6 +7420,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -6494,6 +7477,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -6559,6 +7545,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -6617,6 +7606,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -6695,6 +7687,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -6750,6 +7745,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -6777,6 +7775,22 @@ }, "description": "The organization to return all load balancers for. All 'organization[]' params are mutually exclusive, only one can be provided." }, + { + "name": "annotations[key]", + "in": "query", + "schema": { + "type": "string" + }, + "description": "An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided." + }, + { + "name": "annotations[value]", + "in": "query", + "schema": { + "type": "string" + }, + "description": "An array of annotations to filter by. All 'annotations[]' params are mutually exclusive, only one can be provided." + }, { "name": "page", "in": "query", @@ -6829,6 +7843,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -6847,6 +7864,12 @@ }, "properties": { "$ref": "#/components/schemas/LoadBalancerArguments" + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ @@ -6871,10 +7894,17 @@ "$ref": "#/components/schemas/PostOrganizationLoadBalancers201ResponseLoadBalancer" } ] + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ - "load_balancer" + "load_balancer", + "annotations" ] } } @@ -6894,6 +7924,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -6936,10 +7969,17 @@ "$ref": "#/components/schemas/GetLoadBalancer200ResponseLoadBalancer" } ] + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ - "load_balancer" + "load_balancer", + "annotations" ] } } @@ -6956,6 +7996,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -6974,6 +8017,12 @@ }, "properties": { "$ref": "#/components/schemas/LoadBalancerArguments" + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ @@ -6998,10 +8047,17 @@ "$ref": "#/components/schemas/PatchLoadBalancer200ResponseLoadBalancer" } ] + }, + "annotations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyValue" + } } }, "required": [ - "load_balancer" + "load_balancer", + "annotations" ] } } @@ -7021,6 +8077,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -7082,6 +8141,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -7161,6 +8223,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -7226,6 +8291,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -7280,6 +8348,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -7345,6 +8416,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -7406,6 +8480,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -7494,6 +8571,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -7573,7 +8653,7 @@ "$ref": "#/components/responses/APIAuthenticator429Response" }, "503": { - "$ref": "#/components/responses/NoAvailableAddressesResponse" + "$ref": "#/components/responses/NoAvailableAddresses503Res" } } } @@ -7646,6 +8726,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -7719,6 +8802,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -7770,6 +8856,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -7826,6 +8915,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -7908,6 +9000,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -7989,6 +9084,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -8043,6 +9141,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -8105,6 +9206,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -8172,6 +9276,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -8238,7 +9345,7 @@ "$ref": "#/components/responses/APIAuthenticator429Response" }, "503": { - "$ref": "#/components/responses/NoAvailableAddressesResponse" + "$ref": "#/components/responses/NoAvailableAddresses503Res" } } } @@ -8309,6 +9416,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -8388,6 +9498,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -8453,6 +9566,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -8507,6 +9623,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -8572,6 +9691,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -8630,6 +9752,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -8691,6 +9816,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -8756,6 +9884,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -8810,6 +9941,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -8875,6 +10009,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -8936,6 +10073,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -8996,6 +10136,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -9050,6 +10193,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -9129,6 +10275,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -9187,6 +10336,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -9249,6 +10401,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } }, @@ -9305,6 +10460,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -9365,6 +10523,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -9408,6 +10569,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -9470,6 +10634,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -9530,6 +10697,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -9600,6 +10770,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -9687,6 +10860,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -9741,6 +10917,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -9801,6 +10980,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -9863,6 +11045,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -9912,6 +11097,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -9942,7 +11130,8 @@ } }, "api_token_id": { - "type": "string" + "type": "string", + "nullable": true } }, "required": [ @@ -9965,6 +11154,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -10012,6 +11204,9 @@ }, "429": { "$ref": "#/components/responses/APIAuthenticator429Response" + }, + "503": { + "$ref": "#/components/responses/APIAuthenticator503Response" } } } @@ -10029,8 +11224,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" }, "country": { "$ref": "#/components/schemas/GetDataCentersPartCountry" @@ -10173,6 +11367,12 @@ "rate_limit_reached" ] }, + "ServiceUnavailableEnum": { + "type": "string", + "enum": [ + "service_unavailable" + ] + }, "GetDataCenter200ResponseDataCenter": { "type": "object", "properties": { @@ -10183,8 +11383,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" }, "country": { "$ref": "#/components/schemas/GetDataCenterPartCountry" @@ -10236,8 +11435,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" } } }, @@ -10259,6 +11457,10 @@ "created_at": { "type": "integer" }, + "activated_at": { + "type": "integer", + "nullable": true + }, "suspended": { "type": "boolean" }, @@ -10285,6 +11487,10 @@ "created_at": { "type": "integer" }, + "activated_at": { + "type": "integer", + "nullable": true + }, "suspended": { "type": "boolean" }, @@ -10654,6 +11860,21 @@ } } }, + "KeyValue": { + "description": "All 'annotations[]' params are mutually exclusive, only one can be provided.", + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "required": [ + "key" + ] + }, "OrganizationLimitReachedEnum": { "type": "string", "enum": [ @@ -10979,8 +12200,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" } } }, @@ -11335,8 +12555,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" } } }, @@ -11490,8 +12709,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" } } }, @@ -11641,8 +12859,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" } } }, @@ -11745,8 +12962,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" } } }, @@ -11911,8 +13127,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" } } }, @@ -12031,8 +13246,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" } } }, @@ -12175,8 +13389,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" } } }, @@ -12286,8 +13499,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" } } }, @@ -12390,8 +13602,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" } } }, @@ -12847,8 +14058,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" } } }, @@ -12896,8 +14106,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" } } }, @@ -13003,8 +14212,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" }, "country": { "$ref": "#/components/schemas/Country" @@ -13993,21 +15201,6 @@ } } }, - "KeyValue": { - "description": "All 'disk_template_options[]' params are mutually exclusive, only one can be provided.", - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "required": [ - "key" - ] - }, "NetworkLookup": { "description": "All 'network[]' params are mutually exclusive, only one can be provided.", "type": "object", @@ -14625,6 +15818,95 @@ "deletion_restricted" ] }, + "APIToken": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "organization_id": { + "type": "string", + "nullable": true + }, + "authorized_ip_addresses": { + "type": "array", + "items": { + "type": "string" + } + }, + "expires_at": { + "type": "integer", + "nullable": true + }, + "rate_limit": { + "type": "integer" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "secret": { + "type": "string", + "description": "The secret will only be returned on token creation or when a new secret is generated.", + "nullable": true + } + } + }, + "APITokenArguments": { + "description": "All 'properties[]' params are mutually exclusive, only one can be provided.", + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "authorized_ip_addresses": { + "type": "array", + "items": { + "type": "string" + } + }, + "expires_at": { + "type": "integer" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "APITokenLookup": { + "description": "All 'api_token[]' params are mutually exclusive, only one can be provided.", + "type": "object", + "properties": { + "id": { + "type": "string" + } + } + }, + "APITokenNotFoundEnum": { + "type": "string", + "enum": [ + "api_token_not_found" + ] + }, + "DeleteAPIToken200ResponseAPIToken": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, "GetOrganizationDiskBackupPolicies200ResponseDiskBackupPolicies": { "type": "object", "properties": { @@ -16078,8 +17360,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" } } }, @@ -16135,8 +17416,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" } } }, @@ -16209,8 +17489,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" } } }, @@ -16266,8 +17545,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" } } }, @@ -16314,8 +17592,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" } } }, @@ -16347,8 +17624,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" } } }, @@ -16836,8 +18112,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" } } }, @@ -16933,8 +18208,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" } } }, @@ -17037,8 +18311,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" } } }, @@ -17568,12 +18841,52 @@ } ] }, + "APIAuthenticator503Schema": { + "type": "object", + "description": "The service is currently unavailable, please try again later", + "properties": { + "code": { + "$ref": "#/components/schemas/ServiceUnavailableEnum" + }, + "description": { + "type": "string" + }, + "detail": { + "type": "object" + } + } + }, "NoAvailableAddressesEnum": { "type": "string", "enum": [ "no_available_addresses" ] }, + "NoAvailableAddressesSchema": { + "type": "object", + "description": "Our pool of addresses for that version seems to have run dry. If this issue continues, please contact support.", + "properties": { + "code": { + "$ref": "#/components/schemas/NoAvailableAddressesEnum" + }, + "description": { + "type": "string" + }, + "detail": { + "type": "object" + } + } + }, + "OneOfNoAvailableAddresses503Res": { + "oneOf": [ + { + "$ref": "#/components/schemas/APIAuthenticator503Schema" + }, + { + "$ref": "#/components/schemas/NoAvailableAddressesSchema" + } + ] + }, "GetIPAddress200ResponseAllocation": { "type": "object", "properties": { @@ -18115,8 +19428,7 @@ "type": "string" }, "permalink": { - "type": "string", - "nullable": true + "type": "string" } } }, @@ -18280,6 +19592,26 @@ } } }, + "APIAuthenticator503Response": { + "description": "The service is currently unavailable, please try again later", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "$ref": "#/components/schemas/ServiceUnavailableEnum" + }, + "description": { + "type": "string" + }, + "detail": { + "type": "object" + } + } + } + } + } + }, "DataCenterNotFoundResponse": { "description": "No data center was found matching any of the criteria provided in the arguments", "content": { @@ -18820,6 +20152,26 @@ } } }, + "APITokenNotFoundResponse": { + "description": "No API token was found matching any of the criteria provided in the arguments.", + "content": { + "application/json": { + "schema": { + "properties": { + "code": { + "$ref": "#/components/schemas/APITokenNotFoundEnum" + }, + "description": { + "type": "string" + }, + "detail": { + "type": "object" + } + } + } + } + } + }, "DiskBackupPolicyNotFoundResponse": { "description": "No disk backup policy was found matching any of the criteria provided in the arguments", "content": { @@ -19100,22 +20452,12 @@ } } }, - "NoAvailableAddressesResponse": { - "description": "Our pool of addresses for that version seems to have run dry. If this issue continues, please contact support.", + "NoAvailableAddresses503Res": { + "description": "503 error response", "content": { "application/json": { "schema": { - "properties": { - "code": { - "$ref": "#/components/schemas/NoAvailableAddressesEnum" - }, - "description": { - "type": "string" - }, - "detail": { - "type": "object" - } - } + "$ref": "#/components/schemas/OneOfNoAvailableAddresses503Res" } } }