From 8e13e4a31fa411ae5ff337cd4cf75b529a33fa00 Mon Sep 17 00:00:00 2001 From: bencromwell Date: Fri, 1 Nov 2024 11:35:02 +0000 Subject: [PATCH] feat(generator): new client automatically generated in GitHub Actions --- src/Core/Client.php | 512 ++++++++++++---- .../Endpoint/DeleteObjectStorageAccessKey.php | 95 +++ ...ationObjectStorageObjectStorageCluster.php | 99 +++ .../DeleteVirtualMachineNetworkInterface.php | 99 +++ src/Core/Endpoint/GetAddressList.php | 4 +- src/Core/Endpoint/GetAddressListEntries.php | 10 +- src/Core/Endpoint/GetAddressListEntry.php | 4 +- src/Core/Endpoint/GetCertificate.php | 2 +- src/Core/Endpoint/GetCountryState.php | 4 +- src/Core/Endpoint/GetDisk.php | 4 +- src/Core/Endpoint/GetDiskBackupPolicy.php | 4 +- .../Endpoint/GetDiskDiskBackupPolicies.php | 10 +- src/Core/Endpoint/GetDiskTemplateVersion.php | 4 +- .../Endpoint/GetDiskTemplateVersionSpec.php | 4 +- src/Core/Endpoint/GetDnsRecord.php | 2 +- src/Core/Endpoint/GetFileStorageVolume.php | 4 +- .../GetLoadBalancersRulesLoadBalancerRule.php | 4 +- .../Endpoint/GetObjectStorageAccessKey.php | 103 ++++ ...bjectStorageObjectStorageClusterBucket.php | 8 +- ...torageObjectStorageClusterBucketObject.php | 8 +- src/Core/Endpoint/GetOperatingSystem.php | 4 +- .../Endpoint/GetOrganizationAddressLists.php | 4 - .../Endpoint/GetOrganizationApiTokens.php | 4 - .../Endpoint/GetOrganizationDiskTemplates.php | 10 +- src/Core/Endpoint/GetOrganizationDisks.php | 4 - .../GetOrganizationFileStorageVolumes.php | 4 - .../Endpoint/GetOrganizationLoadBalancers.php | 4 - src/Core/Endpoint/GetOrganizationManaged.php | 4 - ...GetOrganizationObjectStorageAccessKeys.php | 113 ++++ ...ationObjectStorageObjectStorageCluster.php | 115 ++++ .../GetOrganizationSecurityGroups.php | 4 - .../GetOrganizationVirtualMachines.php | 4 - src/Core/Endpoint/GetSecurityGroup.php | 4 +- src/Core/Endpoint/GetSecurityGroupRules.php | 10 +- ...etSecurityGroupsRulesSecurityGroupRule.php | 4 +- src/Core/Endpoint/GetTag.php | 4 +- src/Core/Endpoint/GetTask.php | 2 +- src/Core/Endpoint/GetVMNIVMNI.php | 4 +- src/Core/Endpoint/GetVirtualMachineGroup.php | 4 +- ...orkInterfaceAvailableIpsAddressVersion.php | 4 +- ...rtualMachinesBuildsVirtualMachineBuild.php | 2 +- src/Core/Endpoint/GetVirtualNetwork.php | 4 +- .../Endpoint/PatchObjectStorageAccessKey.php | 99 +++ ...ectStorageAccessKeyGenerateCredentials.php | 99 +++ ...ationObjectStorageObjectStorageCluster.php | 99 +++ ...tStorageObjectStorageClusterAccessKeys.php | 99 +++ ...stVirtualMachineNetworkInterfaceAttach.php | 100 +++ ...stVirtualMachineNetworkInterfaceDetach.php | 100 +++ .../PostVirtualMachineNetworkInterfaces.php | 100 +++ ...ectStorageAccessKeyBadRequestException.php | 40 ++ ...jectStorageAccessKeyForbiddenException.php | 30 + ...torageAccessKeyGatewayTimeoutException.php | 40 ++ ...bjectStorageAccessKeyNotFoundException.php | 40 ++ ...geAccessKeyServiceUnavailableException.php | 40 ++ ...orageAccessKeyTooManyRequestsException.php | 40 ++ ...bjectStorageClusterBadRequestException.php | 40 ++ ...ObjectStorageClusterForbiddenException.php | 30 + ...ctStorageClusterNotAcceptableException.php | 40 ++ ...eObjectStorageClusterNotFoundException.php | 30 + ...rageClusterServiceUnavailableException.php | 40 ++ ...StorageClusterTooManyRequestsException.php | 40 ++ ...ageClusterUnprocessableEntityException.php | 40 ++ ...ineNetworkInterfaceBadRequestException.php | 40 ++ ...chineNetworkInterfaceConflictException.php | 40 ++ ...hineNetworkInterfaceForbiddenException.php | 30 + ...chineNetworkInterfaceNotFoundException.php | 40 ++ ...rkInterfaceServiceUnavailableException.php | 40 ++ ...tworkInterfaceTooManyRequestsException.php | 40 ++ ...kInterfaceUnprocessableEntityException.php | 40 ++ ...ectStorageAccessKeyBadRequestException.php | 40 ++ ...jectStorageAccessKeyForbiddenException.php | 30 + ...bjectStorageAccessKeyNotFoundException.php | 40 ++ ...geAccessKeyServiceUnavailableException.php | 40 ++ ...orageAccessKeyTooManyRequestsException.php | 40 ++ ...ctStorageAccessKeysBadRequestException.php | 40 ++ ...ectStorageAccessKeysForbiddenException.php | 30 + ...jectStorageAccessKeysNotFoundException.php | 40 ++ ...eAccessKeysServiceUnavailableException.php | 40 ++ ...rageAccessKeysTooManyRequestsException.php | 40 ++ ...bjectStorageClusterBadRequestException.php | 40 ++ ...ObjectStorageClusterForbiddenException.php | 30 + ...ctStorageClusterNotAcceptableException.php | 40 ++ ...eObjectStorageClusterNotFoundException.php | 30 + ...rageClusterServiceUnavailableException.php | 40 ++ ...StorageClusterTooManyRequestsException.php | 40 ++ ...ectStorageAccessKeyBadRequestException.php | 40 ++ ...jectStorageAccessKeyForbiddenException.php | 30 + ...StorageAccessKeyNotAcceptableException.php | 40 ++ ...bjectStorageAccessKeyNotFoundException.php | 40 ++ ...geAccessKeyServiceUnavailableException.php | 40 ++ ...orageAccessKeyTooManyRequestsException.php | 40 ++ ...eAccessKeyUnprocessableEntityException.php | 30 + ...GenerateCredentialsBadRequestException.php | 40 ++ ...yGenerateCredentialsForbiddenException.php | 30 + ...erateCredentialsNotAcceptableException.php | 40 ++ ...eyGenerateCredentialsNotFoundException.php | 40 ++ ...CredentialsServiceUnavailableException.php | 40 ++ ...ateCredentialsTooManyRequestsException.php | 40 ++ ...redentialsUnprocessableEntityException.php | 40 ++ ...geClusterAccessKeysBadRequestException.php | 40 ++ ...ageClusterAccessKeysForbiddenException.php | 30 + ...lusterAccessKeysNotAcceptableException.php | 40 ++ ...rageClusterAccessKeysNotFoundException.php | 30 + ...rAccessKeysServiceUnavailableException.php | 40 ++ ...sterAccessKeysTooManyRequestsException.php | 40 ++ ...AccessKeysUnprocessableEntityException.php | 40 ++ ...bjectStorageClusterBadRequestException.php | 40 ++ ...ObjectStorageClusterForbiddenException.php | 30 + ...ctStorageClusterNotAcceptableException.php | 30 + ...eObjectStorageClusterNotFoundException.php | 30 + ...rageClusterServiceUnavailableException.php | 40 ++ ...StorageClusterTooManyRequestsException.php | 40 ++ ...ageClusterUnprocessableEntityException.php | 40 ++ ...workInterfaceAttachBadRequestException.php | 40 ++ ...tworkInterfaceAttachForbiddenException.php | 30 + ...kInterfaceAttachNotAcceptableException.php | 40 ++ ...etworkInterfaceAttachNotFoundException.php | 40 ++ ...rfaceAttachServiceUnavailableException.php | 40 ++ ...nterfaceAttachTooManyRequestsException.php | 40 ++ ...faceAttachUnprocessableEntityException.php | 40 ++ ...workInterfaceDetachBadRequestException.php | 40 ++ ...tworkInterfaceDetachForbiddenException.php | 30 + ...kInterfaceDetachNotAcceptableException.php | 40 ++ ...etworkInterfaceDetachNotFoundException.php | 40 ++ ...rfaceDetachServiceUnavailableException.php | 40 ++ ...nterfaceDetachTooManyRequestsException.php | 40 ++ ...faceDetachUnprocessableEntityException.php | 40 ++ ...neNetworkInterfacesBadRequestException.php | 40 ++ ...ineNetworkInterfacesForbiddenException.php | 30 + ...etworkInterfacesNotAcceptableException.php | 40 ++ ...hineNetworkInterfacesNotFoundException.php | 30 + ...kInterfacesServiceUnavailableException.php | 40 ++ ...workInterfacesTooManyRequestsException.php | 40 ++ ...InterfacesUnprocessableEntityException.php | 40 ++ ...sListEntriesAddressListEntryDeleteBody.php | 8 - ...ssListEntriesAddressListEntryPatchBody.php | 16 - .../AddressListsAddressListDeleteBody.php | 8 - ...essListsAddressListEntriesBulkPostBody.php | 8 - ...AddressListsAddressListEntriesPostBody.php | 16 - .../AddressListsAddressListPatchBody.php | 16 - .../Model/ApiTokensApiTokenDeleteBody.php | 8 - src/Core/Model/ApiTokensApiTokenPatchBody.php | 16 - ...TokensApiTokenRegenerateSecretPostBody.php | 8 - src/Core/Model/DNSRecordArguments.php | 8 - src/Core/Model/DNSRecordContentArguments.php | 114 +--- ...ctStorageCluster200ResponseTrashObject.php | 75 +++ ...ResponseVirtualMachineNetworkInterface.php | 183 ++++++ ...eVirtualMachineNetworkInterfaceNetwork.php | 58 ++ ...lMachineNetworkInterfaceVirtualNetwork.php | 58 ++ ...MachineNetworkInterfacePartIPAddresses.php | 58 ++ ...tualMachineNetworkInterfacePartNetwork.php | 58 ++ ...achineNetworkInterfacePartSpeedProfile.php | 75 +++ ...hineNetworkInterfacePartVirtualMachine.php | 58 ++ ...hineNetworkInterfacePartVirtualNetwork.php | 58 ++ src/Core/Model/DiskArguments.php | 8 - ...ckupPoliciesDiskBackupPolicyDeleteBody.php | 8 - ...ackupPoliciesDiskBackupPolicyPatchBody.php | 16 - ...ciesDiskBackupPolicyScheduleDeleteBody.php | 8 - src/Core/Model/DiskBackupPolicyArguments.php | 8 - src/Core/Model/DisksDiskAssignPostBody.php | 8 - src/Core/Model/DisksDiskAttachPostBody.php | 8 - src/Core/Model/DisksDiskDeleteBody.php | 8 - src/Core/Model/DisksDiskDetachPostBody.php | 8 - .../DisksDiskDiskBackupPoliciesPostBody.php | 16 - src/Core/Model/DisksDiskIoProfilePutBody.php | 8 - src/Core/Model/DisksDiskPatchBody.php | 16 - src/Core/Model/DisksDiskResizePutBody.php | 8 - src/Core/Model/DisksDiskUnassignPostBody.php | 8 - .../Model/DnsRecordsDnsRecordDeleteBody.php | 8 - .../Model/DnsRecordsDnsRecordPatchBody.php | 16 - src/Core/Model/DnsZonesDnsZonePatchBody.php | 8 - .../Model/DnsZonesDnsZoneRecordsPostBody.php | 8 - ...rageVolumesFileStorageVolumeDeleteBody.php | 8 - ...orageVolumesFileStorageVolumePatchBody.php | 16 - ...ResponseVirtualMachineNetworkInterface.php | 23 +- ...eVirtualMachineNetworkInterfaceNetwork.php | 58 ++ ...lMachineNetworkInterfaceVirtualNetwork.php | 58 ++ .../Model/GetVMNIVMNIPartVirtualNetwork.php | 58 ++ ...ResponseVirtualMachineNetworkInterface.php | 23 +- ...eVirtualMachineNetworkInterfaceNetwork.php | 58 ++ ...lMachineNetworkInterfaceVirtualNetwork.php | 58 ++ ...hineNetworkInterfacePartVirtualNetwork.php | 58 ++ ...esponseVirtualMachineNetworkInterfaces.php | 23 +- ...VirtualMachineNetworkInterfacesNetwork.php | 58 ++ ...MachineNetworkInterfacesVirtualNetwork.php | 58 ++ ...ineNetworkInterfacesPartVirtualNetwork.php | 58 ++ .../LoadBalancersLoadBalancerPatchBody.php | 8 - ...LoadBalancersLoadBalancerRulesPostBody.php | 8 - ...lancersRulesLoadBalancerRuleDeleteBody.php | 8 - ...alancersRulesLoadBalancerRulePatchBody.php | 16 - src/Core/Model/ObjectStorageAccessKey.php | 305 ++++++++++ .../Model/ObjectStorageAccessKeyArguments.php | 124 ++++ .../Model/ObjectStorageAccessKeyLookup.php | 41 ++ ...ctStorageAccessKeysAccessKeyDeleteBody.php | 41 ++ ...geAccessKeysAccessKeyDeleteResponse200.php | 41 ++ ...ysAccessKeyGenerateCredentialsPostBody.php | 41 ++ ...sKeyGenerateCredentialsPostResponse200.php | 49 ++ ...sPostResponse200ObjectStorageAccessKey.php | 305 ++++++++++ ...orageAccessKeysAccessKeyGetResponse200.php | 41 ++ ...ectStorageAccessKeysAccessKeyPatchBody.php | 58 ++ ...ageAccessKeysAccessKeyPatchResponse200.php | 49 ++ ...PatchResponse200ObjectStorageAccessKey.php | 305 ++++++++++ src/Core/Model/ObjectStorageAccount.php | 134 ++++ .../Model/ObjectStorageBucketArguments.php | 8 - ...tStorageClusterBucketsBucketDeleteBody.php | 16 - ...ctStorageClusterBucketsBucketPatchBody.php | 24 - ...usterBucketsBucketPresignedUrlPostBody.php | 24 - ...cketsBucketRevokePresignedUrlsPostBody.php | 16 - .../ObjectStorageProvisioningErrorSchema.php | 81 +++ ...ationsOrganizationAddressListsPostBody.php | 8 - ...nizationsOrganizationApiTokensPostBody.php | 8 - ...OrganizationsOrganizationDisksPostBody.php | 8 - ...anizationsOrganizationDnsZonesPostBody.php | 8 - ...OrganizationFileStorageVolumesPostBody.php | 8 - ...tionsOrganizationLoadBalancersPostBody.php | 8 - ...nObjectStorageAccessKeysGetResponse200.php | 70 +++ ...ObjectStorageClusterAccessKeysPostBody.php | 83 +++ ...torageClusterAccessKeysPostResponse201.php | 41 ++ ...ageObjectStorageClusterBucketsPostBody.php | 16 - ...tStorageObjectStorageClusterDeleteBody.php | 66 ++ ...eObjectStorageClusterDeleteResponse200.php | 58 ++ ...rageObjectStorageClusterGetResponse200.php | 41 ++ ...ectStorageObjectStorageClusterPostBody.php | 66 ++ ...ageObjectStorageClusterPostResponse201.php | 49 ++ ...terPostResponse201ObjectStorageAccount.php | 134 ++++ ...ionsOrganizationSecurityGroupsPostBody.php | 8 - ...ganizationsOrganizationSshKeysPostBody.php | 8 - .../OrganizationsOrganizationTagsPostBody.php | 8 - ...ganizationVirtualMachineGroupsPostBody.php | 8 - ...onsOrganizationVirtualNetworksPostBody.php | 8 - ...ResponseVirtualMachineNetworkInterface.php | 23 +- ...eVirtualMachineNetworkInterfaceNetwork.php | 58 ++ ...lMachineNetworkInterfaceVirtualNetwork.php | 58 ++ ...kInterfaceAllocateIPPartVirtualNetwork.php | 58 ++ ...ResponseVirtualMachineNetworkInterface.php | 183 ++++++ ...eVirtualMachineNetworkInterfaceNetwork.php | 58 ++ ...lMachineNetworkInterfaceVirtualNetwork.php | 58 ++ ...eNetworkInterfaceAttachPartIPAddresses.php | 58 ++ ...chineNetworkInterfaceAttachPartNetwork.php | 58 ++ ...NetworkInterfaceAttachPartSpeedProfile.php | 75 +++ ...tworkInterfaceAttachPartVirtualMachine.php | 58 ++ ...tworkInterfaceAttachPartVirtualNetwork.php | 58 ++ ...ResponseVirtualMachineNetworkInterface.php | 183 ++++++ ...eVirtualMachineNetworkInterfaceNetwork.php | 58 ++ ...lMachineNetworkInterfaceVirtualNetwork.php | 58 ++ ...eNetworkInterfaceDetachPartIPAddresses.php | 58 ++ ...chineNetworkInterfaceDetachPartNetwork.php | 58 ++ ...NetworkInterfaceDetachPartSpeedProfile.php | 75 +++ ...tworkInterfaceDetachPartVirtualMachine.php | 58 ++ ...tworkInterfaceDetachPartVirtualNetwork.php | 58 ++ ...ResponseVirtualMachineNetworkInterface.php | 183 ++++++ ...eVirtualMachineNetworkInterfaceNetwork.php | 58 ++ ...lMachineNetworkInterfaceVirtualNetwork.php | 58 ++ ...achineNetworkInterfacesPartIPAddresses.php | 58 ++ ...ualMachineNetworkInterfacesPartNetwork.php | 58 ++ ...chineNetworkInterfacesPartSpeedProfile.php | 75 +++ ...ineNetworkInterfacesPartVirtualMachine.php | 58 ++ ...ineNetworkInterfacesPartVirtualNetwork.php | 58 ++ ...ObjectStorageAccessKeyNotFoundResponse.php | 81 +++ ...ObjectStorageProvisioningErrorResponse.php | 81 +++ ...etworkInterfaceAlreadyAttachedResponse.php | 81 +++ ...etworkInterfaceAlreadyDetachedResponse.php | 81 +++ ...GroupsRulesSecurityGroupRuleDeleteBody.php | 8 - ...yGroupsRulesSecurityGroupRulePatchBody.php | 16 - .../SecurityGroupsSecurityGroupDeleteBody.php | 8 - .../SecurityGroupsSecurityGroupPatchBody.php | 16 - ...curityGroupsSecurityGroupRulesPostBody.php | 16 - src/Core/Model/SshKeysSshKeyDeleteBody.php | 8 - src/Core/Model/TagsTagDeleteBody.php | 8 - src/Core/Model/TagsTagPatchBody.php | 16 - src/Core/Model/VirtualMachineArguments.php | 8 - ...ineGroupsVirtualMachineGroupDeleteBody.php | 8 - ...hineGroupsVirtualMachineGroupPatchBody.php | 16 - ...hineNetworkInterfaceAllocateIpPostBody.php | 8 - ...ponse200VirtualMachineNetworkInterface.php | 23 +- ...eNetworkInterfaceAllocateNewIpPostBody.php | 8 - ...lMachineNetworkInterfaceAttachPostBody.php | 41 ++ ...eNetworkInterfaceAttachPostResponse200.php | 66 ++ ...ponse200VirtualMachineNetworkInterface.php | 183 ++++++ ...rtualMachineNetworkInterfaceDeleteBody.php | 41 ++ ...chineNetworkInterfaceDeleteResponse200.php | 49 ++ ...ponse200VirtualMachineNetworkInterface.php | 183 ++++++ ...lMachineNetworkInterfaceDetachPostBody.php | 41 ++ ...eNetworkInterfaceDetachPostResponse200.php | 66 ++ ...ponse200VirtualMachineNetworkInterface.php | 183 ++++++ ...ponse200VirtualMachineNetworkInterface.php | 23 +- ...rkInterfaceUpdateSpeedProfilePatchBody.php | 8 - ...rtualMachineDiskBackupPoliciesPostBody.php | 8 - ...VirtualMachineFlexibleResourcesPutBody.php | 8 - ...irtualMachineNetworkInterfacesPostBody.php | 116 ++++ ...achineNetworkInterfacesPostResponse200.php | 49 ++ ...ponse200VirtualMachineNetworkInterface.php | 183 ++++++ ...ponse200VirtualMachineNetworkInterface.php | 23 +- ...VirtualMachinesVirtualMachinePatchBody.php | 8 - .../Model/VirtualNetworkNotFoundSchema.php | 81 +++ ...irtualNetworksVirtualNetworkDeleteBody.php | 8 - ...VirtualNetworksVirtualNetworkPatchBody.php | 16 - .../DNSRecordContentArgumentsNormalizer.php | 48 +- ...luster200ResponseTrashObjectNormalizer.php | 181 ++++++ ...chineNetworkInterfaceNetworkNormalizer.php | 167 +++++ ...rtualMachineNetworkInterfaceNormalizer.php | 289 +++++++++ ...tworkInterfaceVirtualNetworkNormalizer.php | 167 +++++ ...workInterfacePartIPAddressesNormalizer.php | 167 +++++ ...eNetworkInterfacePartNetworkNormalizer.php | 167 +++++ ...orkInterfacePartSpeedProfileNormalizer.php | 181 ++++++ ...kInterfacePartVirtualMachineNormalizer.php | 167 +++++ ...kInterfacePartVirtualNetworkNormalizer.php | 167 +++++ ...chineNetworkInterfaceNetworkNormalizer.php | 167 +++++ ...rtualMachineNetworkInterfaceNormalizer.php | 30 +- ...tworkInterfaceVirtualNetworkNormalizer.php | 167 +++++ ...etVMNIVMNIPartVirtualNetworkNormalizer.php | 167 +++++ ...chineNetworkInterfaceNetworkNormalizer.php | 167 +++++ ...rtualMachineNetworkInterfaceNormalizer.php | 30 +- ...tworkInterfaceVirtualNetworkNormalizer.php | 167 +++++ ...kInterfacePartVirtualNetworkNormalizer.php | 167 +++++ ...hineNetworkInterfacesNetworkNormalizer.php | 167 +++++ ...tualMachineNetworkInterfacesNormalizer.php | 30 +- ...workInterfacesVirtualNetworkNormalizer.php | 167 +++++ ...InterfacesPartVirtualNetworkNormalizer.php | 167 +++++ src/Core/Normalizer/JaneObjectNormalizer.php | 574 +++++++++++++++++- ...ectStorageAccessKeyArgumentsNormalizer.php | 191 ++++++ ...ObjectStorageAccessKeyLookupNormalizer.php | 153 +++++ .../ObjectStorageAccessKeyNormalizer.php | 365 +++++++++++ ...ccessKeysAccessKeyDeleteBodyNormalizer.php | 149 +++++ ...ysAccessKeyDeleteResponse200Normalizer.php | 149 +++++ ...yGenerateCredentialsPostBodyNormalizer.php | 149 +++++ ...teCredentialsPostResponse200Normalizer.php | 149 +++++ ...nse200ObjectStorageAccessKeyNormalizer.php | 365 +++++++++++ ...sKeysAccessKeyGetResponse200Normalizer.php | 149 +++++ ...AccessKeysAccessKeyPatchBodyNormalizer.php | 159 +++++ ...eysAccessKeyPatchResponse200Normalizer.php | 149 +++++ ...nse200ObjectStorageAccessKeyNormalizer.php | 365 +++++++++++ .../ObjectStorageAccountNormalizer.php | 223 +++++++ ...orageProvisioningErrorSchemaNormalizer.php | 197 ++++++ ...rageAccessKeysGetResponse200Normalizer.php | 175 ++++++ ...ageClusterAccessKeysPostBodyNormalizer.php | 169 ++++++ ...terAccessKeysPostResponse201Normalizer.php | 149 +++++ ...jectStorageClusterDeleteBodyNormalizer.php | 159 +++++ ...rageClusterDeleteResponse200Normalizer.php | 159 +++++ ...StorageClusterGetResponse200Normalizer.php | 149 +++++ ...ObjectStorageClusterPostBodyNormalizer.php | 159 +++++ ...torageClusterPostResponse201Normalizer.php | 149 +++++ ...ponse201ObjectStorageAccountNormalizer.php | 223 +++++++ ...chineNetworkInterfaceNetworkNormalizer.php | 167 +++++ ...rtualMachineNetworkInterfaceNormalizer.php | 30 +- ...tworkInterfaceVirtualNetworkNormalizer.php | 167 +++++ ...AllocateIPPartVirtualNetworkNormalizer.php | 167 +++++ ...chineNetworkInterfaceNetworkNormalizer.php | 167 +++++ ...rtualMachineNetworkInterfaceNormalizer.php | 289 +++++++++ ...tworkInterfaceVirtualNetworkNormalizer.php | 167 +++++ ...terfaceAttachPartIPAddressesNormalizer.php | 167 +++++ ...rkInterfaceAttachPartNetworkNormalizer.php | 167 +++++ ...erfaceAttachPartSpeedProfileNormalizer.php | 181 ++++++ ...faceAttachPartVirtualMachineNormalizer.php | 167 +++++ ...faceAttachPartVirtualNetworkNormalizer.php | 167 +++++ ...chineNetworkInterfaceNetworkNormalizer.php | 167 +++++ ...rtualMachineNetworkInterfaceNormalizer.php | 289 +++++++++ ...tworkInterfaceVirtualNetworkNormalizer.php | 167 +++++ ...terfaceDetachPartIPAddressesNormalizer.php | 167 +++++ ...rkInterfaceDetachPartNetworkNormalizer.php | 167 +++++ ...erfaceDetachPartSpeedProfileNormalizer.php | 181 ++++++ ...faceDetachPartVirtualMachineNormalizer.php | 167 +++++ ...faceDetachPartVirtualNetworkNormalizer.php | 167 +++++ ...chineNetworkInterfaceNetworkNormalizer.php | 167 +++++ ...rtualMachineNetworkInterfaceNormalizer.php | 289 +++++++++ ...tworkInterfaceVirtualNetworkNormalizer.php | 167 +++++ ...orkInterfacesPartIPAddressesNormalizer.php | 167 +++++ ...NetworkInterfacesPartNetworkNormalizer.php | 167 +++++ ...rkInterfacesPartSpeedProfileNormalizer.php | 181 ++++++ ...InterfacesPartVirtualMachineNormalizer.php | 167 +++++ ...InterfacesPartVirtualNetworkNormalizer.php | 167 +++++ ...ageAccessKeyNotFoundResponseNormalizer.php | 197 ++++++ ...ageProvisioningErrorResponseNormalizer.php | 197 ++++++ ...rfaceAlreadyAttachedResponseNormalizer.php | 197 ++++++ ...rfaceAlreadyDetachedResponseNormalizer.php | 197 ++++++ ...rtualMachineNetworkInterfaceNormalizer.php | 30 +- ...tworkInterfaceAttachPostBodyNormalizer.php | 149 +++++ ...terfaceAttachPostResponse200Normalizer.php | 159 +++++ ...rtualMachineNetworkInterfaceNormalizer.php | 289 +++++++++ ...neNetworkInterfaceDeleteBodyNormalizer.php | 149 +++++ ...rkInterfaceDeleteResponse200Normalizer.php | 149 +++++ ...rtualMachineNetworkInterfaceNormalizer.php | 289 +++++++++ ...tworkInterfaceDetachPostBodyNormalizer.php | 149 +++++ ...terfaceDetachPostResponse200Normalizer.php | 159 +++++ ...rtualMachineNetworkInterfaceNormalizer.php | 289 +++++++++ ...rtualMachineNetworkInterfaceNormalizer.php | 30 +- ...ineNetworkInterfacesPostBodyNormalizer.php | 187 ++++++ ...orkInterfacesPostResponse200Normalizer.php | 149 +++++ ...rtualMachineNetworkInterfaceNormalizer.php | 289 +++++++++ ...rtualMachineNetworkInterfaceNormalizer.php | 30 +- ...VirtualNetworkNotFoundSchemaNormalizer.php | 197 ++++++ src/Public/Client.php | 2 +- src/Public/Endpoint/PostSignups.php | 2 +- src/Public/Model/SignupsPostBody.php | 33 +- src/Public/Model/SignupsPostResponse200.php | 31 +- .../Normalizer/SignupsPostBodyNormalizer.php | 22 +- .../SignupsPostResponse200Normalizer.php | 22 +- 397 files changed, 28838 insertions(+), 1212 deletions(-) create mode 100644 src/Core/Endpoint/DeleteObjectStorageAccessKey.php create mode 100644 src/Core/Endpoint/DeleteOrganizationObjectStorageObjectStorageCluster.php create mode 100644 src/Core/Endpoint/DeleteVirtualMachineNetworkInterface.php create mode 100644 src/Core/Endpoint/GetObjectStorageAccessKey.php create mode 100644 src/Core/Endpoint/GetOrganizationObjectStorageAccessKeys.php create mode 100644 src/Core/Endpoint/GetOrganizationObjectStorageObjectStorageCluster.php create mode 100644 src/Core/Endpoint/PatchObjectStorageAccessKey.php create mode 100644 src/Core/Endpoint/PostObjectStorageAccessKeyGenerateCredentials.php create mode 100644 src/Core/Endpoint/PostOrganizationObjectStorageObjectStorageCluster.php create mode 100644 src/Core/Endpoint/PostOrganizationObjectStorageObjectStorageClusterAccessKeys.php create mode 100644 src/Core/Endpoint/PostVirtualMachineNetworkInterfaceAttach.php create mode 100644 src/Core/Endpoint/PostVirtualMachineNetworkInterfaceDetach.php create mode 100644 src/Core/Endpoint/PostVirtualMachineNetworkInterfaces.php create mode 100644 src/Core/Exception/DeleteObjectStorageAccessKeyBadRequestException.php create mode 100644 src/Core/Exception/DeleteObjectStorageAccessKeyForbiddenException.php create mode 100644 src/Core/Exception/DeleteObjectStorageAccessKeyGatewayTimeoutException.php create mode 100644 src/Core/Exception/DeleteObjectStorageAccessKeyNotFoundException.php create mode 100644 src/Core/Exception/DeleteObjectStorageAccessKeyServiceUnavailableException.php create mode 100644 src/Core/Exception/DeleteObjectStorageAccessKeyTooManyRequestsException.php create mode 100644 src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterBadRequestException.php create mode 100644 src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterForbiddenException.php create mode 100644 src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterNotAcceptableException.php create mode 100644 src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterNotFoundException.php create mode 100644 src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterServiceUnavailableException.php create mode 100644 src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterTooManyRequestsException.php create mode 100644 src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterUnprocessableEntityException.php create mode 100644 src/Core/Exception/DeleteVirtualMachineNetworkInterfaceBadRequestException.php create mode 100644 src/Core/Exception/DeleteVirtualMachineNetworkInterfaceConflictException.php create mode 100644 src/Core/Exception/DeleteVirtualMachineNetworkInterfaceForbiddenException.php create mode 100644 src/Core/Exception/DeleteVirtualMachineNetworkInterfaceNotFoundException.php create mode 100644 src/Core/Exception/DeleteVirtualMachineNetworkInterfaceServiceUnavailableException.php create mode 100644 src/Core/Exception/DeleteVirtualMachineNetworkInterfaceTooManyRequestsException.php create mode 100644 src/Core/Exception/DeleteVirtualMachineNetworkInterfaceUnprocessableEntityException.php create mode 100644 src/Core/Exception/GetObjectStorageAccessKeyBadRequestException.php create mode 100644 src/Core/Exception/GetObjectStorageAccessKeyForbiddenException.php create mode 100644 src/Core/Exception/GetObjectStorageAccessKeyNotFoundException.php create mode 100644 src/Core/Exception/GetObjectStorageAccessKeyServiceUnavailableException.php create mode 100644 src/Core/Exception/GetObjectStorageAccessKeyTooManyRequestsException.php create mode 100644 src/Core/Exception/GetOrganizationObjectStorageAccessKeysBadRequestException.php create mode 100644 src/Core/Exception/GetOrganizationObjectStorageAccessKeysForbiddenException.php create mode 100644 src/Core/Exception/GetOrganizationObjectStorageAccessKeysNotFoundException.php create mode 100644 src/Core/Exception/GetOrganizationObjectStorageAccessKeysServiceUnavailableException.php create mode 100644 src/Core/Exception/GetOrganizationObjectStorageAccessKeysTooManyRequestsException.php create mode 100644 src/Core/Exception/GetOrganizationObjectStorageObjectStorageClusterBadRequestException.php create mode 100644 src/Core/Exception/GetOrganizationObjectStorageObjectStorageClusterForbiddenException.php create mode 100644 src/Core/Exception/GetOrganizationObjectStorageObjectStorageClusterNotAcceptableException.php create mode 100644 src/Core/Exception/GetOrganizationObjectStorageObjectStorageClusterNotFoundException.php create mode 100644 src/Core/Exception/GetOrganizationObjectStorageObjectStorageClusterServiceUnavailableException.php create mode 100644 src/Core/Exception/GetOrganizationObjectStorageObjectStorageClusterTooManyRequestsException.php create mode 100644 src/Core/Exception/PatchObjectStorageAccessKeyBadRequestException.php create mode 100644 src/Core/Exception/PatchObjectStorageAccessKeyForbiddenException.php create mode 100644 src/Core/Exception/PatchObjectStorageAccessKeyNotAcceptableException.php create mode 100644 src/Core/Exception/PatchObjectStorageAccessKeyNotFoundException.php create mode 100644 src/Core/Exception/PatchObjectStorageAccessKeyServiceUnavailableException.php create mode 100644 src/Core/Exception/PatchObjectStorageAccessKeyTooManyRequestsException.php create mode 100644 src/Core/Exception/PatchObjectStorageAccessKeyUnprocessableEntityException.php create mode 100644 src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsBadRequestException.php create mode 100644 src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsForbiddenException.php create mode 100644 src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsNotAcceptableException.php create mode 100644 src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsNotFoundException.php create mode 100644 src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsServiceUnavailableException.php create mode 100644 src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsTooManyRequestsException.php create mode 100644 src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsUnprocessableEntityException.php create mode 100644 src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysBadRequestException.php create mode 100644 src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysForbiddenException.php create mode 100644 src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysNotAcceptableException.php create mode 100644 src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysNotFoundException.php create mode 100644 src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysServiceUnavailableException.php create mode 100644 src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysTooManyRequestsException.php create mode 100644 src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysUnprocessableEntityException.php create mode 100644 src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterBadRequestException.php create mode 100644 src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterForbiddenException.php create mode 100644 src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterNotAcceptableException.php create mode 100644 src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterNotFoundException.php create mode 100644 src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterServiceUnavailableException.php create mode 100644 src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterTooManyRequestsException.php create mode 100644 src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterUnprocessableEntityException.php create mode 100644 src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachBadRequestException.php create mode 100644 src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachForbiddenException.php create mode 100644 src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachNotAcceptableException.php create mode 100644 src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachNotFoundException.php create mode 100644 src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachServiceUnavailableException.php create mode 100644 src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachTooManyRequestsException.php create mode 100644 src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachUnprocessableEntityException.php create mode 100644 src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachBadRequestException.php create mode 100644 src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachForbiddenException.php create mode 100644 src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachNotAcceptableException.php create mode 100644 src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachNotFoundException.php create mode 100644 src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachServiceUnavailableException.php create mode 100644 src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachTooManyRequestsException.php create mode 100644 src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachUnprocessableEntityException.php create mode 100644 src/Core/Exception/PostVirtualMachineNetworkInterfacesBadRequestException.php create mode 100644 src/Core/Exception/PostVirtualMachineNetworkInterfacesForbiddenException.php create mode 100644 src/Core/Exception/PostVirtualMachineNetworkInterfacesNotAcceptableException.php create mode 100644 src/Core/Exception/PostVirtualMachineNetworkInterfacesNotFoundException.php create mode 100644 src/Core/Exception/PostVirtualMachineNetworkInterfacesServiceUnavailableException.php create mode 100644 src/Core/Exception/PostVirtualMachineNetworkInterfacesTooManyRequestsException.php create mode 100644 src/Core/Exception/PostVirtualMachineNetworkInterfacesUnprocessableEntityException.php create mode 100644 src/Core/Model/DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObject.php create mode 100644 src/Core/Model/DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface.php create mode 100644 src/Core/Model/DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork.php create mode 100644 src/Core/Model/DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php create mode 100644 src/Core/Model/DeleteVirtualMachineNetworkInterfacePartIPAddresses.php create mode 100644 src/Core/Model/DeleteVirtualMachineNetworkInterfacePartNetwork.php create mode 100644 src/Core/Model/DeleteVirtualMachineNetworkInterfacePartSpeedProfile.php create mode 100644 src/Core/Model/DeleteVirtualMachineNetworkInterfacePartVirtualMachine.php create mode 100644 src/Core/Model/DeleteVirtualMachineNetworkInterfacePartVirtualNetwork.php create mode 100644 src/Core/Model/GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork.php create mode 100644 src/Core/Model/GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php create mode 100644 src/Core/Model/GetVMNIVMNIPartVirtualNetwork.php create mode 100644 src/Core/Model/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork.php create mode 100644 src/Core/Model/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php create mode 100644 src/Core/Model/GetVirtualMachineNetworkInterfacePartVirtualNetwork.php create mode 100644 src/Core/Model/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetwork.php create mode 100644 src/Core/Model/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetwork.php create mode 100644 src/Core/Model/GetVirtualMachineNetworkInterfacesPartVirtualNetwork.php create mode 100644 src/Core/Model/ObjectStorageAccessKey.php create mode 100644 src/Core/Model/ObjectStorageAccessKeyArguments.php create mode 100644 src/Core/Model/ObjectStorageAccessKeyLookup.php create mode 100644 src/Core/Model/ObjectStorageAccessKeysAccessKeyDeleteBody.php create mode 100644 src/Core/Model/ObjectStorageAccessKeysAccessKeyDeleteResponse200.php create mode 100644 src/Core/Model/ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBody.php create mode 100644 src/Core/Model/ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200.php create mode 100644 src/Core/Model/ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKey.php create mode 100644 src/Core/Model/ObjectStorageAccessKeysAccessKeyGetResponse200.php create mode 100644 src/Core/Model/ObjectStorageAccessKeysAccessKeyPatchBody.php create mode 100644 src/Core/Model/ObjectStorageAccessKeysAccessKeyPatchResponse200.php create mode 100644 src/Core/Model/ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKey.php create mode 100644 src/Core/Model/ObjectStorageAccount.php create mode 100644 src/Core/Model/ObjectStorageProvisioningErrorSchema.php create mode 100644 src/Core/Model/OrganizationsOrganizationObjectStorageAccessKeysGetResponse200.php create mode 100644 src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBody.php create mode 100644 src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201.php create mode 100644 src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBody.php create mode 100644 src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200.php create mode 100644 src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200.php create mode 100644 src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterPostBody.php create mode 100644 src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201.php create mode 100644 src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccount.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualNetwork.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterface.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfaceAttachPartIPAddresses.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfaceAttachPartNetwork.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfaceAttachPartVirtualNetwork.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterface.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfaceDetachPartIPAddresses.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfaceDetachPartNetwork.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfaceDetachPartVirtualNetwork.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterface.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfacesPartIPAddresses.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfacesPartNetwork.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfacesPartSpeedProfile.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfacesPartVirtualMachine.php create mode 100644 src/Core/Model/PostVirtualMachineNetworkInterfacesPartVirtualNetwork.php create mode 100644 src/Core/Model/ResponseObjectStorageAccessKeyNotFoundResponse.php create mode 100644 src/Core/Model/ResponseObjectStorageProvisioningErrorResponse.php create mode 100644 src/Core/Model/ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponse.php create mode 100644 src/Core/Model/ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponse.php create mode 100644 src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBody.php create mode 100644 src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200.php create mode 100644 src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterface.php create mode 100644 src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBody.php create mode 100644 src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200.php create mode 100644 src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterface.php create mode 100644 src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBody.php create mode 100644 src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200.php create mode 100644 src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterface.php create mode 100644 src/Core/Model/VirtualMachinesVirtualMachineNetworkInterfacesPostBody.php create mode 100644 src/Core/Model/VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200.php create mode 100644 src/Core/Model/VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterface.php create mode 100644 src/Core/Model/VirtualNetworkNotFoundSchema.php create mode 100644 src/Core/Normalizer/DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObjectNormalizer.php create mode 100644 src/Core/Normalizer/DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php create mode 100644 src/Core/Normalizer/DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNormalizer.php create mode 100644 src/Core/Normalizer/DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php create mode 100644 src/Core/Normalizer/DeleteVirtualMachineNetworkInterfacePartIPAddressesNormalizer.php create mode 100644 src/Core/Normalizer/DeleteVirtualMachineNetworkInterfacePartNetworkNormalizer.php create mode 100644 src/Core/Normalizer/DeleteVirtualMachineNetworkInterfacePartSpeedProfileNormalizer.php create mode 100644 src/Core/Normalizer/DeleteVirtualMachineNetworkInterfacePartVirtualMachineNormalizer.php create mode 100644 src/Core/Normalizer/DeleteVirtualMachineNetworkInterfacePartVirtualNetworkNormalizer.php create mode 100644 src/Core/Normalizer/GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php create mode 100644 src/Core/Normalizer/GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php create mode 100644 src/Core/Normalizer/GetVMNIVMNIPartVirtualNetworkNormalizer.php create mode 100644 src/Core/Normalizer/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php create mode 100644 src/Core/Normalizer/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php create mode 100644 src/Core/Normalizer/GetVirtualMachineNetworkInterfacePartVirtualNetworkNormalizer.php create mode 100644 src/Core/Normalizer/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetworkNormalizer.php create mode 100644 src/Core/Normalizer/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetworkNormalizer.php create mode 100644 src/Core/Normalizer/GetVirtualMachineNetworkInterfacesPartVirtualNetworkNormalizer.php create mode 100644 src/Core/Normalizer/ObjectStorageAccessKeyArgumentsNormalizer.php create mode 100644 src/Core/Normalizer/ObjectStorageAccessKeyLookupNormalizer.php create mode 100644 src/Core/Normalizer/ObjectStorageAccessKeyNormalizer.php create mode 100644 src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyDeleteBodyNormalizer.php create mode 100644 src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyDeleteResponse200Normalizer.php create mode 100644 src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBodyNormalizer.php create mode 100644 src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200Normalizer.php create mode 100644 src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKeyNormalizer.php create mode 100644 src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyGetResponse200Normalizer.php create mode 100644 src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyPatchBodyNormalizer.php create mode 100644 src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyPatchResponse200Normalizer.php create mode 100644 src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKeyNormalizer.php create mode 100644 src/Core/Normalizer/ObjectStorageAccountNormalizer.php create mode 100644 src/Core/Normalizer/ObjectStorageProvisioningErrorSchemaNormalizer.php create mode 100644 src/Core/Normalizer/OrganizationsOrganizationObjectStorageAccessKeysGetResponse200Normalizer.php create mode 100644 src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBodyNormalizer.php create mode 100644 src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201Normalizer.php create mode 100644 src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBodyNormalizer.php create mode 100644 src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200Normalizer.php create mode 100644 src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200Normalizer.php create mode 100644 src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterPostBodyNormalizer.php create mode 100644 src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201Normalizer.php create mode 100644 src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccountNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualNetworkNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttachPartIPAddressesNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttachPartNetworkNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttachPartSpeedProfileNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttachPartVirtualMachineNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttachPartVirtualNetworkNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetachPartIPAddressesNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetachPartNetworkNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetachPartSpeedProfileNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetachPartVirtualMachineNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetachPartVirtualNetworkNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfacesPartIPAddressesNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfacesPartNetworkNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfacesPartSpeedProfileNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfacesPartVirtualMachineNormalizer.php create mode 100644 src/Core/Normalizer/PostVirtualMachineNetworkInterfacesPartVirtualNetworkNormalizer.php create mode 100644 src/Core/Normalizer/ResponseObjectStorageAccessKeyNotFoundResponseNormalizer.php create mode 100644 src/Core/Normalizer/ResponseObjectStorageProvisioningErrorResponseNormalizer.php create mode 100644 src/Core/Normalizer/ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponseNormalizer.php create mode 100644 src/Core/Normalizer/ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponseNormalizer.php create mode 100644 src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBodyNormalizer.php create mode 100644 src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200Normalizer.php create mode 100644 src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterfaceNormalizer.php create mode 100644 src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBodyNormalizer.php create mode 100644 src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200Normalizer.php create mode 100644 src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterfaceNormalizer.php create mode 100644 src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBodyNormalizer.php create mode 100644 src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200Normalizer.php create mode 100644 src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterfaceNormalizer.php create mode 100644 src/Core/Normalizer/VirtualMachinesVirtualMachineNetworkInterfacesPostBodyNormalizer.php create mode 100644 src/Core/Normalizer/VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200Normalizer.php create mode 100644 src/Core/Normalizer/VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterfaceNormalizer.php create mode 100644 src/Core/Normalizer/VirtualNetworkNotFoundSchemaNormalizer.php diff --git a/src/Core/Client.php b/src/Core/Client.php index 7896114b..81af6cfc 100644 --- a/src/Core/Client.php +++ b/src/Core/Client.php @@ -31,13 +31,9 @@ class Client extends Runtime\Client\Client * All 'organization[]' params are mutually exclusive, only one can be provided. * @var array $annotations[][key] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var array $annotations[][value] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var int $page The page number to request. If not provided, the first page will be returned. * @var int $per_page The number of items to return per page. If not provided, the default value will be used. @@ -155,25 +151,185 @@ public function postApiTokenRegenerateSecret(?Model\ApiTokensApiTokenRegenerateS } /** - * Returns a list of all address list entries for a given address list + * Create a new access key in an object storage account * ## Scopes - * - `address_lists` - * - `address_lists:read`. + * - `object_storage`. + * + * ### OAuth2 Scopes + * When using OAuth2 authentication, scopes are prefixed with `api.katapult.io/core/v1/`. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostOrganizationObjectStorageObjectStorageClusterAccessKeysBadRequestException + * @throws Exception\PostOrganizationObjectStorageObjectStorageClusterAccessKeysForbiddenException + * @throws Exception\PostOrganizationObjectStorageObjectStorageClusterAccessKeysNotFoundException + * @throws Exception\PostOrganizationObjectStorageObjectStorageClusterAccessKeysNotAcceptableException + * @throws Exception\PostOrganizationObjectStorageObjectStorageClusterAccessKeysUnprocessableEntityException + * @throws Exception\PostOrganizationObjectStorageObjectStorageClusterAccessKeysTooManyRequestsException + * @throws Exception\PostOrganizationObjectStorageObjectStorageClusterAccessKeysServiceUnavailableException + */ + public function postOrganizationObjectStorageObjectStorageClusterAccessKeys(?Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostOrganizationObjectStorageObjectStorageClusterAccessKeys($requestBody), $fetch); + } + + /** + * Returns a list of all object storage access keys for a given organization + * ## Scopes + * - `object_storage`. * * ### OAuth2 Scopes * When using OAuth2 authentication, scopes are prefixed with `api.katapult.io/core/v1/`. * * @param array $queryParameters { * - * @var string $address_list[id] The address list for which the entries should be returned. + * @var string $organization[id] The organization to return access keys for. + * + * All 'organization[]' params are mutually exclusive, only one can be provided. + * @var string $organization[sub_domain] The organization to return access keys for. * - * All 'address_list[]' params are mutually exclusive, only one can be provided. + * All 'organization[]' params are mutually exclusive, only one can be provided. * @var int $page The page number to request. If not provided, the first page will be returned. * @var int $per_page The number of items to return per page. If not provided, the default value will be used. * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * + * @return Model\OrganizationsOrganizationObjectStorageAccessKeysGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationObjectStorageAccessKeysBadRequestException + * @throws Exception\GetOrganizationObjectStorageAccessKeysForbiddenException + * @throws Exception\GetOrganizationObjectStorageAccessKeysNotFoundException + * @throws Exception\GetOrganizationObjectStorageAccessKeysTooManyRequestsException + * @throws Exception\GetOrganizationObjectStorageAccessKeysServiceUnavailableException + */ + public function getOrganizationObjectStorageAccessKeys(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationObjectStorageAccessKeys($queryParameters), $fetch); + } + + /** + * Returns new S3 credentials for an object storage access key. Existing credentials cannot be retrieved. Credentials may take a few minutes to become active. + * ## Scopes + * - `object_storage`. + * + * ### OAuth2 Scopes + * When using OAuth2 authentication, scopes are prefixed with `api.katapult.io/core/v1/`. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostObjectStorageAccessKeyGenerateCredentialsBadRequestException + * @throws Exception\PostObjectStorageAccessKeyGenerateCredentialsForbiddenException + * @throws Exception\PostObjectStorageAccessKeyGenerateCredentialsNotFoundException + * @throws Exception\PostObjectStorageAccessKeyGenerateCredentialsNotAcceptableException + * @throws Exception\PostObjectStorageAccessKeyGenerateCredentialsUnprocessableEntityException + * @throws Exception\PostObjectStorageAccessKeyGenerateCredentialsTooManyRequestsException + * @throws Exception\PostObjectStorageAccessKeyGenerateCredentialsServiceUnavailableException + */ + public function postObjectStorageAccessKeyGenerateCredentials(?Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostObjectStorageAccessKeyGenerateCredentials($requestBody), $fetch); + } + + /** + * Delete an object storage access key + * ## Scopes + * - `object_storage`. + * + * ### OAuth2 Scopes + * When using OAuth2 authentication, scopes are prefixed with `api.katapult.io/core/v1/`. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ObjectStorageAccessKeysAccessKeyDeleteResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteObjectStorageAccessKeyBadRequestException + * @throws Exception\DeleteObjectStorageAccessKeyForbiddenException + * @throws Exception\DeleteObjectStorageAccessKeyNotFoundException + * @throws Exception\DeleteObjectStorageAccessKeyTooManyRequestsException + * @throws Exception\DeleteObjectStorageAccessKeyServiceUnavailableException + * @throws Exception\DeleteObjectStorageAccessKeyGatewayTimeoutException + */ + public function deleteObjectStorageAccessKey(?Model\ObjectStorageAccessKeysAccessKeyDeleteBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteObjectStorageAccessKey($requestBody), $fetch); + } + + /** + * Returns object storage access key details. + * ## Scopes + * - `object_storage`. + * + * ### OAuth2 Scopes + * When using OAuth2 authentication, scopes are prefixed with `api.katapult.io/core/v1/`. + * + * @param array $queryParameters { + * + * @var string $access_key[id] The object storage access key to find. + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ObjectStorageAccessKeysAccessKeyGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetObjectStorageAccessKeyBadRequestException + * @throws Exception\GetObjectStorageAccessKeyForbiddenException + * @throws Exception\GetObjectStorageAccessKeyNotFoundException + * @throws Exception\GetObjectStorageAccessKeyTooManyRequestsException + * @throws Exception\GetObjectStorageAccessKeyServiceUnavailableException + */ + public function getObjectStorageAccessKey(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetObjectStorageAccessKey($queryParameters), $fetch); + } + + /** + * Updates an object storage access key with new properties + * ## Scopes + * - `object_storage`. + * + * ### OAuth2 Scopes + * When using OAuth2 authentication, scopes are prefixed with `api.katapult.io/core/v1/`. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\ObjectStorageAccessKeysAccessKeyPatchResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PatchObjectStorageAccessKeyBadRequestException + * @throws Exception\PatchObjectStorageAccessKeyForbiddenException + * @throws Exception\PatchObjectStorageAccessKeyNotFoundException + * @throws Exception\PatchObjectStorageAccessKeyNotAcceptableException + * @throws Exception\PatchObjectStorageAccessKeyUnprocessableEntityException + * @throws Exception\PatchObjectStorageAccessKeyTooManyRequestsException + * @throws Exception\PatchObjectStorageAccessKeyServiceUnavailableException + */ + public function patchObjectStorageAccessKey(?Model\ObjectStorageAccessKeysAccessKeyPatchBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PatchObjectStorageAccessKey($requestBody), $fetch); + } + + /** + * Returns a list of all address list entries for a given address list + * ## Scopes + * - `address_lists` + * - `address_lists:read`. + * + * ### OAuth2 Scopes + * When using OAuth2 authentication, scopes are prefixed with `api.katapult.io/core/v1/`. + * + * @param array $queryParameters { + * + * @var string $address_list[id] The address list for which the entries should be returned + * @var int $page The page number to request. If not provided, the first page will be returned. + * @var int $per_page The number of items to return per page. If not provided, the default value will be used. + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * * @return Model\AddressListsAddressListEntriesGetResponse200|\Psr\Http\Message\ResponseInterface|null * * @throws Exception\GetAddressListEntriesBadRequestException @@ -246,9 +402,7 @@ public function deleteAddressListEntry(?Model\AddressListEntriesAddressListEntry * @param array $queryParameters { * * @var string $address_list_entry[id] The address list entry to return. - * - * All 'address_list_entry[]' params are mutually exclusive, only one can be provided. - * } + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -361,13 +515,9 @@ public function getAddressLists(array $queryParameters = [], string $fetch = sel * All 'organization[]' params are mutually exclusive, only one can be provided. * @var array $annotations[][key] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var array $annotations[][value] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var int $page The page number to request. If not provided, the first page will be returned. * @var int $per_page The number of items to return per page. If not provided, the default value will be used. @@ -447,9 +597,7 @@ public function deleteAddressList(?Model\AddressListsAddressListDeleteBody $requ * @param array $queryParameters { * * @var string $address_list[id] The address list to return. - * - * All 'address_list[]' params are mutually exclusive, only one can be provided. - * } + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -551,13 +699,9 @@ public function deleteObjectStorageObjectStorageClusterBucket(?Model\ObjectStora * * @param array $queryParameters { * - * @var string $object_storage_cluster[region] The object storage cluster region for the bucket. - * - * All 'object_storage_cluster[]' params are mutually exclusive, only one can be provided. + * @var string $object_storage_cluster[region] The object storage cluster region for the bucket * @var string $bucket[name] The name of the object storage bucket. - * - * All 'bucket[]' params are mutually exclusive, only one can be provided. - * } + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -638,12 +782,8 @@ public function postObjectStorageObjectStorageClusterBucketRevokePresignedUrls(? * * @param array $queryParameters { * - * @var string $object_storage_cluster[region] The object storage cluster region for the bucket. - * - * All 'object_storage_cluster[]' params are mutually exclusive, only one can be provided. - * @var string $bucket[name] The name of the object storage bucket. - * - * All 'bucket[]' params are mutually exclusive, only one can be provided. + * @var string $object_storage_cluster[region] The object storage cluster region for the bucket + * @var string $bucket[name] The name of the object storage bucket * @var string $path The name or path for the object * } * @@ -751,7 +891,7 @@ public function postOrganizationVirtualMachinesBuildFromSpec(?Model\Organization * * @param array $queryParameters { * - * @var string $virtual_machine_build[id] All 'virtual_machine_build[]' params are mutually exclusive, only one can be provided. + * @var string $virtual_machine_build[id] * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) @@ -812,7 +952,7 @@ public function getOrganizationCertificates(array $queryParameters = [], string * * @param array $queryParameters { * - * @var string $certificate[id] All 'certificate[]' params are mutually exclusive, only one can be provided. + * @var string $certificate[id] * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) @@ -950,9 +1090,7 @@ public function getCountryCountryStates(array $queryParameters = [], string $fet * @param array $queryParameters { * * @var string $country_state[id] The country state to return. - * - * All 'country_state[]' params are mutually exclusive, only one can be provided. - * } + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1410,12 +1548,10 @@ public function postVirtualMachineDiskBackupPolicies(?Model\VirtualMachinesVirtu * * @param array $queryParameters { * - * @var string $disk[id] The disk to return disk backup policies for. - * - * All 'disk[]' params are mutually exclusive, only one can be provided. - * @var int $page The page number to request. If not provided, the first page will be returned. - * @var int $per_page The number of items to return per page. If not provided, the default value will be used. - * } + * @var string $disk[id] The disk to return disk backup policies for + * @var int $page The page number to request. If not provided, the first page will be returned. + * @var int $per_page The number of items to return per page. If not provided, the default value will be used. + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1494,9 +1630,7 @@ public function deleteDiskBackupPolicy(?Model\DiskBackupPoliciesDiskBackupPolicy * @param array $queryParameters { * * @var string $disk_backup_policy[id] The disk backup policy to get information for. - * - * All 'disk_backup_policy[]' params are mutually exclusive, only one can be provided. - * } + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1611,9 +1745,7 @@ public function getDiskTemplateVersions(array $queryParameters = [], string $fet * @param array $queryParameters { * * @var string $disk_template_version[id] The disk template version to return. - * - * All 'disk_template_version[]' params are mutually exclusive, only one can be provided. - * } + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1642,9 +1774,7 @@ public function getDiskTemplateVersion(array $queryParameters = [], string $fetc * @param array $queryParameters { * * @var string $disk_template_version[id] The disk template version to return. - * - * All 'disk_template_version[]' params are mutually exclusive, only one can be provided. - * } + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1679,12 +1809,10 @@ public function getDiskTemplateVersionSpec(array $queryParameters = [], string $ * * All 'organization[]' params are mutually exclusive, only one can be provided. * @var bool $include_universal Whether or not to include universal templates - * @var string $operating_system[id] An operating system to use to filter disk templates. - * - * All 'operating_system[]' params are mutually exclusive, only one can be provided. - * @var int $page The page number to request. If not provided, the first page will be returned. - * @var int $per_page The number of items to return per page. If not provided, the default value will be used. - * } + * @var string $operating_system[id] An operating system to use to filter disk templates + * @var int $page The page number to request. If not provided, the first page will be returned. + * @var int $per_page The number of items to return per page. If not provided, the default value will be used. + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -1754,13 +1882,9 @@ public function getDiskTemplate(array $queryParameters = [], string $fetch = sel * All 'organization[]' params are mutually exclusive, only one can be provided. * @var array $annotations[][key] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var array $annotations[][value] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var int $page The page number to request. If not provided, the first page will be returned. * @var int $per_page The number of items to return per page. If not provided, the default value will be used. @@ -1843,9 +1967,7 @@ public function deleteDisk(?Model\DisksDiskDeleteBody $requestBody = null, strin * @param array $queryParameters { * * @var string $disk[id] The disk to return. - * - * All 'disk[]' params are mutually exclusive, only one can be provided. - * } + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -2093,13 +2215,9 @@ public function getVirtualMachineDisks(array $queryParameters = [], string $fetc * All 'organization[]' params are mutually exclusive, only one can be provided. * @var array $annotations[][key] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var array $annotations[][value] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var int $page The page number to request. If not provided, the first page will be returned. * @var int $per_page The number of items to return per page. If not provided, the default value will be used. @@ -2181,9 +2299,7 @@ public function deleteFileStorageVolume(?Model\FileStorageVolumesFileStorageVolu * @param array $queryParameters { * * @var string $file_storage_volume[id] The file storage volume to return. - * - * All 'file_storage_volume[]' params are mutually exclusive, only one can be provided. - * } + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -2567,9 +2683,7 @@ public function deleteLoadBalancersRulesLoadBalancerRule(?Model\LoadBalancersRul * @param array $queryParameters { * * @var string $load_balancer_rule[id] The load balancer rule to return the details for. - * - * All 'load_balancer_rule[]' params are mutually exclusive, only one can be provided. - * } + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -2629,13 +2743,9 @@ public function patchLoadBalancersRulesLoadBalancerRule(?Model\LoadBalancersRule * All 'organization[]' params are mutually exclusive, only one can be provided. * @var array $annotations[][key] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var array $annotations[][value] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var int $page The page number to request. If not provided, the first page will be returned. * @var int $per_page The number of items to return per page. If not provided, the default value will be used. @@ -2776,13 +2886,9 @@ public function patchLoadBalancer(?Model\LoadBalancersLoadBalancerPatchBody $req * @var string $organization[sub_domain] All 'organization[]' params are mutually exclusive, only one can be provided * @var array $annotations[][key] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var array $annotations[][value] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var int $page The page number to request. If not provided, the first page will be returned. * @var int $per_page The number of items to return per page. If not provided, the default value will be used. @@ -2934,6 +3040,91 @@ public function getNetwork(array $queryParameters = [], string $fetch = self::FE return $this->executeEndpoint(new Endpoint\GetNetwork($queryParameters), $fetch); } + /** + * Move object storage into the trash + * ## Scopes + * - `object_storage`. + * + * ### OAuth2 Scopes + * When using OAuth2 authentication, scopes are prefixed with `api.katapult.io/core/v1/`. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteOrganizationObjectStorageObjectStorageClusterBadRequestException + * @throws Exception\DeleteOrganizationObjectStorageObjectStorageClusterForbiddenException + * @throws Exception\DeleteOrganizationObjectStorageObjectStorageClusterNotFoundException + * @throws Exception\DeleteOrganizationObjectStorageObjectStorageClusterNotAcceptableException + * @throws Exception\DeleteOrganizationObjectStorageObjectStorageClusterUnprocessableEntityException + * @throws Exception\DeleteOrganizationObjectStorageObjectStorageClusterTooManyRequestsException + * @throws Exception\DeleteOrganizationObjectStorageObjectStorageClusterServiceUnavailableException + */ + public function deleteOrganizationObjectStorageObjectStorageCluster(?Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteOrganizationObjectStorageObjectStorageCluster($requestBody), $fetch); + } + + /** + * Returns object storage account details + * ## Scopes + * - `object_storage:read`. + * + * ### OAuth2 Scopes + * When using OAuth2 authentication, scopes are prefixed with `api.katapult.io/core/v1/`. + * + * @param array $queryParameters { + * + * @var string $organization[id] The organization that owns the object storage account. + * + * All 'organization[]' params are mutually exclusive, only one can be provided. + * @var string $organization[sub_domain] The organization that owns the object storage account. + * + * All 'organization[]' params are mutually exclusive, only one can be provided. + * @var string $object_storage_cluster[region] The object storage cluster region. + * } + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\GetOrganizationObjectStorageObjectStorageClusterBadRequestException + * @throws Exception\GetOrganizationObjectStorageObjectStorageClusterForbiddenException + * @throws Exception\GetOrganizationObjectStorageObjectStorageClusterNotFoundException + * @throws Exception\GetOrganizationObjectStorageObjectStorageClusterNotAcceptableException + * @throws Exception\GetOrganizationObjectStorageObjectStorageClusterTooManyRequestsException + * @throws Exception\GetOrganizationObjectStorageObjectStorageClusterServiceUnavailableException + */ + public function getOrganizationObjectStorageObjectStorageCluster(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\GetOrganizationObjectStorageObjectStorageCluster($queryParameters), $fetch); + } + + /** + * Create a new object storage account for an organization. Provisioning will be started in the background and can be monitored via the GET account endpoint. + * ## Scopes + * - `object_storage`. + * + * ### OAuth2 Scopes + * When using OAuth2 authentication, scopes are prefixed with `api.katapult.io/core/v1/`. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostOrganizationObjectStorageObjectStorageClusterBadRequestException + * @throws Exception\PostOrganizationObjectStorageObjectStorageClusterForbiddenException + * @throws Exception\PostOrganizationObjectStorageObjectStorageClusterNotFoundException + * @throws Exception\PostOrganizationObjectStorageObjectStorageClusterNotAcceptableException + * @throws Exception\PostOrganizationObjectStorageObjectStorageClusterUnprocessableEntityException + * @throws Exception\PostOrganizationObjectStorageObjectStorageClusterTooManyRequestsException + * @throws Exception\PostOrganizationObjectStorageObjectStorageClusterServiceUnavailableException + */ + public function postOrganizationObjectStorageObjectStorageCluster(?Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostOrganizationObjectStorageObjectStorageCluster($requestBody), $fetch); + } + /** * Return a list of all operating systems. * @@ -2963,9 +3154,7 @@ public function getOperatingSystems(array $queryParameters = [], string $fetch = * @param array $queryParameters { * * @var string $operating_system[id] The operating system to return. - * - * All 'operating_system[]' params are mutually exclusive, only one can be provided. - * } + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -3367,7 +3556,7 @@ public function deleteDnsRecord(?Model\DnsRecordsDnsRecordDeleteBody $requestBod * * @param array $queryParameters { * - * @var string $dns_record[id] All 'dns_record[]' params are mutually exclusive, only one can be provided. + * @var string $dns_record[id] * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) @@ -3488,12 +3677,10 @@ public function deleteSshKey(?Model\SshKeysSshKeyDeleteBody $requestBody = null, * * @param array $queryParameters { * - * @var string $security_group[id] The security group to return all load rules for. - * - * All 'security_group[]' params are mutually exclusive, only one can be provided. - * @var int $page The page number to request. If not provided, the first page will be returned. - * @var int $per_page The number of items to return per page. If not provided, the default value will be used. - * } + * @var string $security_group[id] The security group to return all load rules for + * @var int $page The page number to request. If not provided, the first page will be returned. + * @var int $per_page The number of items to return per page. If not provided, the default value will be used. + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -3570,9 +3757,7 @@ public function deleteSecurityGroupsRulesSecurityGroupRule(?Model\SecurityGroups * @param array $queryParameters { * * @var string $security_group_rule[id] The security group rule to return the details for. - * - * All 'security_group_rule[]' params are mutually exclusive, only one can be provided. - * } + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -3632,13 +3817,9 @@ public function patchSecurityGroupsRulesSecurityGroupRule(?Model\SecurityGroupsR * All 'organization[]' params are mutually exclusive, only one can be provided. * @var array $annotations[][key] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var array $annotations[][value] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var int $page The page number to request. If not provided, the first page will be returned. * @var int $per_page The number of items to return per page. If not provided, the default value will be used. @@ -3720,9 +3901,7 @@ public function deleteSecurityGroup(?Model\SecurityGroupsSecurityGroupDeleteBody * @param array $queryParameters { * * @var string $security_group[id] The security group to return the details for. - * - * All 'security_group[]' params are mutually exclusive, only one can be provided. - * } + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -3858,9 +4037,7 @@ public function deleteTag(?Model\TagsTagDeleteBody $requestBody = null, string $ * @param array $queryParameters { * * @var string $tag[id] The tag to load the details for. - * - * All 'tag[]' params are mutually exclusive, only one can be provided. - * } + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -3912,7 +4089,7 @@ public function patchTag(?Model\TagsTagPatchBody $requestBody = null, string $fe * * @param array $queryParameters { * - * @var string $task[id] All 'task[]' params are mutually exclusive, only one can be provided. + * @var string $task[id] * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) @@ -4199,9 +4376,7 @@ public function deleteVirtualNetwork(?Model\VirtualNetworksVirtualNetworkDeleteB * @param array $queryParameters { * * @var string $virtual_network[id] The virtual network to retrieve. - * - * All 'virtual_network[]' params are mutually exclusive, only one can be provided. - * } + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -4335,9 +4510,7 @@ public function deleteVirtualMachineGroup(?Model\VirtualMachineGroupsVirtualMach * @param array $queryParameters { * * @var string $virtual_machine_group[id] The virtual machine group to retrieve. - * - * All 'virtual_machine_group[]' params are mutually exclusive, only one can be provided. - * } + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -4415,6 +4588,32 @@ public function getVirtualMachineNetworkInterfaces(array $queryParameters = [], return $this->executeEndpoint(new Endpoint\GetVirtualMachineNetworkInterfaces($queryParameters), $fetch); } + /** + * Create a new virtual machine network interface with the provided details + * ## Scopes + * - `virtual_machines` + * - `virtual_machines:network_interfaces`. + * + * ### OAuth2 Scopes + * When using OAuth2 authentication, scopes are prefixed with `api.katapult.io/core/v1/`. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostVirtualMachineNetworkInterfacesBadRequestException + * @throws Exception\PostVirtualMachineNetworkInterfacesForbiddenException + * @throws Exception\PostVirtualMachineNetworkInterfacesNotFoundException + * @throws Exception\PostVirtualMachineNetworkInterfacesNotAcceptableException + * @throws Exception\PostVirtualMachineNetworkInterfacesUnprocessableEntityException + * @throws Exception\PostVirtualMachineNetworkInterfacesTooManyRequestsException + * @throws Exception\PostVirtualMachineNetworkInterfacesServiceUnavailableException + */ + public function postVirtualMachineNetworkInterfaces(?Model\VirtualMachinesVirtualMachineNetworkInterfacesPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostVirtualMachineNetworkInterfaces($requestBody), $fetch); + } + /** * Return information about a virtual machine network interface for a specific network * ## Scopes @@ -4456,6 +4655,31 @@ public function getVirtualMachineNetworkInterface(array $queryParameters = [], s return $this->executeEndpoint(new Endpoint\GetVirtualMachineNetworkInterface($queryParameters), $fetch); } + /** + * ## Scopes + * - `virtual_machines` + * - `virtual_machines:network_interfaces`. + * + * ### OAuth2 Scopes + * When using OAuth2 authentication, scopes are prefixed with `api.katapult.io/core/v1/`. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\DeleteVirtualMachineNetworkInterfaceBadRequestException + * @throws Exception\DeleteVirtualMachineNetworkInterfaceForbiddenException + * @throws Exception\DeleteVirtualMachineNetworkInterfaceNotFoundException + * @throws Exception\DeleteVirtualMachineNetworkInterfaceConflictException + * @throws Exception\DeleteVirtualMachineNetworkInterfaceUnprocessableEntityException + * @throws Exception\DeleteVirtualMachineNetworkInterfaceTooManyRequestsException + * @throws Exception\DeleteVirtualMachineNetworkInterfaceServiceUnavailableException + */ + public function deleteVirtualMachineNetworkInterface(?Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\DeleteVirtualMachineNetworkInterface($requestBody), $fetch); + } + /** * Return information about a given virtual machine network interface * ## Scopes @@ -4468,9 +4692,7 @@ public function getVirtualMachineNetworkInterface(array $queryParameters = [], s * @param array $queryParameters { * * @var string $virtual_machine_network_interface[id] The network interface to show the information for. - * - * All 'virtual_machine_network_interface[]' params are mutually exclusive, only one can be provided. - * } + * } * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * @@ -4498,9 +4720,7 @@ public function getVMNIVMNI(array $queryParameters = [], string $fetch = self::F * * @param array $queryParameters { * - * @var string $virtual_machine_network_interface[id] The network interface to get IP addresses for. - * - * All 'virtual_machine_network_interface[]' params are mutually exclusive, only one can be provided. + * @var string $virtual_machine_network_interface[id] The network interface to get IP addresses for * @var string $address_version The IP address version to return results for * } * @@ -4590,6 +4810,58 @@ public function patchVirtualMachineNetworkInterfaceUpdateSpeedProfile(?Model\Vir return $this->executeEndpoint(new Endpoint\PatchVirtualMachineNetworkInterfaceUpdateSpeedProfile($requestBody), $fetch); } + /** + * Attach a network interface to a virtual machine. + * ## Scopes + * - `virtual_machines` + * - `virtual_machines:network_interfaces`. + * + * ### OAuth2 Scopes + * When using OAuth2 authentication, scopes are prefixed with `api.katapult.io/core/v1/`. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostVirtualMachineNetworkInterfaceAttachBadRequestException + * @throws Exception\PostVirtualMachineNetworkInterfaceAttachForbiddenException + * @throws Exception\PostVirtualMachineNetworkInterfaceAttachNotFoundException + * @throws Exception\PostVirtualMachineNetworkInterfaceAttachNotAcceptableException + * @throws Exception\PostVirtualMachineNetworkInterfaceAttachUnprocessableEntityException + * @throws Exception\PostVirtualMachineNetworkInterfaceAttachTooManyRequestsException + * @throws Exception\PostVirtualMachineNetworkInterfaceAttachServiceUnavailableException + */ + public function postVirtualMachineNetworkInterfaceAttach(?Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostVirtualMachineNetworkInterfaceAttach($requestBody), $fetch); + } + + /** + * Detach a network interface from its virtual machine. + * ## Scopes + * - `virtual_machines` + * - `virtual_machines:network_interfaces`. + * + * ### OAuth2 Scopes + * When using OAuth2 authentication, scopes are prefixed with `api.katapult.io/core/v1/`. + * + * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) + * + * @return Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200|\Psr\Http\Message\ResponseInterface|null + * + * @throws Exception\PostVirtualMachineNetworkInterfaceDetachBadRequestException + * @throws Exception\PostVirtualMachineNetworkInterfaceDetachForbiddenException + * @throws Exception\PostVirtualMachineNetworkInterfaceDetachNotFoundException + * @throws Exception\PostVirtualMachineNetworkInterfaceDetachNotAcceptableException + * @throws Exception\PostVirtualMachineNetworkInterfaceDetachUnprocessableEntityException + * @throws Exception\PostVirtualMachineNetworkInterfaceDetachTooManyRequestsException + * @throws Exception\PostVirtualMachineNetworkInterfaceDetachServiceUnavailableException + */ + public function postVirtualMachineNetworkInterfaceDetach(?Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT) + { + return $this->executeEndpoint(new Endpoint\PostVirtualMachineNetworkInterfaceDetach($requestBody), $fetch); + } + /** * Returns a list of virtual machine packages * ## Scopes @@ -4669,13 +4941,9 @@ public function getVirtualMachinePackage(array $queryParameters = [], string $fe * @var string $organization[sub_domain] All 'organization[]' params are mutually exclusive, only one can be provided * @var array $annotations[][key] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var array $annotations[][value] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var int $page The page number to request. If not provided, the first page will be returned. * @var int $per_page The number of items to return per page. If not provided, the default value will be used. diff --git a/src/Core/Endpoint/DeleteObjectStorageAccessKey.php b/src/Core/Endpoint/DeleteObjectStorageAccessKey.php new file mode 100644 index 00000000..bf2db493 --- /dev/null +++ b/src/Core/Endpoint/DeleteObjectStorageAccessKey.php @@ -0,0 +1,95 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return '/object_storage/access_keys/access_key'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteResponse200|null + * + * @throws \KatapultAPI\Core\Exception\DeleteObjectStorageAccessKeyBadRequestException + * @throws \KatapultAPI\Core\Exception\DeleteObjectStorageAccessKeyForbiddenException + * @throws \KatapultAPI\Core\Exception\DeleteObjectStorageAccessKeyNotFoundException + * @throws \KatapultAPI\Core\Exception\DeleteObjectStorageAccessKeyTooManyRequestsException + * @throws \KatapultAPI\Core\Exception\DeleteObjectStorageAccessKeyServiceUnavailableException + * @throws \KatapultAPI\Core\Exception\DeleteObjectStorageAccessKeyGatewayTimeoutException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\DeleteObjectStorageAccessKeyBadRequestException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\DeleteObjectStorageAccessKeyForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\DeleteObjectStorageAccessKeyNotFoundException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseObjectStorageAccessKeyNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\DeleteObjectStorageAccessKeyTooManyRequestsException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\DeleteObjectStorageAccessKeyServiceUnavailableException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response', 'json'), $response); + } + if (is_null($contentType) === false && (504 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\DeleteObjectStorageAccessKeyGatewayTimeoutException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseNetworkErrorResponse', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['OAuth2', 'Authenticator']; + } +} diff --git a/src/Core/Endpoint/DeleteOrganizationObjectStorageObjectStorageCluster.php b/src/Core/Endpoint/DeleteOrganizationObjectStorageObjectStorageCluster.php new file mode 100644 index 00000000..e18af4fe --- /dev/null +++ b/src/Core/Endpoint/DeleteOrganizationObjectStorageObjectStorageCluster.php @@ -0,0 +1,99 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return '/organizations/organization/object_storage/object_storage_cluster'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200|null + * + * @throws \KatapultAPI\Core\Exception\DeleteOrganizationObjectStorageObjectStorageClusterBadRequestException + * @throws \KatapultAPI\Core\Exception\DeleteOrganizationObjectStorageObjectStorageClusterForbiddenException + * @throws \KatapultAPI\Core\Exception\DeleteOrganizationObjectStorageObjectStorageClusterNotFoundException + * @throws \KatapultAPI\Core\Exception\DeleteOrganizationObjectStorageObjectStorageClusterNotAcceptableException + * @throws \KatapultAPI\Core\Exception\DeleteOrganizationObjectStorageObjectStorageClusterUnprocessableEntityException + * @throws \KatapultAPI\Core\Exception\DeleteOrganizationObjectStorageObjectStorageClusterTooManyRequestsException + * @throws \KatapultAPI\Core\Exception\DeleteOrganizationObjectStorageObjectStorageClusterServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\DeleteOrganizationObjectStorageObjectStorageClusterBadRequestException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\DeleteOrganizationObjectStorageObjectStorageClusterForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\DeleteOrganizationObjectStorageObjectStorageClusterNotFoundException($response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\DeleteOrganizationObjectStorageObjectStorageClusterNotAcceptableException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseObjectInTrashResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\DeleteOrganizationObjectStorageObjectStorageClusterUnprocessableEntityException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\DeleteOrganizationObjectStorageObjectStorageClusterTooManyRequestsException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\DeleteOrganizationObjectStorageObjectStorageClusterServiceUnavailableException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['OAuth2', 'Authenticator']; + } +} diff --git a/src/Core/Endpoint/DeleteVirtualMachineNetworkInterface.php b/src/Core/Endpoint/DeleteVirtualMachineNetworkInterface.php new file mode 100644 index 00000000..d9be5c2d --- /dev/null +++ b/src/Core/Endpoint/DeleteVirtualMachineNetworkInterface.php @@ -0,0 +1,99 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'DELETE'; + } + + public function getUri(): string + { + return '/virtual_machine_network_interfaces/virtual_machine_network_interface'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200|null + * + * @throws \KatapultAPI\Core\Exception\DeleteVirtualMachineNetworkInterfaceBadRequestException + * @throws \KatapultAPI\Core\Exception\DeleteVirtualMachineNetworkInterfaceForbiddenException + * @throws \KatapultAPI\Core\Exception\DeleteVirtualMachineNetworkInterfaceNotFoundException + * @throws \KatapultAPI\Core\Exception\DeleteVirtualMachineNetworkInterfaceConflictException + * @throws \KatapultAPI\Core\Exception\DeleteVirtualMachineNetworkInterfaceUnprocessableEntityException + * @throws \KatapultAPI\Core\Exception\DeleteVirtualMachineNetworkInterfaceTooManyRequestsException + * @throws \KatapultAPI\Core\Exception\DeleteVirtualMachineNetworkInterfaceServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\DeleteVirtualMachineNetworkInterfaceBadRequestException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\DeleteVirtualMachineNetworkInterfaceForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\DeleteVirtualMachineNetworkInterfaceNotFoundException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (409 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\DeleteVirtualMachineNetworkInterfaceConflictException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseDeletionRestrictedResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\DeleteVirtualMachineNetworkInterfaceUnprocessableEntityException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\DeleteVirtualMachineNetworkInterfaceTooManyRequestsException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\DeleteVirtualMachineNetworkInterfaceServiceUnavailableException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['OAuth2', 'Authenticator']; + } +} diff --git a/src/Core/Endpoint/GetAddressList.php b/src/Core/Endpoint/GetAddressList.php index f8319c3b..f4b01770 100644 --- a/src/Core/Endpoint/GetAddressList.php +++ b/src/Core/Endpoint/GetAddressList.php @@ -26,9 +26,7 @@ class GetAddressList extends \KatapultAPI\Core\Runtime\Client\BaseEndpoint imple * @param array $queryParameters { * * @var string $address_list[id] The address list to return. - * - * All 'address_list[]' params are mutually exclusive, only one can be provided. - * } + * } */ public function __construct(array $queryParameters = []) { diff --git a/src/Core/Endpoint/GetAddressListEntries.php b/src/Core/Endpoint/GetAddressListEntries.php index 9b6a0cbf..3893d2aa 100644 --- a/src/Core/Endpoint/GetAddressListEntries.php +++ b/src/Core/Endpoint/GetAddressListEntries.php @@ -25,12 +25,10 @@ class GetAddressListEntries extends \KatapultAPI\Core\Runtime\Client\BaseEndpoin * * @param array $queryParameters { * - * @var string $address_list[id] The address list for which the entries should be returned. - * - * All 'address_list[]' params are mutually exclusive, only one can be provided. - * @var int $page The page number to request. If not provided, the first page will be returned. - * @var int $per_page The number of items to return per page. If not provided, the default value will be used. - * } + * @var string $address_list[id] The address list for which the entries should be returned + * @var int $page The page number to request. If not provided, the first page will be returned. + * @var int $per_page The number of items to return per page. If not provided, the default value will be used. + * } */ public function __construct(array $queryParameters = []) { diff --git a/src/Core/Endpoint/GetAddressListEntry.php b/src/Core/Endpoint/GetAddressListEntry.php index 7832b3f7..9f8fd1c2 100644 --- a/src/Core/Endpoint/GetAddressListEntry.php +++ b/src/Core/Endpoint/GetAddressListEntry.php @@ -26,9 +26,7 @@ class GetAddressListEntry extends \KatapultAPI\Core\Runtime\Client\BaseEndpoint * @param array $queryParameters { * * @var string $address_list_entry[id] The address list entry to return. - * - * All 'address_list_entry[]' params are mutually exclusive, only one can be provided. - * } + * } */ public function __construct(array $queryParameters = []) { diff --git a/src/Core/Endpoint/GetCertificate.php b/src/Core/Endpoint/GetCertificate.php index 037b0310..d7e21252 100644 --- a/src/Core/Endpoint/GetCertificate.php +++ b/src/Core/Endpoint/GetCertificate.php @@ -25,7 +25,7 @@ class GetCertificate extends \KatapultAPI\Core\Runtime\Client\BaseEndpoint imple * * @param array $queryParameters { * - * @var string $certificate[id] All 'certificate[]' params are mutually exclusive, only one can be provided. + * @var string $certificate[id] * } */ public function __construct(array $queryParameters = []) diff --git a/src/Core/Endpoint/GetCountryState.php b/src/Core/Endpoint/GetCountryState.php index 0d02d010..4211269d 100644 --- a/src/Core/Endpoint/GetCountryState.php +++ b/src/Core/Endpoint/GetCountryState.php @@ -20,9 +20,7 @@ class GetCountryState extends \KatapultAPI\Core\Runtime\Client\BaseEndpoint impl * @param array $queryParameters { * * @var string $country_state[id] The country state to return. - * - * All 'country_state[]' params are mutually exclusive, only one can be provided. - * } + * } */ public function __construct(array $queryParameters = []) { diff --git a/src/Core/Endpoint/GetDisk.php b/src/Core/Endpoint/GetDisk.php index e2cbaac0..c02aa235 100644 --- a/src/Core/Endpoint/GetDisk.php +++ b/src/Core/Endpoint/GetDisk.php @@ -26,9 +26,7 @@ class GetDisk extends \KatapultAPI\Core\Runtime\Client\BaseEndpoint implements \ * @param array $queryParameters { * * @var string $disk[id] The disk to return. - * - * All 'disk[]' params are mutually exclusive, only one can be provided. - * } + * } */ public function __construct(array $queryParameters = []) { diff --git a/src/Core/Endpoint/GetDiskBackupPolicy.php b/src/Core/Endpoint/GetDiskBackupPolicy.php index 990720d8..a9fd3372 100644 --- a/src/Core/Endpoint/GetDiskBackupPolicy.php +++ b/src/Core/Endpoint/GetDiskBackupPolicy.php @@ -26,9 +26,7 @@ class GetDiskBackupPolicy extends \KatapultAPI\Core\Runtime\Client\BaseEndpoint * @param array $queryParameters { * * @var string $disk_backup_policy[id] The disk backup policy to get information for. - * - * All 'disk_backup_policy[]' params are mutually exclusive, only one can be provided. - * } + * } */ public function __construct(array $queryParameters = []) { diff --git a/src/Core/Endpoint/GetDiskDiskBackupPolicies.php b/src/Core/Endpoint/GetDiskDiskBackupPolicies.php index 5f064dca..3c084ad6 100644 --- a/src/Core/Endpoint/GetDiskDiskBackupPolicies.php +++ b/src/Core/Endpoint/GetDiskDiskBackupPolicies.php @@ -25,12 +25,10 @@ class GetDiskDiskBackupPolicies extends \KatapultAPI\Core\Runtime\Client\BaseEnd * * @param array $queryParameters { * - * @var string $disk[id] The disk to return disk backup policies for. - * - * All 'disk[]' params are mutually exclusive, only one can be provided. - * @var int $page The page number to request. If not provided, the first page will be returned. - * @var int $per_page The number of items to return per page. If not provided, the default value will be used. - * } + * @var string $disk[id] The disk to return disk backup policies for + * @var int $page The page number to request. If not provided, the first page will be returned. + * @var int $per_page The number of items to return per page. If not provided, the default value will be used. + * } */ public function __construct(array $queryParameters = []) { diff --git a/src/Core/Endpoint/GetDiskTemplateVersion.php b/src/Core/Endpoint/GetDiskTemplateVersion.php index eb8319bb..db0d961d 100644 --- a/src/Core/Endpoint/GetDiskTemplateVersion.php +++ b/src/Core/Endpoint/GetDiskTemplateVersion.php @@ -26,9 +26,7 @@ class GetDiskTemplateVersion extends \KatapultAPI\Core\Runtime\Client\BaseEndpoi * @param array $queryParameters { * * @var string $disk_template_version[id] The disk template version to return. - * - * All 'disk_template_version[]' params are mutually exclusive, only one can be provided. - * } + * } */ public function __construct(array $queryParameters = []) { diff --git a/src/Core/Endpoint/GetDiskTemplateVersionSpec.php b/src/Core/Endpoint/GetDiskTemplateVersionSpec.php index 0d23f641..b94ccdd7 100644 --- a/src/Core/Endpoint/GetDiskTemplateVersionSpec.php +++ b/src/Core/Endpoint/GetDiskTemplateVersionSpec.php @@ -26,9 +26,7 @@ class GetDiskTemplateVersionSpec extends \KatapultAPI\Core\Runtime\Client\BaseEn * @param array $queryParameters { * * @var string $disk_template_version[id] The disk template version to return. - * - * All 'disk_template_version[]' params are mutually exclusive, only one can be provided. - * } + * } */ public function __construct(array $queryParameters = []) { diff --git a/src/Core/Endpoint/GetDnsRecord.php b/src/Core/Endpoint/GetDnsRecord.php index bbc4b83a..d584545e 100644 --- a/src/Core/Endpoint/GetDnsRecord.php +++ b/src/Core/Endpoint/GetDnsRecord.php @@ -25,7 +25,7 @@ class GetDnsRecord extends \KatapultAPI\Core\Runtime\Client\BaseEndpoint impleme * * @param array $queryParameters { * - * @var string $dns_record[id] All 'dns_record[]' params are mutually exclusive, only one can be provided. + * @var string $dns_record[id] * } */ public function __construct(array $queryParameters = []) diff --git a/src/Core/Endpoint/GetFileStorageVolume.php b/src/Core/Endpoint/GetFileStorageVolume.php index 945f558f..23157441 100644 --- a/src/Core/Endpoint/GetFileStorageVolume.php +++ b/src/Core/Endpoint/GetFileStorageVolume.php @@ -26,9 +26,7 @@ class GetFileStorageVolume extends \KatapultAPI\Core\Runtime\Client\BaseEndpoint * @param array $queryParameters { * * @var string $file_storage_volume[id] The file storage volume to return. - * - * All 'file_storage_volume[]' params are mutually exclusive, only one can be provided. - * } + * } */ public function __construct(array $queryParameters = []) { diff --git a/src/Core/Endpoint/GetLoadBalancersRulesLoadBalancerRule.php b/src/Core/Endpoint/GetLoadBalancersRulesLoadBalancerRule.php index c333adc9..2dc88dee 100644 --- a/src/Core/Endpoint/GetLoadBalancersRulesLoadBalancerRule.php +++ b/src/Core/Endpoint/GetLoadBalancersRulesLoadBalancerRule.php @@ -26,9 +26,7 @@ class GetLoadBalancersRulesLoadBalancerRule extends \KatapultAPI\Core\Runtime\Cl * @param array $queryParameters { * * @var string $load_balancer_rule[id] The load balancer rule to return the details for. - * - * All 'load_balancer_rule[]' params are mutually exclusive, only one can be provided. - * } + * } */ public function __construct(array $queryParameters = []) { diff --git a/src/Core/Endpoint/GetObjectStorageAccessKey.php b/src/Core/Endpoint/GetObjectStorageAccessKey.php new file mode 100644 index 00000000..d26fc59f --- /dev/null +++ b/src/Core/Endpoint/GetObjectStorageAccessKey.php @@ -0,0 +1,103 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/object_storage/access_keys/access_key'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['access_key[id]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('access_key[id]', ['string']); + + return $optionsResolver; + } + + /** + * @return \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGetResponse200|null + * + * @throws \KatapultAPI\Core\Exception\GetObjectStorageAccessKeyBadRequestException + * @throws \KatapultAPI\Core\Exception\GetObjectStorageAccessKeyForbiddenException + * @throws \KatapultAPI\Core\Exception\GetObjectStorageAccessKeyNotFoundException + * @throws \KatapultAPI\Core\Exception\GetObjectStorageAccessKeyTooManyRequestsException + * @throws \KatapultAPI\Core\Exception\GetObjectStorageAccessKeyServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\GetObjectStorageAccessKeyBadRequestException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\GetObjectStorageAccessKeyForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\GetObjectStorageAccessKeyNotFoundException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseObjectStorageAccessKeyNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\GetObjectStorageAccessKeyTooManyRequestsException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\GetObjectStorageAccessKeyServiceUnavailableException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['OAuth2', 'Authenticator']; + } +} diff --git a/src/Core/Endpoint/GetObjectStorageObjectStorageClusterBucket.php b/src/Core/Endpoint/GetObjectStorageObjectStorageClusterBucket.php index eed568a9..46cd6a6b 100644 --- a/src/Core/Endpoint/GetObjectStorageObjectStorageClusterBucket.php +++ b/src/Core/Endpoint/GetObjectStorageObjectStorageClusterBucket.php @@ -24,13 +24,9 @@ class GetObjectStorageObjectStorageClusterBucket extends \KatapultAPI\Core\Runti * * @param array $queryParameters { * - * @var string $object_storage_cluster[region] The object storage cluster region for the bucket. - * - * All 'object_storage_cluster[]' params are mutually exclusive, only one can be provided. + * @var string $object_storage_cluster[region] The object storage cluster region for the bucket * @var string $bucket[name] The name of the object storage bucket. - * - * All 'bucket[]' params are mutually exclusive, only one can be provided. - * } + * } */ public function __construct(array $queryParameters = []) { diff --git a/src/Core/Endpoint/GetObjectStorageObjectStorageClusterBucketObject.php b/src/Core/Endpoint/GetObjectStorageObjectStorageClusterBucketObject.php index dd081d2e..743eb5f3 100644 --- a/src/Core/Endpoint/GetObjectStorageObjectStorageClusterBucketObject.php +++ b/src/Core/Endpoint/GetObjectStorageObjectStorageClusterBucketObject.php @@ -24,12 +24,8 @@ class GetObjectStorageObjectStorageClusterBucketObject extends \KatapultAPI\Core * * @param array $queryParameters { * - * @var string $object_storage_cluster[region] The object storage cluster region for the bucket. - * - * All 'object_storage_cluster[]' params are mutually exclusive, only one can be provided. - * @var string $bucket[name] The name of the object storage bucket. - * - * All 'bucket[]' params are mutually exclusive, only one can be provided. + * @var string $object_storage_cluster[region] The object storage cluster region for the bucket + * @var string $bucket[name] The name of the object storage bucket * @var string $path The name or path for the object * } */ diff --git a/src/Core/Endpoint/GetOperatingSystem.php b/src/Core/Endpoint/GetOperatingSystem.php index 777e9164..9af5c18a 100644 --- a/src/Core/Endpoint/GetOperatingSystem.php +++ b/src/Core/Endpoint/GetOperatingSystem.php @@ -20,9 +20,7 @@ class GetOperatingSystem extends \KatapultAPI\Core\Runtime\Client\BaseEndpoint i * @param array $queryParameters { * * @var string $operating_system[id] The operating system to return. - * - * All 'operating_system[]' params are mutually exclusive, only one can be provided. - * } + * } */ public function __construct(array $queryParameters = []) { diff --git a/src/Core/Endpoint/GetOrganizationAddressLists.php b/src/Core/Endpoint/GetOrganizationAddressLists.php index e3abf4d5..5390443e 100644 --- a/src/Core/Endpoint/GetOrganizationAddressLists.php +++ b/src/Core/Endpoint/GetOrganizationAddressLists.php @@ -33,13 +33,9 @@ class GetOrganizationAddressLists extends \KatapultAPI\Core\Runtime\Client\BaseE * All 'organization[]' params are mutually exclusive, only one can be provided. * @var array $annotations[][key] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var array $annotations[][value] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var int $page The page number to request. If not provided, the first page will be returned. * @var int $per_page The number of items to return per page. If not provided, the default value will be used. diff --git a/src/Core/Endpoint/GetOrganizationApiTokens.php b/src/Core/Endpoint/GetOrganizationApiTokens.php index 0ca49c98..19c3a919 100644 --- a/src/Core/Endpoint/GetOrganizationApiTokens.php +++ b/src/Core/Endpoint/GetOrganizationApiTokens.php @@ -33,13 +33,9 @@ class GetOrganizationApiTokens extends \KatapultAPI\Core\Runtime\Client\BaseEndp * All 'organization[]' params are mutually exclusive, only one can be provided. * @var array $annotations[][key] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var array $annotations[][value] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var int $page The page number to request. If not provided, the first page will be returned. * @var int $per_page The number of items to return per page. If not provided, the default value will be used. diff --git a/src/Core/Endpoint/GetOrganizationDiskTemplates.php b/src/Core/Endpoint/GetOrganizationDiskTemplates.php index fd1ec241..770e273e 100644 --- a/src/Core/Endpoint/GetOrganizationDiskTemplates.php +++ b/src/Core/Endpoint/GetOrganizationDiskTemplates.php @@ -32,12 +32,10 @@ class GetOrganizationDiskTemplates extends \KatapultAPI\Core\Runtime\Client\Base * * All 'organization[]' params are mutually exclusive, only one can be provided. * @var bool $include_universal Whether or not to include universal templates - * @var string $operating_system[id] An operating system to use to filter disk templates. - * - * All 'operating_system[]' params are mutually exclusive, only one can be provided. - * @var int $page The page number to request. If not provided, the first page will be returned. - * @var int $per_page The number of items to return per page. If not provided, the default value will be used. - * } + * @var string $operating_system[id] An operating system to use to filter disk templates + * @var int $page The page number to request. If not provided, the first page will be returned. + * @var int $per_page The number of items to return per page. If not provided, the default value will be used. + * } */ public function __construct(array $queryParameters = []) { diff --git a/src/Core/Endpoint/GetOrganizationDisks.php b/src/Core/Endpoint/GetOrganizationDisks.php index d2daaf11..708acf89 100644 --- a/src/Core/Endpoint/GetOrganizationDisks.php +++ b/src/Core/Endpoint/GetOrganizationDisks.php @@ -33,13 +33,9 @@ class GetOrganizationDisks extends \KatapultAPI\Core\Runtime\Client\BaseEndpoint * All 'organization[]' params are mutually exclusive, only one can be provided. * @var array $annotations[][key] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var array $annotations[][value] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var int $page The page number to request. If not provided, the first page will be returned. * @var int $per_page The number of items to return per page. If not provided, the default value will be used. diff --git a/src/Core/Endpoint/GetOrganizationFileStorageVolumes.php b/src/Core/Endpoint/GetOrganizationFileStorageVolumes.php index 8af72227..5da3af2f 100644 --- a/src/Core/Endpoint/GetOrganizationFileStorageVolumes.php +++ b/src/Core/Endpoint/GetOrganizationFileStorageVolumes.php @@ -33,13 +33,9 @@ class GetOrganizationFileStorageVolumes extends \KatapultAPI\Core\Runtime\Client * All 'organization[]' params are mutually exclusive, only one can be provided. * @var array $annotations[][key] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var array $annotations[][value] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var int $page The page number to request. If not provided, the first page will be returned. * @var int $per_page The number of items to return per page. If not provided, the default value will be used. diff --git a/src/Core/Endpoint/GetOrganizationLoadBalancers.php b/src/Core/Endpoint/GetOrganizationLoadBalancers.php index 82595a8e..a968abbf 100644 --- a/src/Core/Endpoint/GetOrganizationLoadBalancers.php +++ b/src/Core/Endpoint/GetOrganizationLoadBalancers.php @@ -33,13 +33,9 @@ class GetOrganizationLoadBalancers extends \KatapultAPI\Core\Runtime\Client\Base * All 'organization[]' params are mutually exclusive, only one can be provided. * @var array $annotations[][key] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var array $annotations[][value] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var int $page The page number to request. If not provided, the first page will be returned. * @var int $per_page The number of items to return per page. If not provided, the default value will be used. diff --git a/src/Core/Endpoint/GetOrganizationManaged.php b/src/Core/Endpoint/GetOrganizationManaged.php index d328d7d5..1e65ebb5 100644 --- a/src/Core/Endpoint/GetOrganizationManaged.php +++ b/src/Core/Endpoint/GetOrganizationManaged.php @@ -28,13 +28,9 @@ class GetOrganizationManaged extends \KatapultAPI\Core\Runtime\Client\BaseEndpoi * @var string $organization[sub_domain] All 'organization[]' params are mutually exclusive, only one can be provided * @var array $annotations[][key] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var array $annotations[][value] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var int $page The page number to request. If not provided, the first page will be returned. * @var int $per_page The number of items to return per page. If not provided, the default value will be used. diff --git a/src/Core/Endpoint/GetOrganizationObjectStorageAccessKeys.php b/src/Core/Endpoint/GetOrganizationObjectStorageAccessKeys.php new file mode 100644 index 00000000..3864bff0 --- /dev/null +++ b/src/Core/Endpoint/GetOrganizationObjectStorageAccessKeys.php @@ -0,0 +1,113 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/organizations/organization/object_storage/access_keys'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization[id]', 'organization[sub_domain]', 'page', 'per_page']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults(['page' => 1, 'per_page' => 30]); + $optionsResolver->addAllowedTypes('organization[id]', ['string']); + $optionsResolver->addAllowedTypes('organization[sub_domain]', ['string']); + $optionsResolver->addAllowedTypes('page', ['int']); + $optionsResolver->addAllowedTypes('per_page', ['int']); + + return $optionsResolver; + } + + /** + * @return \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageAccessKeysGetResponse200|null + * + * @throws \KatapultAPI\Core\Exception\GetOrganizationObjectStorageAccessKeysBadRequestException + * @throws \KatapultAPI\Core\Exception\GetOrganizationObjectStorageAccessKeysForbiddenException + * @throws \KatapultAPI\Core\Exception\GetOrganizationObjectStorageAccessKeysNotFoundException + * @throws \KatapultAPI\Core\Exception\GetOrganizationObjectStorageAccessKeysTooManyRequestsException + * @throws \KatapultAPI\Core\Exception\GetOrganizationObjectStorageAccessKeysServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageAccessKeysGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\GetOrganizationObjectStorageAccessKeysBadRequestException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\GetOrganizationObjectStorageAccessKeysForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\GetOrganizationObjectStorageAccessKeysNotFoundException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseOrganizationNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\GetOrganizationObjectStorageAccessKeysTooManyRequestsException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\GetOrganizationObjectStorageAccessKeysServiceUnavailableException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['OAuth2', 'Authenticator']; + } +} diff --git a/src/Core/Endpoint/GetOrganizationObjectStorageObjectStorageCluster.php b/src/Core/Endpoint/GetOrganizationObjectStorageObjectStorageCluster.php new file mode 100644 index 00000000..93039b86 --- /dev/null +++ b/src/Core/Endpoint/GetOrganizationObjectStorageObjectStorageCluster.php @@ -0,0 +1,115 @@ +queryParameters = $queryParameters; + } + + public function getMethod(): string + { + return 'GET'; + } + + public function getUri(): string + { + return '/organizations/organization/object_storage/object_storage_cluster'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver + { + $optionsResolver = parent::getQueryOptionsResolver(); + $optionsResolver->setDefined(['organization[id]', 'organization[sub_domain]', 'object_storage_cluster[region]']); + $optionsResolver->setRequired([]); + $optionsResolver->setDefaults([]); + $optionsResolver->addAllowedTypes('organization[id]', ['string']); + $optionsResolver->addAllowedTypes('organization[sub_domain]', ['string']); + $optionsResolver->addAllowedTypes('object_storage_cluster[region]', ['string']); + + return $optionsResolver; + } + + /** + * @return \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200|null + * + * @throws \KatapultAPI\Core\Exception\GetOrganizationObjectStorageObjectStorageClusterBadRequestException + * @throws \KatapultAPI\Core\Exception\GetOrganizationObjectStorageObjectStorageClusterForbiddenException + * @throws \KatapultAPI\Core\Exception\GetOrganizationObjectStorageObjectStorageClusterNotFoundException + * @throws \KatapultAPI\Core\Exception\GetOrganizationObjectStorageObjectStorageClusterNotAcceptableException + * @throws \KatapultAPI\Core\Exception\GetOrganizationObjectStorageObjectStorageClusterTooManyRequestsException + * @throws \KatapultAPI\Core\Exception\GetOrganizationObjectStorageObjectStorageClusterServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\GetOrganizationObjectStorageObjectStorageClusterBadRequestException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\GetOrganizationObjectStorageObjectStorageClusterForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\GetOrganizationObjectStorageObjectStorageClusterNotFoundException($response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\GetOrganizationObjectStorageObjectStorageClusterNotAcceptableException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseObjectInTrashResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\GetOrganizationObjectStorageObjectStorageClusterTooManyRequestsException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\GetOrganizationObjectStorageObjectStorageClusterServiceUnavailableException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['OAuth2', 'Authenticator']; + } +} diff --git a/src/Core/Endpoint/GetOrganizationSecurityGroups.php b/src/Core/Endpoint/GetOrganizationSecurityGroups.php index 566b8901..d10e32a3 100644 --- a/src/Core/Endpoint/GetOrganizationSecurityGroups.php +++ b/src/Core/Endpoint/GetOrganizationSecurityGroups.php @@ -33,13 +33,9 @@ class GetOrganizationSecurityGroups extends \KatapultAPI\Core\Runtime\Client\Bas * All 'organization[]' params are mutually exclusive, only one can be provided. * @var array $annotations[][key] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var array $annotations[][value] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var int $page The page number to request. If not provided, the first page will be returned. * @var int $per_page The number of items to return per page. If not provided, the default value will be used. diff --git a/src/Core/Endpoint/GetOrganizationVirtualMachines.php b/src/Core/Endpoint/GetOrganizationVirtualMachines.php index c5400791..2be78c7f 100644 --- a/src/Core/Endpoint/GetOrganizationVirtualMachines.php +++ b/src/Core/Endpoint/GetOrganizationVirtualMachines.php @@ -29,13 +29,9 @@ class GetOrganizationVirtualMachines extends \KatapultAPI\Core\Runtime\Client\Ba * @var string $organization[sub_domain] All 'organization[]' params are mutually exclusive, only one can be provided * @var array $annotations[][key] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var array $annotations[][value] An array of annotations to filter by. * - * All 'annotations[]' params are mutually exclusive, only one can be provided. - * * All `annotations[]` params should have the same amount of elements. * @var int $page The page number to request. If not provided, the first page will be returned. * @var int $per_page The number of items to return per page. If not provided, the default value will be used. diff --git a/src/Core/Endpoint/GetSecurityGroup.php b/src/Core/Endpoint/GetSecurityGroup.php index 28eb5e55..3aa8284d 100644 --- a/src/Core/Endpoint/GetSecurityGroup.php +++ b/src/Core/Endpoint/GetSecurityGroup.php @@ -26,9 +26,7 @@ class GetSecurityGroup extends \KatapultAPI\Core\Runtime\Client\BaseEndpoint imp * @param array $queryParameters { * * @var string $security_group[id] The security group to return the details for. - * - * All 'security_group[]' params are mutually exclusive, only one can be provided. - * } + * } */ public function __construct(array $queryParameters = []) { diff --git a/src/Core/Endpoint/GetSecurityGroupRules.php b/src/Core/Endpoint/GetSecurityGroupRules.php index 43ac62be..220a5882 100644 --- a/src/Core/Endpoint/GetSecurityGroupRules.php +++ b/src/Core/Endpoint/GetSecurityGroupRules.php @@ -25,12 +25,10 @@ class GetSecurityGroupRules extends \KatapultAPI\Core\Runtime\Client\BaseEndpoin * * @param array $queryParameters { * - * @var string $security_group[id] The security group to return all load rules for. - * - * All 'security_group[]' params are mutually exclusive, only one can be provided. - * @var int $page The page number to request. If not provided, the first page will be returned. - * @var int $per_page The number of items to return per page. If not provided, the default value will be used. - * } + * @var string $security_group[id] The security group to return all load rules for + * @var int $page The page number to request. If not provided, the first page will be returned. + * @var int $per_page The number of items to return per page. If not provided, the default value will be used. + * } */ public function __construct(array $queryParameters = []) { diff --git a/src/Core/Endpoint/GetSecurityGroupsRulesSecurityGroupRule.php b/src/Core/Endpoint/GetSecurityGroupsRulesSecurityGroupRule.php index 84e7a881..aac9c7ce 100644 --- a/src/Core/Endpoint/GetSecurityGroupsRulesSecurityGroupRule.php +++ b/src/Core/Endpoint/GetSecurityGroupsRulesSecurityGroupRule.php @@ -26,9 +26,7 @@ class GetSecurityGroupsRulesSecurityGroupRule extends \KatapultAPI\Core\Runtime\ * @param array $queryParameters { * * @var string $security_group_rule[id] The security group rule to return the details for. - * - * All 'security_group_rule[]' params are mutually exclusive, only one can be provided. - * } + * } */ public function __construct(array $queryParameters = []) { diff --git a/src/Core/Endpoint/GetTag.php b/src/Core/Endpoint/GetTag.php index e8b79433..ba02adb7 100644 --- a/src/Core/Endpoint/GetTag.php +++ b/src/Core/Endpoint/GetTag.php @@ -26,9 +26,7 @@ class GetTag extends \KatapultAPI\Core\Runtime\Client\BaseEndpoint implements \K * @param array $queryParameters { * * @var string $tag[id] The tag to load the details for. - * - * All 'tag[]' params are mutually exclusive, only one can be provided. - * } + * } */ public function __construct(array $queryParameters = []) { diff --git a/src/Core/Endpoint/GetTask.php b/src/Core/Endpoint/GetTask.php index cd7362e8..8d9cb8d9 100644 --- a/src/Core/Endpoint/GetTask.php +++ b/src/Core/Endpoint/GetTask.php @@ -25,7 +25,7 @@ class GetTask extends \KatapultAPI\Core\Runtime\Client\BaseEndpoint implements \ * * @param array $queryParameters { * - * @var string $task[id] All 'task[]' params are mutually exclusive, only one can be provided. + * @var string $task[id] * } */ public function __construct(array $queryParameters = []) diff --git a/src/Core/Endpoint/GetVMNIVMNI.php b/src/Core/Endpoint/GetVMNIVMNI.php index 9a7da413..51eeacad 100644 --- a/src/Core/Endpoint/GetVMNIVMNI.php +++ b/src/Core/Endpoint/GetVMNIVMNI.php @@ -26,9 +26,7 @@ class GetVMNIVMNI extends \KatapultAPI\Core\Runtime\Client\BaseEndpoint implemen * @param array $queryParameters { * * @var string $virtual_machine_network_interface[id] The network interface to show the information for. - * - * All 'virtual_machine_network_interface[]' params are mutually exclusive, only one can be provided. - * } + * } */ public function __construct(array $queryParameters = []) { diff --git a/src/Core/Endpoint/GetVirtualMachineGroup.php b/src/Core/Endpoint/GetVirtualMachineGroup.php index 9fb9a8a1..398522ef 100644 --- a/src/Core/Endpoint/GetVirtualMachineGroup.php +++ b/src/Core/Endpoint/GetVirtualMachineGroup.php @@ -26,9 +26,7 @@ class GetVirtualMachineGroup extends \KatapultAPI\Core\Runtime\Client\BaseEndpoi * @param array $queryParameters { * * @var string $virtual_machine_group[id] The virtual machine group to retrieve. - * - * All 'virtual_machine_group[]' params are mutually exclusive, only one can be provided. - * } + * } */ public function __construct(array $queryParameters = []) { diff --git a/src/Core/Endpoint/GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersion.php b/src/Core/Endpoint/GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersion.php index 14f8e5e4..dee3b0a1 100644 --- a/src/Core/Endpoint/GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersion.php +++ b/src/Core/Endpoint/GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersion.php @@ -25,9 +25,7 @@ class GetVirtualMachineNetworkInterfaceAvailableIpsAddressVersion extends \Katap * * @param array $queryParameters { * - * @var string $virtual_machine_network_interface[id] The network interface to get IP addresses for. - * - * All 'virtual_machine_network_interface[]' params are mutually exclusive, only one can be provided. + * @var string $virtual_machine_network_interface[id] The network interface to get IP addresses for * @var string $address_version The IP address version to return results for * } */ diff --git a/src/Core/Endpoint/GetVirtualMachinesBuildsVirtualMachineBuild.php b/src/Core/Endpoint/GetVirtualMachinesBuildsVirtualMachineBuild.php index b10f617a..aebcf450 100644 --- a/src/Core/Endpoint/GetVirtualMachinesBuildsVirtualMachineBuild.php +++ b/src/Core/Endpoint/GetVirtualMachinesBuildsVirtualMachineBuild.php @@ -25,7 +25,7 @@ class GetVirtualMachinesBuildsVirtualMachineBuild extends \KatapultAPI\Core\Runt * * @param array $queryParameters { * - * @var string $virtual_machine_build[id] All 'virtual_machine_build[]' params are mutually exclusive, only one can be provided. + * @var string $virtual_machine_build[id] * } */ public function __construct(array $queryParameters = []) diff --git a/src/Core/Endpoint/GetVirtualNetwork.php b/src/Core/Endpoint/GetVirtualNetwork.php index 41353e78..43a6e36e 100644 --- a/src/Core/Endpoint/GetVirtualNetwork.php +++ b/src/Core/Endpoint/GetVirtualNetwork.php @@ -26,9 +26,7 @@ class GetVirtualNetwork extends \KatapultAPI\Core\Runtime\Client\BaseEndpoint im * @param array $queryParameters { * * @var string $virtual_network[id] The virtual network to retrieve. - * - * All 'virtual_network[]' params are mutually exclusive, only one can be provided. - * } + * } */ public function __construct(array $queryParameters = []) { diff --git a/src/Core/Endpoint/PatchObjectStorageAccessKey.php b/src/Core/Endpoint/PatchObjectStorageAccessKey.php new file mode 100644 index 00000000..a1937aba --- /dev/null +++ b/src/Core/Endpoint/PatchObjectStorageAccessKey.php @@ -0,0 +1,99 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'PATCH'; + } + + public function getUri(): string + { + return '/object_storage/access_keys/access_key'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200|null + * + * @throws \KatapultAPI\Core\Exception\PatchObjectStorageAccessKeyBadRequestException + * @throws \KatapultAPI\Core\Exception\PatchObjectStorageAccessKeyForbiddenException + * @throws \KatapultAPI\Core\Exception\PatchObjectStorageAccessKeyNotFoundException + * @throws \KatapultAPI\Core\Exception\PatchObjectStorageAccessKeyNotAcceptableException + * @throws \KatapultAPI\Core\Exception\PatchObjectStorageAccessKeyUnprocessableEntityException + * @throws \KatapultAPI\Core\Exception\PatchObjectStorageAccessKeyTooManyRequestsException + * @throws \KatapultAPI\Core\Exception\PatchObjectStorageAccessKeyServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PatchObjectStorageAccessKeyBadRequestException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PatchObjectStorageAccessKeyForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PatchObjectStorageAccessKeyNotFoundException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseObjectStorageAccessKeyNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PatchObjectStorageAccessKeyNotAcceptableException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseTaskQueueingErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PatchObjectStorageAccessKeyUnprocessableEntityException($response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PatchObjectStorageAccessKeyTooManyRequestsException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PatchObjectStorageAccessKeyServiceUnavailableException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['OAuth2', 'Authenticator']; + } +} diff --git a/src/Core/Endpoint/PostObjectStorageAccessKeyGenerateCredentials.php b/src/Core/Endpoint/PostObjectStorageAccessKeyGenerateCredentials.php new file mode 100644 index 00000000..3bf792dc --- /dev/null +++ b/src/Core/Endpoint/PostObjectStorageAccessKeyGenerateCredentials.php @@ -0,0 +1,99 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/object_storage/access_keys/access_key/generate_credentials'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200|null + * + * @throws \KatapultAPI\Core\Exception\PostObjectStorageAccessKeyGenerateCredentialsBadRequestException + * @throws \KatapultAPI\Core\Exception\PostObjectStorageAccessKeyGenerateCredentialsForbiddenException + * @throws \KatapultAPI\Core\Exception\PostObjectStorageAccessKeyGenerateCredentialsNotFoundException + * @throws \KatapultAPI\Core\Exception\PostObjectStorageAccessKeyGenerateCredentialsNotAcceptableException + * @throws \KatapultAPI\Core\Exception\PostObjectStorageAccessKeyGenerateCredentialsUnprocessableEntityException + * @throws \KatapultAPI\Core\Exception\PostObjectStorageAccessKeyGenerateCredentialsTooManyRequestsException + * @throws \KatapultAPI\Core\Exception\PostObjectStorageAccessKeyGenerateCredentialsServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostObjectStorageAccessKeyGenerateCredentialsBadRequestException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostObjectStorageAccessKeyGenerateCredentialsForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostObjectStorageAccessKeyGenerateCredentialsNotFoundException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseObjectStorageAccessKeyNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostObjectStorageAccessKeyGenerateCredentialsNotAcceptableException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseTaskQueueingErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostObjectStorageAccessKeyGenerateCredentialsUnprocessableEntityException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseObjectStorageProvisioningErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostObjectStorageAccessKeyGenerateCredentialsTooManyRequestsException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostObjectStorageAccessKeyGenerateCredentialsServiceUnavailableException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['OAuth2', 'Authenticator']; + } +} diff --git a/src/Core/Endpoint/PostOrganizationObjectStorageObjectStorageCluster.php b/src/Core/Endpoint/PostOrganizationObjectStorageObjectStorageCluster.php new file mode 100644 index 00000000..b03ce278 --- /dev/null +++ b/src/Core/Endpoint/PostOrganizationObjectStorageObjectStorageCluster.php @@ -0,0 +1,99 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/organizations/organization/object_storage/object_storage_cluster'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201|null + * + * @throws \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterBadRequestException + * @throws \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterForbiddenException + * @throws \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterNotFoundException + * @throws \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterNotAcceptableException + * @throws \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterUnprocessableEntityException + * @throws \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterTooManyRequestsException + * @throws \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterBadRequestException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterNotFoundException($response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterNotAcceptableException($response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterUnprocessableEntityException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterTooManyRequestsException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterServiceUnavailableException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['OAuth2', 'Authenticator']; + } +} diff --git a/src/Core/Endpoint/PostOrganizationObjectStorageObjectStorageClusterAccessKeys.php b/src/Core/Endpoint/PostOrganizationObjectStorageObjectStorageClusterAccessKeys.php new file mode 100644 index 00000000..4cf82ded --- /dev/null +++ b/src/Core/Endpoint/PostOrganizationObjectStorageObjectStorageClusterAccessKeys.php @@ -0,0 +1,99 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/organizations/organization/object_storage/object_storage_cluster/access_keys'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201|null + * + * @throws \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterAccessKeysBadRequestException + * @throws \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterAccessKeysForbiddenException + * @throws \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterAccessKeysNotFoundException + * @throws \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterAccessKeysNotAcceptableException + * @throws \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterAccessKeysUnprocessableEntityException + * @throws \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterAccessKeysTooManyRequestsException + * @throws \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterAccessKeysServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterAccessKeysBadRequestException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterAccessKeysForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterAccessKeysNotFoundException($response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterAccessKeysNotAcceptableException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseObjectInTrashResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterAccessKeysUnprocessableEntityException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterAccessKeysTooManyRequestsException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostOrganizationObjectStorageObjectStorageClusterAccessKeysServiceUnavailableException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['OAuth2', 'Authenticator']; + } +} diff --git a/src/Core/Endpoint/PostVirtualMachineNetworkInterfaceAttach.php b/src/Core/Endpoint/PostVirtualMachineNetworkInterfaceAttach.php new file mode 100644 index 00000000..84cbf2fe --- /dev/null +++ b/src/Core/Endpoint/PostVirtualMachineNetworkInterfaceAttach.php @@ -0,0 +1,100 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/virtual_machine_network_interfaces/virtual_machine_network_interface/attach'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200|null + * + * @throws \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceAttachBadRequestException + * @throws \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceAttachForbiddenException + * @throws \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceAttachNotFoundException + * @throws \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceAttachNotAcceptableException + * @throws \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceAttachUnprocessableEntityException + * @throws \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceAttachTooManyRequestsException + * @throws \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceAttachServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceAttachBadRequestException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceAttachForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceAttachNotFoundException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceAttachNotAcceptableException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseTaskQueueingErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceAttachUnprocessableEntityException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceAttachTooManyRequestsException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceAttachServiceUnavailableException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['OAuth2', 'Authenticator']; + } +} diff --git a/src/Core/Endpoint/PostVirtualMachineNetworkInterfaceDetach.php b/src/Core/Endpoint/PostVirtualMachineNetworkInterfaceDetach.php new file mode 100644 index 00000000..42023fb9 --- /dev/null +++ b/src/Core/Endpoint/PostVirtualMachineNetworkInterfaceDetach.php @@ -0,0 +1,100 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/virtual_machine_network_interfaces/virtual_machine_network_interface/detach'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200|null + * + * @throws \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceDetachBadRequestException + * @throws \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceDetachForbiddenException + * @throws \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceDetachNotFoundException + * @throws \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceDetachNotAcceptableException + * @throws \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceDetachUnprocessableEntityException + * @throws \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceDetachTooManyRequestsException + * @throws \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceDetachServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceDetachBadRequestException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceDetachForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceDetachNotFoundException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceNotFoundResponse', 'json'), $response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceDetachNotAcceptableException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseTaskQueueingErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceDetachUnprocessableEntityException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceDetachTooManyRequestsException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfaceDetachServiceUnavailableException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['OAuth2', 'Authenticator']; + } +} diff --git a/src/Core/Endpoint/PostVirtualMachineNetworkInterfaces.php b/src/Core/Endpoint/PostVirtualMachineNetworkInterfaces.php new file mode 100644 index 00000000..3507235c --- /dev/null +++ b/src/Core/Endpoint/PostVirtualMachineNetworkInterfaces.php @@ -0,0 +1,100 @@ +body = $requestBody; + } + + public function getMethod(): string + { + return 'POST'; + } + + public function getUri(): string + { + return '/virtual_machines/virtual_machine/network_interfaces'; + } + + public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array + { + if ($this->body instanceof \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostBody) { + return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')]; + } + + return [[], null]; + } + + public function getExtraHeaders(): array + { + return ['Accept' => ['application/json']]; + } + + /** + * @return \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200|null + * + * @throws \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfacesBadRequestException + * @throws \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfacesForbiddenException + * @throws \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfacesNotFoundException + * @throws \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfacesNotAcceptableException + * @throws \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfacesUnprocessableEntityException + * @throws \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfacesTooManyRequestsException + * @throws \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfacesServiceUnavailableException + */ + protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) + { + $status = $response->getStatusCode(); + $body = (string) $response->getBody(); + if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) { + return $serializer->deserialize($body, 'KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200', 'json'); + } + if (is_null($contentType) === false && (400 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfacesBadRequestException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response', 'json'), $response); + } + if (is_null($contentType) === false && (403 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfacesForbiddenException($response); + } + if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfacesNotFoundException($response); + } + if (is_null($contentType) === false && (406 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfacesNotAcceptableException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseObjectInTrashResponse', 'json'), $response); + } + if (is_null($contentType) === false && (422 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfacesUnprocessableEntityException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseValidationErrorResponse', 'json'), $response); + } + if (is_null($contentType) === false && (429 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfacesTooManyRequestsException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response', 'json'), $response); + } + if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) { + throw new \KatapultAPI\Core\Exception\PostVirtualMachineNetworkInterfacesServiceUnavailableException($serializer->deserialize($body, 'KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response', 'json'), $response); + } + } + + public function getAuthenticationScopes(): array + { + return ['OAuth2', 'Authenticator']; + } +} diff --git a/src/Core/Exception/DeleteObjectStorageAccessKeyBadRequestException.php b/src/Core/Exception/DeleteObjectStorageAccessKeyBadRequestException.php new file mode 100644 index 00000000..75e613f0 --- /dev/null +++ b/src/Core/Exception/DeleteObjectStorageAccessKeyBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/DeleteObjectStorageAccessKeyForbiddenException.php b/src/Core/Exception/DeleteObjectStorageAccessKeyForbiddenException.php new file mode 100644 index 00000000..41f3151b --- /dev/null +++ b/src/Core/Exception/DeleteObjectStorageAccessKeyForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/DeleteObjectStorageAccessKeyGatewayTimeoutException.php b/src/Core/Exception/DeleteObjectStorageAccessKeyGatewayTimeoutException.php new file mode 100644 index 00000000..b5bd36ab --- /dev/null +++ b/src/Core/Exception/DeleteObjectStorageAccessKeyGatewayTimeoutException.php @@ -0,0 +1,40 @@ +responseNetworkErrorResponse = $responseNetworkErrorResponse; + $this->response = $response; + } + + public function getResponseNetworkErrorResponse(): \KatapultAPI\Core\Model\ResponseNetworkErrorResponse + { + return $this->responseNetworkErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/DeleteObjectStorageAccessKeyNotFoundException.php b/src/Core/Exception/DeleteObjectStorageAccessKeyNotFoundException.php new file mode 100644 index 00000000..779d3432 --- /dev/null +++ b/src/Core/Exception/DeleteObjectStorageAccessKeyNotFoundException.php @@ -0,0 +1,40 @@ +responseObjectStorageAccessKeyNotFoundResponse = $responseObjectStorageAccessKeyNotFoundResponse; + $this->response = $response; + } + + public function getResponseObjectStorageAccessKeyNotFoundResponse(): \KatapultAPI\Core\Model\ResponseObjectStorageAccessKeyNotFoundResponse + { + return $this->responseObjectStorageAccessKeyNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/DeleteObjectStorageAccessKeyServiceUnavailableException.php b/src/Core/Exception/DeleteObjectStorageAccessKeyServiceUnavailableException.php new file mode 100644 index 00000000..ba899ffb --- /dev/null +++ b/src/Core/Exception/DeleteObjectStorageAccessKeyServiceUnavailableException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator503Response = $responseAPIAuthenticator503Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator503Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response + { + return $this->responseAPIAuthenticator503Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/DeleteObjectStorageAccessKeyTooManyRequestsException.php b/src/Core/Exception/DeleteObjectStorageAccessKeyTooManyRequestsException.php new file mode 100644 index 00000000..7f410ab1 --- /dev/null +++ b/src/Core/Exception/DeleteObjectStorageAccessKeyTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterBadRequestException.php b/src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterBadRequestException.php new file mode 100644 index 00000000..1595b44d --- /dev/null +++ b/src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterForbiddenException.php b/src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterForbiddenException.php new file mode 100644 index 00000000..fd47772a --- /dev/null +++ b/src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterNotAcceptableException.php b/src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterNotAcceptableException.php new file mode 100644 index 00000000..3b2f8df6 --- /dev/null +++ b/src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterNotAcceptableException.php @@ -0,0 +1,40 @@ +responseObjectInTrashResponse = $responseObjectInTrashResponse; + $this->response = $response; + } + + public function getResponseObjectInTrashResponse(): \KatapultAPI\Core\Model\ResponseObjectInTrashResponse + { + return $this->responseObjectInTrashResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterNotFoundException.php b/src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterNotFoundException.php new file mode 100644 index 00000000..160c2adf --- /dev/null +++ b/src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterServiceUnavailableException.php b/src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterServiceUnavailableException.php new file mode 100644 index 00000000..9dad6afb --- /dev/null +++ b/src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterServiceUnavailableException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator503Response = $responseAPIAuthenticator503Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator503Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response + { + return $this->responseAPIAuthenticator503Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterTooManyRequestsException.php b/src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterTooManyRequestsException.php new file mode 100644 index 00000000..1ec41d63 --- /dev/null +++ b/src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterUnprocessableEntityException.php b/src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterUnprocessableEntityException.php new file mode 100644 index 00000000..181e1daf --- /dev/null +++ b/src/Core/Exception/DeleteOrganizationObjectStorageObjectStorageClusterUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \KatapultAPI\Core\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/DeleteVirtualMachineNetworkInterfaceBadRequestException.php b/src/Core/Exception/DeleteVirtualMachineNetworkInterfaceBadRequestException.php new file mode 100644 index 00000000..a84cecbc --- /dev/null +++ b/src/Core/Exception/DeleteVirtualMachineNetworkInterfaceBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/DeleteVirtualMachineNetworkInterfaceConflictException.php b/src/Core/Exception/DeleteVirtualMachineNetworkInterfaceConflictException.php new file mode 100644 index 00000000..ca72a675 --- /dev/null +++ b/src/Core/Exception/DeleteVirtualMachineNetworkInterfaceConflictException.php @@ -0,0 +1,40 @@ +responseDeletionRestrictedResponse = $responseDeletionRestrictedResponse; + $this->response = $response; + } + + public function getResponseDeletionRestrictedResponse(): \KatapultAPI\Core\Model\ResponseDeletionRestrictedResponse + { + return $this->responseDeletionRestrictedResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/DeleteVirtualMachineNetworkInterfaceForbiddenException.php b/src/Core/Exception/DeleteVirtualMachineNetworkInterfaceForbiddenException.php new file mode 100644 index 00000000..6970e690 --- /dev/null +++ b/src/Core/Exception/DeleteVirtualMachineNetworkInterfaceForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/DeleteVirtualMachineNetworkInterfaceNotFoundException.php b/src/Core/Exception/DeleteVirtualMachineNetworkInterfaceNotFoundException.php new file mode 100644 index 00000000..a6ef68e1 --- /dev/null +++ b/src/Core/Exception/DeleteVirtualMachineNetworkInterfaceNotFoundException.php @@ -0,0 +1,40 @@ +responseVirtualMachineNetworkInterfaceNotFoundResponse = $responseVirtualMachineNetworkInterfaceNotFoundResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineNetworkInterfaceNotFoundResponse(): \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceNotFoundResponse + { + return $this->responseVirtualMachineNetworkInterfaceNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/DeleteVirtualMachineNetworkInterfaceServiceUnavailableException.php b/src/Core/Exception/DeleteVirtualMachineNetworkInterfaceServiceUnavailableException.php new file mode 100644 index 00000000..370f5a5b --- /dev/null +++ b/src/Core/Exception/DeleteVirtualMachineNetworkInterfaceServiceUnavailableException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator503Response = $responseAPIAuthenticator503Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator503Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response + { + return $this->responseAPIAuthenticator503Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/DeleteVirtualMachineNetworkInterfaceTooManyRequestsException.php b/src/Core/Exception/DeleteVirtualMachineNetworkInterfaceTooManyRequestsException.php new file mode 100644 index 00000000..9f0c5ca6 --- /dev/null +++ b/src/Core/Exception/DeleteVirtualMachineNetworkInterfaceTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/DeleteVirtualMachineNetworkInterfaceUnprocessableEntityException.php b/src/Core/Exception/DeleteVirtualMachineNetworkInterfaceUnprocessableEntityException.php new file mode 100644 index 00000000..7df8bb5c --- /dev/null +++ b/src/Core/Exception/DeleteVirtualMachineNetworkInterfaceUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \KatapultAPI\Core\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/GetObjectStorageAccessKeyBadRequestException.php b/src/Core/Exception/GetObjectStorageAccessKeyBadRequestException.php new file mode 100644 index 00000000..ab28f977 --- /dev/null +++ b/src/Core/Exception/GetObjectStorageAccessKeyBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/GetObjectStorageAccessKeyForbiddenException.php b/src/Core/Exception/GetObjectStorageAccessKeyForbiddenException.php new file mode 100644 index 00000000..f8e20955 --- /dev/null +++ b/src/Core/Exception/GetObjectStorageAccessKeyForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/GetObjectStorageAccessKeyNotFoundException.php b/src/Core/Exception/GetObjectStorageAccessKeyNotFoundException.php new file mode 100644 index 00000000..955e1e56 --- /dev/null +++ b/src/Core/Exception/GetObjectStorageAccessKeyNotFoundException.php @@ -0,0 +1,40 @@ +responseObjectStorageAccessKeyNotFoundResponse = $responseObjectStorageAccessKeyNotFoundResponse; + $this->response = $response; + } + + public function getResponseObjectStorageAccessKeyNotFoundResponse(): \KatapultAPI\Core\Model\ResponseObjectStorageAccessKeyNotFoundResponse + { + return $this->responseObjectStorageAccessKeyNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/GetObjectStorageAccessKeyServiceUnavailableException.php b/src/Core/Exception/GetObjectStorageAccessKeyServiceUnavailableException.php new file mode 100644 index 00000000..f3ffcb8a --- /dev/null +++ b/src/Core/Exception/GetObjectStorageAccessKeyServiceUnavailableException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator503Response = $responseAPIAuthenticator503Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator503Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response + { + return $this->responseAPIAuthenticator503Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/GetObjectStorageAccessKeyTooManyRequestsException.php b/src/Core/Exception/GetObjectStorageAccessKeyTooManyRequestsException.php new file mode 100644 index 00000000..269b859e --- /dev/null +++ b/src/Core/Exception/GetObjectStorageAccessKeyTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/GetOrganizationObjectStorageAccessKeysBadRequestException.php b/src/Core/Exception/GetOrganizationObjectStorageAccessKeysBadRequestException.php new file mode 100644 index 00000000..00d5c14e --- /dev/null +++ b/src/Core/Exception/GetOrganizationObjectStorageAccessKeysBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/GetOrganizationObjectStorageAccessKeysForbiddenException.php b/src/Core/Exception/GetOrganizationObjectStorageAccessKeysForbiddenException.php new file mode 100644 index 00000000..97132ccc --- /dev/null +++ b/src/Core/Exception/GetOrganizationObjectStorageAccessKeysForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/GetOrganizationObjectStorageAccessKeysNotFoundException.php b/src/Core/Exception/GetOrganizationObjectStorageAccessKeysNotFoundException.php new file mode 100644 index 00000000..3ac9eb37 --- /dev/null +++ b/src/Core/Exception/GetOrganizationObjectStorageAccessKeysNotFoundException.php @@ -0,0 +1,40 @@ +responseOrganizationNotFoundResponse = $responseOrganizationNotFoundResponse; + $this->response = $response; + } + + public function getResponseOrganizationNotFoundResponse(): \KatapultAPI\Core\Model\ResponseOrganizationNotFoundResponse + { + return $this->responseOrganizationNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/GetOrganizationObjectStorageAccessKeysServiceUnavailableException.php b/src/Core/Exception/GetOrganizationObjectStorageAccessKeysServiceUnavailableException.php new file mode 100644 index 00000000..648187a5 --- /dev/null +++ b/src/Core/Exception/GetOrganizationObjectStorageAccessKeysServiceUnavailableException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator503Response = $responseAPIAuthenticator503Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator503Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response + { + return $this->responseAPIAuthenticator503Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/GetOrganizationObjectStorageAccessKeysTooManyRequestsException.php b/src/Core/Exception/GetOrganizationObjectStorageAccessKeysTooManyRequestsException.php new file mode 100644 index 00000000..e0932b40 --- /dev/null +++ b/src/Core/Exception/GetOrganizationObjectStorageAccessKeysTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/GetOrganizationObjectStorageObjectStorageClusterBadRequestException.php b/src/Core/Exception/GetOrganizationObjectStorageObjectStorageClusterBadRequestException.php new file mode 100644 index 00000000..eddc46e4 --- /dev/null +++ b/src/Core/Exception/GetOrganizationObjectStorageObjectStorageClusterBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/GetOrganizationObjectStorageObjectStorageClusterForbiddenException.php b/src/Core/Exception/GetOrganizationObjectStorageObjectStorageClusterForbiddenException.php new file mode 100644 index 00000000..3f60ab00 --- /dev/null +++ b/src/Core/Exception/GetOrganizationObjectStorageObjectStorageClusterForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/GetOrganizationObjectStorageObjectStorageClusterNotAcceptableException.php b/src/Core/Exception/GetOrganizationObjectStorageObjectStorageClusterNotAcceptableException.php new file mode 100644 index 00000000..405d07d1 --- /dev/null +++ b/src/Core/Exception/GetOrganizationObjectStorageObjectStorageClusterNotAcceptableException.php @@ -0,0 +1,40 @@ +responseObjectInTrashResponse = $responseObjectInTrashResponse; + $this->response = $response; + } + + public function getResponseObjectInTrashResponse(): \KatapultAPI\Core\Model\ResponseObjectInTrashResponse + { + return $this->responseObjectInTrashResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/GetOrganizationObjectStorageObjectStorageClusterNotFoundException.php b/src/Core/Exception/GetOrganizationObjectStorageObjectStorageClusterNotFoundException.php new file mode 100644 index 00000000..4eaac642 --- /dev/null +++ b/src/Core/Exception/GetOrganizationObjectStorageObjectStorageClusterNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/GetOrganizationObjectStorageObjectStorageClusterServiceUnavailableException.php b/src/Core/Exception/GetOrganizationObjectStorageObjectStorageClusterServiceUnavailableException.php new file mode 100644 index 00000000..33dfb589 --- /dev/null +++ b/src/Core/Exception/GetOrganizationObjectStorageObjectStorageClusterServiceUnavailableException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator503Response = $responseAPIAuthenticator503Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator503Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response + { + return $this->responseAPIAuthenticator503Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/GetOrganizationObjectStorageObjectStorageClusterTooManyRequestsException.php b/src/Core/Exception/GetOrganizationObjectStorageObjectStorageClusterTooManyRequestsException.php new file mode 100644 index 00000000..d74b18b2 --- /dev/null +++ b/src/Core/Exception/GetOrganizationObjectStorageObjectStorageClusterTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PatchObjectStorageAccessKeyBadRequestException.php b/src/Core/Exception/PatchObjectStorageAccessKeyBadRequestException.php new file mode 100644 index 00000000..d2f9ffb9 --- /dev/null +++ b/src/Core/Exception/PatchObjectStorageAccessKeyBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PatchObjectStorageAccessKeyForbiddenException.php b/src/Core/Exception/PatchObjectStorageAccessKeyForbiddenException.php new file mode 100644 index 00000000..2ff7770f --- /dev/null +++ b/src/Core/Exception/PatchObjectStorageAccessKeyForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PatchObjectStorageAccessKeyNotAcceptableException.php b/src/Core/Exception/PatchObjectStorageAccessKeyNotAcceptableException.php new file mode 100644 index 00000000..fffdc22e --- /dev/null +++ b/src/Core/Exception/PatchObjectStorageAccessKeyNotAcceptableException.php @@ -0,0 +1,40 @@ +responseTaskQueueingErrorResponse = $responseTaskQueueingErrorResponse; + $this->response = $response; + } + + public function getResponseTaskQueueingErrorResponse(): \KatapultAPI\Core\Model\ResponseTaskQueueingErrorResponse + { + return $this->responseTaskQueueingErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PatchObjectStorageAccessKeyNotFoundException.php b/src/Core/Exception/PatchObjectStorageAccessKeyNotFoundException.php new file mode 100644 index 00000000..5cc794fc --- /dev/null +++ b/src/Core/Exception/PatchObjectStorageAccessKeyNotFoundException.php @@ -0,0 +1,40 @@ +responseObjectStorageAccessKeyNotFoundResponse = $responseObjectStorageAccessKeyNotFoundResponse; + $this->response = $response; + } + + public function getResponseObjectStorageAccessKeyNotFoundResponse(): \KatapultAPI\Core\Model\ResponseObjectStorageAccessKeyNotFoundResponse + { + return $this->responseObjectStorageAccessKeyNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PatchObjectStorageAccessKeyServiceUnavailableException.php b/src/Core/Exception/PatchObjectStorageAccessKeyServiceUnavailableException.php new file mode 100644 index 00000000..3b6ea503 --- /dev/null +++ b/src/Core/Exception/PatchObjectStorageAccessKeyServiceUnavailableException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator503Response = $responseAPIAuthenticator503Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator503Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response + { + return $this->responseAPIAuthenticator503Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PatchObjectStorageAccessKeyTooManyRequestsException.php b/src/Core/Exception/PatchObjectStorageAccessKeyTooManyRequestsException.php new file mode 100644 index 00000000..b214ce8f --- /dev/null +++ b/src/Core/Exception/PatchObjectStorageAccessKeyTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PatchObjectStorageAccessKeyUnprocessableEntityException.php b/src/Core/Exception/PatchObjectStorageAccessKeyUnprocessableEntityException.php new file mode 100644 index 00000000..f575d887 --- /dev/null +++ b/src/Core/Exception/PatchObjectStorageAccessKeyUnprocessableEntityException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsBadRequestException.php b/src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsBadRequestException.php new file mode 100644 index 00000000..294995e2 --- /dev/null +++ b/src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsForbiddenException.php b/src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsForbiddenException.php new file mode 100644 index 00000000..422379cd --- /dev/null +++ b/src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsNotAcceptableException.php b/src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsNotAcceptableException.php new file mode 100644 index 00000000..5d9c7f0b --- /dev/null +++ b/src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsNotAcceptableException.php @@ -0,0 +1,40 @@ +responseTaskQueueingErrorResponse = $responseTaskQueueingErrorResponse; + $this->response = $response; + } + + public function getResponseTaskQueueingErrorResponse(): \KatapultAPI\Core\Model\ResponseTaskQueueingErrorResponse + { + return $this->responseTaskQueueingErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsNotFoundException.php b/src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsNotFoundException.php new file mode 100644 index 00000000..2f50a913 --- /dev/null +++ b/src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsNotFoundException.php @@ -0,0 +1,40 @@ +responseObjectStorageAccessKeyNotFoundResponse = $responseObjectStorageAccessKeyNotFoundResponse; + $this->response = $response; + } + + public function getResponseObjectStorageAccessKeyNotFoundResponse(): \KatapultAPI\Core\Model\ResponseObjectStorageAccessKeyNotFoundResponse + { + return $this->responseObjectStorageAccessKeyNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsServiceUnavailableException.php b/src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsServiceUnavailableException.php new file mode 100644 index 00000000..3a6863e7 --- /dev/null +++ b/src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsServiceUnavailableException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator503Response = $responseAPIAuthenticator503Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator503Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response + { + return $this->responseAPIAuthenticator503Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsTooManyRequestsException.php b/src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsTooManyRequestsException.php new file mode 100644 index 00000000..cf0670f4 --- /dev/null +++ b/src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsUnprocessableEntityException.php b/src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsUnprocessableEntityException.php new file mode 100644 index 00000000..242e9b74 --- /dev/null +++ b/src/Core/Exception/PostObjectStorageAccessKeyGenerateCredentialsUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseObjectStorageProvisioningErrorResponse = $responseObjectStorageProvisioningErrorResponse; + $this->response = $response; + } + + public function getResponseObjectStorageProvisioningErrorResponse(): \KatapultAPI\Core\Model\ResponseObjectStorageProvisioningErrorResponse + { + return $this->responseObjectStorageProvisioningErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysBadRequestException.php b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysBadRequestException.php new file mode 100644 index 00000000..a49bb395 --- /dev/null +++ b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysForbiddenException.php b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysForbiddenException.php new file mode 100644 index 00000000..9e4b73e5 --- /dev/null +++ b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysNotAcceptableException.php b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysNotAcceptableException.php new file mode 100644 index 00000000..b6361baf --- /dev/null +++ b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysNotAcceptableException.php @@ -0,0 +1,40 @@ +responseObjectInTrashResponse = $responseObjectInTrashResponse; + $this->response = $response; + } + + public function getResponseObjectInTrashResponse(): \KatapultAPI\Core\Model\ResponseObjectInTrashResponse + { + return $this->responseObjectInTrashResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysNotFoundException.php b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysNotFoundException.php new file mode 100644 index 00000000..61d34131 --- /dev/null +++ b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysServiceUnavailableException.php b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysServiceUnavailableException.php new file mode 100644 index 00000000..effc208e --- /dev/null +++ b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysServiceUnavailableException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator503Response = $responseAPIAuthenticator503Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator503Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response + { + return $this->responseAPIAuthenticator503Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysTooManyRequestsException.php b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysTooManyRequestsException.php new file mode 100644 index 00000000..0990fab0 --- /dev/null +++ b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysUnprocessableEntityException.php b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysUnprocessableEntityException.php new file mode 100644 index 00000000..82668f1b --- /dev/null +++ b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterAccessKeysUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \KatapultAPI\Core\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterBadRequestException.php b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterBadRequestException.php new file mode 100644 index 00000000..9b50307d --- /dev/null +++ b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterForbiddenException.php b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterForbiddenException.php new file mode 100644 index 00000000..e7342af2 --- /dev/null +++ b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterNotAcceptableException.php b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterNotAcceptableException.php new file mode 100644 index 00000000..88291727 --- /dev/null +++ b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterNotAcceptableException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterNotFoundException.php b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterNotFoundException.php new file mode 100644 index 00000000..be4ffaa7 --- /dev/null +++ b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterServiceUnavailableException.php b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterServiceUnavailableException.php new file mode 100644 index 00000000..ff05078a --- /dev/null +++ b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterServiceUnavailableException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator503Response = $responseAPIAuthenticator503Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator503Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response + { + return $this->responseAPIAuthenticator503Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterTooManyRequestsException.php b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterTooManyRequestsException.php new file mode 100644 index 00000000..91f30b20 --- /dev/null +++ b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterUnprocessableEntityException.php b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterUnprocessableEntityException.php new file mode 100644 index 00000000..3125e9b6 --- /dev/null +++ b/src/Core/Exception/PostOrganizationObjectStorageObjectStorageClusterUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \KatapultAPI\Core\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachBadRequestException.php b/src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachBadRequestException.php new file mode 100644 index 00000000..17c5b94f --- /dev/null +++ b/src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachForbiddenException.php b/src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachForbiddenException.php new file mode 100644 index 00000000..86f6a2e3 --- /dev/null +++ b/src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachNotAcceptableException.php b/src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachNotAcceptableException.php new file mode 100644 index 00000000..0b7ee4c9 --- /dev/null +++ b/src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachNotAcceptableException.php @@ -0,0 +1,40 @@ +responseTaskQueueingErrorResponse = $responseTaskQueueingErrorResponse; + $this->response = $response; + } + + public function getResponseTaskQueueingErrorResponse(): \KatapultAPI\Core\Model\ResponseTaskQueueingErrorResponse + { + return $this->responseTaskQueueingErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachNotFoundException.php b/src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachNotFoundException.php new file mode 100644 index 00000000..6cd54368 --- /dev/null +++ b/src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachNotFoundException.php @@ -0,0 +1,40 @@ +responseVirtualMachineNetworkInterfaceNotFoundResponse = $responseVirtualMachineNetworkInterfaceNotFoundResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineNetworkInterfaceNotFoundResponse(): \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceNotFoundResponse + { + return $this->responseVirtualMachineNetworkInterfaceNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachServiceUnavailableException.php b/src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachServiceUnavailableException.php new file mode 100644 index 00000000..e1b130af --- /dev/null +++ b/src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachServiceUnavailableException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator503Response = $responseAPIAuthenticator503Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator503Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response + { + return $this->responseAPIAuthenticator503Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachTooManyRequestsException.php b/src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachTooManyRequestsException.php new file mode 100644 index 00000000..808e444d --- /dev/null +++ b/src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachUnprocessableEntityException.php b/src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachUnprocessableEntityException.php new file mode 100644 index 00000000..1edd2b99 --- /dev/null +++ b/src/Core/Exception/PostVirtualMachineNetworkInterfaceAttachUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseVirtualMachineNetworkInterfaceAlreadyAttachedResponse = $responseVirtualMachineNetworkInterfaceAlreadyAttachedResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponse(): \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponse + { + return $this->responseVirtualMachineNetworkInterfaceAlreadyAttachedResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachBadRequestException.php b/src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachBadRequestException.php new file mode 100644 index 00000000..6137adba --- /dev/null +++ b/src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachForbiddenException.php b/src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachForbiddenException.php new file mode 100644 index 00000000..595d85e2 --- /dev/null +++ b/src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachNotAcceptableException.php b/src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachNotAcceptableException.php new file mode 100644 index 00000000..1342ace9 --- /dev/null +++ b/src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachNotAcceptableException.php @@ -0,0 +1,40 @@ +responseTaskQueueingErrorResponse = $responseTaskQueueingErrorResponse; + $this->response = $response; + } + + public function getResponseTaskQueueingErrorResponse(): \KatapultAPI\Core\Model\ResponseTaskQueueingErrorResponse + { + return $this->responseTaskQueueingErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachNotFoundException.php b/src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachNotFoundException.php new file mode 100644 index 00000000..ef5facf0 --- /dev/null +++ b/src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachNotFoundException.php @@ -0,0 +1,40 @@ +responseVirtualMachineNetworkInterfaceNotFoundResponse = $responseVirtualMachineNetworkInterfaceNotFoundResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineNetworkInterfaceNotFoundResponse(): \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceNotFoundResponse + { + return $this->responseVirtualMachineNetworkInterfaceNotFoundResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachServiceUnavailableException.php b/src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachServiceUnavailableException.php new file mode 100644 index 00000000..26a887e8 --- /dev/null +++ b/src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachServiceUnavailableException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator503Response = $responseAPIAuthenticator503Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator503Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response + { + return $this->responseAPIAuthenticator503Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachTooManyRequestsException.php b/src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachTooManyRequestsException.php new file mode 100644 index 00000000..c3c9a8e1 --- /dev/null +++ b/src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachUnprocessableEntityException.php b/src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachUnprocessableEntityException.php new file mode 100644 index 00000000..28eee348 --- /dev/null +++ b/src/Core/Exception/PostVirtualMachineNetworkInterfaceDetachUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseVirtualMachineNetworkInterfaceAlreadyDetachedResponse = $responseVirtualMachineNetworkInterfaceAlreadyDetachedResponse; + $this->response = $response; + } + + public function getResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponse(): \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponse + { + return $this->responseVirtualMachineNetworkInterfaceAlreadyDetachedResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostVirtualMachineNetworkInterfacesBadRequestException.php b/src/Core/Exception/PostVirtualMachineNetworkInterfacesBadRequestException.php new file mode 100644 index 00000000..2381f0be --- /dev/null +++ b/src/Core/Exception/PostVirtualMachineNetworkInterfacesBadRequestException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator400Response = $responseAPIAuthenticator400Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator400Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response + { + return $this->responseAPIAuthenticator400Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostVirtualMachineNetworkInterfacesForbiddenException.php b/src/Core/Exception/PostVirtualMachineNetworkInterfacesForbiddenException.php new file mode 100644 index 00000000..04a0d67b --- /dev/null +++ b/src/Core/Exception/PostVirtualMachineNetworkInterfacesForbiddenException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostVirtualMachineNetworkInterfacesNotAcceptableException.php b/src/Core/Exception/PostVirtualMachineNetworkInterfacesNotAcceptableException.php new file mode 100644 index 00000000..b69ab540 --- /dev/null +++ b/src/Core/Exception/PostVirtualMachineNetworkInterfacesNotAcceptableException.php @@ -0,0 +1,40 @@ +responseObjectInTrashResponse = $responseObjectInTrashResponse; + $this->response = $response; + } + + public function getResponseObjectInTrashResponse(): \KatapultAPI\Core\Model\ResponseObjectInTrashResponse + { + return $this->responseObjectInTrashResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostVirtualMachineNetworkInterfacesNotFoundException.php b/src/Core/Exception/PostVirtualMachineNetworkInterfacesNotFoundException.php new file mode 100644 index 00000000..3150dc1e --- /dev/null +++ b/src/Core/Exception/PostVirtualMachineNetworkInterfacesNotFoundException.php @@ -0,0 +1,30 @@ +response = $response; + } + + public function getResponse(): ?\Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostVirtualMachineNetworkInterfacesServiceUnavailableException.php b/src/Core/Exception/PostVirtualMachineNetworkInterfacesServiceUnavailableException.php new file mode 100644 index 00000000..e06db33d --- /dev/null +++ b/src/Core/Exception/PostVirtualMachineNetworkInterfacesServiceUnavailableException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator503Response = $responseAPIAuthenticator503Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator503Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response + { + return $this->responseAPIAuthenticator503Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostVirtualMachineNetworkInterfacesTooManyRequestsException.php b/src/Core/Exception/PostVirtualMachineNetworkInterfacesTooManyRequestsException.php new file mode 100644 index 00000000..19a955f4 --- /dev/null +++ b/src/Core/Exception/PostVirtualMachineNetworkInterfacesTooManyRequestsException.php @@ -0,0 +1,40 @@ +responseAPIAuthenticator429Response = $responseAPIAuthenticator429Response; + $this->response = $response; + } + + public function getResponseAPIAuthenticator429Response(): \KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response + { + return $this->responseAPIAuthenticator429Response; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Exception/PostVirtualMachineNetworkInterfacesUnprocessableEntityException.php b/src/Core/Exception/PostVirtualMachineNetworkInterfacesUnprocessableEntityException.php new file mode 100644 index 00000000..3e21b2bb --- /dev/null +++ b/src/Core/Exception/PostVirtualMachineNetworkInterfacesUnprocessableEntityException.php @@ -0,0 +1,40 @@ +responseValidationErrorResponse = $responseValidationErrorResponse; + $this->response = $response; + } + + public function getResponseValidationErrorResponse(): \KatapultAPI\Core\Model\ResponseValidationErrorResponse + { + return $this->responseValidationErrorResponse; + } + + public function getResponse(): \Psr\Http\Message\ResponseInterface + { + return $this->response; + } +} diff --git a/src/Core/Model/AddressListEntriesAddressListEntryDeleteBody.php b/src/Core/Model/AddressListEntriesAddressListEntryDeleteBody.php index 62817bbe..64b9911c 100644 --- a/src/Core/Model/AddressListEntriesAddressListEntryDeleteBody.php +++ b/src/Core/Model/AddressListEntriesAddressListEntryDeleteBody.php @@ -22,23 +22,15 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'address_list_entry[]' params are mutually exclusive, only one can be provided. - * * @var AddressListEntryLookup */ protected $addressListEntry; - /** - * All 'address_list_entry[]' params are mutually exclusive, only one can be provided. - */ public function getAddressListEntry(): AddressListEntryLookup { return $this->addressListEntry; } - /** - * All 'address_list_entry[]' params are mutually exclusive, only one can be provided. - */ public function setAddressListEntry(AddressListEntryLookup $addressListEntry): self { $this->initialized['addressListEntry'] = true; diff --git a/src/Core/Model/AddressListEntriesAddressListEntryPatchBody.php b/src/Core/Model/AddressListEntriesAddressListEntryPatchBody.php index e7f39799..a7177410 100644 --- a/src/Core/Model/AddressListEntriesAddressListEntryPatchBody.php +++ b/src/Core/Model/AddressListEntriesAddressListEntryPatchBody.php @@ -22,29 +22,19 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'address_list_entry[]' params are mutually exclusive, only one can be provided. - * * @var AddressListEntryLookup */ protected $addressListEntry; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var AddressListEntryArguments */ protected $properties; - /** - * All 'address_list_entry[]' params are mutually exclusive, only one can be provided. - */ public function getAddressListEntry(): AddressListEntryLookup { return $this->addressListEntry; } - /** - * All 'address_list_entry[]' params are mutually exclusive, only one can be provided. - */ public function setAddressListEntry(AddressListEntryLookup $addressListEntry): self { $this->initialized['addressListEntry'] = true; @@ -53,17 +43,11 @@ public function setAddressListEntry(AddressListEntryLookup $addressListEntry): s return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): AddressListEntryArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(AddressListEntryArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/AddressListsAddressListDeleteBody.php b/src/Core/Model/AddressListsAddressListDeleteBody.php index 66edc0de..7e00ae17 100644 --- a/src/Core/Model/AddressListsAddressListDeleteBody.php +++ b/src/Core/Model/AddressListsAddressListDeleteBody.php @@ -22,23 +22,15 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'address_list[]' params are mutually exclusive, only one can be provided. - * * @var AddressListLookup */ protected $addressList; - /** - * All 'address_list[]' params are mutually exclusive, only one can be provided. - */ public function getAddressList(): AddressListLookup { return $this->addressList; } - /** - * All 'address_list[]' params are mutually exclusive, only one can be provided. - */ public function setAddressList(AddressListLookup $addressList): self { $this->initialized['addressList'] = true; diff --git a/src/Core/Model/AddressListsAddressListEntriesBulkPostBody.php b/src/Core/Model/AddressListsAddressListEntriesBulkPostBody.php index 9b1f13ad..052efe0b 100644 --- a/src/Core/Model/AddressListsAddressListEntriesBulkPostBody.php +++ b/src/Core/Model/AddressListsAddressListEntriesBulkPostBody.php @@ -22,8 +22,6 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'address_list[]' params are mutually exclusive, only one can be provided. - * * @var AddressListLookup */ protected $addressList; @@ -36,17 +34,11 @@ public function isInitialized($property): bool */ protected $remove; - /** - * All 'address_list[]' params are mutually exclusive, only one can be provided. - */ public function getAddressList(): AddressListLookup { return $this->addressList; } - /** - * All 'address_list[]' params are mutually exclusive, only one can be provided. - */ public function setAddressList(AddressListLookup $addressList): self { $this->initialized['addressList'] = true; diff --git a/src/Core/Model/AddressListsAddressListEntriesPostBody.php b/src/Core/Model/AddressListsAddressListEntriesPostBody.php index 5baf2a4e..09c308d3 100644 --- a/src/Core/Model/AddressListsAddressListEntriesPostBody.php +++ b/src/Core/Model/AddressListsAddressListEntriesPostBody.php @@ -22,29 +22,19 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'address_list[]' params are mutually exclusive, only one can be provided. - * * @var AddressListLookup */ protected $addressList; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var AddressListEntryArguments */ protected $properties; - /** - * All 'address_list[]' params are mutually exclusive, only one can be provided. - */ public function getAddressList(): AddressListLookup { return $this->addressList; } - /** - * All 'address_list[]' params are mutually exclusive, only one can be provided. - */ public function setAddressList(AddressListLookup $addressList): self { $this->initialized['addressList'] = true; @@ -53,17 +43,11 @@ public function setAddressList(AddressListLookup $addressList): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): AddressListEntryArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(AddressListEntryArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/AddressListsAddressListPatchBody.php b/src/Core/Model/AddressListsAddressListPatchBody.php index 4d067ee1..eac6d255 100644 --- a/src/Core/Model/AddressListsAddressListPatchBody.php +++ b/src/Core/Model/AddressListsAddressListPatchBody.php @@ -22,14 +22,10 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'address_list[]' params are mutually exclusive, only one can be provided. - * * @var AddressListLookup */ protected $addressList; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var AddressListArguments */ protected $properties; @@ -38,17 +34,11 @@ public function isInitialized($property): bool */ protected $annotations; - /** - * All 'address_list[]' params are mutually exclusive, only one can be provided. - */ public function getAddressList(): AddressListLookup { return $this->addressList; } - /** - * All 'address_list[]' params are mutually exclusive, only one can be provided. - */ public function setAddressList(AddressListLookup $addressList): self { $this->initialized['addressList'] = true; @@ -57,17 +47,11 @@ public function setAddressList(AddressListLookup $addressList): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): AddressListArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(AddressListArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/ApiTokensApiTokenDeleteBody.php b/src/Core/Model/ApiTokensApiTokenDeleteBody.php index bb272781..a64c29bc 100644 --- a/src/Core/Model/ApiTokensApiTokenDeleteBody.php +++ b/src/Core/Model/ApiTokensApiTokenDeleteBody.php @@ -22,23 +22,15 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'api_token[]' params are mutually exclusive, only one can be provided. - * * @var APITokenLookup */ protected $apiToken; - /** - * All 'api_token[]' params are mutually exclusive, only one can be provided. - */ public function getApiToken(): APITokenLookup { return $this->apiToken; } - /** - * All 'api_token[]' params are mutually exclusive, only one can be provided. - */ public function setApiToken(APITokenLookup $apiToken): self { $this->initialized['apiToken'] = true; diff --git a/src/Core/Model/ApiTokensApiTokenPatchBody.php b/src/Core/Model/ApiTokensApiTokenPatchBody.php index 2089bbf5..6d88f872 100644 --- a/src/Core/Model/ApiTokensApiTokenPatchBody.php +++ b/src/Core/Model/ApiTokensApiTokenPatchBody.php @@ -22,14 +22,10 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'api_token[]' params are mutually exclusive, only one can be provided. - * * @var APITokenLookup */ protected $apiToken; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var APITokenArguments */ protected $properties; @@ -38,17 +34,11 @@ public function isInitialized($property): bool */ protected $annotations; - /** - * All 'api_token[]' params are mutually exclusive, only one can be provided. - */ public function getApiToken(): APITokenLookup { return $this->apiToken; } - /** - * All 'api_token[]' params are mutually exclusive, only one can be provided. - */ public function setApiToken(APITokenLookup $apiToken): self { $this->initialized['apiToken'] = true; @@ -57,17 +47,11 @@ public function setApiToken(APITokenLookup $apiToken): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): APITokenArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(APITokenArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/ApiTokensApiTokenRegenerateSecretPostBody.php b/src/Core/Model/ApiTokensApiTokenRegenerateSecretPostBody.php index d1ea2107..a056b29b 100644 --- a/src/Core/Model/ApiTokensApiTokenRegenerateSecretPostBody.php +++ b/src/Core/Model/ApiTokensApiTokenRegenerateSecretPostBody.php @@ -22,23 +22,15 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'api_token[]' params are mutually exclusive, only one can be provided. - * * @var APITokenLookup */ protected $apiToken; - /** - * All 'api_token[]' params are mutually exclusive, only one can be provided. - */ public function getApiToken(): APITokenLookup { return $this->apiToken; } - /** - * All 'api_token[]' params are mutually exclusive, only one can be provided. - */ public function setApiToken(APITokenLookup $apiToken): self { $this->initialized['apiToken'] = true; diff --git a/src/Core/Model/DNSRecordArguments.php b/src/Core/Model/DNSRecordArguments.php index a583990b..54ccf635 100644 --- a/src/Core/Model/DNSRecordArguments.php +++ b/src/Core/Model/DNSRecordArguments.php @@ -40,8 +40,6 @@ public function isInitialized($property): bool */ protected $priority; /** - * All 'content[]' params are mutually exclusive, only one can be provided. - * * @var DNSRecordContentArguments */ protected $content; @@ -104,17 +102,11 @@ public function setPriority(int $priority): self return $this; } - /** - * All 'content[]' params are mutually exclusive, only one can be provided. - */ public function getContent(): DNSRecordContentArguments { return $this->content; } - /** - * All 'content[]' params are mutually exclusive, only one can be provided. - */ public function setContent(DNSRecordContentArguments $content): self { $this->initialized['content'] = true; diff --git a/src/Core/Model/DNSRecordContentArguments.php b/src/Core/Model/DNSRecordContentArguments.php index 218b3ca3..23476d0e 100644 --- a/src/Core/Model/DNSRecordContentArguments.php +++ b/src/Core/Model/DNSRecordContentArguments.php @@ -22,99 +22,67 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'A[]' params are mutually exclusive, only one can be provided. - * * @var DNSRecordContentArgumentsForA */ protected $a; /** - * All 'AAAA[]' params are mutually exclusive, only one can be provided. - * * @var DNSRecordContentArgumentsForAAAA */ protected $aAAA; /** - * All 'ALIAS[]' params are mutually exclusive, only one can be provided. - * * @var DNSRecordContentArgumentsForALIAS */ protected $aLIAS; /** - * All 'CAA[]' params are mutually exclusive, only one can be provided. - * * @var DNSRecordContentArgumentsForCAA */ protected $cAA; /** - * All 'CNAME[]' params are mutually exclusive, only one can be provided. - * * @var DNSRecordContentArgumentsForCNAME */ protected $cNAME; /** - * All 'IPS[]' params are mutually exclusive, only one can be provided. - * * @var DNSRecordContentArgumentsForIPS */ protected $iPS; /** - * All 'MX[]' params are mutually exclusive, only one can be provided. - * * @var DNSRecordContentArgumentsForMX */ protected $mX; /** - * All 'NS[]' params are mutually exclusive, only one can be provided. - * * @var DNSRecordContentArgumentsForNS */ protected $nS; /** - * All 'PTR[]' params are mutually exclusive, only one can be provided. - * * @var DNSRecordContentArgumentsForPTR */ protected $pTR; /** - * All 'SOA[]' params are mutually exclusive, only one can be provided. + * @var array */ protected $sOA; /** - * All 'SRV[]' params are mutually exclusive, only one can be provided. - * * @var DNSRecordContentArgumentsForSRV */ protected $sRV; /** - * All 'SSHFP[]' params are mutually exclusive, only one can be provided. - * * @var DNSRecordContentArgumentsForSSHFP */ protected $sSHFP; /** - * All 'TXT[]' params are mutually exclusive, only one can be provided. - * * @var DNSRecordContentArgumentsForTXT */ protected $tXT; /** - * All 'VirtualMachine[]' params are mutually exclusive, only one can be provided. - * * @var DNSRecordContentArgumentsForVirtualMachine */ protected $virtualMachine; - /** - * All 'A[]' params are mutually exclusive, only one can be provided. - */ public function getA(): DNSRecordContentArgumentsForA { return $this->a; } - /** - * All 'A[]' params are mutually exclusive, only one can be provided. - */ public function setA(DNSRecordContentArgumentsForA $a): self { $this->initialized['a'] = true; @@ -123,17 +91,11 @@ public function setA(DNSRecordContentArgumentsForA $a): self return $this; } - /** - * All 'AAAA[]' params are mutually exclusive, only one can be provided. - */ public function getAAAA(): DNSRecordContentArgumentsForAAAA { return $this->aAAA; } - /** - * All 'AAAA[]' params are mutually exclusive, only one can be provided. - */ public function setAAAA(DNSRecordContentArgumentsForAAAA $aAAA): self { $this->initialized['aAAA'] = true; @@ -142,17 +104,11 @@ public function setAAAA(DNSRecordContentArgumentsForAAAA $aAAA): self return $this; } - /** - * All 'ALIAS[]' params are mutually exclusive, only one can be provided. - */ public function getALIAS(): DNSRecordContentArgumentsForALIAS { return $this->aLIAS; } - /** - * All 'ALIAS[]' params are mutually exclusive, only one can be provided. - */ public function setALIAS(DNSRecordContentArgumentsForALIAS $aLIAS): self { $this->initialized['aLIAS'] = true; @@ -161,17 +117,11 @@ public function setALIAS(DNSRecordContentArgumentsForALIAS $aLIAS): self return $this; } - /** - * All 'CAA[]' params are mutually exclusive, only one can be provided. - */ public function getCAA(): DNSRecordContentArgumentsForCAA { return $this->cAA; } - /** - * All 'CAA[]' params are mutually exclusive, only one can be provided. - */ public function setCAA(DNSRecordContentArgumentsForCAA $cAA): self { $this->initialized['cAA'] = true; @@ -180,17 +130,11 @@ public function setCAA(DNSRecordContentArgumentsForCAA $cAA): self return $this; } - /** - * All 'CNAME[]' params are mutually exclusive, only one can be provided. - */ public function getCNAME(): DNSRecordContentArgumentsForCNAME { return $this->cNAME; } - /** - * All 'CNAME[]' params are mutually exclusive, only one can be provided. - */ public function setCNAME(DNSRecordContentArgumentsForCNAME $cNAME): self { $this->initialized['cNAME'] = true; @@ -199,17 +143,11 @@ public function setCNAME(DNSRecordContentArgumentsForCNAME $cNAME): self return $this; } - /** - * All 'IPS[]' params are mutually exclusive, only one can be provided. - */ public function getIPS(): DNSRecordContentArgumentsForIPS { return $this->iPS; } - /** - * All 'IPS[]' params are mutually exclusive, only one can be provided. - */ public function setIPS(DNSRecordContentArgumentsForIPS $iPS): self { $this->initialized['iPS'] = true; @@ -218,17 +156,11 @@ public function setIPS(DNSRecordContentArgumentsForIPS $iPS): self return $this; } - /** - * All 'MX[]' params are mutually exclusive, only one can be provided. - */ public function getMX(): DNSRecordContentArgumentsForMX { return $this->mX; } - /** - * All 'MX[]' params are mutually exclusive, only one can be provided. - */ public function setMX(DNSRecordContentArgumentsForMX $mX): self { $this->initialized['mX'] = true; @@ -237,17 +169,11 @@ public function setMX(DNSRecordContentArgumentsForMX $mX): self return $this; } - /** - * All 'NS[]' params are mutually exclusive, only one can be provided. - */ public function getNS(): DNSRecordContentArgumentsForNS { return $this->nS; } - /** - * All 'NS[]' params are mutually exclusive, only one can be provided. - */ public function setNS(DNSRecordContentArgumentsForNS $nS): self { $this->initialized['nS'] = true; @@ -256,17 +182,11 @@ public function setNS(DNSRecordContentArgumentsForNS $nS): self return $this; } - /** - * All 'PTR[]' params are mutually exclusive, only one can be provided. - */ public function getPTR(): DNSRecordContentArgumentsForPTR { return $this->pTR; } - /** - * All 'PTR[]' params are mutually exclusive, only one can be provided. - */ public function setPTR(DNSRecordContentArgumentsForPTR $pTR): self { $this->initialized['pTR'] = true; @@ -276,17 +196,17 @@ public function setPTR(DNSRecordContentArgumentsForPTR $pTR): self } /** - * All 'SOA[]' params are mutually exclusive, only one can be provided. + * @return array */ - public function getSOA() + public function getSOA(): iterable { return $this->sOA; } /** - * All 'SOA[]' params are mutually exclusive, only one can be provided. + * @param array $sOA */ - public function setSOA($sOA): self + public function setSOA(iterable $sOA): self { $this->initialized['sOA'] = true; $this->sOA = $sOA; @@ -294,17 +214,11 @@ public function setSOA($sOA): self return $this; } - /** - * All 'SRV[]' params are mutually exclusive, only one can be provided. - */ public function getSRV(): DNSRecordContentArgumentsForSRV { return $this->sRV; } - /** - * All 'SRV[]' params are mutually exclusive, only one can be provided. - */ public function setSRV(DNSRecordContentArgumentsForSRV $sRV): self { $this->initialized['sRV'] = true; @@ -313,17 +227,11 @@ public function setSRV(DNSRecordContentArgumentsForSRV $sRV): self return $this; } - /** - * All 'SSHFP[]' params are mutually exclusive, only one can be provided. - */ public function getSSHFP(): DNSRecordContentArgumentsForSSHFP { return $this->sSHFP; } - /** - * All 'SSHFP[]' params are mutually exclusive, only one can be provided. - */ public function setSSHFP(DNSRecordContentArgumentsForSSHFP $sSHFP): self { $this->initialized['sSHFP'] = true; @@ -332,17 +240,11 @@ public function setSSHFP(DNSRecordContentArgumentsForSSHFP $sSHFP): self return $this; } - /** - * All 'TXT[]' params are mutually exclusive, only one can be provided. - */ public function getTXT(): DNSRecordContentArgumentsForTXT { return $this->tXT; } - /** - * All 'TXT[]' params are mutually exclusive, only one can be provided. - */ public function setTXT(DNSRecordContentArgumentsForTXT $tXT): self { $this->initialized['tXT'] = true; @@ -351,17 +253,11 @@ public function setTXT(DNSRecordContentArgumentsForTXT $tXT): self return $this; } - /** - * All 'VirtualMachine[]' params are mutually exclusive, only one can be provided. - */ public function getVirtualMachine(): DNSRecordContentArgumentsForVirtualMachine { return $this->virtualMachine; } - /** - * All 'VirtualMachine[]' params are mutually exclusive, only one can be provided. - */ public function setVirtualMachine(DNSRecordContentArgumentsForVirtualMachine $virtualMachine): self { $this->initialized['virtualMachine'] = true; diff --git a/src/Core/Model/DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObject.php b/src/Core/Model/DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObject.php new file mode 100644 index 00000000..932a5819 --- /dev/null +++ b/src/Core/Model/DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObject.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var int + */ + protected $keepUntil; + /** + * @var string + */ + protected $objectType; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getKeepUntil(): int + { + return $this->keepUntil; + } + + public function setKeepUntil(int $keepUntil): self + { + $this->initialized['keepUntil'] = true; + $this->keepUntil = $keepUntil; + + return $this; + } + + public function getObjectType(): string + { + return $this->objectType; + } + + public function setObjectType(string $objectType): self + { + $this->initialized['objectType'] = true; + $this->objectType = $objectType; + + return $this; + } +} diff --git a/src/Core/Model/DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface.php b/src/Core/Model/DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface.php new file mode 100644 index 00000000..cf8aed4a --- /dev/null +++ b/src/Core/Model/DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface.php @@ -0,0 +1,183 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var DeleteVirtualMachineNetworkInterfacePartVirtualMachine + */ + protected $virtualMachine; + /** + * @var string + */ + protected $name; + /** + * @var DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork|null + */ + protected $network; + /** + * @var DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork|null + */ + protected $virtualNetwork; + /** + * @var string + */ + protected $macAddress; + /** + * @var string + */ + protected $state; + /** + * @var list + */ + protected $ipAddresses; + /** + * @var DeleteVirtualMachineNetworkInterfacePartSpeedProfile + */ + protected $speedProfile; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getVirtualMachine(): DeleteVirtualMachineNetworkInterfacePartVirtualMachine + { + return $this->virtualMachine; + } + + public function setVirtualMachine(DeleteVirtualMachineNetworkInterfacePartVirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getNetwork(): ?DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork + { + return $this->network; + } + + public function setNetwork(?DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getVirtualNetwork(): ?DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork + { + return $this->virtualNetwork; + } + + public function setVirtualNetwork(?DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork $virtualNetwork): self + { + $this->initialized['virtualNetwork'] = true; + $this->virtualNetwork = $virtualNetwork; + + return $this; + } + + public function getMacAddress(): string + { + return $this->macAddress; + } + + public function setMacAddress(string $macAddress): self + { + $this->initialized['macAddress'] = true; + $this->macAddress = $macAddress; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * @return list + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * @param list $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } + + public function getSpeedProfile(): DeleteVirtualMachineNetworkInterfacePartSpeedProfile + { + return $this->speedProfile; + } + + public function setSpeedProfile(DeleteVirtualMachineNetworkInterfacePartSpeedProfile $speedProfile): self + { + $this->initialized['speedProfile'] = true; + $this->speedProfile = $speedProfile; + + return $this; + } +} diff --git a/src/Core/Model/DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork.php b/src/Core/Model/DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork.php new file mode 100644 index 00000000..e7091671 --- /dev/null +++ b/src/Core/Model/DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php b/src/Core/Model/DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php new file mode 100644 index 00000000..1757c7a9 --- /dev/null +++ b/src/Core/Model/DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/DeleteVirtualMachineNetworkInterfacePartIPAddresses.php b/src/Core/Model/DeleteVirtualMachineNetworkInterfacePartIPAddresses.php new file mode 100644 index 00000000..fa754a5f --- /dev/null +++ b/src/Core/Model/DeleteVirtualMachineNetworkInterfacePartIPAddresses.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $address; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAddress(): string + { + return $this->address; + } + + public function setAddress(string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } +} diff --git a/src/Core/Model/DeleteVirtualMachineNetworkInterfacePartNetwork.php b/src/Core/Model/DeleteVirtualMachineNetworkInterfacePartNetwork.php new file mode 100644 index 00000000..30cdd17f --- /dev/null +++ b/src/Core/Model/DeleteVirtualMachineNetworkInterfacePartNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/DeleteVirtualMachineNetworkInterfacePartSpeedProfile.php b/src/Core/Model/DeleteVirtualMachineNetworkInterfacePartSpeedProfile.php new file mode 100644 index 00000000..6a7ae72b --- /dev/null +++ b/src/Core/Model/DeleteVirtualMachineNetworkInterfacePartSpeedProfile.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Core/Model/DeleteVirtualMachineNetworkInterfacePartVirtualMachine.php b/src/Core/Model/DeleteVirtualMachineNetworkInterfacePartVirtualMachine.php new file mode 100644 index 00000000..55f04562 --- /dev/null +++ b/src/Core/Model/DeleteVirtualMachineNetworkInterfacePartVirtualMachine.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/DeleteVirtualMachineNetworkInterfacePartVirtualNetwork.php b/src/Core/Model/DeleteVirtualMachineNetworkInterfacePartVirtualNetwork.php new file mode 100644 index 00000000..f57afc69 --- /dev/null +++ b/src/Core/Model/DeleteVirtualMachineNetworkInterfacePartVirtualNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/DiskArguments.php b/src/Core/Model/DiskArguments.php index a8bdf9db..817729d4 100644 --- a/src/Core/Model/DiskArguments.php +++ b/src/Core/Model/DiskArguments.php @@ -56,8 +56,6 @@ public function isInitialized($property): bool */ protected $storageSpeed; /** - * All 'virtual_machine_disk[]' params are mutually exclusive, only one can be provided. - * * @var VirtualMachineDiskArguments */ protected $virtualMachineDisk; @@ -171,17 +169,11 @@ public function setStorageSpeed(string $storageSpeed): self return $this; } - /** - * All 'virtual_machine_disk[]' params are mutually exclusive, only one can be provided. - */ public function getVirtualMachineDisk(): VirtualMachineDiskArguments { return $this->virtualMachineDisk; } - /** - * All 'virtual_machine_disk[]' params are mutually exclusive, only one can be provided. - */ public function setVirtualMachineDisk(VirtualMachineDiskArguments $virtualMachineDisk): self { $this->initialized['virtualMachineDisk'] = true; diff --git a/src/Core/Model/DiskBackupPoliciesDiskBackupPolicyDeleteBody.php b/src/Core/Model/DiskBackupPoliciesDiskBackupPolicyDeleteBody.php index 6078fa20..331f45fd 100644 --- a/src/Core/Model/DiskBackupPoliciesDiskBackupPolicyDeleteBody.php +++ b/src/Core/Model/DiskBackupPoliciesDiskBackupPolicyDeleteBody.php @@ -22,23 +22,15 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'disk_backup_policy[]' params are mutually exclusive, only one can be provided. - * * @var DiskBackupPolicyLookup */ protected $diskBackupPolicy; - /** - * All 'disk_backup_policy[]' params are mutually exclusive, only one can be provided. - */ public function getDiskBackupPolicy(): DiskBackupPolicyLookup { return $this->diskBackupPolicy; } - /** - * All 'disk_backup_policy[]' params are mutually exclusive, only one can be provided. - */ public function setDiskBackupPolicy(DiskBackupPolicyLookup $diskBackupPolicy): self { $this->initialized['diskBackupPolicy'] = true; diff --git a/src/Core/Model/DiskBackupPoliciesDiskBackupPolicyPatchBody.php b/src/Core/Model/DiskBackupPoliciesDiskBackupPolicyPatchBody.php index 47d57eb2..e9c2a862 100644 --- a/src/Core/Model/DiskBackupPoliciesDiskBackupPolicyPatchBody.php +++ b/src/Core/Model/DiskBackupPoliciesDiskBackupPolicyPatchBody.php @@ -22,29 +22,19 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'disk_backup_policy[]' params are mutually exclusive, only one can be provided. - * * @var DiskBackupPolicyLookup */ protected $diskBackupPolicy; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var DiskBackupPolicyArguments */ protected $properties; - /** - * All 'disk_backup_policy[]' params are mutually exclusive, only one can be provided. - */ public function getDiskBackupPolicy(): DiskBackupPolicyLookup { return $this->diskBackupPolicy; } - /** - * All 'disk_backup_policy[]' params are mutually exclusive, only one can be provided. - */ public function setDiskBackupPolicy(DiskBackupPolicyLookup $diskBackupPolicy): self { $this->initialized['diskBackupPolicy'] = true; @@ -53,17 +43,11 @@ public function setDiskBackupPolicy(DiskBackupPolicyLookup $diskBackupPolicy): s return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): DiskBackupPolicyArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(DiskBackupPolicyArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/DiskBackupPoliciesDiskBackupPolicyScheduleDeleteBody.php b/src/Core/Model/DiskBackupPoliciesDiskBackupPolicyScheduleDeleteBody.php index 65b2675a..700a2a97 100644 --- a/src/Core/Model/DiskBackupPoliciesDiskBackupPolicyScheduleDeleteBody.php +++ b/src/Core/Model/DiskBackupPoliciesDiskBackupPolicyScheduleDeleteBody.php @@ -22,8 +22,6 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'disk_backup_policy[]' params are mutually exclusive, only one can be provided. - * * @var DiskBackupPolicyLookup */ protected $diskBackupPolicy; @@ -34,17 +32,11 @@ public function isInitialized($property): bool */ protected $timestamp; - /** - * All 'disk_backup_policy[]' params are mutually exclusive, only one can be provided. - */ public function getDiskBackupPolicy(): DiskBackupPolicyLookup { return $this->diskBackupPolicy; } - /** - * All 'disk_backup_policy[]' params are mutually exclusive, only one can be provided. - */ public function setDiskBackupPolicy(DiskBackupPolicyLookup $diskBackupPolicy): self { $this->initialized['diskBackupPolicy'] = true; diff --git a/src/Core/Model/DiskBackupPolicyArguments.php b/src/Core/Model/DiskBackupPolicyArguments.php index 63f56473..c18c3ca0 100644 --- a/src/Core/Model/DiskBackupPolicyArguments.php +++ b/src/Core/Model/DiskBackupPolicyArguments.php @@ -26,8 +26,6 @@ public function isInitialized($property): bool */ protected $retention; /** - * All 'schedule[]' params are mutually exclusive, only one can be provided. - * * @var ScheduleArguments */ protected $schedule; @@ -45,17 +43,11 @@ public function setRetention(int $retention): self return $this; } - /** - * All 'schedule[]' params are mutually exclusive, only one can be provided. - */ public function getSchedule(): ScheduleArguments { return $this->schedule; } - /** - * All 'schedule[]' params are mutually exclusive, only one can be provided. - */ public function setSchedule(ScheduleArguments $schedule): self { $this->initialized['schedule'] = true; diff --git a/src/Core/Model/DisksDiskAssignPostBody.php b/src/Core/Model/DisksDiskAssignPostBody.php index 48680e45..4632a247 100644 --- a/src/Core/Model/DisksDiskAssignPostBody.php +++ b/src/Core/Model/DisksDiskAssignPostBody.php @@ -22,8 +22,6 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - * * @var DiskLookup */ protected $disk; @@ -34,17 +32,11 @@ public function isInitialized($property): bool */ protected $virtualMachine; - /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - */ public function getDisk(): DiskLookup { return $this->disk; } - /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - */ public function setDisk(DiskLookup $disk): self { $this->initialized['disk'] = true; diff --git a/src/Core/Model/DisksDiskAttachPostBody.php b/src/Core/Model/DisksDiskAttachPostBody.php index 087cc3bb..1e5ee74b 100644 --- a/src/Core/Model/DisksDiskAttachPostBody.php +++ b/src/Core/Model/DisksDiskAttachPostBody.php @@ -22,23 +22,15 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - * * @var DiskLookup */ protected $disk; - /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - */ public function getDisk(): DiskLookup { return $this->disk; } - /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - */ public function setDisk(DiskLookup $disk): self { $this->initialized['disk'] = true; diff --git a/src/Core/Model/DisksDiskDeleteBody.php b/src/Core/Model/DisksDiskDeleteBody.php index c6538198..11611b98 100644 --- a/src/Core/Model/DisksDiskDeleteBody.php +++ b/src/Core/Model/DisksDiskDeleteBody.php @@ -22,23 +22,15 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - * * @var DiskLookup */ protected $disk; - /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - */ public function getDisk(): DiskLookup { return $this->disk; } - /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - */ public function setDisk(DiskLookup $disk): self { $this->initialized['disk'] = true; diff --git a/src/Core/Model/DisksDiskDetachPostBody.php b/src/Core/Model/DisksDiskDetachPostBody.php index 0ebd3f80..49e8ab52 100644 --- a/src/Core/Model/DisksDiskDetachPostBody.php +++ b/src/Core/Model/DisksDiskDetachPostBody.php @@ -22,23 +22,15 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - * * @var DiskLookup */ protected $disk; - /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - */ public function getDisk(): DiskLookup { return $this->disk; } - /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - */ public function setDisk(DiskLookup $disk): self { $this->initialized['disk'] = true; diff --git a/src/Core/Model/DisksDiskDiskBackupPoliciesPostBody.php b/src/Core/Model/DisksDiskDiskBackupPoliciesPostBody.php index 8cb09efd..e249e5f7 100644 --- a/src/Core/Model/DisksDiskDiskBackupPoliciesPostBody.php +++ b/src/Core/Model/DisksDiskDiskBackupPoliciesPostBody.php @@ -22,29 +22,19 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - * * @var DiskLookup */ protected $disk; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var DiskBackupPolicyArguments */ protected $properties; - /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - */ public function getDisk(): DiskLookup { return $this->disk; } - /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - */ public function setDisk(DiskLookup $disk): self { $this->initialized['disk'] = true; @@ -53,17 +43,11 @@ public function setDisk(DiskLookup $disk): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): DiskBackupPolicyArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(DiskBackupPolicyArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/DisksDiskIoProfilePutBody.php b/src/Core/Model/DisksDiskIoProfilePutBody.php index b9ae7fbe..a0f11e5f 100644 --- a/src/Core/Model/DisksDiskIoProfilePutBody.php +++ b/src/Core/Model/DisksDiskIoProfilePutBody.php @@ -22,8 +22,6 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - * * @var DiskLookup */ protected $disk; @@ -34,17 +32,11 @@ public function isInitialized($property): bool */ protected $ioProfile; - /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - */ public function getDisk(): DiskLookup { return $this->disk; } - /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - */ public function setDisk(DiskLookup $disk): self { $this->initialized['disk'] = true; diff --git a/src/Core/Model/DisksDiskPatchBody.php b/src/Core/Model/DisksDiskPatchBody.php index 6bcacb08..13da4c19 100644 --- a/src/Core/Model/DisksDiskPatchBody.php +++ b/src/Core/Model/DisksDiskPatchBody.php @@ -22,14 +22,10 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - * * @var DiskLookup */ protected $disk; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var DiskArguments */ protected $properties; @@ -38,17 +34,11 @@ public function isInitialized($property): bool */ protected $annotations; - /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - */ public function getDisk(): DiskLookup { return $this->disk; } - /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - */ public function setDisk(DiskLookup $disk): self { $this->initialized['disk'] = true; @@ -57,17 +47,11 @@ public function setDisk(DiskLookup $disk): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): DiskArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(DiskArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/DisksDiskResizePutBody.php b/src/Core/Model/DisksDiskResizePutBody.php index e91a9995..3622b271 100644 --- a/src/Core/Model/DisksDiskResizePutBody.php +++ b/src/Core/Model/DisksDiskResizePutBody.php @@ -22,8 +22,6 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - * * @var DiskLookup */ protected $disk; @@ -36,17 +34,11 @@ public function isInitialized($property): bool */ protected $resizeMethod; - /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - */ public function getDisk(): DiskLookup { return $this->disk; } - /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - */ public function setDisk(DiskLookup $disk): self { $this->initialized['disk'] = true; diff --git a/src/Core/Model/DisksDiskUnassignPostBody.php b/src/Core/Model/DisksDiskUnassignPostBody.php index eafba56a..39098769 100644 --- a/src/Core/Model/DisksDiskUnassignPostBody.php +++ b/src/Core/Model/DisksDiskUnassignPostBody.php @@ -22,23 +22,15 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - * * @var DiskLookup */ protected $disk; - /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - */ public function getDisk(): DiskLookup { return $this->disk; } - /** - * All 'disk[]' params are mutually exclusive, only one can be provided. - */ public function setDisk(DiskLookup $disk): self { $this->initialized['disk'] = true; diff --git a/src/Core/Model/DnsRecordsDnsRecordDeleteBody.php b/src/Core/Model/DnsRecordsDnsRecordDeleteBody.php index 2d1277ec..6eddf650 100644 --- a/src/Core/Model/DnsRecordsDnsRecordDeleteBody.php +++ b/src/Core/Model/DnsRecordsDnsRecordDeleteBody.php @@ -22,23 +22,15 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'dns_record[]' params are mutually exclusive, only one can be provided. - * * @var DNSRecordLookup */ protected $dnsRecord; - /** - * All 'dns_record[]' params are mutually exclusive, only one can be provided. - */ public function getDnsRecord(): DNSRecordLookup { return $this->dnsRecord; } - /** - * All 'dns_record[]' params are mutually exclusive, only one can be provided. - */ public function setDnsRecord(DNSRecordLookup $dnsRecord): self { $this->initialized['dnsRecord'] = true; diff --git a/src/Core/Model/DnsRecordsDnsRecordPatchBody.php b/src/Core/Model/DnsRecordsDnsRecordPatchBody.php index c6becbac..c32c4ffb 100644 --- a/src/Core/Model/DnsRecordsDnsRecordPatchBody.php +++ b/src/Core/Model/DnsRecordsDnsRecordPatchBody.php @@ -22,29 +22,19 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'dns_record[]' params are mutually exclusive, only one can be provided. - * * @var DNSRecordLookup */ protected $dnsRecord; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var DNSRecordArguments */ protected $properties; - /** - * All 'dns_record[]' params are mutually exclusive, only one can be provided. - */ public function getDnsRecord(): DNSRecordLookup { return $this->dnsRecord; } - /** - * All 'dns_record[]' params are mutually exclusive, only one can be provided. - */ public function setDnsRecord(DNSRecordLookup $dnsRecord): self { $this->initialized['dnsRecord'] = true; @@ -53,17 +43,11 @@ public function setDnsRecord(DNSRecordLookup $dnsRecord): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): DNSRecordArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(DNSRecordArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/DnsZonesDnsZonePatchBody.php b/src/Core/Model/DnsZonesDnsZonePatchBody.php index f6f3d4ad..c2c1e2d0 100644 --- a/src/Core/Model/DnsZonesDnsZonePatchBody.php +++ b/src/Core/Model/DnsZonesDnsZonePatchBody.php @@ -28,8 +28,6 @@ public function isInitialized($property): bool */ protected $dnsZone; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var DNSZoneArguments */ protected $properties; @@ -53,17 +51,11 @@ public function setDnsZone(DNSZoneLookup $dnsZone): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): DNSZoneArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(DNSZoneArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/DnsZonesDnsZoneRecordsPostBody.php b/src/Core/Model/DnsZonesDnsZoneRecordsPostBody.php index 3422ac6e..378abe51 100644 --- a/src/Core/Model/DnsZonesDnsZoneRecordsPostBody.php +++ b/src/Core/Model/DnsZonesDnsZoneRecordsPostBody.php @@ -28,8 +28,6 @@ public function isInitialized($property): bool */ protected $dnsZone; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var DNSRecordArguments */ protected $properties; @@ -53,17 +51,11 @@ public function setDnsZone(DNSZoneLookup $dnsZone): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): DNSRecordArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(DNSRecordArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/FileStorageVolumesFileStorageVolumeDeleteBody.php b/src/Core/Model/FileStorageVolumesFileStorageVolumeDeleteBody.php index 9c7129f5..10e37b6d 100644 --- a/src/Core/Model/FileStorageVolumesFileStorageVolumeDeleteBody.php +++ b/src/Core/Model/FileStorageVolumesFileStorageVolumeDeleteBody.php @@ -22,23 +22,15 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'file_storage_volume[]' params are mutually exclusive, only one can be provided. - * * @var FileStorageVolumeLookup */ protected $fileStorageVolume; - /** - * All 'file_storage_volume[]' params are mutually exclusive, only one can be provided. - */ public function getFileStorageVolume(): FileStorageVolumeLookup { return $this->fileStorageVolume; } - /** - * All 'file_storage_volume[]' params are mutually exclusive, only one can be provided. - */ public function setFileStorageVolume(FileStorageVolumeLookup $fileStorageVolume): self { $this->initialized['fileStorageVolume'] = true; diff --git a/src/Core/Model/FileStorageVolumesFileStorageVolumePatchBody.php b/src/Core/Model/FileStorageVolumesFileStorageVolumePatchBody.php index dd8b87cb..b9813357 100644 --- a/src/Core/Model/FileStorageVolumesFileStorageVolumePatchBody.php +++ b/src/Core/Model/FileStorageVolumesFileStorageVolumePatchBody.php @@ -22,14 +22,10 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'file_storage_volume[]' params are mutually exclusive, only one can be provided. - * * @var FileStorageVolumeLookup */ protected $fileStorageVolume; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var FileStorageVolumeArguments */ protected $properties; @@ -38,17 +34,11 @@ public function isInitialized($property): bool */ protected $annotations; - /** - * All 'file_storage_volume[]' params are mutually exclusive, only one can be provided. - */ public function getFileStorageVolume(): FileStorageVolumeLookup { return $this->fileStorageVolume; } - /** - * All 'file_storage_volume[]' params are mutually exclusive, only one can be provided. - */ public function setFileStorageVolume(FileStorageVolumeLookup $fileStorageVolume): self { $this->initialized['fileStorageVolume'] = true; @@ -57,17 +47,11 @@ public function setFileStorageVolume(FileStorageVolumeLookup $fileStorageVolume) return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): FileStorageVolumeArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(FileStorageVolumeArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/GetVMNIVMNI200ResponseVirtualMachineNetworkInterface.php b/src/Core/Model/GetVMNIVMNI200ResponseVirtualMachineNetworkInterface.php index bcb3bdc8..daa07ec8 100644 --- a/src/Core/Model/GetVMNIVMNI200ResponseVirtualMachineNetworkInterface.php +++ b/src/Core/Model/GetVMNIVMNI200ResponseVirtualMachineNetworkInterface.php @@ -34,9 +34,13 @@ public function isInitialized($property): bool */ protected $name; /** - * @var GetVMNIVMNIPartNetwork + * @var GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork|null */ protected $network; + /** + * @var GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork|null + */ + protected $virtualNetwork; /** * @var string */ @@ -93,12 +97,12 @@ public function setName(string $name): self return $this; } - public function getNetwork(): GetVMNIVMNIPartNetwork + public function getNetwork(): ?GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork { return $this->network; } - public function setNetwork(GetVMNIVMNIPartNetwork $network): self + public function setNetwork(?GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork $network): self { $this->initialized['network'] = true; $this->network = $network; @@ -106,6 +110,19 @@ public function setNetwork(GetVMNIVMNIPartNetwork $network): self return $this; } + public function getVirtualNetwork(): ?GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork + { + return $this->virtualNetwork; + } + + public function setVirtualNetwork(?GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork $virtualNetwork): self + { + $this->initialized['virtualNetwork'] = true; + $this->virtualNetwork = $virtualNetwork; + + return $this; + } + public function getMacAddress(): string { return $this->macAddress; diff --git a/src/Core/Model/GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork.php b/src/Core/Model/GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork.php new file mode 100644 index 00000000..44f7fc08 --- /dev/null +++ b/src/Core/Model/GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php b/src/Core/Model/GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php new file mode 100644 index 00000000..67919893 --- /dev/null +++ b/src/Core/Model/GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/GetVMNIVMNIPartVirtualNetwork.php b/src/Core/Model/GetVMNIVMNIPartVirtualNetwork.php new file mode 100644 index 00000000..84d85b03 --- /dev/null +++ b/src/Core/Model/GetVMNIVMNIPartVirtualNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface.php b/src/Core/Model/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface.php index 61c59814..3b2d873f 100644 --- a/src/Core/Model/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface.php +++ b/src/Core/Model/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface.php @@ -34,9 +34,13 @@ public function isInitialized($property): bool */ protected $name; /** - * @var GetVirtualMachineNetworkInterfacePartNetwork + * @var GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork|null */ protected $network; + /** + * @var GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork|null + */ + protected $virtualNetwork; /** * @var string */ @@ -89,12 +93,12 @@ public function setName(string $name): self return $this; } - public function getNetwork(): GetVirtualMachineNetworkInterfacePartNetwork + public function getNetwork(): ?GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork { return $this->network; } - public function setNetwork(GetVirtualMachineNetworkInterfacePartNetwork $network): self + public function setNetwork(?GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork $network): self { $this->initialized['network'] = true; $this->network = $network; @@ -102,6 +106,19 @@ public function setNetwork(GetVirtualMachineNetworkInterfacePartNetwork $network return $this; } + public function getVirtualNetwork(): ?GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork + { + return $this->virtualNetwork; + } + + public function setVirtualNetwork(?GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork $virtualNetwork): self + { + $this->initialized['virtualNetwork'] = true; + $this->virtualNetwork = $virtualNetwork; + + return $this; + } + public function getMacAddress(): string { return $this->macAddress; diff --git a/src/Core/Model/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork.php b/src/Core/Model/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork.php new file mode 100644 index 00000000..5b60fdd1 --- /dev/null +++ b/src/Core/Model/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php b/src/Core/Model/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php new file mode 100644 index 00000000..7da0bb53 --- /dev/null +++ b/src/Core/Model/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/GetVirtualMachineNetworkInterfacePartVirtualNetwork.php b/src/Core/Model/GetVirtualMachineNetworkInterfacePartVirtualNetwork.php new file mode 100644 index 00000000..c00d69c1 --- /dev/null +++ b/src/Core/Model/GetVirtualMachineNetworkInterfacePartVirtualNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaces.php b/src/Core/Model/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaces.php index fdd90e74..b14e414e 100644 --- a/src/Core/Model/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaces.php +++ b/src/Core/Model/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaces.php @@ -30,9 +30,13 @@ public function isInitialized($property): bool */ protected $name; /** - * @var GetVirtualMachineNetworkInterfacesPartNetwork + * @var GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetwork|null */ protected $network; + /** + * @var GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetwork|null + */ + protected $virtualNetwork; /** * @var list */ @@ -64,12 +68,12 @@ public function setName(string $name): self return $this; } - public function getNetwork(): GetVirtualMachineNetworkInterfacesPartNetwork + public function getNetwork(): ?GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetwork { return $this->network; } - public function setNetwork(GetVirtualMachineNetworkInterfacesPartNetwork $network): self + public function setNetwork(?GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetwork $network): self { $this->initialized['network'] = true; $this->network = $network; @@ -77,6 +81,19 @@ public function setNetwork(GetVirtualMachineNetworkInterfacesPartNetwork $networ return $this; } + public function getVirtualNetwork(): ?GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetwork + { + return $this->virtualNetwork; + } + + public function setVirtualNetwork(?GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetwork $virtualNetwork): self + { + $this->initialized['virtualNetwork'] = true; + $this->virtualNetwork = $virtualNetwork; + + return $this; + } + /** * @return list */ diff --git a/src/Core/Model/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetwork.php b/src/Core/Model/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetwork.php new file mode 100644 index 00000000..caf08d30 --- /dev/null +++ b/src/Core/Model/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetwork.php b/src/Core/Model/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetwork.php new file mode 100644 index 00000000..bb314af8 --- /dev/null +++ b/src/Core/Model/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/GetVirtualMachineNetworkInterfacesPartVirtualNetwork.php b/src/Core/Model/GetVirtualMachineNetworkInterfacesPartVirtualNetwork.php new file mode 100644 index 00000000..6be01bde --- /dev/null +++ b/src/Core/Model/GetVirtualMachineNetworkInterfacesPartVirtualNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/LoadBalancersLoadBalancerPatchBody.php b/src/Core/Model/LoadBalancersLoadBalancerPatchBody.php index 4ffce5b8..1abd523e 100644 --- a/src/Core/Model/LoadBalancersLoadBalancerPatchBody.php +++ b/src/Core/Model/LoadBalancersLoadBalancerPatchBody.php @@ -28,8 +28,6 @@ public function isInitialized($property): bool */ protected $loadBalancer; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var LoadBalancerArguments */ protected $properties; @@ -57,17 +55,11 @@ public function setLoadBalancer(LoadBalancerLookup $loadBalancer): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): LoadBalancerArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(LoadBalancerArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/LoadBalancersLoadBalancerRulesPostBody.php b/src/Core/Model/LoadBalancersLoadBalancerRulesPostBody.php index 29a4554e..1628bc96 100644 --- a/src/Core/Model/LoadBalancersLoadBalancerRulesPostBody.php +++ b/src/Core/Model/LoadBalancersLoadBalancerRulesPostBody.php @@ -28,8 +28,6 @@ public function isInitialized($property): bool */ protected $loadBalancer; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var LoadBalancerRuleArguments */ protected $properties; @@ -53,17 +51,11 @@ public function setLoadBalancer(LoadBalancerLookup $loadBalancer): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): LoadBalancerRuleArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(LoadBalancerRuleArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/LoadBalancersRulesLoadBalancerRuleDeleteBody.php b/src/Core/Model/LoadBalancersRulesLoadBalancerRuleDeleteBody.php index c4ec421d..5a7fcecd 100644 --- a/src/Core/Model/LoadBalancersRulesLoadBalancerRuleDeleteBody.php +++ b/src/Core/Model/LoadBalancersRulesLoadBalancerRuleDeleteBody.php @@ -22,23 +22,15 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'load_balancer_rule[]' params are mutually exclusive, only one can be provided. - * * @var LoadBalancerRuleLookup */ protected $loadBalancerRule; - /** - * All 'load_balancer_rule[]' params are mutually exclusive, only one can be provided. - */ public function getLoadBalancerRule(): LoadBalancerRuleLookup { return $this->loadBalancerRule; } - /** - * All 'load_balancer_rule[]' params are mutually exclusive, only one can be provided. - */ public function setLoadBalancerRule(LoadBalancerRuleLookup $loadBalancerRule): self { $this->initialized['loadBalancerRule'] = true; diff --git a/src/Core/Model/LoadBalancersRulesLoadBalancerRulePatchBody.php b/src/Core/Model/LoadBalancersRulesLoadBalancerRulePatchBody.php index 426967e5..7a72f415 100644 --- a/src/Core/Model/LoadBalancersRulesLoadBalancerRulePatchBody.php +++ b/src/Core/Model/LoadBalancersRulesLoadBalancerRulePatchBody.php @@ -22,29 +22,19 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'load_balancer_rule[]' params are mutually exclusive, only one can be provided. - * * @var LoadBalancerRuleLookup */ protected $loadBalancerRule; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var LoadBalancerRuleArguments */ protected $properties; - /** - * All 'load_balancer_rule[]' params are mutually exclusive, only one can be provided. - */ public function getLoadBalancerRule(): LoadBalancerRuleLookup { return $this->loadBalancerRule; } - /** - * All 'load_balancer_rule[]' params are mutually exclusive, only one can be provided. - */ public function setLoadBalancerRule(LoadBalancerRuleLookup $loadBalancerRule): self { $this->initialized['loadBalancerRule'] = true; @@ -53,17 +43,11 @@ public function setLoadBalancerRule(LoadBalancerRuleLookup $loadBalancerRule): s return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): LoadBalancerRuleArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(LoadBalancerRuleArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/ObjectStorageAccessKey.php b/src/Core/Model/ObjectStorageAccessKey.php new file mode 100644 index 00000000..8a58fc84 --- /dev/null +++ b/src/Core/Model/ObjectStorageAccessKey.php @@ -0,0 +1,305 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $createdAt; + /** + * @var string + */ + protected $region; + /** + * @var string + */ + protected $state; + /** + * Global access to list all buckets. + * + * @var bool + */ + protected $allBucketsRead; + /** + * Global read access for objects in all buckets. + * + * @var bool + */ + protected $allObjectsRead; + /** + * Global write access to create and delete objects in all buckets. + * + * @var bool + */ + protected $allObjectsWrite; + /** + * @var list + */ + protected $readBuckets; + /** + * @var list + */ + protected $writeBuckets; + /** + * The server URL for the S3 credentials. + * + * @var string|null + */ + protected $serverUrl; + /** + * The S3 access key ID. + * + * @var string|null + */ + protected $s3AccessKeyId; + /** + * Only available when using the generate credentials endpoint. + * + * @var string|null + */ + protected $s3SecretAccessKey; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getRegion(): string + { + return $this->region; + } + + public function setRegion(string $region): self + { + $this->initialized['region'] = true; + $this->region = $region; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * Global access to list all buckets. + */ + public function getAllBucketsRead(): bool + { + return $this->allBucketsRead; + } + + /** + * Global access to list all buckets. + */ + public function setAllBucketsRead(bool $allBucketsRead): self + { + $this->initialized['allBucketsRead'] = true; + $this->allBucketsRead = $allBucketsRead; + + return $this; + } + + /** + * Global read access for objects in all buckets. + */ + public function getAllObjectsRead(): bool + { + return $this->allObjectsRead; + } + + /** + * Global read access for objects in all buckets. + */ + public function setAllObjectsRead(bool $allObjectsRead): self + { + $this->initialized['allObjectsRead'] = true; + $this->allObjectsRead = $allObjectsRead; + + return $this; + } + + /** + * Global write access to create and delete objects in all buckets. + */ + public function getAllObjectsWrite(): bool + { + return $this->allObjectsWrite; + } + + /** + * Global write access to create and delete objects in all buckets. + */ + public function setAllObjectsWrite(bool $allObjectsWrite): self + { + $this->initialized['allObjectsWrite'] = true; + $this->allObjectsWrite = $allObjectsWrite; + + return $this; + } + + /** + * @return list + */ + public function getReadBuckets(): array + { + return $this->readBuckets; + } + + /** + * @param list $readBuckets + */ + public function setReadBuckets(array $readBuckets): self + { + $this->initialized['readBuckets'] = true; + $this->readBuckets = $readBuckets; + + return $this; + } + + /** + * @return list + */ + public function getWriteBuckets(): array + { + return $this->writeBuckets; + } + + /** + * @param list $writeBuckets + */ + public function setWriteBuckets(array $writeBuckets): self + { + $this->initialized['writeBuckets'] = true; + $this->writeBuckets = $writeBuckets; + + return $this; + } + + /** + * The server URL for the S3 credentials. + */ + public function getServerUrl(): ?string + { + return $this->serverUrl; + } + + /** + * The server URL for the S3 credentials. + */ + public function setServerUrl(?string $serverUrl): self + { + $this->initialized['serverUrl'] = true; + $this->serverUrl = $serverUrl; + + return $this; + } + + /** + * The S3 access key ID. + */ + public function getS3AccessKeyId(): ?string + { + return $this->s3AccessKeyId; + } + + /** + * The S3 access key ID. + */ + public function setS3AccessKeyId(?string $s3AccessKeyId): self + { + $this->initialized['s3AccessKeyId'] = true; + $this->s3AccessKeyId = $s3AccessKeyId; + + return $this; + } + + /** + * Only available when using the generate credentials endpoint. + */ + public function getS3SecretAccessKey(): ?string + { + return $this->s3SecretAccessKey; + } + + /** + * Only available when using the generate credentials endpoint. + */ + public function setS3SecretAccessKey(?string $s3SecretAccessKey): self + { + $this->initialized['s3SecretAccessKey'] = true; + $this->s3SecretAccessKey = $s3SecretAccessKey; + + return $this; + } +} diff --git a/src/Core/Model/ObjectStorageAccessKeyArguments.php b/src/Core/Model/ObjectStorageAccessKeyArguments.php new file mode 100644 index 00000000..c841895b --- /dev/null +++ b/src/Core/Model/ObjectStorageAccessKeyArguments.php @@ -0,0 +1,124 @@ +initialized); + } + /** + * The name of the access key. + * + * @var string + */ + protected $name; + /** + * Some S3 clients require this permission to successfully connect to your account. + * + * @var bool + */ + protected $allBucketsRead; + /** + * Global read access for objects in all buckets. + * + * @var bool + */ + protected $allObjectsRead; + /** + * Global write access to create and delete objects in all buckets. + * + * @var bool + */ + protected $allObjectsWrite; + + /** + * The name of the access key. + */ + public function getName(): string + { + return $this->name; + } + + /** + * The name of the access key. + */ + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + /** + * Some S3 clients require this permission to successfully connect to your account. + */ + public function getAllBucketsRead(): bool + { + return $this->allBucketsRead; + } + + /** + * Some S3 clients require this permission to successfully connect to your account. + */ + public function setAllBucketsRead(bool $allBucketsRead): self + { + $this->initialized['allBucketsRead'] = true; + $this->allBucketsRead = $allBucketsRead; + + return $this; + } + + /** + * Global read access for objects in all buckets. + */ + public function getAllObjectsRead(): bool + { + return $this->allObjectsRead; + } + + /** + * Global read access for objects in all buckets. + */ + public function setAllObjectsRead(bool $allObjectsRead): self + { + $this->initialized['allObjectsRead'] = true; + $this->allObjectsRead = $allObjectsRead; + + return $this; + } + + /** + * Global write access to create and delete objects in all buckets. + */ + public function getAllObjectsWrite(): bool + { + return $this->allObjectsWrite; + } + + /** + * Global write access to create and delete objects in all buckets. + */ + public function setAllObjectsWrite(bool $allObjectsWrite): self + { + $this->initialized['allObjectsWrite'] = true; + $this->allObjectsWrite = $allObjectsWrite; + + return $this; + } +} diff --git a/src/Core/Model/ObjectStorageAccessKeyLookup.php b/src/Core/Model/ObjectStorageAccessKeyLookup.php new file mode 100644 index 00000000..1ce67794 --- /dev/null +++ b/src/Core/Model/ObjectStorageAccessKeyLookup.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var string + */ + protected $id; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } +} diff --git a/src/Core/Model/ObjectStorageAccessKeysAccessKeyDeleteBody.php b/src/Core/Model/ObjectStorageAccessKeysAccessKeyDeleteBody.php new file mode 100644 index 00000000..bbdf249a --- /dev/null +++ b/src/Core/Model/ObjectStorageAccessKeysAccessKeyDeleteBody.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var ObjectStorageAccessKeyLookup + */ + protected $accessKey; + + public function getAccessKey(): ObjectStorageAccessKeyLookup + { + return $this->accessKey; + } + + public function setAccessKey(ObjectStorageAccessKeyLookup $accessKey): self + { + $this->initialized['accessKey'] = true; + $this->accessKey = $accessKey; + + return $this; + } +} diff --git a/src/Core/Model/ObjectStorageAccessKeysAccessKeyDeleteResponse200.php b/src/Core/Model/ObjectStorageAccessKeysAccessKeyDeleteResponse200.php new file mode 100644 index 00000000..61140bcb --- /dev/null +++ b/src/Core/Model/ObjectStorageAccessKeysAccessKeyDeleteResponse200.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var bool + */ + protected $success; + + public function getSuccess(): bool + { + return $this->success; + } + + public function setSuccess(bool $success): self + { + $this->initialized['success'] = true; + $this->success = $success; + + return $this; + } +} diff --git a/src/Core/Model/ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBody.php b/src/Core/Model/ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBody.php new file mode 100644 index 00000000..2e05bcc0 --- /dev/null +++ b/src/Core/Model/ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBody.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var ObjectStorageAccessKeyLookup + */ + protected $accessKey; + + public function getAccessKey(): ObjectStorageAccessKeyLookup + { + return $this->accessKey; + } + + public function setAccessKey(ObjectStorageAccessKeyLookup $accessKey): self + { + $this->initialized['accessKey'] = true; + $this->accessKey = $accessKey; + + return $this; + } +} diff --git a/src/Core/Model/ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200.php b/src/Core/Model/ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200.php new file mode 100644 index 00000000..f7e03a0e --- /dev/null +++ b/src/Core/Model/ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The object storage access key with newly generated credentials. + * + * @var ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKey + */ + protected $objectStorageAccessKey; + + /** + * The object storage access key with newly generated credentials. + */ + public function getObjectStorageAccessKey(): ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKey + { + return $this->objectStorageAccessKey; + } + + /** + * The object storage access key with newly generated credentials. + */ + public function setObjectStorageAccessKey(ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKey $objectStorageAccessKey): self + { + $this->initialized['objectStorageAccessKey'] = true; + $this->objectStorageAccessKey = $objectStorageAccessKey; + + return $this; + } +} diff --git a/src/Core/Model/ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKey.php b/src/Core/Model/ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKey.php new file mode 100644 index 00000000..793a149c --- /dev/null +++ b/src/Core/Model/ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKey.php @@ -0,0 +1,305 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $createdAt; + /** + * @var string + */ + protected $region; + /** + * @var string + */ + protected $state; + /** + * Global access to list all buckets. + * + * @var bool + */ + protected $allBucketsRead; + /** + * Global read access for objects in all buckets. + * + * @var bool + */ + protected $allObjectsRead; + /** + * Global write access to create and delete objects in all buckets. + * + * @var bool + */ + protected $allObjectsWrite; + /** + * @var list + */ + protected $readBuckets; + /** + * @var list + */ + protected $writeBuckets; + /** + * The server URL for the S3 credentials. + * + * @var string|null + */ + protected $serverUrl; + /** + * The S3 access key ID. + * + * @var string|null + */ + protected $s3AccessKeyId; + /** + * Only available when using the generate credentials endpoint. + * + * @var string|null + */ + protected $s3SecretAccessKey; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getRegion(): string + { + return $this->region; + } + + public function setRegion(string $region): self + { + $this->initialized['region'] = true; + $this->region = $region; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * Global access to list all buckets. + */ + public function getAllBucketsRead(): bool + { + return $this->allBucketsRead; + } + + /** + * Global access to list all buckets. + */ + public function setAllBucketsRead(bool $allBucketsRead): self + { + $this->initialized['allBucketsRead'] = true; + $this->allBucketsRead = $allBucketsRead; + + return $this; + } + + /** + * Global read access for objects in all buckets. + */ + public function getAllObjectsRead(): bool + { + return $this->allObjectsRead; + } + + /** + * Global read access for objects in all buckets. + */ + public function setAllObjectsRead(bool $allObjectsRead): self + { + $this->initialized['allObjectsRead'] = true; + $this->allObjectsRead = $allObjectsRead; + + return $this; + } + + /** + * Global write access to create and delete objects in all buckets. + */ + public function getAllObjectsWrite(): bool + { + return $this->allObjectsWrite; + } + + /** + * Global write access to create and delete objects in all buckets. + */ + public function setAllObjectsWrite(bool $allObjectsWrite): self + { + $this->initialized['allObjectsWrite'] = true; + $this->allObjectsWrite = $allObjectsWrite; + + return $this; + } + + /** + * @return list + */ + public function getReadBuckets(): array + { + return $this->readBuckets; + } + + /** + * @param list $readBuckets + */ + public function setReadBuckets(array $readBuckets): self + { + $this->initialized['readBuckets'] = true; + $this->readBuckets = $readBuckets; + + return $this; + } + + /** + * @return list + */ + public function getWriteBuckets(): array + { + return $this->writeBuckets; + } + + /** + * @param list $writeBuckets + */ + public function setWriteBuckets(array $writeBuckets): self + { + $this->initialized['writeBuckets'] = true; + $this->writeBuckets = $writeBuckets; + + return $this; + } + + /** + * The server URL for the S3 credentials. + */ + public function getServerUrl(): ?string + { + return $this->serverUrl; + } + + /** + * The server URL for the S3 credentials. + */ + public function setServerUrl(?string $serverUrl): self + { + $this->initialized['serverUrl'] = true; + $this->serverUrl = $serverUrl; + + return $this; + } + + /** + * The S3 access key ID. + */ + public function getS3AccessKeyId(): ?string + { + return $this->s3AccessKeyId; + } + + /** + * The S3 access key ID. + */ + public function setS3AccessKeyId(?string $s3AccessKeyId): self + { + $this->initialized['s3AccessKeyId'] = true; + $this->s3AccessKeyId = $s3AccessKeyId; + + return $this; + } + + /** + * Only available when using the generate credentials endpoint. + */ + public function getS3SecretAccessKey(): ?string + { + return $this->s3SecretAccessKey; + } + + /** + * Only available when using the generate credentials endpoint. + */ + public function setS3SecretAccessKey(?string $s3SecretAccessKey): self + { + $this->initialized['s3SecretAccessKey'] = true; + $this->s3SecretAccessKey = $s3SecretAccessKey; + + return $this; + } +} diff --git a/src/Core/Model/ObjectStorageAccessKeysAccessKeyGetResponse200.php b/src/Core/Model/ObjectStorageAccessKeysAccessKeyGetResponse200.php new file mode 100644 index 00000000..8746c49f --- /dev/null +++ b/src/Core/Model/ObjectStorageAccessKeysAccessKeyGetResponse200.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var ObjectStorageAccessKey + */ + protected $objectStorageAccessKey; + + public function getObjectStorageAccessKey(): ObjectStorageAccessKey + { + return $this->objectStorageAccessKey; + } + + public function setObjectStorageAccessKey(ObjectStorageAccessKey $objectStorageAccessKey): self + { + $this->initialized['objectStorageAccessKey'] = true; + $this->objectStorageAccessKey = $objectStorageAccessKey; + + return $this; + } +} diff --git a/src/Core/Model/ObjectStorageAccessKeysAccessKeyPatchBody.php b/src/Core/Model/ObjectStorageAccessKeysAccessKeyPatchBody.php new file mode 100644 index 00000000..c8ba7cd9 --- /dev/null +++ b/src/Core/Model/ObjectStorageAccessKeysAccessKeyPatchBody.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var ObjectStorageAccessKeyLookup + */ + protected $accessKey; + /** + * @var ObjectStorageAccessKeyArguments + */ + protected $properties; + + public function getAccessKey(): ObjectStorageAccessKeyLookup + { + return $this->accessKey; + } + + public function setAccessKey(ObjectStorageAccessKeyLookup $accessKey): self + { + $this->initialized['accessKey'] = true; + $this->accessKey = $accessKey; + + return $this; + } + + public function getProperties(): ObjectStorageAccessKeyArguments + { + return $this->properties; + } + + public function setProperties(ObjectStorageAccessKeyArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Core/Model/ObjectStorageAccessKeysAccessKeyPatchResponse200.php b/src/Core/Model/ObjectStorageAccessKeysAccessKeyPatchResponse200.php new file mode 100644 index 00000000..c46c395a --- /dev/null +++ b/src/Core/Model/ObjectStorageAccessKeysAccessKeyPatchResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The new properties for the object storage access key. + * + * @var ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKey + */ + protected $objectStorageAccessKey; + + /** + * The new properties for the object storage access key. + */ + public function getObjectStorageAccessKey(): ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKey + { + return $this->objectStorageAccessKey; + } + + /** + * The new properties for the object storage access key. + */ + public function setObjectStorageAccessKey(ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKey $objectStorageAccessKey): self + { + $this->initialized['objectStorageAccessKey'] = true; + $this->objectStorageAccessKey = $objectStorageAccessKey; + + return $this; + } +} diff --git a/src/Core/Model/ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKey.php b/src/Core/Model/ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKey.php new file mode 100644 index 00000000..e9b5c25f --- /dev/null +++ b/src/Core/Model/ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKey.php @@ -0,0 +1,305 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var int + */ + protected $createdAt; + /** + * @var string + */ + protected $region; + /** + * @var string + */ + protected $state; + /** + * Global access to list all buckets. + * + * @var bool + */ + protected $allBucketsRead; + /** + * Global read access for objects in all buckets. + * + * @var bool + */ + protected $allObjectsRead; + /** + * Global write access to create and delete objects in all buckets. + * + * @var bool + */ + protected $allObjectsWrite; + /** + * @var list + */ + protected $readBuckets; + /** + * @var list + */ + protected $writeBuckets; + /** + * The server URL for the S3 credentials. + * + * @var string|null + */ + protected $serverUrl; + /** + * The S3 access key ID. + * + * @var string|null + */ + protected $s3AccessKeyId; + /** + * Only available when using the generate credentials endpoint. + * + * @var string|null + */ + protected $s3SecretAccessKey; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getRegion(): string + { + return $this->region; + } + + public function setRegion(string $region): self + { + $this->initialized['region'] = true; + $this->region = $region; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * Global access to list all buckets. + */ + public function getAllBucketsRead(): bool + { + return $this->allBucketsRead; + } + + /** + * Global access to list all buckets. + */ + public function setAllBucketsRead(bool $allBucketsRead): self + { + $this->initialized['allBucketsRead'] = true; + $this->allBucketsRead = $allBucketsRead; + + return $this; + } + + /** + * Global read access for objects in all buckets. + */ + public function getAllObjectsRead(): bool + { + return $this->allObjectsRead; + } + + /** + * Global read access for objects in all buckets. + */ + public function setAllObjectsRead(bool $allObjectsRead): self + { + $this->initialized['allObjectsRead'] = true; + $this->allObjectsRead = $allObjectsRead; + + return $this; + } + + /** + * Global write access to create and delete objects in all buckets. + */ + public function getAllObjectsWrite(): bool + { + return $this->allObjectsWrite; + } + + /** + * Global write access to create and delete objects in all buckets. + */ + public function setAllObjectsWrite(bool $allObjectsWrite): self + { + $this->initialized['allObjectsWrite'] = true; + $this->allObjectsWrite = $allObjectsWrite; + + return $this; + } + + /** + * @return list + */ + public function getReadBuckets(): array + { + return $this->readBuckets; + } + + /** + * @param list $readBuckets + */ + public function setReadBuckets(array $readBuckets): self + { + $this->initialized['readBuckets'] = true; + $this->readBuckets = $readBuckets; + + return $this; + } + + /** + * @return list + */ + public function getWriteBuckets(): array + { + return $this->writeBuckets; + } + + /** + * @param list $writeBuckets + */ + public function setWriteBuckets(array $writeBuckets): self + { + $this->initialized['writeBuckets'] = true; + $this->writeBuckets = $writeBuckets; + + return $this; + } + + /** + * The server URL for the S3 credentials. + */ + public function getServerUrl(): ?string + { + return $this->serverUrl; + } + + /** + * The server URL for the S3 credentials. + */ + public function setServerUrl(?string $serverUrl): self + { + $this->initialized['serverUrl'] = true; + $this->serverUrl = $serverUrl; + + return $this; + } + + /** + * The S3 access key ID. + */ + public function getS3AccessKeyId(): ?string + { + return $this->s3AccessKeyId; + } + + /** + * The S3 access key ID. + */ + public function setS3AccessKeyId(?string $s3AccessKeyId): self + { + $this->initialized['s3AccessKeyId'] = true; + $this->s3AccessKeyId = $s3AccessKeyId; + + return $this; + } + + /** + * Only available when using the generate credentials endpoint. + */ + public function getS3SecretAccessKey(): ?string + { + return $this->s3SecretAccessKey; + } + + /** + * Only available when using the generate credentials endpoint. + */ + public function setS3SecretAccessKey(?string $s3SecretAccessKey): self + { + $this->initialized['s3SecretAccessKey'] = true; + $this->s3SecretAccessKey = $s3SecretAccessKey; + + return $this; + } +} diff --git a/src/Core/Model/ObjectStorageAccount.php b/src/Core/Model/ObjectStorageAccount.php new file mode 100644 index 00000000..274f8daa --- /dev/null +++ b/src/Core/Model/ObjectStorageAccount.php @@ -0,0 +1,134 @@ +initialized); + } + /** + * @var string + */ + protected $region; + /** + * @var int + */ + protected $createdAt; + /** + * @var string + */ + protected $provisioningState; + /** + * The total storage used in bytes (updated periodically). + * + * @var int + */ + protected $size; + /** + * @var int + */ + protected $bucketCount; + /** + * @var DataCenter + */ + protected $dataCenter; + + public function getRegion(): string + { + return $this->region; + } + + public function setRegion(string $region): self + { + $this->initialized['region'] = true; + $this->region = $region; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getProvisioningState(): string + { + return $this->provisioningState; + } + + public function setProvisioningState(string $provisioningState): self + { + $this->initialized['provisioningState'] = true; + $this->provisioningState = $provisioningState; + + return $this; + } + + /** + * The total storage used in bytes (updated periodically). + */ + public function getSize(): int + { + return $this->size; + } + + /** + * The total storage used in bytes (updated periodically). + */ + public function setSize(int $size): self + { + $this->initialized['size'] = true; + $this->size = $size; + + return $this; + } + + public function getBucketCount(): int + { + return $this->bucketCount; + } + + public function setBucketCount(int $bucketCount): self + { + $this->initialized['bucketCount'] = true; + $this->bucketCount = $bucketCount; + + return $this; + } + + public function getDataCenter(): DataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(DataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } +} diff --git a/src/Core/Model/ObjectStorageBucketArguments.php b/src/Core/Model/ObjectStorageBucketArguments.php index 064fef26..8b64c43c 100644 --- a/src/Core/Model/ObjectStorageBucketArguments.php +++ b/src/Core/Model/ObjectStorageBucketArguments.php @@ -52,8 +52,6 @@ public function isInitialized($property): bool */ protected $staticSiteError; /** - * All 'access_control_list[]' params are mutually exclusive, only one can be provided. - * * @var ObjectStorageBucketACLArguments */ protected $accessControlList; @@ -153,17 +151,11 @@ public function setStaticSiteError(string $staticSiteError): self return $this; } - /** - * All 'access_control_list[]' params are mutually exclusive, only one can be provided. - */ public function getAccessControlList(): ObjectStorageBucketACLArguments { return $this->accessControlList; } - /** - * All 'access_control_list[]' params are mutually exclusive, only one can be provided. - */ public function setAccessControlList(ObjectStorageBucketACLArguments $accessControlList): self { $this->initialized['accessControlList'] = true; diff --git a/src/Core/Model/ObjectStorageObjectStorageClusterBucketsBucketDeleteBody.php b/src/Core/Model/ObjectStorageObjectStorageClusterBucketsBucketDeleteBody.php index 10a525fb..8acc3a73 100644 --- a/src/Core/Model/ObjectStorageObjectStorageClusterBucketsBucketDeleteBody.php +++ b/src/Core/Model/ObjectStorageObjectStorageClusterBucketsBucketDeleteBody.php @@ -22,29 +22,19 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'object_storage_cluster[]' params are mutually exclusive, only one can be provided. - * * @var ObjectStorageClusterLookup */ protected $objectStorageCluster; /** - * All 'bucket[]' params are mutually exclusive, only one can be provided. - * * @var ObjectStorageBucketLookup */ protected $bucket; - /** - * All 'object_storage_cluster[]' params are mutually exclusive, only one can be provided. - */ public function getObjectStorageCluster(): ObjectStorageClusterLookup { return $this->objectStorageCluster; } - /** - * All 'object_storage_cluster[]' params are mutually exclusive, only one can be provided. - */ public function setObjectStorageCluster(ObjectStorageClusterLookup $objectStorageCluster): self { $this->initialized['objectStorageCluster'] = true; @@ -53,17 +43,11 @@ public function setObjectStorageCluster(ObjectStorageClusterLookup $objectStorag return $this; } - /** - * All 'bucket[]' params are mutually exclusive, only one can be provided. - */ public function getBucket(): ObjectStorageBucketLookup { return $this->bucket; } - /** - * All 'bucket[]' params are mutually exclusive, only one can be provided. - */ public function setBucket(ObjectStorageBucketLookup $bucket): self { $this->initialized['bucket'] = true; diff --git a/src/Core/Model/ObjectStorageObjectStorageClusterBucketsBucketPatchBody.php b/src/Core/Model/ObjectStorageObjectStorageClusterBucketsBucketPatchBody.php index 305e33a1..8d2851ef 100644 --- a/src/Core/Model/ObjectStorageObjectStorageClusterBucketsBucketPatchBody.php +++ b/src/Core/Model/ObjectStorageObjectStorageClusterBucketsBucketPatchBody.php @@ -22,35 +22,23 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'object_storage_cluster[]' params are mutually exclusive, only one can be provided. - * * @var ObjectStorageClusterLookup */ protected $objectStorageCluster; /** - * All 'bucket[]' params are mutually exclusive, only one can be provided. - * * @var ObjectStorageBucketLookup */ protected $bucket; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var ObjectStorageBucketArguments */ protected $properties; - /** - * All 'object_storage_cluster[]' params are mutually exclusive, only one can be provided. - */ public function getObjectStorageCluster(): ObjectStorageClusterLookup { return $this->objectStorageCluster; } - /** - * All 'object_storage_cluster[]' params are mutually exclusive, only one can be provided. - */ public function setObjectStorageCluster(ObjectStorageClusterLookup $objectStorageCluster): self { $this->initialized['objectStorageCluster'] = true; @@ -59,17 +47,11 @@ public function setObjectStorageCluster(ObjectStorageClusterLookup $objectStorag return $this; } - /** - * All 'bucket[]' params are mutually exclusive, only one can be provided. - */ public function getBucket(): ObjectStorageBucketLookup { return $this->bucket; } - /** - * All 'bucket[]' params are mutually exclusive, only one can be provided. - */ public function setBucket(ObjectStorageBucketLookup $bucket): self { $this->initialized['bucket'] = true; @@ -78,17 +60,11 @@ public function setBucket(ObjectStorageBucketLookup $bucket): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): ObjectStorageBucketArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(ObjectStorageBucketArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/ObjectStorageObjectStorageClusterBucketsBucketPresignedUrlPostBody.php b/src/Core/Model/ObjectStorageObjectStorageClusterBucketsBucketPresignedUrlPostBody.php index b8777f70..e9f8b176 100644 --- a/src/Core/Model/ObjectStorageObjectStorageClusterBucketsBucketPresignedUrlPostBody.php +++ b/src/Core/Model/ObjectStorageObjectStorageClusterBucketsBucketPresignedUrlPostBody.php @@ -22,14 +22,10 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'object_storage_cluster[]' params are mutually exclusive, only one can be provided. - * * @var ObjectStorageClusterLookup */ protected $objectStorageCluster; /** - * All 'bucket[]' params are mutually exclusive, only one can be provided. - * * @var ObjectStorageBucketLookup */ protected $bucket; @@ -40,23 +36,15 @@ public function isInitialized($property): bool */ protected $path; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var ObjectStorageObjectPresignedURLArguments */ protected $properties; - /** - * All 'object_storage_cluster[]' params are mutually exclusive, only one can be provided. - */ public function getObjectStorageCluster(): ObjectStorageClusterLookup { return $this->objectStorageCluster; } - /** - * All 'object_storage_cluster[]' params are mutually exclusive, only one can be provided. - */ public function setObjectStorageCluster(ObjectStorageClusterLookup $objectStorageCluster): self { $this->initialized['objectStorageCluster'] = true; @@ -65,17 +53,11 @@ public function setObjectStorageCluster(ObjectStorageClusterLookup $objectStorag return $this; } - /** - * All 'bucket[]' params are mutually exclusive, only one can be provided. - */ public function getBucket(): ObjectStorageBucketLookup { return $this->bucket; } - /** - * All 'bucket[]' params are mutually exclusive, only one can be provided. - */ public function setBucket(ObjectStorageBucketLookup $bucket): self { $this->initialized['bucket'] = true; @@ -103,17 +85,11 @@ public function setPath(string $path): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): ObjectStorageObjectPresignedURLArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(ObjectStorageObjectPresignedURLArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/ObjectStorageObjectStorageClusterBucketsBucketRevokePresignedUrlsPostBody.php b/src/Core/Model/ObjectStorageObjectStorageClusterBucketsBucketRevokePresignedUrlsPostBody.php index 5e10e3a6..087b2ad7 100644 --- a/src/Core/Model/ObjectStorageObjectStorageClusterBucketsBucketRevokePresignedUrlsPostBody.php +++ b/src/Core/Model/ObjectStorageObjectStorageClusterBucketsBucketRevokePresignedUrlsPostBody.php @@ -22,29 +22,19 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'object_storage_cluster[]' params are mutually exclusive, only one can be provided. - * * @var ObjectStorageClusterLookup */ protected $objectStorageCluster; /** - * All 'bucket[]' params are mutually exclusive, only one can be provided. - * * @var ObjectStorageBucketLookup */ protected $bucket; - /** - * All 'object_storage_cluster[]' params are mutually exclusive, only one can be provided. - */ public function getObjectStorageCluster(): ObjectStorageClusterLookup { return $this->objectStorageCluster; } - /** - * All 'object_storage_cluster[]' params are mutually exclusive, only one can be provided. - */ public function setObjectStorageCluster(ObjectStorageClusterLookup $objectStorageCluster): self { $this->initialized['objectStorageCluster'] = true; @@ -53,17 +43,11 @@ public function setObjectStorageCluster(ObjectStorageClusterLookup $objectStorag return $this; } - /** - * All 'bucket[]' params are mutually exclusive, only one can be provided. - */ public function getBucket(): ObjectStorageBucketLookup { return $this->bucket; } - /** - * All 'bucket[]' params are mutually exclusive, only one can be provided. - */ public function setBucket(ObjectStorageBucketLookup $bucket): self { $this->initialized['bucket'] = true; diff --git a/src/Core/Model/ObjectStorageProvisioningErrorSchema.php b/src/Core/Model/ObjectStorageProvisioningErrorSchema.php new file mode 100644 index 00000000..9c42dccb --- /dev/null +++ b/src/Core/Model/ObjectStorageProvisioningErrorSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Core/Model/OrganizationsOrganizationAddressListsPostBody.php b/src/Core/Model/OrganizationsOrganizationAddressListsPostBody.php index 1ce0d69f..276c7c90 100644 --- a/src/Core/Model/OrganizationsOrganizationAddressListsPostBody.php +++ b/src/Core/Model/OrganizationsOrganizationAddressListsPostBody.php @@ -28,8 +28,6 @@ public function isInitialized($property): bool */ protected $organization; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var AddressListArguments */ protected $properties; @@ -57,17 +55,11 @@ public function setOrganization(OrganizationLookup $organization): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): AddressListArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(AddressListArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/OrganizationsOrganizationApiTokensPostBody.php b/src/Core/Model/OrganizationsOrganizationApiTokensPostBody.php index 961268e9..3071d244 100644 --- a/src/Core/Model/OrganizationsOrganizationApiTokensPostBody.php +++ b/src/Core/Model/OrganizationsOrganizationApiTokensPostBody.php @@ -28,8 +28,6 @@ public function isInitialized($property): bool */ protected $organization; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var APITokenArguments */ protected $properties; @@ -57,17 +55,11 @@ public function setOrganization(OrganizationLookup $organization): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): APITokenArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(APITokenArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/OrganizationsOrganizationDisksPostBody.php b/src/Core/Model/OrganizationsOrganizationDisksPostBody.php index 13b6b694..2caa65af 100644 --- a/src/Core/Model/OrganizationsOrganizationDisksPostBody.php +++ b/src/Core/Model/OrganizationsOrganizationDisksPostBody.php @@ -28,8 +28,6 @@ public function isInitialized($property): bool */ protected $organization; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var DiskArguments */ protected $properties; @@ -57,17 +55,11 @@ public function setOrganization(OrganizationLookup $organization): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): DiskArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(DiskArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/OrganizationsOrganizationDnsZonesPostBody.php b/src/Core/Model/OrganizationsOrganizationDnsZonesPostBody.php index d1a864a1..403305e5 100644 --- a/src/Core/Model/OrganizationsOrganizationDnsZonesPostBody.php +++ b/src/Core/Model/OrganizationsOrganizationDnsZonesPostBody.php @@ -28,8 +28,6 @@ public function isInitialized($property): bool */ protected $organization; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var DNSZoneArguments */ protected $properties; @@ -60,17 +58,11 @@ public function setOrganization(OrganizationLookup $organization): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): DNSZoneArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(DNSZoneArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/OrganizationsOrganizationFileStorageVolumesPostBody.php b/src/Core/Model/OrganizationsOrganizationFileStorageVolumesPostBody.php index 8db27470..e916e2a7 100644 --- a/src/Core/Model/OrganizationsOrganizationFileStorageVolumesPostBody.php +++ b/src/Core/Model/OrganizationsOrganizationFileStorageVolumesPostBody.php @@ -28,8 +28,6 @@ public function isInitialized($property): bool */ protected $organization; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var FileStorageVolumeArguments */ protected $properties; @@ -57,17 +55,11 @@ public function setOrganization(OrganizationLookup $organization): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): FileStorageVolumeArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(FileStorageVolumeArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/OrganizationsOrganizationLoadBalancersPostBody.php b/src/Core/Model/OrganizationsOrganizationLoadBalancersPostBody.php index 2ed1cd11..09052e4b 100644 --- a/src/Core/Model/OrganizationsOrganizationLoadBalancersPostBody.php +++ b/src/Core/Model/OrganizationsOrganizationLoadBalancersPostBody.php @@ -28,8 +28,6 @@ public function isInitialized($property): bool */ protected $organization; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var LoadBalancerArguments */ protected $properties; @@ -57,17 +55,11 @@ public function setOrganization(OrganizationLookup $organization): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): LoadBalancerArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(LoadBalancerArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/OrganizationsOrganizationObjectStorageAccessKeysGetResponse200.php b/src/Core/Model/OrganizationsOrganizationObjectStorageAccessKeysGetResponse200.php new file mode 100644 index 00000000..6bfcba54 --- /dev/null +++ b/src/Core/Model/OrganizationsOrganizationObjectStorageAccessKeysGetResponse200.php @@ -0,0 +1,70 @@ +initialized); + } + /** + * @var PaginationObject + */ + protected $pagination; + /** + * The object storage access keys for the organization. + * + * @var list + */ + protected $objectStorageAccessKeys; + + public function getPagination(): PaginationObject + { + return $this->pagination; + } + + public function setPagination(PaginationObject $pagination): self + { + $this->initialized['pagination'] = true; + $this->pagination = $pagination; + + return $this; + } + + /** + * The object storage access keys for the organization. + * + * @return list + */ + public function getObjectStorageAccessKeys(): array + { + return $this->objectStorageAccessKeys; + } + + /** + * The object storage access keys for the organization. + * + * @param list $objectStorageAccessKeys + */ + public function setObjectStorageAccessKeys(array $objectStorageAccessKeys): self + { + $this->initialized['objectStorageAccessKeys'] = true; + $this->objectStorageAccessKeys = $objectStorageAccessKeys; + + return $this; + } +} diff --git a/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBody.php b/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBody.php new file mode 100644 index 00000000..d15cb020 --- /dev/null +++ b/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBody.php @@ -0,0 +1,83 @@ +initialized); + } + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + * + * @var OrganizationLookup + */ + protected $organization; + /** + * @var ObjectStorageClusterLookup + */ + protected $objectStorageCluster; + /** + * @var ObjectStorageAccessKeyArguments + */ + protected $properties; + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function getOrganization(): OrganizationLookup + { + return $this->organization; + } + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function setOrganization(OrganizationLookup $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + public function getObjectStorageCluster(): ObjectStorageClusterLookup + { + return $this->objectStorageCluster; + } + + public function setObjectStorageCluster(ObjectStorageClusterLookup $objectStorageCluster): self + { + $this->initialized['objectStorageCluster'] = true; + $this->objectStorageCluster = $objectStorageCluster; + + return $this; + } + + public function getProperties(): ObjectStorageAccessKeyArguments + { + return $this->properties; + } + + public function setProperties(ObjectStorageAccessKeyArguments $properties): self + { + $this->initialized['properties'] = true; + $this->properties = $properties; + + return $this; + } +} diff --git a/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201.php b/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201.php new file mode 100644 index 00000000..6bec3b61 --- /dev/null +++ b/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var ObjectStorageAccessKey + */ + protected $objectStorageAccessKey; + + public function getObjectStorageAccessKey(): ObjectStorageAccessKey + { + return $this->objectStorageAccessKey; + } + + public function setObjectStorageAccessKey(ObjectStorageAccessKey $objectStorageAccessKey): self + { + $this->initialized['objectStorageAccessKey'] = true; + $this->objectStorageAccessKey = $objectStorageAccessKey; + + return $this; + } +} diff --git a/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterBucketsPostBody.php b/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterBucketsPostBody.php index 123ccb7f..02907d60 100644 --- a/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterBucketsPostBody.php +++ b/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterBucketsPostBody.php @@ -28,14 +28,10 @@ public function isInitialized($property): bool */ protected $organization; /** - * All 'object_storage_cluster[]' params are mutually exclusive, only one can be provided. - * * @var ObjectStorageClusterLookup */ protected $objectStorageCluster; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var ObjectStorageBucketArguments */ protected $properties; @@ -59,17 +55,11 @@ public function setOrganization(OrganizationLookup $organization): self return $this; } - /** - * All 'object_storage_cluster[]' params are mutually exclusive, only one can be provided. - */ public function getObjectStorageCluster(): ObjectStorageClusterLookup { return $this->objectStorageCluster; } - /** - * All 'object_storage_cluster[]' params are mutually exclusive, only one can be provided. - */ public function setObjectStorageCluster(ObjectStorageClusterLookup $objectStorageCluster): self { $this->initialized['objectStorageCluster'] = true; @@ -78,17 +68,11 @@ public function setObjectStorageCluster(ObjectStorageClusterLookup $objectStorag return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): ObjectStorageBucketArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(ObjectStorageBucketArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBody.php b/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBody.php new file mode 100644 index 00000000..929bdb1b --- /dev/null +++ b/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBody.php @@ -0,0 +1,66 @@ +initialized); + } + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + * + * @var OrganizationLookup + */ + protected $organization; + /** + * @var ObjectStorageClusterLookup + */ + protected $objectStorageCluster; + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function getOrganization(): OrganizationLookup + { + return $this->organization; + } + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function setOrganization(OrganizationLookup $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + public function getObjectStorageCluster(): ObjectStorageClusterLookup + { + return $this->objectStorageCluster; + } + + public function setObjectStorageCluster(ObjectStorageClusterLookup $objectStorageCluster): self + { + $this->initialized['objectStorageCluster'] = true; + $this->objectStorageCluster = $objectStorageCluster; + + return $this; + } +} diff --git a/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200.php b/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200.php new file mode 100644 index 00000000..f32470da --- /dev/null +++ b/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObject + */ + protected $trashObject; + /** + * @var ObjectStorageAccount + */ + protected $objectStorageAccount; + + public function getTrashObject(): DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObject + { + return $this->trashObject; + } + + public function setTrashObject(DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObject $trashObject): self + { + $this->initialized['trashObject'] = true; + $this->trashObject = $trashObject; + + return $this; + } + + public function getObjectStorageAccount(): ObjectStorageAccount + { + return $this->objectStorageAccount; + } + + public function setObjectStorageAccount(ObjectStorageAccount $objectStorageAccount): self + { + $this->initialized['objectStorageAccount'] = true; + $this->objectStorageAccount = $objectStorageAccount; + + return $this; + } +} diff --git a/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200.php b/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200.php new file mode 100644 index 00000000..f7a7928e --- /dev/null +++ b/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var ObjectStorageAccount + */ + protected $objectStorageAccount; + + public function getObjectStorageAccount(): ObjectStorageAccount + { + return $this->objectStorageAccount; + } + + public function setObjectStorageAccount(ObjectStorageAccount $objectStorageAccount): self + { + $this->initialized['objectStorageAccount'] = true; + $this->objectStorageAccount = $objectStorageAccount; + + return $this; + } +} diff --git a/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterPostBody.php b/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterPostBody.php new file mode 100644 index 00000000..17f31265 --- /dev/null +++ b/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterPostBody.php @@ -0,0 +1,66 @@ +initialized); + } + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + * + * @var OrganizationLookup + */ + protected $organization; + /** + * @var ObjectStorageClusterLookup + */ + protected $objectStorageCluster; + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function getOrganization(): OrganizationLookup + { + return $this->organization; + } + + /** + * All 'organization[]' params are mutually exclusive, only one can be provided. + */ + public function setOrganization(OrganizationLookup $organization): self + { + $this->initialized['organization'] = true; + $this->organization = $organization; + + return $this; + } + + public function getObjectStorageCluster(): ObjectStorageClusterLookup + { + return $this->objectStorageCluster; + } + + public function setObjectStorageCluster(ObjectStorageClusterLookup $objectStorageCluster): self + { + $this->initialized['objectStorageCluster'] = true; + $this->objectStorageCluster = $objectStorageCluster; + + return $this; + } +} diff --git a/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201.php b/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201.php new file mode 100644 index 00000000..73a7c178 --- /dev/null +++ b/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The object storage account that was created. + * + * @var OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccount + */ + protected $objectStorageAccount; + + /** + * The object storage account that was created. + */ + public function getObjectStorageAccount(): OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccount + { + return $this->objectStorageAccount; + } + + /** + * The object storage account that was created. + */ + public function setObjectStorageAccount(OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccount $objectStorageAccount): self + { + $this->initialized['objectStorageAccount'] = true; + $this->objectStorageAccount = $objectStorageAccount; + + return $this; + } +} diff --git a/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccount.php b/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccount.php new file mode 100644 index 00000000..f70ca561 --- /dev/null +++ b/src/Core/Model/OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccount.php @@ -0,0 +1,134 @@ +initialized); + } + /** + * @var string + */ + protected $region; + /** + * @var int + */ + protected $createdAt; + /** + * @var string + */ + protected $provisioningState; + /** + * The total storage used in bytes (updated periodically). + * + * @var int + */ + protected $size; + /** + * @var int + */ + protected $bucketCount; + /** + * @var DataCenter + */ + protected $dataCenter; + + public function getRegion(): string + { + return $this->region; + } + + public function setRegion(string $region): self + { + $this->initialized['region'] = true; + $this->region = $region; + + return $this; + } + + public function getCreatedAt(): int + { + return $this->createdAt; + } + + public function setCreatedAt(int $createdAt): self + { + $this->initialized['createdAt'] = true; + $this->createdAt = $createdAt; + + return $this; + } + + public function getProvisioningState(): string + { + return $this->provisioningState; + } + + public function setProvisioningState(string $provisioningState): self + { + $this->initialized['provisioningState'] = true; + $this->provisioningState = $provisioningState; + + return $this; + } + + /** + * The total storage used in bytes (updated periodically). + */ + public function getSize(): int + { + return $this->size; + } + + /** + * The total storage used in bytes (updated periodically). + */ + public function setSize(int $size): self + { + $this->initialized['size'] = true; + $this->size = $size; + + return $this; + } + + public function getBucketCount(): int + { + return $this->bucketCount; + } + + public function setBucketCount(int $bucketCount): self + { + $this->initialized['bucketCount'] = true; + $this->bucketCount = $bucketCount; + + return $this; + } + + public function getDataCenter(): DataCenter + { + return $this->dataCenter; + } + + public function setDataCenter(DataCenter $dataCenter): self + { + $this->initialized['dataCenter'] = true; + $this->dataCenter = $dataCenter; + + return $this; + } +} diff --git a/src/Core/Model/OrganizationsOrganizationSecurityGroupsPostBody.php b/src/Core/Model/OrganizationsOrganizationSecurityGroupsPostBody.php index 1fc9ff31..d6614901 100644 --- a/src/Core/Model/OrganizationsOrganizationSecurityGroupsPostBody.php +++ b/src/Core/Model/OrganizationsOrganizationSecurityGroupsPostBody.php @@ -28,8 +28,6 @@ public function isInitialized($property): bool */ protected $organization; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var SecurityGroupArguments */ protected $properties; @@ -57,17 +55,11 @@ public function setOrganization(OrganizationLookup $organization): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): SecurityGroupArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(SecurityGroupArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/OrganizationsOrganizationSshKeysPostBody.php b/src/Core/Model/OrganizationsOrganizationSshKeysPostBody.php index b3bb79ff..17396fd3 100644 --- a/src/Core/Model/OrganizationsOrganizationSshKeysPostBody.php +++ b/src/Core/Model/OrganizationsOrganizationSshKeysPostBody.php @@ -28,8 +28,6 @@ public function isInitialized($property): bool */ protected $organization; /** - * All 'ssh_key[]' params are mutually exclusive, only one can be provided. - * * @var AuthSSHKeyProperties */ protected $sshKey; @@ -53,17 +51,11 @@ public function setOrganization(OrganizationLookup $organization): self return $this; } - /** - * All 'ssh_key[]' params are mutually exclusive, only one can be provided. - */ public function getSshKey(): AuthSSHKeyProperties { return $this->sshKey; } - /** - * All 'ssh_key[]' params are mutually exclusive, only one can be provided. - */ public function setSshKey(AuthSSHKeyProperties $sshKey): self { $this->initialized['sshKey'] = true; diff --git a/src/Core/Model/OrganizationsOrganizationTagsPostBody.php b/src/Core/Model/OrganizationsOrganizationTagsPostBody.php index 63976889..3856b634 100644 --- a/src/Core/Model/OrganizationsOrganizationTagsPostBody.php +++ b/src/Core/Model/OrganizationsOrganizationTagsPostBody.php @@ -28,8 +28,6 @@ public function isInitialized($property): bool */ protected $organization; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var TagArguments */ protected $properties; @@ -53,17 +51,11 @@ public function setOrganization(OrganizationLookup $organization): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): TagArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(TagArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/OrganizationsOrganizationVirtualMachineGroupsPostBody.php b/src/Core/Model/OrganizationsOrganizationVirtualMachineGroupsPostBody.php index a4b42c84..e59f3c97 100644 --- a/src/Core/Model/OrganizationsOrganizationVirtualMachineGroupsPostBody.php +++ b/src/Core/Model/OrganizationsOrganizationVirtualMachineGroupsPostBody.php @@ -28,8 +28,6 @@ public function isInitialized($property): bool */ protected $organization; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var VirtualMachineGroupArguments */ protected $properties; @@ -53,17 +51,11 @@ public function setOrganization(OrganizationLookup $organization): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): VirtualMachineGroupArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(VirtualMachineGroupArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/OrganizationsOrganizationVirtualNetworksPostBody.php b/src/Core/Model/OrganizationsOrganizationVirtualNetworksPostBody.php index 33336a7e..34442c2f 100644 --- a/src/Core/Model/OrganizationsOrganizationVirtualNetworksPostBody.php +++ b/src/Core/Model/OrganizationsOrganizationVirtualNetworksPostBody.php @@ -34,8 +34,6 @@ public function isInitialized($property): bool */ protected $dataCenter; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var VirtualNetworkArguments */ protected $properties; @@ -78,17 +76,11 @@ public function setDataCenter(DataCenterLookup $dataCenter): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): VirtualNetworkArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(VirtualNetworkArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterface.php b/src/Core/Model/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterface.php index dfd4d422..c5bd430a 100644 --- a/src/Core/Model/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterface.php +++ b/src/Core/Model/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterface.php @@ -34,9 +34,13 @@ public function isInitialized($property): bool */ protected $name; /** - * @var PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork + * @var PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork|null */ protected $network; + /** + * @var PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork|null + */ + protected $virtualNetwork; /** * @var string */ @@ -89,12 +93,12 @@ public function setName(string $name): self return $this; } - public function getNetwork(): PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork + public function getNetwork(): ?PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork { return $this->network; } - public function setNetwork(PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork $network): self + public function setNetwork(?PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork $network): self { $this->initialized['network'] = true; $this->network = $network; @@ -102,6 +106,19 @@ public function setNetwork(PostVirtualMachineNetworkInterfaceAllocateIPPartNetwo return $this; } + public function getVirtualNetwork(): ?PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork + { + return $this->virtualNetwork; + } + + public function setVirtualNetwork(?PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork $virtualNetwork): self + { + $this->initialized['virtualNetwork'] = true; + $this->virtualNetwork = $virtualNetwork; + + return $this; + } + public function getMacAddress(): string { return $this->macAddress; diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork.php b/src/Core/Model/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork.php new file mode 100644 index 00000000..23d34304 --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php b/src/Core/Model/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php new file mode 100644 index 00000000..c4524acd --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualNetwork.php b/src/Core/Model/PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualNetwork.php new file mode 100644 index 00000000..ebf88bff --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterface.php b/src/Core/Model/PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterface.php new file mode 100644 index 00000000..86b8753e --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterface.php @@ -0,0 +1,183 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine + */ + protected $virtualMachine; + /** + * @var string + */ + protected $name; + /** + * @var PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork|null + */ + protected $network; + /** + * @var PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork|null + */ + protected $virtualNetwork; + /** + * @var string + */ + protected $macAddress; + /** + * @var string + */ + protected $state; + /** + * @var list + */ + protected $ipAddresses; + /** + * @var PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile + */ + protected $speedProfile; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getVirtualMachine(): PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine + { + return $this->virtualMachine; + } + + public function setVirtualMachine(PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getNetwork(): ?PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork + { + return $this->network; + } + + public function setNetwork(?PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getVirtualNetwork(): ?PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork + { + return $this->virtualNetwork; + } + + public function setVirtualNetwork(?PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork $virtualNetwork): self + { + $this->initialized['virtualNetwork'] = true; + $this->virtualNetwork = $virtualNetwork; + + return $this; + } + + public function getMacAddress(): string + { + return $this->macAddress; + } + + public function setMacAddress(string $macAddress): self + { + $this->initialized['macAddress'] = true; + $this->macAddress = $macAddress; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * @return list + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * @param list $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } + + public function getSpeedProfile(): PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile + { + return $this->speedProfile; + } + + public function setSpeedProfile(PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile $speedProfile): self + { + $this->initialized['speedProfile'] = true; + $this->speedProfile = $speedProfile; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork.php b/src/Core/Model/PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork.php new file mode 100644 index 00000000..44ee0aa2 --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php b/src/Core/Model/PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php new file mode 100644 index 00000000..0c25474b --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfaceAttachPartIPAddresses.php b/src/Core/Model/PostVirtualMachineNetworkInterfaceAttachPartIPAddresses.php new file mode 100644 index 00000000..97aa5d46 --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfaceAttachPartIPAddresses.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $address; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAddress(): string + { + return $this->address; + } + + public function setAddress(string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfaceAttachPartNetwork.php b/src/Core/Model/PostVirtualMachineNetworkInterfaceAttachPartNetwork.php new file mode 100644 index 00000000..5eab72b4 --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfaceAttachPartNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile.php b/src/Core/Model/PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile.php new file mode 100644 index 00000000..926ae925 --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine.php b/src/Core/Model/PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine.php new file mode 100644 index 00000000..4589c166 --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfaceAttachPartVirtualNetwork.php b/src/Core/Model/PostVirtualMachineNetworkInterfaceAttachPartVirtualNetwork.php new file mode 100644 index 00000000..713807c2 --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfaceAttachPartVirtualNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterface.php b/src/Core/Model/PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterface.php new file mode 100644 index 00000000..d151c6ae --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterface.php @@ -0,0 +1,183 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine + */ + protected $virtualMachine; + /** + * @var string + */ + protected $name; + /** + * @var PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork|null + */ + protected $network; + /** + * @var PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork|null + */ + protected $virtualNetwork; + /** + * @var string + */ + protected $macAddress; + /** + * @var string + */ + protected $state; + /** + * @var list + */ + protected $ipAddresses; + /** + * @var PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile + */ + protected $speedProfile; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getVirtualMachine(): PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine + { + return $this->virtualMachine; + } + + public function setVirtualMachine(PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getNetwork(): ?PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork + { + return $this->network; + } + + public function setNetwork(?PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getVirtualNetwork(): ?PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork + { + return $this->virtualNetwork; + } + + public function setVirtualNetwork(?PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork $virtualNetwork): self + { + $this->initialized['virtualNetwork'] = true; + $this->virtualNetwork = $virtualNetwork; + + return $this; + } + + public function getMacAddress(): string + { + return $this->macAddress; + } + + public function setMacAddress(string $macAddress): self + { + $this->initialized['macAddress'] = true; + $this->macAddress = $macAddress; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * @return list + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * @param list $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } + + public function getSpeedProfile(): PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile + { + return $this->speedProfile; + } + + public function setSpeedProfile(PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile $speedProfile): self + { + $this->initialized['speedProfile'] = true; + $this->speedProfile = $speedProfile; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork.php b/src/Core/Model/PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork.php new file mode 100644 index 00000000..9d69ec70 --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php b/src/Core/Model/PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php new file mode 100644 index 00000000..6250a452 --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfaceDetachPartIPAddresses.php b/src/Core/Model/PostVirtualMachineNetworkInterfaceDetachPartIPAddresses.php new file mode 100644 index 00000000..fa88c0fd --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfaceDetachPartIPAddresses.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $address; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAddress(): string + { + return $this->address; + } + + public function setAddress(string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfaceDetachPartNetwork.php b/src/Core/Model/PostVirtualMachineNetworkInterfaceDetachPartNetwork.php new file mode 100644 index 00000000..b5fa34ff --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfaceDetachPartNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile.php b/src/Core/Model/PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile.php new file mode 100644 index 00000000..73663723 --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine.php b/src/Core/Model/PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine.php new file mode 100644 index 00000000..03090b8d --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfaceDetachPartVirtualNetwork.php b/src/Core/Model/PostVirtualMachineNetworkInterfaceDetachPartVirtualNetwork.php new file mode 100644 index 00000000..18f984fa --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfaceDetachPartVirtualNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterface.php b/src/Core/Model/PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterface.php new file mode 100644 index 00000000..c082a3a7 --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterface.php @@ -0,0 +1,183 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var PostVirtualMachineNetworkInterfacesPartVirtualMachine + */ + protected $virtualMachine; + /** + * @var string + */ + protected $name; + /** + * @var PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork|null + */ + protected $network; + /** + * @var PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork|null + */ + protected $virtualNetwork; + /** + * @var string + */ + protected $macAddress; + /** + * @var string + */ + protected $state; + /** + * @var list + */ + protected $ipAddresses; + /** + * @var PostVirtualMachineNetworkInterfacesPartSpeedProfile + */ + protected $speedProfile; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getVirtualMachine(): PostVirtualMachineNetworkInterfacesPartVirtualMachine + { + return $this->virtualMachine; + } + + public function setVirtualMachine(PostVirtualMachineNetworkInterfacesPartVirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getNetwork(): ?PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork + { + return $this->network; + } + + public function setNetwork(?PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getVirtualNetwork(): ?PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork + { + return $this->virtualNetwork; + } + + public function setVirtualNetwork(?PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork $virtualNetwork): self + { + $this->initialized['virtualNetwork'] = true; + $this->virtualNetwork = $virtualNetwork; + + return $this; + } + + public function getMacAddress(): string + { + return $this->macAddress; + } + + public function setMacAddress(string $macAddress): self + { + $this->initialized['macAddress'] = true; + $this->macAddress = $macAddress; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * @return list + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * @param list $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } + + public function getSpeedProfile(): PostVirtualMachineNetworkInterfacesPartSpeedProfile + { + return $this->speedProfile; + } + + public function setSpeedProfile(PostVirtualMachineNetworkInterfacesPartSpeedProfile $speedProfile): self + { + $this->initialized['speedProfile'] = true; + $this->speedProfile = $speedProfile; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork.php b/src/Core/Model/PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork.php new file mode 100644 index 00000000..3c77d3a3 --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php b/src/Core/Model/PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php new file mode 100644 index 00000000..dce799a2 --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfacesPartIPAddresses.php b/src/Core/Model/PostVirtualMachineNetworkInterfacesPartIPAddresses.php new file mode 100644 index 00000000..0ec1b663 --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfacesPartIPAddresses.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $address; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getAddress(): string + { + return $this->address; + } + + public function setAddress(string $address): self + { + $this->initialized['address'] = true; + $this->address = $address; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfacesPartNetwork.php b/src/Core/Model/PostVirtualMachineNetworkInterfacesPartNetwork.php new file mode 100644 index 00000000..124996ce --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfacesPartNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfacesPartSpeedProfile.php b/src/Core/Model/PostVirtualMachineNetworkInterfacesPartSpeedProfile.php new file mode 100644 index 00000000..dcd5071a --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfacesPartSpeedProfile.php @@ -0,0 +1,75 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + /** + * @var string + */ + protected $permalink; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getPermalink(): string + { + return $this->permalink; + } + + public function setPermalink(string $permalink): self + { + $this->initialized['permalink'] = true; + $this->permalink = $permalink; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfacesPartVirtualMachine.php b/src/Core/Model/PostVirtualMachineNetworkInterfacesPartVirtualMachine.php new file mode 100644 index 00000000..594a94f1 --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfacesPartVirtualMachine.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/PostVirtualMachineNetworkInterfacesPartVirtualNetwork.php b/src/Core/Model/PostVirtualMachineNetworkInterfacesPartVirtualNetwork.php new file mode 100644 index 00000000..67abede5 --- /dev/null +++ b/src/Core/Model/PostVirtualMachineNetworkInterfacesPartVirtualNetwork.php @@ -0,0 +1,58 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var string + */ + protected $name; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } +} diff --git a/src/Core/Model/ResponseObjectStorageAccessKeyNotFoundResponse.php b/src/Core/Model/ResponseObjectStorageAccessKeyNotFoundResponse.php new file mode 100644 index 00000000..c5e18ec1 --- /dev/null +++ b/src/Core/Model/ResponseObjectStorageAccessKeyNotFoundResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Core/Model/ResponseObjectStorageProvisioningErrorResponse.php b/src/Core/Model/ResponseObjectStorageProvisioningErrorResponse.php new file mode 100644 index 00000000..cf7ca302 --- /dev/null +++ b/src/Core/Model/ResponseObjectStorageProvisioningErrorResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Core/Model/ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponse.php b/src/Core/Model/ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponse.php new file mode 100644 index 00000000..ee5be9e3 --- /dev/null +++ b/src/Core/Model/ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Core/Model/ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponse.php b/src/Core/Model/ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponse.php new file mode 100644 index 00000000..2760da7a --- /dev/null +++ b/src/Core/Model/ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponse.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Core/Model/SecurityGroupsRulesSecurityGroupRuleDeleteBody.php b/src/Core/Model/SecurityGroupsRulesSecurityGroupRuleDeleteBody.php index 57ed64b6..1d6d8978 100644 --- a/src/Core/Model/SecurityGroupsRulesSecurityGroupRuleDeleteBody.php +++ b/src/Core/Model/SecurityGroupsRulesSecurityGroupRuleDeleteBody.php @@ -22,23 +22,15 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'security_group_rule[]' params are mutually exclusive, only one can be provided. - * * @var SecurityGroupRuleLookup */ protected $securityGroupRule; - /** - * All 'security_group_rule[]' params are mutually exclusive, only one can be provided. - */ public function getSecurityGroupRule(): SecurityGroupRuleLookup { return $this->securityGroupRule; } - /** - * All 'security_group_rule[]' params are mutually exclusive, only one can be provided. - */ public function setSecurityGroupRule(SecurityGroupRuleLookup $securityGroupRule): self { $this->initialized['securityGroupRule'] = true; diff --git a/src/Core/Model/SecurityGroupsRulesSecurityGroupRulePatchBody.php b/src/Core/Model/SecurityGroupsRulesSecurityGroupRulePatchBody.php index 5138bcb9..484afa40 100644 --- a/src/Core/Model/SecurityGroupsRulesSecurityGroupRulePatchBody.php +++ b/src/Core/Model/SecurityGroupsRulesSecurityGroupRulePatchBody.php @@ -22,29 +22,19 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'security_group_rule[]' params are mutually exclusive, only one can be provided. - * * @var SecurityGroupRuleLookup */ protected $securityGroupRule; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var SecurityGroupRuleArguments */ protected $properties; - /** - * All 'security_group_rule[]' params are mutually exclusive, only one can be provided. - */ public function getSecurityGroupRule(): SecurityGroupRuleLookup { return $this->securityGroupRule; } - /** - * All 'security_group_rule[]' params are mutually exclusive, only one can be provided. - */ public function setSecurityGroupRule(SecurityGroupRuleLookup $securityGroupRule): self { $this->initialized['securityGroupRule'] = true; @@ -53,17 +43,11 @@ public function setSecurityGroupRule(SecurityGroupRuleLookup $securityGroupRule) return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): SecurityGroupRuleArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(SecurityGroupRuleArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/SecurityGroupsSecurityGroupDeleteBody.php b/src/Core/Model/SecurityGroupsSecurityGroupDeleteBody.php index aa0e15b6..ac9c0a08 100644 --- a/src/Core/Model/SecurityGroupsSecurityGroupDeleteBody.php +++ b/src/Core/Model/SecurityGroupsSecurityGroupDeleteBody.php @@ -22,23 +22,15 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'security_group[]' params are mutually exclusive, only one can be provided. - * * @var SecurityGroupLookup */ protected $securityGroup; - /** - * All 'security_group[]' params are mutually exclusive, only one can be provided. - */ public function getSecurityGroup(): SecurityGroupLookup { return $this->securityGroup; } - /** - * All 'security_group[]' params are mutually exclusive, only one can be provided. - */ public function setSecurityGroup(SecurityGroupLookup $securityGroup): self { $this->initialized['securityGroup'] = true; diff --git a/src/Core/Model/SecurityGroupsSecurityGroupPatchBody.php b/src/Core/Model/SecurityGroupsSecurityGroupPatchBody.php index 45857389..6f25431f 100644 --- a/src/Core/Model/SecurityGroupsSecurityGroupPatchBody.php +++ b/src/Core/Model/SecurityGroupsSecurityGroupPatchBody.php @@ -22,14 +22,10 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'security_group[]' params are mutually exclusive, only one can be provided. - * * @var SecurityGroupLookup */ protected $securityGroup; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var SecurityGroupArguments */ protected $properties; @@ -38,17 +34,11 @@ public function isInitialized($property): bool */ protected $annotations; - /** - * All 'security_group[]' params are mutually exclusive, only one can be provided. - */ public function getSecurityGroup(): SecurityGroupLookup { return $this->securityGroup; } - /** - * All 'security_group[]' params are mutually exclusive, only one can be provided. - */ public function setSecurityGroup(SecurityGroupLookup $securityGroup): self { $this->initialized['securityGroup'] = true; @@ -57,17 +47,11 @@ public function setSecurityGroup(SecurityGroupLookup $securityGroup): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): SecurityGroupArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(SecurityGroupArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/SecurityGroupsSecurityGroupRulesPostBody.php b/src/Core/Model/SecurityGroupsSecurityGroupRulesPostBody.php index 7f65b195..aeeb6b00 100644 --- a/src/Core/Model/SecurityGroupsSecurityGroupRulesPostBody.php +++ b/src/Core/Model/SecurityGroupsSecurityGroupRulesPostBody.php @@ -22,29 +22,19 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'security_group[]' params are mutually exclusive, only one can be provided. - * * @var SecurityGroupLookup */ protected $securityGroup; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var SecurityGroupRuleArguments */ protected $properties; - /** - * All 'security_group[]' params are mutually exclusive, only one can be provided. - */ public function getSecurityGroup(): SecurityGroupLookup { return $this->securityGroup; } - /** - * All 'security_group[]' params are mutually exclusive, only one can be provided. - */ public function setSecurityGroup(SecurityGroupLookup $securityGroup): self { $this->initialized['securityGroup'] = true; @@ -53,17 +43,11 @@ public function setSecurityGroup(SecurityGroupLookup $securityGroup): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): SecurityGroupRuleArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(SecurityGroupRuleArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/SshKeysSshKeyDeleteBody.php b/src/Core/Model/SshKeysSshKeyDeleteBody.php index 1162b56f..e57f61f6 100644 --- a/src/Core/Model/SshKeysSshKeyDeleteBody.php +++ b/src/Core/Model/SshKeysSshKeyDeleteBody.php @@ -22,23 +22,15 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'ssh_key[]' params are mutually exclusive, only one can be provided. - * * @var AuthSSHKeyLookup */ protected $sshKey; - /** - * All 'ssh_key[]' params are mutually exclusive, only one can be provided. - */ public function getSshKey(): AuthSSHKeyLookup { return $this->sshKey; } - /** - * All 'ssh_key[]' params are mutually exclusive, only one can be provided. - */ public function setSshKey(AuthSSHKeyLookup $sshKey): self { $this->initialized['sshKey'] = true; diff --git a/src/Core/Model/TagsTagDeleteBody.php b/src/Core/Model/TagsTagDeleteBody.php index 36111fe6..24be0eb3 100644 --- a/src/Core/Model/TagsTagDeleteBody.php +++ b/src/Core/Model/TagsTagDeleteBody.php @@ -22,23 +22,15 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'tag[]' params are mutually exclusive, only one can be provided. - * * @var TagLookup */ protected $tag; - /** - * All 'tag[]' params are mutually exclusive, only one can be provided. - */ public function getTag(): TagLookup { return $this->tag; } - /** - * All 'tag[]' params are mutually exclusive, only one can be provided. - */ public function setTag(TagLookup $tag): self { $this->initialized['tag'] = true; diff --git a/src/Core/Model/TagsTagPatchBody.php b/src/Core/Model/TagsTagPatchBody.php index 1052a51d..c36797d7 100644 --- a/src/Core/Model/TagsTagPatchBody.php +++ b/src/Core/Model/TagsTagPatchBody.php @@ -22,29 +22,19 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'tag[]' params are mutually exclusive, only one can be provided. - * * @var TagLookup */ protected $tag; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var TagArguments */ protected $properties; - /** - * All 'tag[]' params are mutually exclusive, only one can be provided. - */ public function getTag(): TagLookup { return $this->tag; } - /** - * All 'tag[]' params are mutually exclusive, only one can be provided. - */ public function setTag(TagLookup $tag): self { $this->initialized['tag'] = true; @@ -53,17 +43,11 @@ public function setTag(TagLookup $tag): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): TagArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(TagArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/VirtualMachineArguments.php b/src/Core/Model/VirtualMachineArguments.php index f58b54d0..3602b46a 100644 --- a/src/Core/Model/VirtualMachineArguments.php +++ b/src/Core/Model/VirtualMachineArguments.php @@ -44,8 +44,6 @@ public function isInitialized($property): bool */ protected $gpuType; /** - * All 'group[]' params are mutually exclusive, only one can be provided. - * * @var VirtualMachineGroupLookup */ protected $group; @@ -127,17 +125,11 @@ public function setGpuType(GPUTypeLookup $gpuType): self return $this; } - /** - * All 'group[]' params are mutually exclusive, only one can be provided. - */ public function getGroup(): VirtualMachineGroupLookup { return $this->group; } - /** - * All 'group[]' params are mutually exclusive, only one can be provided. - */ public function setGroup(VirtualMachineGroupLookup $group): self { $this->initialized['group'] = true; diff --git a/src/Core/Model/VirtualMachineGroupsVirtualMachineGroupDeleteBody.php b/src/Core/Model/VirtualMachineGroupsVirtualMachineGroupDeleteBody.php index 811d0c70..0ff9d6fe 100644 --- a/src/Core/Model/VirtualMachineGroupsVirtualMachineGroupDeleteBody.php +++ b/src/Core/Model/VirtualMachineGroupsVirtualMachineGroupDeleteBody.php @@ -22,23 +22,15 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'group[]' params are mutually exclusive, only one can be provided. - * * @var VirtualMachineGroupLookup */ protected $virtualMachineGroup; - /** - * All 'group[]' params are mutually exclusive, only one can be provided. - */ public function getVirtualMachineGroup(): VirtualMachineGroupLookup { return $this->virtualMachineGroup; } - /** - * All 'group[]' params are mutually exclusive, only one can be provided. - */ public function setVirtualMachineGroup(VirtualMachineGroupLookup $virtualMachineGroup): self { $this->initialized['virtualMachineGroup'] = true; diff --git a/src/Core/Model/VirtualMachineGroupsVirtualMachineGroupPatchBody.php b/src/Core/Model/VirtualMachineGroupsVirtualMachineGroupPatchBody.php index 97dc779e..239dbf4b 100644 --- a/src/Core/Model/VirtualMachineGroupsVirtualMachineGroupPatchBody.php +++ b/src/Core/Model/VirtualMachineGroupsVirtualMachineGroupPatchBody.php @@ -22,29 +22,19 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'group[]' params are mutually exclusive, only one can be provided. - * * @var VirtualMachineGroupLookup */ protected $virtualMachineGroup; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var VirtualMachineGroupArguments */ protected $properties; - /** - * All 'group[]' params are mutually exclusive, only one can be provided. - */ public function getVirtualMachineGroup(): VirtualMachineGroupLookup { return $this->virtualMachineGroup; } - /** - * All 'group[]' params are mutually exclusive, only one can be provided. - */ public function setVirtualMachineGroup(VirtualMachineGroupLookup $virtualMachineGroup): self { $this->initialized['virtualMachineGroup'] = true; @@ -53,17 +43,11 @@ public function setVirtualMachineGroup(VirtualMachineGroupLookup $virtualMachine return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): VirtualMachineGroupArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(VirtualMachineGroupArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostBody.php b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostBody.php index 97b06987..b288d418 100644 --- a/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostBody.php +++ b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostBody.php @@ -22,8 +22,6 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'virtual_machine_network_interface[]' params are mutually exclusive, only one can be provided. - * * @var VirtualMachineNetworkInterfaceLookup */ protected $virtualMachineNetworkInterface; @@ -34,17 +32,11 @@ public function isInitialized($property): bool */ protected $ipAddress; - /** - * All 'virtual_machine_network_interface[]' params are mutually exclusive, only one can be provided. - */ public function getVirtualMachineNetworkInterface(): VirtualMachineNetworkInterfaceLookup { return $this->virtualMachineNetworkInterface; } - /** - * All 'virtual_machine_network_interface[]' params are mutually exclusive, only one can be provided. - */ public function setVirtualMachineNetworkInterface(VirtualMachineNetworkInterfaceLookup $virtualMachineNetworkInterface): self { $this->initialized['virtualMachineNetworkInterface'] = true; diff --git a/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200VirtualMachineNetworkInterface.php b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200VirtualMachineNetworkInterface.php index bf783b7d..30263621 100644 --- a/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200VirtualMachineNetworkInterface.php +++ b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200VirtualMachineNetworkInterface.php @@ -34,9 +34,13 @@ public function isInitialized($property): bool */ protected $name; /** - * @var PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork + * @var PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork|null */ protected $network; + /** + * @var PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork|null + */ + protected $virtualNetwork; /** * @var string */ @@ -89,12 +93,12 @@ public function setName(string $name): self return $this; } - public function getNetwork(): PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork + public function getNetwork(): ?PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork { return $this->network; } - public function setNetwork(PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork $network): self + public function setNetwork(?PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork $network): self { $this->initialized['network'] = true; $this->network = $network; @@ -102,6 +106,19 @@ public function setNetwork(PostVirtualMachineNetworkInterfaceAllocateIPPartNetwo return $this; } + public function getVirtualNetwork(): ?PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork + { + return $this->virtualNetwork; + } + + public function setVirtualNetwork(?PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork $virtualNetwork): self + { + $this->initialized['virtualNetwork'] = true; + $this->virtualNetwork = $virtualNetwork; + + return $this; + } + public function getMacAddress(): string { return $this->macAddress; diff --git a/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostBody.php b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostBody.php index 8f9d0350..c5096e06 100644 --- a/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostBody.php +++ b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateNewIpPostBody.php @@ -22,8 +22,6 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'virtual_machine_network_interface[]' params are mutually exclusive, only one can be provided. - * * @var VirtualMachineNetworkInterfaceLookup */ protected $virtualMachineNetworkInterface; @@ -32,17 +30,11 @@ public function isInitialized($property): bool */ protected $addressVersion; - /** - * All 'virtual_machine_network_interface[]' params are mutually exclusive, only one can be provided. - */ public function getVirtualMachineNetworkInterface(): VirtualMachineNetworkInterfaceLookup { return $this->virtualMachineNetworkInterface; } - /** - * All 'virtual_machine_network_interface[]' params are mutually exclusive, only one can be provided. - */ public function setVirtualMachineNetworkInterface(VirtualMachineNetworkInterfaceLookup $virtualMachineNetworkInterface): self { $this->initialized['virtualMachineNetworkInterface'] = true; diff --git a/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBody.php b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBody.php new file mode 100644 index 00000000..0b4b42db --- /dev/null +++ b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBody.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var VirtualMachineNetworkInterfaceLookup + */ + protected $virtualMachineNetworkInterface; + + public function getVirtualMachineNetworkInterface(): VirtualMachineNetworkInterfaceLookup + { + return $this->virtualMachineNetworkInterface; + } + + public function setVirtualMachineNetworkInterface(VirtualMachineNetworkInterfaceLookup $virtualMachineNetworkInterface): self + { + $this->initialized['virtualMachineNetworkInterface'] = true; + $this->virtualMachineNetworkInterface = $virtualMachineNetworkInterface; + + return $this; + } +} diff --git a/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200.php b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200.php new file mode 100644 index 00000000..484b49f4 --- /dev/null +++ b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200.php @@ -0,0 +1,66 @@ +initialized); + } + /** + * The network interface details. + * + * @var VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterface + */ + protected $virtualMachineNetworkInterface; + /** + * @var Task + */ + protected $task; + + /** + * The network interface details. + */ + public function getVirtualMachineNetworkInterface(): VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterface + { + return $this->virtualMachineNetworkInterface; + } + + /** + * The network interface details. + */ + public function setVirtualMachineNetworkInterface(VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterface $virtualMachineNetworkInterface): self + { + $this->initialized['virtualMachineNetworkInterface'] = true; + $this->virtualMachineNetworkInterface = $virtualMachineNetworkInterface; + + return $this; + } + + public function getTask(): Task + { + return $this->task; + } + + public function setTask(Task $task): self + { + $this->initialized['task'] = true; + $this->task = $task; + + return $this; + } +} diff --git a/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterface.php b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterface.php new file mode 100644 index 00000000..5c13fb63 --- /dev/null +++ b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterface.php @@ -0,0 +1,183 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine + */ + protected $virtualMachine; + /** + * @var string + */ + protected $name; + /** + * @var PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork|null + */ + protected $network; + /** + * @var PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork|null + */ + protected $virtualNetwork; + /** + * @var string + */ + protected $macAddress; + /** + * @var string + */ + protected $state; + /** + * @var list + */ + protected $ipAddresses; + /** + * @var PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile + */ + protected $speedProfile; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getVirtualMachine(): PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine + { + return $this->virtualMachine; + } + + public function setVirtualMachine(PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getNetwork(): ?PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork + { + return $this->network; + } + + public function setNetwork(?PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getVirtualNetwork(): ?PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork + { + return $this->virtualNetwork; + } + + public function setVirtualNetwork(?PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork $virtualNetwork): self + { + $this->initialized['virtualNetwork'] = true; + $this->virtualNetwork = $virtualNetwork; + + return $this; + } + + public function getMacAddress(): string + { + return $this->macAddress; + } + + public function setMacAddress(string $macAddress): self + { + $this->initialized['macAddress'] = true; + $this->macAddress = $macAddress; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * @return list + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * @param list $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } + + public function getSpeedProfile(): PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile + { + return $this->speedProfile; + } + + public function setSpeedProfile(PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile $speedProfile): self + { + $this->initialized['speedProfile'] = true; + $this->speedProfile = $speedProfile; + + return $this; + } +} diff --git a/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBody.php b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBody.php new file mode 100644 index 00000000..329d4255 --- /dev/null +++ b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBody.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var VirtualMachineNetworkInterfaceLookup + */ + protected $virtualMachineNetworkInterface; + + public function getVirtualMachineNetworkInterface(): VirtualMachineNetworkInterfaceLookup + { + return $this->virtualMachineNetworkInterface; + } + + public function setVirtualMachineNetworkInterface(VirtualMachineNetworkInterfaceLookup $virtualMachineNetworkInterface): self + { + $this->initialized['virtualMachineNetworkInterface'] = true; + $this->virtualMachineNetworkInterface = $virtualMachineNetworkInterface; + + return $this; + } +} diff --git a/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200.php b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200.php new file mode 100644 index 00000000..48d3e372 --- /dev/null +++ b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The deleted network interface details. + * + * @var VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterface + */ + protected $virtualMachineNetworkInterface; + + /** + * The deleted network interface details. + */ + public function getVirtualMachineNetworkInterface(): VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterface + { + return $this->virtualMachineNetworkInterface; + } + + /** + * The deleted network interface details. + */ + public function setVirtualMachineNetworkInterface(VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterface $virtualMachineNetworkInterface): self + { + $this->initialized['virtualMachineNetworkInterface'] = true; + $this->virtualMachineNetworkInterface = $virtualMachineNetworkInterface; + + return $this; + } +} diff --git a/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterface.php b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterface.php new file mode 100644 index 00000000..adf5d8c9 --- /dev/null +++ b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterface.php @@ -0,0 +1,183 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var DeleteVirtualMachineNetworkInterfacePartVirtualMachine + */ + protected $virtualMachine; + /** + * @var string + */ + protected $name; + /** + * @var DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork|null + */ + protected $network; + /** + * @var DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork|null + */ + protected $virtualNetwork; + /** + * @var string + */ + protected $macAddress; + /** + * @var string + */ + protected $state; + /** + * @var list + */ + protected $ipAddresses; + /** + * @var DeleteVirtualMachineNetworkInterfacePartSpeedProfile + */ + protected $speedProfile; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getVirtualMachine(): DeleteVirtualMachineNetworkInterfacePartVirtualMachine + { + return $this->virtualMachine; + } + + public function setVirtualMachine(DeleteVirtualMachineNetworkInterfacePartVirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getNetwork(): ?DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork + { + return $this->network; + } + + public function setNetwork(?DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getVirtualNetwork(): ?DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork + { + return $this->virtualNetwork; + } + + public function setVirtualNetwork(?DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork $virtualNetwork): self + { + $this->initialized['virtualNetwork'] = true; + $this->virtualNetwork = $virtualNetwork; + + return $this; + } + + public function getMacAddress(): string + { + return $this->macAddress; + } + + public function setMacAddress(string $macAddress): self + { + $this->initialized['macAddress'] = true; + $this->macAddress = $macAddress; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * @return list + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * @param list $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } + + public function getSpeedProfile(): DeleteVirtualMachineNetworkInterfacePartSpeedProfile + { + return $this->speedProfile; + } + + public function setSpeedProfile(DeleteVirtualMachineNetworkInterfacePartSpeedProfile $speedProfile): self + { + $this->initialized['speedProfile'] = true; + $this->speedProfile = $speedProfile; + + return $this; + } +} diff --git a/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBody.php b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBody.php new file mode 100644 index 00000000..5785ae0d --- /dev/null +++ b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBody.php @@ -0,0 +1,41 @@ +initialized); + } + /** + * @var VirtualMachineNetworkInterfaceLookup + */ + protected $virtualMachineNetworkInterface; + + public function getVirtualMachineNetworkInterface(): VirtualMachineNetworkInterfaceLookup + { + return $this->virtualMachineNetworkInterface; + } + + public function setVirtualMachineNetworkInterface(VirtualMachineNetworkInterfaceLookup $virtualMachineNetworkInterface): self + { + $this->initialized['virtualMachineNetworkInterface'] = true; + $this->virtualMachineNetworkInterface = $virtualMachineNetworkInterface; + + return $this; + } +} diff --git a/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200.php b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200.php new file mode 100644 index 00000000..c26dbc7e --- /dev/null +++ b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200.php @@ -0,0 +1,66 @@ +initialized); + } + /** + * The network interface details. + * + * @var VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterface + */ + protected $virtualMachineNetworkInterface; + /** + * @var Task + */ + protected $task; + + /** + * The network interface details. + */ + public function getVirtualMachineNetworkInterface(): VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterface + { + return $this->virtualMachineNetworkInterface; + } + + /** + * The network interface details. + */ + public function setVirtualMachineNetworkInterface(VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterface $virtualMachineNetworkInterface): self + { + $this->initialized['virtualMachineNetworkInterface'] = true; + $this->virtualMachineNetworkInterface = $virtualMachineNetworkInterface; + + return $this; + } + + public function getTask(): Task + { + return $this->task; + } + + public function setTask(Task $task): self + { + $this->initialized['task'] = true; + $this->task = $task; + + return $this; + } +} diff --git a/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterface.php b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterface.php new file mode 100644 index 00000000..7fa9999c --- /dev/null +++ b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterface.php @@ -0,0 +1,183 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine + */ + protected $virtualMachine; + /** + * @var string + */ + protected $name; + /** + * @var PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork|null + */ + protected $network; + /** + * @var PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork|null + */ + protected $virtualNetwork; + /** + * @var string + */ + protected $macAddress; + /** + * @var string + */ + protected $state; + /** + * @var list + */ + protected $ipAddresses; + /** + * @var PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile + */ + protected $speedProfile; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getVirtualMachine(): PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine + { + return $this->virtualMachine; + } + + public function setVirtualMachine(PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getNetwork(): ?PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork + { + return $this->network; + } + + public function setNetwork(?PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getVirtualNetwork(): ?PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork + { + return $this->virtualNetwork; + } + + public function setVirtualNetwork(?PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork $virtualNetwork): self + { + $this->initialized['virtualNetwork'] = true; + $this->virtualNetwork = $virtualNetwork; + + return $this; + } + + public function getMacAddress(): string + { + return $this->macAddress; + } + + public function setMacAddress(string $macAddress): self + { + $this->initialized['macAddress'] = true; + $this->macAddress = $macAddress; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * @return list + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * @param list $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } + + public function getSpeedProfile(): PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile + { + return $this->speedProfile; + } + + public function setSpeedProfile(PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile $speedProfile): self + { + $this->initialized['speedProfile'] = true; + $this->speedProfile = $speedProfile; + + return $this; + } +} diff --git a/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterface.php b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterface.php index 7127376e..f18a7ec4 100644 --- a/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterface.php +++ b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterface.php @@ -34,9 +34,13 @@ public function isInitialized($property): bool */ protected $name; /** - * @var GetVMNIVMNIPartNetwork + * @var GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork|null */ protected $network; + /** + * @var GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork|null + */ + protected $virtualNetwork; /** * @var string */ @@ -93,12 +97,12 @@ public function setName(string $name): self return $this; } - public function getNetwork(): GetVMNIVMNIPartNetwork + public function getNetwork(): ?GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork { return $this->network; } - public function setNetwork(GetVMNIVMNIPartNetwork $network): self + public function setNetwork(?GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork $network): self { $this->initialized['network'] = true; $this->network = $network; @@ -106,6 +110,19 @@ public function setNetwork(GetVMNIVMNIPartNetwork $network): self return $this; } + public function getVirtualNetwork(): ?GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork + { + return $this->virtualNetwork; + } + + public function setVirtualNetwork(?GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork $virtualNetwork): self + { + $this->initialized['virtualNetwork'] = true; + $this->virtualNetwork = $virtualNetwork; + + return $this; + } + public function getMacAddress(): string { return $this->macAddress; diff --git a/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchBody.php b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchBody.php index adf74d60..d91dc8b3 100644 --- a/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchBody.php +++ b/src/Core/Model/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchBody.php @@ -22,8 +22,6 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'virtual_machine_network_interface[]' params are mutually exclusive, only one can be provided. - * * @var VirtualMachineNetworkInterfaceLookup */ protected $virtualMachineNetworkInterface; @@ -34,17 +32,11 @@ public function isInitialized($property): bool */ protected $speedProfile; - /** - * All 'virtual_machine_network_interface[]' params are mutually exclusive, only one can be provided. - */ public function getVirtualMachineNetworkInterface(): VirtualMachineNetworkInterfaceLookup { return $this->virtualMachineNetworkInterface; } - /** - * All 'virtual_machine_network_interface[]' params are mutually exclusive, only one can be provided. - */ public function setVirtualMachineNetworkInterface(VirtualMachineNetworkInterfaceLookup $virtualMachineNetworkInterface): self { $this->initialized['virtualMachineNetworkInterface'] = true; diff --git a/src/Core/Model/VirtualMachinesVirtualMachineDiskBackupPoliciesPostBody.php b/src/Core/Model/VirtualMachinesVirtualMachineDiskBackupPoliciesPostBody.php index da82c2a0..ef1f7380 100644 --- a/src/Core/Model/VirtualMachinesVirtualMachineDiskBackupPoliciesPostBody.php +++ b/src/Core/Model/VirtualMachinesVirtualMachineDiskBackupPoliciesPostBody.php @@ -28,8 +28,6 @@ public function isInitialized($property): bool */ protected $virtualMachine; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var DiskBackupPolicyArguments */ protected $properties; @@ -53,17 +51,11 @@ public function setVirtualMachine(VirtualMachineLookup $virtualMachine): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): DiskBackupPolicyArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(DiskBackupPolicyArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/VirtualMachinesVirtualMachineFlexibleResourcesPutBody.php b/src/Core/Model/VirtualMachinesVirtualMachineFlexibleResourcesPutBody.php index c406a6be..6eb6830d 100644 --- a/src/Core/Model/VirtualMachinesVirtualMachineFlexibleResourcesPutBody.php +++ b/src/Core/Model/VirtualMachinesVirtualMachineFlexibleResourcesPutBody.php @@ -28,8 +28,6 @@ public function isInitialized($property): bool */ protected $virtualMachine; /** - * All 'resources[]' params are mutually exclusive, only one can be provided. - * * @var VirtualMachineFlexibleResources */ protected $resources; @@ -53,17 +51,11 @@ public function setVirtualMachine(VirtualMachineLookup $virtualMachine): self return $this; } - /** - * All 'resources[]' params are mutually exclusive, only one can be provided. - */ public function getResources(): VirtualMachineFlexibleResources { return $this->resources; } - /** - * All 'resources[]' params are mutually exclusive, only one can be provided. - */ public function setResources(VirtualMachineFlexibleResources $resources): self { $this->initialized['resources'] = true; diff --git a/src/Core/Model/VirtualMachinesVirtualMachineNetworkInterfacesPostBody.php b/src/Core/Model/VirtualMachinesVirtualMachineNetworkInterfacesPostBody.php new file mode 100644 index 00000000..2948ad2c --- /dev/null +++ b/src/Core/Model/VirtualMachinesVirtualMachineNetworkInterfacesPostBody.php @@ -0,0 +1,116 @@ +initialized); + } + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + * + * @var VirtualMachineLookup + */ + protected $virtualMachine; + /** + * All 'network[]' params are mutually exclusive, only one can be provided. + * + * @var NetworkLookup + */ + protected $network; + /** + * @var VirtualNetworkLookup + */ + protected $virtualNetwork; + /** + * All 'speed_profile[]' params are mutually exclusive, only one can be provided. + * + * @var NetworkSpeedProfileLookup + */ + protected $speedProfile; + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function getVirtualMachine(): VirtualMachineLookup + { + return $this->virtualMachine; + } + + /** + * All 'virtual_machine[]' params are mutually exclusive, only one can be provided. + */ + public function setVirtualMachine(VirtualMachineLookup $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } + + /** + * All 'network[]' params are mutually exclusive, only one can be provided. + */ + public function getNetwork(): NetworkLookup + { + return $this->network; + } + + /** + * All 'network[]' params are mutually exclusive, only one can be provided. + */ + public function setNetwork(NetworkLookup $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getVirtualNetwork(): VirtualNetworkLookup + { + return $this->virtualNetwork; + } + + public function setVirtualNetwork(VirtualNetworkLookup $virtualNetwork): self + { + $this->initialized['virtualNetwork'] = true; + $this->virtualNetwork = $virtualNetwork; + + return $this; + } + + /** + * All 'speed_profile[]' params are mutually exclusive, only one can be provided. + */ + public function getSpeedProfile(): NetworkSpeedProfileLookup + { + return $this->speedProfile; + } + + /** + * All 'speed_profile[]' params are mutually exclusive, only one can be provided. + */ + public function setSpeedProfile(NetworkSpeedProfileLookup $speedProfile): self + { + $this->initialized['speedProfile'] = true; + $this->speedProfile = $speedProfile; + + return $this; + } +} diff --git a/src/Core/Model/VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200.php b/src/Core/Model/VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200.php new file mode 100644 index 00000000..58f5a802 --- /dev/null +++ b/src/Core/Model/VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200.php @@ -0,0 +1,49 @@ +initialized); + } + /** + * The network interface details. + * + * @var VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterface + */ + protected $virtualMachineNetworkInterface; + + /** + * The network interface details. + */ + public function getVirtualMachineNetworkInterface(): VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterface + { + return $this->virtualMachineNetworkInterface; + } + + /** + * The network interface details. + */ + public function setVirtualMachineNetworkInterface(VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterface $virtualMachineNetworkInterface): self + { + $this->initialized['virtualMachineNetworkInterface'] = true; + $this->virtualMachineNetworkInterface = $virtualMachineNetworkInterface; + + return $this; + } +} diff --git a/src/Core/Model/VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterface.php b/src/Core/Model/VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterface.php new file mode 100644 index 00000000..2e501af2 --- /dev/null +++ b/src/Core/Model/VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterface.php @@ -0,0 +1,183 @@ +initialized); + } + /** + * @var string + */ + protected $id; + /** + * @var PostVirtualMachineNetworkInterfacesPartVirtualMachine + */ + protected $virtualMachine; + /** + * @var string + */ + protected $name; + /** + * @var PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork|null + */ + protected $network; + /** + * @var PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork|null + */ + protected $virtualNetwork; + /** + * @var string + */ + protected $macAddress; + /** + * @var string + */ + protected $state; + /** + * @var list + */ + protected $ipAddresses; + /** + * @var PostVirtualMachineNetworkInterfacesPartSpeedProfile + */ + protected $speedProfile; + + public function getId(): string + { + return $this->id; + } + + public function setId(string $id): self + { + $this->initialized['id'] = true; + $this->id = $id; + + return $this; + } + + public function getVirtualMachine(): PostVirtualMachineNetworkInterfacesPartVirtualMachine + { + return $this->virtualMachine; + } + + public function setVirtualMachine(PostVirtualMachineNetworkInterfacesPartVirtualMachine $virtualMachine): self + { + $this->initialized['virtualMachine'] = true; + $this->virtualMachine = $virtualMachine; + + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): self + { + $this->initialized['name'] = true; + $this->name = $name; + + return $this; + } + + public function getNetwork(): ?PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork + { + return $this->network; + } + + public function setNetwork(?PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork $network): self + { + $this->initialized['network'] = true; + $this->network = $network; + + return $this; + } + + public function getVirtualNetwork(): ?PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork + { + return $this->virtualNetwork; + } + + public function setVirtualNetwork(?PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork $virtualNetwork): self + { + $this->initialized['virtualNetwork'] = true; + $this->virtualNetwork = $virtualNetwork; + + return $this; + } + + public function getMacAddress(): string + { + return $this->macAddress; + } + + public function setMacAddress(string $macAddress): self + { + $this->initialized['macAddress'] = true; + $this->macAddress = $macAddress; + + return $this; + } + + public function getState(): string + { + return $this->state; + } + + public function setState(string $state): self + { + $this->initialized['state'] = true; + $this->state = $state; + + return $this; + } + + /** + * @return list + */ + public function getIpAddresses(): array + { + return $this->ipAddresses; + } + + /** + * @param list $ipAddresses + */ + public function setIpAddresses(array $ipAddresses): self + { + $this->initialized['ipAddresses'] = true; + $this->ipAddresses = $ipAddresses; + + return $this; + } + + public function getSpeedProfile(): PostVirtualMachineNetworkInterfacesPartSpeedProfile + { + return $this->speedProfile; + } + + public function setSpeedProfile(PostVirtualMachineNetworkInterfacesPartSpeedProfile $speedProfile): self + { + $this->initialized['speedProfile'] = true; + $this->speedProfile = $speedProfile; + + return $this; + } +} diff --git a/src/Core/Model/VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterface.php b/src/Core/Model/VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterface.php index 13606b7c..7bf23918 100644 --- a/src/Core/Model/VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterface.php +++ b/src/Core/Model/VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterface.php @@ -34,9 +34,13 @@ public function isInitialized($property): bool */ protected $name; /** - * @var GetVirtualMachineNetworkInterfacePartNetwork + * @var GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork|null */ protected $network; + /** + * @var GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork|null + */ + protected $virtualNetwork; /** * @var string */ @@ -89,12 +93,12 @@ public function setName(string $name): self return $this; } - public function getNetwork(): GetVirtualMachineNetworkInterfacePartNetwork + public function getNetwork(): ?GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork { return $this->network; } - public function setNetwork(GetVirtualMachineNetworkInterfacePartNetwork $network): self + public function setNetwork(?GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork $network): self { $this->initialized['network'] = true; $this->network = $network; @@ -102,6 +106,19 @@ public function setNetwork(GetVirtualMachineNetworkInterfacePartNetwork $network return $this; } + public function getVirtualNetwork(): ?GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork + { + return $this->virtualNetwork; + } + + public function setVirtualNetwork(?GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork $virtualNetwork): self + { + $this->initialized['virtualNetwork'] = true; + $this->virtualNetwork = $virtualNetwork; + + return $this; + } + public function getMacAddress(): string { return $this->macAddress; diff --git a/src/Core/Model/VirtualMachinesVirtualMachinePatchBody.php b/src/Core/Model/VirtualMachinesVirtualMachinePatchBody.php index 1d2a6dd6..bfeff82a 100644 --- a/src/Core/Model/VirtualMachinesVirtualMachinePatchBody.php +++ b/src/Core/Model/VirtualMachinesVirtualMachinePatchBody.php @@ -28,8 +28,6 @@ public function isInitialized($property): bool */ protected $virtualMachine; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var VirtualMachineArguments */ protected $properties; @@ -57,17 +55,11 @@ public function setVirtualMachine(VirtualMachineLookup $virtualMachine): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): VirtualMachineArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(VirtualMachineArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Model/VirtualNetworkNotFoundSchema.php b/src/Core/Model/VirtualNetworkNotFoundSchema.php new file mode 100644 index 00000000..a6e637bf --- /dev/null +++ b/src/Core/Model/VirtualNetworkNotFoundSchema.php @@ -0,0 +1,81 @@ +initialized); + } + /** + * @var string + */ + protected $code; + /** + * @var string + */ + protected $description; + /** + * @var array + */ + protected $detail; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): self + { + $this->initialized['code'] = true; + $this->code = $code; + + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): self + { + $this->initialized['description'] = true; + $this->description = $description; + + return $this; + } + + /** + * @return array + */ + public function getDetail(): iterable + { + return $this->detail; + } + + /** + * @param array $detail + */ + public function setDetail(iterable $detail): self + { + $this->initialized['detail'] = true; + $this->detail = $detail; + + return $this; + } +} diff --git a/src/Core/Model/VirtualNetworksVirtualNetworkDeleteBody.php b/src/Core/Model/VirtualNetworksVirtualNetworkDeleteBody.php index 94771a07..05c56a5b 100644 --- a/src/Core/Model/VirtualNetworksVirtualNetworkDeleteBody.php +++ b/src/Core/Model/VirtualNetworksVirtualNetworkDeleteBody.php @@ -22,23 +22,15 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'virtual_network[]' params are mutually exclusive, only one can be provided. - * * @var VirtualNetworkLookup */ protected $virtualNetwork; - /** - * All 'virtual_network[]' params are mutually exclusive, only one can be provided. - */ public function getVirtualNetwork(): VirtualNetworkLookup { return $this->virtualNetwork; } - /** - * All 'virtual_network[]' params are mutually exclusive, only one can be provided. - */ public function setVirtualNetwork(VirtualNetworkLookup $virtualNetwork): self { $this->initialized['virtualNetwork'] = true; diff --git a/src/Core/Model/VirtualNetworksVirtualNetworkPatchBody.php b/src/Core/Model/VirtualNetworksVirtualNetworkPatchBody.php index 22b5a339..28b2cf4f 100644 --- a/src/Core/Model/VirtualNetworksVirtualNetworkPatchBody.php +++ b/src/Core/Model/VirtualNetworksVirtualNetworkPatchBody.php @@ -22,29 +22,19 @@ public function isInitialized($property): bool return array_key_exists($property, $this->initialized); } /** - * All 'virtual_network[]' params are mutually exclusive, only one can be provided. - * * @var VirtualNetworkLookup */ protected $virtualNetwork; /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - * * @var VirtualNetworkArguments */ protected $properties; - /** - * All 'virtual_network[]' params are mutually exclusive, only one can be provided. - */ public function getVirtualNetwork(): VirtualNetworkLookup { return $this->virtualNetwork; } - /** - * All 'virtual_network[]' params are mutually exclusive, only one can be provided. - */ public function setVirtualNetwork(VirtualNetworkLookup $virtualNetwork): self { $this->initialized['virtualNetwork'] = true; @@ -53,17 +43,11 @@ public function setVirtualNetwork(VirtualNetworkLookup $virtualNetwork): self return $this; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function getProperties(): VirtualNetworkArguments { return $this->properties; } - /** - * All 'properties[]' params are mutually exclusive, only one can be provided. - */ public function setProperties(VirtualNetworkArguments $properties): self { $this->initialized['properties'] = true; diff --git a/src/Core/Normalizer/DNSRecordContentArgumentsNormalizer.php b/src/Core/Normalizer/DNSRecordContentArgumentsNormalizer.php index c4e92c25..a977ff98 100644 --- a/src/Core/Normalizer/DNSRecordContentArgumentsNormalizer.php +++ b/src/Core/Normalizer/DNSRecordContentArgumentsNormalizer.php @@ -88,7 +88,11 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a unset($data['PTR']); } if (\array_key_exists('SOA', $data)) { - $object->setSOA($data['SOA']); + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['SOA'] as $key => $value) { + $values[$key] = $value; + } + $object->setSOA($values); unset($data['SOA']); } if (\array_key_exists('SRV', $data)) { @@ -107,9 +111,9 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setVirtualMachine($this->denormalizer->denormalize($data['VirtualMachine'], \KatapultAPI\Core\Model\DNSRecordContentArgumentsForVirtualMachine::class, 'json', $context)); unset($data['VirtualMachine']); } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; } } @@ -147,7 +151,11 @@ public function normalize(mixed $object, ?string $format = null, array $context $data['PTR'] = $this->normalizer->normalize($object->getPTR(), 'json', $context); } if ($object->isInitialized('sOA') && null !== $object->getSOA()) { - $data['SOA'] = $object->getSOA(); + $values = []; + foreach ($object->getSOA() as $key => $value) { + $values[$key] = $value; + } + $data['SOA'] = $values; } if ($object->isInitialized('sRV') && null !== $object->getSRV()) { $data['SRV'] = $this->normalizer->normalize($object->getSRV(), 'json', $context); @@ -161,9 +169,9 @@ public function normalize(mixed $object, ?string $format = null, array $context if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { $data['VirtualMachine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); } - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; } } @@ -242,7 +250,11 @@ public function denormalize($data, $type, $format = null, array $context = []) unset($data['PTR']); } if (\array_key_exists('SOA', $data)) { - $object->setSOA($data['SOA']); + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['SOA'] as $key => $value) { + $values[$key] = $value; + } + $object->setSOA($values); unset($data['SOA']); } if (\array_key_exists('SRV', $data)) { @@ -261,9 +273,9 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setVirtualMachine($this->denormalizer->denormalize($data['VirtualMachine'], \KatapultAPI\Core\Model\DNSRecordContentArgumentsForVirtualMachine::class, 'json', $context)); unset($data['VirtualMachine']); } - foreach ($data as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $object[$key] = $value; + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; } } @@ -304,7 +316,11 @@ public function normalize($object, $format = null, array $context = []) $data['PTR'] = $this->normalizer->normalize($object->getPTR(), 'json', $context); } if ($object->isInitialized('sOA') && null !== $object->getSOA()) { - $data['SOA'] = $object->getSOA(); + $values = []; + foreach ($object->getSOA() as $key => $value) { + $values[$key] = $value; + } + $data['SOA'] = $values; } if ($object->isInitialized('sRV') && null !== $object->getSRV()) { $data['SRV'] = $this->normalizer->normalize($object->getSRV(), 'json', $context); @@ -318,9 +334,9 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { $data['VirtualMachine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); } - foreach ($object as $key => $value) { - if (preg_match('/.*/', (string) $key)) { - $data[$key] = $value; + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; } } diff --git a/src/Core/Normalizer/DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObjectNormalizer.php b/src/Core/Normalizer/DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObjectNormalizer.php new file mode 100644 index 00000000..110c34af --- /dev/null +++ b/src/Core/Normalizer/DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObjectNormalizer.php @@ -0,0 +1,181 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObjectNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObject::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObject::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObject(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('keep_until', $data)) { + $object->setKeepUntil($data['keep_until']); + unset($data['keep_until']); + } + if (\array_key_exists('object_type', $data)) { + $object->setObjectType($data['object_type']); + unset($data['object_type']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('keepUntil') && null !== $object->getKeepUntil()) { + $data['keep_until'] = $object->getKeepUntil(); + } + if ($object->isInitialized('objectType') && null !== $object->getObjectType()) { + $data['object_type'] = $object->getObjectType(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObject::class => false]; + } + } +} else { + class DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObjectNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObject::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObject::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObject(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('keep_until', $data)) { + $object->setKeepUntil($data['keep_until']); + unset($data['keep_until']); + } + if (\array_key_exists('object_type', $data)) { + $object->setObjectType($data['object_type']); + unset($data['object_type']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('keepUntil') && null !== $object->getKeepUntil()) { + $data['keep_until'] = $object->getKeepUntil(); + } + if ($object->isInitialized('objectType') && null !== $object->getObjectType()) { + $data['object_type'] = $object->getObjectType(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObject::class => false]; + } + } +} diff --git a/src/Core/Normalizer/DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php b/src/Core/Normalizer/DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php new file mode 100644 index 00000000..9e3a1bba --- /dev/null +++ b/src/Core/Normalizer/DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class => false]; + } + } +} else { + class DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNormalizer.php b/src/Core/Normalizer/DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNormalizer.php new file mode 100644 index 00000000..ce0c48ce --- /dev/null +++ b/src/Core/Normalizer/DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNormalizer.php @@ -0,0 +1,289 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualMachine::class, 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); + unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); + } + if (\array_key_exists('mac_address', $data)) { + $object->setMacAddress($data['mac_address']); + unset($data['mac_address']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartIPAddresses::class, 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + if (\array_key_exists('speed_profile', $data)) { + $object->setSpeedProfile($this->denormalizer->denormalize($data['speed_profile'], \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartSpeedProfile::class, 'json', $context)); + unset($data['speed_profile']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } + if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { + $data['mac_address'] = $object->getMacAddress(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + } + if ($object->isInitialized('speedProfile') && null !== $object->getSpeedProfile()) { + $data['speed_profile'] = $this->normalizer->normalize($object->getSpeedProfile(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface::class => false]; + } + } +} else { + class DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualMachine::class, 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); + unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); + } + if (\array_key_exists('mac_address', $data)) { + $object->setMacAddress($data['mac_address']); + unset($data['mac_address']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartIPAddresses::class, 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + if (\array_key_exists('speed_profile', $data)) { + $object->setSpeedProfile($this->denormalizer->denormalize($data['speed_profile'], \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartSpeedProfile::class, 'json', $context)); + unset($data['speed_profile']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } + if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { + $data['mac_address'] = $object->getMacAddress(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + } + if ($object->isInitialized('speedProfile') && null !== $object->getSpeedProfile()) { + $data['speed_profile'] = $this->normalizer->normalize($object->getSpeedProfile(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface::class => false]; + } + } +} diff --git a/src/Core/Normalizer/DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php b/src/Core/Normalizer/DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php new file mode 100644 index 00000000..d68c7b27 --- /dev/null +++ b/src/Core/Normalizer/DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false]; + } + } +} else { + class DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/DeleteVirtualMachineNetworkInterfacePartIPAddressesNormalizer.php b/src/Core/Normalizer/DeleteVirtualMachineNetworkInterfacePartIPAddressesNormalizer.php new file mode 100644 index 00000000..25cdcf69 --- /dev/null +++ b/src/Core/Normalizer/DeleteVirtualMachineNetworkInterfacePartIPAddressesNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class DeleteVirtualMachineNetworkInterfacePartIPAddressesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartIPAddresses::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartIPAddresses::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartIPAddresses(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartIPAddresses::class => false]; + } + } +} else { + class DeleteVirtualMachineNetworkInterfacePartIPAddressesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartIPAddresses::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartIPAddresses::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartIPAddresses(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartIPAddresses::class => false]; + } + } +} diff --git a/src/Core/Normalizer/DeleteVirtualMachineNetworkInterfacePartNetworkNormalizer.php b/src/Core/Normalizer/DeleteVirtualMachineNetworkInterfacePartNetworkNormalizer.php new file mode 100644 index 00000000..d275293e --- /dev/null +++ b/src/Core/Normalizer/DeleteVirtualMachineNetworkInterfacePartNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class DeleteVirtualMachineNetworkInterfacePartNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartNetwork::class => false]; + } + } +} else { + class DeleteVirtualMachineNetworkInterfacePartNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/DeleteVirtualMachineNetworkInterfacePartSpeedProfileNormalizer.php b/src/Core/Normalizer/DeleteVirtualMachineNetworkInterfacePartSpeedProfileNormalizer.php new file mode 100644 index 00000000..d55326ab --- /dev/null +++ b/src/Core/Normalizer/DeleteVirtualMachineNetworkInterfacePartSpeedProfileNormalizer.php @@ -0,0 +1,181 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class DeleteVirtualMachineNetworkInterfacePartSpeedProfileNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartSpeedProfile::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartSpeedProfile::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartSpeedProfile(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartSpeedProfile::class => false]; + } + } +} else { + class DeleteVirtualMachineNetworkInterfacePartSpeedProfileNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartSpeedProfile::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartSpeedProfile::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartSpeedProfile(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartSpeedProfile::class => false]; + } + } +} diff --git a/src/Core/Normalizer/DeleteVirtualMachineNetworkInterfacePartVirtualMachineNormalizer.php b/src/Core/Normalizer/DeleteVirtualMachineNetworkInterfacePartVirtualMachineNormalizer.php new file mode 100644 index 00000000..6dfb0b5f --- /dev/null +++ b/src/Core/Normalizer/DeleteVirtualMachineNetworkInterfacePartVirtualMachineNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class DeleteVirtualMachineNetworkInterfacePartVirtualMachineNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualMachine::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualMachine::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualMachine(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualMachine::class => false]; + } + } +} else { + class DeleteVirtualMachineNetworkInterfacePartVirtualMachineNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualMachine::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualMachine::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualMachine(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualMachine::class => false]; + } + } +} diff --git a/src/Core/Normalizer/DeleteVirtualMachineNetworkInterfacePartVirtualNetworkNormalizer.php b/src/Core/Normalizer/DeleteVirtualMachineNetworkInterfacePartVirtualNetworkNormalizer.php new file mode 100644 index 00000000..ea7132da --- /dev/null +++ b/src/Core/Normalizer/DeleteVirtualMachineNetworkInterfacePartVirtualNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class DeleteVirtualMachineNetworkInterfacePartVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualNetwork::class => false]; + } + } +} else { + class DeleteVirtualMachineNetworkInterfacePartVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php b/src/Core/Normalizer/GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php new file mode 100644 index 00000000..1961473e --- /dev/null +++ b/src/Core/Normalizer/GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork::class => false]; + } + } +} else { + class GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNormalizer.php b/src/Core/Normalizer/GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNormalizer.php index 6e66caf6..728a5dfe 100644 --- a/src/Core/Normalizer/GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNormalizer.php +++ b/src/Core/Normalizer/GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNormalizer.php @@ -63,9 +63,17 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setName($data['name']); unset($data['name']); } - if (\array_key_exists('network', $data)) { - $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\GetVMNIVMNIPartNetwork::class, 'json', $context)); + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); } if (\array_key_exists('mac_address', $data)) { $object->setMacAddress($data['mac_address']); @@ -111,6 +119,9 @@ public function normalize(mixed $object, ?string $format = null, array $context if ($object->isInitialized('network') && null !== $object->getNetwork()) { $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { $data['mac_address'] = $object->getMacAddress(); } @@ -183,9 +194,17 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setName($data['name']); unset($data['name']); } - if (\array_key_exists('network', $data)) { - $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\GetVMNIVMNIPartNetwork::class, 'json', $context)); + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); } if (\array_key_exists('mac_address', $data)) { $object->setMacAddress($data['mac_address']); @@ -234,6 +253,9 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('network') && null !== $object->getNetwork()) { $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { $data['mac_address'] = $object->getMacAddress(); } diff --git a/src/Core/Normalizer/GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php b/src/Core/Normalizer/GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php new file mode 100644 index 00000000..46b6799a --- /dev/null +++ b/src/Core/Normalizer/GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false]; + } + } +} else { + class GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/GetVMNIVMNIPartVirtualNetworkNormalizer.php b/src/Core/Normalizer/GetVMNIVMNIPartVirtualNetworkNormalizer.php new file mode 100644 index 00000000..5d794535 --- /dev/null +++ b/src/Core/Normalizer/GetVMNIVMNIPartVirtualNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class GetVMNIVMNIPartVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\GetVMNIVMNIPartVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\GetVMNIVMNIPartVirtualNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\GetVMNIVMNIPartVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\GetVMNIVMNIPartVirtualNetwork::class => false]; + } + } +} else { + class GetVMNIVMNIPartVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\GetVMNIVMNIPartVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\GetVMNIVMNIPartVirtualNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\GetVMNIVMNIPartVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\GetVMNIVMNIPartVirtualNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php b/src/Core/Normalizer/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php new file mode 100644 index 00000000..a198bfbe --- /dev/null +++ b/src/Core/Normalizer/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class => false]; + } + } +} else { + class GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNormalizer.php b/src/Core/Normalizer/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNormalizer.php index 339e291c..27a625ec 100644 --- a/src/Core/Normalizer/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNormalizer.php +++ b/src/Core/Normalizer/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNormalizer.php @@ -63,9 +63,17 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setName($data['name']); unset($data['name']); } - if (\array_key_exists('network', $data)) { - $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartNetwork::class, 'json', $context)); + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); } if (\array_key_exists('mac_address', $data)) { $object->setMacAddress($data['mac_address']); @@ -107,6 +115,9 @@ public function normalize(mixed $object, ?string $format = null, array $context if ($object->isInitialized('network') && null !== $object->getNetwork()) { $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { $data['mac_address'] = $object->getMacAddress(); } @@ -176,9 +187,17 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setName($data['name']); unset($data['name']); } - if (\array_key_exists('network', $data)) { - $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartNetwork::class, 'json', $context)); + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); } if (\array_key_exists('mac_address', $data)) { $object->setMacAddress($data['mac_address']); @@ -223,6 +242,9 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('network') && null !== $object->getNetwork()) { $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { $data['mac_address'] = $object->getMacAddress(); } diff --git a/src/Core/Normalizer/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php b/src/Core/Normalizer/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php new file mode 100644 index 00000000..d8cd09e2 --- /dev/null +++ b/src/Core/Normalizer/GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false]; + } + } +} else { + class GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/GetVirtualMachineNetworkInterfacePartVirtualNetworkNormalizer.php b/src/Core/Normalizer/GetVirtualMachineNetworkInterfacePartVirtualNetworkNormalizer.php new file mode 100644 index 00000000..f9bfa9f3 --- /dev/null +++ b/src/Core/Normalizer/GetVirtualMachineNetworkInterfacePartVirtualNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class GetVirtualMachineNetworkInterfacePartVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartVirtualNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartVirtualNetwork::class => false]; + } + } +} else { + class GetVirtualMachineNetworkInterfacePartVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartVirtualNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartVirtualNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetworkNormalizer.php b/src/Core/Normalizer/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetworkNormalizer.php new file mode 100644 index 00000000..02ba89d2 --- /dev/null +++ b/src/Core/Normalizer/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetwork::class => false]; + } + } +} else { + class GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNormalizer.php b/src/Core/Normalizer/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNormalizer.php index 9469c914..26a47e2c 100644 --- a/src/Core/Normalizer/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNormalizer.php +++ b/src/Core/Normalizer/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNormalizer.php @@ -59,9 +59,17 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setName($data['name']); unset($data['name']); } - if (\array_key_exists('network', $data)) { - $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacesPartNetwork::class, 'json', $context)); + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetwork::class, 'json', $context)); unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); } if (\array_key_exists('ip_addresses', $data)) { $values = []; @@ -92,6 +100,9 @@ public function normalize(mixed $object, ?string $format = null, array $context if ($object->isInitialized('network') && null !== $object->getNetwork()) { $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { $values = []; foreach ($object->getIpAddresses() as $value) { @@ -151,9 +162,17 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setName($data['name']); unset($data['name']); } - if (\array_key_exists('network', $data)) { - $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacesPartNetwork::class, 'json', $context)); + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetwork::class, 'json', $context)); unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); } if (\array_key_exists('ip_addresses', $data)) { $values = []; @@ -187,6 +206,9 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('network') && null !== $object->getNetwork()) { $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { $values = []; foreach ($object->getIpAddresses() as $value) { diff --git a/src/Core/Normalizer/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetworkNormalizer.php b/src/Core/Normalizer/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetworkNormalizer.php new file mode 100644 index 00000000..c8b7b122 --- /dev/null +++ b/src/Core/Normalizer/GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetwork::class => false]; + } + } +} else { + class GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/GetVirtualMachineNetworkInterfacesPartVirtualNetworkNormalizer.php b/src/Core/Normalizer/GetVirtualMachineNetworkInterfacesPartVirtualNetworkNormalizer.php new file mode 100644 index 00000000..cfa27d1b --- /dev/null +++ b/src/Core/Normalizer/GetVirtualMachineNetworkInterfacesPartVirtualNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class GetVirtualMachineNetworkInterfacesPartVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacesPartVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacesPartVirtualNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacesPartVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacesPartVirtualNetwork::class => false]; + } + } +} else { + class GetVirtualMachineNetworkInterfacesPartVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacesPartVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacesPartVirtualNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacesPartVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacesPartVirtualNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/JaneObjectNormalizer.php b/src/Core/Normalizer/JaneObjectNormalizer.php index 1a17c97f..30a9304d 100644 --- a/src/Core/Normalizer/JaneObjectNormalizer.php +++ b/src/Core/Normalizer/JaneObjectNormalizer.php @@ -896,47 +896,137 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaces::class => GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNormalizer::class, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetwork::class => GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetworkNormalizer::class, + + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetwork::class => GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetworkNormalizer::class, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacesPartNetwork::class => GetVirtualMachineNetworkInterfacesPartNetworkNormalizer::class, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacesPartVirtualNetwork::class => GetVirtualMachineNetworkInterfacesPartVirtualNetworkNormalizer::class, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacesPartIPAddresses::class => GetVirtualMachineNetworkInterfacesPartIPAddressesNormalizer::class, + \KatapultAPI\Core\Model\NetworkSpeedProfileLookup::class => NetworkSpeedProfileLookupNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterface::class => PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork::class => PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualMachine::class => PostVirtualMachineNetworkInterfacesPartVirtualMachineNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartNetwork::class => PostVirtualMachineNetworkInterfacesPartNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualNetwork::class => PostVirtualMachineNetworkInterfacesPartVirtualNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartIPAddresses::class => PostVirtualMachineNetworkInterfacesPartIPAddressesNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartSpeedProfile::class => PostVirtualMachineNetworkInterfacesPartSpeedProfileNormalizer::class, + + \KatapultAPI\Core\Model\VirtualNetworkNotFoundSchema::class => VirtualNetworkNotFoundSchemaNormalizer::class, + + \KatapultAPI\Core\Model\NetworkSpeedProfileNotFoundSchema::class => NetworkSpeedProfileNotFoundSchemaNormalizer::class, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface::class => GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNormalizer::class, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class => GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer::class, + + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer::class, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartVirtualMachine::class => GetVirtualMachineNetworkInterfacePartVirtualMachineNormalizer::class, \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartNetwork::class => GetVirtualMachineNetworkInterfacePartNetworkNormalizer::class, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartVirtualNetwork::class => GetVirtualMachineNetworkInterfacePartVirtualNetworkNormalizer::class, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartIPAddresses::class => GetVirtualMachineNetworkInterfacePartIPAddressesNormalizer::class, \KatapultAPI\Core\Model\InterfaceNotFoundSchema::class => InterfaceNotFoundSchemaNormalizer::class, \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterface::class => GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNormalizer::class, + \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork::class => GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer::class, + + \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer::class, + \KatapultAPI\Core\Model\GetVMNIVMNIPartVirtualMachine::class => GetVMNIVMNIPartVirtualMachineNormalizer::class, \KatapultAPI\Core\Model\GetVMNIVMNIPartNetwork::class => GetVMNIVMNIPartNetworkNormalizer::class, + \KatapultAPI\Core\Model\GetVMNIVMNIPartVirtualNetwork::class => GetVMNIVMNIPartVirtualNetworkNormalizer::class, + \KatapultAPI\Core\Model\GetVMNIVMNIPartIPAddresses::class => GetVMNIVMNIPartIPAddressesNormalizer::class, \KatapultAPI\Core\Model\GetVMNIVMNIPartSpeedProfile::class => GetVMNIVMNIPartSpeedProfileNormalizer::class, \KatapultAPI\Core\Model\VirtualMachineNetworkInterfaceLookup::class => VirtualMachineNetworkInterfaceLookupNormalizer::class, + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface::class => DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNormalizer::class, + + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class => DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer::class, + + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer::class, + + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualMachine::class => DeleteVirtualMachineNetworkInterfacePartVirtualMachineNormalizer::class, + + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartNetwork::class => DeleteVirtualMachineNetworkInterfacePartNetworkNormalizer::class, + + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualNetwork::class => DeleteVirtualMachineNetworkInterfacePartVirtualNetworkNormalizer::class, + + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartIPAddresses::class => DeleteVirtualMachineNetworkInterfacePartIPAddressesNormalizer::class, + + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartSpeedProfile::class => DeleteVirtualMachineNetworkInterfacePartSpeedProfileNormalizer::class, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterface::class => PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNormalizer::class, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork::class => PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer::class, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualMachine::class => PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualMachineNormalizer::class, \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork::class => PostVirtualMachineNetworkInterfaceAllocateIPPartNetworkNormalizer::class, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualNetwork::class => PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualNetworkNormalizer::class, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartIPAddresses::class => PostVirtualMachineNetworkInterfaceAllocateIPPartIPAddressesNormalizer::class, \KatapultAPI\Core\Model\VirtualMachineNetworkInterfaceNotFoundSchema::class => VirtualMachineNetworkInterfaceNotFoundSchemaNormalizer::class, \KatapultAPI\Core\Model\InvalidIPSchema::class => InvalidIPSchemaNormalizer::class, - \KatapultAPI\Core\Model\NetworkSpeedProfileLookup::class => NetworkSpeedProfileLookupNormalizer::class, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterface::class => PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNormalizer::class, - \KatapultAPI\Core\Model\NetworkSpeedProfileNotFoundSchema::class => NetworkSpeedProfileNotFoundSchemaNormalizer::class, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork::class => PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine::class => PostVirtualMachineNetworkInterfaceAttachPartVirtualMachineNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartNetwork::class => PostVirtualMachineNetworkInterfaceAttachPartNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualNetwork::class => PostVirtualMachineNetworkInterfaceAttachPartVirtualNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartIPAddresses::class => PostVirtualMachineNetworkInterfaceAttachPartIPAddressesNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile::class => PostVirtualMachineNetworkInterfaceAttachPartSpeedProfileNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterface::class => PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork::class => PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine::class => PostVirtualMachineNetworkInterfaceDetachPartVirtualMachineNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartNetwork::class => PostVirtualMachineNetworkInterfaceDetachPartNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualNetwork::class => PostVirtualMachineNetworkInterfaceDetachPartVirtualNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartIPAddresses::class => PostVirtualMachineNetworkInterfaceDetachPartIPAddressesNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile::class => PostVirtualMachineNetworkInterfaceDetachPartSpeedProfileNormalizer::class, \KatapultAPI\Core\Model\GetOrganizationTags200ResponseTags::class => GetOrganizationTags200ResponseTagsNormalizer::class, @@ -966,22 +1056,26 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \KatapultAPI\Core\Model\ObjectStorageClusterLookup::class => ObjectStorageClusterLookupNormalizer::class, - \KatapultAPI\Core\Model\ObjectStorageBucketArguments::class => ObjectStorageBucketArgumentsNormalizer::class, - - \KatapultAPI\Core\Model\ObjectStorageBucketACLArguments::class => ObjectStorageBucketACLArgumentsNormalizer::class, - - \KatapultAPI\Core\Model\ObjectStorageBucket::class => ObjectStorageBucketNormalizer::class, + \KatapultAPI\Core\Model\ObjectStorageAccount::class => ObjectStorageAccountNormalizer::class, - \KatapultAPI\Core\Model\ObjectStorageBucketAccessControlList::class => ObjectStorageBucketAccessControlListNormalizer::class, + \KatapultAPI\Core\Model\ObjectStorageClusterNotFoundSchema::class => ObjectStorageClusterNotFoundSchemaNormalizer::class, \KatapultAPI\Core\Model\ObjectStorageAccountNotProvisionedSchema::class => ObjectStorageAccountNotProvisionedSchemaNormalizer::class, \KatapultAPI\Core\Model\ObjectStorageAccountSuspendedSchema::class => ObjectStorageAccountSuspendedSchemaNormalizer::class, - \KatapultAPI\Core\Model\ObjectStorageClusterNotFoundSchema::class => ObjectStorageClusterNotFoundSchemaNormalizer::class, - \KatapultAPI\Core\Model\ObjectStorageAccountNotFoundSchema::class => ObjectStorageAccountNotFoundSchemaNormalizer::class, + \KatapultAPI\Core\Model\DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObject::class => DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObjectNormalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageBucketArguments::class => ObjectStorageBucketArgumentsNormalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageBucketACLArguments::class => ObjectStorageBucketACLArgumentsNormalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageBucket::class => ObjectStorageBucketNormalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageBucketAccessControlList::class => ObjectStorageBucketAccessControlListNormalizer::class, + \KatapultAPI\Core\Model\ObjectStorageBucketLookup::class => ObjectStorageBucketLookupNormalizer::class, \KatapultAPI\Core\Model\ObjectStorageBucketNotFoundSchema::class => ObjectStorageBucketNotFoundSchemaNormalizer::class, @@ -996,6 +1090,14 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \KatapultAPI\Core\Model\ObjectStorageObjectPresignedURLArguments::class => ObjectStorageObjectPresignedURLArgumentsNormalizer::class, + \KatapultAPI\Core\Model\ObjectStorageAccessKeyArguments::class => ObjectStorageAccessKeyArgumentsNormalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageAccessKey::class => ObjectStorageAccessKeyNormalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageAccessKeyLookup::class => ObjectStorageAccessKeyLookupNormalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageProvisioningErrorSchema::class => ObjectStorageProvisioningErrorSchemaNormalizer::class, + \KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response::class => ResponseAPIAuthenticator400ResponseNormalizer::class, \KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response::class => ResponseAPIAuthenticator429ResponseNormalizer::class, @@ -1080,6 +1182,10 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \KatapultAPI\Core\Model\ResponseSpeedProfileAlreadyAssignedResponse::class => ResponseSpeedProfileAlreadyAssignedResponseNormalizer::class, + \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponse::class => ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponseNormalizer::class, + + \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponse::class => ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponseNormalizer::class, + \KatapultAPI\Core\Model\ResponseTagNotFoundResponse::class => ResponseTagNotFoundResponseNormalizer::class, \KatapultAPI\Core\Model\ResponseVirtualMachineGroupNotFoundResponse::class => ResponseVirtualMachineGroupNotFoundResponseNormalizer::class, @@ -1104,6 +1210,10 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \KatapultAPI\Core\Model\ResponseNetworkErrorResponse::class => ResponseNetworkErrorResponseNormalizer::class, + \KatapultAPI\Core\Model\ResponseObjectStorageAccessKeyNotFoundResponse::class => ResponseObjectStorageAccessKeyNotFoundResponseNormalizer::class, + + \KatapultAPI\Core\Model\ResponseObjectStorageProvisioningErrorResponse::class => ResponseObjectStorageProvisioningErrorResponseNormalizer::class, + \KatapultAPI\Core\Model\OrganizationsOrganizationApiTokensGetResponse200::class => OrganizationsOrganizationApiTokensGetResponse200Normalizer::class, \KatapultAPI\Core\Model\OrganizationsOrganizationApiTokensPostBody::class => OrganizationsOrganizationApiTokensPostBodyNormalizer::class, @@ -1130,6 +1240,30 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \KatapultAPI\Core\Model\ApiTokensApiTokenRegenerateSecretPostResponse200ApiToken::class => ApiTokensApiTokenRegenerateSecretPostResponse200ApiTokenNormalizer::class, + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBody::class => OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBodyNormalizer::class, + + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201::class => OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201Normalizer::class, + + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageAccessKeysGetResponse200::class => OrganizationsOrganizationObjectStorageAccessKeysGetResponse200Normalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBody::class => ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBodyNormalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200::class => ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200Normalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKey::class => ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKeyNormalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteBody::class => ObjectStorageAccessKeysAccessKeyDeleteBodyNormalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteResponse200::class => ObjectStorageAccessKeysAccessKeyDeleteResponse200Normalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGetResponse200::class => ObjectStorageAccessKeysAccessKeyGetResponse200Normalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchBody::class => ObjectStorageAccessKeysAccessKeyPatchBodyNormalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200::class => ObjectStorageAccessKeysAccessKeyPatchResponse200Normalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKey::class => ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKeyNormalizer::class, + \KatapultAPI\Core\Model\AddressListsAddressListEntriesGetResponse200::class => AddressListsAddressListEntriesGetResponse200Normalizer::class, \KatapultAPI\Core\Model\AddressListsAddressListEntriesPostBody::class => AddressListsAddressListEntriesPostBodyNormalizer::class, @@ -1530,6 +1664,18 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \KatapultAPI\Core\Model\NetworksNetworkGetResponse200Network::class => NetworksNetworkGetResponse200NetworkNormalizer::class, + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBody::class => OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBodyNormalizer::class, + + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200::class => OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200Normalizer::class, + + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200::class => OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200Normalizer::class, + + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostBody::class => OrganizationsOrganizationObjectStorageObjectStorageClusterPostBodyNormalizer::class, + + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201::class => OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201Normalizer::class, + + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccount::class => OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccountNormalizer::class, + \KatapultAPI\Core\Model\OperatingSystemsGetResponse200::class => OperatingSystemsGetResponse200Normalizer::class, \KatapultAPI\Core\Model\OperatingSystemsOperatingSystemGetResponse200::class => OperatingSystemsOperatingSystemGetResponse200Normalizer::class, @@ -1746,10 +1892,22 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200::class => VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200Normalizer::class, + \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostBody::class => VirtualMachinesVirtualMachineNetworkInterfacesPostBodyNormalizer::class, + + \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200::class => VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200Normalizer::class, + + \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterface::class => VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterfaceNormalizer::class, + \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200::class => VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200Normalizer::class, \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterface::class => VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterfaceNormalizer::class, + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBody::class => VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBodyNormalizer::class, + + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200::class => VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200Normalizer::class, + + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterface::class => VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterfaceNormalizer::class, + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200::class => VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200Normalizer::class, \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterface::class => VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterfaceNormalizer::class, @@ -1774,6 +1932,18 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200Task::class => VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200TaskNormalizer::class, + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBody::class => VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBodyNormalizer::class, + + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200::class => VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200Normalizer::class, + + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterface::class => VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterfaceNormalizer::class, + + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBody::class => VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBodyNormalizer::class, + + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200::class => VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200Normalizer::class, + + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterface::class => VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterfaceNormalizer::class, + \KatapultAPI\Core\Model\VirtualMachinePackagesGetResponse200::class => VirtualMachinePackagesGetResponse200Normalizer::class, \KatapultAPI\Core\Model\VirtualMachinePackagesVirtualMachinePackageGetResponse200::class => VirtualMachinePackagesVirtualMachinePackageGetResponse200Normalizer::class, @@ -2294,27 +2464,72 @@ public function getSupportedTypes(?string $format = null): array \KatapultAPI\Core\Model\NoAvailableAddressesSchema::class => false, \KatapultAPI\Core\Model\GetIPAddress200ResponseAllocation::class => false, \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaces::class => false, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetwork::class => false, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetwork::class => false, \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacesPartNetwork::class => false, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacesPartVirtualNetwork::class => false, \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacesPartIPAddresses::class => false, + \KatapultAPI\Core\Model\NetworkSpeedProfileLookup::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterface::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualMachine::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartIPAddresses::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartSpeedProfile::class => false, + \KatapultAPI\Core\Model\VirtualNetworkNotFoundSchema::class => false, + \KatapultAPI\Core\Model\NetworkSpeedProfileNotFoundSchema::class => false, \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface::class => false, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class => false, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false, \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartVirtualMachine::class => false, \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartNetwork::class => false, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartVirtualNetwork::class => false, \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartIPAddresses::class => false, \KatapultAPI\Core\Model\InterfaceNotFoundSchema::class => false, \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterface::class => false, + \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork::class => false, + \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false, \KatapultAPI\Core\Model\GetVMNIVMNIPartVirtualMachine::class => false, \KatapultAPI\Core\Model\GetVMNIVMNIPartNetwork::class => false, + \KatapultAPI\Core\Model\GetVMNIVMNIPartVirtualNetwork::class => false, \KatapultAPI\Core\Model\GetVMNIVMNIPartIPAddresses::class => false, \KatapultAPI\Core\Model\GetVMNIVMNIPartSpeedProfile::class => false, \KatapultAPI\Core\Model\VirtualMachineNetworkInterfaceLookup::class => false, + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface::class => false, + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class => false, + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false, + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualMachine::class => false, + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartNetwork::class => false, + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualNetwork::class => false, + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartIPAddresses::class => false, + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartSpeedProfile::class => false, \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterface::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false, \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualMachine::class => false, \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualNetwork::class => false, \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartIPAddresses::class => false, \KatapultAPI\Core\Model\VirtualMachineNetworkInterfaceNotFoundSchema::class => false, \KatapultAPI\Core\Model\InvalidIPSchema::class => false, - \KatapultAPI\Core\Model\NetworkSpeedProfileLookup::class => false, - \KatapultAPI\Core\Model\NetworkSpeedProfileNotFoundSchema::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterface::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartIPAddresses::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterface::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartIPAddresses::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile::class => false, \KatapultAPI\Core\Model\GetOrganizationTags200ResponseTags::class => false, \KatapultAPI\Core\Model\TagArguments::class => false, \KatapultAPI\Core\Model\TagLookup::class => false, @@ -2329,14 +2544,16 @@ public function getSupportedTypes(?string $format = null): array \KatapultAPI\Core\Model\GetUsersCurrent200ResponseOrganizations::class => false, \KatapultAPI\Core\Model\IdentityNotLinkedToWebSessionSchema::class => false, \KatapultAPI\Core\Model\ObjectStorageClusterLookup::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccount::class => false, + \KatapultAPI\Core\Model\ObjectStorageClusterNotFoundSchema::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccountNotProvisionedSchema::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccountSuspendedSchema::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccountNotFoundSchema::class => false, + \KatapultAPI\Core\Model\DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObject::class => false, \KatapultAPI\Core\Model\ObjectStorageBucketArguments::class => false, \KatapultAPI\Core\Model\ObjectStorageBucketACLArguments::class => false, \KatapultAPI\Core\Model\ObjectStorageBucket::class => false, \KatapultAPI\Core\Model\ObjectStorageBucketAccessControlList::class => false, - \KatapultAPI\Core\Model\ObjectStorageAccountNotProvisionedSchema::class => false, - \KatapultAPI\Core\Model\ObjectStorageAccountSuspendedSchema::class => false, - \KatapultAPI\Core\Model\ObjectStorageClusterNotFoundSchema::class => false, - \KatapultAPI\Core\Model\ObjectStorageAccountNotFoundSchema::class => false, \KatapultAPI\Core\Model\ObjectStorageBucketLookup::class => false, \KatapultAPI\Core\Model\ObjectStorageBucketNotFoundSchema::class => false, \KatapultAPI\Core\Model\ObjectStorageBucketDeletionError::class => false, @@ -2344,6 +2561,10 @@ public function getSupportedTypes(?string $format = null): array \KatapultAPI\Core\Model\ObjectStorageObject::class => false, \KatapultAPI\Core\Model\ObjectNotFoundSchema::class => false, \KatapultAPI\Core\Model\ObjectStorageObjectPresignedURLArguments::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccessKeyArguments::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccessKey::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccessKeyLookup::class => false, + \KatapultAPI\Core\Model\ObjectStorageProvisioningErrorSchema::class => false, \KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response::class => false, \KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response::class => false, \KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response::class => false, @@ -2386,6 +2607,8 @@ public function getSupportedTypes(?string $format = null): array \KatapultAPI\Core\Model\ResponseNoAllocationResponse::class => false, \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceNotFoundResponse::class => false, \KatapultAPI\Core\Model\ResponseSpeedProfileAlreadyAssignedResponse::class => false, + \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponse::class => false, + \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponse::class => false, \KatapultAPI\Core\Model\ResponseTagNotFoundResponse::class => false, \KatapultAPI\Core\Model\ResponseVirtualMachineGroupNotFoundResponse::class => false, \KatapultAPI\Core\Model\ResponseOperatingSystemNotFoundResponse::class => false, @@ -2398,6 +2621,8 @@ public function getSupportedTypes(?string $format = null): array \KatapultAPI\Core\Model\ResponseNoUserAssociatedWithIdentityResponse::class => false, \KatapultAPI\Core\Model\ResponseMultipleObjectStorageBucketsFoundResponse::class => false, \KatapultAPI\Core\Model\ResponseNetworkErrorResponse::class => false, + \KatapultAPI\Core\Model\ResponseObjectStorageAccessKeyNotFoundResponse::class => false, + \KatapultAPI\Core\Model\ResponseObjectStorageProvisioningErrorResponse::class => false, \KatapultAPI\Core\Model\OrganizationsOrganizationApiTokensGetResponse200::class => false, \KatapultAPI\Core\Model\OrganizationsOrganizationApiTokensPostBody::class => false, \KatapultAPI\Core\Model\OrganizationsOrganizationApiTokensPostResponse200::class => false, @@ -2411,6 +2636,18 @@ public function getSupportedTypes(?string $format = null): array \KatapultAPI\Core\Model\ApiTokensApiTokenRegenerateSecretPostBody::class => false, \KatapultAPI\Core\Model\ApiTokensApiTokenRegenerateSecretPostResponse200::class => false, \KatapultAPI\Core\Model\ApiTokensApiTokenRegenerateSecretPostResponse200ApiToken::class => false, + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBody::class => false, + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201::class => false, + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageAccessKeysGetResponse200::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBody::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKey::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteBody::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteResponse200::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGetResponse200::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchBody::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKey::class => false, \KatapultAPI\Core\Model\AddressListsAddressListEntriesGetResponse200::class => false, \KatapultAPI\Core\Model\AddressListsAddressListEntriesPostBody::class => false, \KatapultAPI\Core\Model\AddressListsAddressListEntriesPostResponse201::class => false, @@ -2611,6 +2848,12 @@ public function getSupportedTypes(?string $format = null): array \KatapultAPI\Core\Model\OrganizationsOrganizationAvailableNetworksGetResponse200::class => false, \KatapultAPI\Core\Model\NetworksNetworkGetResponse200::class => false, \KatapultAPI\Core\Model\NetworksNetworkGetResponse200Network::class => false, + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBody::class => false, + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200::class => false, + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200::class => false, + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostBody::class => false, + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201::class => false, + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccount::class => false, \KatapultAPI\Core\Model\OperatingSystemsGetResponse200::class => false, \KatapultAPI\Core\Model\OperatingSystemsOperatingSystemGetResponse200::class => false, \KatapultAPI\Core\Model\OperatingSystemsOperatingSystemGetResponse200OperatingSystem::class => false, @@ -2719,8 +2962,14 @@ public function getSupportedTypes(?string $format = null): array \KatapultAPI\Core\Model\VirtualMachineGroupsVirtualMachineGroupPatchResponse200::class => false, \KatapultAPI\Core\Model\VirtualMachineGroupsVirtualMachineGroupPatchResponse200VirtualMachineGroup::class => false, \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200::class => false, + \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostBody::class => false, + \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200::class => false, + \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterface::class => false, \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200::class => false, \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterface::class => false, + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBody::class => false, + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200::class => false, + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterface::class => false, \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200::class => false, \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterface::class => false, \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAvailableIpsAddressVersionGetResponse200::class => false, @@ -2733,6 +2982,12 @@ public function getSupportedTypes(?string $format = null): array \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchBody::class => false, \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200::class => false, \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200Task::class => false, + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBody::class => false, + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200::class => false, + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterface::class => false, + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBody::class => false, + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200::class => false, + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterface::class => false, \KatapultAPI\Core\Model\VirtualMachinePackagesGetResponse200::class => false, \KatapultAPI\Core\Model\VirtualMachinePackagesVirtualMachinePackageGetResponse200::class => false, \KatapultAPI\Core\Model\OrganizationsOrganizationVirtualMachinesGetResponse200::class => false, @@ -3632,47 +3887,137 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaces::class => GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNormalizer::class, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetwork::class => GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetworkNormalizer::class, + + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetwork::class => GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetworkNormalizer::class, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacesPartNetwork::class => GetVirtualMachineNetworkInterfacesPartNetworkNormalizer::class, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacesPartVirtualNetwork::class => GetVirtualMachineNetworkInterfacesPartVirtualNetworkNormalizer::class, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacesPartIPAddresses::class => GetVirtualMachineNetworkInterfacesPartIPAddressesNormalizer::class, + \KatapultAPI\Core\Model\NetworkSpeedProfileLookup::class => NetworkSpeedProfileLookupNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterface::class => PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork::class => PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualMachine::class => PostVirtualMachineNetworkInterfacesPartVirtualMachineNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartNetwork::class => PostVirtualMachineNetworkInterfacesPartNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualNetwork::class => PostVirtualMachineNetworkInterfacesPartVirtualNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartIPAddresses::class => PostVirtualMachineNetworkInterfacesPartIPAddressesNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartSpeedProfile::class => PostVirtualMachineNetworkInterfacesPartSpeedProfileNormalizer::class, + + \KatapultAPI\Core\Model\VirtualNetworkNotFoundSchema::class => VirtualNetworkNotFoundSchemaNormalizer::class, + + \KatapultAPI\Core\Model\NetworkSpeedProfileNotFoundSchema::class => NetworkSpeedProfileNotFoundSchemaNormalizer::class, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface::class => GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNormalizer::class, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class => GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer::class, + + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer::class, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartVirtualMachine::class => GetVirtualMachineNetworkInterfacePartVirtualMachineNormalizer::class, \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartNetwork::class => GetVirtualMachineNetworkInterfacePartNetworkNormalizer::class, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartVirtualNetwork::class => GetVirtualMachineNetworkInterfacePartVirtualNetworkNormalizer::class, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartIPAddresses::class => GetVirtualMachineNetworkInterfacePartIPAddressesNormalizer::class, \KatapultAPI\Core\Model\InterfaceNotFoundSchema::class => InterfaceNotFoundSchemaNormalizer::class, \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterface::class => GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNormalizer::class, + \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork::class => GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer::class, + + \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer::class, + \KatapultAPI\Core\Model\GetVMNIVMNIPartVirtualMachine::class => GetVMNIVMNIPartVirtualMachineNormalizer::class, \KatapultAPI\Core\Model\GetVMNIVMNIPartNetwork::class => GetVMNIVMNIPartNetworkNormalizer::class, + \KatapultAPI\Core\Model\GetVMNIVMNIPartVirtualNetwork::class => GetVMNIVMNIPartVirtualNetworkNormalizer::class, + \KatapultAPI\Core\Model\GetVMNIVMNIPartIPAddresses::class => GetVMNIVMNIPartIPAddressesNormalizer::class, \KatapultAPI\Core\Model\GetVMNIVMNIPartSpeedProfile::class => GetVMNIVMNIPartSpeedProfileNormalizer::class, \KatapultAPI\Core\Model\VirtualMachineNetworkInterfaceLookup::class => VirtualMachineNetworkInterfaceLookupNormalizer::class, + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface::class => DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNormalizer::class, + + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class => DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer::class, + + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer::class, + + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualMachine::class => DeleteVirtualMachineNetworkInterfacePartVirtualMachineNormalizer::class, + + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartNetwork::class => DeleteVirtualMachineNetworkInterfacePartNetworkNormalizer::class, + + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualNetwork::class => DeleteVirtualMachineNetworkInterfacePartVirtualNetworkNormalizer::class, + + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartIPAddresses::class => DeleteVirtualMachineNetworkInterfacePartIPAddressesNormalizer::class, + + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartSpeedProfile::class => DeleteVirtualMachineNetworkInterfacePartSpeedProfileNormalizer::class, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterface::class => PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNormalizer::class, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork::class => PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer::class, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualMachine::class => PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualMachineNormalizer::class, \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork::class => PostVirtualMachineNetworkInterfaceAllocateIPPartNetworkNormalizer::class, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualNetwork::class => PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualNetworkNormalizer::class, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartIPAddresses::class => PostVirtualMachineNetworkInterfaceAllocateIPPartIPAddressesNormalizer::class, \KatapultAPI\Core\Model\VirtualMachineNetworkInterfaceNotFoundSchema::class => VirtualMachineNetworkInterfaceNotFoundSchemaNormalizer::class, \KatapultAPI\Core\Model\InvalidIPSchema::class => InvalidIPSchemaNormalizer::class, - \KatapultAPI\Core\Model\NetworkSpeedProfileLookup::class => NetworkSpeedProfileLookupNormalizer::class, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterface::class => PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNormalizer::class, - \KatapultAPI\Core\Model\NetworkSpeedProfileNotFoundSchema::class => NetworkSpeedProfileNotFoundSchemaNormalizer::class, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork::class => PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine::class => PostVirtualMachineNetworkInterfaceAttachPartVirtualMachineNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartNetwork::class => PostVirtualMachineNetworkInterfaceAttachPartNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualNetwork::class => PostVirtualMachineNetworkInterfaceAttachPartVirtualNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartIPAddresses::class => PostVirtualMachineNetworkInterfaceAttachPartIPAddressesNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile::class => PostVirtualMachineNetworkInterfaceAttachPartSpeedProfileNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterface::class => PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork::class => PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine::class => PostVirtualMachineNetworkInterfaceDetachPartVirtualMachineNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartNetwork::class => PostVirtualMachineNetworkInterfaceDetachPartNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualNetwork::class => PostVirtualMachineNetworkInterfaceDetachPartVirtualNetworkNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartIPAddresses::class => PostVirtualMachineNetworkInterfaceDetachPartIPAddressesNormalizer::class, + + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile::class => PostVirtualMachineNetworkInterfaceDetachPartSpeedProfileNormalizer::class, \KatapultAPI\Core\Model\GetOrganizationTags200ResponseTags::class => GetOrganizationTags200ResponseTagsNormalizer::class, @@ -3702,22 +4047,26 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \KatapultAPI\Core\Model\ObjectStorageClusterLookup::class => ObjectStorageClusterLookupNormalizer::class, - \KatapultAPI\Core\Model\ObjectStorageBucketArguments::class => ObjectStorageBucketArgumentsNormalizer::class, - - \KatapultAPI\Core\Model\ObjectStorageBucketACLArguments::class => ObjectStorageBucketACLArgumentsNormalizer::class, - - \KatapultAPI\Core\Model\ObjectStorageBucket::class => ObjectStorageBucketNormalizer::class, + \KatapultAPI\Core\Model\ObjectStorageAccount::class => ObjectStorageAccountNormalizer::class, - \KatapultAPI\Core\Model\ObjectStorageBucketAccessControlList::class => ObjectStorageBucketAccessControlListNormalizer::class, + \KatapultAPI\Core\Model\ObjectStorageClusterNotFoundSchema::class => ObjectStorageClusterNotFoundSchemaNormalizer::class, \KatapultAPI\Core\Model\ObjectStorageAccountNotProvisionedSchema::class => ObjectStorageAccountNotProvisionedSchemaNormalizer::class, \KatapultAPI\Core\Model\ObjectStorageAccountSuspendedSchema::class => ObjectStorageAccountSuspendedSchemaNormalizer::class, - \KatapultAPI\Core\Model\ObjectStorageClusterNotFoundSchema::class => ObjectStorageClusterNotFoundSchemaNormalizer::class, - \KatapultAPI\Core\Model\ObjectStorageAccountNotFoundSchema::class => ObjectStorageAccountNotFoundSchemaNormalizer::class, + \KatapultAPI\Core\Model\DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObject::class => DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObjectNormalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageBucketArguments::class => ObjectStorageBucketArgumentsNormalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageBucketACLArguments::class => ObjectStorageBucketACLArgumentsNormalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageBucket::class => ObjectStorageBucketNormalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageBucketAccessControlList::class => ObjectStorageBucketAccessControlListNormalizer::class, + \KatapultAPI\Core\Model\ObjectStorageBucketLookup::class => ObjectStorageBucketLookupNormalizer::class, \KatapultAPI\Core\Model\ObjectStorageBucketNotFoundSchema::class => ObjectStorageBucketNotFoundSchemaNormalizer::class, @@ -3732,6 +4081,14 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \KatapultAPI\Core\Model\ObjectStorageObjectPresignedURLArguments::class => ObjectStorageObjectPresignedURLArgumentsNormalizer::class, + \KatapultAPI\Core\Model\ObjectStorageAccessKeyArguments::class => ObjectStorageAccessKeyArgumentsNormalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageAccessKey::class => ObjectStorageAccessKeyNormalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageAccessKeyLookup::class => ObjectStorageAccessKeyLookupNormalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageProvisioningErrorSchema::class => ObjectStorageProvisioningErrorSchemaNormalizer::class, + \KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response::class => ResponseAPIAuthenticator400ResponseNormalizer::class, \KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response::class => ResponseAPIAuthenticator429ResponseNormalizer::class, @@ -3816,6 +4173,10 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \KatapultAPI\Core\Model\ResponseSpeedProfileAlreadyAssignedResponse::class => ResponseSpeedProfileAlreadyAssignedResponseNormalizer::class, + \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponse::class => ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponseNormalizer::class, + + \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponse::class => ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponseNormalizer::class, + \KatapultAPI\Core\Model\ResponseTagNotFoundResponse::class => ResponseTagNotFoundResponseNormalizer::class, \KatapultAPI\Core\Model\ResponseVirtualMachineGroupNotFoundResponse::class => ResponseVirtualMachineGroupNotFoundResponseNormalizer::class, @@ -3840,6 +4201,10 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \KatapultAPI\Core\Model\ResponseNetworkErrorResponse::class => ResponseNetworkErrorResponseNormalizer::class, + \KatapultAPI\Core\Model\ResponseObjectStorageAccessKeyNotFoundResponse::class => ResponseObjectStorageAccessKeyNotFoundResponseNormalizer::class, + + \KatapultAPI\Core\Model\ResponseObjectStorageProvisioningErrorResponse::class => ResponseObjectStorageProvisioningErrorResponseNormalizer::class, + \KatapultAPI\Core\Model\OrganizationsOrganizationApiTokensGetResponse200::class => OrganizationsOrganizationApiTokensGetResponse200Normalizer::class, \KatapultAPI\Core\Model\OrganizationsOrganizationApiTokensPostBody::class => OrganizationsOrganizationApiTokensPostBodyNormalizer::class, @@ -3866,6 +4231,30 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \KatapultAPI\Core\Model\ApiTokensApiTokenRegenerateSecretPostResponse200ApiToken::class => ApiTokensApiTokenRegenerateSecretPostResponse200ApiTokenNormalizer::class, + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBody::class => OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBodyNormalizer::class, + + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201::class => OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201Normalizer::class, + + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageAccessKeysGetResponse200::class => OrganizationsOrganizationObjectStorageAccessKeysGetResponse200Normalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBody::class => ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBodyNormalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200::class => ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200Normalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKey::class => ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKeyNormalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteBody::class => ObjectStorageAccessKeysAccessKeyDeleteBodyNormalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteResponse200::class => ObjectStorageAccessKeysAccessKeyDeleteResponse200Normalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGetResponse200::class => ObjectStorageAccessKeysAccessKeyGetResponse200Normalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchBody::class => ObjectStorageAccessKeysAccessKeyPatchBodyNormalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200::class => ObjectStorageAccessKeysAccessKeyPatchResponse200Normalizer::class, + + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKey::class => ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKeyNormalizer::class, + \KatapultAPI\Core\Model\AddressListsAddressListEntriesGetResponse200::class => AddressListsAddressListEntriesGetResponse200Normalizer::class, \KatapultAPI\Core\Model\AddressListsAddressListEntriesPostBody::class => AddressListsAddressListEntriesPostBodyNormalizer::class, @@ -4266,6 +4655,18 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \KatapultAPI\Core\Model\NetworksNetworkGetResponse200Network::class => NetworksNetworkGetResponse200NetworkNormalizer::class, + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBody::class => OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBodyNormalizer::class, + + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200::class => OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200Normalizer::class, + + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200::class => OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200Normalizer::class, + + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostBody::class => OrganizationsOrganizationObjectStorageObjectStorageClusterPostBodyNormalizer::class, + + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201::class => OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201Normalizer::class, + + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccount::class => OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccountNormalizer::class, + \KatapultAPI\Core\Model\OperatingSystemsGetResponse200::class => OperatingSystemsGetResponse200Normalizer::class, \KatapultAPI\Core\Model\OperatingSystemsOperatingSystemGetResponse200::class => OperatingSystemsOperatingSystemGetResponse200Normalizer::class, @@ -4482,10 +4883,22 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200::class => VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200Normalizer::class, + \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostBody::class => VirtualMachinesVirtualMachineNetworkInterfacesPostBodyNormalizer::class, + + \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200::class => VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200Normalizer::class, + + \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterface::class => VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterfaceNormalizer::class, + \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200::class => VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200Normalizer::class, \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterface::class => VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterfaceNormalizer::class, + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBody::class => VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBodyNormalizer::class, + + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200::class => VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200Normalizer::class, + + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterface::class => VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterfaceNormalizer::class, + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200::class => VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200Normalizer::class, \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterface::class => VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterfaceNormalizer::class, @@ -4510,6 +4923,18 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200Task::class => VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200TaskNormalizer::class, + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBody::class => VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBodyNormalizer::class, + + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200::class => VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200Normalizer::class, + + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterface::class => VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterfaceNormalizer::class, + + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBody::class => VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBodyNormalizer::class, + + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200::class => VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200Normalizer::class, + + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterface::class => VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterfaceNormalizer::class, + \KatapultAPI\Core\Model\VirtualMachinePackagesGetResponse200::class => VirtualMachinePackagesGetResponse200Normalizer::class, \KatapultAPI\Core\Model\VirtualMachinePackagesVirtualMachinePackageGetResponse200::class => VirtualMachinePackagesVirtualMachinePackageGetResponse200Normalizer::class, @@ -5033,27 +5458,72 @@ public function getSupportedTypes(?string $format = null): array \KatapultAPI\Core\Model\NoAvailableAddressesSchema::class => false, \KatapultAPI\Core\Model\GetIPAddress200ResponseAllocation::class => false, \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaces::class => false, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesNetwork::class => false, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfacesVirtualNetwork::class => false, \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacesPartNetwork::class => false, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacesPartVirtualNetwork::class => false, \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacesPartIPAddresses::class => false, + \KatapultAPI\Core\Model\NetworkSpeedProfileLookup::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterface::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualMachine::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartIPAddresses::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartSpeedProfile::class => false, + \KatapultAPI\Core\Model\VirtualNetworkNotFoundSchema::class => false, + \KatapultAPI\Core\Model\NetworkSpeedProfileNotFoundSchema::class => false, \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface::class => false, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class => false, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false, \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartVirtualMachine::class => false, \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartNetwork::class => false, + \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartVirtualNetwork::class => false, \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartIPAddresses::class => false, \KatapultAPI\Core\Model\InterfaceNotFoundSchema::class => false, \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterface::class => false, + \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork::class => false, + \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false, \KatapultAPI\Core\Model\GetVMNIVMNIPartVirtualMachine::class => false, \KatapultAPI\Core\Model\GetVMNIVMNIPartNetwork::class => false, + \KatapultAPI\Core\Model\GetVMNIVMNIPartVirtualNetwork::class => false, \KatapultAPI\Core\Model\GetVMNIVMNIPartIPAddresses::class => false, \KatapultAPI\Core\Model\GetVMNIVMNIPartSpeedProfile::class => false, \KatapultAPI\Core\Model\VirtualMachineNetworkInterfaceLookup::class => false, + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterface::class => false, + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class => false, + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false, + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualMachine::class => false, + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartNetwork::class => false, + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualNetwork::class => false, + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartIPAddresses::class => false, + \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartSpeedProfile::class => false, \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterface::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false, \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualMachine::class => false, \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualNetwork::class => false, \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartIPAddresses::class => false, \KatapultAPI\Core\Model\VirtualMachineNetworkInterfaceNotFoundSchema::class => false, \KatapultAPI\Core\Model\InvalidIPSchema::class => false, - \KatapultAPI\Core\Model\NetworkSpeedProfileLookup::class => false, - \KatapultAPI\Core\Model\NetworkSpeedProfileNotFoundSchema::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterface::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartIPAddresses::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterface::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualNetwork::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartIPAddresses::class => false, + \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile::class => false, \KatapultAPI\Core\Model\GetOrganizationTags200ResponseTags::class => false, \KatapultAPI\Core\Model\TagArguments::class => false, \KatapultAPI\Core\Model\TagLookup::class => false, @@ -5068,14 +5538,16 @@ public function getSupportedTypes(?string $format = null): array \KatapultAPI\Core\Model\GetUsersCurrent200ResponseOrganizations::class => false, \KatapultAPI\Core\Model\IdentityNotLinkedToWebSessionSchema::class => false, \KatapultAPI\Core\Model\ObjectStorageClusterLookup::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccount::class => false, + \KatapultAPI\Core\Model\ObjectStorageClusterNotFoundSchema::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccountNotProvisionedSchema::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccountSuspendedSchema::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccountNotFoundSchema::class => false, + \KatapultAPI\Core\Model\DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObject::class => false, \KatapultAPI\Core\Model\ObjectStorageBucketArguments::class => false, \KatapultAPI\Core\Model\ObjectStorageBucketACLArguments::class => false, \KatapultAPI\Core\Model\ObjectStorageBucket::class => false, \KatapultAPI\Core\Model\ObjectStorageBucketAccessControlList::class => false, - \KatapultAPI\Core\Model\ObjectStorageAccountNotProvisionedSchema::class => false, - \KatapultAPI\Core\Model\ObjectStorageAccountSuspendedSchema::class => false, - \KatapultAPI\Core\Model\ObjectStorageClusterNotFoundSchema::class => false, - \KatapultAPI\Core\Model\ObjectStorageAccountNotFoundSchema::class => false, \KatapultAPI\Core\Model\ObjectStorageBucketLookup::class => false, \KatapultAPI\Core\Model\ObjectStorageBucketNotFoundSchema::class => false, \KatapultAPI\Core\Model\ObjectStorageBucketDeletionError::class => false, @@ -5083,6 +5555,10 @@ public function getSupportedTypes(?string $format = null): array \KatapultAPI\Core\Model\ObjectStorageObject::class => false, \KatapultAPI\Core\Model\ObjectNotFoundSchema::class => false, \KatapultAPI\Core\Model\ObjectStorageObjectPresignedURLArguments::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccessKeyArguments::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccessKey::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccessKeyLookup::class => false, + \KatapultAPI\Core\Model\ObjectStorageProvisioningErrorSchema::class => false, \KatapultAPI\Core\Model\ResponseAPIAuthenticator400Response::class => false, \KatapultAPI\Core\Model\ResponseAPIAuthenticator429Response::class => false, \KatapultAPI\Core\Model\ResponseAPIAuthenticator503Response::class => false, @@ -5125,6 +5601,8 @@ public function getSupportedTypes(?string $format = null): array \KatapultAPI\Core\Model\ResponseNoAllocationResponse::class => false, \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceNotFoundResponse::class => false, \KatapultAPI\Core\Model\ResponseSpeedProfileAlreadyAssignedResponse::class => false, + \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponse::class => false, + \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponse::class => false, \KatapultAPI\Core\Model\ResponseTagNotFoundResponse::class => false, \KatapultAPI\Core\Model\ResponseVirtualMachineGroupNotFoundResponse::class => false, \KatapultAPI\Core\Model\ResponseOperatingSystemNotFoundResponse::class => false, @@ -5137,6 +5615,8 @@ public function getSupportedTypes(?string $format = null): array \KatapultAPI\Core\Model\ResponseNoUserAssociatedWithIdentityResponse::class => false, \KatapultAPI\Core\Model\ResponseMultipleObjectStorageBucketsFoundResponse::class => false, \KatapultAPI\Core\Model\ResponseNetworkErrorResponse::class => false, + \KatapultAPI\Core\Model\ResponseObjectStorageAccessKeyNotFoundResponse::class => false, + \KatapultAPI\Core\Model\ResponseObjectStorageProvisioningErrorResponse::class => false, \KatapultAPI\Core\Model\OrganizationsOrganizationApiTokensGetResponse200::class => false, \KatapultAPI\Core\Model\OrganizationsOrganizationApiTokensPostBody::class => false, \KatapultAPI\Core\Model\OrganizationsOrganizationApiTokensPostResponse200::class => false, @@ -5150,6 +5630,18 @@ public function getSupportedTypes(?string $format = null): array \KatapultAPI\Core\Model\ApiTokensApiTokenRegenerateSecretPostBody::class => false, \KatapultAPI\Core\Model\ApiTokensApiTokenRegenerateSecretPostResponse200::class => false, \KatapultAPI\Core\Model\ApiTokensApiTokenRegenerateSecretPostResponse200ApiToken::class => false, + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBody::class => false, + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201::class => false, + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageAccessKeysGetResponse200::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBody::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKey::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteBody::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteResponse200::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGetResponse200::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchBody::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200::class => false, + \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKey::class => false, \KatapultAPI\Core\Model\AddressListsAddressListEntriesGetResponse200::class => false, \KatapultAPI\Core\Model\AddressListsAddressListEntriesPostBody::class => false, \KatapultAPI\Core\Model\AddressListsAddressListEntriesPostResponse201::class => false, @@ -5350,6 +5842,12 @@ public function getSupportedTypes(?string $format = null): array \KatapultAPI\Core\Model\OrganizationsOrganizationAvailableNetworksGetResponse200::class => false, \KatapultAPI\Core\Model\NetworksNetworkGetResponse200::class => false, \KatapultAPI\Core\Model\NetworksNetworkGetResponse200Network::class => false, + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBody::class => false, + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200::class => false, + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200::class => false, + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostBody::class => false, + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201::class => false, + \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccount::class => false, \KatapultAPI\Core\Model\OperatingSystemsGetResponse200::class => false, \KatapultAPI\Core\Model\OperatingSystemsOperatingSystemGetResponse200::class => false, \KatapultAPI\Core\Model\OperatingSystemsOperatingSystemGetResponse200OperatingSystem::class => false, @@ -5458,8 +5956,14 @@ public function getSupportedTypes(?string $format = null): array \KatapultAPI\Core\Model\VirtualMachineGroupsVirtualMachineGroupPatchResponse200::class => false, \KatapultAPI\Core\Model\VirtualMachineGroupsVirtualMachineGroupPatchResponse200VirtualMachineGroup::class => false, \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesGetResponse200::class => false, + \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostBody::class => false, + \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200::class => false, + \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterface::class => false, \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200::class => false, \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterface::class => false, + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBody::class => false, + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200::class => false, + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterface::class => false, \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200::class => false, \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterface::class => false, \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAvailableIpsAddressVersionGetResponse200::class => false, @@ -5472,6 +5976,12 @@ public function getSupportedTypes(?string $format = null): array \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchBody::class => false, \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200::class => false, \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceUpdateSpeedProfilePatchResponse200Task::class => false, + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBody::class => false, + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200::class => false, + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterface::class => false, + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBody::class => false, + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200::class => false, + \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterface::class => false, \KatapultAPI\Core\Model\VirtualMachinePackagesGetResponse200::class => false, \KatapultAPI\Core\Model\VirtualMachinePackagesVirtualMachinePackageGetResponse200::class => false, \KatapultAPI\Core\Model\OrganizationsOrganizationVirtualMachinesGetResponse200::class => false, diff --git a/src/Core/Normalizer/ObjectStorageAccessKeyArgumentsNormalizer.php b/src/Core/Normalizer/ObjectStorageAccessKeyArgumentsNormalizer.php new file mode 100644 index 00000000..0fb36388 --- /dev/null +++ b/src/Core/Normalizer/ObjectStorageAccessKeyArgumentsNormalizer.php @@ -0,0 +1,191 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ObjectStorageAccessKeyArgumentsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccessKeyArguments::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccessKeyArguments::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccessKeyArguments(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('all_buckets_read', $data)) { + $object->setAllBucketsRead($data['all_buckets_read']); + unset($data['all_buckets_read']); + } + if (\array_key_exists('all_objects_read', $data)) { + $object->setAllObjectsRead($data['all_objects_read']); + unset($data['all_objects_read']); + } + if (\array_key_exists('all_objects_write', $data)) { + $object->setAllObjectsWrite($data['all_objects_write']); + unset($data['all_objects_write']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['name'] = $object->getName(); + if ($object->isInitialized('allBucketsRead') && null !== $object->getAllBucketsRead()) { + $data['all_buckets_read'] = $object->getAllBucketsRead(); + } + if ($object->isInitialized('allObjectsRead') && null !== $object->getAllObjectsRead()) { + $data['all_objects_read'] = $object->getAllObjectsRead(); + } + if ($object->isInitialized('allObjectsWrite') && null !== $object->getAllObjectsWrite()) { + $data['all_objects_write'] = $object->getAllObjectsWrite(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccessKeyArguments::class => false]; + } + } +} else { + class ObjectStorageAccessKeyArgumentsNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccessKeyArguments::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccessKeyArguments::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccessKeyArguments(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('all_buckets_read', $data)) { + $object->setAllBucketsRead($data['all_buckets_read']); + unset($data['all_buckets_read']); + } + if (\array_key_exists('all_objects_read', $data)) { + $object->setAllObjectsRead($data['all_objects_read']); + unset($data['all_objects_read']); + } + if (\array_key_exists('all_objects_write', $data)) { + $object->setAllObjectsWrite($data['all_objects_write']); + unset($data['all_objects_write']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['name'] = $object->getName(); + if ($object->isInitialized('allBucketsRead') && null !== $object->getAllBucketsRead()) { + $data['all_buckets_read'] = $object->getAllBucketsRead(); + } + if ($object->isInitialized('allObjectsRead') && null !== $object->getAllObjectsRead()) { + $data['all_objects_read'] = $object->getAllObjectsRead(); + } + if ($object->isInitialized('allObjectsWrite') && null !== $object->getAllObjectsWrite()) { + $data['all_objects_write'] = $object->getAllObjectsWrite(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccessKeyArguments::class => false]; + } + } +} diff --git a/src/Core/Normalizer/ObjectStorageAccessKeyLookupNormalizer.php b/src/Core/Normalizer/ObjectStorageAccessKeyLookupNormalizer.php new file mode 100644 index 00000000..a0ce4b51 --- /dev/null +++ b/src/Core/Normalizer/ObjectStorageAccessKeyLookupNormalizer.php @@ -0,0 +1,153 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ObjectStorageAccessKeyLookupNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccessKeyLookup::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccessKeyLookup::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccessKeyLookup(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccessKeyLookup::class => false]; + } + } +} else { + class ObjectStorageAccessKeyLookupNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccessKeyLookup::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccessKeyLookup::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccessKeyLookup(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccessKeyLookup::class => false]; + } + } +} diff --git a/src/Core/Normalizer/ObjectStorageAccessKeyNormalizer.php b/src/Core/Normalizer/ObjectStorageAccessKeyNormalizer.php new file mode 100644 index 00000000..0077383c --- /dev/null +++ b/src/Core/Normalizer/ObjectStorageAccessKeyNormalizer.php @@ -0,0 +1,365 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ObjectStorageAccessKeyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccessKey::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccessKey::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccessKey(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('region', $data)) { + $object->setRegion($data['region']); + unset($data['region']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('all_buckets_read', $data)) { + $object->setAllBucketsRead($data['all_buckets_read']); + unset($data['all_buckets_read']); + } + if (\array_key_exists('all_objects_read', $data)) { + $object->setAllObjectsRead($data['all_objects_read']); + unset($data['all_objects_read']); + } + if (\array_key_exists('all_objects_write', $data)) { + $object->setAllObjectsWrite($data['all_objects_write']); + unset($data['all_objects_write']); + } + if (\array_key_exists('read_buckets', $data)) { + $values = []; + foreach ($data['read_buckets'] as $value) { + $values[] = $value; + } + $object->setReadBuckets($values); + unset($data['read_buckets']); + } + if (\array_key_exists('write_buckets', $data)) { + $values_1 = []; + foreach ($data['write_buckets'] as $value_1) { + $values_1[] = $value_1; + } + $object->setWriteBuckets($values_1); + unset($data['write_buckets']); + } + if (\array_key_exists('server_url', $data) && $data['server_url'] !== null) { + $object->setServerUrl($data['server_url']); + unset($data['server_url']); + } elseif (\array_key_exists('server_url', $data) && $data['server_url'] === null) { + $object->setServerUrl(null); + } + if (\array_key_exists('s3_access_key_id', $data) && $data['s3_access_key_id'] !== null) { + $object->setS3AccessKeyId($data['s3_access_key_id']); + unset($data['s3_access_key_id']); + } elseif (\array_key_exists('s3_access_key_id', $data) && $data['s3_access_key_id'] === null) { + $object->setS3AccessKeyId(null); + } + if (\array_key_exists('s3_secret_access_key', $data) && $data['s3_secret_access_key'] !== null) { + $object->setS3SecretAccessKey($data['s3_secret_access_key']); + unset($data['s3_secret_access_key']); + } elseif (\array_key_exists('s3_secret_access_key', $data) && $data['s3_secret_access_key'] === null) { + $object->setS3SecretAccessKey(null); + } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('region') && null !== $object->getRegion()) { + $data['region'] = $object->getRegion(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('allBucketsRead') && null !== $object->getAllBucketsRead()) { + $data['all_buckets_read'] = $object->getAllBucketsRead(); + } + if ($object->isInitialized('allObjectsRead') && null !== $object->getAllObjectsRead()) { + $data['all_objects_read'] = $object->getAllObjectsRead(); + } + if ($object->isInitialized('allObjectsWrite') && null !== $object->getAllObjectsWrite()) { + $data['all_objects_write'] = $object->getAllObjectsWrite(); + } + if ($object->isInitialized('readBuckets') && null !== $object->getReadBuckets()) { + $values = []; + foreach ($object->getReadBuckets() as $value) { + $values[] = $value; + } + $data['read_buckets'] = $values; + } + if ($object->isInitialized('writeBuckets') && null !== $object->getWriteBuckets()) { + $values_1 = []; + foreach ($object->getWriteBuckets() as $value_1) { + $values_1[] = $value_1; + } + $data['write_buckets'] = $values_1; + } + if ($object->isInitialized('serverUrl') && null !== $object->getServerUrl()) { + $data['server_url'] = $object->getServerUrl(); + } + if ($object->isInitialized('s3AccessKeyId') && null !== $object->getS3AccessKeyId()) { + $data['s3_access_key_id'] = $object->getS3AccessKeyId(); + } + if ($object->isInitialized('s3SecretAccessKey') && null !== $object->getS3SecretAccessKey()) { + $data['s3_secret_access_key'] = $object->getS3SecretAccessKey(); + } + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccessKey::class => false]; + } + } +} else { + class ObjectStorageAccessKeyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccessKey::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccessKey::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccessKey(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('region', $data)) { + $object->setRegion($data['region']); + unset($data['region']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('all_buckets_read', $data)) { + $object->setAllBucketsRead($data['all_buckets_read']); + unset($data['all_buckets_read']); + } + if (\array_key_exists('all_objects_read', $data)) { + $object->setAllObjectsRead($data['all_objects_read']); + unset($data['all_objects_read']); + } + if (\array_key_exists('all_objects_write', $data)) { + $object->setAllObjectsWrite($data['all_objects_write']); + unset($data['all_objects_write']); + } + if (\array_key_exists('read_buckets', $data)) { + $values = []; + foreach ($data['read_buckets'] as $value) { + $values[] = $value; + } + $object->setReadBuckets($values); + unset($data['read_buckets']); + } + if (\array_key_exists('write_buckets', $data)) { + $values_1 = []; + foreach ($data['write_buckets'] as $value_1) { + $values_1[] = $value_1; + } + $object->setWriteBuckets($values_1); + unset($data['write_buckets']); + } + if (\array_key_exists('server_url', $data) && $data['server_url'] !== null) { + $object->setServerUrl($data['server_url']); + unset($data['server_url']); + } elseif (\array_key_exists('server_url', $data) && $data['server_url'] === null) { + $object->setServerUrl(null); + } + if (\array_key_exists('s3_access_key_id', $data) && $data['s3_access_key_id'] !== null) { + $object->setS3AccessKeyId($data['s3_access_key_id']); + unset($data['s3_access_key_id']); + } elseif (\array_key_exists('s3_access_key_id', $data) && $data['s3_access_key_id'] === null) { + $object->setS3AccessKeyId(null); + } + if (\array_key_exists('s3_secret_access_key', $data) && $data['s3_secret_access_key'] !== null) { + $object->setS3SecretAccessKey($data['s3_secret_access_key']); + unset($data['s3_secret_access_key']); + } elseif (\array_key_exists('s3_secret_access_key', $data) && $data['s3_secret_access_key'] === null) { + $object->setS3SecretAccessKey(null); + } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('region') && null !== $object->getRegion()) { + $data['region'] = $object->getRegion(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('allBucketsRead') && null !== $object->getAllBucketsRead()) { + $data['all_buckets_read'] = $object->getAllBucketsRead(); + } + if ($object->isInitialized('allObjectsRead') && null !== $object->getAllObjectsRead()) { + $data['all_objects_read'] = $object->getAllObjectsRead(); + } + if ($object->isInitialized('allObjectsWrite') && null !== $object->getAllObjectsWrite()) { + $data['all_objects_write'] = $object->getAllObjectsWrite(); + } + if ($object->isInitialized('readBuckets') && null !== $object->getReadBuckets()) { + $values = []; + foreach ($object->getReadBuckets() as $value) { + $values[] = $value; + } + $data['read_buckets'] = $values; + } + if ($object->isInitialized('writeBuckets') && null !== $object->getWriteBuckets()) { + $values_1 = []; + foreach ($object->getWriteBuckets() as $value_1) { + $values_1[] = $value_1; + } + $data['write_buckets'] = $values_1; + } + if ($object->isInitialized('serverUrl') && null !== $object->getServerUrl()) { + $data['server_url'] = $object->getServerUrl(); + } + if ($object->isInitialized('s3AccessKeyId') && null !== $object->getS3AccessKeyId()) { + $data['s3_access_key_id'] = $object->getS3AccessKeyId(); + } + if ($object->isInitialized('s3SecretAccessKey') && null !== $object->getS3SecretAccessKey()) { + $data['s3_secret_access_key'] = $object->getS3SecretAccessKey(); + } + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccessKey::class => false]; + } + } +} diff --git a/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyDeleteBodyNormalizer.php b/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyDeleteBodyNormalizer.php new file mode 100644 index 00000000..2bf2b1d1 --- /dev/null +++ b/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyDeleteBodyNormalizer.php @@ -0,0 +1,149 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ObjectStorageAccessKeysAccessKeyDeleteBodyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteBody::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteBody::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteBody(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('access_key', $data)) { + $object->setAccessKey($this->denormalizer->denormalize($data['access_key'], \KatapultAPI\Core\Model\ObjectStorageAccessKeyLookup::class, 'json', $context)); + unset($data['access_key']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['access_key'] = $this->normalizer->normalize($object->getAccessKey(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteBody::class => false]; + } + } +} else { + class ObjectStorageAccessKeysAccessKeyDeleteBodyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteBody::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteBody::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteBody(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('access_key', $data)) { + $object->setAccessKey($this->denormalizer->denormalize($data['access_key'], \KatapultAPI\Core\Model\ObjectStorageAccessKeyLookup::class, 'json', $context)); + unset($data['access_key']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['access_key'] = $this->normalizer->normalize($object->getAccessKey(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteBody::class => false]; + } + } +} diff --git a/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyDeleteResponse200Normalizer.php b/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyDeleteResponse200Normalizer.php new file mode 100644 index 00000000..58116c1b --- /dev/null +++ b/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyDeleteResponse200Normalizer.php @@ -0,0 +1,149 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ObjectStorageAccessKeysAccessKeyDeleteResponse200Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteResponse200::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteResponse200::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteResponse200(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('success', $data)) { + $object->setSuccess($data['success']); + unset($data['success']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['success'] = $object->getSuccess(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteResponse200::class => false]; + } + } +} else { + class ObjectStorageAccessKeysAccessKeyDeleteResponse200Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteResponse200::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteResponse200::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteResponse200(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('success', $data)) { + $object->setSuccess($data['success']); + unset($data['success']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['success'] = $object->getSuccess(); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyDeleteResponse200::class => false]; + } + } +} diff --git a/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBodyNormalizer.php b/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBodyNormalizer.php new file mode 100644 index 00000000..318a07cb --- /dev/null +++ b/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBodyNormalizer.php @@ -0,0 +1,149 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBodyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBody::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBody::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBody(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('access_key', $data)) { + $object->setAccessKey($this->denormalizer->denormalize($data['access_key'], \KatapultAPI\Core\Model\ObjectStorageAccessKeyLookup::class, 'json', $context)); + unset($data['access_key']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['access_key'] = $this->normalizer->normalize($object->getAccessKey(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBody::class => false]; + } + } +} else { + class ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBodyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBody::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBody::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBody(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('access_key', $data)) { + $object->setAccessKey($this->denormalizer->denormalize($data['access_key'], \KatapultAPI\Core\Model\ObjectStorageAccessKeyLookup::class, 'json', $context)); + unset($data['access_key']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['access_key'] = $this->normalizer->normalize($object->getAccessKey(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostBody::class => false]; + } + } +} diff --git a/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200Normalizer.php b/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200Normalizer.php new file mode 100644 index 00000000..88079996 --- /dev/null +++ b/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200Normalizer.php @@ -0,0 +1,149 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('object_storage_access_key', $data)) { + $object->setObjectStorageAccessKey($this->denormalizer->denormalize($data['object_storage_access_key'], \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKey::class, 'json', $context)); + unset($data['object_storage_access_key']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['object_storage_access_key'] = $this->normalizer->normalize($object->getObjectStorageAccessKey(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200::class => false]; + } + } +} else { + class ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('object_storage_access_key', $data)) { + $object->setObjectStorageAccessKey($this->denormalizer->denormalize($data['object_storage_access_key'], \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKey::class, 'json', $context)); + unset($data['object_storage_access_key']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['object_storage_access_key'] = $this->normalizer->normalize($object->getObjectStorageAccessKey(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200::class => false]; + } + } +} diff --git a/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKeyNormalizer.php b/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKeyNormalizer.php new file mode 100644 index 00000000..5c639bf5 --- /dev/null +++ b/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKeyNormalizer.php @@ -0,0 +1,365 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKeyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKey::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKey::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKey(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('region', $data)) { + $object->setRegion($data['region']); + unset($data['region']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('all_buckets_read', $data)) { + $object->setAllBucketsRead($data['all_buckets_read']); + unset($data['all_buckets_read']); + } + if (\array_key_exists('all_objects_read', $data)) { + $object->setAllObjectsRead($data['all_objects_read']); + unset($data['all_objects_read']); + } + if (\array_key_exists('all_objects_write', $data)) { + $object->setAllObjectsWrite($data['all_objects_write']); + unset($data['all_objects_write']); + } + if (\array_key_exists('read_buckets', $data)) { + $values = []; + foreach ($data['read_buckets'] as $value) { + $values[] = $value; + } + $object->setReadBuckets($values); + unset($data['read_buckets']); + } + if (\array_key_exists('write_buckets', $data)) { + $values_1 = []; + foreach ($data['write_buckets'] as $value_1) { + $values_1[] = $value_1; + } + $object->setWriteBuckets($values_1); + unset($data['write_buckets']); + } + if (\array_key_exists('server_url', $data) && $data['server_url'] !== null) { + $object->setServerUrl($data['server_url']); + unset($data['server_url']); + } elseif (\array_key_exists('server_url', $data) && $data['server_url'] === null) { + $object->setServerUrl(null); + } + if (\array_key_exists('s3_access_key_id', $data) && $data['s3_access_key_id'] !== null) { + $object->setS3AccessKeyId($data['s3_access_key_id']); + unset($data['s3_access_key_id']); + } elseif (\array_key_exists('s3_access_key_id', $data) && $data['s3_access_key_id'] === null) { + $object->setS3AccessKeyId(null); + } + if (\array_key_exists('s3_secret_access_key', $data) && $data['s3_secret_access_key'] !== null) { + $object->setS3SecretAccessKey($data['s3_secret_access_key']); + unset($data['s3_secret_access_key']); + } elseif (\array_key_exists('s3_secret_access_key', $data) && $data['s3_secret_access_key'] === null) { + $object->setS3SecretAccessKey(null); + } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('region') && null !== $object->getRegion()) { + $data['region'] = $object->getRegion(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('allBucketsRead') && null !== $object->getAllBucketsRead()) { + $data['all_buckets_read'] = $object->getAllBucketsRead(); + } + if ($object->isInitialized('allObjectsRead') && null !== $object->getAllObjectsRead()) { + $data['all_objects_read'] = $object->getAllObjectsRead(); + } + if ($object->isInitialized('allObjectsWrite') && null !== $object->getAllObjectsWrite()) { + $data['all_objects_write'] = $object->getAllObjectsWrite(); + } + if ($object->isInitialized('readBuckets') && null !== $object->getReadBuckets()) { + $values = []; + foreach ($object->getReadBuckets() as $value) { + $values[] = $value; + } + $data['read_buckets'] = $values; + } + if ($object->isInitialized('writeBuckets') && null !== $object->getWriteBuckets()) { + $values_1 = []; + foreach ($object->getWriteBuckets() as $value_1) { + $values_1[] = $value_1; + } + $data['write_buckets'] = $values_1; + } + if ($object->isInitialized('serverUrl') && null !== $object->getServerUrl()) { + $data['server_url'] = $object->getServerUrl(); + } + if ($object->isInitialized('s3AccessKeyId') && null !== $object->getS3AccessKeyId()) { + $data['s3_access_key_id'] = $object->getS3AccessKeyId(); + } + if ($object->isInitialized('s3SecretAccessKey') && null !== $object->getS3SecretAccessKey()) { + $data['s3_secret_access_key'] = $object->getS3SecretAccessKey(); + } + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKey::class => false]; + } + } +} else { + class ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKeyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKey::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKey::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKey(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('region', $data)) { + $object->setRegion($data['region']); + unset($data['region']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('all_buckets_read', $data)) { + $object->setAllBucketsRead($data['all_buckets_read']); + unset($data['all_buckets_read']); + } + if (\array_key_exists('all_objects_read', $data)) { + $object->setAllObjectsRead($data['all_objects_read']); + unset($data['all_objects_read']); + } + if (\array_key_exists('all_objects_write', $data)) { + $object->setAllObjectsWrite($data['all_objects_write']); + unset($data['all_objects_write']); + } + if (\array_key_exists('read_buckets', $data)) { + $values = []; + foreach ($data['read_buckets'] as $value) { + $values[] = $value; + } + $object->setReadBuckets($values); + unset($data['read_buckets']); + } + if (\array_key_exists('write_buckets', $data)) { + $values_1 = []; + foreach ($data['write_buckets'] as $value_1) { + $values_1[] = $value_1; + } + $object->setWriteBuckets($values_1); + unset($data['write_buckets']); + } + if (\array_key_exists('server_url', $data) && $data['server_url'] !== null) { + $object->setServerUrl($data['server_url']); + unset($data['server_url']); + } elseif (\array_key_exists('server_url', $data) && $data['server_url'] === null) { + $object->setServerUrl(null); + } + if (\array_key_exists('s3_access_key_id', $data) && $data['s3_access_key_id'] !== null) { + $object->setS3AccessKeyId($data['s3_access_key_id']); + unset($data['s3_access_key_id']); + } elseif (\array_key_exists('s3_access_key_id', $data) && $data['s3_access_key_id'] === null) { + $object->setS3AccessKeyId(null); + } + if (\array_key_exists('s3_secret_access_key', $data) && $data['s3_secret_access_key'] !== null) { + $object->setS3SecretAccessKey($data['s3_secret_access_key']); + unset($data['s3_secret_access_key']); + } elseif (\array_key_exists('s3_secret_access_key', $data) && $data['s3_secret_access_key'] === null) { + $object->setS3SecretAccessKey(null); + } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('region') && null !== $object->getRegion()) { + $data['region'] = $object->getRegion(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('allBucketsRead') && null !== $object->getAllBucketsRead()) { + $data['all_buckets_read'] = $object->getAllBucketsRead(); + } + if ($object->isInitialized('allObjectsRead') && null !== $object->getAllObjectsRead()) { + $data['all_objects_read'] = $object->getAllObjectsRead(); + } + if ($object->isInitialized('allObjectsWrite') && null !== $object->getAllObjectsWrite()) { + $data['all_objects_write'] = $object->getAllObjectsWrite(); + } + if ($object->isInitialized('readBuckets') && null !== $object->getReadBuckets()) { + $values = []; + foreach ($object->getReadBuckets() as $value) { + $values[] = $value; + } + $data['read_buckets'] = $values; + } + if ($object->isInitialized('writeBuckets') && null !== $object->getWriteBuckets()) { + $values_1 = []; + foreach ($object->getWriteBuckets() as $value_1) { + $values_1[] = $value_1; + } + $data['write_buckets'] = $values_1; + } + if ($object->isInitialized('serverUrl') && null !== $object->getServerUrl()) { + $data['server_url'] = $object->getServerUrl(); + } + if ($object->isInitialized('s3AccessKeyId') && null !== $object->getS3AccessKeyId()) { + $data['s3_access_key_id'] = $object->getS3AccessKeyId(); + } + if ($object->isInitialized('s3SecretAccessKey') && null !== $object->getS3SecretAccessKey()) { + $data['s3_secret_access_key'] = $object->getS3SecretAccessKey(); + } + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGenerateCredentialsPostResponse200ObjectStorageAccessKey::class => false]; + } + } +} diff --git a/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyGetResponse200Normalizer.php b/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyGetResponse200Normalizer.php new file mode 100644 index 00000000..beded698 --- /dev/null +++ b/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyGetResponse200Normalizer.php @@ -0,0 +1,149 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ObjectStorageAccessKeysAccessKeyGetResponse200Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGetResponse200::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGetResponse200::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGetResponse200(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('object_storage_access_key', $data)) { + $object->setObjectStorageAccessKey($this->denormalizer->denormalize($data['object_storage_access_key'], \KatapultAPI\Core\Model\ObjectStorageAccessKey::class, 'json', $context)); + unset($data['object_storage_access_key']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['object_storage_access_key'] = $this->normalizer->normalize($object->getObjectStorageAccessKey(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGetResponse200::class => false]; + } + } +} else { + class ObjectStorageAccessKeysAccessKeyGetResponse200Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGetResponse200::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGetResponse200::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGetResponse200(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('object_storage_access_key', $data)) { + $object->setObjectStorageAccessKey($this->denormalizer->denormalize($data['object_storage_access_key'], \KatapultAPI\Core\Model\ObjectStorageAccessKey::class, 'json', $context)); + unset($data['object_storage_access_key']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['object_storage_access_key'] = $this->normalizer->normalize($object->getObjectStorageAccessKey(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyGetResponse200::class => false]; + } + } +} diff --git a/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyPatchBodyNormalizer.php b/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyPatchBodyNormalizer.php new file mode 100644 index 00000000..f001505a --- /dev/null +++ b/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyPatchBodyNormalizer.php @@ -0,0 +1,159 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ObjectStorageAccessKeysAccessKeyPatchBodyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchBody::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchBody::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchBody(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('access_key', $data)) { + $object->setAccessKey($this->denormalizer->denormalize($data['access_key'], \KatapultAPI\Core\Model\ObjectStorageAccessKeyLookup::class, 'json', $context)); + unset($data['access_key']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], \KatapultAPI\Core\Model\ObjectStorageAccessKeyArguments::class, 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['access_key'] = $this->normalizer->normalize($object->getAccessKey(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchBody::class => false]; + } + } +} else { + class ObjectStorageAccessKeysAccessKeyPatchBodyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchBody::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchBody::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchBody(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('access_key', $data)) { + $object->setAccessKey($this->denormalizer->denormalize($data['access_key'], \KatapultAPI\Core\Model\ObjectStorageAccessKeyLookup::class, 'json', $context)); + unset($data['access_key']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], \KatapultAPI\Core\Model\ObjectStorageAccessKeyArguments::class, 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['access_key'] = $this->normalizer->normalize($object->getAccessKey(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchBody::class => false]; + } + } +} diff --git a/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyPatchResponse200Normalizer.php b/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyPatchResponse200Normalizer.php new file mode 100644 index 00000000..f7b8ee8a --- /dev/null +++ b/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyPatchResponse200Normalizer.php @@ -0,0 +1,149 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ObjectStorageAccessKeysAccessKeyPatchResponse200Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('object_storage_access_key', $data)) { + $object->setObjectStorageAccessKey($this->denormalizer->denormalize($data['object_storage_access_key'], \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKey::class, 'json', $context)); + unset($data['object_storage_access_key']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['object_storage_access_key'] = $this->normalizer->normalize($object->getObjectStorageAccessKey(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200::class => false]; + } + } +} else { + class ObjectStorageAccessKeysAccessKeyPatchResponse200Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('object_storage_access_key', $data)) { + $object->setObjectStorageAccessKey($this->denormalizer->denormalize($data['object_storage_access_key'], \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKey::class, 'json', $context)); + unset($data['object_storage_access_key']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['object_storage_access_key'] = $this->normalizer->normalize($object->getObjectStorageAccessKey(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200::class => false]; + } + } +} diff --git a/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKeyNormalizer.php b/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKeyNormalizer.php new file mode 100644 index 00000000..7cb92440 --- /dev/null +++ b/src/Core/Normalizer/ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKeyNormalizer.php @@ -0,0 +1,365 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKeyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKey::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKey::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKey(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('region', $data)) { + $object->setRegion($data['region']); + unset($data['region']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('all_buckets_read', $data)) { + $object->setAllBucketsRead($data['all_buckets_read']); + unset($data['all_buckets_read']); + } + if (\array_key_exists('all_objects_read', $data)) { + $object->setAllObjectsRead($data['all_objects_read']); + unset($data['all_objects_read']); + } + if (\array_key_exists('all_objects_write', $data)) { + $object->setAllObjectsWrite($data['all_objects_write']); + unset($data['all_objects_write']); + } + if (\array_key_exists('read_buckets', $data)) { + $values = []; + foreach ($data['read_buckets'] as $value) { + $values[] = $value; + } + $object->setReadBuckets($values); + unset($data['read_buckets']); + } + if (\array_key_exists('write_buckets', $data)) { + $values_1 = []; + foreach ($data['write_buckets'] as $value_1) { + $values_1[] = $value_1; + } + $object->setWriteBuckets($values_1); + unset($data['write_buckets']); + } + if (\array_key_exists('server_url', $data) && $data['server_url'] !== null) { + $object->setServerUrl($data['server_url']); + unset($data['server_url']); + } elseif (\array_key_exists('server_url', $data) && $data['server_url'] === null) { + $object->setServerUrl(null); + } + if (\array_key_exists('s3_access_key_id', $data) && $data['s3_access_key_id'] !== null) { + $object->setS3AccessKeyId($data['s3_access_key_id']); + unset($data['s3_access_key_id']); + } elseif (\array_key_exists('s3_access_key_id', $data) && $data['s3_access_key_id'] === null) { + $object->setS3AccessKeyId(null); + } + if (\array_key_exists('s3_secret_access_key', $data) && $data['s3_secret_access_key'] !== null) { + $object->setS3SecretAccessKey($data['s3_secret_access_key']); + unset($data['s3_secret_access_key']); + } elseif (\array_key_exists('s3_secret_access_key', $data) && $data['s3_secret_access_key'] === null) { + $object->setS3SecretAccessKey(null); + } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('region') && null !== $object->getRegion()) { + $data['region'] = $object->getRegion(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('allBucketsRead') && null !== $object->getAllBucketsRead()) { + $data['all_buckets_read'] = $object->getAllBucketsRead(); + } + if ($object->isInitialized('allObjectsRead') && null !== $object->getAllObjectsRead()) { + $data['all_objects_read'] = $object->getAllObjectsRead(); + } + if ($object->isInitialized('allObjectsWrite') && null !== $object->getAllObjectsWrite()) { + $data['all_objects_write'] = $object->getAllObjectsWrite(); + } + if ($object->isInitialized('readBuckets') && null !== $object->getReadBuckets()) { + $values = []; + foreach ($object->getReadBuckets() as $value) { + $values[] = $value; + } + $data['read_buckets'] = $values; + } + if ($object->isInitialized('writeBuckets') && null !== $object->getWriteBuckets()) { + $values_1 = []; + foreach ($object->getWriteBuckets() as $value_1) { + $values_1[] = $value_1; + } + $data['write_buckets'] = $values_1; + } + if ($object->isInitialized('serverUrl') && null !== $object->getServerUrl()) { + $data['server_url'] = $object->getServerUrl(); + } + if ($object->isInitialized('s3AccessKeyId') && null !== $object->getS3AccessKeyId()) { + $data['s3_access_key_id'] = $object->getS3AccessKeyId(); + } + if ($object->isInitialized('s3SecretAccessKey') && null !== $object->getS3SecretAccessKey()) { + $data['s3_secret_access_key'] = $object->getS3SecretAccessKey(); + } + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKey::class => false]; + } + } +} else { + class ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKeyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKey::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKey::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKey(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('region', $data)) { + $object->setRegion($data['region']); + unset($data['region']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('all_buckets_read', $data)) { + $object->setAllBucketsRead($data['all_buckets_read']); + unset($data['all_buckets_read']); + } + if (\array_key_exists('all_objects_read', $data)) { + $object->setAllObjectsRead($data['all_objects_read']); + unset($data['all_objects_read']); + } + if (\array_key_exists('all_objects_write', $data)) { + $object->setAllObjectsWrite($data['all_objects_write']); + unset($data['all_objects_write']); + } + if (\array_key_exists('read_buckets', $data)) { + $values = []; + foreach ($data['read_buckets'] as $value) { + $values[] = $value; + } + $object->setReadBuckets($values); + unset($data['read_buckets']); + } + if (\array_key_exists('write_buckets', $data)) { + $values_1 = []; + foreach ($data['write_buckets'] as $value_1) { + $values_1[] = $value_1; + } + $object->setWriteBuckets($values_1); + unset($data['write_buckets']); + } + if (\array_key_exists('server_url', $data) && $data['server_url'] !== null) { + $object->setServerUrl($data['server_url']); + unset($data['server_url']); + } elseif (\array_key_exists('server_url', $data) && $data['server_url'] === null) { + $object->setServerUrl(null); + } + if (\array_key_exists('s3_access_key_id', $data) && $data['s3_access_key_id'] !== null) { + $object->setS3AccessKeyId($data['s3_access_key_id']); + unset($data['s3_access_key_id']); + } elseif (\array_key_exists('s3_access_key_id', $data) && $data['s3_access_key_id'] === null) { + $object->setS3AccessKeyId(null); + } + if (\array_key_exists('s3_secret_access_key', $data) && $data['s3_secret_access_key'] !== null) { + $object->setS3SecretAccessKey($data['s3_secret_access_key']); + unset($data['s3_secret_access_key']); + } elseif (\array_key_exists('s3_secret_access_key', $data) && $data['s3_secret_access_key'] === null) { + $object->setS3SecretAccessKey(null); + } + foreach ($data as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_2; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('region') && null !== $object->getRegion()) { + $data['region'] = $object->getRegion(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('allBucketsRead') && null !== $object->getAllBucketsRead()) { + $data['all_buckets_read'] = $object->getAllBucketsRead(); + } + if ($object->isInitialized('allObjectsRead') && null !== $object->getAllObjectsRead()) { + $data['all_objects_read'] = $object->getAllObjectsRead(); + } + if ($object->isInitialized('allObjectsWrite') && null !== $object->getAllObjectsWrite()) { + $data['all_objects_write'] = $object->getAllObjectsWrite(); + } + if ($object->isInitialized('readBuckets') && null !== $object->getReadBuckets()) { + $values = []; + foreach ($object->getReadBuckets() as $value) { + $values[] = $value; + } + $data['read_buckets'] = $values; + } + if ($object->isInitialized('writeBuckets') && null !== $object->getWriteBuckets()) { + $values_1 = []; + foreach ($object->getWriteBuckets() as $value_1) { + $values_1[] = $value_1; + } + $data['write_buckets'] = $values_1; + } + if ($object->isInitialized('serverUrl') && null !== $object->getServerUrl()) { + $data['server_url'] = $object->getServerUrl(); + } + if ($object->isInitialized('s3AccessKeyId') && null !== $object->getS3AccessKeyId()) { + $data['s3_access_key_id'] = $object->getS3AccessKeyId(); + } + if ($object->isInitialized('s3SecretAccessKey') && null !== $object->getS3SecretAccessKey()) { + $data['s3_secret_access_key'] = $object->getS3SecretAccessKey(); + } + foreach ($object as $key => $value_2) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_2; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccessKeysAccessKeyPatchResponse200ObjectStorageAccessKey::class => false]; + } + } +} diff --git a/src/Core/Normalizer/ObjectStorageAccountNormalizer.php b/src/Core/Normalizer/ObjectStorageAccountNormalizer.php new file mode 100644 index 00000000..a0eeb4ea --- /dev/null +++ b/src/Core/Normalizer/ObjectStorageAccountNormalizer.php @@ -0,0 +1,223 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ObjectStorageAccountNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccount::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccount::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccount(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('region', $data)) { + $object->setRegion($data['region']); + unset($data['region']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('provisioning_state', $data)) { + $object->setProvisioningState($data['provisioning_state']); + unset($data['provisioning_state']); + } + if (\array_key_exists('size', $data)) { + $object->setSize($data['size']); + unset($data['size']); + } + if (\array_key_exists('bucket_count', $data)) { + $object->setBucketCount($data['bucket_count']); + unset($data['bucket_count']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], \KatapultAPI\Core\Model\DataCenter::class, 'json', $context)); + unset($data['data_center']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('region') && null !== $object->getRegion()) { + $data['region'] = $object->getRegion(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('provisioningState') && null !== $object->getProvisioningState()) { + $data['provisioning_state'] = $object->getProvisioningState(); + } + if ($object->isInitialized('size') && null !== $object->getSize()) { + $data['size'] = $object->getSize(); + } + if ($object->isInitialized('bucketCount') && null !== $object->getBucketCount()) { + $data['bucket_count'] = $object->getBucketCount(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccount::class => false]; + } + } +} else { + class ObjectStorageAccountNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageAccount::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageAccount::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageAccount(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('region', $data)) { + $object->setRegion($data['region']); + unset($data['region']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('provisioning_state', $data)) { + $object->setProvisioningState($data['provisioning_state']); + unset($data['provisioning_state']); + } + if (\array_key_exists('size', $data)) { + $object->setSize($data['size']); + unset($data['size']); + } + if (\array_key_exists('bucket_count', $data)) { + $object->setBucketCount($data['bucket_count']); + unset($data['bucket_count']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], \KatapultAPI\Core\Model\DataCenter::class, 'json', $context)); + unset($data['data_center']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('region') && null !== $object->getRegion()) { + $data['region'] = $object->getRegion(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('provisioningState') && null !== $object->getProvisioningState()) { + $data['provisioning_state'] = $object->getProvisioningState(); + } + if ($object->isInitialized('size') && null !== $object->getSize()) { + $data['size'] = $object->getSize(); + } + if ($object->isInitialized('bucketCount') && null !== $object->getBucketCount()) { + $data['bucket_count'] = $object->getBucketCount(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageAccount::class => false]; + } + } +} diff --git a/src/Core/Normalizer/ObjectStorageProvisioningErrorSchemaNormalizer.php b/src/Core/Normalizer/ObjectStorageProvisioningErrorSchemaNormalizer.php new file mode 100644 index 00000000..e52371a7 --- /dev/null +++ b/src/Core/Normalizer/ObjectStorageProvisioningErrorSchemaNormalizer.php @@ -0,0 +1,197 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ObjectStorageProvisioningErrorSchemaNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageProvisioningErrorSchema::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageProvisioningErrorSchema::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageProvisioningErrorSchema(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('code', $data)) { + $object->setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageProvisioningErrorSchema::class => false]; + } + } +} else { + class ObjectStorageProvisioningErrorSchemaNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ObjectStorageProvisioningErrorSchema::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ObjectStorageProvisioningErrorSchema::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ObjectStorageProvisioningErrorSchema(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('code', $data)) { + $object->setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ObjectStorageProvisioningErrorSchema::class => false]; + } + } +} diff --git a/src/Core/Normalizer/OrganizationsOrganizationObjectStorageAccessKeysGetResponse200Normalizer.php b/src/Core/Normalizer/OrganizationsOrganizationObjectStorageAccessKeysGetResponse200Normalizer.php new file mode 100644 index 00000000..9f2bfeb7 --- /dev/null +++ b/src/Core/Normalizer/OrganizationsOrganizationObjectStorageAccessKeysGetResponse200Normalizer.php @@ -0,0 +1,175 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class OrganizationsOrganizationObjectStorageAccessKeysGetResponse200Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageAccessKeysGetResponse200::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageAccessKeysGetResponse200::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageAccessKeysGetResponse200(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('pagination', $data)) { + $object->setPagination($this->denormalizer->denormalize($data['pagination'], \KatapultAPI\Core\Model\PaginationObject::class, 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('object_storage_access_keys', $data)) { + $values = []; + foreach ($data['object_storage_access_keys'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \KatapultAPI\Core\Model\ObjectStorageAccessKey::class, 'json', $context); + } + $object->setObjectStorageAccessKeys($values); + unset($data['object_storage_access_keys']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getObjectStorageAccessKeys() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['object_storage_access_keys'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageAccessKeysGetResponse200::class => false]; + } + } +} else { + class OrganizationsOrganizationObjectStorageAccessKeysGetResponse200Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageAccessKeysGetResponse200::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageAccessKeysGetResponse200::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageAccessKeysGetResponse200(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('pagination', $data)) { + $object->setPagination($this->denormalizer->denormalize($data['pagination'], \KatapultAPI\Core\Model\PaginationObject::class, 'json', $context)); + unset($data['pagination']); + } + if (\array_key_exists('object_storage_access_keys', $data)) { + $values = []; + foreach ($data['object_storage_access_keys'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \KatapultAPI\Core\Model\ObjectStorageAccessKey::class, 'json', $context); + } + $object->setObjectStorageAccessKeys($values); + unset($data['object_storage_access_keys']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['pagination'] = $this->normalizer->normalize($object->getPagination(), 'json', $context); + $values = []; + foreach ($object->getObjectStorageAccessKeys() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['object_storage_access_keys'] = $values; + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageAccessKeysGetResponse200::class => false]; + } + } +} diff --git a/src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBodyNormalizer.php b/src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBodyNormalizer.php new file mode 100644 index 00000000..9a6d3894 --- /dev/null +++ b/src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBodyNormalizer.php @@ -0,0 +1,169 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBodyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBody::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBody::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBody(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('organization', $data)) { + $object->setOrganization($this->denormalizer->denormalize($data['organization'], \KatapultAPI\Core\Model\OrganizationLookup::class, 'json', $context)); + unset($data['organization']); + } + if (\array_key_exists('object_storage_cluster', $data)) { + $object->setObjectStorageCluster($this->denormalizer->denormalize($data['object_storage_cluster'], \KatapultAPI\Core\Model\ObjectStorageClusterLookup::class, 'json', $context)); + unset($data['object_storage_cluster']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], \KatapultAPI\Core\Model\ObjectStorageAccessKeyArguments::class, 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + $data['object_storage_cluster'] = $this->normalizer->normalize($object->getObjectStorageCluster(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBody::class => false]; + } + } +} else { + class OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBodyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBody::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBody::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBody(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('organization', $data)) { + $object->setOrganization($this->denormalizer->denormalize($data['organization'], \KatapultAPI\Core\Model\OrganizationLookup::class, 'json', $context)); + unset($data['organization']); + } + if (\array_key_exists('object_storage_cluster', $data)) { + $object->setObjectStorageCluster($this->denormalizer->denormalize($data['object_storage_cluster'], \KatapultAPI\Core\Model\ObjectStorageClusterLookup::class, 'json', $context)); + unset($data['object_storage_cluster']); + } + if (\array_key_exists('properties', $data)) { + $object->setProperties($this->denormalizer->denormalize($data['properties'], \KatapultAPI\Core\Model\ObjectStorageAccessKeyArguments::class, 'json', $context)); + unset($data['properties']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + $data['object_storage_cluster'] = $this->normalizer->normalize($object->getObjectStorageCluster(), 'json', $context); + $data['properties'] = $this->normalizer->normalize($object->getProperties(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostBody::class => false]; + } + } +} diff --git a/src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201Normalizer.php b/src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201Normalizer.php new file mode 100644 index 00000000..4ebf38af --- /dev/null +++ b/src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201Normalizer.php @@ -0,0 +1,149 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('object_storage_access_key', $data)) { + $object->setObjectStorageAccessKey($this->denormalizer->denormalize($data['object_storage_access_key'], \KatapultAPI\Core\Model\ObjectStorageAccessKey::class, 'json', $context)); + unset($data['object_storage_access_key']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['object_storage_access_key'] = $this->normalizer->normalize($object->getObjectStorageAccessKey(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201::class => false]; + } + } +} else { + class OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('object_storage_access_key', $data)) { + $object->setObjectStorageAccessKey($this->denormalizer->denormalize($data['object_storage_access_key'], \KatapultAPI\Core\Model\ObjectStorageAccessKey::class, 'json', $context)); + unset($data['object_storage_access_key']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['object_storage_access_key'] = $this->normalizer->normalize($object->getObjectStorageAccessKey(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterAccessKeysPostResponse201::class => false]; + } + } +} diff --git a/src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBodyNormalizer.php b/src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBodyNormalizer.php new file mode 100644 index 00000000..67e2220c --- /dev/null +++ b/src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBodyNormalizer.php @@ -0,0 +1,159 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBodyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBody::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBody::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBody(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('organization', $data)) { + $object->setOrganization($this->denormalizer->denormalize($data['organization'], \KatapultAPI\Core\Model\OrganizationLookup::class, 'json', $context)); + unset($data['organization']); + } + if (\array_key_exists('object_storage_cluster', $data)) { + $object->setObjectStorageCluster($this->denormalizer->denormalize($data['object_storage_cluster'], \KatapultAPI\Core\Model\ObjectStorageClusterLookup::class, 'json', $context)); + unset($data['object_storage_cluster']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + $data['object_storage_cluster'] = $this->normalizer->normalize($object->getObjectStorageCluster(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBody::class => false]; + } + } +} else { + class OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBodyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBody::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBody::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBody(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('organization', $data)) { + $object->setOrganization($this->denormalizer->denormalize($data['organization'], \KatapultAPI\Core\Model\OrganizationLookup::class, 'json', $context)); + unset($data['organization']); + } + if (\array_key_exists('object_storage_cluster', $data)) { + $object->setObjectStorageCluster($this->denormalizer->denormalize($data['object_storage_cluster'], \KatapultAPI\Core\Model\ObjectStorageClusterLookup::class, 'json', $context)); + unset($data['object_storage_cluster']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + $data['object_storage_cluster'] = $this->normalizer->normalize($object->getObjectStorageCluster(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteBody::class => false]; + } + } +} diff --git a/src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200Normalizer.php b/src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200Normalizer.php new file mode 100644 index 00000000..57bb4f29 --- /dev/null +++ b/src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200Normalizer.php @@ -0,0 +1,159 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('trash_object', $data)) { + $object->setTrashObject($this->denormalizer->denormalize($data['trash_object'], \KatapultAPI\Core\Model\DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObject::class, 'json', $context)); + unset($data['trash_object']); + } + if (\array_key_exists('object_storage_account', $data)) { + $object->setObjectStorageAccount($this->denormalizer->denormalize($data['object_storage_account'], \KatapultAPI\Core\Model\ObjectStorageAccount::class, 'json', $context)); + unset($data['object_storage_account']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['trash_object'] = $this->normalizer->normalize($object->getTrashObject(), 'json', $context); + $data['object_storage_account'] = $this->normalizer->normalize($object->getObjectStorageAccount(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200::class => false]; + } + } +} else { + class OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('trash_object', $data)) { + $object->setTrashObject($this->denormalizer->denormalize($data['trash_object'], \KatapultAPI\Core\Model\DeleteOrganizationObjectStorageObjectStorageCluster200ResponseTrashObject::class, 'json', $context)); + unset($data['trash_object']); + } + if (\array_key_exists('object_storage_account', $data)) { + $object->setObjectStorageAccount($this->denormalizer->denormalize($data['object_storage_account'], \KatapultAPI\Core\Model\ObjectStorageAccount::class, 'json', $context)); + unset($data['object_storage_account']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['trash_object'] = $this->normalizer->normalize($object->getTrashObject(), 'json', $context); + $data['object_storage_account'] = $this->normalizer->normalize($object->getObjectStorageAccount(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterDeleteResponse200::class => false]; + } + } +} diff --git a/src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200Normalizer.php b/src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200Normalizer.php new file mode 100644 index 00000000..166b111d --- /dev/null +++ b/src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200Normalizer.php @@ -0,0 +1,149 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('object_storage_account', $data)) { + $object->setObjectStorageAccount($this->denormalizer->denormalize($data['object_storage_account'], \KatapultAPI\Core\Model\ObjectStorageAccount::class, 'json', $context)); + unset($data['object_storage_account']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['object_storage_account'] = $this->normalizer->normalize($object->getObjectStorageAccount(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200::class => false]; + } + } +} else { + class OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('object_storage_account', $data)) { + $object->setObjectStorageAccount($this->denormalizer->denormalize($data['object_storage_account'], \KatapultAPI\Core\Model\ObjectStorageAccount::class, 'json', $context)); + unset($data['object_storage_account']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['object_storage_account'] = $this->normalizer->normalize($object->getObjectStorageAccount(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterGetResponse200::class => false]; + } + } +} diff --git a/src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterPostBodyNormalizer.php b/src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterPostBodyNormalizer.php new file mode 100644 index 00000000..c0836006 --- /dev/null +++ b/src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterPostBodyNormalizer.php @@ -0,0 +1,159 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class OrganizationsOrganizationObjectStorageObjectStorageClusterPostBodyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostBody::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostBody::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostBody(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('organization', $data)) { + $object->setOrganization($this->denormalizer->denormalize($data['organization'], \KatapultAPI\Core\Model\OrganizationLookup::class, 'json', $context)); + unset($data['organization']); + } + if (\array_key_exists('object_storage_cluster', $data)) { + $object->setObjectStorageCluster($this->denormalizer->denormalize($data['object_storage_cluster'], \KatapultAPI\Core\Model\ObjectStorageClusterLookup::class, 'json', $context)); + unset($data['object_storage_cluster']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + $data['object_storage_cluster'] = $this->normalizer->normalize($object->getObjectStorageCluster(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostBody::class => false]; + } + } +} else { + class OrganizationsOrganizationObjectStorageObjectStorageClusterPostBodyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostBody::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostBody::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostBody(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('organization', $data)) { + $object->setOrganization($this->denormalizer->denormalize($data['organization'], \KatapultAPI\Core\Model\OrganizationLookup::class, 'json', $context)); + unset($data['organization']); + } + if (\array_key_exists('object_storage_cluster', $data)) { + $object->setObjectStorageCluster($this->denormalizer->denormalize($data['object_storage_cluster'], \KatapultAPI\Core\Model\ObjectStorageClusterLookup::class, 'json', $context)); + unset($data['object_storage_cluster']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['organization'] = $this->normalizer->normalize($object->getOrganization(), 'json', $context); + $data['object_storage_cluster'] = $this->normalizer->normalize($object->getObjectStorageCluster(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostBody::class => false]; + } + } +} diff --git a/src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201Normalizer.php b/src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201Normalizer.php new file mode 100644 index 00000000..960dd1d0 --- /dev/null +++ b/src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201Normalizer.php @@ -0,0 +1,149 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('object_storage_account', $data)) { + $object->setObjectStorageAccount($this->denormalizer->denormalize($data['object_storage_account'], \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccount::class, 'json', $context)); + unset($data['object_storage_account']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['object_storage_account'] = $this->normalizer->normalize($object->getObjectStorageAccount(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201::class => false]; + } + } +} else { + class OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('object_storage_account', $data)) { + $object->setObjectStorageAccount($this->denormalizer->denormalize($data['object_storage_account'], \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccount::class, 'json', $context)); + unset($data['object_storage_account']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['object_storage_account'] = $this->normalizer->normalize($object->getObjectStorageAccount(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201::class => false]; + } + } +} diff --git a/src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccountNormalizer.php b/src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccountNormalizer.php new file mode 100644 index 00000000..4c3ede5a --- /dev/null +++ b/src/Core/Normalizer/OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccountNormalizer.php @@ -0,0 +1,223 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccountNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccount::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccount::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccount(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('region', $data)) { + $object->setRegion($data['region']); + unset($data['region']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('provisioning_state', $data)) { + $object->setProvisioningState($data['provisioning_state']); + unset($data['provisioning_state']); + } + if (\array_key_exists('size', $data)) { + $object->setSize($data['size']); + unset($data['size']); + } + if (\array_key_exists('bucket_count', $data)) { + $object->setBucketCount($data['bucket_count']); + unset($data['bucket_count']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], \KatapultAPI\Core\Model\DataCenter::class, 'json', $context)); + unset($data['data_center']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('region') && null !== $object->getRegion()) { + $data['region'] = $object->getRegion(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('provisioningState') && null !== $object->getProvisioningState()) { + $data['provisioning_state'] = $object->getProvisioningState(); + } + if ($object->isInitialized('size') && null !== $object->getSize()) { + $data['size'] = $object->getSize(); + } + if ($object->isInitialized('bucketCount') && null !== $object->getBucketCount()) { + $data['bucket_count'] = $object->getBucketCount(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccount::class => false]; + } + } +} else { + class OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccountNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccount::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccount::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccount(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('region', $data)) { + $object->setRegion($data['region']); + unset($data['region']); + } + if (\array_key_exists('created_at', $data)) { + $object->setCreatedAt($data['created_at']); + unset($data['created_at']); + } + if (\array_key_exists('provisioning_state', $data)) { + $object->setProvisioningState($data['provisioning_state']); + unset($data['provisioning_state']); + } + if (\array_key_exists('size', $data)) { + $object->setSize($data['size']); + unset($data['size']); + } + if (\array_key_exists('bucket_count', $data)) { + $object->setBucketCount($data['bucket_count']); + unset($data['bucket_count']); + } + if (\array_key_exists('data_center', $data)) { + $object->setDataCenter($this->denormalizer->denormalize($data['data_center'], \KatapultAPI\Core\Model\DataCenter::class, 'json', $context)); + unset($data['data_center']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('region') && null !== $object->getRegion()) { + $data['region'] = $object->getRegion(); + } + if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) { + $data['created_at'] = $object->getCreatedAt(); + } + if ($object->isInitialized('provisioningState') && null !== $object->getProvisioningState()) { + $data['provisioning_state'] = $object->getProvisioningState(); + } + if ($object->isInitialized('size') && null !== $object->getSize()) { + $data['size'] = $object->getSize(); + } + if ($object->isInitialized('bucketCount') && null !== $object->getBucketCount()) { + $data['bucket_count'] = $object->getBucketCount(); + } + if ($object->isInitialized('dataCenter') && null !== $object->getDataCenter()) { + $data['data_center'] = $this->normalizer->normalize($object->getDataCenter(), 'json', $context); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\OrganizationsOrganizationObjectStorageObjectStorageClusterPostResponse201ObjectStorageAccount::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php new file mode 100644 index 00000000..4fd7a29f --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNormalizer.php index 8cf948c7..f0ab4543 100644 --- a/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNormalizer.php +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNormalizer.php @@ -63,9 +63,17 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setName($data['name']); unset($data['name']); } - if (\array_key_exists('network', $data)) { - $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork::class, 'json', $context)); + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); } if (\array_key_exists('mac_address', $data)) { $object->setMacAddress($data['mac_address']); @@ -107,6 +115,9 @@ public function normalize(mixed $object, ?string $format = null, array $context if ($object->isInitialized('network') && null !== $object->getNetwork()) { $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { $data['mac_address'] = $object->getMacAddress(); } @@ -176,9 +187,17 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setName($data['name']); unset($data['name']); } - if (\array_key_exists('network', $data)) { - $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork::class, 'json', $context)); + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); } if (\array_key_exists('mac_address', $data)) { $object->setMacAddress($data['mac_address']); @@ -223,6 +242,9 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('network') && null !== $object->getNetwork()) { $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { $data['mac_address'] = $object->getMacAddress(); } diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php new file mode 100644 index 00000000..78017b09 --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualNetworkNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualNetworkNormalizer.php new file mode 100644 index 00000000..af0a094f --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualNetwork::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartVirtualNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php new file mode 100644 index 00000000..a86405cd --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNormalizer.php new file mode 100644 index 00000000..b6485882 --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNormalizer.php @@ -0,0 +1,289 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterface::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterface::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterface(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine::class, 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); + unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); + } + if (\array_key_exists('mac_address', $data)) { + $object->setMacAddress($data['mac_address']); + unset($data['mac_address']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartIPAddresses::class, 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + if (\array_key_exists('speed_profile', $data)) { + $object->setSpeedProfile($this->denormalizer->denormalize($data['speed_profile'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile::class, 'json', $context)); + unset($data['speed_profile']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } + if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { + $data['mac_address'] = $object->getMacAddress(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + } + if ($object->isInitialized('speedProfile') && null !== $object->getSpeedProfile()) { + $data['speed_profile'] = $this->normalizer->normalize($object->getSpeedProfile(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterface::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterface::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterface::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterface(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine::class, 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); + unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); + } + if (\array_key_exists('mac_address', $data)) { + $object->setMacAddress($data['mac_address']); + unset($data['mac_address']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartIPAddresses::class, 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + if (\array_key_exists('speed_profile', $data)) { + $object->setSpeedProfile($this->denormalizer->denormalize($data['speed_profile'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile::class, 'json', $context)); + unset($data['speed_profile']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } + if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { + $data['mac_address'] = $object->getMacAddress(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + } + if ($object->isInitialized('speedProfile') && null !== $object->getSpeedProfile()) { + $data['speed_profile'] = $this->normalizer->normalize($object->getSpeedProfile(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterface::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php new file mode 100644 index 00000000..03c26d89 --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttachPartIPAddressesNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttachPartIPAddressesNormalizer.php new file mode 100644 index 00000000..c9970a09 --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttachPartIPAddressesNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfaceAttachPartIPAddressesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartIPAddresses::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartIPAddresses::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartIPAddresses(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartIPAddresses::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfaceAttachPartIPAddressesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartIPAddresses::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartIPAddresses::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartIPAddresses(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartIPAddresses::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttachPartNetworkNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttachPartNetworkNormalizer.php new file mode 100644 index 00000000..8e33e998 --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttachPartNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfaceAttachPartNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartNetwork::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfaceAttachPartNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttachPartSpeedProfileNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttachPartSpeedProfileNormalizer.php new file mode 100644 index 00000000..20ea7aec --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttachPartSpeedProfileNormalizer.php @@ -0,0 +1,181 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfaceAttachPartSpeedProfileNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfaceAttachPartSpeedProfileNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttachPartVirtualMachineNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttachPartVirtualMachineNormalizer.php new file mode 100644 index 00000000..b19178b8 --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttachPartVirtualMachineNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfaceAttachPartVirtualMachineNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfaceAttachPartVirtualMachineNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttachPartVirtualNetworkNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttachPartVirtualNetworkNormalizer.php new file mode 100644 index 00000000..a4c1a282 --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceAttachPartVirtualNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfaceAttachPartVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualNetwork::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfaceAttachPartVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php new file mode 100644 index 00000000..81143387 --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNormalizer.php new file mode 100644 index 00000000..37771758 --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNormalizer.php @@ -0,0 +1,289 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterface::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterface::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterface(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine::class, 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); + unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); + } + if (\array_key_exists('mac_address', $data)) { + $object->setMacAddress($data['mac_address']); + unset($data['mac_address']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartIPAddresses::class, 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + if (\array_key_exists('speed_profile', $data)) { + $object->setSpeedProfile($this->denormalizer->denormalize($data['speed_profile'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile::class, 'json', $context)); + unset($data['speed_profile']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } + if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { + $data['mac_address'] = $object->getMacAddress(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + } + if ($object->isInitialized('speedProfile') && null !== $object->getSpeedProfile()) { + $data['speed_profile'] = $this->normalizer->normalize($object->getSpeedProfile(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterface::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterface::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterface::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterface(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine::class, 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); + unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); + } + if (\array_key_exists('mac_address', $data)) { + $object->setMacAddress($data['mac_address']); + unset($data['mac_address']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartIPAddresses::class, 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + if (\array_key_exists('speed_profile', $data)) { + $object->setSpeedProfile($this->denormalizer->denormalize($data['speed_profile'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile::class, 'json', $context)); + unset($data['speed_profile']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } + if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { + $data['mac_address'] = $object->getMacAddress(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + } + if ($object->isInitialized('speedProfile') && null !== $object->getSpeedProfile()) { + $data['speed_profile'] = $this->normalizer->normalize($object->getSpeedProfile(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterface::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php new file mode 100644 index 00000000..2e6e56b3 --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetachPartIPAddressesNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetachPartIPAddressesNormalizer.php new file mode 100644 index 00000000..1033a02f --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetachPartIPAddressesNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfaceDetachPartIPAddressesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartIPAddresses::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartIPAddresses::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartIPAddresses(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartIPAddresses::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfaceDetachPartIPAddressesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartIPAddresses::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartIPAddresses::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartIPAddresses(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartIPAddresses::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetachPartNetworkNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetachPartNetworkNormalizer.php new file mode 100644 index 00000000..1e998875 --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetachPartNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfaceDetachPartNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartNetwork::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfaceDetachPartNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetachPartSpeedProfileNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetachPartSpeedProfileNormalizer.php new file mode 100644 index 00000000..ced0d573 --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetachPartSpeedProfileNormalizer.php @@ -0,0 +1,181 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfaceDetachPartSpeedProfileNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfaceDetachPartSpeedProfileNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetachPartVirtualMachineNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetachPartVirtualMachineNormalizer.php new file mode 100644 index 00000000..c0b175ea --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetachPartVirtualMachineNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfaceDetachPartVirtualMachineNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfaceDetachPartVirtualMachineNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetachPartVirtualNetworkNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetachPartVirtualNetworkNormalizer.php new file mode 100644 index 00000000..3e1874c2 --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaceDetachPartVirtualNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfaceDetachPartVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualNetwork::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfaceDetachPartVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php new file mode 100644 index 00000000..d4a2a622 --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNormalizer.php new file mode 100644 index 00000000..eac5bca8 --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNormalizer.php @@ -0,0 +1,289 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterface::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterface::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterface(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualMachine::class, 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); + unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); + } + if (\array_key_exists('mac_address', $data)) { + $object->setMacAddress($data['mac_address']); + unset($data['mac_address']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartIPAddresses::class, 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + if (\array_key_exists('speed_profile', $data)) { + $object->setSpeedProfile($this->denormalizer->denormalize($data['speed_profile'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartSpeedProfile::class, 'json', $context)); + unset($data['speed_profile']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } + if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { + $data['mac_address'] = $object->getMacAddress(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + } + if ($object->isInitialized('speedProfile') && null !== $object->getSpeedProfile()) { + $data['speed_profile'] = $this->normalizer->normalize($object->getSpeedProfile(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterface::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterface::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterface::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterface(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualMachine::class, 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); + unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); + } + if (\array_key_exists('mac_address', $data)) { + $object->setMacAddress($data['mac_address']); + unset($data['mac_address']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartIPAddresses::class, 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + if (\array_key_exists('speed_profile', $data)) { + $object->setSpeedProfile($this->denormalizer->denormalize($data['speed_profile'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartSpeedProfile::class, 'json', $context)); + unset($data['speed_profile']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } + if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { + $data['mac_address'] = $object->getMacAddress(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + } + if ($object->isInitialized('speedProfile') && null !== $object->getSpeedProfile()) { + $data['speed_profile'] = $this->normalizer->normalize($object->getSpeedProfile(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterface::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php new file mode 100644 index 00000000..70be745b --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfacesPartIPAddressesNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfacesPartIPAddressesNormalizer.php new file mode 100644 index 00000000..2a7dc957 --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfacesPartIPAddressesNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfacesPartIPAddressesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartIPAddresses::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartIPAddresses::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartIPAddresses(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartIPAddresses::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfacesPartIPAddressesNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartIPAddresses::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartIPAddresses::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartIPAddresses(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('address', $data)) { + $object->setAddress($data['address']); + unset($data['address']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('address') && null !== $object->getAddress()) { + $data['address'] = $object->getAddress(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartIPAddresses::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfacesPartNetworkNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfacesPartNetworkNormalizer.php new file mode 100644 index 00000000..906cf89a --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfacesPartNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfacesPartNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartNetwork::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfacesPartNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfacesPartSpeedProfileNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfacesPartSpeedProfileNormalizer.php new file mode 100644 index 00000000..e33ad312 --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfacesPartSpeedProfileNormalizer.php @@ -0,0 +1,181 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfacesPartSpeedProfileNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartSpeedProfile::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartSpeedProfile::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartSpeedProfile(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartSpeedProfile::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfacesPartSpeedProfileNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartSpeedProfile::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartSpeedProfile::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartSpeedProfile(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('permalink', $data)) { + $object->setPermalink($data['permalink']); + unset($data['permalink']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('permalink') && null !== $object->getPermalink()) { + $data['permalink'] = $object->getPermalink(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartSpeedProfile::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfacesPartVirtualMachineNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfacesPartVirtualMachineNormalizer.php new file mode 100644 index 00000000..c54487f5 --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfacesPartVirtualMachineNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfacesPartVirtualMachineNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualMachine::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualMachine::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualMachine(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualMachine::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfacesPartVirtualMachineNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualMachine::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualMachine::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualMachine(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualMachine::class => false]; + } + } +} diff --git a/src/Core/Normalizer/PostVirtualMachineNetworkInterfacesPartVirtualNetworkNormalizer.php b/src/Core/Normalizer/PostVirtualMachineNetworkInterfacesPartVirtualNetworkNormalizer.php new file mode 100644 index 00000000..16fc3bce --- /dev/null +++ b/src/Core/Normalizer/PostVirtualMachineNetworkInterfacesPartVirtualNetworkNormalizer.php @@ -0,0 +1,167 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class PostVirtualMachineNetworkInterfacesPartVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualNetwork::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualNetwork::class => false]; + } + } +} else { + class PostVirtualMachineNetworkInterfacesPartVirtualNetworkNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualNetwork::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualNetwork::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualNetwork(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualNetwork::class => false]; + } + } +} diff --git a/src/Core/Normalizer/ResponseObjectStorageAccessKeyNotFoundResponseNormalizer.php b/src/Core/Normalizer/ResponseObjectStorageAccessKeyNotFoundResponseNormalizer.php new file mode 100644 index 00000000..d2088f56 --- /dev/null +++ b/src/Core/Normalizer/ResponseObjectStorageAccessKeyNotFoundResponseNormalizer.php @@ -0,0 +1,197 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ResponseObjectStorageAccessKeyNotFoundResponseNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ResponseObjectStorageAccessKeyNotFoundResponse::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ResponseObjectStorageAccessKeyNotFoundResponse::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ResponseObjectStorageAccessKeyNotFoundResponse(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('code', $data)) { + $object->setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ResponseObjectStorageAccessKeyNotFoundResponse::class => false]; + } + } +} else { + class ResponseObjectStorageAccessKeyNotFoundResponseNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ResponseObjectStorageAccessKeyNotFoundResponse::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ResponseObjectStorageAccessKeyNotFoundResponse::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ResponseObjectStorageAccessKeyNotFoundResponse(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('code', $data)) { + $object->setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ResponseObjectStorageAccessKeyNotFoundResponse::class => false]; + } + } +} diff --git a/src/Core/Normalizer/ResponseObjectStorageProvisioningErrorResponseNormalizer.php b/src/Core/Normalizer/ResponseObjectStorageProvisioningErrorResponseNormalizer.php new file mode 100644 index 00000000..e10b8865 --- /dev/null +++ b/src/Core/Normalizer/ResponseObjectStorageProvisioningErrorResponseNormalizer.php @@ -0,0 +1,197 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ResponseObjectStorageProvisioningErrorResponseNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ResponseObjectStorageProvisioningErrorResponse::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ResponseObjectStorageProvisioningErrorResponse::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ResponseObjectStorageProvisioningErrorResponse(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('code', $data)) { + $object->setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ResponseObjectStorageProvisioningErrorResponse::class => false]; + } + } +} else { + class ResponseObjectStorageProvisioningErrorResponseNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ResponseObjectStorageProvisioningErrorResponse::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ResponseObjectStorageProvisioningErrorResponse::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ResponseObjectStorageProvisioningErrorResponse(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('code', $data)) { + $object->setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ResponseObjectStorageProvisioningErrorResponse::class => false]; + } + } +} diff --git a/src/Core/Normalizer/ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponseNormalizer.php b/src/Core/Normalizer/ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponseNormalizer.php new file mode 100644 index 00000000..6209dba5 --- /dev/null +++ b/src/Core/Normalizer/ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponseNormalizer.php @@ -0,0 +1,197 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponseNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponse::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponse::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponse(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('code', $data)) { + $object->setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponse::class => false]; + } + } +} else { + class ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponseNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponse::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponse::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponse(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('code', $data)) { + $object->setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyAttachedResponse::class => false]; + } + } +} diff --git a/src/Core/Normalizer/ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponseNormalizer.php b/src/Core/Normalizer/ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponseNormalizer.php new file mode 100644 index 00000000..9460b4f1 --- /dev/null +++ b/src/Core/Normalizer/ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponseNormalizer.php @@ -0,0 +1,197 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponseNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponse::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponse::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponse(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('code', $data)) { + $object->setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponse::class => false]; + } + } +} else { + class ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponseNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponse::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponse::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponse(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('code', $data)) { + $object->setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\ResponseVirtualMachineNetworkInterfaceAlreadyDetachedResponse::class => false]; + } + } +} diff --git a/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200VirtualMachineNetworkInterfaceNormalizer.php b/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200VirtualMachineNetworkInterfaceNormalizer.php index cdd501db..771e80e3 100644 --- a/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200VirtualMachineNetworkInterfaceNormalizer.php +++ b/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAllocateIpPostResponse200VirtualMachineNetworkInterfaceNormalizer.php @@ -63,9 +63,17 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setName($data['name']); unset($data['name']); } - if (\array_key_exists('network', $data)) { - $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork::class, 'json', $context)); + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); } if (\array_key_exists('mac_address', $data)) { $object->setMacAddress($data['mac_address']); @@ -107,6 +115,9 @@ public function normalize(mixed $object, ?string $format = null, array $context if ($object->isInitialized('network') && null !== $object->getNetwork()) { $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { $data['mac_address'] = $object->getMacAddress(); } @@ -176,9 +187,17 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setName($data['name']); unset($data['name']); } - if (\array_key_exists('network', $data)) { - $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIPPartNetwork::class, 'json', $context)); + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAllocateIP200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); } if (\array_key_exists('mac_address', $data)) { $object->setMacAddress($data['mac_address']); @@ -223,6 +242,9 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('network') && null !== $object->getNetwork()) { $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { $data['mac_address'] = $object->getMacAddress(); } diff --git a/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBodyNormalizer.php b/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBodyNormalizer.php new file mode 100644 index 00000000..2c748338 --- /dev/null +++ b/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBodyNormalizer.php @@ -0,0 +1,149 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBodyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBody::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBody::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBody(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('virtual_machine_network_interface', $data)) { + $object->setVirtualMachineNetworkInterface($this->denormalizer->denormalize($data['virtual_machine_network_interface'], \KatapultAPI\Core\Model\VirtualMachineNetworkInterfaceLookup::class, 'json', $context)); + unset($data['virtual_machine_network_interface']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['virtual_machine_network_interface'] = $this->normalizer->normalize($object->getVirtualMachineNetworkInterface(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBody::class => false]; + } + } +} else { + class VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBodyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBody::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBody::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBody(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('virtual_machine_network_interface', $data)) { + $object->setVirtualMachineNetworkInterface($this->denormalizer->denormalize($data['virtual_machine_network_interface'], \KatapultAPI\Core\Model\VirtualMachineNetworkInterfaceLookup::class, 'json', $context)); + unset($data['virtual_machine_network_interface']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine_network_interface'] = $this->normalizer->normalize($object->getVirtualMachineNetworkInterface(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostBody::class => false]; + } + } +} diff --git a/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200Normalizer.php b/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200Normalizer.php new file mode 100644 index 00000000..4f26d44e --- /dev/null +++ b/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200Normalizer.php @@ -0,0 +1,159 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('virtual_machine_network_interface', $data)) { + $object->setVirtualMachineNetworkInterface($this->denormalizer->denormalize($data['virtual_machine_network_interface'], \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterface::class, 'json', $context)); + unset($data['virtual_machine_network_interface']); + } + if (\array_key_exists('task', $data)) { + $object->setTask($this->denormalizer->denormalize($data['task'], \KatapultAPI\Core\Model\Task::class, 'json', $context)); + unset($data['task']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['virtual_machine_network_interface'] = $this->normalizer->normalize($object->getVirtualMachineNetworkInterface(), 'json', $context); + $data['task'] = $this->normalizer->normalize($object->getTask(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200::class => false]; + } + } +} else { + class VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('virtual_machine_network_interface', $data)) { + $object->setVirtualMachineNetworkInterface($this->denormalizer->denormalize($data['virtual_machine_network_interface'], \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterface::class, 'json', $context)); + unset($data['virtual_machine_network_interface']); + } + if (\array_key_exists('task', $data)) { + $object->setTask($this->denormalizer->denormalize($data['task'], \KatapultAPI\Core\Model\Task::class, 'json', $context)); + unset($data['task']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine_network_interface'] = $this->normalizer->normalize($object->getVirtualMachineNetworkInterface(), 'json', $context); + $data['task'] = $this->normalizer->normalize($object->getTask(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200::class => false]; + } + } +} diff --git a/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterfaceNormalizer.php b/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterfaceNormalizer.php new file mode 100644 index 00000000..d25e5e7e --- /dev/null +++ b/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterfaceNormalizer.php @@ -0,0 +1,289 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterfaceNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterface::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterface::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterface(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine::class, 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); + unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); + } + if (\array_key_exists('mac_address', $data)) { + $object->setMacAddress($data['mac_address']); + unset($data['mac_address']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartIPAddresses::class, 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + if (\array_key_exists('speed_profile', $data)) { + $object->setSpeedProfile($this->denormalizer->denormalize($data['speed_profile'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile::class, 'json', $context)); + unset($data['speed_profile']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } + if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { + $data['mac_address'] = $object->getMacAddress(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + } + if ($object->isInitialized('speedProfile') && null !== $object->getSpeedProfile()) { + $data['speed_profile'] = $this->normalizer->normalize($object->getSpeedProfile(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterface::class => false]; + } + } +} else { + class VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterfaceNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterface::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterface::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterface(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartVirtualMachine::class, 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); + unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); + } + if (\array_key_exists('mac_address', $data)) { + $object->setMacAddress($data['mac_address']); + unset($data['mac_address']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartIPAddresses::class, 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + if (\array_key_exists('speed_profile', $data)) { + $object->setSpeedProfile($this->denormalizer->denormalize($data['speed_profile'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceAttachPartSpeedProfile::class, 'json', $context)); + unset($data['speed_profile']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } + if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { + $data['mac_address'] = $object->getMacAddress(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + } + if ($object->isInitialized('speedProfile') && null !== $object->getSpeedProfile()) { + $data['speed_profile'] = $this->normalizer->normalize($object->getSpeedProfile(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceAttachPostResponse200VirtualMachineNetworkInterface::class => false]; + } + } +} diff --git a/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBodyNormalizer.php b/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBodyNormalizer.php new file mode 100644 index 00000000..c3ac05e7 --- /dev/null +++ b/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBodyNormalizer.php @@ -0,0 +1,149 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBodyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBody::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBody::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBody(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('virtual_machine_network_interface', $data)) { + $object->setVirtualMachineNetworkInterface($this->denormalizer->denormalize($data['virtual_machine_network_interface'], \KatapultAPI\Core\Model\VirtualMachineNetworkInterfaceLookup::class, 'json', $context)); + unset($data['virtual_machine_network_interface']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['virtual_machine_network_interface'] = $this->normalizer->normalize($object->getVirtualMachineNetworkInterface(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBody::class => false]; + } + } +} else { + class VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBodyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBody::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBody::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBody(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('virtual_machine_network_interface', $data)) { + $object->setVirtualMachineNetworkInterface($this->denormalizer->denormalize($data['virtual_machine_network_interface'], \KatapultAPI\Core\Model\VirtualMachineNetworkInterfaceLookup::class, 'json', $context)); + unset($data['virtual_machine_network_interface']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine_network_interface'] = $this->normalizer->normalize($object->getVirtualMachineNetworkInterface(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteBody::class => false]; + } + } +} diff --git a/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200Normalizer.php b/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200Normalizer.php new file mode 100644 index 00000000..e9ab9d36 --- /dev/null +++ b/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200Normalizer.php @@ -0,0 +1,149 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('virtual_machine_network_interface', $data)) { + $object->setVirtualMachineNetworkInterface($this->denormalizer->denormalize($data['virtual_machine_network_interface'], \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterface::class, 'json', $context)); + unset($data['virtual_machine_network_interface']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['virtual_machine_network_interface'] = $this->normalizer->normalize($object->getVirtualMachineNetworkInterface(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200::class => false]; + } + } +} else { + class VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('virtual_machine_network_interface', $data)) { + $object->setVirtualMachineNetworkInterface($this->denormalizer->denormalize($data['virtual_machine_network_interface'], \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterface::class, 'json', $context)); + unset($data['virtual_machine_network_interface']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine_network_interface'] = $this->normalizer->normalize($object->getVirtualMachineNetworkInterface(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200::class => false]; + } + } +} diff --git a/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterfaceNormalizer.php b/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterfaceNormalizer.php new file mode 100644 index 00000000..cacf8cf8 --- /dev/null +++ b/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterfaceNormalizer.php @@ -0,0 +1,289 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterfaceNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterface::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterface::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterface(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualMachine::class, 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); + unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); + } + if (\array_key_exists('mac_address', $data)) { + $object->setMacAddress($data['mac_address']); + unset($data['mac_address']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartIPAddresses::class, 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + if (\array_key_exists('speed_profile', $data)) { + $object->setSpeedProfile($this->denormalizer->denormalize($data['speed_profile'], \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartSpeedProfile::class, 'json', $context)); + unset($data['speed_profile']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } + if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { + $data['mac_address'] = $object->getMacAddress(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + } + if ($object->isInitialized('speedProfile') && null !== $object->getSpeedProfile()) { + $data['speed_profile'] = $this->normalizer->normalize($object->getSpeedProfile(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterface::class => false]; + } + } +} else { + class VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterfaceNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterface::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterface::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterface(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartVirtualMachine::class, 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); + unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); + } + if (\array_key_exists('mac_address', $data)) { + $object->setMacAddress($data['mac_address']); + unset($data['mac_address']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartIPAddresses::class, 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + if (\array_key_exists('speed_profile', $data)) { + $object->setSpeedProfile($this->denormalizer->denormalize($data['speed_profile'], \KatapultAPI\Core\Model\DeleteVirtualMachineNetworkInterfacePartSpeedProfile::class, 'json', $context)); + unset($data['speed_profile']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } + if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { + $data['mac_address'] = $object->getMacAddress(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + } + if ($object->isInitialized('speedProfile') && null !== $object->getSpeedProfile()) { + $data['speed_profile'] = $this->normalizer->normalize($object->getSpeedProfile(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDeleteResponse200VirtualMachineNetworkInterface::class => false]; + } + } +} diff --git a/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBodyNormalizer.php b/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBodyNormalizer.php new file mode 100644 index 00000000..e3a40dba --- /dev/null +++ b/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBodyNormalizer.php @@ -0,0 +1,149 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBodyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBody::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBody::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBody(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('virtual_machine_network_interface', $data)) { + $object->setVirtualMachineNetworkInterface($this->denormalizer->denormalize($data['virtual_machine_network_interface'], \KatapultAPI\Core\Model\VirtualMachineNetworkInterfaceLookup::class, 'json', $context)); + unset($data['virtual_machine_network_interface']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['virtual_machine_network_interface'] = $this->normalizer->normalize($object->getVirtualMachineNetworkInterface(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBody::class => false]; + } + } +} else { + class VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBodyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBody::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBody::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBody(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('virtual_machine_network_interface', $data)) { + $object->setVirtualMachineNetworkInterface($this->denormalizer->denormalize($data['virtual_machine_network_interface'], \KatapultAPI\Core\Model\VirtualMachineNetworkInterfaceLookup::class, 'json', $context)); + unset($data['virtual_machine_network_interface']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine_network_interface'] = $this->normalizer->normalize($object->getVirtualMachineNetworkInterface(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostBody::class => false]; + } + } +} diff --git a/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200Normalizer.php b/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200Normalizer.php new file mode 100644 index 00000000..e4941ff4 --- /dev/null +++ b/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200Normalizer.php @@ -0,0 +1,159 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('virtual_machine_network_interface', $data)) { + $object->setVirtualMachineNetworkInterface($this->denormalizer->denormalize($data['virtual_machine_network_interface'], \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterface::class, 'json', $context)); + unset($data['virtual_machine_network_interface']); + } + if (\array_key_exists('task', $data)) { + $object->setTask($this->denormalizer->denormalize($data['task'], \KatapultAPI\Core\Model\Task::class, 'json', $context)); + unset($data['task']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['virtual_machine_network_interface'] = $this->normalizer->normalize($object->getVirtualMachineNetworkInterface(), 'json', $context); + $data['task'] = $this->normalizer->normalize($object->getTask(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200::class => false]; + } + } +} else { + class VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('virtual_machine_network_interface', $data)) { + $object->setVirtualMachineNetworkInterface($this->denormalizer->denormalize($data['virtual_machine_network_interface'], \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterface::class, 'json', $context)); + unset($data['virtual_machine_network_interface']); + } + if (\array_key_exists('task', $data)) { + $object->setTask($this->denormalizer->denormalize($data['task'], \KatapultAPI\Core\Model\Task::class, 'json', $context)); + unset($data['task']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine_network_interface'] = $this->normalizer->normalize($object->getVirtualMachineNetworkInterface(), 'json', $context); + $data['task'] = $this->normalizer->normalize($object->getTask(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200::class => false]; + } + } +} diff --git a/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterfaceNormalizer.php b/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterfaceNormalizer.php new file mode 100644 index 00000000..1d97a4f4 --- /dev/null +++ b/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterfaceNormalizer.php @@ -0,0 +1,289 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterfaceNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterface::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterface::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterface(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine::class, 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); + unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); + } + if (\array_key_exists('mac_address', $data)) { + $object->setMacAddress($data['mac_address']); + unset($data['mac_address']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartIPAddresses::class, 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + if (\array_key_exists('speed_profile', $data)) { + $object->setSpeedProfile($this->denormalizer->denormalize($data['speed_profile'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile::class, 'json', $context)); + unset($data['speed_profile']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } + if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { + $data['mac_address'] = $object->getMacAddress(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + } + if ($object->isInitialized('speedProfile') && null !== $object->getSpeedProfile()) { + $data['speed_profile'] = $this->normalizer->normalize($object->getSpeedProfile(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterface::class => false]; + } + } +} else { + class VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterfaceNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterface::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterface::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterface(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartVirtualMachine::class, 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); + unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetach200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); + } + if (\array_key_exists('mac_address', $data)) { + $object->setMacAddress($data['mac_address']); + unset($data['mac_address']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartIPAddresses::class, 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + if (\array_key_exists('speed_profile', $data)) { + $object->setSpeedProfile($this->denormalizer->denormalize($data['speed_profile'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaceDetachPartSpeedProfile::class, 'json', $context)); + unset($data['speed_profile']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } + if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { + $data['mac_address'] = $object->getMacAddress(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + } + if ($object->isInitialized('speedProfile') && null !== $object->getSpeedProfile()) { + $data['speed_profile'] = $this->normalizer->normalize($object->getSpeedProfile(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceDetachPostResponse200VirtualMachineNetworkInterface::class => false]; + } + } +} diff --git a/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterfaceNormalizer.php b/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterfaceNormalizer.php index d5855c99..13365301 100644 --- a/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterfaceNormalizer.php +++ b/src/Core/Normalizer/VirtualMachineNetworkInterfacesVirtualMachineNetworkInterfaceGetResponse200VirtualMachineNetworkInterfaceNormalizer.php @@ -63,9 +63,17 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setName($data['name']); unset($data['name']); } - if (\array_key_exists('network', $data)) { - $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\GetVMNIVMNIPartNetwork::class, 'json', $context)); + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); } if (\array_key_exists('mac_address', $data)) { $object->setMacAddress($data['mac_address']); @@ -111,6 +119,9 @@ public function normalize(mixed $object, ?string $format = null, array $context if ($object->isInitialized('network') && null !== $object->getNetwork()) { $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { $data['mac_address'] = $object->getMacAddress(); } @@ -183,9 +194,17 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setName($data['name']); unset($data['name']); } - if (\array_key_exists('network', $data)) { - $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\GetVMNIVMNIPartNetwork::class, 'json', $context)); + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\GetVMNIVMNI200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); } if (\array_key_exists('mac_address', $data)) { $object->setMacAddress($data['mac_address']); @@ -234,6 +253,9 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('network') && null !== $object->getNetwork()) { $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { $data['mac_address'] = $object->getMacAddress(); } diff --git a/src/Core/Normalizer/VirtualMachinesVirtualMachineNetworkInterfacesPostBodyNormalizer.php b/src/Core/Normalizer/VirtualMachinesVirtualMachineNetworkInterfacesPostBodyNormalizer.php new file mode 100644 index 00000000..cf11cfce --- /dev/null +++ b/src/Core/Normalizer/VirtualMachinesVirtualMachineNetworkInterfacesPostBodyNormalizer.php @@ -0,0 +1,187 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class VirtualMachinesVirtualMachineNetworkInterfacesPostBodyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostBody::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostBody::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostBody(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], \KatapultAPI\Core\Model\VirtualMachineLookup::class, 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('network', $data)) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\NetworkLookup::class, 'json', $context)); + unset($data['network']); + } + if (\array_key_exists('virtual_network', $data)) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\VirtualNetworkLookup::class, 'json', $context)); + unset($data['virtual_network']); + } + if (\array_key_exists('speed_profile', $data)) { + $object->setSpeedProfile($this->denormalizer->denormalize($data['speed_profile'], \KatapultAPI\Core\Model\NetworkSpeedProfileLookup::class, 'json', $context)); + unset($data['speed_profile']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } + $data['speed_profile'] = $this->normalizer->normalize($object->getSpeedProfile(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostBody::class => false]; + } + } +} else { + class VirtualMachinesVirtualMachineNetworkInterfacesPostBodyNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostBody::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostBody::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostBody(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], \KatapultAPI\Core\Model\VirtualMachineLookup::class, 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('network', $data)) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\NetworkLookup::class, 'json', $context)); + unset($data['network']); + } + if (\array_key_exists('virtual_network', $data)) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\VirtualNetworkLookup::class, 'json', $context)); + unset($data['virtual_network']); + } + if (\array_key_exists('speed_profile', $data)) { + $object->setSpeedProfile($this->denormalizer->denormalize($data['speed_profile'], \KatapultAPI\Core\Model\NetworkSpeedProfileLookup::class, 'json', $context)); + unset($data['speed_profile']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } + $data['speed_profile'] = $this->normalizer->normalize($object->getSpeedProfile(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostBody::class => false]; + } + } +} diff --git a/src/Core/Normalizer/VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200Normalizer.php b/src/Core/Normalizer/VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200Normalizer.php new file mode 100644 index 00000000..7afa09a7 --- /dev/null +++ b/src/Core/Normalizer/VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200Normalizer.php @@ -0,0 +1,149 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('virtual_machine_network_interface', $data)) { + $object->setVirtualMachineNetworkInterface($this->denormalizer->denormalize($data['virtual_machine_network_interface'], \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterface::class, 'json', $context)); + unset($data['virtual_machine_network_interface']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + $data['virtual_machine_network_interface'] = $this->normalizer->normalize($object->getVirtualMachineNetworkInterface(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200::class => false]; + } + } +} else { + class VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200Normalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('virtual_machine_network_interface', $data)) { + $object->setVirtualMachineNetworkInterface($this->denormalizer->denormalize($data['virtual_machine_network_interface'], \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterface::class, 'json', $context)); + unset($data['virtual_machine_network_interface']); + } + foreach ($data as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + $data['virtual_machine_network_interface'] = $this->normalizer->normalize($object->getVirtualMachineNetworkInterface(), 'json', $context); + foreach ($object as $key => $value) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200::class => false]; + } + } +} diff --git a/src/Core/Normalizer/VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterfaceNormalizer.php b/src/Core/Normalizer/VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterfaceNormalizer.php new file mode 100644 index 00000000..49724a31 --- /dev/null +++ b/src/Core/Normalizer/VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterfaceNormalizer.php @@ -0,0 +1,289 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterfaceNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterface::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterface::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterface(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualMachine::class, 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); + unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); + } + if (\array_key_exists('mac_address', $data)) { + $object->setMacAddress($data['mac_address']); + unset($data['mac_address']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartIPAddresses::class, 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + if (\array_key_exists('speed_profile', $data)) { + $object->setSpeedProfile($this->denormalizer->denormalize($data['speed_profile'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartSpeedProfile::class, 'json', $context)); + unset($data['speed_profile']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } + if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { + $data['mac_address'] = $object->getMacAddress(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + } + if ($object->isInitialized('speedProfile') && null !== $object->getSpeedProfile()) { + $data['speed_profile'] = $this->normalizer->normalize($object->getSpeedProfile(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterface::class => false]; + } + } +} else { + class VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterfaceNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterface::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterface::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterface(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('id', $data)) { + $object->setId($data['id']); + unset($data['id']); + } + if (\array_key_exists('virtual_machine', $data)) { + $object->setVirtualMachine($this->denormalizer->denormalize($data['virtual_machine'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartVirtualMachine::class, 'json', $context)); + unset($data['virtual_machine']); + } + if (\array_key_exists('name', $data)) { + $object->setName($data['name']); + unset($data['name']); + } + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); + unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfaces200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); + } + if (\array_key_exists('mac_address', $data)) { + $object->setMacAddress($data['mac_address']); + unset($data['mac_address']); + } + if (\array_key_exists('state', $data)) { + $object->setState($data['state']); + unset($data['state']); + } + if (\array_key_exists('ip_addresses', $data)) { + $values = []; + foreach ($data['ip_addresses'] as $value) { + $values[] = $this->denormalizer->denormalize($value, \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartIPAddresses::class, 'json', $context); + } + $object->setIpAddresses($values); + unset($data['ip_addresses']); + } + if (\array_key_exists('speed_profile', $data)) { + $object->setSpeedProfile($this->denormalizer->denormalize($data['speed_profile'], \KatapultAPI\Core\Model\PostVirtualMachineNetworkInterfacesPartSpeedProfile::class, 'json', $context)); + unset($data['speed_profile']); + } + foreach ($data as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $object[$key] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('id') && null !== $object->getId()) { + $data['id'] = $object->getId(); + } + if ($object->isInitialized('virtualMachine') && null !== $object->getVirtualMachine()) { + $data['virtual_machine'] = $this->normalizer->normalize($object->getVirtualMachine(), 'json', $context); + } + if ($object->isInitialized('name') && null !== $object->getName()) { + $data['name'] = $object->getName(); + } + if ($object->isInitialized('network') && null !== $object->getNetwork()) { + $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); + } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } + if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { + $data['mac_address'] = $object->getMacAddress(); + } + if ($object->isInitialized('state') && null !== $object->getState()) { + $data['state'] = $object->getState(); + } + if ($object->isInitialized('ipAddresses') && null !== $object->getIpAddresses()) { + $values = []; + foreach ($object->getIpAddresses() as $value) { + $values[] = $this->normalizer->normalize($value, 'json', $context); + } + $data['ip_addresses'] = $values; + } + if ($object->isInitialized('speedProfile') && null !== $object->getSpeedProfile()) { + $data['speed_profile'] = $this->normalizer->normalize($object->getSpeedProfile(), 'json', $context); + } + foreach ($object as $key => $value_1) { + if (preg_match('/.*/', (string) $key)) { + $data[$key] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualMachinesVirtualMachineNetworkInterfacesPostResponse200VirtualMachineNetworkInterface::class => false]; + } + } +} diff --git a/src/Core/Normalizer/VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterfaceNormalizer.php b/src/Core/Normalizer/VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterfaceNormalizer.php index ae856444..5aae73e8 100644 --- a/src/Core/Normalizer/VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterfaceNormalizer.php +++ b/src/Core/Normalizer/VirtualMachinesVirtualMachineNetworksNetworkInterfaceGetResponse200VirtualMachineNetworkInterfaceNormalizer.php @@ -63,9 +63,17 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setName($data['name']); unset($data['name']); } - if (\array_key_exists('network', $data)) { - $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartNetwork::class, 'json', $context)); + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); } if (\array_key_exists('mac_address', $data)) { $object->setMacAddress($data['mac_address']); @@ -107,6 +115,9 @@ public function normalize(mixed $object, ?string $format = null, array $context if ($object->isInitialized('network') && null !== $object->getNetwork()) { $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { $data['mac_address'] = $object->getMacAddress(); } @@ -176,9 +187,17 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setName($data['name']); unset($data['name']); } - if (\array_key_exists('network', $data)) { - $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterfacePartNetwork::class, 'json', $context)); + if (\array_key_exists('network', $data) && $data['network'] !== null) { + $object->setNetwork($this->denormalizer->denormalize($data['network'], \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceNetwork::class, 'json', $context)); unset($data['network']); + } elseif (\array_key_exists('network', $data) && $data['network'] === null) { + $object->setNetwork(null); + } + if (\array_key_exists('virtual_network', $data) && $data['virtual_network'] !== null) { + $object->setVirtualNetwork($this->denormalizer->denormalize($data['virtual_network'], \KatapultAPI\Core\Model\GetVirtualMachineNetworkInterface200ResponseVirtualMachineNetworkInterfaceVirtualNetwork::class, 'json', $context)); + unset($data['virtual_network']); + } elseif (\array_key_exists('virtual_network', $data) && $data['virtual_network'] === null) { + $object->setVirtualNetwork(null); } if (\array_key_exists('mac_address', $data)) { $object->setMacAddress($data['mac_address']); @@ -223,6 +242,9 @@ public function normalize($object, $format = null, array $context = []) if ($object->isInitialized('network') && null !== $object->getNetwork()) { $data['network'] = $this->normalizer->normalize($object->getNetwork(), 'json', $context); } + if ($object->isInitialized('virtualNetwork') && null !== $object->getVirtualNetwork()) { + $data['virtual_network'] = $this->normalizer->normalize($object->getVirtualNetwork(), 'json', $context); + } if ($object->isInitialized('macAddress') && null !== $object->getMacAddress()) { $data['mac_address'] = $object->getMacAddress(); } diff --git a/src/Core/Normalizer/VirtualNetworkNotFoundSchemaNormalizer.php b/src/Core/Normalizer/VirtualNetworkNotFoundSchemaNormalizer.php new file mode 100644 index 00000000..6668cb49 --- /dev/null +++ b/src/Core/Normalizer/VirtualNetworkNotFoundSchemaNormalizer.php @@ -0,0 +1,197 @@ += 7 or Kernel::MAJOR_VERSION === 6 and Kernel::MINOR_VERSION === 4)) { + class VirtualNetworkNotFoundSchemaNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization(mixed $data, string $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualNetworkNotFoundSchema::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualNetworkNotFoundSchema::class; + } + + public function denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualNetworkNotFoundSchema(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('code', $data)) { + $object->setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualNetworkNotFoundSchema::class => false]; + } + } +} else { + class VirtualNetworkNotFoundSchemaNormalizer implements DenormalizerInterface, NormalizerInterface, DenormalizerAwareInterface, NormalizerAwareInterface + { + use DenormalizerAwareTrait; + use NormalizerAwareTrait; + use CheckArray; + use ValidatorTrait; + + public function supportsDenormalization($data, $type, ?string $format = null, array $context = []): bool + { + return $type === \KatapultAPI\Core\Model\VirtualNetworkNotFoundSchema::class; + } + + public function supportsNormalization(mixed $data, ?string $format = null, array $context = []): bool + { + return is_object($data) && get_class($data) === \KatapultAPI\Core\Model\VirtualNetworkNotFoundSchema::class; + } + + public function denormalize($data, $type, $format = null, array $context = []) + { + if (isset($data['$ref'])) { + return new Reference($data['$ref'], $context['document-origin']); + } + if (isset($data['$recursiveRef'])) { + return new Reference($data['$recursiveRef'], $context['document-origin']); + } + $object = new \KatapultAPI\Core\Model\VirtualNetworkNotFoundSchema(); + if (null === $data || false === \is_array($data)) { + return $object; + } + if (\array_key_exists('code', $data)) { + $object->setCode($data['code']); + unset($data['code']); + } + if (\array_key_exists('description', $data)) { + $object->setDescription($data['description']); + unset($data['description']); + } + if (\array_key_exists('detail', $data)) { + $values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data['detail'] as $key => $value) { + $values[$key] = $value; + } + $object->setDetail($values); + unset($data['detail']); + } + foreach ($data as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $object[$key_1] = $value_1; + } + } + + return $object; + } + + /** + * @return array|string|int|float|bool|\ArrayObject|null + */ + public function normalize($object, $format = null, array $context = []) + { + $data = []; + if ($object->isInitialized('code') && null !== $object->getCode()) { + $data['code'] = $object->getCode(); + } + if ($object->isInitialized('description') && null !== $object->getDescription()) { + $data['description'] = $object->getDescription(); + } + if ($object->isInitialized('detail') && null !== $object->getDetail()) { + $values = []; + foreach ($object->getDetail() as $key => $value) { + $values[$key] = $value; + } + $data['detail'] = $values; + } + foreach ($object as $key_1 => $value_1) { + if (preg_match('/.*/', (string) $key_1)) { + $data[$key_1] = $value_1; + } + } + + return $data; + } + + public function getSupportedTypes(?string $format = null): array + { + return [\KatapultAPI\Core\Model\VirtualNetworkNotFoundSchema::class => false]; + } + } +} diff --git a/src/Public/Client.php b/src/Public/Client.php index 26c902a1..a05e5a85 100644 --- a/src/Public/Client.php +++ b/src/Public/Client.php @@ -56,7 +56,7 @@ public function postPricingEstimate(?Model\PricingEstimatePostBody $requestBody } /** - * This will create a new signup object and e-mail the appropriate welcome e-mail to the given email address. + * This will create a new signup object, which can be either verified by e-mail or by the user creating an account in Identity. * * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * diff --git a/src/Public/Endpoint/PostSignups.php b/src/Public/Endpoint/PostSignups.php index 72226866..08ff2535 100644 --- a/src/Public/Endpoint/PostSignups.php +++ b/src/Public/Endpoint/PostSignups.php @@ -15,7 +15,7 @@ class PostSignups extends \KatapultAPI\Public\Runtime\Client\BaseEndpoint implem use \KatapultAPI\Public\Runtime\Client\EndpointTrait; /** - * This will create a new signup object and e-mail the appropriate welcome e-mail to the given email address. + * This will create a new signup object, which can be either verified by e-mail or by the user creating an account in Identity. */ public function __construct(?\KatapultAPI\Public\Model\SignupsPostBody $requestBody = null) { diff --git a/src/Public/Model/SignupsPostBody.php b/src/Public/Model/SignupsPostBody.php index bc1b07fa..553fb2cc 100644 --- a/src/Public/Model/SignupsPostBody.php +++ b/src/Public/Model/SignupsPostBody.php @@ -21,6 +21,12 @@ public function isInitialized($property): bool { return array_key_exists($property, $this->initialized); } + /** + * If true, the user will be sent an email to verify their e-mail address, and if false, the user will need to verify their e-mail address when they create an account in Identity. + * + * @var bool + */ + protected $verifyWithEmail; /** * The e-mail address that should receive the welcome e-mail. * @@ -34,12 +40,29 @@ public function isInitialized($property): bool */ protected $coupon; /** - * All 'campaign[]' params are mutually exclusive, only one can be provided. - * * @var SignupCampaignArguments */ protected $campaign; + /** + * If true, the user will be sent an email to verify their e-mail address, and if false, the user will need to verify their e-mail address when they create an account in Identity. + */ + public function getVerifyWithEmail(): bool + { + return $this->verifyWithEmail; + } + + /** + * If true, the user will be sent an email to verify their e-mail address, and if false, the user will need to verify their e-mail address when they create an account in Identity. + */ + public function setVerifyWithEmail(bool $verifyWithEmail): self + { + $this->initialized['verifyWithEmail'] = true; + $this->verifyWithEmail = $verifyWithEmail; + + return $this; + } + /** * The e-mail address that should receive the welcome e-mail. */ @@ -78,17 +101,11 @@ public function setCoupon(string $coupon): self return $this; } - /** - * All 'campaign[]' params are mutually exclusive, only one can be provided. - */ public function getCampaign(): SignupCampaignArguments { return $this->campaign; } - /** - * All 'campaign[]' params are mutually exclusive, only one can be provided. - */ public function setCampaign(SignupCampaignArguments $campaign): self { $this->initialized['campaign'] = true; diff --git a/src/Public/Model/SignupsPostResponse200.php b/src/Public/Model/SignupsPostResponse200.php index 8e141d65..ab20f16a 100644 --- a/src/Public/Model/SignupsPostResponse200.php +++ b/src/Public/Model/SignupsPostResponse200.php @@ -30,9 +30,15 @@ public function isInitialized($property): bool /** * The e-mail address that was sent the welcome email. * - * @var string + * @var string|null */ protected $emailAddress; + /** + * The URL for the user to continue their signup process, only available if verify_with_email is false. + * + * @var string|null + */ + protected $url; /** * The ID of the signup. @@ -56,7 +62,7 @@ public function setId(string $id): self /** * The e-mail address that was sent the welcome email. */ - public function getEmailAddress(): string + public function getEmailAddress(): ?string { return $this->emailAddress; } @@ -64,11 +70,30 @@ public function getEmailAddress(): string /** * The e-mail address that was sent the welcome email. */ - public function setEmailAddress(string $emailAddress): self + public function setEmailAddress(?string $emailAddress): self { $this->initialized['emailAddress'] = true; $this->emailAddress = $emailAddress; return $this; } + + /** + * The URL for the user to continue their signup process, only available if verify_with_email is false. + */ + public function getUrl(): ?string + { + return $this->url; + } + + /** + * The URL for the user to continue their signup process, only available if verify_with_email is false. + */ + public function setUrl(?string $url): self + { + $this->initialized['url'] = true; + $this->url = $url; + + return $this; + } } diff --git a/src/Public/Normalizer/SignupsPostBodyNormalizer.php b/src/Public/Normalizer/SignupsPostBodyNormalizer.php index 9761dd16..2fa5d472 100644 --- a/src/Public/Normalizer/SignupsPostBodyNormalizer.php +++ b/src/Public/Normalizer/SignupsPostBodyNormalizer.php @@ -51,6 +51,10 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a if (null === $data || false === \is_array($data)) { return $object; } + if (\array_key_exists('verify_with_email', $data)) { + $object->setVerifyWithEmail($data['verify_with_email']); + unset($data['verify_with_email']); + } if (\array_key_exists('email_address', $data)) { $object->setEmailAddress($data['email_address']); unset($data['email_address']); @@ -75,7 +79,12 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a public function normalize(mixed $object, ?string $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null { $data = []; - $data['email_address'] = $object->getEmailAddress(); + if ($object->isInitialized('verifyWithEmail') && null !== $object->getVerifyWithEmail()) { + $data['verify_with_email'] = $object->getVerifyWithEmail(); + } + if ($object->isInitialized('emailAddress') && null !== $object->getEmailAddress()) { + $data['email_address'] = $object->getEmailAddress(); + } if ($object->isInitialized('coupon') && null !== $object->getCoupon()) { $data['coupon'] = $object->getCoupon(); } @@ -126,6 +135,10 @@ public function denormalize($data, $type, $format = null, array $context = []) if (null === $data || false === \is_array($data)) { return $object; } + if (\array_key_exists('verify_with_email', $data)) { + $object->setVerifyWithEmail($data['verify_with_email']); + unset($data['verify_with_email']); + } if (\array_key_exists('email_address', $data)) { $object->setEmailAddress($data['email_address']); unset($data['email_address']); @@ -153,7 +166,12 @@ public function denormalize($data, $type, $format = null, array $context = []) public function normalize($object, $format = null, array $context = []) { $data = []; - $data['email_address'] = $object->getEmailAddress(); + if ($object->isInitialized('verifyWithEmail') && null !== $object->getVerifyWithEmail()) { + $data['verify_with_email'] = $object->getVerifyWithEmail(); + } + if ($object->isInitialized('emailAddress') && null !== $object->getEmailAddress()) { + $data['email_address'] = $object->getEmailAddress(); + } if ($object->isInitialized('coupon') && null !== $object->getCoupon()) { $data['coupon'] = $object->getCoupon(); } diff --git a/src/Public/Normalizer/SignupsPostResponse200Normalizer.php b/src/Public/Normalizer/SignupsPostResponse200Normalizer.php index 7178f693..6255ba76 100644 --- a/src/Public/Normalizer/SignupsPostResponse200Normalizer.php +++ b/src/Public/Normalizer/SignupsPostResponse200Normalizer.php @@ -55,9 +55,17 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a $object->setId($data['id']); unset($data['id']); } - if (\array_key_exists('email_address', $data)) { + if (\array_key_exists('email_address', $data) && $data['email_address'] !== null) { $object->setEmailAddress($data['email_address']); unset($data['email_address']); + } elseif (\array_key_exists('email_address', $data) && $data['email_address'] === null) { + $object->setEmailAddress(null); + } + if (\array_key_exists('url', $data) && $data['url'] !== null) { + $object->setUrl($data['url']); + unset($data['url']); + } elseif (\array_key_exists('url', $data) && $data['url'] === null) { + $object->setUrl(null); } foreach ($data as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -73,6 +81,7 @@ public function normalize(mixed $object, ?string $format = null, array $context $data = []; $data['id'] = $object->getId(); $data['email_address'] = $object->getEmailAddress(); + $data['url'] = $object->getUrl(); foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { $data[$key] = $value; @@ -121,9 +130,17 @@ public function denormalize($data, $type, $format = null, array $context = []) $object->setId($data['id']); unset($data['id']); } - if (\array_key_exists('email_address', $data)) { + if (\array_key_exists('email_address', $data) && $data['email_address'] !== null) { $object->setEmailAddress($data['email_address']); unset($data['email_address']); + } elseif (\array_key_exists('email_address', $data) && $data['email_address'] === null) { + $object->setEmailAddress(null); + } + if (\array_key_exists('url', $data) && $data['url'] !== null) { + $object->setUrl($data['url']); + unset($data['url']); + } elseif (\array_key_exists('url', $data) && $data['url'] === null) { + $object->setUrl(null); } foreach ($data as $key => $value) { if (preg_match('/.*/', (string) $key)) { @@ -142,6 +159,7 @@ public function normalize($object, $format = null, array $context = []) $data = []; $data['id'] = $object->getId(); $data['email_address'] = $object->getEmailAddress(); + $data['url'] = $object->getUrl(); foreach ($object as $key => $value) { if (preg_match('/.*/', (string) $key)) { $data[$key] = $value;