@nutanix-scratch/dataprotection-js-client 4.0.1-alpha.4 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +202 -49
- package/README.md +64 -41
- package/dist/Ntnx-Dataprotection-js-client-prod.js +1 -11
- package/dist/Ntnx-Dataprotection-js-client.js +669 -1486
- package/dist/es/ApiClient.d.ts +9 -1
- package/dist/es/ApiClient.js +476 -261
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +23 -25
- package/dist/es/apis/protectedresources-endpoints.d.ts +52 -0
- package/dist/es/apis/protectedresources-endpoints.js +192 -0
- package/dist/es/apis/recoverypoints-endpoints.d.ts +186 -0
- package/dist/es/apis/recoverypoints-endpoints.js +655 -0
- package/dist/es/index.d.ts +95 -99
- package/dist/es/index.js +268 -285
- package/dist/es/models/common/v1/config/Flag.d.ts +33 -27
- package/dist/es/models/common/v1/config/Flag.js +86 -44
- package/dist/es/models/common/v1/config/IPAddress.d.ts +77 -0
- package/dist/es/models/common/v1/config/IPAddress.js +323 -0
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +41 -27
- package/dist/es/models/common/v1/config/IPv4Address.js +85 -46
- package/dist/es/models/common/v1/config/IPv6Address.d.ts +76 -0
- package/dist/es/models/common/v1/config/IPv6Address.js +329 -0
- package/dist/es/models/common/v1/config/KVPair.d.ts +36 -27
- package/dist/es/models/common/v1/config/KVPair.js +94 -50
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/es/models/common/v1/config/Message.d.ts +42 -39
- package/dist/es/models/common/v1/config/Message.js +78 -48
- package/dist/es/models/common/v1/config/MessageSeverity.js +15 -16
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +25 -23
- package/dist/es/models/common/v1/config/TenantAwareModel.js +75 -45
- package/dist/es/models/common/v1/response/ApiLink.d.ts +29 -27
- package/dist/es/models/common/v1/response/ApiLink.js +75 -45
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +82 -47
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +95 -53
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +26 -20
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +100 -63
- package/dist/{lib/models/dataprotection/v4/config/PowerState.d.ts → es/models/dataprotection/v4/common/BackupType.d.ts} +6 -6
- package/dist/es/models/dataprotection/v4/common/BackupType.js +85 -0
- package/dist/es/models/dataprotection/v4/common/BaseRecoveryPoint.d.ts +49 -54
- package/dist/es/models/dataprotection/v4/common/BaseRecoveryPoint.js +113 -112
- package/dist/es/models/dataprotection/v4/common/BaseVmRecoveryPoint.d.ts +97 -0
- package/dist/es/models/dataprotection/v4/common/BaseVmRecoveryPoint.js +513 -0
- package/dist/es/models/dataprotection/v4/common/ClusterInfo.d.ts +81 -0
- package/dist/es/models/dataprotection/v4/common/ClusterInfo.js +312 -0
- package/dist/es/models/dataprotection/v4/common/DiskRecoveryPoint.d.ts +64 -0
- package/dist/es/models/dataprotection/v4/common/DiskRecoveryPoint.js +314 -0
- package/dist/es/models/dataprotection/v4/common/RecoveryPointStatus.js +11 -24
- package/dist/es/models/dataprotection/v4/common/RecoveryPointType.js +9 -10
- package/dist/es/models/dataprotection/v4/common/VssProperties.d.ts +97 -0
- package/dist/es/models/dataprotection/v4/common/VssProperties.js +407 -0
- package/dist/es/models/dataprotection/v4/config/AhvVmOverrideSpec.d.ts +23 -21
- package/dist/es/models/dataprotection/v4/config/AhvVmOverrideSpec.js +75 -45
- package/dist/es/models/dataprotection/v4/config/AmazonS3Bucket.d.ts +64 -0
- package/dist/es/models/dataprotection/v4/config/AmazonS3Bucket.js +321 -0
- package/dist/es/models/dataprotection/v4/config/AzureBlobStorageContainer.d.ts +64 -0
- package/dist/es/models/dataprotection/v4/config/AzureBlobStorageContainer.js +321 -0
- package/dist/es/models/dataprotection/v4/config/ClusterInfoApiResponse.d.ts +99 -0
- package/dist/es/models/dataprotection/v4/config/ClusterInfoApiResponse.js +343 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroup.d.ts +76 -33
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroup.js +201 -73
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMember.d.ts +43 -45
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMember.js +107 -110
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMemberType.js +11 -12
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.d.ts +32 -37
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.js +119 -91
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupProjection.d.ts +6 -1
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupProjection.js +71 -44
- package/dist/es/models/dataprotection/v4/config/CreateConsistencyGroupApiResponse.d.ts +99 -0
- package/dist/es/models/dataprotection/v4/config/CreateConsistencyGroupApiResponse.js +343 -0
- package/dist/es/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.d.ts +66 -26
- package/dist/es/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.js +87 -62
- package/dist/es/models/dataprotection/v4/config/DataProtectionSiteReference.d.ts +39 -27
- package/dist/es/models/dataprotection/v4/config/DataProtectionSiteReference.js +100 -64
- package/dist/es/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.d.ts +65 -26
- package/dist/es/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.js +87 -58
- package/dist/es/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.d.ts +66 -26
- package/dist/es/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.js +87 -62
- package/dist/es/models/dataprotection/v4/config/EsxiVmOverrideSpec.d.ts +23 -21
- package/dist/es/models/dataprotection/v4/config/EsxiVmOverrideSpec.js +75 -45
- package/dist/es/models/dataprotection/v4/config/ExpirationTimeSpec.d.ts +62 -0
- package/dist/es/models/dataprotection/v4/config/ExpirationTimeSpec.js +280 -0
- package/dist/es/models/dataprotection/v4/config/GetProtectedResourceApiResponse.d.ts +99 -0
- package/dist/es/models/dataprotection/v4/config/GetProtectedResourceApiResponse.js +343 -0
- package/dist/es/models/dataprotection/v4/config/GetRecoveryPointApiResponse.d.ts +99 -0
- package/dist/es/models/dataprotection/v4/config/GetRecoveryPointApiResponse.js +343 -0
- package/dist/es/models/dataprotection/v4/config/GetVmRecoveryPointApiResponse.d.ts +101 -0
- package/dist/es/models/dataprotection/v4/config/GetVmRecoveryPointApiResponse.js +343 -0
- package/dist/es/models/dataprotection/v4/config/HostReference.d.ts +26 -20
- package/dist/es/models/dataprotection/v4/config/HostReference.js +106 -58
- package/dist/es/models/dataprotection/v4/config/HostType.js +10 -11
- package/dist/es/models/dataprotection/v4/config/IpAddress.d.ts +29 -24
- package/dist/es/models/dataprotection/v4/config/IpAddress.js +76 -43
- package/dist/es/models/dataprotection/v4/config/ListRecoveryPointsApiResponse.d.ts +100 -0
- package/dist/es/models/dataprotection/v4/config/ListRecoveryPointsApiResponse.js +370 -0
- package/dist/es/models/dataprotection/v4/config/LocationReference.d.ts +25 -23
- package/dist/es/models/dataprotection/v4/config/LocationReference.js +76 -46
- package/dist/es/models/dataprotection/v4/config/MigrateConsistencyGroupApiResponse.d.ts +99 -0
- package/dist/es/models/dataprotection/v4/config/MigrateConsistencyGroupApiResponse.js +343 -0
- package/dist/es/models/dataprotection/v4/config/NutanixObjectsBucket.d.ts +52 -0
- package/dist/es/models/dataprotection/v4/config/NutanixObjectsBucket.js +277 -0
- package/dist/es/models/dataprotection/v4/config/ObjectStorageType.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/ObjectStorageType.js +91 -0
- package/dist/es/models/dataprotection/v4/config/{ValidationSeverity.d.ts → ProtectedEntityType.d.ts} +6 -6
- package/dist/es/models/dataprotection/v4/config/ProtectedEntityType.js +85 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResource.d.ts +120 -40
- package/dist/es/models/dataprotection/v4/config/ProtectedResource.js +226 -89
- package/dist/es/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.d.ts +66 -26
- package/dist/es/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.js +87 -58
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceReplicationStatus.js +17 -30
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.d.ts +66 -26
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.js +87 -58
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.d.ts +34 -29
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.js +81 -47
- package/dist/es/models/dataprotection/v4/config/RecoveryInfo.d.ts +30 -21
- package/dist/es/models/dataprotection/v4/config/RecoveryInfo.js +75 -42
- package/dist/es/models/dataprotection/v4/config/RecoveryPoint.d.ts +111 -74
- package/dist/es/models/dataprotection/v4/config/RecoveryPoint.js +165 -190
- package/dist/es/models/dataprotection/v4/config/RecoveryPointProjection.d.ts +10 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointProjection.js +156 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.d.ts +66 -26
- package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.js +87 -62
- package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicationSpec.d.ts +46 -25
- package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicationSpec.js +161 -106
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRepository.d.ts +63 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRepository.js +374 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRepositoryProjection.d.ts +10 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRepositoryProjection.js +152 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRestorationSpec.d.ts +59 -39
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRestorationSpec.js +90 -60
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.d.ts +66 -26
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.js +87 -62
- package/dist/es/models/dataprotection/v4/config/ReplicationState.d.ts +53 -41
- package/dist/es/models/dataprotection/v4/config/ReplicationState.js +123 -85
- package/dist/es/models/dataprotection/v4/config/RestorableTimeRange.d.ts +27 -25
- package/dist/es/models/dataprotection/v4/config/RestorableTimeRange.js +79 -48
- package/dist/es/models/dataprotection/v4/config/SiteProtectionInfo.d.ts +90 -0
- package/dist/es/models/dataprotection/v4/config/SiteProtectionInfo.js +344 -0
- package/dist/es/models/dataprotection/v4/config/SiteReference.d.ts +29 -27
- package/dist/es/models/dataprotection/v4/config/SiteReference.js +74 -44
- package/dist/es/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.d.ts +66 -26
- package/dist/es/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.js +87 -58
- package/dist/es/models/dataprotection/v4/config/SynchronousReplicationRole.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/SynchronousReplicationRole.js +97 -0
- package/dist/es/models/dataprotection/v4/config/UpdateConsistencyGroupApiResponse.d.ts +99 -0
- package/dist/es/models/dataprotection/v4/config/UpdateConsistencyGroupApiResponse.js +365 -0
- package/dist/es/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.d.ts +66 -26
- package/dist/es/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.js +87 -58
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPoint.d.ts +10 -0
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPoint.js +154 -0
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.d.ts +24 -48
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.js +95 -139
- package/dist/es/models/dataprotection/v4/config/VolumeGroupOverrideSpec.d.ts +23 -21
- package/dist/es/models/dataprotection/v4/config/VolumeGroupOverrideSpec.js +73 -43
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.d.ts +83 -31
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.js +269 -110
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.d.ts +36 -34
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.js +97 -69
- package/dist/es/models/dataprotection/v4/config/VolumeGroupSyncContext.d.ts +40 -40
- package/dist/es/models/dataprotection/v4/config/VolumeGroupSyncContext.js +122 -95
- package/dist/es/models/dataprotection/v4/config/Witness.d.ts +56 -34
- package/dist/es/models/dataprotection/v4/config/Witness.js +123 -65
- package/dist/es/models/dataprotection/v4/config/WitnessAvailabilityStatus.js +11 -12
- package/dist/es/models/dataprotection/v4/content/BaseRecoveryPointSpec.d.ts +64 -0
- package/dist/es/models/dataprotection/v4/content/BaseRecoveryPointSpec.js +317 -0
- package/dist/es/models/dataprotection/v4/content/ChangedRegion.d.ts +93 -0
- package/dist/es/models/dataprotection/v4/content/ChangedRegion.js +363 -0
- package/dist/es/models/dataprotection/v4/content/ChangedVmRegionsApiResponse.d.ts +99 -0
- package/dist/es/models/dataprotection/v4/content/ChangedVmRegionsApiResponse.js +365 -0
- package/dist/es/models/dataprotection/v4/content/ChangedVolumeGroupRegionsApiResponse.d.ts +99 -0
- package/dist/es/models/dataprotection/v4/content/ChangedVolumeGroupRegionsApiResponse.js +365 -0
- package/dist/es/models/dataprotection/v4/content/ClusterDiscoverOperation.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/content/ClusterDiscoverOperation.js +85 -0
- package/dist/es/models/dataprotection/v4/content/ClusterDiscoverSpec.d.ts +79 -0
- package/dist/es/models/dataprotection/v4/content/ClusterDiscoverSpec.js +341 -0
- package/dist/es/models/dataprotection/v4/content/ComputeChangedRegionsClusterDiscoverSpec.d.ts +76 -0
- package/dist/es/models/dataprotection/v4/content/ComputeChangedRegionsClusterDiscoverSpec.js +358 -0
- package/dist/es/models/dataprotection/v4/content/DiskRecoveryPointReference.d.ts +64 -0
- package/dist/es/models/dataprotection/v4/content/DiskRecoveryPointReference.js +318 -0
- package/dist/es/models/dataprotection/v4/content/GetVssMetadataApiResponse.d.ts +98 -0
- package/dist/es/models/dataprotection/v4/content/GetVssMetadataApiResponse.js +342 -0
- package/dist/es/models/dataprotection/v4/content/GetVssMetadataClusterDiscoverSpec.d.ts +62 -0
- package/dist/es/models/dataprotection/v4/content/GetVssMetadataClusterDiscoverSpec.js +284 -0
- package/dist/es/models/dataprotection/v4/{config/PowerState.d.ts → content/RegionType.d.ts} +6 -6
- package/dist/es/models/dataprotection/v4/content/RegionType.js +85 -0
- package/dist/es/models/dataprotection/v4/content/VmDiskRecoveryPointClusterDiscoverSpec.d.ts +30 -0
- package/dist/es/models/dataprotection/v4/content/VmDiskRecoveryPointClusterDiscoverSpec.js +269 -0
- package/dist/es/models/dataprotection/v4/content/VmDiskRecoveryPointReference.d.ts +30 -0
- package/dist/es/models/dataprotection/v4/content/VmDiskRecoveryPointReference.js +270 -0
- package/dist/es/models/dataprotection/v4/content/VmRecoveryPointChangedRegionsComputeSpec.d.ts +57 -0
- package/dist/es/models/dataprotection/v4/content/VmRecoveryPointChangedRegionsComputeSpec.js +360 -0
- package/dist/es/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointClusterDiscoverSpec.d.ts +30 -0
- package/dist/es/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointClusterDiscoverSpec.js +269 -0
- package/dist/es/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointReference.d.ts +30 -0
- package/dist/es/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointReference.js +270 -0
- package/dist/es/models/dataprotection/v4/content/VolumeGroupRecoveryPointChangedRegionsComputeSpec.d.ts +57 -0
- package/dist/es/models/dataprotection/v4/content/VolumeGroupRecoveryPointChangedRegionsComputeSpec.js +360 -0
- package/dist/es/models/dataprotection/v4/error/AppMessage.d.ts +68 -51
- package/dist/es/models/dataprotection/v4/error/AppMessage.js +101 -59
- package/dist/es/models/dataprotection/v4/error/ErrorResponse.d.ts +24 -20
- package/dist/es/models/dataprotection/v4/error/ErrorResponse.js +88 -66
- package/dist/es/models/dataprotection/v4/error/SchemaValidationError.d.ts +64 -44
- package/dist/es/models/dataprotection/v4/error/SchemaValidationError.js +98 -52
- package/dist/es/models/dataprotection/v4/error/SchemaValidationErrorMessage.d.ts +41 -33
- package/dist/es/models/dataprotection/v4/error/SchemaValidationErrorMessage.js +85 -46
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +23 -21
- package/dist/es/models/prism/v4/config/TaskReference.js +74 -47
- package/dist/es/models/validation/ValidationError.js +12 -14
- package/dist/es/models/validation/ValidationScopes.js +1 -2
- package/dist/es/utils/ValidationUtils.js +12 -14
- package/dist/lib/ApiClient.d.ts +9 -1
- package/dist/lib/ApiClient.js +476 -261
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +23 -25
- package/dist/lib/apis/protectedresources-endpoints.d.ts +52 -0
- package/dist/lib/apis/protectedresources-endpoints.js +192 -0
- package/dist/lib/apis/recoverypoints-endpoints.d.ts +186 -0
- package/dist/lib/apis/recoverypoints-endpoints.js +655 -0
- package/dist/lib/index.d.ts +95 -99
- package/dist/lib/index.js +268 -285
- package/dist/lib/models/common/v1/config/Flag.d.ts +33 -27
- package/dist/lib/models/common/v1/config/Flag.js +86 -44
- package/dist/lib/models/common/v1/config/IPAddress.d.ts +77 -0
- package/dist/lib/models/common/v1/config/IPAddress.js +323 -0
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +41 -27
- package/dist/lib/models/common/v1/config/IPv4Address.js +85 -46
- package/dist/lib/models/common/v1/config/IPv6Address.d.ts +76 -0
- package/dist/lib/models/common/v1/config/IPv6Address.js +329 -0
- package/dist/lib/models/common/v1/config/KVPair.d.ts +36 -27
- package/dist/lib/models/common/v1/config/KVPair.js +94 -50
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +42 -39
- package/dist/lib/models/common/v1/config/Message.js +78 -48
- package/dist/lib/models/common/v1/config/MessageSeverity.js +15 -16
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +25 -23
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +75 -45
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +29 -27
- package/dist/lib/models/common/v1/response/ApiLink.js +75 -45
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +82 -47
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +95 -53
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +26 -20
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +100 -63
- package/dist/lib/models/dataprotection/v4/{config/HypervisorType.d.ts → common/BackupType.d.ts} +6 -6
- package/dist/lib/models/dataprotection/v4/common/BackupType.js +85 -0
- package/dist/lib/models/dataprotection/v4/common/BaseRecoveryPoint.d.ts +49 -54
- package/dist/lib/models/dataprotection/v4/common/BaseRecoveryPoint.js +113 -112
- package/dist/lib/models/dataprotection/v4/common/BaseVmRecoveryPoint.d.ts +97 -0
- package/dist/lib/models/dataprotection/v4/common/BaseVmRecoveryPoint.js +513 -0
- package/dist/lib/models/dataprotection/v4/common/ClusterInfo.d.ts +81 -0
- package/dist/lib/models/dataprotection/v4/common/ClusterInfo.js +312 -0
- package/dist/lib/models/dataprotection/v4/common/DiskRecoveryPoint.d.ts +64 -0
- package/dist/lib/models/dataprotection/v4/common/DiskRecoveryPoint.js +314 -0
- package/dist/lib/models/dataprotection/v4/common/RecoveryPointStatus.js +11 -24
- package/dist/lib/models/dataprotection/v4/common/RecoveryPointType.js +9 -10
- package/dist/lib/models/dataprotection/v4/common/VssProperties.d.ts +97 -0
- package/dist/lib/models/dataprotection/v4/common/VssProperties.js +407 -0
- package/dist/lib/models/dataprotection/v4/config/AhvVmOverrideSpec.d.ts +23 -21
- package/dist/lib/models/dataprotection/v4/config/AhvVmOverrideSpec.js +75 -45
- package/dist/lib/models/dataprotection/v4/config/AmazonS3Bucket.d.ts +64 -0
- package/dist/lib/models/dataprotection/v4/config/AmazonS3Bucket.js +321 -0
- package/dist/lib/models/dataprotection/v4/config/AzureBlobStorageContainer.d.ts +64 -0
- package/dist/lib/models/dataprotection/v4/config/AzureBlobStorageContainer.js +321 -0
- package/dist/lib/models/dataprotection/v4/config/ClusterInfoApiResponse.d.ts +99 -0
- package/dist/lib/models/dataprotection/v4/config/ClusterInfoApiResponse.js +343 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroup.d.ts +76 -33
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroup.js +201 -73
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMember.d.ts +43 -45
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMember.js +107 -110
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMemberType.js +11 -12
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.d.ts +32 -37
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.js +119 -91
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupProjection.d.ts +6 -1
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupProjection.js +71 -44
- package/dist/lib/models/dataprotection/v4/config/CreateConsistencyGroupApiResponse.d.ts +99 -0
- package/dist/lib/models/dataprotection/v4/config/CreateConsistencyGroupApiResponse.js +343 -0
- package/dist/lib/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.d.ts +66 -26
- package/dist/lib/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.js +87 -62
- package/dist/lib/models/dataprotection/v4/config/DataProtectionSiteReference.d.ts +39 -27
- package/dist/lib/models/dataprotection/v4/config/DataProtectionSiteReference.js +100 -64
- package/dist/lib/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.d.ts +65 -26
- package/dist/lib/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.js +87 -58
- package/dist/lib/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.d.ts +66 -26
- package/dist/lib/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.js +87 -62
- package/dist/lib/models/dataprotection/v4/config/EsxiVmOverrideSpec.d.ts +23 -21
- package/dist/lib/models/dataprotection/v4/config/EsxiVmOverrideSpec.js +75 -45
- package/dist/lib/models/dataprotection/v4/config/ExpirationTimeSpec.d.ts +62 -0
- package/dist/lib/models/dataprotection/v4/config/ExpirationTimeSpec.js +280 -0
- package/dist/lib/models/dataprotection/v4/config/GetProtectedResourceApiResponse.d.ts +99 -0
- package/dist/lib/models/dataprotection/v4/config/GetProtectedResourceApiResponse.js +343 -0
- package/dist/lib/models/dataprotection/v4/config/GetRecoveryPointApiResponse.d.ts +99 -0
- package/dist/lib/models/dataprotection/v4/config/GetRecoveryPointApiResponse.js +343 -0
- package/dist/lib/models/dataprotection/v4/config/GetVmRecoveryPointApiResponse.d.ts +101 -0
- package/dist/lib/models/dataprotection/v4/config/GetVmRecoveryPointApiResponse.js +343 -0
- package/dist/lib/models/dataprotection/v4/config/HostReference.d.ts +26 -20
- package/dist/lib/models/dataprotection/v4/config/HostReference.js +106 -58
- package/dist/lib/models/dataprotection/v4/config/HostType.js +10 -11
- package/dist/lib/models/dataprotection/v4/config/IpAddress.d.ts +29 -24
- package/dist/lib/models/dataprotection/v4/config/IpAddress.js +76 -43
- package/dist/lib/models/dataprotection/v4/config/ListRecoveryPointsApiResponse.d.ts +100 -0
- package/dist/lib/models/dataprotection/v4/config/ListRecoveryPointsApiResponse.js +370 -0
- package/dist/lib/models/dataprotection/v4/config/LocationReference.d.ts +25 -23
- package/dist/lib/models/dataprotection/v4/config/LocationReference.js +76 -46
- package/dist/lib/models/dataprotection/v4/config/MigrateConsistencyGroupApiResponse.d.ts +99 -0
- package/dist/lib/models/dataprotection/v4/config/MigrateConsistencyGroupApiResponse.js +343 -0
- package/dist/lib/models/dataprotection/v4/config/NutanixObjectsBucket.d.ts +52 -0
- package/dist/lib/models/dataprotection/v4/config/NutanixObjectsBucket.js +277 -0
- package/dist/lib/models/dataprotection/v4/config/ObjectStorageType.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/ObjectStorageType.js +91 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedEntityType.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedEntityType.js +85 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResource.d.ts +120 -40
- package/dist/lib/models/dataprotection/v4/config/ProtectedResource.js +226 -89
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.d.ts +66 -26
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.js +87 -58
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceReplicationStatus.js +17 -30
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.d.ts +66 -26
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.js +87 -58
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.d.ts +34 -29
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.js +81 -47
- package/dist/lib/models/dataprotection/v4/config/RecoveryInfo.d.ts +30 -21
- package/dist/lib/models/dataprotection/v4/config/RecoveryInfo.js +75 -42
- package/dist/lib/models/dataprotection/v4/config/RecoveryPoint.d.ts +111 -74
- package/dist/lib/models/dataprotection/v4/config/RecoveryPoint.js +165 -190
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointProjection.d.ts +10 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointProjection.js +156 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.d.ts +66 -26
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.js +87 -62
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicationSpec.d.ts +46 -25
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicationSpec.js +161 -106
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRepository.d.ts +63 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRepository.js +374 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRepositoryProjection.d.ts +10 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRepositoryProjection.js +152 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestorationSpec.d.ts +59 -39
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestorationSpec.js +90 -60
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.d.ts +66 -26
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.js +87 -62
- package/dist/lib/models/dataprotection/v4/config/ReplicationState.d.ts +53 -41
- package/dist/lib/models/dataprotection/v4/config/ReplicationState.js +123 -85
- package/dist/lib/models/dataprotection/v4/config/RestorableTimeRange.d.ts +27 -25
- package/dist/lib/models/dataprotection/v4/config/RestorableTimeRange.js +79 -48
- package/dist/lib/models/dataprotection/v4/config/SiteProtectionInfo.d.ts +90 -0
- package/dist/lib/models/dataprotection/v4/config/SiteProtectionInfo.js +344 -0
- package/dist/lib/models/dataprotection/v4/config/SiteReference.d.ts +29 -27
- package/dist/lib/models/dataprotection/v4/config/SiteReference.js +74 -44
- package/dist/lib/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.d.ts +66 -26
- package/dist/lib/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.js +87 -58
- package/dist/lib/models/dataprotection/v4/config/SynchronousReplicationRole.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/SynchronousReplicationRole.js +97 -0
- package/dist/lib/models/dataprotection/v4/config/UpdateConsistencyGroupApiResponse.d.ts +99 -0
- package/dist/lib/models/dataprotection/v4/config/UpdateConsistencyGroupApiResponse.js +365 -0
- package/dist/lib/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.d.ts +66 -26
- package/dist/lib/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.js +87 -58
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPoint.d.ts +10 -0
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPoint.js +154 -0
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.d.ts +24 -48
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.js +95 -139
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupOverrideSpec.d.ts +23 -21
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupOverrideSpec.js +73 -43
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.d.ts +83 -31
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.js +269 -110
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.d.ts +36 -34
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.js +97 -69
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupSyncContext.d.ts +40 -40
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupSyncContext.js +122 -95
- package/dist/lib/models/dataprotection/v4/config/Witness.d.ts +56 -34
- package/dist/lib/models/dataprotection/v4/config/Witness.js +123 -65
- package/dist/lib/models/dataprotection/v4/config/WitnessAvailabilityStatus.js +11 -12
- package/dist/lib/models/dataprotection/v4/content/BaseRecoveryPointSpec.d.ts +64 -0
- package/dist/lib/models/dataprotection/v4/content/BaseRecoveryPointSpec.js +317 -0
- package/dist/lib/models/dataprotection/v4/content/ChangedRegion.d.ts +93 -0
- package/dist/lib/models/dataprotection/v4/content/ChangedRegion.js +363 -0
- package/dist/lib/models/dataprotection/v4/content/ChangedVmRegionsApiResponse.d.ts +99 -0
- package/dist/lib/models/dataprotection/v4/content/ChangedVmRegionsApiResponse.js +365 -0
- package/dist/lib/models/dataprotection/v4/content/ChangedVolumeGroupRegionsApiResponse.d.ts +99 -0
- package/dist/lib/models/dataprotection/v4/content/ChangedVolumeGroupRegionsApiResponse.js +365 -0
- package/dist/lib/models/dataprotection/v4/content/ClusterDiscoverOperation.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/content/ClusterDiscoverOperation.js +85 -0
- package/dist/lib/models/dataprotection/v4/content/ClusterDiscoverSpec.d.ts +79 -0
- package/dist/lib/models/dataprotection/v4/content/ClusterDiscoverSpec.js +341 -0
- package/dist/lib/models/dataprotection/v4/content/ComputeChangedRegionsClusterDiscoverSpec.d.ts +76 -0
- package/dist/lib/models/dataprotection/v4/content/ComputeChangedRegionsClusterDiscoverSpec.js +358 -0
- package/dist/lib/models/dataprotection/v4/content/DiskRecoveryPointReference.d.ts +64 -0
- package/dist/lib/models/dataprotection/v4/content/DiskRecoveryPointReference.js +318 -0
- package/dist/lib/models/dataprotection/v4/content/GetVssMetadataApiResponse.d.ts +98 -0
- package/dist/lib/models/dataprotection/v4/content/GetVssMetadataApiResponse.js +342 -0
- package/dist/lib/models/dataprotection/v4/content/GetVssMetadataClusterDiscoverSpec.d.ts +62 -0
- package/dist/lib/models/dataprotection/v4/content/GetVssMetadataClusterDiscoverSpec.js +284 -0
- package/dist/{es/models/dataprotection/v4/config/HypervisorType.d.ts → lib/models/dataprotection/v4/content/RegionType.d.ts} +6 -6
- package/dist/lib/models/dataprotection/v4/content/RegionType.js +85 -0
- package/dist/lib/models/dataprotection/v4/content/VmDiskRecoveryPointClusterDiscoverSpec.d.ts +30 -0
- package/dist/lib/models/dataprotection/v4/content/VmDiskRecoveryPointClusterDiscoverSpec.js +269 -0
- package/dist/lib/models/dataprotection/v4/content/VmDiskRecoveryPointReference.d.ts +30 -0
- package/dist/lib/models/dataprotection/v4/content/VmDiskRecoveryPointReference.js +270 -0
- package/dist/lib/models/dataprotection/v4/content/VmRecoveryPointChangedRegionsComputeSpec.d.ts +57 -0
- package/dist/lib/models/dataprotection/v4/content/VmRecoveryPointChangedRegionsComputeSpec.js +360 -0
- package/dist/lib/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointClusterDiscoverSpec.d.ts +30 -0
- package/dist/lib/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointClusterDiscoverSpec.js +269 -0
- package/dist/lib/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointReference.d.ts +30 -0
- package/dist/lib/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointReference.js +270 -0
- package/dist/lib/models/dataprotection/v4/content/VolumeGroupRecoveryPointChangedRegionsComputeSpec.d.ts +57 -0
- package/dist/lib/models/dataprotection/v4/content/VolumeGroupRecoveryPointChangedRegionsComputeSpec.js +360 -0
- package/dist/lib/models/dataprotection/v4/error/AppMessage.d.ts +68 -51
- package/dist/lib/models/dataprotection/v4/error/AppMessage.js +101 -59
- package/dist/lib/models/dataprotection/v4/error/ErrorResponse.d.ts +24 -20
- package/dist/lib/models/dataprotection/v4/error/ErrorResponse.js +88 -66
- package/dist/lib/models/dataprotection/v4/error/SchemaValidationError.d.ts +64 -44
- package/dist/lib/models/dataprotection/v4/error/SchemaValidationError.js +98 -52
- package/dist/lib/models/dataprotection/v4/error/SchemaValidationErrorMessage.d.ts +41 -33
- package/dist/lib/models/dataprotection/v4/error/SchemaValidationErrorMessage.js +85 -46
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +23 -21
- package/dist/lib/models/prism/v4/config/TaskReference.js +74 -47
- package/dist/lib/models/validation/ValidationError.js +12 -14
- package/dist/lib/models/validation/ValidationScopes.js +1 -2
- package/dist/lib/utils/ValidationUtils.js +12 -14
- package/package.json +5 -4
- package/dist/es/apis/consistencygroup-endpoints.d.ts +0 -98
- package/dist/es/apis/consistencygroup-endpoints.js +0 -304
- package/dist/es/models/dataprotection/v4/common/VendorSpecificProperty.d.ts +0 -70
- package/dist/es/models/dataprotection/v4/common/VendorSpecificProperty.js +0 -286
- package/dist/es/models/dataprotection/v4/config/Category.d.ts +0 -70
- package/dist/es/models/dataprotection/v4/config/Category.js +0 -286
- package/dist/es/models/dataprotection/v4/config/ChangedRegions.d.ts +0 -62
- package/dist/es/models/dataprotection/v4/config/ChangedRegions.js +0 -295
- package/dist/es/models/dataprotection/v4/config/ChangedRegionsListApiResponse.d.ts +0 -59
- package/dist/es/models/dataprotection/v4/config/ChangedRegionsListApiResponse.js +0 -314
- package/dist/es/models/dataprotection/v4/config/ClusterReference.d.ts +0 -69
- package/dist/es/models/dataprotection/v4/config/ClusterReference.js +0 -285
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupApiResponse.d.ts +0 -59
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupApiResponse.js +0 -314
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupListApiResponse.d.ts +0 -59
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupListApiResponse.js +0 -341
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrateApiResponse.d.ts +0 -59
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrateApiResponse.js +0 -318
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupRecoveryPointSpec.d.ts +0 -67
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupRecoveryPointSpec.js +0 -285
- package/dist/es/models/dataprotection/v4/config/CreateConsistencyGroupRecoveryPointApiResponse.d.ts +0 -59
- package/dist/es/models/dataprotection/v4/config/CreateConsistencyGroupRecoveryPointApiResponse.js +0 -318
- package/dist/es/models/dataprotection/v4/config/DataProtectionInfo.d.ts +0 -58
- package/dist/es/models/dataprotection/v4/config/DataProtectionInfo.js +0 -278
- package/dist/es/models/dataprotection/v4/config/DisasterRecoveryLocation.d.ts +0 -68
- package/dist/es/models/dataprotection/v4/config/DisasterRecoveryLocation.js +0 -297
- package/dist/es/models/dataprotection/v4/config/Disk.d.ts +0 -62
- package/dist/es/models/dataprotection/v4/config/Disk.js +0 -285
- package/dist/es/models/dataprotection/v4/config/DiskRecoveryPoint.d.ts +0 -37
- package/dist/es/models/dataprotection/v4/config/DiskRecoveryPoint.js +0 -254
- package/dist/es/models/dataprotection/v4/config/DiskRecoveryPointApiResponse.d.ts +0 -59
- package/dist/es/models/dataprotection/v4/config/DiskRecoveryPointApiResponse.js +0 -314
- package/dist/es/models/dataprotection/v4/config/DiskRecoveryPointListApiResponse.d.ts +0 -59
- package/dist/es/models/dataprotection/v4/config/DiskRecoveryPointListApiResponse.js +0 -336
- package/dist/es/models/dataprotection/v4/config/HardwareArchitecture.d.ts +0 -19
- package/dist/es/models/dataprotection/v4/config/HardwareArchitecture.js +0 -86
- package/dist/es/models/dataprotection/v4/config/HypervisorType.js +0 -92
- package/dist/es/models/dataprotection/v4/config/PowerState.js +0 -86
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceApiResponse.d.ts +0 -59
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceApiResponse.js +0 -314
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceEntityType.d.ts +0 -19
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceEntityType.js +0 -86
- package/dist/es/models/dataprotection/v4/config/RecoveryPointApiResponse.d.ts +0 -59
- package/dist/es/models/dataprotection/v4/config/RecoveryPointApiResponse.js +0 -314
- package/dist/es/models/dataprotection/v4/config/RecoveryPointListApiResponse.d.ts +0 -59
- package/dist/es/models/dataprotection/v4/config/RecoveryPointListApiResponse.js +0 -336
- package/dist/es/models/dataprotection/v4/config/Regions.d.ts +0 -62
- package/dist/es/models/dataprotection/v4/config/Regions.js +0 -282
- package/dist/es/models/dataprotection/v4/config/SetExpirationTimeSpec.d.ts +0 -57
- package/dist/es/models/dataprotection/v4/config/SetExpirationTimeSpec.js +0 -246
- package/dist/es/models/dataprotection/v4/config/Subnet.d.ts +0 -48
- package/dist/es/models/dataprotection/v4/config/Subnet.js +0 -242
- package/dist/es/models/dataprotection/v4/config/SyncedVolumeGroupByIdApiResponse.d.ts +0 -59
- package/dist/es/models/dataprotection/v4/config/SyncedVolumeGroupByIdApiResponse.js +0 -314
- package/dist/es/models/dataprotection/v4/config/VMRecoveryPoint.d.ts +0 -49
- package/dist/es/models/dataprotection/v4/config/VMRecoveryPoint.js +0 -295
- package/dist/es/models/dataprotection/v4/config/VMRecoveryPointApiResponse.d.ts +0 -59
- package/dist/es/models/dataprotection/v4/config/VMRecoveryPointApiResponse.js +0 -314
- package/dist/es/models/dataprotection/v4/config/VMRecoveryPointListApiResponse.d.ts +0 -59
- package/dist/es/models/dataprotection/v4/config/VMRecoveryPointListApiResponse.js +0 -336
- package/dist/es/models/dataprotection/v4/config/ValidateRecoveryPointResult.d.ts +0 -79
- package/dist/es/models/dataprotection/v4/config/ValidateRecoveryPointResult.js +0 -320
- package/dist/es/models/dataprotection/v4/config/ValidateRestoreVmRecoveryPointApiResponse.d.ts +0 -59
- package/dist/es/models/dataprotection/v4/config/ValidateRestoreVmRecoveryPointApiResponse.js +0 -336
- package/dist/es/models/dataprotection/v4/config/ValidationSeverity.js +0 -86
- package/dist/es/models/dataprotection/v4/config/Vm.d.ts +0 -140
- package/dist/es/models/dataprotection/v4/config/Vm.js +0 -545
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestorationSpec.d.ts +0 -70
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestorationSpec.js +0 -319
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreApiResponse.d.ts +0 -59
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreApiResponse.js +0 -318
- package/dist/es/models/dataprotection/v4/config/VmSubRecoveryPoint.d.ts +0 -98
- package/dist/es/models/dataprotection/v4/config/VmSubRecoveryPoint.js +0 -405
- package/dist/es/models/dataprotection/v4/config/VmSubRecoveryPointProjection.d.ts +0 -9
- package/dist/es/models/dataprotection/v4/config/VmSubRecoveryPointProjection.js +0 -132
- package/dist/es/models/dataprotection/v4/config/VolumeGroup.d.ts +0 -62
- package/dist/es/models/dataprotection/v4/config/VolumeGroup.js +0 -285
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointApiResponse.d.ts +0 -59
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointApiResponse.js +0 -314
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointListApiResponse.d.ts +0 -59
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointListApiResponse.js +0 -336
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestorationSpec.d.ts +0 -62
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestorationSpec.js +0 -288
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreApiResponse.d.ts +0 -59
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreApiResponse.js +0 -318
- package/dist/es/models/dataprotection/v4/config/VolumeGroupSubRecoveryPoint.d.ts +0 -98
- package/dist/es/models/dataprotection/v4/config/VolumeGroupSubRecoveryPoint.js +0 -407
- package/dist/es/models/dataprotection/v4/config/VolumeGroupSubRecoveryPointProjection.d.ts +0 -9
- package/dist/es/models/dataprotection/v4/config/VolumeGroupSubRecoveryPointProjection.js +0 -132
- package/dist/es/models/dataprotection/v4/config/VpcReference.d.ts +0 -69
- package/dist/es/models/dataprotection/v4/config/VpcReference.js +0 -285
- package/dist/es/models/dataprotection/v4/config/WitnessApiResponse.d.ts +0 -59
- package/dist/es/models/dataprotection/v4/config/WitnessApiResponse.js +0 -314
- package/dist/es/models/storage/v4/config/Task.d.ts +0 -50
- package/dist/es/models/storage/v4/config/Task.js +0 -254
- package/dist/lib/apis/consistencygroup-endpoints.d.ts +0 -98
- package/dist/lib/apis/consistencygroup-endpoints.js +0 -304
- package/dist/lib/models/dataprotection/v4/common/VendorSpecificProperty.d.ts +0 -70
- package/dist/lib/models/dataprotection/v4/common/VendorSpecificProperty.js +0 -286
- package/dist/lib/models/dataprotection/v4/config/Category.d.ts +0 -70
- package/dist/lib/models/dataprotection/v4/config/Category.js +0 -286
- package/dist/lib/models/dataprotection/v4/config/ChangedRegions.d.ts +0 -62
- package/dist/lib/models/dataprotection/v4/config/ChangedRegions.js +0 -295
- package/dist/lib/models/dataprotection/v4/config/ChangedRegionsListApiResponse.d.ts +0 -59
- package/dist/lib/models/dataprotection/v4/config/ChangedRegionsListApiResponse.js +0 -314
- package/dist/lib/models/dataprotection/v4/config/ClusterReference.d.ts +0 -69
- package/dist/lib/models/dataprotection/v4/config/ClusterReference.js +0 -285
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupApiResponse.d.ts +0 -59
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupApiResponse.js +0 -314
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupListApiResponse.d.ts +0 -59
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupListApiResponse.js +0 -341
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrateApiResponse.d.ts +0 -59
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrateApiResponse.js +0 -318
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupRecoveryPointSpec.d.ts +0 -67
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupRecoveryPointSpec.js +0 -285
- package/dist/lib/models/dataprotection/v4/config/CreateConsistencyGroupRecoveryPointApiResponse.d.ts +0 -59
- package/dist/lib/models/dataprotection/v4/config/CreateConsistencyGroupRecoveryPointApiResponse.js +0 -318
- package/dist/lib/models/dataprotection/v4/config/DataProtectionInfo.d.ts +0 -58
- package/dist/lib/models/dataprotection/v4/config/DataProtectionInfo.js +0 -278
- package/dist/lib/models/dataprotection/v4/config/DisasterRecoveryLocation.d.ts +0 -68
- package/dist/lib/models/dataprotection/v4/config/DisasterRecoveryLocation.js +0 -297
- package/dist/lib/models/dataprotection/v4/config/Disk.d.ts +0 -62
- package/dist/lib/models/dataprotection/v4/config/Disk.js +0 -285
- package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPoint.d.ts +0 -37
- package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPoint.js +0 -254
- package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPointApiResponse.d.ts +0 -59
- package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPointApiResponse.js +0 -314
- package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPointListApiResponse.d.ts +0 -59
- package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPointListApiResponse.js +0 -336
- package/dist/lib/models/dataprotection/v4/config/HardwareArchitecture.d.ts +0 -19
- package/dist/lib/models/dataprotection/v4/config/HardwareArchitecture.js +0 -86
- package/dist/lib/models/dataprotection/v4/config/HypervisorType.js +0 -92
- package/dist/lib/models/dataprotection/v4/config/PowerState.js +0 -86
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceApiResponse.d.ts +0 -59
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceApiResponse.js +0 -314
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceEntityType.d.ts +0 -19
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceEntityType.js +0 -86
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointApiResponse.d.ts +0 -59
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointApiResponse.js +0 -314
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointListApiResponse.d.ts +0 -59
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointListApiResponse.js +0 -336
- package/dist/lib/models/dataprotection/v4/config/Regions.d.ts +0 -62
- package/dist/lib/models/dataprotection/v4/config/Regions.js +0 -282
- package/dist/lib/models/dataprotection/v4/config/SetExpirationTimeSpec.d.ts +0 -57
- package/dist/lib/models/dataprotection/v4/config/SetExpirationTimeSpec.js +0 -246
- package/dist/lib/models/dataprotection/v4/config/Subnet.d.ts +0 -48
- package/dist/lib/models/dataprotection/v4/config/Subnet.js +0 -242
- package/dist/lib/models/dataprotection/v4/config/SyncedVolumeGroupByIdApiResponse.d.ts +0 -59
- package/dist/lib/models/dataprotection/v4/config/SyncedVolumeGroupByIdApiResponse.js +0 -314
- package/dist/lib/models/dataprotection/v4/config/VMRecoveryPoint.d.ts +0 -49
- package/dist/lib/models/dataprotection/v4/config/VMRecoveryPoint.js +0 -295
- package/dist/lib/models/dataprotection/v4/config/VMRecoveryPointApiResponse.d.ts +0 -59
- package/dist/lib/models/dataprotection/v4/config/VMRecoveryPointApiResponse.js +0 -314
- package/dist/lib/models/dataprotection/v4/config/VMRecoveryPointListApiResponse.d.ts +0 -59
- package/dist/lib/models/dataprotection/v4/config/VMRecoveryPointListApiResponse.js +0 -336
- package/dist/lib/models/dataprotection/v4/config/ValidateRecoveryPointResult.d.ts +0 -79
- package/dist/lib/models/dataprotection/v4/config/ValidateRecoveryPointResult.js +0 -320
- package/dist/lib/models/dataprotection/v4/config/ValidateRestoreVmRecoveryPointApiResponse.d.ts +0 -59
- package/dist/lib/models/dataprotection/v4/config/ValidateRestoreVmRecoveryPointApiResponse.js +0 -336
- package/dist/lib/models/dataprotection/v4/config/ValidationSeverity.d.ts +0 -19
- package/dist/lib/models/dataprotection/v4/config/ValidationSeverity.js +0 -86
- package/dist/lib/models/dataprotection/v4/config/Vm.d.ts +0 -140
- package/dist/lib/models/dataprotection/v4/config/Vm.js +0 -545
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestorationSpec.d.ts +0 -70
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestorationSpec.js +0 -319
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreApiResponse.d.ts +0 -59
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreApiResponse.js +0 -318
- package/dist/lib/models/dataprotection/v4/config/VmSubRecoveryPoint.d.ts +0 -98
- package/dist/lib/models/dataprotection/v4/config/VmSubRecoveryPoint.js +0 -405
- package/dist/lib/models/dataprotection/v4/config/VmSubRecoveryPointProjection.d.ts +0 -9
- package/dist/lib/models/dataprotection/v4/config/VmSubRecoveryPointProjection.js +0 -132
- package/dist/lib/models/dataprotection/v4/config/VolumeGroup.d.ts +0 -62
- package/dist/lib/models/dataprotection/v4/config/VolumeGroup.js +0 -285
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointApiResponse.d.ts +0 -59
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointApiResponse.js +0 -314
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointListApiResponse.d.ts +0 -59
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointListApiResponse.js +0 -336
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestorationSpec.d.ts +0 -62
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestorationSpec.js +0 -288
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreApiResponse.d.ts +0 -59
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreApiResponse.js +0 -318
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupSubRecoveryPoint.d.ts +0 -98
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupSubRecoveryPoint.js +0 -407
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupSubRecoveryPointProjection.d.ts +0 -9
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupSubRecoveryPointProjection.js +0 -132
- package/dist/lib/models/dataprotection/v4/config/VpcReference.d.ts +0 -69
- package/dist/lib/models/dataprotection/v4/config/VpcReference.js +0 -285
- package/dist/lib/models/dataprotection/v4/config/WitnessApiResponse.d.ts +0 -59
- package/dist/lib/models/dataprotection/v4/config/WitnessApiResponse.js +0 -314
- package/dist/lib/models/storage/v4/config/Task.d.ts +0 -50
- package/dist/lib/models/storage/v4/config/Task.js +0 -254
|
@@ -1,11 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Dataprotection=t():(e.Ntnx=e.Ntnx||{},e.Ntnx.Dataprotection=t())}("undefined"==typeof self?this:self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=67)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(2);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){s=!0,i=e},f:function(){try{u||null==n.return||n.return()}finally{if(s)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(i=r.key,a=void 0,a=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===o(a)?a:String(a)),r)}var i,a}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,o=[{key:"constructFromObject",value:function(t,n){if(t){if(n=n||new e,t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){var r,o=i(t.links);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a.hasOwnProperty("rel")&&a.hasOwnProperty("href"))switch(a.rel){case"first":n.linkFirst=a.href;break;case"prev":n.linkPrev=a.href;break;case"next":n.linkNext=a.href;break;case"last":n.linkLast=a.href}}}catch(e){o.e(e)}finally{o.f()}}t.hasOwnProperty("totalAvailableResults")&&(n.resultsTotal=t.totalAvailableResults)}return n}}],(n=[{key:"getFirstPage",value:function(){return this.isFirstPage()?Promise.reject("Cannot navigate to first page : already on first page"):null===this.linkFirst?Promise.reject("No link to first page provided in previous API response"):this._getLink(this.linkFirst)}},{key:"getPrevPage",value:function(){return this.isFirstPage()?Promise.reject("Cannot navigate to previous page : already on first page"):null===this.linkPrev?Promise.reject("No link to previous page provided in previous API response"):this._getLink(this.linkPrev)}},{key:"getNextPage",value:function(){return this.isLastPage()?Promise.reject("Cannot navigate to next page : already on last page"):null===this.linkNext?Promise.reject("No link to next page provided in previous API response"):this._getLink(this.linkNext)}},{key:"getLastPage",value:function(){return this.isLastPage()?Promise.reject("Cannot navigate to last page : already on last page"):null===this.linkLast?Promise.reject("No link to last page provided in previous API response"):this._getLink(this.linkLast)}},{key:"currentPage",value:function(){return null===this.page?0:this.page}},{key:"countPages",value:function(){return null===this.resultsPerPage||null===this.resultsTotal||0===this.resultsPerPage?1:Math.ceil(this.resultsTotal/this.resultsPerPage)}},{key:"isFirstPage",value:function(){return 0===this.currentPage()}},{key:"isLastPage",value:function(){return this.currentPage()===this.countPages()-1}},{key:"populatePaginationMetadata",value:function(e,t,n){this.apiClient=e,this.page=t,this.resultsPerPage=n}},{key:"_getLink",value:function(e){null===this.apiClient&&(this.apiClient=r.a.instance);var t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}])&&u(t.prototype,n),o&&u(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();s.prototype.linkFirst=null,s.prototype.linkPrev=null,s.prototype.linkNext=null,s.prototype.linkLast=null,s.prototype.apiClient=null,s.prototype.page=null,s.prototype.resultsPerPage=null,s.prototype.resultsTotal=null},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return X}));var r,o=n(10),i=n.n(o),a=n(0),u=n(68),s=n(30),c=n.n(s),l=n(31),f=n.n(l),d=n(14),p=n.n(d);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return(t=O(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,O(r.key),r)}}function O(e){var t=function(e,t){if("object"!==y(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===y(t)?t:String(t)}function j(e,t){P(e,t),t.add(e)}function $(e,t,n){P(e,t),t.set(e,n)}function P(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function k(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function T(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,E(e,t,"get"))}function S(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,E(e,t,"set"),n),n}function E(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}c()(i.a);var F=new WeakMap,R=new WeakMap,A=new WeakMap,I=new WeakMap,x=new WeakMap,D=new WeakMap,_=new WeakMap,C=new WeakMap,N=new WeakSet,M=new WeakSet,J=new WeakSet,V=new WeakSet,U=new WeakSet,G=new WeakSet,L=new WeakSet,W=new WeakSet,B=new WeakSet,q=new WeakSet,z=new WeakSet,H=new WeakSet,K=new WeakSet,Z=new WeakSet,Y=new WeakSet,X=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),j(this,Y),j(this,Z),j(this,K),j(this,H),j(this,z),j(this,q),j(this,B),j(this,W),j(this,L),j(this,G),j(this,U),j(this,V),j(this,J),j(this,M),j(this,N),$(this,F,{writable:!0,value:void 0}),$(this,R,{writable:!0,value:void 0}),$(this,A,{writable:!0,value:void 0}),$(this,I,{writable:!0,value:void 0}),$(this,x,{writable:!0,value:void 0}),$(this,D,{writable:!0,value:void 0}),$(this,_,{writable:!0,value:void 0}),$(this,C,{writable:!0,value:void 0}),S(this,C,Object.freeze({DEBUG:{key:"DEBUG",value:Symbol(0)},INFO:{key:"INFO",value:Symbol(1)},WARN:{key:"WARN",value:Symbol(2)},ERROR:{key:"ERROR",value:Symbol(3)}})),this.scheme="https",this.host="undefined"==typeof self?"localhost":self.location.hostname,this.port="undefined"==typeof self?"9440":self.location.port,this.authentications={basicAuthScheme:{type:"basic"}},this.defaultHeaders={},S(this,x,3e4),S(this,D,3e4),S(this,_,18e5),this.readTimeout=T(this,D),this.connectTimeout=T(this,x),this.cache=!0,S(this,R,null),this.maxRetryAttempts=5,this.retryInterval=3e3,"undefined"==typeof self&&(this.agent=new i.a.agent),this.requestAgent=null,this.debug=!1,S(this,A,null),this.username=null,this.password=null,S(this,I,!0),this.loggerFile=null}var t,n,r;return t=e,r=[{key:"getEtag",value:function(e){var t=null;return void 0!==e&&(e.hasOwnProperty("$reserved")&&void 0!==e.get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.get$Reserved(),"ETag")),null==t&&e.hasOwnProperty("data")&&e.getData().hasOwnProperty("$reserved")&&void 0!==e.getData().get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.getData().get$Reserved(),"ETag"))),t}},{key:"getValueForCaseInsensitiveKeyMatch",value:function(e,t){if(e&&t){var n=t.toLowerCase(),r=Object.keys(e).find((function(e){return e.toLowerCase()===n}));return r?e[r]:null}return null}},{key:"addEtagReferenceToHeader",value:function(e,t){if(null!=e&&e.hasOwnProperty("$reserved")&&e.$reserved.hasOwnProperty("ETag")){var n=e.$reserved.ETag;null!=n&&""!==n&&(t["If-Match"]=n)}}},{key:"parseDate",value:function(e){return new Date(e)}},{key:"parseQueryParam",value:function(e,t,n,r){var o=null;if(void 0!==t&&t.hasOwnProperty(n)&&(o=t[n]),null===o&&("string"==typeof e||e instanceof String)){var i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=e.match(new RegExp("".concat(i,"=([0-9]+)")));a&&(o=a[1])}return null===o&&(o=r),o}},{key:"convertToType",value:function(t,n){if(null==t)return t;switch(n){case"Boolean":return Boolean(t);case"Integer":return parseInt(t,10);case"Number":return parseFloat(t);case"String":return String(t);case"Date":return e.parseDate(String(t));case"Blob":return t;default:if(n===Object)return t;if("function"==typeof n)return n.constructFromObject(t);if(Array.isArray(n)){var r=n[0];return t.map((function(t){return e.convertToType(t,r)}))}if("object"===y(n)){var o,i;for(var a in n)if(n.hasOwnProperty(a)){o=a,i=n[a];break}var u={};for(var a in t)if(t.hasOwnProperty(a)){var s=e.convertToType(a,o),c=e.convertToType(t[a],i);u[s]=c}return u}return t}}},{key:"constructFromObject",value:function(t,n,r){if(Array.isArray(t))for(var o=0;o<t.length;o++)t.hasOwnProperty(o)&&(n[o]=e.convertToType(t[o],r));else for(var i in t)t.hasOwnProperty(i)&&(n[i]=e.convertToType(t[i],r))}}],(n=[{key:"verifySsl",get:function(){return T(this,I)},set:function(e){this.requestAgent=e?null:new f.a.Agent({rejectUnauthorized:!1}),S(this,I,e)}},{key:"loggerFile",set:function(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=p.a.createWriteStream(e,{flags:"a"})),S(this,A,new console.Console({stdout:e,stderr:e})))}},{key:"addDefaultHeader",value:function(e,t){"Authorization"===e&&S(this,R,null),this.defaultHeaders[e]=t}},{key:"paramToString",value:function(e){return null==e||null==e?"":e instanceof Date?e.toJSON():e.toString()}},{key:"buildUrl",value:function(e,t){var n=this;e.match(/^\//)||(e="/"+e),S(this,F,"undefined"==typeof self?this.scheme+":":self.location.protocol);var r="";""!==T(this,F)&&""!==this.host&&""!==this.port?r=T(this,F)+"//"+this.host+":"+this.port:"undefined"!=typeof self&&(r=self.origin);var o=r+e;return o=o.replace(/\{([\w-]+)\}/g,(function(e,r){var o;return o=t.hasOwnProperty(r)?n.paramToString(t[r]):e,encodeURIComponent(o)}))}},{key:"buildCollectionParam",value:function(e,t){if(null==e)return null;switch(t){case"csv":return e.map(this.paramToString).join(",");case"ssv":return e.map(this.paramToString).join(" ");case"tsv":return e.map(this.paramToString).join("\t");case"pipes":return e.map(this.paramToString).join("|");case"multi":return e.map(this.paramToString);default:throw new Error("Unknown collection format: "+t)}}},{key:"addEtagToReservedMap",value:function(e,t){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("etag")){var n=e.headers.etag;if(void 0!==t.getData())if(Array.isArray(t.getData())&&t.getData().length>0){var r,o=m(t.getData());try{for(o.s();!(r=o.n()).done;){var i=r.value;i.hasOwnProperty("$reserved")&&void 0!==i.get$Reserved()&&(i.get$Reserved().ETag=n)}}catch(e){o.e(e)}finally{o.f()}}else t.getData().hasOwnProperty("$reserved")&&void 0!==t.getData().get$Reserved()&&(t.getData().get$Reserved().ETag=n)}return t}},{key:"callApi",value:function(e,t,n,r,o,a,s,c,l,f,d){var p=this,y=this.buildUrl(e,n),h=i()(t,y);if(h.oldCallback=h.callback,h.callback=function(e,t){if(t&&t.status){var n=t.status;n>=400&&401!==n&&408!==n&&503!==n&&504!==n&&(this._maxRetries=0),401===t.status&&(this.unset("Cookie"),this._maxRetries=1)}this.oldCallback(e,t)},k(this,U,re).call(this,h,c),"GET"===t.toUpperCase()&&!1===this.cache&&(r._=(new Date).getTime()),h.query(k(this,V,ne).call(this,r)),h.set(this.defaultHeaders).set(k(this,V,ne).call(this,o)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==o["NTNX-Request-Id"]&&void 0!==o["NTNX-Request-Id"])){var b=Object(u.a)();h.set(k(this,V,ne).call(this,{"NTNX-Request-Id":b}))}"undefined"!=typeof window&&void 0!==window.document||h.set(k(this,V,ne).call(this,{"User-Agent":"Nutanix-dataprotection-js-client/4.0.1-alpha.4"})),this.requestAgent&&h.agent(this.requestAgent);var m={};m.response=k(this,B,ue).call(this,this.connectTimeout,T(this,x)),m.deadline=k(this,B,ue).call(this,this.readTimeout,T(this,D)),h.timeout(m);var g=k(this,M,ee).call(this,l);if(g?"multipart/form-data"!=g&&h.type(g):h.header["Content-Type"]||h.type("application/json"),"application/x-www-form-urlencoded"===g)h.send(k(this,V,ne).call(this,a));else if("multipart/form-data"==g){var w=k(this,V,ne).call(this,a);for(var O in w)w.hasOwnProperty(O)&&(k(this,J,te).call(this,w[O])?h.attach(O,w[O]):h.field(O,w[O]))}else s&&h.send(s);var j=k(this,M,ee).call(this,f);return j&&h.accept(j),"Blob"===d?h.responseType("blob"):"String"===d&&h.responseType("string"),k(this,z,ce).call(this,h),k(this,H,le).call(this,T(this,C).INFO,null,"Request URL :",t,y),k(this,H,le).call(this,T(this,C).DEBUG,k(this,Y,pe),"Request Headers :",void 0===h.header?"":h.header),k(this,H,le).call(this,T(this,C).DEBUG,null,"Request Body :",void 0===h._data?"":h._data),new Promise((function(t,n){h.on("error",(function(e){k(p,H,le).call(p,T(p,C).DEBUG,null,"Caught the following error :",e)})).retry(p.maxRetryAttempts,p.retryInterval,[]).then((function(o){try{k(p,H,le).call(p,T(p,C).INFO,null,"Response Status :",o.status),k(p,H,le).call(p,T(p,C).DEBUG,k(p,Y,pe),"Response Headers :",o.headers),k(p,q,se).call(p,o||{});var i=k(p,L,ie).call(p,o,d);k(p,H,le).call(p,T(p,C).DEBUG,null,"Response Body :",i),o.ok?(p.addEtagToReservedMap(o,i),k(p,W,ae).call(p,i,e,r),t({data:i,response:o})):(k(p,H,le).call(p,T(p,C).ERROR,null,i),n(v(v({},o.error),{},{data:i})))}catch(e){k(p,H,le).call(p,T(p,C).DEBUG,null,"Caught error while processing response!"),k(p,H,le).call(p,T(p,C).ERROR,null,e),e.data=k(p,G,oe).call(p,e),n(e)}})).catch((function(e){k(p,H,le).call(p,T(p,C).DEBUG,null,"Caught error during the request!"),k(p,H,le).call(p,T(p,C).ERROR,null,e),null!==e.response&&void 0!==e.response?e.data=k(p,L,ie).call(p,e.response,d):e.data=k(p,G,oe).call(p,e),n(e)}))}))}}])&&w(t.prototype,n),r&&w(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Q(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function ee(e){for(var t=0;t<e.length;t++)if(k(this,N,Q).call(this,e[t]))return e[t];return e[0]}function te(t){var r;try{r=n(14)}catch(e){}return!!(r&&r.ReadStream&&t instanceof r.ReadStream)||("function"==typeof e&&t instanceof e||("function"==typeof Blob&&t instanceof Blob||"function"==typeof File&&t instanceof File))}function ne(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n]&&null!=e[n]){var r=e[n];k(this,J,te).call(this,r)||Array.isArray(r)?t[n]=r:t[n]=this.paramToString(r)}return t}function re(e,t){var n=this;t.forEach((function(t){var r=n.authentications[t];switch(r.type){case"basic":r.username||r.password?e.auth(r.username||"",r.password||""):(n.username||n.password)&&e.auth(n.username||"",n.password||""),k(n,H,le).call(n,T(n,C).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(r.apiKey){var o={};r.apiKeyPrefix?o[r.name]=r.apiKeyPrefix+" "+r.apiKey:o[r.name]=r.apiKey,"header"===r.in?e.set(o):e.query(o)}k(n,H,le).call(n,T(n,C).DEBUG,null,"apiKey applied to request");break;case"oauth2":r.accessToken&&e.set({Authorization:"Bearer "+r.accessToken}),k(n,H,le).call(n,T(n,C).DEBUG,null,"oauth2 applied to request");break;default:throw k(n,H,le).call(n,T(n,C).ERROR,null,"Unknown authentication type:",r.type),new Error("Unknown authentication type: "+r.type)}}))}function oe(e){var t={data:{},metadata:{}};t.data.status=e.status,t.data.message=e.message}function ie(e,t){if(null==e||null==t||204==e.status)return null;var n=e.body;return(null==n||"object"===y(n)&&void 0===n.length&&!Object.keys(n).length)&&(n=e.text),r.convertToType(n,t)}function ae(e,t,n){if(e instanceof a.a){var r=parseInt(this.constructor.parseQueryParam(t,n,"$page","0"),10),o=parseInt(this.constructor.parseQueryParam(t,n,"$limit","50"),10);e.populatePaginationMetadata(this,r,o)}}function ue(e,t){return e<=0?e=t:e>T(this,_)&&(e=T(this,_)),e}function se(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){var t="",n=e.headers["set-cookie"];if(n.length>0){var r,o=m(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;(i=i.split(";")[0]).includes("=")&&(i.trim(),t=t.concat(i).concat(";"))}}catch(e){o.e(e)}finally{o.f()}""!==t&&(t=t.substr(0,t.length-1))}S(this,R,t),k(this,H,le).call(this,T(this,C).DEBUG,null,"Retained cookie :",t)}else S(this,R,null)}function ce(e){null!=T(this,R)&&e.set(k(this,V,ne).call(this,{Cookie:T(this,R)}))}function le(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if("object"===y(e)&&"key"in e&&"value"in e&&"symbol"===y(e.value)||(e=T(this,C).INFO),!k(this,K,fe).call(this,e)){var i=(r=r.map((function(e){return"string"==typeof e?e:t?t(e):JSON.stringify(e)}))).join(" ");i=k(this,Z,de).call(this)+" "+e.key+" - "+i,void 0!==T(this,A)&&null!==T(this,A)&&"function"==typeof T(this,A).log?T(this,A).log(i):console.log(i)}}function fe(e){return!this.debug&&e===T(this,C).DEBUG}function de(){var e=Date.now(),t=(new Date).getTimezoneOffset();return new Date(e-60*t*1e3).toISOString().slice(0,23)}function pe(e){if("object"!==y(e))return e;var t="\n";return e&&Object.keys(e).forEach((function(n){t+=n+"=["+e[n]+"]\n"})),"\n"===t?e:t}r=X,X.instance=new X}).call(this,n(4).Buffer)},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";(function(e){
|
|
2
|
-
/*!
|
|
3
|
-
* The buffer module from node.js, for the browser.
|
|
4
|
-
*
|
|
5
|
-
* @author Feross Aboukhadijeh <http://feross.org>
|
|
6
|
-
* @license MIT
|
|
7
|
-
*/
|
|
8
|
-
var r=n(32),o=n(33),i=n(15);function a(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=s.prototype:(null===e&&(e=new s(t)),e.length=t),e}function s(e,t,n){if(!(s.TYPED_ARRAY_SUPPORT||this instanceof s))return new s(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);s.TYPED_ARRAY_SUPPORT?(e=t).__proto__=s.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!s.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|y(t,n),o=(e=u(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(s.isBuffer(t)){var n=0|p(t.length);return 0===(e=u(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?u(e,0):d(e,t);if("Buffer"===t.type&&i(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=u(e,t<0?0:0|p(t)),!s.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|p(t.length);e=u(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function y(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(r)return V(e).length;t=(""+t).toLowerCase(),r=!0}}function h(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return S(this,t,n);case"latin1":case"binary":return E(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,o);if("number"==typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,o){var i,a=1,u=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,u/=2,s/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;i<u;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===s)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+s>u&&(n=u-s),i=n;i>=0;i--){for(var f=!0,d=0;d<s;d++)if(c(e,i+d)!==c(t,d)){f=!1;break}if(f)return i}return-1}function g(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var u=parseInt(t.substr(2*a,2),16);if(isNaN(u))return a;e[n+a]=u}return a}function w(e,t,n,r){return G(V(t,e.length-n),e,n,r)}function O(e,t,n,r){return G(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function j(e,t,n,r){return O(e,t,n,r)}function $(e,t,n,r){return G(U(t),e,n,r)}function P(e,t,n,r){return G(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,u,s,c=e[o],l=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(s=(31&c)<<6|63&i)>127&&(l=s);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(s=(15&c)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(l=s);break;case 4:i=e[o+1],a=e[o+2],u=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&u)&&(s=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&u)>65535&&s<1114112&&(l=s)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=s,t.SlowBuffer=function(e){+e!=e&&(e=0);return s.alloc(+e)},t.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),s.poolSize=8192,s._augment=function(e){return e.__proto__=s.prototype,e},s.from=function(e,t,n){return c(null,e,t,n)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?u(e,t):void 0!==n?"string"==typeof r?u(e,t).fill(n,r):u(e,t).fill(n):u(e,t)}(null,e,t,n)},s.allocUnsafe=function(e){return f(null,e)},s.allocUnsafeSlow=function(e){return f(null,e)},s.isBuffer=function(e){return!(null==e||!e._isBuffer)},s.compare=function(e,t){if(!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=s.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!s.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},s.byteLength=y,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},s.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):h.apply(this,arguments)},s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},s.prototype.compare=function(e,t,n,r,o){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),u=Math.min(i,a),c=this.slice(r,o),l=e.slice(t,n),f=0;f<u;++f)if(c[f]!==l[f]){i=c[f],a=l[f];break}return i<a?-1:a<i?1:0},s.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return g(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return O(this,e,t,n);case"latin1":case"binary":return j(this,e,t,n);case"base64":return $(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function S(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function E(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function F(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=J(e[i]);return o}function R(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function A(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,o,i){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function x(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function D(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function _(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function C(e,t,n,r,i){return i||_(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function N(e,t,n,r,i){return i||_(e,0,n,8),o.write(e,t,n,r,52,8),n+8}s.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),s.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=s.prototype;else{var o=t-e;n=new s(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},s.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},s.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},s.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},s.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);I(this,e,t,n,o-1,-o)}var i=0,a=1,u=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===u&&0!==this[t+i-1]&&(u=1),this[t+i]=(e/a>>0)-u&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);I(this,e,t,n,o-1,-o)}var i=n-1,a=1,u=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===u&&0!==this[t+i+1]&&(u=1),this[t+i]=(e/a>>0)-u&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,n){return C(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return C(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!s.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=s.isBuffer(e)?e:V(new s(e,r).toString()),u=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%u]}return this};var M=/[^+\/0-9A-Za-z-_]/g;function J(e){return e<16?"0"+e.toString(16):e.toString(16)}function V(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(1))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,c=[],l=!1,f=-1;function d(){l&&s&&(l=!1,s.length?c=s.concat(c):f=-1,c.length&&p())}function p(){if(!l){var e=u(d);l=!0;for(var t=c.length;t;){for(s=c,c=[];++f<t;)s&&s[f].run();f=-1,t=c.length}s=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function y(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new y(e,t)),1!==c.length||l||u(p)},y.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(8),o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var i=Object.create(n(7));i.inherits=n(3);var a=n(20),u=n(24);i.inherits(f,a);for(var s=o(u.prototype),c=0;c<s.length;c++){var l=s[c];f.prototype[l]||(f.prototype[l]=u.prototype[l])}function f(e){if(!(this instanceof f))return new f(e);a.call(this,e),u.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||r.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===o(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"===r(e)},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===o(e)},t.isObject=function(e){return"object"===r(e)&&null!==e},t.isDate=function(e){return"[object Date]"===o(e)},t.isError=function(e){return"[object Error]"===o(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===r(e)||void 0===e},t.isBuffer=n(4).Buffer.isBuffer},function(e,t,n){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,o){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,a,u=arguments.length;switch(u){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,o)}));default:for(i=new Array(u-1),a=0;a<i.length;)i[a++]=arguments[a];return t.nextTick((function(){e.apply(null,i)}))}}}:e.exports=t}).call(this,n(5))},function(e,t,n){var r=n(4),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=a),i(o,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o;"undefined"!=typeof window?o=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),o=void 0):o=self;var i=n(34),a=n(35),u=n(36),s=n(16),c=n(37),l=n(39);function f(){}e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};var d=t=e.exports;t.Request=g,d.getXHR=function(){if(o.XMLHttpRequest&&(!o.location||"file:"!==o.location.protocol||!o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function y(e){if(!s(e))return e;var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&h(t,n,e[n]);return t.join("&")}function h(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach((function(n){h(e,t,n)}));else if(s(n))for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&h(e,"".concat(t,"[").concat(r,"]"),n[r]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function v(e){for(var t,n,r={},o=e.split("&"),i=0,a=o.length;i<a;++i)-1===(n=(t=o[i]).indexOf("="))?r[decodeURIComponent(t)]="":r[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return r}function b(e){return/[/+]json($|[^-\w])/.test(e)}function m(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,n,r,o,i=e.split(/\r?\n/),a={},u=0,s=i.length;u<s;++u)-1!==(t=(n=i[u]).indexOf(":"))&&(r=n.slice(0,t).toLowerCase(),o=p(n.slice(t+1)),a[r]=o);return a}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function g(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(function(){var e,t=null,r=null;try{r=new m(n)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",r);try{n._isResponseOK(r)||(e=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=r,e.status=r.status,n.callback(e,r)):n.callback(null,r)}))}function w(e,t,n){var r=d("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}d.serializeObject=y,d.parseString=v,d.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},d.serialize={"application/x-www-form-urlencoded":y,"application/json":a},d.parse={"application/x-www-form-urlencoded":v,"application/json":JSON.parse},c(m.prototype),m.prototype._parseBody=function(e){var t=d.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&b(this.type)&&(t=d.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},m.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),o=new Error(r);return o.status=this.status,o.method=t,o.url=n,o},d.Response=m,i(g.prototype),u(g.prototype),g.prototype.type=function(e){return this.set("Content-Type",d.types[e]||e),this},g.prototype.accept=function(e){return this.set("Accept",d.types[e]||e),this},g.prototype.auth=function(e,t,n){1===arguments.length&&(t=""),"object"===r(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});var o=function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(e,t,n,o)},g.prototype.query=function(e){return"string"!=typeof e&&(e=y(e)),e&&this._query.push(e),this},g.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},g.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},g.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},g.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},g.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},g.prototype.ca=g.prototype.agent,g.prototype.buffer=g.prototype.ca,g.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},g.prototype.pipe=g.prototype.write,g.prototype._isHost=function(e){return e&&"object"===r(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},g.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||f,this._finalizeQueryString(),this._end()},g.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},g.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=d.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||d.serialize[o?o.split(";")[0]:""];!i&&b(o)&&(i=d.serialize["application/json"]),i&&(n=i(n))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&t.setRequestHeader(a,this.header[a]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},d.agent=function(){return new l},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){l.prototype[e.toLowerCase()]=function(t,n){var r=new d.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}})),l.prototype.del=l.prototype.delete,d.get=function(e,t,n){var r=d("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},d.head=function(e,t,n){var r=d("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},d.options=function(e,t,n){var r=d("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.del=w,d.delete=w,d.patch=function(e,t,n){var r=d("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.post=function(e,t,n){var r=d("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.put=function(e,t,n){var r=d("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=SyntaxError,i=Function,a=TypeError,u=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(e){s=null}var c=function(){throw new a},l=s?function(){try{return c}catch(e){try{return s(arguments,"callee").get}catch(e){return c}}}():c,f=n(57)(),d=n(59)(),p=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),y={},h="undefined"!=typeof Uint8Array&&p?p(Uint8Array):void 0,v={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":f&&p?p([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":y,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f&&p?p(p([][Symbol.iterator]())):void 0,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":r(JSON))?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f&&p?p((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f&&p?p((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f&&p?p(""[Symbol.iterator]()):void 0,"%Symbol%":f?Symbol:void 0,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet};if(p)try{null.error}catch(e){var b=p(p(e));v["%Error.prototype%"]=b}var m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n(12),w=n(61),O=g.call(Function.call,Array.prototype.concat),j=g.call(Function.apply,Array.prototype.splice),$=g.call(Function.call,String.prototype.replace),P=g.call(Function.call,String.prototype.slice),k=g.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,E=function(e){var t=P(e,0,1),n=P(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return $(e,T,(function(e,t,n,o){r[r.length]=n?$(o,S,"$1"):t||e})),r},F=function(e,t){var n,r=e;if(w(m,r)&&(r="%"+(n=m[r])[0]+"%"),w(v,r)){var i=v[r];if(i===y&&(i=function e(t){var n;if("%AsyncFunction%"===t)n=u("async function () {}");else if("%GeneratorFunction%"===t)n=u("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=u("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&p&&(n=p(o.prototype))}return v[t]=n,n}(r)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===k(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=E(e),r=n.length>0?n[0]:"",i=F("%"+r+"%",t),u=i.name,c=i.value,l=!1,f=i.alias;f&&(r=f[0],j(n,O([0,1],f)));for(var d=1,p=!0;d<n.length;d+=1){var y=n[d],h=P(y,0,1),b=P(y,-1);if(('"'===h||"'"===h||"`"===h||'"'===b||"'"===b||"`"===b)&&h!==b)throw new o("property names with quotes must have matching quotes");if("constructor"!==y&&p||(l=!0),w(v,u="%"+(r+="."+y)+"%"))c=v[u];else if(null!=c){if(!(y in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(s&&d+1>=n.length){var m=s(c,y);c=(p=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:c[y]}else p=w(c,y),c=c[y];p&&!l&&(v[u]=c)}}return c}},function(e,t,n){"use strict";var r=n(60);e.exports=Function.prototype.bind||r},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i="RFC1738",a="RFC3986";e.exports={default:a,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:i,RFC3986:a}},function(e,t){},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return null!==e&&"object"===r(e)}},function(e,t,n){(function(e){t.fetch=u(e.fetch)&&u(e.ReadableStream),t.writableStream=u(e.WritableStream),t.abortController=u(e.AbortController),t.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),t.blobConstructor=!0}catch(e){}var n;function r(){if(void 0!==n)return n;if(e.XMLHttpRequest){n=new e.XMLHttpRequest;try{n.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function o(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}var i=void 0!==e.ArrayBuffer,a=i&&u(e.ArrayBuffer.prototype.slice);function u(e){return"function"==typeof e}t.arraybuffer=t.fetch||i&&o("arraybuffer"),t.msstream=!t.fetch&&a&&o("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&i&&o("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!r()&&u(r().overrideMimeType),t.vbArray=u(e.VBArray),n=null}).call(this,n(1))},function(e,t,n){(function(e,r,o){var i=n(17),a=n(3),u=n(19),s=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=t.IncomingMessage=function(t,n,a,s){var c=this;if(u.Readable.call(c),c._mode=a,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",(function(){e.nextTick((function(){c.emit("close")}))})),"fetch"===a){if(c._fetchResponse=n,c.url=n.url,c.statusCode=n.status,c.statusMessage=n.statusText,n.headers.forEach((function(e,t){c.headers[t.toLowerCase()]=e,c.rawHeaders.push(t,e)})),i.writableStream){var l=new WritableStream({write:function(e){return new Promise((function(t,n){c._destroyed?n():c.push(new o(e))?t():c._resumeFetch=t}))},close:function(){r.clearTimeout(s),c._destroyed||c.push(null)},abort:function(e){c._destroyed||c.emit("error",e)}});try{return void n.body.pipeTo(l).catch((function(e){r.clearTimeout(s),c._destroyed||c.emit("error",e)}))}catch(e){}}var f=n.body.getReader();!function e(){f.read().then((function(t){if(!c._destroyed){if(t.done)return r.clearTimeout(s),void c.push(null);c.push(new o(t.value)),e()}})).catch((function(e){r.clearTimeout(s),c._destroyed||c.emit("error",e)}))}()}else{if(c._xhr=t,c._pos=0,c.url=t.responseURL,c.statusCode=t.status,c.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===c.headers[n]&&(c.headers[n]=[]),c.headers[n].push(t[2])):void 0!==c.headers[n]?c.headers[n]+=", "+t[2]:c.headers[n]=t[2],c.rawHeaders.push(t[1],t[2])}})),c._charset="x-user-defined",!i.overrideMimeType){var d=c.rawHeaders["mime-type"];if(d){var p=d.match(/;\s*charset=([^;])(;|$)/);p&&(c._charset=p[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};a(c,u.Readable),c.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},c.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text:vbarray":if(t.readyState!==s.DONE)break;try{n=new r.VBArray(t.responseBody).toArray()}catch(e){}if(null!==n){e.push(new o(n));break}case"text":try{n=t.responseText}catch(t){e._mode="text:vbarray";break}if(n.length>e._pos){var i=n.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new o(i.length),u=0;u<i.length;u++)a[u]=255&i.charCodeAt(u);e.push(a)}else e.push(i,e._charset);e._pos=n.length}break;case"arraybuffer":if(t.readyState!==s.DONE||!t.response)break;n=t.response,e.push(new o(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=t.response,t.readyState!==s.LOADING||!n)break;e.push(new o(new Uint8Array(n)));break;case"ms-stream":if(n=t.response,t.readyState!==s.LOADING)break;var c=new r.MSStreamReader;c.onprogress=function(){c.result.byteLength>e._pos&&(e.push(new o(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(n)}e._xhr.readyState===s.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,n(5),n(1),n(4).Buffer)},function(e,t,n){(t=e.exports=n(20)).Stream=t,t.Readable=t,t.Writable=n(24),t.Duplex=n(6),t.Transform=n(26),t.PassThrough=n(48)},function(e,t,n){"use strict";(function(t,r){var o=n(8);e.exports=g;var i,a=n(15);g.ReadableState=m;n(21).EventEmitter;var u=function(e,t){return e.listeners(t).length},s=n(22),c=n(9).Buffer,l=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var f=Object.create(n(7));f.inherits=n(3);var d=n(42),p=void 0;p=d&&d.debuglog?d.debuglog("stream"):function(){};var y,h=n(43),v=n(23);f.inherits(g,s);var b=["error","close","destroy","pause","resume"];function m(e,t){e=e||{};var r=t instanceof(i=i||n(6));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,a=e.readableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(a||0===a)?a:u,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(y||(y=n(25).StringDecoder),this.decoder=new y(e.encoding),this.encoding=e.encoding)}function g(e){if(i=i||n(6),!(this instanceof g))return new g(e);this._readableState=new m(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function w(e,t,n,r,o){var i,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,$(e)}(e,a)):(o||(i=function(e,t){var n;r=t,c.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),i?e.emit("error",i):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):O(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?O(e,a,t,!1):k(e,a)):O(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function O(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&$(e)),k(e,t)}Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),g.prototype.destroy=v.destroy,g.prototype._undestroy=v.undestroy,g.prototype._destroy=function(e,t){this.push(null),t(e)},g.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=c.from(e,t),t=""),n=!0),w(this,e,t,!1,n)},g.prototype.unshift=function(e){return w(this,e,null,!0,!1)},g.prototype.isPaused=function(){return!1===this._readableState.flowing},g.prototype.setEncoding=function(e){return y||(y=n(25).StringDecoder),this._readableState.decoder=new y(e),this._readableState.encoding=e,this};function j(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function $(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(P,e):P(e))}function P(e){p("emit readable"),e.emit("readable"),F(e)}function k(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(T,e,t))}function T(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function S(e){p("readable nexttick read 0"),e.read(0)}function E(e,t){t.reading||(p("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),F(e),t.flowing&&!t.reading&&e.read(0)}function F(e){var t=e._readableState;for(p("flow",t.flowing);t.flowing&&null!==e.read(););}function R(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,o=n.data;e-=o.length;for(;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(a===i.length?o+=i:o+=i.slice(0,e),0===(e-=a)){a===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++r}return t.length-=r,o}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,o=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,a),0===(e-=a)){a===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(a));break}++o}return t.length-=o,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function A(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(I,t,e))}function I(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function x(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}g.prototype.read=function(e){p("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?A(this):$(this),null;if(0===(e=j(e,t))&&t.ended)return 0===t.length&&A(this),null;var r,o=t.needReadable;return p("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&p("length less than watermark",o=!0),t.ended||t.reading?p("reading or ended",o=!1):o&&(p("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=j(n,t))),null===(r=e>0?R(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&A(this)),null!==r&&this.emit("data",r),r},g.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},g.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,p("pipe count=%d opts=%j",i.pipesCount,t);var s=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?l:g;function c(t,r){p("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,p("cleanup"),e.removeListener("close",b),e.removeListener("finish",m),e.removeListener("drain",f),e.removeListener("error",v),e.removeListener("unpipe",c),n.removeListener("end",l),n.removeListener("end",g),n.removeListener("data",h),d=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function l(){p("onend"),e.end()}i.endEmitted?o.nextTick(s):n.once("end",s),e.on("unpipe",c);var f=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&u(e,"data")&&(t.flowing=!0,F(e))}}(n);e.on("drain",f);var d=!1;var y=!1;function h(t){p("ondata"),y=!1,!1!==e.write(t)||y||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==x(i.pipes,e))&&!d&&(p("false write response, pause",i.awaitDrain),i.awaitDrain++,y=!0),n.pause())}function v(t){p("onerror",t),g(),e.removeListener("error",v),0===u(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",m),g()}function m(){p("onfinish"),e.removeListener("close",b),g()}function g(){p("unpipe"),n.unpipe(e)}return n.on("data",h),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",v),e.once("close",b),e.once("finish",m),e.emit("pipe",n),i.flowing||(p("pipe resume"),n.resume()),e},g.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)r[i].emit("unpipe",this,{hasUnpiped:!1});return this}var a=x(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},g.prototype.on=function(e,t){var n=s.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&$(this):o.nextTick(S,this))}return n},g.prototype.addListener=g.prototype.on,g.prototype.resume=function(){var e=this._readableState;return e.flowing||(p("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(E,e,t))}(this,e)),this},g.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},g.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var o in e.on("end",(function(){if(p("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){(p("wrapped data"),n.decoder&&(o=n.decoder.write(o)),n.objectMode&&null==o)||(n.objectMode||o&&o.length)&&(t.push(o)||(r=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i<b.length;i++)e.on(b[i],this.emit.bind(this,b[i]));return this._read=function(t){p("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(g.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),g._fromList=R}).call(this,n(1),n(5))},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o,i="object"===("undefined"==typeof Reflect?"undefined":r(Reflect))?Reflect:null,a=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};o=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var u=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}m(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&m(e,"error",t,n)}(e,o,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(e))}function f(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var o,i,a,u;if(l(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=f(e))>0&&a.length>o&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,u=s,console&&console.warn&&console.warn(u)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function y(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=p.bind(r);return o.listener=n,r.wrapFn=o,o}function h(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):b(o,o.length)}function v(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function b(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(e,t,n,o){if("function"==typeof e.on)o.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+r(e));e.addEventListener(t,(function r(i){o.once&&e.removeEventListener(t,r),n(i)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||u(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||u(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return f(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var u=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw u.context=i,u}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)a(s,this,t);else{var c=s.length,l=b(s,c);for(n=0;n<c;++n)a(l[n],this,t)}return!0},s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)},s.prototype.once=function(e,t){return l(t),this.on(e,y(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,y(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,o,i,a;if(l(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},s.prototype.listenerCount=v,s.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]}},function(e,t,n){e.exports=n(21).EventEmitter},function(e,t,n){"use strict";var r=n(8);function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(o,this,e)):r.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,r.nextTick(o,n,e)):r.nextTick(o,n,e):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";(function(t,r,o){var i=n(8);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var o=r.callback;t.pendingcb--,o(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=m;var u,s=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:i.nextTick;m.WritableState=b;var c=Object.create(n(7));c.inherits=n(3);var l={deprecate:n(47)},f=n(22),d=n(9).Buffer,p=(void 0!==o?o:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var y,h=n(23);function v(){}function b(e,t){u=u||n(6),e=e||{};var r=t instanceof u;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var o=e.highWaterMark,c=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(c||0===c)?c:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick(P,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(o(r),e._writableState.errorEmitted=!0,e.emit("error",r),P(e,t))}(e,n,r,t,o);else{var a=j(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||O(e,n),r?s(w,e,n,a,o):w(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function m(e){if(u=u||n(6),!(y.call(m,this)||this instanceof u))return new m(e);this._writableState=new b(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function g(e,t,n,r,o,i,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function w(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),P(e,t)}function O(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),i=t.corkedRequestsFree;i.entry=n;for(var u=0,s=!0;n;)o[u]=n,n.isBuf||(s=!1),n=n.next,u+=1;o.allBuffers=s,g(e,t,!0,t.length,o,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,l=n.encoding,f=n.callback;if(g(e,t,!1,t.objectMode?1:c.length,c,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function j(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function $(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),P(e,t)}))}function P(e,t){var n=j(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick($,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(m,f),b.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(b.prototype,"buffer",{get:l.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(y=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(e){return!!y.call(this,e)||this===m&&(e&&e._writableState instanceof b)}})):y=function(e){return e instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(e,t,n){var r,o=this._writableState,a=!1,u=!o.objectMode&&(r=e,d.isBuffer(r)||r instanceof p);return u&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(n=t,t=null),u?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=v),o.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(u||function(e,t,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(r,a),o=!1),o}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,o,i){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,n));return t}(t,r,o);r!==a&&(n=!0,o="buffer",r=a)}var u=t.objectMode?1:r.length;t.length+=u;var s=t.length<t.highWaterMark;s||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:i,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else g(e,t,!1,u,r,o,i);return s}(this,o,u,e,t,n)),a},m.prototype.cork=function(){this._writableState.corked++},m.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||O(this,e))},m.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,P(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),m.prototype.destroy=h.destroy,m.prototype._undestroy=h.undestroy,m.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(5),n(45).setImmediate,n(1))},function(e,t,n){"use strict";var r=n(9).Buffer,o=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=s,this.end=c,t=4;break;case"utf8":this.fillLast=u,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function s(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},i.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var o=a(t[r]);if(o>=0)return o>0&&(e.lastNeed=o-1),o;if(--r<n||-2===o)return 0;if((o=a(t[r]))>=0)return o>0&&(e.lastNeed=o-2),o;if(--r<n||-2===o)return 0;if((o=a(t[r]))>=0)return o>0&&(2===o?o=0:e.lastNeed=o-3),o;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=a;var r=n(6),o=Object.create(n(7));function i(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",u)}function u(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){s(e,t,n)})):s(this,null,null)}function s(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}o.inherits=n(3),o.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(52);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var a=/^([a-z0-9.+-]+:)/i,u=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),f=["%","/","?",";","#"].concat(l),d=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=n(54);function g(e,t,n){if(e&&"object"===r(e)&&e instanceof i)return e;var o=new i;return o.parse(e,t,n),o}i.prototype.parse=function(e,t,n){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+r(e));var i=e.indexOf("?"),u=-1!==i&&i<e.indexOf("#")?"?":"#",c=e.split(u);c[0]=c[0].replace(/\\/g,"/");var g=e=c.join(u);if(g=g.trim(),!n&&1===e.split("#").length){var w=s.exec(g);if(w)return this.path=g,this.href=g,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?m.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var O=a.exec(g);if(O){var j=(O=O[0]).toLowerCase();this.protocol=j,g=g.substr(O.length)}if(n||O||g.match(/^\/\/[^@/]+@[^@/]+/)){var $="//"===g.substr(0,2);!$||O&&v[O]||(g=g.substr(2),this.slashes=!0)}if(!v[O]&&($||O&&!b[O])){for(var P,k,T=-1,S=0;S<d.length;S++){-1!==(E=g.indexOf(d[S]))&&(-1===T||E<T)&&(T=E)}-1!==(k=-1===T?g.lastIndexOf("@"):g.lastIndexOf("@",T))&&(P=g.slice(0,k),g=g.slice(k+1),this.auth=decodeURIComponent(P)),T=-1;for(S=0;S<f.length;S++){var E;-1!==(E=g.indexOf(f[S]))&&(-1===T||E<T)&&(T=E)}-1===T&&(T=g.length),this.host=g.slice(0,T),g=g.slice(T),this.parseHost(),this.hostname=this.hostname||"";var F="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!F)for(var R=this.hostname.split(/\./),A=(S=0,R.length);S<A;S++){var I=R[S];if(I&&!I.match(p)){for(var x="",D=0,_=I.length;D<_;D++)I.charCodeAt(D)>127?x+="x":x+=I[D];if(!x.match(p)){var C=R.slice(0,S),N=R.slice(S+1),M=I.match(y);M&&(C.push(M[1]),N.unshift(M[2])),N.length&&(g="/"+N.join(".")+g),this.hostname=C.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),F||(this.hostname=o.toASCII(this.hostname));var J=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+J,this.href+=this.host,F&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==g[0]&&(g="/"+g))}if(!h[j])for(S=0,A=l.length;S<A;S++){var U=l[S];if(-1!==g.indexOf(U)){var G=encodeURIComponent(U);G===U&&(G=escape(U)),g=g.split(U).join(G)}}var L=g.indexOf("#");-1!==L&&(this.hash=g.substr(L),g=g.slice(0,L));var W=g.indexOf("?");if(-1!==W?(this.search=g.substr(W),this.query=g.substr(W+1),t&&(this.query=m.parse(this.query)),g=g.slice(0,W)):t&&(this.search="",this.query={}),g&&(this.pathname=g),b[j]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){J=this.pathname||"";var B=this.search||"";this.path=J+B}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",o=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"===r(this.query)&&Object.keys(this.query).length&&(a=m.stringify(this.query));var u=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||b[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),o&&"#"!==o.charAt(0)&&(o="#"+o),u&&"?"!==u.charAt(0)&&(u="?"+u),t+i+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(u=u.replace("#","%23"))+o},i.prototype.resolve=function(e){return this.resolveObject(g(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if("string"==typeof e){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),o=0;o<r.length;o++){var a=r[o];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),s=0;s<u.length;s++){var c=u[s];"protocol"!==c&&(n[c]=e[c])}return b[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!b[e.protocol]){for(var l=Object.keys(e),f=0;f<l.length;f++){var d=l[f];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||v[e.protocol])n.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var y=n.pathname||"",h=n.search||"";n.path=y+h}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var m=n.pathname&&"/"===n.pathname.charAt(0),g=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=g||m||n.host&&e.pathname,O=w,j=n.pathname&&n.pathname.split("/")||[],$=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!b[n.protocol]);if($&&(n.hostname="",n.port=null,n.host&&(""===j[0]?j[0]=n.host:j.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),w=w&&(""===p[0]||""===j[0])),g)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,j=p;else if(p.length)j||(j=[]),j.pop(),j=j.concat(p),n.search=e.search,n.query=e.query;else if(null!=e.search){if($)n.host=j.shift(),n.hostname=n.host,(E=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=E.shift(),n.hostname=E.shift(),n.host=n.hostname);return n.search=e.search,n.query=e.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!j.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var P=j.slice(-1)[0],k=(n.host||e.host||j.length>1)&&("."===P||".."===P)||""===P,T=0,S=j.length;S>=0;S--)"."===(P=j[S])?j.splice(S,1):".."===P?(j.splice(S,1),T++):T&&(j.splice(S,1),T--);if(!w&&!O)for(;T--;T)j.unshift("..");!w||""===j[0]||j[0]&&"/"===j[0].charAt(0)||j.unshift(""),k&&"/"!==j.join("/").substr(-1)&&j.push("");var E,F=""===j[0]||j[0]&&"/"===j[0].charAt(0);$&&(n.hostname=F?"":j.length?j.shift():"",n.host=n.hostname,(E=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=E.shift(),n.hostname=E.shift(),n.host=n.hostname));return(w=w||n.host&&j.length)&&!F&&j.unshift(""),j.length>0?n.pathname=j.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=u.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=g,t.resolve=function(e,t){return g(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?g(e,!1,!0).resolveObject(t):t},t.format=function(e){return"string"==typeof e&&(e=g(e)),e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(13),i=Object.prototype.hasOwnProperty,a=Array.isArray,u=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var i=t[o],u=i.obj[i.prop],s=Object.keys(u),c=0;c<s.length;++c){var l=s[c],f=u[l];"object"===r(f)&&null!==f&&-1===n.indexOf(f)&&(t.push({obj:u,prop:l}),n.push(f))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,i,a){if(0===e.length)return e;var s=e;if("symbol"===r(e)?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",l=0;l<s.length;++l){var f=s.charCodeAt(l);45===f||46===f||95===f||126===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||a===o.RFC1738&&(40===f||41===f)?c+=s.charAt(l):f<128?c+=u[f]:f<2048?c+=u[192|f>>6]+u[128|63&f]:f<55296||f>=57344?c+=u[224|f>>12]+u[128|f>>6&63]+u[128|63&f]:(l+=1,f=65536+((1023&f)<<10|1023&s.charCodeAt(l)),c+=u[240|f>>18]+u[128|f>>12&63]+u[128|f>>6&63]+u[128|63&f])}return c},isBuffer:function(e){return!(!e||"object"!==r(e))&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,o){if(!n)return t;if("object"!==r(n)){if(a(t))t.push(n);else{if(!t||"object"!==r(t))return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==r(t))return[t].concat(n);var u=t;return a(t)&&!a(n)&&(u=s(t,o)),a(t)&&a(n)?(n.forEach((function(n,a){if(i.call(t,a)){var u=t[a];u&&"object"===r(u)&&n&&"object"===r(n)?t[a]=e(u,n,o):t.push(n)}else t[a]=n})),t):Object.keys(n).reduce((function(t,r){var a=n[r];return i.call(t,r)?t[r]=e(t[r],a,o):t[r]=a,t}),u)}}},function(e,t){function n(e,t){if(this._maxRetries&&this._retries++<this._maxRetries&&function(e,t,n){if(e&&e.code&&~["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT","ENOTFOUND","ECONNREFUSED"].indexOf(e.code))return!0;if(t&&t.status){var r=t.status;if(r>=500)return!0;if((r>=400||r<200)&&-1===n.indexOf(r))return!0}return!(!e||!("timeout"in e)||"ECONNABORTED"!==e.code)||e&&"crossDomain"in e}(e,t,this._allowedStatuses)){var n;n=this._retries?this._retryDelays[this._retries-1]:0;var r=this;return setTimeout((function(){return r._retry()}),n)}var o=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),o(e,t)}function r(e,t,n){0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),"number"==typeof t&&(t=[t]);var r=t.length,o=e-r;if(0!==o){if(o<0)throw new Error("Cannot have more delays than retries");for(var i=t[r-1],a=0;a<o+1;a++)t.push(i)}return this._maxRetries=e,this._retries=0,this._retryDelays=t||[0],this._allowedStatuses=n||[],this}e.exports=function(e){var t=e.Request;return t.prototype.oldRetry=t.prototype.retry,t.prototype.retry=r,t.prototype.callback=n,e}},function(e,t,n){var r=n(40),o=n(27),i=e.exports;for(var a in r)r.hasOwnProperty(a)&&(i[a]=r[a]);function u(e){if("string"==typeof e&&(e=o.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}i.request=function(e,t){return e=u(e),r.request.call(this,e,t)},i.get=function(e,t){return e=u(e),r.get.call(this,e,t)}},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],u=r[1],s=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,u)),l=0,f=u>0?a-4:a;for(n=0;n<f;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],s[l++]=t>>16&255,s[l++]=t>>8&255,s[l++]=255&t;2===u&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,s[l++]=255&t);1===u&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,s[l++]=t>>8&255,s[l++]=255&t);return s},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,u=n-o;a<u;a+=16383)i.push(l(e,a,a+16383>u?u:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,s=a.length;u<s;++u)r[u]=a[u],o[a.charCodeAt(u)]=u;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,i,a=[],u=t;u<n;u+=3)o=(e[u]<<16&16711680)+(e[u+1]<<8&65280)+(255&e[u+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){
|
|
9
|
-
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
10
|
-
t.read=function(e,t,n,r,o){var i,a,u=8*o-r-1,s=(1<<u)-1,c=s>>1,l=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-l)-1,p>>=-l,l+=u;l>0;i=256*i+e[t+f],f+=d,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,u,s,c=8*i-o-1,l=(1<<c)-1,f=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,y=r?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),(t+=a+f>=1?d/s:d*Math.pow(2,1-f))*s>=2&&(a++,s/=2),a+f>=l?(u=0,a=l):a+f>=1?(u=(t*s-1)*Math.pow(2,o),a+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&u,p+=y,u/=256,o-=8);for(a=a<<o|u,c+=o;c>0;e[n+p]=255&a,p+=y,a/=256,c-=8);e[n+p-y]|=128*h}},function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=a,a.default=a,a.stable=c,a.stableStringify=c;var r=[],o=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,t,a,s){var c;void 0===s&&(s=i()),function e(t,r,o,i,a,s,c){var l;if(s+=1,"object"===n(t)&&null!==t){for(l=0;l<i.length;l++)if(i[l]===t)return void u("[Circular]",t,r,a);if(void 0!==c.depthLimit&&s>c.depthLimit)return void u("[...]",t,r,a);if(void 0!==c.edgesLimit&&o+1>c.edgesLimit)return void u("[...]",t,r,a);if(i.push(t),Array.isArray(t))for(l=0;l<t.length;l++)e(t[l],l,l,i,t,s,c);else{var f=Object.keys(t);for(l=0;l<f.length;l++){var d=f[l];e(t[d],d,l,i,t,s,c)}}i.pop()}}(e,"",0,[],void 0,0,s);try{c=0===o.length?JSON.stringify(e,t,a):JSON.stringify(e,l(t),a)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var f=r.pop();4===f.length?Object.defineProperty(f[0],f[1],f[3]):f[0][f[1]]=f[2]}}return c}function u(e,t,n,i){var a=Object.getOwnPropertyDescriptor(i,n);void 0!==a.get?a.configurable?(Object.defineProperty(i,n,{value:e}),r.push([i,n,t,a])):o.push([t,n,e]):(i[n]=e,r.push([i,n,t]))}function s(e,t){return e<t?-1:e>t?1:0}function c(e,t,a,c){void 0===c&&(c=i());var f,d=function e(t,o,i,a,c,l,f){var d;if(l+=1,"object"===n(t)&&null!==t){for(d=0;d<a.length;d++)if(a[d]===t)return void u("[Circular]",t,o,c);try{if("function"==typeof t.toJSON)return}catch(e){return}if(void 0!==f.depthLimit&&l>f.depthLimit)return void u("[...]",t,o,c);if(void 0!==f.edgesLimit&&i+1>f.edgesLimit)return void u("[...]",t,o,c);if(a.push(t),Array.isArray(t))for(d=0;d<t.length;d++)e(t[d],d,d,a,t,l,f);else{var p={},y=Object.keys(t).sort(s);for(d=0;d<y.length;d++){var h=y[d];e(t[h],h,d,a,t,l,f),p[h]=t[h]}if(void 0===c)return p;r.push([c,o,t]),c[o]=p}a.pop()}}(e,"",0,[],void 0,0,c)||e;try{f=0===o.length?JSON.stringify(d,t,a):JSON.stringify(d,l(t),a)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var p=r.pop();4===p.length?Object.defineProperty(p[0],p[1],p[3]):p[0][p[1]]=p[2]}}return f}function l(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(o.length>0)for(var r=0;r<o.length;r++){var i=o[r];if(i[1]===t&&i[0]===n){n=i[2],o.splice(r,1);break}}return e.call(this,t,n)}}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(16);function i(e){if(e)return function(e){for(var t in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,t)&&(e[t]=i.prototype[t]);return e}(e)}e.exports=i,i.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},i.prototype.parse=function(e){return this._parser=e,this},i.prototype.responseType=function(e){return this._responseType=e,this},i.prototype.serialize=function(e){return this._serializer=e,this},i.prototype.timeout=function(e){if(!e||"object"!==r(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},i.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var a=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];i.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!==t.status)return!0;if(e){if(e.code&&a.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},i.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){r.on("abort",(function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}})),r.end((function(n,r){n?t(n):e(r)}))}))}return this._fullfilledPromise.then(e,t)},i.prototype.catch=function(e){return this.then(void 0,e)},i.prototype.use=function(e){return e(this),this},i.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},i.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},i.prototype.get=function(e){return this._header[e.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(e,t){if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},i.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},i.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(e,t[r]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},i.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},i.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},i.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},i.prototype.redirects=function(e){return this._maxRedirects=e,this},i.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(e){var t=o(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&o(this._data))for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._data[r]=e[r]);else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},i.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},i.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},i.prototype._appendQueryString=function(){console.warn("Unsupported")},i.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},i.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},function(e,t,n){"use strict";var r=n(38);function o(e){if(e)return function(e){for(var t in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,t)&&(e[t]=o.prototype[t]);return e}(e)}e.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(this[o]=n[o]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},function(e,t,n){"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce((function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e}),{})},t.parseLinks=function(e){return e.split(/ *, */).reduce((function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,e}),{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(e){i.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this}})),i.prototype._setDefaults=function(e){this._defaults.forEach((function(t){e[t.fn].apply(e,r(t.args))}))},e.exports=i},function(e,t,n){(function(e){var r=n(41),o=n(18),i=n(50),a=n(51),u=n(27),s=t;s.request=function(t,n){t="string"==typeof t?u.parse(t):i(t);var o=-1===e.location.protocol.search(/^https?:$/)?"http:":"",a=t.protocol||o,s=t.hostname||t.host,c=t.port,l=t.path||"/";s&&-1!==s.indexOf(":")&&(s="["+s+"]"),t.url=(s?a+"//"+s:"")+(c?":"+c:"")+l,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var f=new r(t);return n&&f.on("response",n),f},s.get=function(e,t){var n=s.request(e,t);return n.end(),n},s.ClientRequest=r,s.IncomingMessage=o.IncomingMessage,s.Agent=function(){},s.Agent.defaultMaxSockets=4,s.globalAgent=new s.Agent,s.STATUS_CODES=a,s.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,n(1))},function(e,t,n){(function(t,r,o){var i=n(17),a=n(3),u=n(18),s=n(19),c=n(49),l=u.IncomingMessage,f=u.readyStates;var d=e.exports=function(e){var n,r=this;s.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new t(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var o=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!i.abortController)o=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!i.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=function(e,t){return i.fetch&&t?"fetch":i.mozchunkedarraybuffer?"moz-chunked-arraybuffer":i.msstream?"ms-stream":i.arraybuffer&&e?"arraybuffer":i.vbArray&&e?"text:vbarray":"text"}(n,o),r._fetchTimer=null,r.on("finish",(function(){r._onFinish()}))};a(d,s.Writable),d.prototype.setHeader=function(e,t){var n=e.toLowerCase();-1===p.indexOf(n)&&(this._headers[n]={name:e,value:t})},d.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},d.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},d.prototype._onFinish=function(){var e=this;if(!e._destroyed){var n=e._opts,a=e._headers,u=null;"GET"!==n.method&&"HEAD"!==n.method&&(u=i.arraybuffer?c(t.concat(e._body)):i.blobConstructor?new r.Blob(e._body.map((function(e){return c(e)})),{type:(a["content-type"]||{}).value||""}):t.concat(e._body).toString());var s=[];if(Object.keys(a).forEach((function(e){var t=a[e].name,n=a[e].value;Array.isArray(n)?n.forEach((function(e){s.push([t,e])})):s.push([t,n])})),"fetch"===e._mode){var l=null;if(i.abortController){var d=new AbortController;l=d.signal,e._fetchAbortController=d,"requestTimeout"in n&&0!==n.requestTimeout&&(e._fetchTimer=r.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),n.requestTimeout))}r.fetch(e._opts.url,{method:e._opts.method,headers:s,body:u||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:l}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){r.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)}))}else{var p=e._xhr=new r.XMLHttpRequest;try{p.open(e._opts.method,e._opts.url,!0)}catch(t){return void o.nextTick((function(){e.emit("error",t)}))}"responseType"in p&&(p.responseType=e._mode.split(":")[0]),"withCredentials"in p&&(p.withCredentials=!!n.withCredentials),"text"===e._mode&&"overrideMimeType"in p&&p.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(p.timeout=n.requestTimeout,p.ontimeout=function(){e.emit("requestTimeout")}),s.forEach((function(e){p.setRequestHeader(e[0],e[1])})),e._response=null,p.onreadystatechange=function(){switch(p.readyState){case f.LOADING:case f.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(p.onprogress=function(){e._onXHRProgress()}),p.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{p.send(u)}catch(t){return void o.nextTick((function(){e.emit("error",t)}))}}}},d.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},d.prototype._connect=function(){var e=this;e._destroyed||(e._response=new l(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},d.prototype._write=function(e,t,n){this._body.push(e),n()},d.prototype.abort=d.prototype.destroy=function(){this._destroyed=!0,r.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},d.prototype.end=function(e,t,n){"function"==typeof e&&(n=e,e=void 0),s.Writable.prototype.end.call(this,e,t,n)},d.prototype.flushHeaders=function(){},d.prototype.setTimeout=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var p=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,n(4).Buffer,n(1),n(5))},function(e,t){},function(e,t,n){"use strict";var r=n(9).Buffer,o=n(44);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);for(var t,n,o,i=r.allocUnsafe(e>>>0),a=this.head,u=0;a;)t=a.data,n=i,o=u,t.copy(n,o),u+=a.data.length,a=a.next;return i},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(46),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(1))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,u,s=1,c={},l=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){y(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){y(e.data)},r=function(e){i.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){y(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(y,0,e)}:(a="setImmediate$"+Math.random()+"$",u=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&y(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",u,!1):e.attachEvent("onmessage",u),r=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return c[s]=o,r(s),s++},d.clearImmediate=p}function p(e){delete c[e]}function y(e){if(l)setTimeout(y,0,e);else{var t=c[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{p(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(1),n(5))},function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n(1))},function(e,t,n){"use strict";e.exports=i;var r=n(26),o=Object.create(n(7));function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}o.inherits=n(3),o.inherits(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){var r=n(4).Buffer;e.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(r.isBuffer(e)){for(var t=new Uint8Array(e.length),n=e.length,o=0;o<n;o++)t[o]=e[o];return t.buffer}throw new Error("Argument must be a Buffer")}},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var o in r)n.call(r,o)&&(e[o]=r[o])}return e};var n=Object.prototype.hasOwnProperty},function(e,t){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},function(e,t,n){(function(e,r){var o;function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
|
|
11
|
-
/*! https://mths.be/punycode v1.4.1 by @mathias */!function(a){var u="object"==i(t)&&t&&!t.nodeType&&t,s="object"==i(e)&&e&&!e.nodeType&&e,c="object"==(void 0===r?"undefined":i(r))&&r;c.global!==c&&c.window!==c&&c.self!==c||(a=c);var l,f,d=2147483647,p=/^xn--/,y=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,v={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=Math.floor,m=String.fromCharCode;function g(e){throw new RangeError(v[e])}function w(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function O(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+w((e=e.replace(h,".")).split("."),t).join(".")}function j(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function $(e){return w(e,(function(e){var t="";return e>65535&&(t+=m((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=m(e)})).join("")}function P(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function k(e,t,n){var r=0;for(e=n?b(e/700):e>>1,e+=b(e/t);e>455;r+=36)e=b(e/35);return b(r+36*e/(e+38))}function T(e){var t,n,r,o,i,a,u,s,c,l,f,p=[],y=e.length,h=0,v=128,m=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&g("not-basic"),p.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<y;){for(i=h,a=1,u=36;o>=y&&g("invalid-input"),((s=(f=e.charCodeAt(o++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:36)>=36||s>b((d-h)/a))&&g("overflow"),h+=s*a,!(s<(c=u<=m?1:u>=m+26?26:u-m));u+=36)a>b(d/(l=36-c))&&g("overflow"),a*=l;m=k(h-i,t=p.length+1,0==i),b(h/t)>d-v&&g("overflow"),v+=b(h/t),h%=t,p.splice(h++,0,v)}return $(p)}function S(e){var t,n,r,o,i,a,u,s,c,l,f,p,y,h,v,w=[];for(p=(e=j(e)).length,t=128,n=0,i=72,a=0;a<p;++a)(f=e[a])<128&&w.push(m(f));for(r=o=w.length,o&&w.push("-");r<p;){for(u=d,a=0;a<p;++a)(f=e[a])>=t&&f<u&&(u=f);for(u-t>b((d-n)/(y=r+1))&&g("overflow"),n+=(u-t)*y,t=u,a=0;a<p;++a)if((f=e[a])<t&&++n>d&&g("overflow"),f==t){for(s=n,c=36;!(s<(l=c<=i?1:c>=i+26?26:c-i));c+=36)v=s-l,h=36-l,w.push(m(P(l+v%h,0))),s=b(v/h);w.push(m(P(s,0))),i=k(n,y,r==o),n=0,++r}++n,++t}return w.join("")}if(l={version:"1.4.1",ucs2:{decode:j,encode:$},decode:T,encode:S,toASCII:function(e){return O(e,(function(e){return y.test(e)?"xn--"+S(e):e}))},toUnicode:function(e){return O(e,(function(e){return p.test(e)?T(e.slice(4).toLowerCase()):e}))}},"object"==i(n(28))&&n(28))void 0===(o=function(){return l}.call(t,n,t,e))||(e.exports=o);else if(u&&s)if(e.exports==u)s.exports=l;else for(f in l)l.hasOwnProperty(f)&&(u[f]=l[f]);else a.punycode=l}(this)}).call(this,n(53)(e),n(1))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r=n(55),o=n(66),i=n(13);e.exports={formats:i,parse:o,stringify:r}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(56),i=n(29),a=n(13),u=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,l=Array.prototype.push,f=function(e,t){l.apply(e,c(t)?t:[t])},d=Date.prototype.toISOString,p=a.default,y={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:p,formatter:a.formatters[p],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},h={},v=function e(t,n,a,u,s,l,d,p,v,b,m,g,w,O,j,$){for(var P,k=t,T=$,S=0,E=!1;void 0!==(T=T.get(h))&&!E;){var F=T.get(t);if(S+=1,void 0!==F){if(F===S)throw new RangeError("Cyclic object value");E=!0}void 0===T.get(h)&&(S=0)}if("function"==typeof p?k=p(n,k):k instanceof Date?k=m(k):"comma"===a&&c(k)&&(k=i.maybeMap(k,(function(e){return e instanceof Date?m(e):e}))),null===k){if(s)return d&&!O?d(n,y.encoder,j,"key",g):n;k=""}if("string"==typeof(P=k)||"number"==typeof P||"boolean"==typeof P||"symbol"===r(P)||"bigint"==typeof P||i.isBuffer(k))return d?[w(O?n:d(n,y.encoder,j,"key",g))+"="+w(d(k,y.encoder,j,"value",g))]:[w(n)+"="+w(String(k))];var R,A=[];if(void 0===k)return A;if("comma"===a&&c(k))O&&d&&(k=i.maybeMap(k,d)),R=[{value:k.length>0?k.join(",")||null:void 0}];else if(c(p))R=p;else{var I=Object.keys(k);R=v?I.sort(v):I}for(var x=u&&c(k)&&1===k.length?n+"[]":n,D=0;D<R.length;++D){var _=R[D],C="object"===r(_)&&void 0!==_.value?_.value:k[_];if(!l||null!==C){var N=c(k)?"function"==typeof a?a(x,_):x:x+(b?"."+_:"["+_+"]");$.set(t,S);var M=o();M.set(h,$),f(A,e(C,N,a,u,s,l,"comma"===a&&O&&c(k)?null:d,p,v,b,m,g,w,O,j,M))}}return A};e.exports=function(e,t){var n,i=e,l=function(e){if(!e)return y;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||y.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=a.default;if(void 0!==e.format){if(!u.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=a.formatters[n],o=y.filter;return("function"==typeof e.filter||c(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:y.addQueryPrefix,allowDots:void 0===e.allowDots?y.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:y.charsetSentinel,delimiter:void 0===e.delimiter?y.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:y.encode,encoder:"function"==typeof e.encoder?e.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:y.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:y.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:y.strictNullHandling}}(t);"function"==typeof l.filter?i=(0,l.filter)("",i):c(l.filter)&&(n=l.filter);var d,p=[];if("object"!==r(i)||null===i)return"";d=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=s[d];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var b="comma"===h&&t&&t.commaRoundTrip;n||(n=Object.keys(i)),l.sort&&n.sort(l.sort);for(var m=o(),g=0;g<n.length;++g){var w=n[g];l.skipNulls&&null===i[w]||f(p,v(i[w],w,h,b,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,m))}var O=p.join(l.delimiter),j=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?j+="utf8=%26%2310003%3B&":j+="utf8=%E2%9C%93&"),O.length>0?j+O:""}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(11),i=n(62),a=n(64),u=o("%TypeError%"),s=o("%WeakMap%",!0),c=o("%Map%",!0),l=i("WeakMap.prototype.get",!0),f=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),p=i("Map.prototype.get",!0),y=i("Map.prototype.set",!0),h=i("Map.prototype.has",!0),v=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,o={assert:function(e){if(!o.has(e))throw new u("Side channel does not contain "+a(e))},get:function(o){if(s&&o&&("object"===r(o)||"function"==typeof o)){if(e)return l(e,o)}else if(c){if(t)return p(t,o)}else if(n)return function(e,t){var n=v(e,t);return n&&n.value}(n,o)},has:function(o){if(s&&o&&("object"===r(o)||"function"==typeof o)){if(e)return d(e,o)}else if(c){if(t)return h(t,o)}else if(n)return function(e,t){return!!v(e,t)}(n,o);return!1},set:function(o,i){s&&o&&("object"===r(o)||"function"==typeof o)?(e||(e=new s),f(e,o,i)):c?(t||(t=new c),y(t,o,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=v(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,o,i))}};return o}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o="undefined"!=typeof Symbol&&Symbol,i=n(58);e.exports=function(){return"function"==typeof o&&("function"==typeof Symbol&&("symbol"===r(o("foo"))&&("symbol"===r(Symbol("bar"))&&i())))}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"===r(Symbol.iterator))return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},function(e,t,n){"use strict";var r={foo:{}},o=Object;e.exports=function(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof o)}},function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,i=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==i.call(t))throw new TypeError(r+t);for(var n,a=o.call(arguments,1),u=function(){if(this instanceof n){var r=t.apply(this,a.concat(o.call(arguments)));return Object(r)===r?r:this}return t.apply(e,a.concat(o.call(arguments)))},s=Math.max(0,t.length-a.length),c=[],l=0;l<s;l++)c.push("$"+l);if(n=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(u),t.prototype){var f=function(){};f.prototype=t.prototype,n.prototype=new f,f.prototype=null}return n}},function(e,t,n){"use strict";var r=n(12);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,n){"use strict";var r=n(11),o=n(63),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},function(e,t,n){"use strict";var r=n(12),o=n(11),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||r.call(a,i),s=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=u(r,a,arguments);if(s&&c){var n=s(t,"length");n.configurable&&c(t,"length",{value:1+l(0,e.length-(arguments.length-1))})}return t};var f=function(){return u(r,i,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f},function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=o&&i&&"function"==typeof i.get?i.get:null,u=o&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&c&&"function"==typeof c.get?c.get:null,f=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,v=Object.prototype.toString,b=Function.prototype.toString,m=String.prototype.match,g=String.prototype.slice,w=String.prototype.replace,O=String.prototype.toUpperCase,j=String.prototype.toLowerCase,$=RegExp.prototype.test,P=Array.prototype.concat,k=Array.prototype.join,T=Array.prototype.slice,S=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,F=Object.getOwnPropertySymbols,R="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?Symbol.prototype.toString:null,A="function"==typeof Symbol&&"object"===r(Symbol.iterator),I="function"==typeof Symbol&&Symbol.toStringTag&&(r(Symbol.toStringTag)===A||"symbol")?Symbol.toStringTag:null,x=Object.prototype.propertyIsEnumerable,D=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function _(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||$.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-S(-e):S(e);if(r!==e){var o=String(r),i=g.call(t,o.length+1);return w.call(o,n,"$&_")+"."+w.call(w.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(t,n,"$&_")}var C=n(65),N=C.custom,M=L(N)?N:null;function J(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function V(e){return w.call(String(e),/"/g,""")}function U(e){return!("[object Array]"!==q(e)||I&&"object"===r(e)&&I in e)}function G(e){return!("[object RegExp]"!==q(e)||I&&"object"===r(e)&&I in e)}function L(e){if(A)return e&&"object"===r(e)&&e instanceof Symbol;if("symbol"===r(e))return!0;if(!e||"object"!==r(e)||!R)return!1;try{return R.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,i){var s=n||{};if(B(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(B(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!B(s,"customInspect")||s.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(B(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(B(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var v=s.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return e(g.call(t,0,n.maxStringLength),n)+o}return J(w.call(w.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,H),"single",n)}(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var O=String(t);return v?_(t,O):O}if("bigint"==typeof t){var $=String(t)+"n";return v?_(t,$):$}var S=void 0===s.depth?5:s.depth;if(void 0===o&&(o=0),o>=S&&S>0&&"object"===r(t))return U(t)?"[Array]":"[Object]";var F=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=k.call(Array(e.indent+1)," ")}return{base:n,prev:k.call(Array(t+1),n)}}(s,o);if(void 0===i)i=[];else if(z(i,t)>=0)return"[Circular]";function N(t,n,r){if(n&&(i=T.call(i)).push(n),r){var a={depth:s.depth};return B(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,o+1,i)}return e(t,s,o+1,i)}if("function"==typeof t&&!G(t)){var W=function(e){if(e.name)return e.name;var t=m.call(b.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),ee=Q(t,N);return"[Function"+(W?": "+W:" (anonymous)")+"]"+(ee.length>0?" { "+k.call(ee,", ")+" }":"")}if(L(t)){var te=A?w.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):R.call(t);return"object"!==r(t)||A?te:K(te)}if(function(e){if(!e||"object"!==r(e))return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var ne="<"+j.call(String(t.nodeName)),re=t.attributes||[],oe=0;oe<re.length;oe++)ne+=" "+re[oe].name+"="+J(V(re[oe].value),"double",s);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+="</"+j.call(String(t.nodeName))+">"}if(U(t)){if(0===t.length)return"[]";var ie=Q(t,N);return F&&!function(e){for(var t=0;t<e.length;t++)if(z(e[t],"\n")>=0)return!1;return!0}(ie)?"["+X(ie,F)+"]":"[ "+k.call(ie,", ")+" ]"}if(function(e){return!("[object Error]"!==q(e)||I&&"object"===r(e)&&I in e)}(t)){var ae=Q(t,N);return"cause"in Error.prototype||!("cause"in t)||x.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+k.call(ae,", ")+" }":"{ ["+String(t)+"] "+k.call(P.call("[cause]: "+N(t.cause),ae),", ")+" }"}if("object"===r(t)&&c){if(M&&"function"==typeof t[M]&&C)return C(t,{depth:S-o});if("symbol"!==c&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!==r(e))return!1;try{a.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ue=[];return u&&u.call(t,(function(e,n){ue.push(N(n,t,!0)+" => "+N(e,t))})),Y("Map",a.call(t),ue,F)}if(function(e){if(!l||!e||"object"!==r(e))return!1;try{l.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var se=[];return f&&f.call(t,(function(e){se.push(N(e,t))})),Y("Set",l.call(t),se,F)}if(function(e){if(!d||!e||"object"!==r(e))return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Z("WeakMap");if(function(e){if(!p||!e||"object"!==r(e))return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Z("WeakSet");if(function(e){if(!y||!e||"object"!==r(e))return!1;try{return y.call(e),!0}catch(e){}return!1}(t))return Z("WeakRef");if(function(e){return!("[object Number]"!==q(e)||I&&"object"===r(e)&&I in e)}(t))return K(N(Number(t)));if(function(e){if(!e||"object"!==r(e)||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}(t))return K(N(E.call(t)));if(function(e){return!("[object Boolean]"!==q(e)||I&&"object"===r(e)&&I in e)}(t))return K(h.call(t));if(function(e){return!("[object String]"!==q(e)||I&&"object"===r(e)&&I in e)}(t))return K(N(String(t)));if(!function(e){return!("[object Date]"!==q(e)||I&&"object"===r(e)&&I in e)}(t)&&!G(t)){var ce=Q(t,N),le=D?D(t)===Object.prototype:t instanceof Object||t.constructor===Object,fe=t instanceof Object?"":"null prototype",de=!le&&I&&Object(t)===t&&I in t?g.call(q(t),8,-1):fe?"Object":"",pe=(le||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(de||fe?"["+k.call(P.call([],de||[],fe||[]),": ")+"] ":"");return 0===ce.length?pe+"{}":F?pe+"{"+X(ce,F)+"}":pe+"{ "+k.call(ce,", ")+" }"}return String(t)};var W=Object.prototype.hasOwnProperty||function(e){return e in this};function B(e,t){return W.call(e,t)}function q(e){return v.call(e)}function z(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function H(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+O.call(t.toString(16))}function K(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function Y(e,t,n,r){return e+" ("+t+") {"+(r?X(n,r):k.call(n,", "))+"}"}function X(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+k.call(e,","+n)+"\n"+t.prev}function Q(e,t){var n=U(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=B(e,o)?t(e[o],e):""}var i,a="function"==typeof F?F(e):[];if(A){i={};for(var u=0;u<a.length;u++)i["$"+a[u]]=a[u]}for(var s in e)B(e,s)&&(n&&String(Number(s))===s&&s<e.length||A&&i["$"+s]instanceof Symbol||($.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if("function"==typeof F)for(var c=0;c<a.length;c++)x.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},function(e,t){},function(e,t,n){"use strict";var r=n(29),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=u?i.slice(0,u.index):i,l=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}for(var f=0;n.depth>0&&null!==(u=a.exec(i))&&f<n.depth;){if(f+=1,!n.plainObjects&&o.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(u[1])}return u&&l.push("["+i.slice(u.index)+"]"),function(e,t,n,r){for(var o=r?t:s(t,n),i=e.length-1;i>=0;--i){var a,u=e[i];if("[]"===u&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var c="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,l=parseInt(c,10);n.parseArrays||""!==c?!isNaN(l)&&u!==c&&String(l)===c&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[])[l]=o:"__proto__"!==c&&(a[c]=o):a={0:o}}o=a}return o}(l,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var n,c={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=l.split(t.delimiter,f),p=-1,y=t.charset;if(t.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?y="utf-8":"utf8=%26%2310003%3B"===d[n]&&(y="iso-8859-1"),p=n,n=d.length);for(n=0;n<d.length;++n)if(n!==p){var h,v,b=d[n],m=b.indexOf("]="),g=-1===m?b.indexOf("="):m+1;-1===g?(h=t.decoder(b,a.decoder,y,"key"),v=t.strictNullHandling?null:""):(h=t.decoder(b.slice(0,g),a.decoder,y,"key"),v=r.maybeMap(s(b.slice(g+1),t),(function(e){return t.decoder(e,a.decoder,y,"value")}))),v&&t.interpretNumericEntities&&"iso-8859-1"===y&&(v=u(v)),b.indexOf("[]=")>-1&&(v=i(v)?[v]:v),o.call(c,h)?c[h]=r.combine(c[h],v):c[h]=v}return c}(e,n):e,f=n.plainObjects?Object.create(null):{},d=Object.keys(l),p=0;p<d.length;++p){var y=d[p],h=c(y,l[y],n,"string"==typeof e);f=r.merge(f,h,n)}return!0===n.allowSparse?f:r.compact(f)}},function(e,t,n){"use strict";n.r(t),n.d(t,"ApiClient",(function(){return r.a})),n.d(t,"ConsistencyGroupApi",(function(){return br})),n.d(t,"Flag",(function(){return $e})),n.d(t,"IPv4Address",(function(){return Tr})),n.d(t,"KVPair",(function(){return _e})),n.d(t,"Message",(function(){return ze})),n.d(t,"MessageSeverity",(function(){return Me})),n.d(t,"TenantAwareModel",(function(){return F})),n.d(t,"ApiLink",(function(){return w})),n.d(t,"ApiResponseMetadata",(function(){return nt})),n.d(t,"ExternalizableAbstractModel",(function(){return L})),n.d(t,"BaseRecoveryPoint",(function(){return Qr})),n.d(t,"RecoveryPointStatus",(function(){return Er})),n.d(t,"RecoveryPointType",(function(){return Rr})),n.d(t,"VendorSpecificProperty",(function(){return Jr})),n.d(t,"AhvVmOverrideSpec",(function(){return so})),n.d(t,"Category",(function(){return mo})),n.d(t,"ChangedRegions",(function(){return Co})),n.d(t,"ChangedRegionsListApiResponse",(function(){return Qo})),n.d(t,"ClusterReference",(function(){return ci})),n.d(t,"ConsistencyGroup",(function(){return ye})),n.d(t,"ConsistencyGroupApiResponse",(function(){return or})),n.d(t,"ConsistencyGroupListApiResponse",(function(){return jn})),n.d(t,"ConsistencyGroupMember",(function(){return ee})),n.d(t,"ConsistencyGroupMemberType",(function(){return B})),n.d(t,"ConsistencyGroupMigrateApiResponse",(function(){return Wi})),n.d(t,"ConsistencyGroupMigrationSpec",(function(){return ea})),n.d(t,"ConsistencyGroupProjection",(function(){return pt})),n.d(t,"ConsistencyGroupRecoveryPointSpec",(function(){return ca})),n.d(t,"CreateConsistencyGroupRecoveryPointApiResponse",(function(){return pu})),n.d(t,"CreateRecoveryPointApiResponse",(function(){return Au})),n.d(t,"DataProtectionInfo",(function(){return ys})),n.d(t,"DataProtectionSiteReference",(function(){return Uu})),n.d(t,"DeleteConsistencyGroupApiResponse",(function(){return Vn})),n.d(t,"DeleteRecoveryPointApiResponse",(function(){return As})),n.d(t,"DisasterRecoveryLocation",(function(){return Us})),n.d(t,"Disk",(function(){return Zs})),n.d(t,"DiskRecoveryPoint",(function(){return lc})),n.d(t,"DiskRecoveryPointApiResponse",(function(){return Sc})),n.d(t,"DiskRecoveryPointListApiResponse",(function(){return Bc})),n.d(t,"EsxiVmOverrideSpec",(function(){return tl})),n.d(t,"HardwareArchitecture",(function(){return rl})),n.d(t,"HostReference",(function(){return gl})),n.d(t,"HostType",(function(){return il})),n.d(t,"HypervisorType",(function(){return Ol})),n.d(t,"IpAddress",(function(){return Rl})),n.d(t,"LocationReference",(function(){return ma})),n.d(t,"PowerState",(function(){return Il})),n.d(t,"ProtectedResource",(function(){return af})),n.d(t,"ProtectedResourceApiResponse",(function(){return $f})),n.d(t,"ProtectedResourceEntityType",(function(){return Dl})),n.d(t,"ProtectedResourcePromoteApiResponse",(function(){return Uf})),n.d(t,"ProtectedResourceReplicationStatus",(function(){return Cl})),n.d(t,"ProtectedResourceRestoreApiResponse",(function(){return id})),n.d(t,"ProtectedResourceRestoreSpec",(function(){return hd})),n.d(t,"RecoveryInfo",(function(){return is})),n.d(t,"RecoveryPoint",(function(){return Za})),n.d(t,"RecoveryPointApiResponse",(function(){return Id})),n.d(t,"RecoveryPointListApiResponse",(function(){return Zd})),n.d(t,"RecoveryPointReplicateApiResponse",(function(){return yp})),n.d(t,"RecoveryPointReplicationSpec",(function(){return Fp})),n.d(t,"RecoveryPointRestorationSpec",(function(){return fy})),n.d(t,"RecoveryPointRestoreApiResponse",(function(){return Ey})),n.d(t,"Regions",(function(){return So})),n.d(t,"ReplicationState",(function(){return Bl})),n.d(t,"RestorableTimeRange",(function(){return Zu})),n.d(t,"SetExpirationTimeSpec",(function(){return My})),n.d(t,"SiteReference",(function(){return zy})),n.d(t,"Subnet",(function(){return nh})),n.d(t,"SyncedVolumeGroupByIdApiResponse",(function(){return Eh})),n.d(t,"SynchronousReplicaPromoteApiResponse",(function(){return qh})),n.d(t,"UpdateRecoveryPointExpirationTimeApiResponse",(function(){return lv})),n.d(t,"VMRecoveryPoint",(function(){return Dv})),n.d(t,"VMRecoveryPointApiResponse",(function(){return Yv})),n.d(t,"VMRecoveryPointListApiResponse",(function(){return hb})),n.d(t,"ValidateRecoveryPointResult",(function(){return Sb})),n.d(t,"ValidateRestoreVmRecoveryPointApiResponse",(function(){return Wb})),n.d(t,"ValidationSeverity",(function(){return mb})),n.d(t,"Vm",(function(){return wv})),n.d(t,"VmRecoveryPointRestorationSpec",(function(){return em})),n.d(t,"VmRecoveryPointRestoreApiResponse",(function(){return bm})),n.d(t,"VmRecoveryPointRestoreOverride",(function(){return Mp})),n.d(t,"VmSubRecoveryPoint",(function(){return Sa})),n.d(t,"VmSubRecoveryPointProjection",(function(){return Fm})),n.d(t,"VolumeGroup",(function(){return Mm})),n.d(t,"VolumeGroupOverrideSpec",(function(){return zp})),n.d(t,"VolumeGroupRecoveryPoint",(function(){return Xm})),n.d(t,"VolumeGroupRecoveryPointApiResponse",(function(){return hg})),n.d(t,"VolumeGroupRecoveryPointListApiResponse",(function(){return xg})),n.d(t,"VolumeGroupRecoveryPointRestorationSpec",(function(){return Lg})),n.d(t,"VolumeGroupRecoveryPointRestoreApiResponse",(function(){return aw})),n.d(t,"VolumeGroupRecoveryPointRestoreOverride",(function(){return ny})),n.d(t,"VolumeGroupSubRecoveryPoint",(function(){return Ca})),n.d(t,"VolumeGroupSubRecoveryPointProjection",(function(){return mw})),n.d(t,"VolumeGroupSyncContext",(function(){return fh})),n.d(t,"VpcReference",(function(){return Sw})),n.d(t,"Witness",(function(){return Lw})),n.d(t,"WitnessApiResponse",(function(){return aO})),n.d(t,"WitnessAvailabilityStatus",(function(){return Fw})),n.d(t,"AppMessage",(function(){return kt})),n.d(t,"ErrorResponse",(function(){return nn})),n.d(t,"SchemaValidationError",(function(){return Wt})),n.d(t,"SchemaValidationErrorMessage",(function(){return _t})),n.d(t,"TaskReference",(function(){return mi})),n.d(t,"Task",(function(){return Si}));var r=n(2),o={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return o[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e)switch(e){case o.DEFAULT:return;default:throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(o);var i=o;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===a(i)?i:String(i)),r)}var o,i}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"validateMaximum",value:function(e,t){return!(null===t||e>t)}},{key:"validateMinimum",value:function(e,t){return!(null===t||e<t)}},{key:"validateExclusiveMaximum",value:function(e,t){return!(null===t||e>t)}},{key:"validateExclusiveMinimum",value:function(e,t){return!(null===t||e>t)}},{key:"validateMultipleOf",value:function(e,t){return!(null===t||e%t==0)}},{key:"validateMaxLength",value:function(e,t){return!(null===t||e.length>t)}},{key:"validateMinLength",value:function(e,t){return!(null===t||e.length<t)}},{key:"validatePattern",value:function(e,t){return!(null===t||null===e.match(t))}},{key:"validateMaxItems",value:function(e,t){return!(null===t||e.length>t)}},{key:"validateMinItems",value:function(e,t){return!(null===t||e.length<t)}},{key:"validateUniqueItems",value:function(e,t){return!(null===t||!t||e.length!==new Set(e).size)}}],(n=null)&&u(t.prototype,n),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==c(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===c(i)?i:String(i)),r)}var o,i}var f=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.message=n}var t,n,r;return t=e,(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"toJson",value:function(){return{name:this.getName(),message:this.getMessage()}}}])&&l(t.prototype,n),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,b(r.key),r)}}function b(e){var t=function(e,t){if("object"!==d(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===d(t)?t:String(t)}function m(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}var g=new WeakSet,w=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),m(this,g),this.$objectType="common.v1.response.ApiLink",this.$reserved={$fqObjectType:"common.v1.r0.a3.response.ApiLink"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("href")&&null!==t.href&&void 0!==t.href&&n.setHref(t.href),t.hasOwnProperty("rel")&&null!==t.rel&&void 0!==t.rel&&n.setRel(t.rel),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=y({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getHref",value:function(){return this.href}},{key:"setHref",value:function(e){this.href=e}},{key:"getRel",value:function(){return this.rel}},{key:"setRel",value:function(e){this.rel=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return y(y(y({},void 0!==this.getHref()&&null!==this.getHref()?{href:this.getHref()}:{}),void 0!==this.getRel()&&null!==this.getRel()?{rel:this.getRel()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"href"!==t||void 0!==this.href&&null!==this.href?"rel"!==t||void 0!==this.rel&&null!==this.rel?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("rel","undefined or null"):new f("href","undefined or null")}}])&&v(t.prototype,n),r&&v(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e,t,n){return(t=T(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,T(r.key),r)}}function T(e){var t=function(e,t){if("object"!==O(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==O(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===O(t)?t:String(t)}function S(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}w.prototype.href=void 0,w.prototype.rel=void 0,w.prototype.$reserved=void 0,w.prototype.$objectType=void 0,w.prototype.$unknownFields=void 0;var E=new WeakSet,F=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),S(this,E),this.$objectType="common.v1.config.TenantAwareModel",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.TenantAwareModel"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("tenantId")&&null!==t.tenantId&&void 0!==t.tenantId&&n.setTenantId(t.tenantId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=$({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getTenantId",value:function(){return this.tenantId}},{key:"setTenantId",value:function(e){this.tenantId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return!1===e?$($({},void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new f("tenantId","undefined or null");if(!s.validatePattern(this.tenantId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("tenantId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&k(t.prototype,n),r&&k(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_(r.key),r)}}function _(e){var t=function(e,t){if("object"!==R(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===R(t)?t:String(t)}function C(e,t){return(C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=V(e);if(t){var o=V(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){if(t&&("object"===R(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return J(e)}function J(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V(e){return(V=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function U(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}F.prototype.tenantId=void 0,F.prototype.$reserved=void 0,F.prototype.$objectType=void 0,F.prototype.$unknownFields=void 0;var G=new WeakSet,L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(a,e);var t,n,r,o=N(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),U(J(e=o.call(this)),G),e.$objectType="common.v1.response.ExternalizableAbstractModel",e.$reserved={$fqObjectType:"common.v1.r0.a3.response.ExternalizableAbstractModel"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,F.constructFromObject(e,t,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&t.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(i=[],n=e.links,o=0;o<n.length;o++)r=w.constructFromObject(n[o],void 0),i.push(r);t.setLinks(i)}if(!u)for(var s in t.$unknownFields=I({},e.$unknownFields),e)Object.keys(t).includes(s)||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(t.$unknownFields[s]=e[s])}return t}}],(n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"toJson",value:function(e){return I(!1===e?I(I(I({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):I({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new f("extId","undefined or null");if(null==e){if(!s.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("extId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}else if(e===i.update&&!s.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("extId","does not satisfy pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"links"!==t||void 0!==this.links&&null!==this.links?new f(t,"no such property exists"):new f("links","undefined or null")}}])&&D(t.prototype,n),r&&D(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(F);L.prototype.extId=void 0,L.prototype.links=void 0;var W={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VM:"VM",VOLUME_GROUP:"VOLUME_GROUP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(W).find((function(t){return W[t]===e}));return null==t?W.$UNKNOWN:W[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case W.$UNKNOWN:case W.$REDACTED:case W.VM:case W.VOLUME_GROUP:return;default:throw new Error("Invalid : must be ConsistencyGroupMemberType.{ $UNKNOWN|$REDACTED|VM|VOLUME_GROUP }")}}};Object.freeze(W);var B=W;function q(e){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t,n){return(t=Y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Y(r.key),r)}}function Y(e){var t=function(e,t){if("object"!==q(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===q(t)?t:String(t)}function X(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}var Q=new WeakSet,ee=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),X(this,Q),this.entityType=t,this.$objectType="dataprotection.v4.config.ConsistencyGroupMember",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.ConsistencyGroupMember"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("entityId")&&null!==t.entityId&&void 0!==t.entityId&&n.setEntityId(t.entityId),t.hasOwnProperty("entityType")&&null!==t.entityType&&void 0!==t.entityType&&n.setEntityType(B.constructFromObject(t.entityType)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=H({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getEntityId",value:function(){return this.entityId}},{key:"setEntityId",value:function(e){this.entityId=e}},{key:"getEntityType",value:function(){return this.entityType}},{key:"setEntityType",value:function(e){this.entityType=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return H(H(H(H({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getEntityId()&&null!==this.getEntityId()?{entityId:this.getEntityId()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["entityType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new f("extId","undefined or null");if(!s.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("extId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("entityId"===t){if(void 0===this.entityId||null===this.entityId)return new f("entityId","undefined or null");if(!s.validatePattern(this.entityId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("entityId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"entityType"!==t||void 0!==this.entityType&&null!==this.entityType?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("entityType","undefined or null")}}])&&Z(t.prototype,n),r&&Z(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function te(e){return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(e,t,n){return(t=ae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ae(r.key),r)}}function ae(e){var t=function(e,t){if("object"!==te(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==te(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===te(t)?t:String(t)}function ue(e,t){return(ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function se(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fe(e);if(t){var o=fe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ce(this,n)}}function ce(e,t){if(t&&("object"===te(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return le(e)}function le(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fe(e){return(fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function de(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}ee.prototype.extId=void 0,ee.prototype.entityId=void 0,ee.prototype.entityType=void 0,ee.prototype.$reserved=void 0,ee.prototype.$objectType=void 0,ee.prototype.$unknownFields=void 0;var pe=new WeakSet,ye=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ue(e,t)}(a,e);var t,n,r,o=se(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),de(le(t=o.call(this)),pe),t.name=e,t.$objectType="dataprotection.v4.config.ConsistencyGroup",t.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.ConsistencyGroup"},t.$unknownFields={},t}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,L.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("ownerExtId")&&null!==e.ownerExtId&&void 0!==e.ownerExtId&&t.setOwnerExtId(e.ownerExtId),e.hasOwnProperty("members")&&null!==e.members&&void 0!==e.members){for(i=[],n=e.members,o=0;o<n.length;o++)r=ee.constructFromObject(n[o],void 0),i.push(r);t.setMembers(i)}if(!u)for(var s in t.$unknownFields=re({},e.$unknownFields),e)Object.keys(t).includes(s)||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(t.$unknownFields[s]=e[s])}return t}}],(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getOwnerExtId",value:function(){return this.ownerExtId}},{key:"setOwnerExtId",value:function(e){this.ownerExtId=e}},{key:"getMembers",value:function(){return this.members}},{key:"setMembers",value:function(e){this.members=e}},{key:"toJson",value:function(e){return re(!1===e?re(re(re(re(re(re({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getOwnerExtId()&&null!==this.getOwnerExtId()?{ownerExtId:this.getOwnerExtId()}:{}),void 0!==this.getMembers()&&null!==this.getMembers()?{members:this.getMembers().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):re(re(re(re({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getOwnerExtId()&&null!==this.getOwnerExtId()?{ownerExtId:this.getOwnerExtId()}:{}),void 0!==this.getMembers()&&null!==this.getMembers()?{members:this.getMembers().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["name"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new f("name","undefined or null");if(!s.validateMaxLength(this.name,256))return new f("name","does not satisfy required maxLength constraint: 256")}if("ownerExtId"===t){if(void 0===this.ownerExtId||null===this.ownerExtId)return new f("ownerExtId","undefined or null");if(!s.validatePattern(this.ownerExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("ownerExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("members"===t){if(void 0===this.members||null===this.members)return new f("members","undefined or null");if(!s.validateMaxItems(this.members,30))return new f("members","does not satisfy required maxItems constraint: 30");if(!s.validateMinItems(this.members,1))return new f("members","does not satisfy required minItems constraint: 1")}return new f(t,"no such property exists")}}])&&ie(t.prototype,n),r&&ie(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(L);function he(e){return(he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(n),!0).forEach((function(t){me(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function me(e,t,n){return(t=we(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,we(r.key),r)}}function we(e){var t=function(e,t){if("object"!==he(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==he(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===he(t)?t:String(t)}function Oe(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}ye.prototype.name=void 0,ye.prototype.ownerExtId=void 0,ye.prototype.members=void 0;var je=new WeakSet,$e=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Oe(this,je),this.$objectType="common.v1.config.Flag",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.Flag"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=be({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return be(be(be({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("value","undefined or null"):new f("name","undefined or null")}}])&&ge(t.prototype,n),r&&ge(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ke(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ke(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Te(e){return(Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){Fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fe(e,t,n){return(t=Ae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ae(r.key),r)}}function Ae(e){var t=function(e,t){if("object"!==Te(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Te(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Te(t)?t:String(t)}function Ie(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function xe(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}$e.prototype.name=void 0,$e.prototype.value=!1,$e.prototype.$reserved=void 0,$e.prototype.$objectType=void 0,$e.prototype.$unknownFields=void 0;var De=new WeakSet,_e=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ie(this,De),this.$objectType="common.v1.config.KVPair",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.KVPair"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value)if(Array.isArray(t.value))if(0===t.value.length)n.setValue([]);else{for(i=[],a=(r=t.value)[0].hasOwnProperty("$objectType")?r[0].$objectType:Te(r[0]),o=0;o<r.length;o++)switch(a){case"string":case"number":i.push(r[o]);break;default:throw"Unknown list of type "+a+" in data"}n.setValue(i)}else switch(a=t.value.hasOwnProperty("$objectType")?t.value.$objectType:Te(t.value)){case"string":case"boolean":case"number":n.setValue(t.value);break;case"object":n.setValue(new Map(Object.entries(t.value)));break;default:throw"Unknown datatype "+a+" in data"}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!u)for(var s in n.$unknownFields=Ee({},t.$unknownFields),t)Object.keys(n).includes(s)||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(n.$unknownFields[s]=t[s])}return n}}],(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ee(Ee(Ee({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),!1===e?void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson(!1):Array.isArray(this.getValue())?this.getValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):xe(this,De,Ce).call(this,this.getValue(),!1)}:{}:void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):xe(this,De,Ce).call(this,this.getValue())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("value","undefined or null"):new f("name","undefined or null")}}])&&Re(t.prototype,n),r&&Re(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ce(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=Pe(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Te(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}_e.prototype.name=void 0,_e.prototype.value=void 0,_e.prototype.$reserved=void 0,_e.prototype.$objectType=void 0,_e.prototype.$unknownFields=void 0;var Ne={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Ne).find((function(t){return Ne[t]===e}));return null==t?Ne.$UNKNOWN:Ne[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ne.$UNKNOWN:case Ne.$REDACTED:case Ne.INFO:case Ne.WARNING:case Ne.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(Ne);var Me=Ne;function Je(e){return(Je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(n),!0).forEach((function(t){Ge(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ge(e,t,n){return(t=We(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Le(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,We(r.key),r)}}function We(e){var t=function(e,t){if("object"!==Je(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Je(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Je(t)?t:String(t)}function Be(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}var qe=new WeakSet,ze=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Be(this,qe),this.$objectType="common.v1.config.Message",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.Message"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(Me.constructFromObject(t.severity)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Ue({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ue(Ue(Ue(Ue(Ue({},void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"code"!==t||void 0!==this.code&&null!==this.code?"message"!==t||void 0!==this.message&&null!==this.message?"locale"!==t||void 0!==this.locale&&null!==this.locale?"severity"!==t||void 0!==this.severity&&null!==this.severity?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("severity","undefined or null"):new f("locale","undefined or null"):new f("message","undefined or null"):new f("code","undefined or null")}}])&&Le(t.prototype,n),r&&Le(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function He(e){return(He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach((function(t){Ye(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ye(e,t,n){return(t=Qe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qe(r.key),r)}}function Qe(e){var t=function(e,t){if("object"!==He(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==He(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===He(t)?t:String(t)}function et(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}ze.prototype.code=void 0,ze.prototype.message=void 0,ze.prototype.locale="en_US",ze.prototype.severity=void 0,ze.prototype.$reserved=void 0,ze.prototype.$objectType=void 0,ze.prototype.$unknownFields=void 0;var tt=new WeakSet,nt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),et(this,tt),this.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fqObjectType:"common.v1.r0.a3.response.ApiResponseMetadata"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("flags")&&null!==t.flags&&void 0!==t.flags){for(a=[],r=t.flags,i=0;i<r.length;i++)o=$e.constructFromObject(r[i],void 0),a.push(o);n.setFlags(a)}if(t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){for(a=[],r=t.links,i=0;i<r.length;i++)o=w.constructFromObject(r[i],void 0),a.push(o);n.setLinks(a)}if(t.hasOwnProperty("totalAvailableResults")&&null!==t.totalAvailableResults&&void 0!==t.totalAvailableResults&&n.setTotalAvailableResults(t.totalAvailableResults),t.hasOwnProperty("messages")&&null!==t.messages&&void 0!==t.messages){for(a=[],r=t.messages,i=0;i<r.length;i++)o=ze.constructFromObject(r[i],void 0),a.push(o);n.setMessages(a)}if(t.hasOwnProperty("extraInfo")&&null!==t.extraInfo&&void 0!==t.extraInfo){for(a=[],r=t.extraInfo,i=0;i<r.length;i++)o=_e.constructFromObject(r[i],void 0),a.push(o);n.setExtraInfo(a)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!u)for(var s in n.$unknownFields=Ze({},t.$unknownFields),t)Object.keys(n).includes(s)||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(n.$unknownFields[s]=t[s])}return n}}],(n=[{key:"getFlags",value:function(){return this.flags}},{key:"setFlags",value:function(e){this.flags=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"getTotalAvailableResults",value:function(){return this.totalAvailableResults}},{key:"setTotalAvailableResults",value:function(e){this.totalAvailableResults=e}},{key:"getMessages",value:function(){return this.messages}},{key:"setMessages",value:function(e){this.messages=e}},{key:"getExtraInfo",value:function(){return this.extraInfo}},{key:"setExtraInfo",value:function(e){this.extraInfo=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ze(Ze(Ze(Ze(Ze(Ze({},void 0!==this.getFlags()&&null!==this.getFlags()?{flags:this.getFlags().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTotalAvailableResults()&&null!==this.getTotalAvailableResults()?{totalAvailableResults:this.getTotalAvailableResults()}:{}),void 0!==this.getMessages()&&null!==this.getMessages()?{messages:this.getMessages().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtraInfo()&&null!==this.getExtraInfo()?{extraInfo:this.getExtraInfo().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"flags"!==t||void 0!==this.flags&&null!==this.flags?"links"!==t||void 0!==this.links&&null!==this.links?"totalAvailableResults"!==t||void 0!==this.totalAvailableResults&&null!==this.totalAvailableResults?"messages"!==t||void 0!==this.messages&&null!==this.messages?"extraInfo"!==t||void 0!==this.extraInfo&&null!==this.extraInfo?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("extraInfo","undefined or null"):new f("messages","undefined or null"):new f("totalAvailableResults","undefined or null"):new f("links","undefined or null"):new f("flags","undefined or null")}}])&&Xe(t.prototype,n),r&&Xe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function rt(e){return(rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function it(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(n),!0).forEach((function(t){at(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function at(e,t,n){return(t=st(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ut(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,st(r.key),r)}}function st(e){var t=function(e,t){if("object"!==rt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==rt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rt(t)?t:String(t)}function ct(e,t){return(ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function lt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dt(e);if(t){var o=dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ft(this,n)}}function ft(e,t){if(t&&("object"===rt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function dt(e){return(dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}nt.prototype.flags=void 0,nt.prototype.links=void 0,nt.prototype.totalAvailableResults=void 0,nt.prototype.messages=void 0,nt.prototype.extraInfo=void 0,nt.prototype.$reserved=void 0,nt.prototype.$objectType=void 0,nt.prototype.$unknownFields=void 0;var pt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ct(e,t)}(a,e);var t,n,r,o=lt(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).$objectType="dataprotection.v4.config.ConsistencyGroupProjection",t.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.ConsistencyGroupProjection"},t.$unknownFields={},t}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new a,ye.constructFromObject(e,t,!0),!n))for(var r in t.$unknownFields=it({},e.$unknownFields),e)Object.keys(t).includes(r)||"$"===r[0]&&r.endsWith("ItemDiscriminator")||(t.$unknownFields[r]=e[r]);return t}}],(n=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["name"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return new f(t,"no such property exists")}}])&&ut(t.prototype,n),r&&ut(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(ye);function yt(e){return(yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ht(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return vt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){gt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gt(e,t,n){return(t=Ot(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ot(r.key),r)}}function Ot(e){var t=function(e,t){if("object"!==yt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==yt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===yt(t)?t:String(t)}function jt(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function $t(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}var Pt=new WeakSet,kt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),jt(this,Pt),this.$objectType="dataprotection.v4.error.AppMessage",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.error.AppMessage"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(Me.constructFromObject(t.severity)),t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("errorGroup")&&null!==t.errorGroup&&void 0!==t.errorGroup&&n.setErrorGroup(t.errorGroup),t.hasOwnProperty("argumentsMap")&&null!==t.argumentsMap&&void 0!==t.argumentsMap&&n.setArgumentsMap(t.argumentsMap),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=mt({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getErrorGroup",value:function(){return this.errorGroup}},{key:"setErrorGroup",value:function(e){this.errorGroup=e}},{key:"getArgumentsMap",value:function(){return this.argumentsMap}},{key:"setArgumentsMap",value:function(e){this.argumentsMap=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return mt(mt(mt(mt(mt(mt(mt({},void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getErrorGroup()&&null!==this.getErrorGroup()?{errorGroup:this.getErrorGroup()}:{}),!1===e?void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:$t(this,Pt,Tt).call(this,this.getArgumentsMap(),!1)}:{}:void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:$t(this,Pt,Tt).call(this,this.getArgumentsMap())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"message"!==t||void 0!==this.message&&null!==this.message?"severity"!==t||void 0!==this.severity&&null!==this.severity?"code"!==t||void 0!==this.code&&null!==this.code?"locale"!==t||void 0!==this.locale&&null!==this.locale?"errorGroup"!==t||void 0!==this.errorGroup&&null!==this.errorGroup?"argumentsMap"!==t||void 0!==this.argumentsMap&&null!==this.argumentsMap?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("argumentsMap","undefined or null"):new f("errorGroup","undefined or null"):new f("locale","undefined or null"):new f("code","undefined or null"):new f("severity","undefined or null"):new f("message","undefined or null")}}])&&wt(t.prototype,n),r&&wt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Tt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=ht(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===yt(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function St(e){return(St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(n),!0).forEach((function(t){Rt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rt(e,t,n){return(t=It(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function At(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,It(r.key),r)}}function It(e){var t=function(e,t){if("object"!==St(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==St(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===St(t)?t:String(t)}function xt(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}kt.prototype.message=void 0,kt.prototype.severity=void 0,kt.prototype.code=void 0,kt.prototype.locale="en_US",kt.prototype.errorGroup=void 0,kt.prototype.argumentsMap=void 0,kt.prototype.$reserved=void 0,kt.prototype.$objectType=void 0,kt.prototype.$unknownFields=void 0;var Dt=new WeakSet,_t=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),xt(this,Dt),this.$objectType="dataprotection.v4.error.SchemaValidationErrorMessage",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.error.SchemaValidationErrorMessage"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("location")&&null!==t.location&&void 0!==t.location&&n.setLocation(t.location),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("attributePath")&&null!==t.attributePath&&void 0!==t.attributePath&&n.setAttributePath(t.attributePath),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Ft({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getLocation",value:function(){return this.location}},{key:"setLocation",value:function(e){this.location=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getAttributePath",value:function(){return this.attributePath}},{key:"setAttributePath",value:function(e){this.attributePath=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ft(Ft(Ft(Ft({},void 0!==this.getLocation()&&null!==this.getLocation()?{location:this.getLocation()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getAttributePath()&&null!==this.getAttributePath()?{attributePath:this.getAttributePath()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"location"!==t||void 0!==this.location&&null!==this.location?"message"!==t||void 0!==this.message&&null!==this.message?"attributePath"!==t||void 0!==this.attributePath&&null!==this.attributePath?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("attributePath","undefined or null"):new f("message","undefined or null"):new f("location","undefined or null")}}])&&At(t.prototype,n),r&&At(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ct(e){return(Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nt(Object(n),!0).forEach((function(t){Jt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jt(e,t,n){return(t=Ut(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ut(r.key),r)}}function Ut(e){var t=function(e,t){if("object"!==Ct(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ct(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ct(t)?t:String(t)}function Gt(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}_t.prototype.location=void 0,_t.prototype.message=void 0,_t.prototype.attributePath=void 0,_t.prototype.$reserved=void 0,_t.prototype.$objectType=void 0,_t.prototype.$unknownFields=void 0;var Lt=new WeakSet,Wt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Gt(this,Lt),this.$objectType="dataprotection.v4.error.SchemaValidationError",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.error.SchemaValidationError"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&n.setTimestamp(t.timestamp),t.hasOwnProperty("statusCode")&&null!==t.statusCode&&void 0!==t.statusCode&&n.setStatusCode(t.statusCode),t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error&&n.setError(t.error),t.hasOwnProperty("path")&&null!==t.path&&void 0!==t.path&&n.setPath(t.path),t.hasOwnProperty("validationErrorMessages")&&null!==t.validationErrorMessages&&void 0!==t.validationErrorMessages){for(a=[],r=t.validationErrorMessages,i=0;i<r.length;i++)o=_t.constructFromObject(r[i],void 0),a.push(o);n.setValidationErrorMessages(a)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!u)for(var s in n.$unknownFields=Mt({},t.$unknownFields),t)Object.keys(n).includes(s)||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(n.$unknownFields[s]=t[s])}return n}}],(n=[{key:"getTimestamp",value:function(){return this.timestamp}},{key:"setTimestamp",value:function(e){this.timestamp=e}},{key:"getStatusCode",value:function(){return this.statusCode}},{key:"setStatusCode",value:function(e){this.statusCode=e}},{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"getPath",value:function(){return this.path}},{key:"setPath",value:function(e){this.path=e}},{key:"getValidationErrorMessages",value:function(){return this.validationErrorMessages}},{key:"setValidationErrorMessages",value:function(e){this.validationErrorMessages=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Mt(Mt(Mt(Mt(Mt(Mt({},void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:this.getTimestamp()}:{}),void 0!==this.getStatusCode()&&null!==this.getStatusCode()?{statusCode:this.getStatusCode()}:{}),void 0!==this.getError()&&null!==this.getError()?{error:this.getError()}:{}),void 0!==this.getPath()&&null!==this.getPath()?{path:this.getPath()}:{}),void 0!==this.getValidationErrorMessages()&&null!==this.getValidationErrorMessages()?{validationErrorMessages:this.getValidationErrorMessages().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"statusCode"!==t||void 0!==this.statusCode&&null!==this.statusCode?"error"!==t||void 0!==this.error&&null!==this.error?"path"!==t||void 0!==this.path&&null!==this.path?"validationErrorMessages"!==t||void 0!==this.validationErrorMessages&&null!==this.validationErrorMessages?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("validationErrorMessages","undefined or null"):new f("path","undefined or null"):new f("error","undefined or null"):new f("statusCode","undefined or null"):new f("timestamp","undefined or null")}}])&&Vt(t.prototype,n),r&&Vt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Bt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zt(e){return(zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){Zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zt(e,t,n){return(t=Xt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xt(r.key),r)}}function Xt(e){var t=function(e,t){if("object"!==zt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zt(t)?t:String(t)}function Qt(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function en(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}Wt.prototype.timestamp=void 0,Wt.prototype.statusCode=void 0,Wt.prototype.error=void 0,Wt.prototype.path=void 0,Wt.prototype.validationErrorMessages=void 0,Wt.prototype.$reserved=void 0,Wt.prototype.$objectType=void 0,Wt.prototype.$unknownFields=void 0;var tn=new WeakSet,nn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Qt(this,tn),this.$objectType="dataprotection.v4.error.ErrorResponse",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.error.ErrorResponse"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,a,u,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error)if(Array.isArray(t.error))if(0===t.error.length)n.setError([]);else{for(a=[],u=(r=t.error)[0].hasOwnProperty("$objectType")?r[0].$objectType:zt(r[0]),i=0;i<r.length;i++)switch(u){case"dataprotection.v4.error.AppMessage":o=kt.constructFromObject(r[i],void 0),a.push(o);break;default:throw"Unknown list of type "+u+" in data"}n.setError(a)}else switch(u=t.error.hasOwnProperty("$objectType")?t.error.$objectType:zt(t.error)){case"dataprotection.v4.error.SchemaValidationError":n.setError(Wt.constructFromObject(t.error,void 0));break;default:throw"Unknown datatype "+u+" in data"}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!s)for(var c in n.$unknownFields=Kt({},t.$unknownFields),t)Object.keys(n).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(n.$unknownFields[c]=t[c])}return n}}],(n=[{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Kt(Kt({},!1===e?void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson(!1):Array.isArray(this.getError())?this.getError().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):en(this,tn,rn).call(this,this.getError(),!1)}:{}:void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson():Array.isArray(this.getError())?this.getError().map((function(e){return void 0!==e.toJson?e.toJson():e})):en(this,tn,rn).call(this,this.getError())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"error"!==t||void 0!==this.error&&null!==this.error?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("error","undefined or null")}}])&&Yt(t.prototype,n),r&&Yt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function rn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=Bt(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===zt(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}nn.prototype.error=void 0,nn.prototype.$reserved=void 0,nn.prototype.$objectType=void 0,nn.prototype.$unknownFields=void 0;var on=n(0);function an(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return un(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return un(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function un(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sn(e){return(sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cn(Object(n),!0).forEach((function(t){fn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fn(e,t,n){return(t=pn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pn(r.key),r)}}function pn(e){var t=function(e,t){if("object"!==sn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==sn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sn(t)?t:String(t)}function yn(e,t){return(yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function hn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=mn(e);if(t){var o=mn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vn(this,n)}}function vn(e,t){if(t&&("object"===sn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return bn(e)}function bn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mn(e){return(mn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gn(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function wn(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}var On=new WeakSet,jn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yn(e,t)}(a,e);var t,n,r,o=hn(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),gn(bn(e=o.call(this)),On),e.$objectType="dataprotection.v4.config.ConsistencyGroupListApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.ConsistencyGroupListApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,u,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(i=[],u=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:sn(n[0]),o=0;o<n.length;o++)switch(u){case"dataprotection.v4.config.ConsistencyGroup":r=ye.constructFromObject(n[o],void 0),i.push(r);break;case"dataprotection.v4.config.ConsistencyGroupProjection":r=pt.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+u+" in data"}t.setData(i)}else switch(u=e.data.hasOwnProperty("$objectType")?e.data.$objectType:sn(e.data)){case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+u+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!s)for(var c in t.$unknownFields=ln({},e.$unknownFields),e)Object.keys(t).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(t.$unknownFields[c]=e[c])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ln(ln(ln({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):wn(this,On,$n).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):wn(this,On,$n).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&dn(t.prototype,n),r&&dn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function $n(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=an(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===sn(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Pn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tn(e){return(Tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function En(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(n),!0).forEach((function(t){Fn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fn(e,t,n){return(t=An(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,An(r.key),r)}}function An(e){var t=function(e,t){if("object"!==Tn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Tn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Tn(t)?t:String(t)}function In(e,t){return(In=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function xn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Cn(e);if(t){var o=Cn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Dn(this,n)}}function Dn(e,t){if(t&&("object"===Tn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _n(e)}function _n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cn(e){return(Cn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Nn(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function Mn(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}jn.prototype.metadata=void 0,jn.prototype.data=void 0,jn.prototype.$reserved=void 0,jn.prototype.$objectType=void 0,jn.prototype.$unknownFields=void 0;var Jn=new WeakSet,Vn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&In(e,t)}(a,e);var t,n,r,o=xn(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Nn(_n(e=o.call(this)),Jn),e.$objectType="dataprotection.v4.config.DeleteConsistencyGroupApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.DeleteConsistencyGroupApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(null===e.data&&t.setData(null),n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Tn(e.data)){case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;case"":t.setData(Void.constructFromObject(e[""],void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=En({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return En(En(En({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Mn(this,Jn,Un).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Mn(this,Jn,Un).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Rn(t.prototype,n),r&&Rn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function Un(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=Pn(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Tn(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Gn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ln(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ln(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ln(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wn(e){return(Wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bn(Object(n),!0).forEach((function(t){zn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zn(e,t,n){return(t=Kn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Kn(r.key),r)}}function Kn(e){var t=function(e,t){if("object"!==Wn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Wn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Wn(t)?t:String(t)}function Zn(e,t){return(Zn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Yn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=er(e);if(t){var o=er(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xn(this,n)}}function Xn(e,t){if(t&&("object"===Wn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Qn(e)}function Qn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function er(e){return(er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tr(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function nr(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}Vn.prototype.metadata=void 0,Vn.prototype.data=void 0,Vn.prototype.$reserved=void 0,Vn.prototype.$objectType=void 0,Vn.prototype.$unknownFields=void 0;var rr=new WeakSet,or=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zn(e,t)}(a,e);var t,n,r,o=Yn(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),tr(Qn(e=o.call(this)),rr),e.$objectType="dataprotection.v4.config.ConsistencyGroupApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.ConsistencyGroupApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Wn(e.data)){case"dataprotection.v4.config.ConsistencyGroup":t.setData(ye.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=qn({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return qn(qn(qn({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):nr(this,rr,ir).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):nr(this,rr,ir).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Hn(t.prototype,n),r&&Hn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function ir(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=Gn(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Wn(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function ar(e){return(ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ur(Object(n),!0).forEach((function(t){cr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ur(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cr(e,t,n){return(t=fr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fr(r.key),r)}}function fr(e){var t=function(e,t){if("object"!==ar(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ar(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ar(t)?t:String(t)}function dr(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}function pr(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,hr(e,t,"get"))}function yr(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,hr(e,t,"set"),n),n}function hr(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}or.prototype.metadata=void 0,or.prototype.data=void 0,or.prototype.$reserved=void 0,or.prototype.$objectType=void 0,or.prototype.$unknownFields=void 0;var vr=new WeakMap,br=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),dr(this,vr,{writable:!0,value:void 0}),this.apiClient=t||r.a.instance,yr(this,vr,new Set),pr(this,vr).add("authorization"),pr(this,vr).add("cookie"),pr(this,vr).add("ntnx-request-id"),pr(this,vr).add("host"),pr(this,vr).add("user-agent")}var t,n,o;return t=e,o=[{key:"ApiClient",get:function(){return r.a}}],(n=[{key:"createConsistencyGroup",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},o=null;if(null==(o=e instanceof ye&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createConsistencyGroup");var i={},a={},u={};Object.keys(n).forEach((function(e){pr(t,vr).has(e.toLowerCase())||(u[e]=n[e])}));var s=sr({},u),c={};r.a.addEtagReferenceToHeader(e,s);var l=["basicAuthScheme"],f=["application/json"],d=["application/json"],p=or;return this.apiClient.callApi("/api/dataprotection/v4.0.a4/config/consistency-groups","POST",i,a,s,c,o,l,f,d,p)}},{key:"deleteConsistencyGroup",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteConsistencyGroup");var o={extId:e},i={},a={};Object.keys(n).forEach((function(e){pr(t,vr).has(e.toLowerCase())||(a[e]=n[e])}));var u=sr({},a),s={},c=["basicAuthScheme"],l=[],f=["application/json"],d=Vn;return this.apiClient.callApi("/api/dataprotection/v4.0.a4/config/consistency-groups/{extId}","DELETE",o,i,u,s,r,c,l,f,d)}},{key:"getConsistencyGroup",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling getConsistencyGroup");var o={extId:e},i={},a={};Object.keys(n).forEach((function(e){pr(t,vr).has(e.toLowerCase())||(a[e]=n[e])}));var u=sr({},a),s={},c=["basicAuthScheme"],l=[],f=["application/json"],d=or;return this.apiClient.callApi("/api/dataprotection/v4.0.a4/config/consistency-groups/{extId}","GET",o,i,u,s,r,c,l,f,d)}},{key:"getConsistencyGroups",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=null,o={},i=sr(sr(sr(sr(sr(sr(sr({},(e=e||{}).hasOwnProperty("vmList")?{vmList:this.apiClient.buildCollectionParam(e.vmList,"csv")}:{}),e.hasOwnProperty("volumeGroupList")?{volumeGroupList:this.apiClient.buildCollectionParam(e.volumeGroupList,"csv")}:{}),e.hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{}),e.hasOwnProperty("$select")?{$select:e.$select}:{}),a={};Object.keys(n).forEach((function(e){pr(t,vr).has(e.toLowerCase())||(a[e]=n[e])}));var u=sr({},a),s={},c=["basicAuthScheme"],l=[],f=["application/json"],d=jn;return this.apiClient.callApi("/api/dataprotection/v4.0.a4/config/consistency-groups","GET",o,i,u,s,r,c,l,f,d)}},{key:"updateConsistencyGroup",value:function(e,t){var n=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{},i=null;if(i=t instanceof ye&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateConsistencyGroup");if(null==i)throw new Error("Invalid body when calling updateConsistencyGroup");var a={extId:e},u={},s={};Object.keys(o).forEach((function(e){pr(n,vr).has(e.toLowerCase())||(s[e]=o[e])}));var c=sr({},s),l={};r.a.addEtagReferenceToHeader(t,c);var f=["basicAuthScheme"],d=["application/json"],p=["application/json"],y=or;return this.apiClient.callApi("/api/dataprotection/v4.0.a4/config/consistency-groups/{extId}","PUT",a,u,c,l,i,f,d,p,y)}}])&&lr(t.prototype,n),o&&lr(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function mr(e){return(mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gr(Object(n),!0).forEach((function(t){Or(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Or(e,t,n){return(t=$r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$r(r.key),r)}}function $r(e){var t=function(e,t){if("object"!==mr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==mr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===mr(t)?t:String(t)}function Pr(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}var kr=new WeakSet,Tr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Pr(this,kr),this.$objectType="common.v1.config.IPv4Address",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.IPv4Address"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=wr({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return wr(wr(wr({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new f("value","undefined or null");if(!s.validatePattern(this.value,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/))return new f("value","does not satisfy required pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new f("prefixLength","undefined or null");if(!s.validateMaximum(this.prefixLength,32))return new f("prefixLength","does not satisfy required maximum constraint: 32");if(!s.validateMinimum(this.prefixLength,0))return new f("prefixLength","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&jr(t.prototype,n),r&&jr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();Tr.prototype.value=void 0,Tr.prototype.prefixLength=32,Tr.prototype.$reserved=void 0,Tr.prototype.$objectType=void 0,Tr.prototype.$unknownFields=void 0;var Sr={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INCOMPLETE:"INCOMPLETE",COMPLETE:"COMPLETE",EXPIRED:"EXPIRED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Sr).find((function(t){return Sr[t]===e}));return null==t?Sr.$UNKNOWN:Sr[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Sr.$UNKNOWN:case Sr.$REDACTED:case Sr.INCOMPLETE:case Sr.COMPLETE:case Sr.EXPIRED:return;default:throw new Error("Invalid : must be RecoveryPointStatus.{ $UNKNOWN|$REDACTED|INCOMPLETE|COMPLETE|EXPIRED }")}}};Object.freeze(Sr);var Er=Sr,Fr={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CRASH_CONSISTENT:"CRASH_CONSISTENT",APPLICATION_CONSISTENT:"APPLICATION_CONSISTENT",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Fr).find((function(t){return Fr[t]===e}));return null==t?Fr.$UNKNOWN:Fr[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Fr.$UNKNOWN:case Fr.$REDACTED:case Fr.CRASH_CONSISTENT:case Fr.APPLICATION_CONSISTENT:return;default:throw new Error("Invalid : must be RecoveryPointType.{ $UNKNOWN|$REDACTED|CRASH_CONSISTENT|APPLICATION_CONSISTENT }")}}};Object.freeze(Fr);var Rr=Fr;function Ar(e){return(Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ir(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ir(Object(n),!0).forEach((function(t){Dr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ir(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dr(e,t,n){return(t=Cr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Cr(r.key),r)}}function Cr(e){var t=function(e,t){if("object"!==Ar(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ar(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ar(t)?t:String(t)}function Nr(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}var Mr=new WeakSet,Jr=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Nr(this,Mr),this.vendorId=t,this.vendorMetadata=n,this.$objectType="dataprotection.v4.common.VendorSpecificProperty",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a2.common.VendorSpecificProperty"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("vendorId")&&null!==t.vendorId&&void 0!==t.vendorId&&n.setVendorId(t.vendorId),t.hasOwnProperty("vendorMetadata")&&null!==t.vendorMetadata&&void 0!==t.vendorMetadata&&n.setVendorMetadata(t.vendorMetadata),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=xr({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getVendorId",value:function(){return this.vendorId}},{key:"setVendorId",value:function(e){this.vendorId=e}},{key:"getVendorMetadata",value:function(){return this.vendorMetadata}},{key:"setVendorMetadata",value:function(e){this.vendorMetadata=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return xr(xr(xr({},void 0!==this.getVendorId()&&null!==this.getVendorId()?{vendorId:this.getVendorId()}:{}),void 0!==this.getVendorMetadata()&&null!==this.getVendorMetadata()?{vendorMetadata:this.getVendorMetadata()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["vendorId","vendorMetadata"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"vendorId"!==t||void 0!==this.vendorId&&null!==this.vendorId?"vendorMetadata"!==t||void 0!==this.vendorMetadata&&null!==this.vendorMetadata?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("vendorMetadata","undefined or null"):new f("vendorId","undefined or null")}}])&&_r(t.prototype,n),r&&_r(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Vr(e){return(Vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ur(Object(n),!0).forEach((function(t){Lr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ur(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lr(e,t,n){return(t=Br(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Br(r.key),r)}}function Br(e){var t=function(e,t){if("object"!==Vr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Vr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Vr(t)?t:String(t)}function qr(e,t){return(qr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function zr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Zr(e);if(t){var o=Zr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Hr(this,n)}}function Hr(e,t){if(t&&("object"===Vr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Kr(e)}function Kr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zr(e){return(Zr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yr(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Jr.prototype.vendorId=void 0,Jr.prototype.vendorMetadata=void 0,Jr.prototype.$reserved=void 0,Jr.prototype.$objectType=void 0,Jr.prototype.$unknownFields=void 0;var Xr=new WeakSet,Qr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qr(e,t)}(a,e);var t,n,r,o=zr(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Yr(Kr(e=o.call(this)),Xr),e.$objectType="dataprotection.v4.common.BaseRecoveryPoint",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a2.common.BaseRecoveryPoint"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,L.constructFromObject(e,t,!0),e.hasOwnProperty("locationAgnosticId")&&null!==e.locationAgnosticId&&void 0!==e.locationAgnosticId&&t.setLocationAgnosticId(e.locationAgnosticId),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("creationTime")&&null!==e.creationTime&&void 0!==e.creationTime&&t.setCreationTime(e.creationTime),e.hasOwnProperty("expirationTime")&&null!==e.expirationTime&&void 0!==e.expirationTime&&t.setExpirationTime(e.expirationTime),e.hasOwnProperty("status")&&null!==e.status&&void 0!==e.status&&t.setStatus(Er.constructFromObject(e.status)),e.hasOwnProperty("recoveryPointType")&&null!==e.recoveryPointType&&void 0!==e.recoveryPointType&&t.setRecoveryPointType(Rr.constructFromObject(e.recoveryPointType)),e.hasOwnProperty("vendorSpecificProperties")&&null!==e.vendorSpecificProperties&&void 0!==e.vendorSpecificProperties){for(i=[],n=e.vendorSpecificProperties,o=0;o<n.length;o++)r=Jr.constructFromObject(n[o],void 0),i.push(r);t.setVendorSpecificProperties(i)}if(!u)for(var s in t.$unknownFields=Gr({},e.$unknownFields),e)Object.keys(t).includes(s)||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(t.$unknownFields[s]=e[s])}return t}}],(n=[{key:"getLocationAgnosticId",value:function(){return this.locationAgnosticId}},{key:"setLocationAgnosticId",value:function(e){this.locationAgnosticId=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getCreationTime",value:function(){return this.creationTime}},{key:"setCreationTime",value:function(e){this.creationTime=e}},{key:"getExpirationTime",value:function(){return this.expirationTime}},{key:"setExpirationTime",value:function(e){this.expirationTime=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getRecoveryPointType",value:function(){return this.recoveryPointType}},{key:"setRecoveryPointType",value:function(e){this.recoveryPointType=e}},{key:"getVendorSpecificProperties",value:function(){return this.vendorSpecificProperties}},{key:"setVendorSpecificProperties",value:function(e){this.vendorSpecificProperties=e}},{key:"toJson",value:function(e){return Gr(!1===e?Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr({},void 0!==this.getLocationAgnosticId()&&null!==this.getLocationAgnosticId()?{locationAgnosticId:this.getLocationAgnosticId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getExpirationTime()&&null!==this.getExpirationTime()?{expirationTime:this.getExpirationTime()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getRecoveryPointType()&&null!==this.getRecoveryPointType()?{recoveryPointType:this.getRecoveryPointType()}:{}),void 0!==this.getVendorSpecificProperties()&&null!==this.getVendorSpecificProperties()?{vendorSpecificProperties:this.getVendorSpecificProperties().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Gr(Gr(Gr(Gr(Gr({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getExpirationTime()&&null!==this.getExpirationTime()?{expirationTime:this.getExpirationTime()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getRecoveryPointType()&&null!==this.getRecoveryPointType()?{recoveryPointType:this.getRecoveryPointType()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("locationAgnosticId"===t){if(void 0===this.locationAgnosticId||null===this.locationAgnosticId)return new f("locationAgnosticId","undefined or null");if(!s.validatePattern(this.locationAgnosticId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("locationAgnosticId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("name"===t){if(void 0===this.name||null===this.name)return new f("name","undefined or null");if(!s.validateMaxLength(this.name,256))return new f("name","does not satisfy required maxLength constraint: 256")}return"creationTime"!==t||void 0!==this.creationTime&&null!==this.creationTime?"expirationTime"!==t||void 0!==this.expirationTime&&null!==this.expirationTime?"status"!==t||void 0!==this.status&&null!==this.status?"recoveryPointType"!==t||void 0!==this.recoveryPointType&&null!==this.recoveryPointType?"vendorSpecificProperties"!==t||void 0!==this.vendorSpecificProperties&&null!==this.vendorSpecificProperties?new f(t,"no such property exists"):new f("vendorSpecificProperties","undefined or null"):new f("recoveryPointType","undefined or null"):new f("status","undefined or null"):new f("expirationTime","undefined or null"):new f("creationTime","undefined or null")}}])&&Wr(t.prototype,n),r&&Wr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(L);function eo(e){return(eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function to(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function no(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?to(Object(n),!0).forEach((function(t){ro(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):to(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ro(e,t,n){return(t=io(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,io(r.key),r)}}function io(e){var t=function(e,t){if("object"!==eo(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==eo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===eo(t)?t:String(t)}function ao(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Qr.prototype.locationAgnosticId=void 0,Qr.prototype.name=void 0,Qr.prototype.creationTime=void 0,Qr.prototype.expirationTime=void 0,Qr.prototype.status=void 0,Qr.prototype.recoveryPointType=void 0,Qr.prototype.vendorSpecificProperties=void 0;var uo=new WeakSet,so=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ao(this,uo),this.$objectType="dataprotection.v4.config.AhvVmOverrideSpec",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.AhvVmOverrideSpec"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=no({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return no(no({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new f("name","undefined or null");if(!s.validateMaxLength(this.name,256))return new f("name","does not satisfy required maxLength constraint: 256")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&oo(t.prototype,n),r&&oo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function co(e){return(co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lo(Object(n),!0).forEach((function(t){po(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function po(e,t,n){return(t=ho(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ho(r.key),r)}}function ho(e){var t=function(e,t){if("object"!==co(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==co(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===co(t)?t:String(t)}function vo(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}so.prototype.name=void 0,so.prototype.$reserved=void 0,so.prototype.$objectType=void 0,so.prototype.$unknownFields=void 0;var bo=new WeakSet,mo=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),vo(this,bo),this.key=t,this.value=n,this.$objectType="dataprotection.v4.config.Category",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.Category"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("key")&&null!==t.key&&void 0!==t.key&&n.setKey(t.key),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=fo({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getKey",value:function(){return this.key}},{key:"setKey",value:function(e){this.key=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return fo(fo(fo({},void 0!==this.getKey()&&null!==this.getKey()?{key:this.getKey()}:{}),void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["key","value"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"key"!==t||void 0!==this.key&&null!==this.key?"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("value","undefined or null"):new f("key","undefined or null")}}])&&yo(t.prototype,n),r&&yo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function go(e){return(go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wo(Object(n),!0).forEach((function(t){jo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jo(e,t,n){return(t=Po(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Po(r.key),r)}}function Po(e){var t=function(e,t){if("object"!==go(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==go(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===go(t)?t:String(t)}function ko(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}mo.prototype.key=void 0,mo.prototype.value=void 0,mo.prototype.$reserved=void 0,mo.prototype.$objectType=void 0,mo.prototype.$unknownFields=void 0;var To=new WeakSet,So=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ko(this,To),this.$objectType="dataprotection.v4.config.Regions",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.Regions"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("offset")&&null!==t.offset&&void 0!==t.offset&&n.setOffset(t.offset),t.hasOwnProperty("length")&&null!==t.length&&void 0!==t.length&&n.setLength(t.length),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Oo({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getOffset",value:function(){return this.offset}},{key:"setOffset",value:function(e){this.offset=e}},{key:"getLength",value:function(){return this.length}},{key:"setLength",value:function(e){this.length=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Oo(Oo(Oo({},void 0!==this.getOffset()&&null!==this.getOffset()?{offset:this.getOffset()}:{}),void 0!==this.getLength()&&null!==this.getLength()?{length:this.getLength()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"offset"!==t||void 0!==this.offset&&null!==this.offset?"length"!==t||void 0!==this.length&&null!==this.length?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("length","undefined or null"):new f("offset","undefined or null")}}])&&$o(t.prototype,n),r&&$o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Eo(e){return(Eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ro(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fo(Object(n),!0).forEach((function(t){Ao(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ao(e,t,n){return(t=xo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Io(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xo(r.key),r)}}function xo(e){var t=function(e,t){if("object"!==Eo(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Eo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Eo(t)?t:String(t)}function Do(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}So.prototype.offset=void 0,So.prototype.length=void 0,So.prototype.$reserved=void 0,So.prototype.$objectType=void 0,So.prototype.$unknownFields=void 0;var _o=new WeakSet,Co=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Do(this,_o),this.$objectType="dataprotection.v4.config.ChangedRegions",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.ChangedRegions"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("regions")&&null!==t.regions&&void 0!==t.regions){for(a=[],r=t.regions,i=0;i<r.length;i++)o=So.constructFromObject(r[i],void 0),a.push(o);n.setRegions(a)}if(t.hasOwnProperty("nextOffset")&&null!==t.nextOffset&&void 0!==t.nextOffset&&n.setNextOffset(t.nextOffset),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!u)for(var s in n.$unknownFields=Ro({},t.$unknownFields),t)Object.keys(n).includes(s)||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(n.$unknownFields[s]=t[s])}return n}}],(n=[{key:"getRegions",value:function(){return this.regions}},{key:"setRegions",value:function(e){this.regions=e}},{key:"getNextOffset",value:function(){return this.nextOffset}},{key:"setNextOffset",value:function(e){this.nextOffset=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ro(Ro(Ro({},void 0!==this.getRegions()&&null!==this.getRegions()?{regions:this.getRegions().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getNextOffset()&&null!==this.getNextOffset()?{nextOffset:this.getNextOffset()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"regions"!==t||void 0!==this.regions&&null!==this.regions?"nextOffset"!==t||void 0!==this.nextOffset&&null!==this.nextOffset?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("nextOffset","undefined or null"):new f("regions","undefined or null")}}])&&Io(t.prototype,n),r&&Io(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function No(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Mo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jo(e){return(Jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vo(Object(n),!0).forEach((function(t){Go(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Go(e,t,n){return(t=Wo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wo(r.key),r)}}function Wo(e){var t=function(e,t){if("object"!==Jo(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Jo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Jo(t)?t:String(t)}function Bo(e,t){return(Bo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function qo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ko(e);if(t){var o=Ko(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zo(this,n)}}function zo(e,t){if(t&&("object"===Jo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ho(e)}function Ho(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ko(e){return(Ko=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Zo(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function Yo(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}Co.prototype.regions=void 0,Co.prototype.nextOffset=void 0,Co.prototype.$reserved=void 0,Co.prototype.$objectType=void 0,Co.prototype.$unknownFields=void 0;var Xo=new WeakSet,Qo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bo(e,t)}(a,e);var t,n,r,o=qo(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Zo(Ho(e=o.call(this)),Xo),e.$objectType="dataprotection.v4.config.ChangedRegionsListApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.ChangedRegionsListApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Jo(e.data)){case"dataprotection.v4.config.ChangedRegions":t.setData(Co.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=Uo({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Uo(Uo(Uo({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Yo(this,Xo,ei).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Yo(this,Xo,ei).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Lo(t.prototype,n),r&&Lo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function ei(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=No(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Jo(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function ti(e){return(ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ri(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ni(Object(n),!0).forEach((function(t){oi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ni(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oi(e,t,n){return(t=ai(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ii(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ai(r.key),r)}}function ai(e){var t=function(e,t){if("object"!==ti(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ti(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ti(t)?t:String(t)}function ui(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Qo.prototype.metadata=void 0,Qo.prototype.data=void 0,Qo.prototype.$reserved=void 0,Qo.prototype.$objectType=void 0,Qo.prototype.$unknownFields=void 0;var si=new WeakSet,ci=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ui(this,si),this.extId=t,this.$objectType="dataprotection.v4.config.ClusterReference",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.ClusterReference"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ri({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ri(!1===e?ri(ri({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}):ri({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["extId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new f("extId","undefined or null");if(!s.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("extId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"name"!==t||void 0!==this.name&&null!==this.name?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("name","undefined or null")}}])&&ii(t.prototype,n),r&&ii(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function li(e){return(li="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function di(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fi(Object(n),!0).forEach((function(t){pi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pi(e,t,n){return(t=hi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hi(r.key),r)}}function hi(e){var t=function(e,t){if("object"!==li(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==li(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===li(t)?t:String(t)}function vi(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}ci.prototype.extId=void 0,ci.prototype.name=void 0,ci.prototype.$reserved=void 0,ci.prototype.$objectType=void 0,ci.prototype.$unknownFields=void 0;var bi=new WeakSet,mi=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),vi(this,bi),this.$objectType="prism.v4.config.TaskReference",this.$reserved={$fqObjectType:"prism.v4.r0.a2.config.TaskReference"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=di({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return di(di({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new f("extId","undefined or null");if(!s.validatePattern(this.extId,/^[a-zA-Z0-9\/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/))return new f("extId","does not satisfy required pattern: /^[a-zA-Z0-9/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&yi(t.prototype,n),r&&yi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function gi(e){return(gi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wi(Object(n),!0).forEach((function(t){ji(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ji(e,t,n){return(t=Pi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pi(r.key),r)}}function Pi(e){var t=function(e,t){if("object"!==gi(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==gi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gi(t)?t:String(t)}function ki(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}mi.prototype.extId=void 0,mi.prototype.$reserved=void 0,mi.prototype.$objectType=void 0,mi.prototype.$unknownFields=void 0;var Ti=new WeakSet,Si=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ki(this,Ti),this.$objectType="storage.v4.config.Task",this.$reserved={$fqObjectType:"storage.v4.r0.a1.config.Task"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Oi({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Oi(Oi({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new f("extId","undefined or null");if(!s.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("extId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&$i(t.prototype,n),r&&$i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ei(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Fi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fi(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ri(e){return(Ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ai(Object(n),!0).forEach((function(t){xi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xi(e,t,n){return(t=_i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Di(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_i(r.key),r)}}function _i(e){var t=function(e,t){if("object"!==Ri(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ri(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ri(t)?t:String(t)}function Ci(e,t){return(Ci=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ni(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Vi(e);if(t){var o=Vi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mi(this,n)}}function Mi(e,t){if(t&&("object"===Ri(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ji(e)}function Ji(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vi(e){return(Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ui(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function Gi(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}Si.prototype.extId=void 0,Si.prototype.$reserved=void 0,Si.prototype.$objectType=void 0,Si.prototype.$unknownFields=void 0;var Li=new WeakSet,Wi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ci(e,t)}(a,e);var t,n,r,o=Ni(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Ui(Ji(e=o.call(this)),Li),e.$objectType="dataprotection.v4.config.ConsistencyGroupMigrateApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.ConsistencyGroupMigrateApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ri(e.data)){case"storage.v4.config.Task":t.setData(Si.constructFromObject(e.data,void 0));break;case"prism.v4.config.TaskReference":t.setData(mi.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=Ii({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ii(Ii(Ii({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Gi(this,Li,Bi).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Gi(this,Li,Bi).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Di(t.prototype,n),r&&Di(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function Bi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=Ei(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Ri(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function qi(e){return(qi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zi(Object(n),!0).forEach((function(t){Ki(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ki(e,t,n){return(t=Yi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yi(r.key),r)}}function Yi(e){var t=function(e,t){if("object"!==qi(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qi(t)?t:String(t)}function Xi(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Wi.prototype.metadata=void 0,Wi.prototype.data=void 0,Wi.prototype.$reserved=void 0,Wi.prototype.$objectType=void 0,Wi.prototype.$unknownFields=void 0;var Qi=new WeakSet,ea=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Xi(this,Qi),this.targetAvailabilityZoneId=t,this.$objectType="dataprotection.v4.config.ConsistencyGroupMigrationSpec",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.ConsistencyGroupMigrationSpec"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("targetAvailabilityZoneId")&&null!==t.targetAvailabilityZoneId&&void 0!==t.targetAvailabilityZoneId&&n.setTargetAvailabilityZoneId(t.targetAvailabilityZoneId),t.hasOwnProperty("targetClusterId")&&null!==t.targetClusterId&&void 0!==t.targetClusterId&&n.setTargetClusterId(t.targetClusterId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Hi({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getTargetAvailabilityZoneId",value:function(){return this.targetAvailabilityZoneId}},{key:"setTargetAvailabilityZoneId",value:function(e){this.targetAvailabilityZoneId=e}},{key:"getTargetClusterId",value:function(){return this.targetClusterId}},{key:"setTargetClusterId",value:function(e){this.targetClusterId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Hi(Hi(Hi({},void 0!==this.getTargetAvailabilityZoneId()&&null!==this.getTargetAvailabilityZoneId()?{targetAvailabilityZoneId:this.getTargetAvailabilityZoneId()}:{}),void 0!==this.getTargetClusterId()&&null!==this.getTargetClusterId()?{targetClusterId:this.getTargetClusterId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["targetAvailabilityZoneId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("targetAvailabilityZoneId"===t){if(void 0===this.targetAvailabilityZoneId||null===this.targetAvailabilityZoneId)return new f("targetAvailabilityZoneId","undefined or null");if(!s.validatePattern(this.targetAvailabilityZoneId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("targetAvailabilityZoneId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("targetClusterId"===t){if(void 0===this.targetClusterId||null===this.targetClusterId)return new f("targetClusterId","undefined or null");if(!s.validatePattern(this.targetClusterId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("targetClusterId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&Zi(t.prototype,n),r&&Zi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ta(e){return(ta="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ra(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?na(Object(n),!0).forEach((function(t){oa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):na(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oa(e,t,n){return(t=aa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ia(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,aa(r.key),r)}}function aa(e){var t=function(e,t){if("object"!==ta(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ta(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ta(t)?t:String(t)}function ua(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}ea.prototype.targetAvailabilityZoneId=void 0,ea.prototype.targetClusterId=void 0,ea.prototype.$reserved=void 0,ea.prototype.$objectType=void 0,ea.prototype.$unknownFields=void 0;var sa=new WeakSet,ca=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ua(this,sa),this.name=t,this.$objectType="dataprotection.v4.config.ConsistencyGroupRecoveryPointSpec",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.ConsistencyGroupRecoveryPointSpec"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("recoveryPointType")&&null!==t.recoveryPointType&&void 0!==t.recoveryPointType&&n.setRecoveryPointType(Rr.constructFromObject(t.recoveryPointType)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ra({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getRecoveryPointType",value:function(){return this.recoveryPointType}},{key:"setRecoveryPointType",value:function(e){this.recoveryPointType=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ra(ra(ra({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getRecoveryPointType()&&null!==this.getRecoveryPointType()?{recoveryPointType:this.getRecoveryPointType()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["name"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new f("name","undefined or null");if(!s.validateMaxLength(this.name,256))return new f("name","does not satisfy required maxLength constraint: 256")}return"recoveryPointType"!==t||void 0!==this.recoveryPointType&&null!==this.recoveryPointType?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("recoveryPointType","undefined or null")}}])&&ia(t.prototype,n),r&&ia(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function la(e){return(la="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function da(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fa(Object(n),!0).forEach((function(t){pa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pa(e,t,n){return(t=ha(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ya(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ha(r.key),r)}}function ha(e){var t=function(e,t){if("object"!==la(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==la(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===la(t)?t:String(t)}function va(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}ca.prototype.name=void 0,ca.prototype.recoveryPointType=void 0,ca.prototype.$reserved=void 0,ca.prototype.$objectType=void 0,ca.prototype.$unknownFields=void 0;var ba=new WeakSet,ma=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),va(this,ba),this.$objectType="dataprotection.v4.config.LocationReference",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.LocationReference"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("locationExtId")&&null!==t.locationExtId&&void 0!==t.locationExtId&&n.setLocationExtId(t.locationExtId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=da({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getLocationExtId",value:function(){return this.locationExtId}},{key:"setLocationExtId",value:function(e){this.locationExtId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return da(da({},void 0!==this.getLocationExtId()&&null!==this.getLocationExtId()?{locationExtId:this.getLocationExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("locationExtId"===t){if(void 0===this.locationExtId||null===this.locationExtId)return new f("locationExtId","undefined or null");if(!s.validatePattern(this.locationExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("locationExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&ya(t.prototype,n),r&&ya(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ga(e){return(ga="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wa(Object(n),!0).forEach((function(t){ja(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ja(e,t,n){return(t=Pa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pa(r.key),r)}}function Pa(e){var t=function(e,t){if("object"!==ga(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ga(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ga(t)?t:String(t)}function ka(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}ma.prototype.locationExtId=void 0,ma.prototype.$reserved=void 0,ma.prototype.$objectType=void 0,ma.prototype.$unknownFields=void 0;var Ta=new WeakSet,Sa=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ka(this,Ta),this.$objectType="dataprotection.v4.config.VmSubRecoveryPoint",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.VmSubRecoveryPoint"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("vmRecoveryPointId")&&null!==t.vmRecoveryPointId&&void 0!==t.vmRecoveryPointId&&n.setVmRecoveryPointId(t.vmRecoveryPointId),t.hasOwnProperty("consistencyGroupExtId")&&null!==t.consistencyGroupExtId&&void 0!==t.consistencyGroupExtId&&n.setConsistencyGroupExtId(t.consistencyGroupExtId),t.hasOwnProperty("locationAgnosticId")&&null!==t.locationAgnosticId&&void 0!==t.locationAgnosticId&&n.setLocationAgnosticId(t.locationAgnosticId),t.hasOwnProperty("vmExtId")&&null!==t.vmExtId&&void 0!==t.vmExtId&&n.setVmExtId(t.vmExtId),t.hasOwnProperty("vmCategories")&&null!==t.vmCategories&&void 0!==t.vmCategories){for(i=[],r=t.vmCategories,o=0;o<r.length;o++)i.push(r[o]);n.setVmCategories(i)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=Oa({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getVmRecoveryPointId",value:function(){return this.vmRecoveryPointId}},{key:"setVmRecoveryPointId",value:function(e){this.vmRecoveryPointId=e}},{key:"getConsistencyGroupExtId",value:function(){return this.consistencyGroupExtId}},{key:"setConsistencyGroupExtId",value:function(e){this.consistencyGroupExtId=e}},{key:"getLocationAgnosticId",value:function(){return this.locationAgnosticId}},{key:"setLocationAgnosticId",value:function(e){this.locationAgnosticId=e}},{key:"getVmExtId",value:function(){return this.vmExtId}},{key:"setVmExtId",value:function(e){this.vmExtId=e}},{key:"getVmCategories",value:function(){return this.vmCategories}},{key:"setVmCategories",value:function(e){this.vmCategories=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Oa(!1===e?Oa(Oa(Oa(Oa(Oa({},void 0!==this.getVmRecoveryPointId()&&null!==this.getVmRecoveryPointId()?{vmRecoveryPointId:this.getVmRecoveryPointId()}:{}),void 0!==this.getConsistencyGroupExtId()&&null!==this.getConsistencyGroupExtId()?{consistencyGroupExtId:this.getConsistencyGroupExtId()}:{}),void 0!==this.getLocationAgnosticId()&&null!==this.getLocationAgnosticId()?{locationAgnosticId:this.getLocationAgnosticId()}:{}),void 0!==this.getVmExtId()&&null!==this.getVmExtId()?{vmExtId:this.getVmExtId()}:{}),void 0!==this.getVmCategories()&&null!==this.getVmCategories()?{vmCategories:this.getVmCategories()}:{}):Oa({},void 0!==this.getVmExtId()&&null!==this.getVmExtId()?{vmExtId:this.getVmExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("vmRecoveryPointId"===t){if(void 0===this.vmRecoveryPointId||null===this.vmRecoveryPointId)return new f("vmRecoveryPointId","undefined or null");if(!s.validatePattern(this.vmRecoveryPointId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("vmRecoveryPointId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("consistencyGroupExtId"===t){if(void 0===this.consistencyGroupExtId||null===this.consistencyGroupExtId)return new f("consistencyGroupExtId","undefined or null");if(!s.validatePattern(this.consistencyGroupExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("consistencyGroupExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("locationAgnosticId"===t){if(void 0===this.locationAgnosticId||null===this.locationAgnosticId)return new f("locationAgnosticId","undefined or null");if(!s.validatePattern(this.locationAgnosticId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("locationAgnosticId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("vmExtId"===t){if(void 0===this.vmExtId||null===this.vmExtId)return new f("vmExtId","undefined or null");if(!s.validatePattern(this.vmExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("vmExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"vmCategories"!==t||void 0!==this.vmCategories&&null!==this.vmCategories?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("vmCategories","undefined or null")}}])&&$a(t.prototype,n),r&&$a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ea(e){return(Ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ra(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fa(Object(n),!0).forEach((function(t){Aa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Aa(e,t,n){return(t=xa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ia(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xa(r.key),r)}}function xa(e){var t=function(e,t){if("object"!==Ea(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ea(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ea(t)?t:String(t)}function Da(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Sa.prototype.vmRecoveryPointId=void 0,Sa.prototype.consistencyGroupExtId=void 0,Sa.prototype.locationAgnosticId=void 0,Sa.prototype.vmExtId=void 0,Sa.prototype.vmCategories=void 0,Sa.prototype.$reserved=void 0,Sa.prototype.$objectType=void 0,Sa.prototype.$unknownFields=void 0;var _a=new WeakSet,Ca=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Da(this,_a),this.$objectType="dataprotection.v4.config.VolumeGroupSubRecoveryPoint",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.VolumeGroupSubRecoveryPoint"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("volumeGroupRecoveryPointId")&&null!==t.volumeGroupRecoveryPointId&&void 0!==t.volumeGroupRecoveryPointId&&n.setVolumeGroupRecoveryPointId(t.volumeGroupRecoveryPointId),t.hasOwnProperty("consistencyGroupExtId")&&null!==t.consistencyGroupExtId&&void 0!==t.consistencyGroupExtId&&n.setConsistencyGroupExtId(t.consistencyGroupExtId),t.hasOwnProperty("locationAgnosticId")&&null!==t.locationAgnosticId&&void 0!==t.locationAgnosticId&&n.setLocationAgnosticId(t.locationAgnosticId),t.hasOwnProperty("volumeGroupExtId")&&null!==t.volumeGroupExtId&&void 0!==t.volumeGroupExtId&&n.setVolumeGroupExtId(t.volumeGroupExtId),t.hasOwnProperty("volumeGroupCategories")&&null!==t.volumeGroupCategories&&void 0!==t.volumeGroupCategories){for(i=[],r=t.volumeGroupCategories,o=0;o<r.length;o++)i.push(r[o]);n.setVolumeGroupCategories(i)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=Ra({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],(n=[{key:"getVolumeGroupRecoveryPointId",value:function(){return this.volumeGroupRecoveryPointId}},{key:"setVolumeGroupRecoveryPointId",value:function(e){this.volumeGroupRecoveryPointId=e}},{key:"getConsistencyGroupExtId",value:function(){return this.consistencyGroupExtId}},{key:"setConsistencyGroupExtId",value:function(e){this.consistencyGroupExtId=e}},{key:"getLocationAgnosticId",value:function(){return this.locationAgnosticId}},{key:"setLocationAgnosticId",value:function(e){this.locationAgnosticId=e}},{key:"getVolumeGroupExtId",value:function(){return this.volumeGroupExtId}},{key:"setVolumeGroupExtId",value:function(e){this.volumeGroupExtId=e}},{key:"getVolumeGroupCategories",value:function(){return this.volumeGroupCategories}},{key:"setVolumeGroupCategories",value:function(e){this.volumeGroupCategories=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ra(!1===e?Ra(Ra(Ra(Ra(Ra({},void 0!==this.getVolumeGroupRecoveryPointId()&&null!==this.getVolumeGroupRecoveryPointId()?{volumeGroupRecoveryPointId:this.getVolumeGroupRecoveryPointId()}:{}),void 0!==this.getConsistencyGroupExtId()&&null!==this.getConsistencyGroupExtId()?{consistencyGroupExtId:this.getConsistencyGroupExtId()}:{}),void 0!==this.getLocationAgnosticId()&&null!==this.getLocationAgnosticId()?{locationAgnosticId:this.getLocationAgnosticId()}:{}),void 0!==this.getVolumeGroupExtId()&&null!==this.getVolumeGroupExtId()?{volumeGroupExtId:this.getVolumeGroupExtId()}:{}),void 0!==this.getVolumeGroupCategories()&&null!==this.getVolumeGroupCategories()?{volumeGroupCategories:this.getVolumeGroupCategories()}:{}):Ra(Ra({},void 0!==this.getVolumeGroupRecoveryPointId()&&null!==this.getVolumeGroupRecoveryPointId()?{volumeGroupRecoveryPointId:this.getVolumeGroupRecoveryPointId()}:{}),void 0!==this.getVolumeGroupExtId()&&null!==this.getVolumeGroupExtId()?{volumeGroupExtId:this.getVolumeGroupExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("volumeGroupRecoveryPointId"===t){if(void 0===this.volumeGroupRecoveryPointId||null===this.volumeGroupRecoveryPointId)return new f("volumeGroupRecoveryPointId","undefined or null");if(!s.validatePattern(this.volumeGroupRecoveryPointId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("volumeGroupRecoveryPointId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("consistencyGroupExtId"===t){if(void 0===this.consistencyGroupExtId||null===this.consistencyGroupExtId)return new f("consistencyGroupExtId","undefined or null");if(!s.validatePattern(this.consistencyGroupExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("consistencyGroupExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("locationAgnosticId"===t){if(void 0===this.locationAgnosticId||null===this.locationAgnosticId)return new f("locationAgnosticId","undefined or null");if(!s.validatePattern(this.locationAgnosticId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("locationAgnosticId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("volumeGroupExtId"===t){if(void 0===this.volumeGroupExtId||null===this.volumeGroupExtId)return new f("volumeGroupExtId","undefined or null");if(!s.validatePattern(this.volumeGroupExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("volumeGroupExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"volumeGroupCategories"!==t||void 0!==this.volumeGroupCategories&&null!==this.volumeGroupCategories?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("volumeGroupCategories","undefined or null")}}])&&Ia(t.prototype,n),r&&Ia(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Na(e){return(Na="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ma(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ma(Object(n),!0).forEach((function(t){Va(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ma(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Va(e,t,n){return(t=Ga(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ua(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ga(r.key),r)}}function Ga(e){var t=function(e,t){if("object"!==Na(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Na(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Na(t)?t:String(t)}function La(e,t){return(La=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Wa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=za(e);if(t){var o=za(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ba(this,n)}}function Ba(e,t){if(t&&("object"===Na(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qa(e)}function qa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function za(e){return(za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ha(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Ca.prototype.volumeGroupRecoveryPointId=void 0,Ca.prototype.consistencyGroupExtId=void 0,Ca.prototype.locationAgnosticId=void 0,Ca.prototype.volumeGroupExtId=void 0,Ca.prototype.volumeGroupCategories=void 0,Ca.prototype.$reserved=void 0,Ca.prototype.$objectType=void 0,Ca.prototype.$unknownFields=void 0;var Ka=new WeakSet,Za=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&La(e,t)}(a,e);var t,n,r,o=Wa(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Ha(qa(e=o.call(this)),Ka),e.$objectType="dataprotection.v4.config.RecoveryPoint",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.RecoveryPoint"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,Qr.constructFromObject(e,t,!0),e.hasOwnProperty("ownerExtId")&&null!==e.ownerExtId&&void 0!==e.ownerExtId&&t.setOwnerExtId(e.ownerExtId),e.hasOwnProperty("locationReferences")&&null!==e.locationReferences&&void 0!==e.locationReferences){for(i=[],n=e.locationReferences,o=0;o<n.length;o++)r=ma.constructFromObject(n[o],void 0),i.push(r);t.setLocationReferences(i)}if(e.hasOwnProperty("vmReferenceList")&&null!==e.vmReferenceList&&void 0!==e.vmReferenceList){for(i=[],n=e.vmReferenceList,o=0;o<n.length;o++)i.push(n[o]);t.setVmReferenceList(i)}if(e.hasOwnProperty("volumeGroupReferenceList")&&null!==e.volumeGroupReferenceList&&void 0!==e.volumeGroupReferenceList){for(i=[],n=e.volumeGroupReferenceList,o=0;o<n.length;o++)i.push(n[o]);t.setVolumeGroupReferenceList(i)}if(e.hasOwnProperty("vmRecoveryPoints")&&null!==e.vmRecoveryPoints&&void 0!==e.vmRecoveryPoints){for(i=[],n=e.vmRecoveryPoints,o=0;o<n.length;o++)r=Sa.constructFromObject(n[o],void 0),i.push(r);t.setVmRecoveryPoints(i)}if(e.hasOwnProperty("volumeGroupRecoveryPoints")&&null!==e.volumeGroupRecoveryPoints&&void 0!==e.volumeGroupRecoveryPoints){for(i=[],n=e.volumeGroupRecoveryPoints,o=0;o<n.length;o++)r=Ca.constructFromObject(n[o],void 0),i.push(r);t.setVolumeGroupRecoveryPoints(i)}if(!u)for(var s in t.$unknownFields=Ja({},e.$unknownFields),e)Object.keys(t).includes(s)||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(t.$unknownFields[s]=e[s])}return t}}],(n=[{key:"getOwnerExtId",value:function(){return this.ownerExtId}},{key:"setOwnerExtId",value:function(e){this.ownerExtId=e}},{key:"getLocationReferences",value:function(){return this.locationReferences}},{key:"setLocationReferences",value:function(e){this.locationReferences=e}},{key:"getVmReferenceList",value:function(){return this.vmReferenceList}},{key:"setVmReferenceList",value:function(e){this.vmReferenceList=e}},{key:"getVolumeGroupReferenceList",value:function(){return this.volumeGroupReferenceList}},{key:"setVolumeGroupReferenceList",value:function(e){this.volumeGroupReferenceList=e}},{key:"getVmRecoveryPoints",value:function(){return this.vmRecoveryPoints}},{key:"setVmRecoveryPoints",value:function(e){this.vmRecoveryPoints=e}},{key:"getVolumeGroupRecoveryPoints",value:function(){return this.volumeGroupRecoveryPoints}},{key:"setVolumeGroupRecoveryPoints",value:function(e){this.volumeGroupRecoveryPoints=e}},{key:"toJson",value:function(e){return Ja(!1===e?Ja(Ja(Ja(Ja(Ja(Ja(Ja(Ja(Ja(Ja(Ja(Ja(Ja(Ja(Ja(Ja({},void 0!==this.getOwnerExtId()&&null!==this.getOwnerExtId()?{ownerExtId:this.getOwnerExtId()}:{}),void 0!==this.getLocationReferences()&&null!==this.getLocationReferences()?{locationReferences:this.getLocationReferences().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getVmReferenceList()&&null!==this.getVmReferenceList()?{vmReferenceList:this.getVmReferenceList()}:{}),void 0!==this.getVolumeGroupReferenceList()&&null!==this.getVolumeGroupReferenceList()?{volumeGroupReferenceList:this.getVolumeGroupReferenceList()}:{}),void 0!==this.getVmRecoveryPoints()&&null!==this.getVmRecoveryPoints()?{vmRecoveryPoints:this.getVmRecoveryPoints().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getVolumeGroupRecoveryPoints()&&null!==this.getVolumeGroupRecoveryPoints()?{volumeGroupRecoveryPoints:this.getVolumeGroupRecoveryPoints().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getLocationAgnosticId()&&null!==this.getLocationAgnosticId()?{locationAgnosticId:this.getLocationAgnosticId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getExpirationTime()&&null!==this.getExpirationTime()?{expirationTime:this.getExpirationTime()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getRecoveryPointType()&&null!==this.getRecoveryPointType()?{recoveryPointType:this.getRecoveryPointType()}:{}),void 0!==this.getVendorSpecificProperties()&&null!==this.getVendorSpecificProperties()?{vendorSpecificProperties:this.getVendorSpecificProperties().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Ja(Ja(Ja(Ja(Ja(Ja(Ja(Ja(Ja({},void 0!==this.getVmReferenceList()&&null!==this.getVmReferenceList()?{vmReferenceList:this.getVmReferenceList()}:{}),void 0!==this.getVolumeGroupReferenceList()&&null!==this.getVolumeGroupReferenceList()?{volumeGroupReferenceList:this.getVolumeGroupReferenceList()}:{}),void 0!==this.getVmRecoveryPoints()&&null!==this.getVmRecoveryPoints()?{vmRecoveryPoints:this.getVmRecoveryPoints().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getVolumeGroupRecoveryPoints()&&null!==this.getVolumeGroupRecoveryPoints()?{volumeGroupRecoveryPoints:this.getVolumeGroupRecoveryPoints().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getExpirationTime()&&null!==this.getExpirationTime()?{expirationTime:this.getExpirationTime()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getRecoveryPointType()&&null!==this.getRecoveryPointType()?{recoveryPointType:this.getRecoveryPointType()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("ownerExtId"===t){if(void 0===this.ownerExtId||null===this.ownerExtId)return new f("ownerExtId","undefined or null");if(!s.validatePattern(this.ownerExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("ownerExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("locationReferences"===t&&(void 0===this.locationReferences||null===this.locationReferences))return new f("locationReferences","undefined or null");if("vmReferenceList"===t){if(void 0===this.vmReferenceList||null===this.vmReferenceList)return new f("vmReferenceList","undefined or null");if(!s.validateMaxItems(this.vmReferenceList,64))return new f("vmReferenceList","does not satisfy required maxItems constraint: 64");if(!s.validateMinItems(this.vmReferenceList,1))return new f("vmReferenceList","does not satisfy required minItems constraint: 1")}if("volumeGroupReferenceList"===t){if(void 0===this.volumeGroupReferenceList||null===this.volumeGroupReferenceList)return new f("volumeGroupReferenceList","undefined or null");if(!s.validateMaxItems(this.volumeGroupReferenceList,64))return new f("volumeGroupReferenceList","does not satisfy required maxItems constraint: 64");if(!s.validateMinItems(this.volumeGroupReferenceList,1))return new f("volumeGroupReferenceList","does not satisfy required minItems constraint: 1")}if("vmRecoveryPoints"===t){if(void 0===this.vmRecoveryPoints||null===this.vmRecoveryPoints)return new f("vmRecoveryPoints","undefined or null");if(!s.validateMaxItems(this.vmRecoveryPoints,64))return new f("vmRecoveryPoints","does not satisfy required maxItems constraint: 64");if(!s.validateMinItems(this.vmRecoveryPoints,1))return new f("vmRecoveryPoints","does not satisfy required minItems constraint: 1")}if("volumeGroupRecoveryPoints"===t){if(void 0===this.volumeGroupRecoveryPoints||null===this.volumeGroupRecoveryPoints)return new f("volumeGroupRecoveryPoints","undefined or null");if(!s.validateMaxItems(this.volumeGroupRecoveryPoints,64))return new f("volumeGroupRecoveryPoints","does not satisfy required maxItems constraint: 64");if(!s.validateMinItems(this.volumeGroupRecoveryPoints,1))return new f("volumeGroupRecoveryPoints","does not satisfy required minItems constraint: 1")}return new f(t,"no such property exists")}}])&&Ua(t.prototype,n),r&&Ua(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(Qr);function Ya(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Xa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xa(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qa(e){return(Qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eu(Object(n),!0).forEach((function(t){nu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nu(e,t,n){return(t=ou(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ru(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ou(r.key),r)}}function ou(e){var t=function(e,t){if("object"!==Qa(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Qa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Qa(t)?t:String(t)}function iu(e,t){return(iu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function au(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cu(e);if(t){var o=cu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return uu(this,n)}}function uu(e,t){if(t&&("object"===Qa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return su(e)}function su(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cu(e){return(cu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function lu(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function fu(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}Za.prototype.ownerExtId=void 0,Za.prototype.locationReferences=void 0,Za.prototype.vmReferenceList=void 0,Za.prototype.volumeGroupReferenceList=void 0,Za.prototype.vmRecoveryPoints=void 0,Za.prototype.volumeGroupRecoveryPoints=void 0;var du=new WeakSet,pu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iu(e,t)}(a,e);var t,n,r,o=au(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),lu(su(e=o.call(this)),du),e.$objectType="dataprotection.v4.config.CreateConsistencyGroupRecoveryPointApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.CreateConsistencyGroupRecoveryPointApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Qa(e.data)){case"prism.v4.config.TaskReference":t.setData(mi.constructFromObject(e.data,void 0));break;case"dataprotection.v4.config.RecoveryPoint":t.setData(Za.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=tu({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return tu(tu(tu({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):fu(this,du,yu).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):fu(this,du,yu).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&ru(t.prototype,n),r&&ru(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function yu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=Ya(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Qa(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function hu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return vu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vu(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bu(e){return(bu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mu(Object(n),!0).forEach((function(t){wu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wu(e,t,n){return(t=ju(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ou(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ju(r.key),r)}}function ju(e){var t=function(e,t){if("object"!==bu(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==bu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bu(t)?t:String(t)}function $u(e,t){return($u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Pu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Su(e);if(t){var o=Su(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ku(this,n)}}function ku(e,t){if(t&&("object"===bu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Tu(e)}function Tu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Su(e){return(Su=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Eu(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function Fu(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}pu.prototype.metadata=void 0,pu.prototype.data=void 0,pu.prototype.$reserved=void 0,pu.prototype.$objectType=void 0,pu.prototype.$unknownFields=void 0;var Ru=new WeakSet,Au=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$u(e,t)}(a,e);var t,n,r,o=Pu(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Eu(Tu(e=o.call(this)),Ru),e.$objectType="dataprotection.v4.config.CreateRecoveryPointApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.CreateRecoveryPointApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:bu(e.data)){case"prism.v4.config.TaskReference":t.setData(mi.constructFromObject(e.data,void 0));break;case"dataprotection.v4.config.RecoveryPoint":t.setData(Za.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=gu({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return gu(gu(gu({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Fu(this,Ru,Iu).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Fu(this,Ru,Iu).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Ou(t.prototype,n),r&&Ou(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function Iu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=hu(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===bu(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function xu(e){return(xu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Du(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Du(Object(n),!0).forEach((function(t){Cu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Du(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cu(e,t,n){return(t=Mu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mu(r.key),r)}}function Mu(e){var t=function(e,t){if("object"!==xu(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==xu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xu(t)?t:String(t)}function Ju(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Au.prototype.metadata=void 0,Au.prototype.data=void 0,Au.prototype.$reserved=void 0,Au.prototype.$objectType=void 0,Au.prototype.$unknownFields=void 0;var Vu=new WeakSet,Uu=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ju(this,Vu),this.$objectType="dataprotection.v4.config.DataProtectionSiteReference",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.DataProtectionSiteReference"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("pcExtId")&&null!==t.pcExtId&&void 0!==t.pcExtId&&n.setPcExtId(t.pcExtId),t.hasOwnProperty("clusterExtId")&&null!==t.clusterExtId&&void 0!==t.clusterExtId&&n.setClusterExtId(t.clusterExtId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=_u({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getPcExtId",value:function(){return this.pcExtId}},{key:"setPcExtId",value:function(e){this.pcExtId=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return _u(_u(_u({},void 0!==this.getPcExtId()&&null!==this.getPcExtId()?{pcExtId:this.getPcExtId()}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("pcExtId"===t){if(void 0===this.pcExtId||null===this.pcExtId)return new f("pcExtId","undefined or null");if(!s.validatePattern(this.pcExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("pcExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new f("clusterExtId","undefined or null");if(!s.validatePattern(this.clusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("clusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&Nu(t.prototype,n),r&&Nu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Gu(e){return(Gu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lu(Object(n),!0).forEach((function(t){Bu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bu(e,t,n){return(t=zu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zu(r.key),r)}}function zu(e){var t=function(e,t){if("object"!==Gu(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Gu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Gu(t)?t:String(t)}function Hu(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Uu.prototype.pcExtId=void 0,Uu.prototype.clusterExtId=void 0,Uu.prototype.$reserved=void 0,Uu.prototype.$objectType=void 0,Uu.prototype.$unknownFields=void 0;var Ku=new WeakSet,Zu=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Hu(this,Ku),this.$objectType="dataprotection.v4.config.RestorableTimeRange",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.RestorableTimeRange"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("startTime")&&null!==t.startTime&&void 0!==t.startTime&&n.setStartTime(t.startTime),t.hasOwnProperty("endTime")&&null!==t.endTime&&void 0!==t.endTime&&n.setEndTime(t.endTime),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Wu({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getStartTime",value:function(){return this.startTime}},{key:"setStartTime",value:function(e){this.startTime=e}},{key:"getEndTime",value:function(){return this.endTime}},{key:"setEndTime",value:function(e){this.endTime=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Wu(Wu(Wu({},void 0!==this.getStartTime()&&null!==this.getStartTime()?{startTime:this.getStartTime()}:{}),void 0!==this.getEndTime()&&null!==this.getEndTime()?{endTime:this.getEndTime()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"startTime"!==t||void 0!==this.startTime&&null!==this.startTime?"endTime"!==t||void 0!==this.endTime&&null!==this.endTime?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("endTime","undefined or null"):new f("startTime","undefined or null")}}])&&qu(t.prototype,n),r&&qu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Yu(e){return(Yu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xu(Object(n),!0).forEach((function(t){es(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function es(e,t,n){return(t=ns(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ts(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ns(r.key),r)}}function ns(e){var t=function(e,t){if("object"!==Yu(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Yu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Yu(t)?t:String(t)}function rs(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Zu.prototype.startTime=void 0,Zu.prototype.endTime=void 0,Zu.prototype.$reserved=void 0,Zu.prototype.$objectType=void 0,Zu.prototype.$unknownFields=void 0;var os=new WeakSet,is=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),rs(this,os),this.$objectType="dataprotection.v4.config.RecoveryInfo",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.RecoveryInfo"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("restorableTimeRanges")&&null!==t.restorableTimeRanges&&void 0!==t.restorableTimeRanges){for(a=[],r=t.restorableTimeRanges,i=0;i<r.length;i++)o=Zu.constructFromObject(r[i],void 0),a.push(o);n.setRestorableTimeRanges(a)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!u)for(var s in n.$unknownFields=Qu({},t.$unknownFields),t)Object.keys(n).includes(s)||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(n.$unknownFields[s]=t[s])}return n}}],(n=[{key:"getRestorableTimeRanges",value:function(){return this.restorableTimeRanges}},{key:"setRestorableTimeRanges",value:function(e){this.restorableTimeRanges=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Qu(Qu({},void 0!==this.getRestorableTimeRanges()&&null!==this.getRestorableTimeRanges()?{restorableTimeRanges:this.getRestorableTimeRanges().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"restorableTimeRanges"!==t||void 0!==this.restorableTimeRanges&&null!==this.restorableTimeRanges?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("restorableTimeRanges","undefined or null")}}])&&ts(t.prototype,n),r&&ts(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function as(e){return(as="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?us(Object(n),!0).forEach((function(t){cs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):us(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cs(e,t,n){return(t=fs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ls(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fs(r.key),r)}}function fs(e){var t=function(e,t){if("object"!==as(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==as(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===as(t)?t:String(t)}function ds(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}is.prototype.restorableTimeRanges=void 0,is.prototype.$reserved=void 0,is.prototype.$objectType=void 0,is.prototype.$unknownFields=void 0;var ps=new WeakSet,ys=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ds(this,ps),this.$objectType="dataprotection.v4.config.DataProtectionInfo",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.DataProtectionInfo"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("recoveryInfo")&&null!==t.recoveryInfo&&void 0!==t.recoveryInfo&&n.setRecoveryInfo(is.constructFromObject(t.recoveryInfo)),t.hasOwnProperty("locationReference")&&null!==t.locationReference&&void 0!==t.locationReference&&n.setLocationReference(Uu.constructFromObject(t.locationReference)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ss({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getRecoveryInfo",value:function(){return this.recoveryInfo}},{key:"setRecoveryInfo",value:function(e){this.recoveryInfo=e}},{key:"getLocationReference",value:function(){return this.locationReference}},{key:"setLocationReference",value:function(e){this.locationReference=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ss(ss(ss({},void 0!==this.getRecoveryInfo()&&null!==this.getRecoveryInfo()?{recoveryInfo:this.getRecoveryInfo().toJson(!1)}:{}),void 0!==this.getLocationReference()&&null!==this.getLocationReference()?{locationReference:this.getLocationReference().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"recoveryInfo"!==t||void 0!==this.recoveryInfo&&null!==this.recoveryInfo?"locationReference"!==t||void 0!==this.locationReference&&null!==this.locationReference?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("locationReference","undefined or null"):new f("recoveryInfo","undefined or null")}}])&&ls(t.prototype,n),r&&ls(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function hs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return vs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vs(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bs(e){return(bs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(n),!0).forEach((function(t){ws(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ws(e,t,n){return(t=js(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Os(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,js(r.key),r)}}function js(e){var t=function(e,t){if("object"!==bs(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==bs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bs(t)?t:String(t)}function $s(e,t){return($s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ps(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ss(e);if(t){var o=Ss(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ks(this,n)}}function ks(e,t){if(t&&("object"===bs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ts(e)}function Ts(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ss(e){return(Ss=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Es(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function Fs(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}ys.prototype.recoveryInfo=void 0,ys.prototype.locationReference=void 0,ys.prototype.$reserved=void 0,ys.prototype.$objectType=void 0,ys.prototype.$unknownFields=void 0;var Rs=new WeakSet,As=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$s(e,t)}(a,e);var t,n,r,o=Ps(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Es(Ts(e=o.call(this)),Rs),e.$objectType="dataprotection.v4.config.DeleteRecoveryPointApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.DeleteRecoveryPointApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:bs(e.data)){case"storage.v4.config.Task":t.setData(Si.constructFromObject(e.data,void 0));break;case"prism.v4.config.TaskReference":t.setData(mi.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=gs({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return gs(gs(gs({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Fs(this,Rs,Is).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Fs(this,Rs,Is).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Os(t.prototype,n),r&&Os(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function Is(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=hs(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===bs(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function xs(e){return(xs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ds(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ds(Object(n),!0).forEach((function(t){Cs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ds(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cs(e,t,n){return(t=Ms(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ns(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ms(r.key),r)}}function Ms(e){var t=function(e,t){if("object"!==xs(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==xs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xs(t)?t:String(t)}function Js(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}As.prototype.metadata=void 0,As.prototype.data=void 0,As.prototype.$reserved=void 0,As.prototype.$objectType=void 0,As.prototype.$unknownFields=void 0;var Vs=new WeakSet,Us=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Js(this,Vs),this.pcExtId=t,this.$objectType="dataprotection.v4.config.DisasterRecoveryLocation",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.DisasterRecoveryLocation"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("pcExtId")&&null!==t.pcExtId&&void 0!==t.pcExtId&&n.setPcExtId(t.pcExtId),t.hasOwnProperty("clusterReferences")&&null!==t.clusterReferences&&void 0!==t.clusterReferences){for(a=[],r=t.clusterReferences,i=0;i<r.length;i++)o=ci.constructFromObject(r[i],void 0),a.push(o);n.setClusterReferences(a)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!u)for(var s in n.$unknownFields=_s({},t.$unknownFields),t)Object.keys(n).includes(s)||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(n.$unknownFields[s]=t[s])}return n}}],(n=[{key:"getPcExtId",value:function(){return this.pcExtId}},{key:"setPcExtId",value:function(e){this.pcExtId=e}},{key:"getClusterReferences",value:function(){return this.clusterReferences}},{key:"setClusterReferences",value:function(e){this.clusterReferences=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return _s(_s(_s({},void 0!==this.getPcExtId()&&null!==this.getPcExtId()?{pcExtId:this.getPcExtId()}:{}),void 0!==this.getClusterReferences()&&null!==this.getClusterReferences()?{clusterReferences:this.getClusterReferences().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["pcExtId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("pcExtId"===t){if(void 0===this.pcExtId||null===this.pcExtId)return new f("pcExtId","undefined or null");if(!s.validatePattern(this.pcExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("pcExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"clusterReferences"!==t||void 0!==this.clusterReferences&&null!==this.clusterReferences?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("clusterReferences","undefined or null")}}])&&Ns(t.prototype,n),r&&Ns(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Gs(e){return(Gs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ws(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ls(Object(n),!0).forEach((function(t){Bs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ls(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bs(e,t,n){return(t=zs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zs(r.key),r)}}function zs(e){var t=function(e,t){if("object"!==Gs(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Gs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Gs(t)?t:String(t)}function Hs(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Us.prototype.pcExtId=void 0,Us.prototype.clusterReferences=void 0,Us.prototype.$reserved=void 0,Us.prototype.$objectType=void 0,Us.prototype.$unknownFields=void 0;var Ks=new WeakSet,Zs=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Hs(this,Ks),this.$objectType="dataprotection.v4.config.Disk",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.Disk"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("diskExtId")&&null!==t.diskExtId&&void 0!==t.diskExtId&&n.setDiskExtId(t.diskExtId),t.hasOwnProperty("capacityBytes")&&null!==t.capacityBytes&&void 0!==t.capacityBytes&&n.setCapacityBytes(t.capacityBytes),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Ws({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getDiskExtId",value:function(){return this.diskExtId}},{key:"setDiskExtId",value:function(e){this.diskExtId=e}},{key:"getCapacityBytes",value:function(){return this.capacityBytes}},{key:"setCapacityBytes",value:function(e){this.capacityBytes=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ws(Ws(Ws({},void 0!==this.getDiskExtId()&&null!==this.getDiskExtId()?{diskExtId:this.getDiskExtId()}:{}),void 0!==this.getCapacityBytes()&&null!==this.getCapacityBytes()?{capacityBytes:this.getCapacityBytes()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("diskExtId"===t){if(void 0===this.diskExtId||null===this.diskExtId)return new f("diskExtId","undefined or null");if(!s.validatePattern(this.diskExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("diskExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"capacityBytes"!==t||void 0!==this.capacityBytes&&null!==this.capacityBytes?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("capacityBytes","undefined or null")}}])&&qs(t.prototype,n),r&&qs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ys(e){return(Ys="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xs(Object(n),!0).forEach((function(t){ec(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ec(e,t,n){return(t=nc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nc(r.key),r)}}function nc(e){var t=function(e,t){if("object"!==Ys(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ys(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ys(t)?t:String(t)}function rc(e,t){return(rc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function oc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=uc(e);if(t){var o=uc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ic(this,n)}}function ic(e,t){if(t&&("object"===Ys(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ac(e)}function ac(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uc(e){return(uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function sc(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Zs.prototype.diskExtId=void 0,Zs.prototype.capacityBytes=void 0,Zs.prototype.$reserved=void 0,Zs.prototype.$objectType=void 0,Zs.prototype.$unknownFields=void 0;var cc=new WeakSet,lc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rc(e,t)}(a,e);var t,n,r,o=oc(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),sc(ac(e=o.call(this)),cc),e.$objectType="dataprotection.v4.config.DiskRecoveryPoint",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.DiskRecoveryPoint"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new a,Qr.constructFromObject(e,t,!0),e.hasOwnProperty("disk")&&null!==e.disk&&void 0!==e.disk&&t.setDisk(Zs.constructFromObject(e.disk)),!n))for(var r in t.$unknownFields=Qs({},e.$unknownFields),e)Object.keys(t).includes(r)||"$"===r[0]&&r.endsWith("ItemDiscriminator")||(t.$unknownFields[r]=e[r]);return t}}],(n=[{key:"getDisk",value:function(){return this.disk}},{key:"setDisk",value:function(e){this.disk=e}},{key:"toJson",value:function(e){return Qs(!1===e?Qs(Qs(Qs(Qs(Qs(Qs(Qs(Qs(Qs(Qs(Qs({},void 0!==this.getDisk()&&null!==this.getDisk()?{disk:this.getDisk().toJson(!1)}:{}),void 0!==this.getLocationAgnosticId()&&null!==this.getLocationAgnosticId()?{locationAgnosticId:this.getLocationAgnosticId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getExpirationTime()&&null!==this.getExpirationTime()?{expirationTime:this.getExpirationTime()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getRecoveryPointType()&&null!==this.getRecoveryPointType()?{recoveryPointType:this.getRecoveryPointType()}:{}),void 0!==this.getVendorSpecificProperties()&&null!==this.getVendorSpecificProperties()?{vendorSpecificProperties:this.getVendorSpecificProperties().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Qs(Qs(Qs(Qs(Qs(Qs({},void 0!==this.getDisk()&&null!==this.getDisk()?{disk:this.getDisk().toJson(!1)}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getExpirationTime()&&null!==this.getExpirationTime()?{expirationTime:this.getExpirationTime()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getRecoveryPointType()&&null!==this.getRecoveryPointType()?{recoveryPointType:this.getRecoveryPointType()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"disk"!==t||void 0!==this.disk&&null!==this.disk?new f(t,"no such property exists"):new f("disk","undefined or null")}}])&&tc(t.prototype,n),r&&tc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(Qr);function fc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return dc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pc(e){return(pc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yc(Object(n),!0).forEach((function(t){vc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vc(e,t,n){return(t=mc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mc(r.key),r)}}function mc(e){var t=function(e,t){if("object"!==pc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pc(t)?t:String(t)}function gc(e,t){return(gc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function wc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$c(e);if(t){var o=$c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oc(this,n)}}function Oc(e,t){if(t&&("object"===pc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return jc(e)}function jc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $c(e){return($c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pc(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function kc(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}lc.prototype.disk=void 0;var Tc=new WeakSet,Sc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gc(e,t)}(a,e);var t,n,r,o=wc(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Pc(jc(e=o.call(this)),Tc),e.$objectType="dataprotection.v4.config.DiskRecoveryPointApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.DiskRecoveryPointApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:pc(e.data)){case"dataprotection.v4.config.DiskRecoveryPoint":t.setData(lc.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=hc({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return hc(hc(hc({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):kc(this,Tc,Ec).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):kc(this,Tc,Ec).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&bc(t.prototype,n),r&&bc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function Ec(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=fc(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===pc(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Fc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Rc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ac(e){return(Ac="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ic(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ic(Object(n),!0).forEach((function(t){Dc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ic(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dc(e,t,n){return(t=Cc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Cc(r.key),r)}}function Cc(e){var t=function(e,t){if("object"!==Ac(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ac(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ac(t)?t:String(t)}function Nc(e,t){return(Nc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Mc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Uc(e);if(t){var o=Uc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Jc(this,n)}}function Jc(e,t){if(t&&("object"===Ac(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Vc(e)}function Vc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uc(e){return(Uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Gc(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function Lc(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}Sc.prototype.metadata=void 0,Sc.prototype.data=void 0,Sc.prototype.$reserved=void 0,Sc.prototype.$objectType=void 0,Sc.prototype.$unknownFields=void 0;var Wc=new WeakSet,Bc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nc(e,t)}(a,e);var t,n,r,o=Mc(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Gc(Vc(e=o.call(this)),Wc),e.$objectType="dataprotection.v4.config.DiskRecoveryPointListApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.DiskRecoveryPointListApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,u,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(i=[],u=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Ac(n[0]),o=0;o<n.length;o++)switch(u){case"dataprotection.v4.config.DiskRecoveryPoint":r=lc.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+u+" in data"}t.setData(i)}else switch(u=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ac(e.data)){case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+u+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!s)for(var c in t.$unknownFields=xc({},e.$unknownFields),e)Object.keys(t).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(t.$unknownFields[c]=e[c])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return xc(xc(xc({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Lc(this,Wc,qc).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Lc(this,Wc,qc).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&_c(t.prototype,n),r&&_c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function qc(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=Fc(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Ac(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function zc(e){return(zc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hc(Object(n),!0).forEach((function(t){Zc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zc(e,t,n){return(t=Xc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xc(r.key),r)}}function Xc(e){var t=function(e,t){if("object"!==zc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zc(t)?t:String(t)}function Qc(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Bc.prototype.metadata=void 0,Bc.prototype.data=void 0,Bc.prototype.$reserved=void 0,Bc.prototype.$objectType=void 0,Bc.prototype.$unknownFields=void 0;var el=new WeakSet,tl=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Qc(this,el),this.$objectType="dataprotection.v4.config.EsxiVmOverrideSpec",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.EsxiVmOverrideSpec"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Kc({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Kc(Kc({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new f("name","undefined or null");if(!s.validateMaxLength(this.name,256))return new f("name","does not satisfy required maxLength constraint: 256")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&Yc(t.prototype,n),r&&Yc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();tl.prototype.name=void 0,tl.prototype.$reserved=void 0,tl.prototype.$objectType=void 0,tl.prototype.$unknownFields=void 0;var nl={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",X86_64:"X86_64",PPC:"PPC",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(nl).find((function(t){return nl[t]===e}));return null==t?nl.$UNKNOWN:nl[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case nl.$UNKNOWN:case nl.$REDACTED:case nl.X86_64:case nl.PPC:return;default:throw new Error("Invalid : must be HardwareArchitecture.{ $UNKNOWN|$REDACTED|X86_64|PPC }")}}};Object.freeze(nl);var rl=nl,ol={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PRISM_ELEMENT:"PRISM_ELEMENT",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ol).find((function(t){return ol[t]===e}));return null==t?ol.$UNKNOWN:ol[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ol.$UNKNOWN:case ol.$REDACTED:case ol.PRISM_ELEMENT:return;default:throw new Error("Invalid : must be HostType.{ $UNKNOWN|$REDACTED|PRISM_ELEMENT }")}}};Object.freeze(ol);var il=ol;function al(e){return(al="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ul(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ul(Object(n),!0).forEach((function(t){cl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ul(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cl(e,t,n){return(t=fl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ll(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fl(r.key),r)}}function fl(e){var t=function(e,t){if("object"!==al(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==al(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===al(t)?t:String(t)}function dl(e,t){return(dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function pl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vl(e);if(t){var o=vl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yl(this,n)}}function yl(e,t){if(t&&("object"===al(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return hl(e)}function hl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vl(e){return(vl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function bl(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}var ml=new WeakSet,gl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dl(e,t)}(a,e);var t,n,r,o=pl(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),bl(hl(e=o.call(this)),ml),e.$objectType="dataprotection.v4.config.HostReference",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.HostReference"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new a,L.constructFromObject(e,t,!0),e.hasOwnProperty("hostType")&&null!==e.hostType&&void 0!==e.hostType&&t.setHostType(il.constructFromObject(e.hostType)),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),!n))for(var r in t.$unknownFields=sl({},e.$unknownFields),e)Object.keys(t).includes(r)||"$"===r[0]&&r.endsWith("ItemDiscriminator")||(t.$unknownFields[r]=e[r]);return t}}],(n=[{key:"getHostType",value:function(){return this.hostType}},{key:"setHostType",value:function(e){this.hostType=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"toJson",value:function(e){return sl(!1===e?sl(sl(sl(sl(sl({},void 0!==this.getHostType()&&null!==this.getHostType()?{hostType:this.getHostType()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):sl(sl(sl({},void 0!==this.getHostType()&&null!==this.getHostType()?{hostType:this.getHostType()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"hostType"!==t||void 0!==this.hostType&&null!==this.hostType?"name"!==t||void 0!==this.name&&null!==this.name?new f(t,"no such property exists"):new f("name","undefined or null"):new f("hostType","undefined or null")}}])&&ll(t.prototype,n),r&&ll(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(L);gl.prototype.hostType=void 0,gl.prototype.name=void 0;var wl={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",AHV:"AHV",HYPERV:"HYPERV",VMWARE:"VMWARE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(wl).find((function(t){return wl[t]===e}));return null==t?wl.$UNKNOWN:wl[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case wl.$UNKNOWN:case wl.$REDACTED:case wl.AHV:case wl.HYPERV:case wl.VMWARE:return;default:throw new Error("Invalid : must be HypervisorType.{ $UNKNOWN|$REDACTED|AHV|HYPERV|VMWARE }")}}};Object.freeze(wl);var Ol=wl;function jl(e){return(jl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$l(Object(n),!0).forEach((function(t){kl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kl(e,t,n){return(t=Sl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sl(r.key),r)}}function Sl(e){var t=function(e,t){if("object"!==jl(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==jl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===jl(t)?t:String(t)}function El(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}var Fl=new WeakSet,Rl=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),El(this,Fl),this.ipv4=t,this.$objectType="dataprotection.v4.config.IpAddress",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.IpAddress"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("ipv4")&&null!==t.ipv4&&void 0!==t.ipv4&&n.setIpv4(t.ipv4),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Pl({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getIpv4",value:function(){return this.ipv4}},{key:"setIpv4",value:function(e){this.ipv4=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Pl(Pl({},void 0!==this.getIpv4()&&null!==this.getIpv4()?{ipv4:this.getIpv4()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["ipv4"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("ipv4"===t){if(void 0===this.ipv4||null===this.ipv4)return new f("ipv4","undefined or null");if(!s.validatePattern(this.ipv4,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/))return new f("ipv4","does not satisfy required pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&Tl(t.prototype,n),r&&Tl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();Rl.prototype.ipv4=void 0,Rl.prototype.$reserved=void 0,Rl.prototype.$objectType=void 0,Rl.prototype.$unknownFields=void 0;var Al={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",OFF:"OFF",ON:"ON",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Al).find((function(t){return Al[t]===e}));return null==t?Al.$UNKNOWN:Al[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Al.$UNKNOWN:case Al.$REDACTED:case Al.OFF:case Al.ON:return;default:throw new Error("Invalid : must be PowerState.{ $UNKNOWN|$REDACTED|OFF|ON }")}}};Object.freeze(Al);var Il=Al,xl={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VM:"VM",VOLUME_GROUP:"VOLUME_GROUP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(xl).find((function(t){return xl[t]===e}));return null==t?xl.$UNKNOWN:xl[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case xl.$UNKNOWN:case xl.$REDACTED:case xl.VM:case xl.VOLUME_GROUP:return;default:throw new Error("Invalid : must be ProtectedResourceEntityType.{ $UNKNOWN|$REDACTED|VM|VOLUME_GROUP }")}}};Object.freeze(xl);var Dl=xl,_l={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ACTIVE:"ACTIVE",SYNCING:"SYNCING",DEGRADED:"DEGRADED",DISABLED:"DISABLED",DECOUPLED:"DECOUPLED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(_l).find((function(t){return _l[t]===e}));return null==t?_l.$UNKNOWN:_l[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case _l.$UNKNOWN:case _l.$REDACTED:case _l.ACTIVE:case _l.SYNCING:case _l.DEGRADED:case _l.DISABLED:case _l.DECOUPLED:return;default:throw new Error("Invalid : must be ProtectedResourceReplicationStatus.{ $UNKNOWN|$REDACTED|ACTIVE|SYNCING|DEGRADED|DISABLED|DECOUPLED }")}}};Object.freeze(_l);var Cl=_l;function Nl(e){return(Nl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ml(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ml(Object(n),!0).forEach((function(t){Vl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ml(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vl(e,t,n){return(t=Gl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ul(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gl(r.key),r)}}function Gl(e){var t=function(e,t){if("object"!==Nl(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Nl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Nl(t)?t:String(t)}function Ll(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}var Wl=new WeakSet,Bl=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ll(this,Wl),this.$objectType="dataprotection.v4.config.ReplicationState",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.ReplicationState"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("protectionPolicyReference")&&null!==t.protectionPolicyReference&&void 0!==t.protectionPolicyReference&&n.setProtectionPolicyReference(t.protectionPolicyReference),t.hasOwnProperty("recoveryPointObjective")&&null!==t.recoveryPointObjective&&void 0!==t.recoveryPointObjective&&n.setRecoveryPointObjective(t.recoveryPointObjective),t.hasOwnProperty("replicationStatus")&&null!==t.replicationStatus&&void 0!==t.replicationStatus&&n.setReplicationStatus(Cl.constructFromObject(t.replicationStatus)),t.hasOwnProperty("targetSiteReference")&&null!==t.targetSiteReference&&void 0!==t.targetSiteReference&&n.setTargetSiteReference(Uu.constructFromObject(t.targetSiteReference)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Jl({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getProtectionPolicyReference",value:function(){return this.protectionPolicyReference}},{key:"setProtectionPolicyReference",value:function(e){this.protectionPolicyReference=e}},{key:"getRecoveryPointObjective",value:function(){return this.recoveryPointObjective}},{key:"setRecoveryPointObjective",value:function(e){this.recoveryPointObjective=e}},{key:"getReplicationStatus",value:function(){return this.replicationStatus}},{key:"setReplicationStatus",value:function(e){this.replicationStatus=e}},{key:"getTargetSiteReference",value:function(){return this.targetSiteReference}},{key:"setTargetSiteReference",value:function(e){this.targetSiteReference=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Jl(Jl(Jl(Jl(Jl({},void 0!==this.getProtectionPolicyReference()&&null!==this.getProtectionPolicyReference()?{protectionPolicyReference:this.getProtectionPolicyReference()}:{}),void 0!==this.getRecoveryPointObjective()&&null!==this.getRecoveryPointObjective()?{recoveryPointObjective:this.getRecoveryPointObjective()}:{}),void 0!==this.getReplicationStatus()&&null!==this.getReplicationStatus()?{replicationStatus:this.getReplicationStatus()}:{}),void 0!==this.getTargetSiteReference()&&null!==this.getTargetSiteReference()?{targetSiteReference:this.getTargetSiteReference().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("protectionPolicyReference"===t){if(void 0===this.protectionPolicyReference||null===this.protectionPolicyReference)return new f("protectionPolicyReference","undefined or null");if(!s.validatePattern(this.protectionPolicyReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("protectionPolicyReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"recoveryPointObjective"!==t||void 0!==this.recoveryPointObjective&&null!==this.recoveryPointObjective?"replicationStatus"!==t||void 0!==this.replicationStatus&&null!==this.replicationStatus?"targetSiteReference"!==t||void 0!==this.targetSiteReference&&null!==this.targetSiteReference?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("targetSiteReference","undefined or null"):new f("replicationStatus","undefined or null"):new f("recoveryPointObjective","undefined or null")}}])&&Ul(t.prototype,n),r&&Ul(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ql(e){return(ql="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zl(Object(n),!0).forEach((function(t){Kl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kl(e,t,n){return(t=Yl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yl(r.key),r)}}function Yl(e){var t=function(e,t){if("object"!==ql(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ql(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ql(t)?t:String(t)}function Xl(e,t){return(Xl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ql(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nf(e);if(t){var o=nf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ef(this,n)}}function ef(e,t){if(t&&("object"===ql(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tf(e)}function tf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nf(e){return(nf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rf(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Bl.prototype.protectionPolicyReference=void 0,Bl.prototype.recoveryPointObjective=void 0,Bl.prototype.replicationStatus=void 0,Bl.prototype.targetSiteReference=void 0,Bl.prototype.$reserved=void 0,Bl.prototype.$objectType=void 0,Bl.prototype.$unknownFields=void 0;var of=new WeakSet,af=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xl(e,t)}(a,e);var t,n,r,o=Ql(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),rf(tf(e=o.call(this)),of),e.$objectType="dataprotection.v4.config.ProtectedResource",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.ProtectedResource"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,L.constructFromObject(e,t,!0),e.hasOwnProperty("entityExtId")&&null!==e.entityExtId&&void 0!==e.entityExtId&&t.setEntityExtId(e.entityExtId),e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&t.setEntityType(Dl.constructFromObject(e.entityType)),e.hasOwnProperty("sourceSiteReference")&&null!==e.sourceSiteReference&&void 0!==e.sourceSiteReference&&t.setSourceSiteReference(Uu.constructFromObject(e.sourceSiteReference)),e.hasOwnProperty("dataProtectionInfo")&&null!==e.dataProtectionInfo&&void 0!==e.dataProtectionInfo){for(i=[],n=e.dataProtectionInfo,o=0;o<n.length;o++)r=ys.constructFromObject(n[o],void 0),i.push(r);t.setDataProtectionInfo(i)}if(e.hasOwnProperty("replicationStates")&&null!==e.replicationStates&&void 0!==e.replicationStates){for(i=[],n=e.replicationStates,o=0;o<n.length;o++)r=Bl.constructFromObject(n[o],void 0),i.push(r);t.setReplicationStates(i)}if(!u)for(var s in t.$unknownFields=Hl({},e.$unknownFields),e)Object.keys(t).includes(s)||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(t.$unknownFields[s]=e[s])}return t}}],(n=[{key:"getEntityExtId",value:function(){return this.entityExtId}},{key:"setEntityExtId",value:function(e){this.entityExtId=e}},{key:"getEntityType",value:function(){return this.entityType}},{key:"setEntityType",value:function(e){this.entityType=e}},{key:"getSourceSiteReference",value:function(){return this.sourceSiteReference}},{key:"setSourceSiteReference",value:function(e){this.sourceSiteReference=e}},{key:"getDataProtectionInfo",value:function(){return this.dataProtectionInfo}},{key:"setDataProtectionInfo",value:function(e){this.dataProtectionInfo=e}},{key:"getReplicationStates",value:function(){return this.replicationStates}},{key:"setReplicationStates",value:function(e){this.replicationStates=e}},{key:"toJson",value:function(e){return Hl(!1===e?Hl(Hl(Hl(Hl(Hl(Hl(Hl(Hl({},void 0!==this.getEntityExtId()&&null!==this.getEntityExtId()?{entityExtId:this.getEntityExtId()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getSourceSiteReference()&&null!==this.getSourceSiteReference()?{sourceSiteReference:this.getSourceSiteReference().toJson(!1)}:{}),void 0!==this.getDataProtectionInfo()&&null!==this.getDataProtectionInfo()?{dataProtectionInfo:this.getDataProtectionInfo().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getReplicationStates()&&null!==this.getReplicationStates()?{replicationStates:this.getReplicationStates().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Hl(Hl(Hl(Hl(Hl(Hl({},void 0!==this.getEntityExtId()&&null!==this.getEntityExtId()?{entityExtId:this.getEntityExtId()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getSourceSiteReference()&&null!==this.getSourceSiteReference()?{sourceSiteReference:this.getSourceSiteReference().toJson(!1)}:{}),void 0!==this.getDataProtectionInfo()&&null!==this.getDataProtectionInfo()?{dataProtectionInfo:this.getDataProtectionInfo().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getReplicationStates()&&null!==this.getReplicationStates()?{replicationStates:this.getReplicationStates().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("entityExtId"===t){if(void 0===this.entityExtId||null===this.entityExtId)return new f("entityExtId","undefined or null");if(!s.validatePattern(this.entityExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("entityExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"entityType"!==t||void 0!==this.entityType&&null!==this.entityType?"sourceSiteReference"!==t||void 0!==this.sourceSiteReference&&null!==this.sourceSiteReference?"dataProtectionInfo"!==t||void 0!==this.dataProtectionInfo&&null!==this.dataProtectionInfo?"replicationStates"!==t||void 0!==this.replicationStates&&null!==this.replicationStates?new f(t,"no such property exists"):new f("replicationStates","undefined or null"):new f("dataProtectionInfo","undefined or null"):new f("sourceSiteReference","undefined or null"):new f("entityType","undefined or null")}}])&&Zl(t.prototype,n),r&&Zl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(L);function uf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return sf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sf(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cf(e){return(cf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ff(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lf(Object(n),!0).forEach((function(t){df(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function df(e,t,n){return(t=yf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yf(r.key),r)}}function yf(e){var t=function(e,t){if("object"!==cf(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==cf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===cf(t)?t:String(t)}function hf(e,t){return(hf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function vf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gf(e);if(t){var o=gf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bf(this,n)}}function bf(e,t){if(t&&("object"===cf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return mf(e)}function mf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gf(e){return(gf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wf(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function Of(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}af.prototype.entityExtId=void 0,af.prototype.entityType=void 0,af.prototype.sourceSiteReference=void 0,af.prototype.dataProtectionInfo=void 0,af.prototype.replicationStates=void 0;var jf=new WeakSet,$f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hf(e,t)}(a,e);var t,n,r,o=vf(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),wf(mf(e=o.call(this)),jf),e.$objectType="dataprotection.v4.config.ProtectedResourceApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.ProtectedResourceApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:cf(e.data)){case"dataprotection.v4.config.ProtectedResource":t.setData(af.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=ff({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ff(ff(ff({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Of(this,jf,Pf).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Of(this,jf,Pf).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&pf(t.prototype,n),r&&pf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function Pf(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=uf(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===cf(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function kf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Tf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tf(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Sf(e){return(Sf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ef(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ff(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ef(Object(n),!0).forEach((function(t){Rf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ef(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rf(e,t,n){return(t=If(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Af(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,If(r.key),r)}}function If(e){var t=function(e,t){if("object"!==Sf(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Sf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Sf(t)?t:String(t)}function xf(e,t){return(xf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Df(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Nf(e);if(t){var o=Nf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _f(this,n)}}function _f(e,t){if(t&&("object"===Sf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Cf(e)}function Cf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nf(e){return(Nf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Mf(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function Jf(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}$f.prototype.metadata=void 0,$f.prototype.data=void 0,$f.prototype.$reserved=void 0,$f.prototype.$objectType=void 0,$f.prototype.$unknownFields=void 0;var Vf=new WeakSet,Uf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xf(e,t)}(a,e);var t,n,r,o=Df(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Mf(Cf(e=o.call(this)),Vf),e.$objectType="dataprotection.v4.config.ProtectedResourcePromoteApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.ProtectedResourcePromoteApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Sf(e.data)){case"prism.v4.config.TaskReference":t.setData(mi.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=Ff({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ff(Ff(Ff({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Jf(this,Vf,Gf).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Jf(this,Vf,Gf).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Af(t.prototype,n),r&&Af(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function Gf(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=kf(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Sf(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Lf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Wf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wf(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bf(e){return(Bf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qf(Object(n),!0).forEach((function(t){Hf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hf(e,t,n){return(t=Zf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zf(r.key),r)}}function Zf(e){var t=function(e,t){if("object"!==Bf(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Bf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Bf(t)?t:String(t)}function Yf(e,t){return(Yf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Xf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=td(e);if(t){var o=td(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qf(this,n)}}function Qf(e,t){if(t&&("object"===Bf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ed(e)}function ed(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function td(e){return(td=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nd(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function rd(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}Uf.prototype.metadata=void 0,Uf.prototype.data=void 0,Uf.prototype.$reserved=void 0,Uf.prototype.$objectType=void 0,Uf.prototype.$unknownFields=void 0;var od=new WeakSet,id=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yf(e,t)}(a,e);var t,n,r,o=Xf(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),nd(ed(e=o.call(this)),od),e.$objectType="dataprotection.v4.config.ProtectedResourceRestoreApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.ProtectedResourceRestoreApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Bf(e.data)){case"prism.v4.config.TaskReference":t.setData(mi.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=zf({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return zf(zf(zf({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):rd(this,od,ad).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):rd(this,od,ad).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Kf(t.prototype,n),r&&Kf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function ad(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=Lf(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Bf(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function ud(e){return(ud="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sd(Object(n),!0).forEach((function(t){ld(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ld(e,t,n){return(t=dd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dd(r.key),r)}}function dd(e){var t=function(e,t){if("object"!==ud(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ud(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ud(t)?t:String(t)}function pd(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}id.prototype.metadata=void 0,id.prototype.data=void 0,id.prototype.$reserved=void 0,id.prototype.$objectType=void 0,id.prototype.$unknownFields=void 0;var yd=new WeakSet,hd=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),pd(this,yd),this.clusterExtId=t,this.$objectType="dataprotection.v4.config.ProtectedResourceRestoreSpec",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.ProtectedResourceRestoreSpec"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("clusterExtId")&&null!==t.clusterExtId&&void 0!==t.clusterExtId&&n.setClusterExtId(t.clusterExtId),t.hasOwnProperty("restoreTime")&&null!==t.restoreTime&&void 0!==t.restoreTime&&n.setRestoreTime(t.restoreTime),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=cd({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getRestoreTime",value:function(){return this.restoreTime}},{key:"setRestoreTime",value:function(e){this.restoreTime=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return cd(cd(cd({},void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getRestoreTime()&&null!==this.getRestoreTime()?{restoreTime:this.getRestoreTime()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["clusterExtId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new f("clusterExtId","undefined or null");if(!s.validatePattern(this.clusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("clusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"restoreTime"!==t||void 0!==this.restoreTime&&null!==this.restoreTime?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("restoreTime","undefined or null")}}])&&fd(t.prototype,n),r&&fd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function vd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return bd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bd(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function md(e){return(md="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gd(Object(n),!0).forEach((function(t){Od(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Od(e,t,n){return(t=$d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$d(r.key),r)}}function $d(e){var t=function(e,t){if("object"!==md(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==md(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===md(t)?t:String(t)}function Pd(e,t){return(Pd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function kd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ed(e);if(t){var o=Ed(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Td(this,n)}}function Td(e,t){if(t&&("object"===md(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Sd(e)}function Sd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ed(e){return(Ed=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fd(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function Rd(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}hd.prototype.clusterExtId=void 0,hd.prototype.restoreTime=void 0,hd.prototype.$reserved=void 0,hd.prototype.$objectType=void 0,hd.prototype.$unknownFields=void 0;var Ad=new WeakSet,Id=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pd(e,t)}(a,e);var t,n,r,o=kd(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Fd(Sd(e=o.call(this)),Ad),e.$objectType="dataprotection.v4.config.RecoveryPointApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.RecoveryPointApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:md(e.data)){case"dataprotection.v4.config.RecoveryPoint":t.setData(Za.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=wd({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return wd(wd(wd({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Rd(this,Ad,xd).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Rd(this,Ad,xd).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&jd(t.prototype,n),r&&jd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function xd(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=vd(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===md(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Dd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _d(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cd(e){return(Cd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Md(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nd(Object(n),!0).forEach((function(t){Jd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jd(e,t,n){return(t=Ud(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ud(r.key),r)}}function Ud(e){var t=function(e,t){if("object"!==Cd(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Cd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Cd(t)?t:String(t)}function Gd(e,t){return(Gd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ld(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qd(e);if(t){var o=qd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wd(this,n)}}function Wd(e,t){if(t&&("object"===Cd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Bd(e)}function Bd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qd(e){return(qd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zd(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function Hd(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}Id.prototype.metadata=void 0,Id.prototype.data=void 0,Id.prototype.$reserved=void 0,Id.prototype.$objectType=void 0,Id.prototype.$unknownFields=void 0;var Kd=new WeakSet,Zd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gd(e,t)}(a,e);var t,n,r,o=Ld(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),zd(Bd(e=o.call(this)),Kd),e.$objectType="dataprotection.v4.config.RecoveryPointListApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.RecoveryPointListApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,u,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(i=[],u=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Cd(n[0]),o=0;o<n.length;o++)switch(u){case"dataprotection.v4.config.RecoveryPoint":r=Za.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+u+" in data"}t.setData(i)}else switch(u=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Cd(e.data)){case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+u+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!s)for(var c in t.$unknownFields=Md({},e.$unknownFields),e)Object.keys(t).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(t.$unknownFields[c]=e[c])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Md(Md(Md({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Hd(this,Kd,Yd).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Hd(this,Kd,Yd).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Vd(t.prototype,n),r&&Vd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function Yd(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=Dd(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Cd(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Xd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qd(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ep(e){return(ep="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function np(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tp(Object(n),!0).forEach((function(t){rp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rp(e,t,n){return(t=ip(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function op(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ip(r.key),r)}}function ip(e){var t=function(e,t){if("object"!==ep(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ep(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ep(t)?t:String(t)}function ap(e,t){return(ap=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function up(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lp(e);if(t){var o=lp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sp(this,n)}}function sp(e,t){if(t&&("object"===ep(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cp(e)}function cp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lp(e){return(lp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fp(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function dp(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}Zd.prototype.metadata=void 0,Zd.prototype.data=void 0,Zd.prototype.$reserved=void 0,Zd.prototype.$objectType=void 0,Zd.prototype.$unknownFields=void 0;var pp=new WeakSet,yp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ap(e,t)}(a,e);var t,n,r,o=up(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),fp(cp(e=o.call(this)),pp),e.$objectType="dataprotection.v4.config.RecoveryPointReplicateApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.RecoveryPointReplicateApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ep(e.data)){case"storage.v4.config.Task":t.setData(Si.constructFromObject(e.data,void 0));break;case"prism.v4.config.TaskReference":t.setData(mi.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=np({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return np(np(np({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):dp(this,pp,hp).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):dp(this,pp,hp).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&op(t.prototype,n),r&&op(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function hp(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=Xd(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===ep(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function vp(e){return(vp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bp(Object(n),!0).forEach((function(t){gp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gp(e,t,n){return(t=Op(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Op(r.key),r)}}function Op(e){var t=function(e,t){if("object"!==vp(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==vp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===vp(t)?t:String(t)}function jp(e,t){return(jp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function $p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Tp(e);if(t){var o=Tp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pp(this,n)}}function Pp(e,t){if(t&&("object"===vp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return kp(e)}function kp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tp(e){return(Tp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Sp(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}yp.prototype.metadata=void 0,yp.prototype.data=void 0,yp.prototype.$reserved=void 0,yp.prototype.$objectType=void 0,yp.prototype.$unknownFields=void 0;var Ep=new WeakSet,Fp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jp(e,t)}(a,e);var t,n,r,o=$p(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Sp(kp(e=o.call(this)),Ep),e.$objectType="dataprotection.v4.config.RecoveryPointReplicationSpec",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.RecoveryPointReplicationSpec"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new a,Uu.constructFromObject(e,t,!0),e.hasOwnProperty("targetAvailabilityZoneId")&&null!==e.targetAvailabilityZoneId&&void 0!==e.targetAvailabilityZoneId&&t.setTargetAvailabilityZoneId(e.targetAvailabilityZoneId),e.hasOwnProperty("targetClusterId")&&null!==e.targetClusterId&&void 0!==e.targetClusterId&&t.setTargetClusterId(e.targetClusterId),!n))for(var r in t.$unknownFields=mp({},e.$unknownFields),e)Object.keys(t).includes(r)||"$"===r[0]&&r.endsWith("ItemDiscriminator")||(t.$unknownFields[r]=e[r]);return t}}],(n=[{key:"getTargetAvailabilityZoneId",value:function(){return this.targetAvailabilityZoneId}},{key:"setTargetAvailabilityZoneId",value:function(e){this.targetAvailabilityZoneId=e}},{key:"getTargetClusterId",value:function(){return this.targetClusterId}},{key:"setTargetClusterId",value:function(e){this.targetClusterId=e}},{key:"toJson",value:function(e){return mp(mp(mp(mp(mp({},void 0!==this.getTargetAvailabilityZoneId()&&null!==this.getTargetAvailabilityZoneId()?{targetAvailabilityZoneId:this.getTargetAvailabilityZoneId()}:{}),void 0!==this.getTargetClusterId()&&null!==this.getTargetClusterId()?{targetClusterId:this.getTargetClusterId()}:{}),void 0!==this.getPcExtId()&&null!==this.getPcExtId()?{pcExtId:this.getPcExtId()}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"targetAvailabilityZoneId"!==t||void 0!==this.targetAvailabilityZoneId&&null!==this.targetAvailabilityZoneId?"targetClusterId"!==t||void 0!==this.targetClusterId&&null!==this.targetClusterId?new f(t,"no such property exists"):new f("targetClusterId","undefined or null"):new f("targetAvailabilityZoneId","undefined or null")}}])&&wp(t.prototype,n),r&&wp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(Uu);function Rp(e){return(Rp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ap(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ip(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ap(Object(n),!0).forEach((function(t){xp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ap(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xp(e,t,n){return(t=_p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_p(r.key),r)}}function _p(e){var t=function(e,t){if("object"!==Rp(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Rp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Rp(t)?t:String(t)}function Cp(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Fp.prototype.targetAvailabilityZoneId=void 0,Fp.prototype.targetClusterId=void 0;var Np=new WeakSet,Mp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Cp(this,Np),this.vmRecoveryPointId=t,this.$objectType="dataprotection.v4.config.VmRecoveryPointRestoreOverride",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.VmRecoveryPointRestoreOverride"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("vmRecoveryPointId")&&null!==t.vmRecoveryPointId&&void 0!==t.vmRecoveryPointId&&n.setVmRecoveryPointId(t.vmRecoveryPointId),t.hasOwnProperty("ahvVmOverrideSpec")&&null!==t.ahvVmOverrideSpec&&void 0!==t.ahvVmOverrideSpec&&n.setAhvVmOverrideSpec(so.constructFromObject(t.ahvVmOverrideSpec)),t.hasOwnProperty("esxiVmOverrideSpec")&&null!==t.esxiVmOverrideSpec&&void 0!==t.esxiVmOverrideSpec&&n.setEsxiVmOverrideSpec(tl.constructFromObject(t.esxiVmOverrideSpec)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Ip({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getVmRecoveryPointId",value:function(){return this.vmRecoveryPointId}},{key:"setVmRecoveryPointId",value:function(e){this.vmRecoveryPointId=e}},{key:"getAhvVmOverrideSpec",value:function(){return this.ahvVmOverrideSpec}},{key:"setAhvVmOverrideSpec",value:function(e){this.ahvVmOverrideSpec=e}},{key:"getEsxiVmOverrideSpec",value:function(){return this.esxiVmOverrideSpec}},{key:"setEsxiVmOverrideSpec",value:function(e){this.esxiVmOverrideSpec=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ip(Ip(Ip(Ip({},void 0!==this.getVmRecoveryPointId()&&null!==this.getVmRecoveryPointId()?{vmRecoveryPointId:this.getVmRecoveryPointId()}:{}),void 0!==this.getAhvVmOverrideSpec()&&null!==this.getAhvVmOverrideSpec()?{ahvVmOverrideSpec:this.getAhvVmOverrideSpec().toJson(!1)}:{}),void 0!==this.getEsxiVmOverrideSpec()&&null!==this.getEsxiVmOverrideSpec()?{esxiVmOverrideSpec:this.getEsxiVmOverrideSpec().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["vmRecoveryPointId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("vmRecoveryPointId"===t){if(void 0===this.vmRecoveryPointId||null===this.vmRecoveryPointId)return new f("vmRecoveryPointId","undefined or null");if(!s.validatePattern(this.vmRecoveryPointId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("vmRecoveryPointId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"ahvVmOverrideSpec"!==t||void 0!==this.ahvVmOverrideSpec&&null!==this.ahvVmOverrideSpec?"esxiVmOverrideSpec"!==t||void 0!==this.esxiVmOverrideSpec&&null!==this.esxiVmOverrideSpec?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("esxiVmOverrideSpec","undefined or null"):new f("ahvVmOverrideSpec","undefined or null")}}])&&Dp(t.prototype,n),r&&Dp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Jp(e){return(Jp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Up(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vp(Object(n),!0).forEach((function(t){Gp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gp(e,t,n){return(t=Wp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wp(r.key),r)}}function Wp(e){var t=function(e,t){if("object"!==Jp(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Jp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Jp(t)?t:String(t)}function Bp(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Mp.prototype.vmRecoveryPointId=void 0,Mp.prototype.ahvVmOverrideSpec=void 0,Mp.prototype.esxiVmOverrideSpec=void 0,Mp.prototype.$reserved=void 0,Mp.prototype.$objectType=void 0,Mp.prototype.$unknownFields=void 0;var qp=new WeakSet,zp=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Bp(this,qp),this.$objectType="dataprotection.v4.config.VolumeGroupOverrideSpec",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.VolumeGroupOverrideSpec"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Up({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Up(Up({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new f("name","undefined or null");if(!s.validateMaxLength(this.name,256))return new f("name","does not satisfy required maxLength constraint: 256")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&Lp(t.prototype,n),r&&Lp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Hp(e){return(Hp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kp(Object(n),!0).forEach((function(t){Yp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yp(e,t,n){return(t=Qp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qp(r.key),r)}}function Qp(e){var t=function(e,t){if("object"!==Hp(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Hp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Hp(t)?t:String(t)}function ey(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}zp.prototype.name=void 0,zp.prototype.$reserved=void 0,zp.prototype.$objectType=void 0,zp.prototype.$unknownFields=void 0;var ty=new WeakSet,ny=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ey(this,ty),this.volumeGroupRecoveryPointId=t,this.$objectType="dataprotection.v4.config.VolumeGroupRecoveryPointRestoreOverride",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.VolumeGroupRecoveryPointRestoreOverride"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("volumeGroupRecoveryPointId")&&null!==t.volumeGroupRecoveryPointId&&void 0!==t.volumeGroupRecoveryPointId&&n.setVolumeGroupRecoveryPointId(t.volumeGroupRecoveryPointId),t.hasOwnProperty("volumeGroupOverrideSpec")&&null!==t.volumeGroupOverrideSpec&&void 0!==t.volumeGroupOverrideSpec&&n.setVolumeGroupOverrideSpec(zp.constructFromObject(t.volumeGroupOverrideSpec)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Zp({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getVolumeGroupRecoveryPointId",value:function(){return this.volumeGroupRecoveryPointId}},{key:"setVolumeGroupRecoveryPointId",value:function(e){this.volumeGroupRecoveryPointId=e}},{key:"getVolumeGroupOverrideSpec",value:function(){return this.volumeGroupOverrideSpec}},{key:"setVolumeGroupOverrideSpec",value:function(e){this.volumeGroupOverrideSpec=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Zp(Zp(Zp({},void 0!==this.getVolumeGroupRecoveryPointId()&&null!==this.getVolumeGroupRecoveryPointId()?{volumeGroupRecoveryPointId:this.getVolumeGroupRecoveryPointId()}:{}),void 0!==this.getVolumeGroupOverrideSpec()&&null!==this.getVolumeGroupOverrideSpec()?{volumeGroupOverrideSpec:this.getVolumeGroupOverrideSpec().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["volumeGroupRecoveryPointId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("volumeGroupRecoveryPointId"===t){if(void 0===this.volumeGroupRecoveryPointId||null===this.volumeGroupRecoveryPointId)return new f("volumeGroupRecoveryPointId","undefined or null");if(!s.validatePattern(this.volumeGroupRecoveryPointId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("volumeGroupRecoveryPointId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"volumeGroupOverrideSpec"!==t||void 0!==this.volumeGroupOverrideSpec&&null!==this.volumeGroupOverrideSpec?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("volumeGroupOverrideSpec","undefined or null")}}])&&Xp(t.prototype,n),r&&Xp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ry(e){return(ry="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oy(Object(n),!0).forEach((function(t){ay(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ay(e,t,n){return(t=sy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sy(r.key),r)}}function sy(e){var t=function(e,t){if("object"!==ry(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ry(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ry(t)?t:String(t)}function cy(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}ny.prototype.volumeGroupRecoveryPointId=void 0,ny.prototype.volumeGroupOverrideSpec=void 0,ny.prototype.$reserved=void 0,ny.prototype.$objectType=void 0,ny.prototype.$unknownFields=void 0;var ly=new WeakSet,fy=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),cy(this,ly),this.$objectType="dataprotection.v4.config.RecoveryPointRestorationSpec",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.RecoveryPointRestorationSpec"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("clusterExtId")&&null!==t.clusterExtId&&void 0!==t.clusterExtId&&n.setClusterExtId(t.clusterExtId),t.hasOwnProperty("vmRecoveryPointRestoreOverrides")&&null!==t.vmRecoveryPointRestoreOverrides&&void 0!==t.vmRecoveryPointRestoreOverrides){for(a=[],r=t.vmRecoveryPointRestoreOverrides,i=0;i<r.length;i++)o=Mp.constructFromObject(r[i],void 0),a.push(o);n.setVmRecoveryPointRestoreOverrides(a)}if(t.hasOwnProperty("volumeGroupRecoveryPointRestoreOverrides")&&null!==t.volumeGroupRecoveryPointRestoreOverrides&&void 0!==t.volumeGroupRecoveryPointRestoreOverrides){for(a=[],r=t.volumeGroupRecoveryPointRestoreOverrides,i=0;i<r.length;i++)o=ny.constructFromObject(r[i],void 0),a.push(o);n.setVolumeGroupRecoveryPointRestoreOverrides(a)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!u)for(var s in n.$unknownFields=iy({},t.$unknownFields),t)Object.keys(n).includes(s)||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(n.$unknownFields[s]=t[s])}return n}}],(n=[{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getVmRecoveryPointRestoreOverrides",value:function(){return this.vmRecoveryPointRestoreOverrides}},{key:"setVmRecoveryPointRestoreOverrides",value:function(e){this.vmRecoveryPointRestoreOverrides=e}},{key:"getVolumeGroupRecoveryPointRestoreOverrides",value:function(){return this.volumeGroupRecoveryPointRestoreOverrides}},{key:"setVolumeGroupRecoveryPointRestoreOverrides",value:function(e){this.volumeGroupRecoveryPointRestoreOverrides=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return iy(iy(iy(iy({},void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getVmRecoveryPointRestoreOverrides()&&null!==this.getVmRecoveryPointRestoreOverrides()?{vmRecoveryPointRestoreOverrides:this.getVmRecoveryPointRestoreOverrides().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getVolumeGroupRecoveryPointRestoreOverrides()&&null!==this.getVolumeGroupRecoveryPointRestoreOverrides()?{volumeGroupRecoveryPointRestoreOverrides:this.getVolumeGroupRecoveryPointRestoreOverrides().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new f("clusterExtId","undefined or null");if(!s.validatePattern(this.clusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("clusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("vmRecoveryPointRestoreOverrides"===t){if(void 0===this.vmRecoveryPointRestoreOverrides||null===this.vmRecoveryPointRestoreOverrides)return new f("vmRecoveryPointRestoreOverrides","undefined or null");if(!s.validateMaxItems(this.vmRecoveryPointRestoreOverrides,64))return new f("vmRecoveryPointRestoreOverrides","does not satisfy required maxItems constraint: 64");if(!s.validateMinItems(this.vmRecoveryPointRestoreOverrides,1))return new f("vmRecoveryPointRestoreOverrides","does not satisfy required minItems constraint: 1")}if("volumeGroupRecoveryPointRestoreOverrides"===t){if(void 0===this.volumeGroupRecoveryPointRestoreOverrides||null===this.volumeGroupRecoveryPointRestoreOverrides)return new f("volumeGroupRecoveryPointRestoreOverrides","undefined or null");if(!s.validateMaxItems(this.volumeGroupRecoveryPointRestoreOverrides,64))return new f("volumeGroupRecoveryPointRestoreOverrides","does not satisfy required maxItems constraint: 64");if(!s.validateMinItems(this.volumeGroupRecoveryPointRestoreOverrides,1))return new f("volumeGroupRecoveryPointRestoreOverrides","does not satisfy required minItems constraint: 1")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&uy(t.prototype,n),r&&uy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function dy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return py(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return py(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function py(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yy(e){return(yy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hy(Object(n),!0).forEach((function(t){by(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function by(e,t,n){return(t=gy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function my(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gy(r.key),r)}}function gy(e){var t=function(e,t){if("object"!==yy(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==yy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===yy(t)?t:String(t)}function wy(e,t){return(wy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Oy(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Py(e);if(t){var o=Py(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jy(this,n)}}function jy(e,t){if(t&&("object"===yy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $y(e)}function $y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Py(e){return(Py=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ky(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function Ty(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}fy.prototype.clusterExtId=void 0,fy.prototype.vmRecoveryPointRestoreOverrides=void 0,fy.prototype.volumeGroupRecoveryPointRestoreOverrides=void 0,fy.prototype.$reserved=void 0,fy.prototype.$objectType=void 0,fy.prototype.$unknownFields=void 0;var Sy=new WeakSet,Ey=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wy(e,t)}(a,e);var t,n,r,o=Oy(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),ky($y(e=o.call(this)),Sy),e.$objectType="dataprotection.v4.config.RecoveryPointRestoreApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.RecoveryPointRestoreApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:yy(e.data)){case"storage.v4.config.Task":t.setData(Si.constructFromObject(e.data,void 0));break;case"prism.v4.config.TaskReference":t.setData(mi.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=vy({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return vy(vy(vy({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Ty(this,Sy,Fy).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Ty(this,Sy,Fy).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&my(t.prototype,n),r&&my(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function Fy(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=dy(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===yy(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Ry(e){return(Ry="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ay(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Iy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ay(Object(n),!0).forEach((function(t){xy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ay(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xy(e,t,n){return(t=_y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_y(r.key),r)}}function _y(e){var t=function(e,t){if("object"!==Ry(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ry(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ry(t)?t:String(t)}function Cy(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Ey.prototype.metadata=void 0,Ey.prototype.data=void 0,Ey.prototype.$reserved=void 0,Ey.prototype.$objectType=void 0,Ey.prototype.$unknownFields=void 0;var Ny=new WeakSet,My=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Cy(this,Ny),this.expirationTime=t,this.$objectType="dataprotection.v4.config.SetExpirationTimeSpec",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.SetExpirationTimeSpec"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("expirationTime")&&null!==t.expirationTime&&void 0!==t.expirationTime&&n.setExpirationTime(t.expirationTime),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Iy({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getExpirationTime",value:function(){return this.expirationTime}},{key:"setExpirationTime",value:function(e){this.expirationTime=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Iy(Iy({},void 0!==this.getExpirationTime()&&null!==this.getExpirationTime()?{expirationTime:this.getExpirationTime()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["expirationTime"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"expirationTime"!==t||void 0!==this.expirationTime&&null!==this.expirationTime?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("expirationTime","undefined or null")}}])&&Dy(t.prototype,n),r&&Dy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Jy(e){return(Jy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vy(Object(n),!0).forEach((function(t){Gy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gy(e,t,n){return(t=Wy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ly(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wy(r.key),r)}}function Wy(e){var t=function(e,t){if("object"!==Jy(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Jy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Jy(t)?t:String(t)}function By(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}My.prototype.expirationTime=void 0,My.prototype.$reserved=void 0,My.prototype.$objectType=void 0,My.prototype.$unknownFields=void 0;var qy=new WeakSet,zy=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),By(this,qy),this.$objectType="dataprotection.v4.config.SiteReference",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.SiteReference"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("availabilityZoneReference")&&null!==t.availabilityZoneReference&&void 0!==t.availabilityZoneReference&&n.setAvailabilityZoneReference(t.availabilityZoneReference),t.hasOwnProperty("clusterReference")&&null!==t.clusterReference&&void 0!==t.clusterReference&&n.setClusterReference(t.clusterReference),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Uy({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getAvailabilityZoneReference",value:function(){return this.availabilityZoneReference}},{key:"setAvailabilityZoneReference",value:function(e){this.availabilityZoneReference=e}},{key:"getClusterReference",value:function(){return this.clusterReference}},{key:"setClusterReference",value:function(e){this.clusterReference=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Uy(Uy(Uy({},void 0!==this.getAvailabilityZoneReference()&&null!==this.getAvailabilityZoneReference()?{availabilityZoneReference:this.getAvailabilityZoneReference()}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("availabilityZoneReference"===t){if(void 0===this.availabilityZoneReference||null===this.availabilityZoneReference)return new f("availabilityZoneReference","undefined or null");if(!s.validatePattern(this.availabilityZoneReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("availabilityZoneReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("clusterReference"===t){if(void 0===this.clusterReference||null===this.clusterReference)return new f("clusterReference","undefined or null");if(!s.validatePattern(this.clusterReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("clusterReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&Ly(t.prototype,n),r&&Ly(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Hy(e){return(Hy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ky(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ky(Object(n),!0).forEach((function(t){Yy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ky(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yy(e,t,n){return(t=Qy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qy(r.key),r)}}function Qy(e){var t=function(e,t){if("object"!==Hy(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Hy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Hy(t)?t:String(t)}function eh(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}zy.prototype.availabilityZoneReference=void 0,zy.prototype.clusterReference=void 0,zy.prototype.$reserved=void 0,zy.prototype.$objectType=void 0,zy.prototype.$unknownFields=void 0;var th=new WeakSet,nh=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),eh(this,th),this.$objectType="dataprotection.v4.config.Subnet",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.Subnet"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("ipv4")&&null!==t.ipv4&&void 0!==t.ipv4&&n.setIpv4(Tr.constructFromObject(t.ipv4)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Zy({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getIpv4",value:function(){return this.ipv4}},{key:"setIpv4",value:function(e){this.ipv4=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Zy(Zy({},void 0!==this.getIpv4()&&null!==this.getIpv4()?{ipv4:this.getIpv4().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"ipv4"!==t||void 0!==this.ipv4&&null!==this.ipv4?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("ipv4","undefined or null")}}])&&Xy(t.prototype,n),r&&Xy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function rh(e){return(rh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ih(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oh(Object(n),!0).forEach((function(t){ah(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ah(e,t,n){return(t=sh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sh(r.key),r)}}function sh(e){var t=function(e,t){if("object"!==rh(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==rh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rh(t)?t:String(t)}function ch(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}nh.prototype.ipv4=void 0,nh.prototype.$reserved=void 0,nh.prototype.$objectType=void 0,nh.prototype.$unknownFields=void 0;var lh=new WeakSet,fh=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ch(this,lh),this.$objectType="dataprotection.v4.config.VolumeGroupSyncContext",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.VolumeGroupSyncContext"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("primarySite")&&null!==t.primarySite&&void 0!==t.primarySite&&n.setPrimarySite(zy.constructFromObject(t.primarySite)),t.hasOwnProperty("secondarySite")&&null!==t.secondarySite&&void 0!==t.secondarySite&&n.setSecondarySite(zy.constructFromObject(t.secondarySite)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ih({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getPrimarySite",value:function(){return this.primarySite}},{key:"setPrimarySite",value:function(e){this.primarySite=e}},{key:"getSecondarySite",value:function(){return this.secondarySite}},{key:"setSecondarySite",value:function(e){this.secondarySite=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ih(ih(ih({},void 0!==this.getPrimarySite()&&null!==this.getPrimarySite()?{primarySite:this.getPrimarySite().toJson(!1)}:{}),void 0!==this.getSecondarySite()&&null!==this.getSecondarySite()?{secondarySite:this.getSecondarySite().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"primarySite"!==t||void 0!==this.primarySite&&null!==this.primarySite?"secondarySite"!==t||void 0!==this.secondarySite&&null!==this.secondarySite?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("secondarySite","undefined or null"):new f("primarySite","undefined or null")}}])&&uh(t.prototype,n),r&&uh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function dh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ph(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ph(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ph(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yh(e){return(yh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hh(Object(n),!0).forEach((function(t){bh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bh(e,t,n){return(t=gh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gh(r.key),r)}}function gh(e){var t=function(e,t){if("object"!==yh(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==yh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===yh(t)?t:String(t)}function wh(e,t){return(wh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Oh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ph(e);if(t){var o=Ph(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jh(this,n)}}function jh(e,t){if(t&&("object"===yh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $h(e)}function $h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ph(e){return(Ph=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function kh(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function Th(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}fh.prototype.primarySite=void 0,fh.prototype.secondarySite=void 0,fh.prototype.$reserved=void 0,fh.prototype.$objectType=void 0,fh.prototype.$unknownFields=void 0;var Sh=new WeakSet,Eh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wh(e,t)}(a,e);var t,n,r,o=Oh(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),kh($h(e=o.call(this)),Sh),e.$objectType="dataprotection.v4.config.SyncedVolumeGroupByIdApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.SyncedVolumeGroupByIdApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:yh(e.data)){case"dataprotection.v4.config.VolumeGroupSyncContext":t.setData(fh.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=vh({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return vh(vh(vh({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Th(this,Sh,Fh).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Th(this,Sh,Fh).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&mh(t.prototype,n),r&&mh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function Fh(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=dh(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===yh(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Rh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ah(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ah(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ah(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ih(e){return(Ih="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xh(Object(n),!0).forEach((function(t){_h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _h(e,t,n){return(t=Nh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ch(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Nh(r.key),r)}}function Nh(e){var t=function(e,t){if("object"!==Ih(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ih(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ih(t)?t:String(t)}function Mh(e,t){return(Mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Jh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Gh(e);if(t){var o=Gh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vh(this,n)}}function Vh(e,t){if(t&&("object"===Ih(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Uh(e)}function Uh(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gh(e){return(Gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Lh(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function Wh(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}Eh.prototype.metadata=void 0,Eh.prototype.data=void 0,Eh.prototype.$reserved=void 0,Eh.prototype.$objectType=void 0,Eh.prototype.$unknownFields=void 0;var Bh=new WeakSet,qh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mh(e,t)}(a,e);var t,n,r,o=Jh(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Lh(Uh(e=o.call(this)),Bh),e.$objectType="dataprotection.v4.config.SynchronousReplicaPromoteApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.SynchronousReplicaPromoteApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ih(e.data)){case"prism.v4.config.TaskReference":t.setData(mi.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=Dh({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Dh(Dh(Dh({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Wh(this,Bh,zh).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Wh(this,Bh,zh).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Ch(t.prototype,n),r&&Ch(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function zh(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=Rh(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Ih(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Hh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Kh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kh(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zh(e){return(Zh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yh(Object(n),!0).forEach((function(t){Qh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qh(e,t,n){return(t=tv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ev(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tv(r.key),r)}}function tv(e){var t=function(e,t){if("object"!==Zh(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Zh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Zh(t)?t:String(t)}function nv(e,t){return(nv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function rv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=av(e);if(t){var o=av(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ov(this,n)}}function ov(e,t){if(t&&("object"===Zh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return iv(e)}function iv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function av(e){return(av=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function uv(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function sv(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}qh.prototype.metadata=void 0,qh.prototype.data=void 0,qh.prototype.$reserved=void 0,qh.prototype.$objectType=void 0,qh.prototype.$unknownFields=void 0;var cv=new WeakSet,lv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nv(e,t)}(a,e);var t,n,r,o=rv(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),uv(iv(e=o.call(this)),cv),e.$objectType="dataprotection.v4.config.UpdateRecoveryPointExpirationTimeApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.UpdateRecoveryPointExpirationTimeApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Zh(e.data)){case"prism.v4.config.TaskReference":t.setData(mi.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=Xh({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Xh(Xh(Xh({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):sv(this,cv,fv).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):sv(this,cv,fv).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&ev(t.prototype,n),r&&ev(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function fv(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=Hh(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Zh(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function dv(e){return(dv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pv(Object(n),!0).forEach((function(t){hv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hv(e,t,n){return(t=bv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bv(r.key),r)}}function bv(e){var t=function(e,t){if("object"!==dv(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==dv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===dv(t)?t:String(t)}function mv(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}lv.prototype.metadata=void 0,lv.prototype.data=void 0,lv.prototype.$reserved=void 0,lv.prototype.$objectType=void 0,lv.prototype.$unknownFields=void 0;var gv=new WeakSet,wv=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),mv(this,gv),this.$objectType="dataprotection.v4.config.Vm",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.Vm"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("vmExtId")&&null!==t.vmExtId&&void 0!==t.vmExtId&&n.setVmExtId(t.vmExtId),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("numVcpus")&&null!==t.numVcpus&&void 0!==t.numVcpus&&n.setNumVcpus(t.numVcpus),t.hasOwnProperty("coresPerVcpu")&&null!==t.coresPerVcpu&&void 0!==t.coresPerVcpu&&n.setCoresPerVcpu(t.coresPerVcpu),t.hasOwnProperty("vmNumThreadsPerCore")&&null!==t.vmNumThreadsPerCore&&void 0!==t.vmNumThreadsPerCore&&n.setVmNumThreadsPerCore(t.vmNumThreadsPerCore),t.hasOwnProperty("memorySizeBytes")&&null!==t.memorySizeBytes&&void 0!==t.memorySizeBytes&&n.setMemorySizeBytes(t.memorySizeBytes),t.hasOwnProperty("hypervisorType")&&null!==t.hypervisorType&&void 0!==t.hypervisorType&&n.setHypervisorType(Ol.constructFromObject(t.hypervisorType)),t.hasOwnProperty("powerState")&&null!==t.powerState&&void 0!==t.powerState&&n.setPowerState(Il.constructFromObject(t.powerState)),t.hasOwnProperty("hardwareArchitecture")&&null!==t.hardwareArchitecture&&void 0!==t.hardwareArchitecture&&n.setHardwareArchitecture(rl.constructFromObject(t.hardwareArchitecture)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=yv({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getVmExtId",value:function(){return this.vmExtId}},{key:"setVmExtId",value:function(e){this.vmExtId=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getNumVcpus",value:function(){return this.numVcpus}},{key:"setNumVcpus",value:function(e){this.numVcpus=e}},{key:"getCoresPerVcpu",value:function(){return this.coresPerVcpu}},{key:"setCoresPerVcpu",value:function(e){this.coresPerVcpu=e}},{key:"getVmNumThreadsPerCore",value:function(){return this.vmNumThreadsPerCore}},{key:"setVmNumThreadsPerCore",value:function(e){this.vmNumThreadsPerCore=e}},{key:"getMemorySizeBytes",value:function(){return this.memorySizeBytes}},{key:"setMemorySizeBytes",value:function(e){this.memorySizeBytes=e}},{key:"getHypervisorType",value:function(){return this.hypervisorType}},{key:"setHypervisorType",value:function(e){this.hypervisorType=e}},{key:"getPowerState",value:function(){return this.powerState}},{key:"setPowerState",value:function(e){this.powerState=e}},{key:"getHardwareArchitecture",value:function(){return this.hardwareArchitecture}},{key:"setHardwareArchitecture",value:function(e){this.hardwareArchitecture=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return yv(yv(yv(yv(yv(yv(yv(yv(yv(yv({},void 0!==this.getVmExtId()&&null!==this.getVmExtId()?{vmExtId:this.getVmExtId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getNumVcpus()&&null!==this.getNumVcpus()?{numVcpus:this.getNumVcpus()}:{}),void 0!==this.getCoresPerVcpu()&&null!==this.getCoresPerVcpu()?{coresPerVcpu:this.getCoresPerVcpu()}:{}),void 0!==this.getVmNumThreadsPerCore()&&null!==this.getVmNumThreadsPerCore()?{vmNumThreadsPerCore:this.getVmNumThreadsPerCore()}:{}),void 0!==this.getMemorySizeBytes()&&null!==this.getMemorySizeBytes()?{memorySizeBytes:this.getMemorySizeBytes()}:{}),void 0!==this.getHypervisorType()&&null!==this.getHypervisorType()?{hypervisorType:this.getHypervisorType()}:{}),void 0!==this.getPowerState()&&null!==this.getPowerState()?{powerState:this.getPowerState()}:{}),void 0!==this.getHardwareArchitecture()&&null!==this.getHardwareArchitecture()?{hardwareArchitecture:this.getHardwareArchitecture()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("vmExtId"===t){if(void 0===this.vmExtId||null===this.vmExtId)return new f("vmExtId","undefined or null");if(!s.validatePattern(this.vmExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("vmExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"name"!==t||void 0!==this.name&&null!==this.name?"numVcpus"!==t||void 0!==this.numVcpus&&null!==this.numVcpus?"coresPerVcpu"!==t||void 0!==this.coresPerVcpu&&null!==this.coresPerVcpu?"vmNumThreadsPerCore"!==t||void 0!==this.vmNumThreadsPerCore&&null!==this.vmNumThreadsPerCore?"memorySizeBytes"!==t||void 0!==this.memorySizeBytes&&null!==this.memorySizeBytes?"hypervisorType"!==t||void 0!==this.hypervisorType&&null!==this.hypervisorType?"powerState"!==t||void 0!==this.powerState&&null!==this.powerState?"hardwareArchitecture"!==t||void 0!==this.hardwareArchitecture&&null!==this.hardwareArchitecture?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("hardwareArchitecture","undefined or null"):new f("powerState","undefined or null"):new f("hypervisorType","undefined or null"):new f("memorySizeBytes","undefined or null"):new f("vmNumThreadsPerCore","undefined or null"):new f("coresPerVcpu","undefined or null"):new f("numVcpus","undefined or null"):new f("name","undefined or null")}}])&&vv(t.prototype,n),r&&vv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ov(e){return(Ov="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jv(Object(n),!0).forEach((function(t){Pv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pv(e,t,n){return(t=Tv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tv(r.key),r)}}function Tv(e){var t=function(e,t){if("object"!==Ov(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ov(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ov(t)?t:String(t)}function Sv(e,t){return(Sv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ev(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Av(e);if(t){var o=Av(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fv(this,n)}}function Fv(e,t){if(t&&("object"===Ov(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Rv(e)}function Rv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Av(e){return(Av=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Iv(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}wv.prototype.vmExtId=void 0,wv.prototype.name=void 0,wv.prototype.numVcpus=void 0,wv.prototype.coresPerVcpu=void 0,wv.prototype.vmNumThreadsPerCore=void 0,wv.prototype.memorySizeBytes=void 0,wv.prototype.hypervisorType=void 0,wv.prototype.powerState=void 0,wv.prototype.hardwareArchitecture=void 0,wv.prototype.$reserved=void 0,wv.prototype.$objectType=void 0,wv.prototype.$unknownFields=void 0;var xv=new WeakSet,Dv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sv(e,t)}(a,e);var t,n,r,o=Ev(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Iv(Rv(e=o.call(this)),xv),e.$objectType="dataprotection.v4.config.VMRecoveryPoint",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.VMRecoveryPoint"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new a,Qr.constructFromObject(e,t,!0),e.hasOwnProperty("consistencyGroupExtId")&&null!==e.consistencyGroupExtId&&void 0!==e.consistencyGroupExtId&&t.setConsistencyGroupExtId(e.consistencyGroupExtId),e.hasOwnProperty("vm")&&null!==e.vm&&void 0!==e.vm&&t.setVm(wv.constructFromObject(e.vm)),!n))for(var r in t.$unknownFields=$v({},e.$unknownFields),e)Object.keys(t).includes(r)||"$"===r[0]&&r.endsWith("ItemDiscriminator")||(t.$unknownFields[r]=e[r]);return t}}],(n=[{key:"getConsistencyGroupExtId",value:function(){return this.consistencyGroupExtId}},{key:"setConsistencyGroupExtId",value:function(e){this.consistencyGroupExtId=e}},{key:"getVm",value:function(){return this.vm}},{key:"setVm",value:function(e){this.vm=e}},{key:"toJson",value:function(e){return $v(!1===e?$v($v($v($v($v($v($v($v($v($v($v($v({},void 0!==this.getConsistencyGroupExtId()&&null!==this.getConsistencyGroupExtId()?{consistencyGroupExtId:this.getConsistencyGroupExtId()}:{}),void 0!==this.getVm()&&null!==this.getVm()?{vm:this.getVm().toJson(!1)}:{}),void 0!==this.getLocationAgnosticId()&&null!==this.getLocationAgnosticId()?{locationAgnosticId:this.getLocationAgnosticId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getExpirationTime()&&null!==this.getExpirationTime()?{expirationTime:this.getExpirationTime()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getRecoveryPointType()&&null!==this.getRecoveryPointType()?{recoveryPointType:this.getRecoveryPointType()}:{}),void 0!==this.getVendorSpecificProperties()&&null!==this.getVendorSpecificProperties()?{vendorSpecificProperties:this.getVendorSpecificProperties().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):$v($v($v($v($v($v($v({},void 0!==this.getConsistencyGroupExtId()&&null!==this.getConsistencyGroupExtId()?{consistencyGroupExtId:this.getConsistencyGroupExtId()}:{}),void 0!==this.getVm()&&null!==this.getVm()?{vm:this.getVm().toJson(!1)}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getExpirationTime()&&null!==this.getExpirationTime()?{expirationTime:this.getExpirationTime()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getRecoveryPointType()&&null!==this.getRecoveryPointType()?{recoveryPointType:this.getRecoveryPointType()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("consistencyGroupExtId"===t){if(void 0===this.consistencyGroupExtId||null===this.consistencyGroupExtId)return new f("consistencyGroupExtId","undefined or null");if(!s.validatePattern(this.consistencyGroupExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("consistencyGroupExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"vm"!==t||void 0!==this.vm&&null!==this.vm?new f(t,"no such property exists"):new f("vm","undefined or null")}}])&&kv(t.prototype,n),r&&kv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(Qr);function _v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Cv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cv(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nv(e){return(Nv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mv(Object(n),!0).forEach((function(t){Vv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vv(e,t,n){return(t=Gv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gv(r.key),r)}}function Gv(e){var t=function(e,t){if("object"!==Nv(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Nv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Nv(t)?t:String(t)}function Lv(e,t){return(Lv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Wv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zv(e);if(t){var o=zv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bv(this,n)}}function Bv(e,t){if(t&&("object"===Nv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qv(e)}function qv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zv(e){return(zv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Hv(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function Kv(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}Dv.prototype.consistencyGroupExtId=void 0,Dv.prototype.vm=void 0;var Zv=new WeakSet,Yv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lv(e,t)}(a,e);var t,n,r,o=Wv(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Hv(qv(e=o.call(this)),Zv),e.$objectType="dataprotection.v4.config.VMRecoveryPointApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.VMRecoveryPointApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Nv(e.data)){case"dataprotection.v4.config.VMRecoveryPoint":t.setData(Dv.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=Jv({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Jv(Jv(Jv({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Kv(this,Zv,Xv).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Kv(this,Zv,Xv).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Uv(t.prototype,n),r&&Uv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function Xv(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=_v(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Nv(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Qv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return eb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tb(e){return(tb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nb(Object(n),!0).forEach((function(t){ob(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ob(e,t,n){return(t=ab(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ib(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ab(r.key),r)}}function ab(e){var t=function(e,t){if("object"!==tb(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==tb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===tb(t)?t:String(t)}function ub(e,t){return(ub=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function sb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fb(e);if(t){var o=fb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cb(this,n)}}function cb(e,t){if(t&&("object"===tb(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return lb(e)}function lb(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fb(e){return(fb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function db(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function pb(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}Yv.prototype.metadata=void 0,Yv.prototype.data=void 0,Yv.prototype.$reserved=void 0,Yv.prototype.$objectType=void 0,Yv.prototype.$unknownFields=void 0;var yb=new WeakSet,hb=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ub(e,t)}(a,e);var t,n,r,o=sb(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),db(lb(e=o.call(this)),yb),e.$objectType="dataprotection.v4.config.VMRecoveryPointListApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.VMRecoveryPointListApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,u,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(i=[],u=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:tb(n[0]),o=0;o<n.length;o++)switch(u){case"dataprotection.v4.config.VMRecoveryPoint":r=Dv.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+u+" in data"}t.setData(i)}else switch(u=e.data.hasOwnProperty("$objectType")?e.data.$objectType:tb(e.data)){case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+u+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!s)for(var c in t.$unknownFields=rb({},e.$unknownFields),e)Object.keys(t).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(t.$unknownFields[c]=e[c])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return rb(rb(rb({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):pb(this,yb,vb).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):pb(this,yb,vb).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&ib(t.prototype,n),r&&ib(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function vb(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=Qv(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===tb(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}hb.prototype.metadata=void 0,hb.prototype.data=void 0,hb.prototype.$reserved=void 0,hb.prototype.$objectType=void 0,hb.prototype.$unknownFields=void 0;var bb={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(bb).find((function(t){return bb[t]===e}));return null==t?bb.$UNKNOWN:bb[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case bb.$UNKNOWN:case bb.$REDACTED:case bb.WARNING:case bb.ERROR:return;default:throw new Error("Invalid : must be ValidationSeverity.{ $UNKNOWN|$REDACTED|WARNING|ERROR }")}}};Object.freeze(bb);var mb=bb;function gb(e){return(gb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ob(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wb(Object(n),!0).forEach((function(t){jb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jb(e,t,n){return(t=Pb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pb(r.key),r)}}function Pb(e){var t=function(e,t){if("object"!==gb(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==gb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gb(t)?t:String(t)}function kb(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}var Tb=new WeakSet,Sb=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),kb(this,Tb),this.severity=t,this.$objectType="dataprotection.v4.config.ValidateRecoveryPointResult",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.ValidateRecoveryPointResult"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(mb.constructFromObject(t.severity)),t.hasOwnProperty("detail")&&null!==t.detail&&void 0!==t.detail&&n.setDetail(t.detail),t.hasOwnProperty("resolution")&&null!==t.resolution&&void 0!==t.resolution&&n.setResolution(t.resolution),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Ob({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getDetail",value:function(){return this.detail}},{key:"setDetail",value:function(e){this.detail=e}},{key:"getResolution",value:function(){return this.resolution}},{key:"setResolution",value:function(e){this.resolution=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ob(Ob(Ob(Ob({},void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getDetail()&&null!==this.getDetail()?{detail:this.getDetail()}:{}),void 0!==this.getResolution()&&null!==this.getResolution()?{resolution:this.getResolution()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["severity"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"severity"!==t||void 0!==this.severity&&null!==this.severity?"detail"!==t||void 0!==this.detail&&null!==this.detail?"resolution"!==t||void 0!==this.resolution&&null!==this.resolution?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("resolution","undefined or null"):new f("detail","undefined or null"):new f("severity","undefined or null")}}])&&$b(t.prototype,n),r&&$b(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Eb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Fb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rb(e){return(Rb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ab(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ib(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ab(Object(n),!0).forEach((function(t){xb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ab(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xb(e,t,n){return(t=_b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Db(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_b(r.key),r)}}function _b(e){var t=function(e,t){if("object"!==Rb(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Rb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Rb(t)?t:String(t)}function Cb(e,t){return(Cb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Nb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Vb(e);if(t){var o=Vb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mb(this,n)}}function Mb(e,t){if(t&&("object"===Rb(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Jb(e)}function Jb(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vb(e){return(Vb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ub(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function Gb(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}Sb.prototype.severity=void 0,Sb.prototype.detail=void 0,Sb.prototype.resolution=void 0,Sb.prototype.$reserved=void 0,Sb.prototype.$objectType=void 0,Sb.prototype.$unknownFields=void 0;var Lb=new WeakSet,Wb=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cb(e,t)}(a,e);var t,n,r,o=Nb(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Ub(Jb(e=o.call(this)),Lb),e.$objectType="dataprotection.v4.config.ValidateRestoreVmRecoveryPointApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.ValidateRestoreVmRecoveryPointApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,u,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(i=[],u=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Rb(n[0]),o=0;o<n.length;o++)switch(u){case"dataprotection.v4.config.ValidateRecoveryPointResult":r=Sb.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+u+" in data"}t.setData(i)}else switch(u=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Rb(e.data)){case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+u+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!s)for(var c in t.$unknownFields=Ib({},e.$unknownFields),e)Object.keys(t).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(t.$unknownFields[c]=e[c])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ib(Ib(Ib({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Gb(this,Lb,Bb).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Gb(this,Lb,Bb).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Db(t.prototype,n),r&&Db(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function Bb(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=Eb(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===Rb(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function qb(e){return(qb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zb(Object(n),!0).forEach((function(t){Kb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kb(e,t,n){return(t=Yb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yb(r.key),r)}}function Yb(e){var t=function(e,t){if("object"!==qb(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qb(t)?t:String(t)}function Xb(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Wb.prototype.metadata=void 0,Wb.prototype.data=void 0,Wb.prototype.$reserved=void 0,Wb.prototype.$objectType=void 0,Wb.prototype.$unknownFields=void 0;var Qb=new WeakSet,em=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Xb(this,Qb),this.$objectType="dataprotection.v4.config.VmRecoveryPointRestorationSpec",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.VmRecoveryPointRestorationSpec"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("ahvVmOverrideSpec")&&null!==t.ahvVmOverrideSpec&&void 0!==t.ahvVmOverrideSpec&&n.setAhvVmOverrideSpec(so.constructFromObject(t.ahvVmOverrideSpec)),t.hasOwnProperty("esxiVmOverrideSpec")&&null!==t.esxiVmOverrideSpec&&void 0!==t.esxiVmOverrideSpec&&n.setEsxiVmOverrideSpec(tl.constructFromObject(t.esxiVmOverrideSpec)),t.hasOwnProperty("clusterExtId")&&null!==t.clusterExtId&&void 0!==t.clusterExtId&&n.setClusterExtId(t.clusterExtId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Hb({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getAhvVmOverrideSpec",value:function(){return this.ahvVmOverrideSpec}},{key:"setAhvVmOverrideSpec",value:function(e){this.ahvVmOverrideSpec=e}},{key:"getEsxiVmOverrideSpec",value:function(){return this.esxiVmOverrideSpec}},{key:"setEsxiVmOverrideSpec",value:function(e){this.esxiVmOverrideSpec=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Hb(Hb(Hb(Hb({},void 0!==this.getAhvVmOverrideSpec()&&null!==this.getAhvVmOverrideSpec()?{ahvVmOverrideSpec:this.getAhvVmOverrideSpec().toJson(!1)}:{}),void 0!==this.getEsxiVmOverrideSpec()&&null!==this.getEsxiVmOverrideSpec()?{esxiVmOverrideSpec:this.getEsxiVmOverrideSpec().toJson(!1)}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("ahvVmOverrideSpec"===t&&(void 0===this.ahvVmOverrideSpec||null===this.ahvVmOverrideSpec))return new f("ahvVmOverrideSpec","undefined or null");if("esxiVmOverrideSpec"===t&&(void 0===this.esxiVmOverrideSpec||null===this.esxiVmOverrideSpec))return new f("esxiVmOverrideSpec","undefined or null");if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new f("clusterExtId","undefined or null");if(!s.validatePattern(this.clusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("clusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&Zb(t.prototype,n),r&&Zb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function tm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return nm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nm(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rm(e){return(rm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function om(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function im(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?om(Object(n),!0).forEach((function(t){am(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):om(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function am(e,t,n){return(t=sm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function um(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sm(r.key),r)}}function sm(e){var t=function(e,t){if("object"!==rm(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==rm(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rm(t)?t:String(t)}function cm(e,t){return(cm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function lm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pm(e);if(t){var o=pm(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fm(this,n)}}function fm(e,t){if(t&&("object"===rm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return dm(e)}function dm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pm(e){return(pm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ym(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function hm(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}em.prototype.ahvVmOverrideSpec=void 0,em.prototype.esxiVmOverrideSpec=void 0,em.prototype.clusterExtId=void 0,em.prototype.$reserved=void 0,em.prototype.$objectType=void 0,em.prototype.$unknownFields=void 0;var vm=new WeakSet,bm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cm(e,t)}(a,e);var t,n,r,o=lm(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),ym(dm(e=o.call(this)),vm),e.$objectType="dataprotection.v4.config.VmRecoveryPointRestoreApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.VmRecoveryPointRestoreApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:rm(e.data)){case"storage.v4.config.Task":t.setData(Si.constructFromObject(e.data,void 0));break;case"prism.v4.config.TaskReference":t.setData(mi.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=im({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return im(im(im({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):hm(this,vm,mm).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):hm(this,vm,mm).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&um(t.prototype,n),r&&um(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function mm(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=tm(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===rm(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function gm(e){return(gm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Om(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wm(Object(n),!0).forEach((function(t){jm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jm(e,t,n){return(t=Pm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pm(r.key),r)}}function Pm(e){var t=function(e,t){if("object"!==gm(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==gm(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gm(t)?t:String(t)}function km(e,t){return(km=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Tm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Em(e);if(t){var o=Em(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Sm(this,n)}}function Sm(e,t){if(t&&("object"===gm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Em(e){return(Em=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}bm.prototype.metadata=void 0,bm.prototype.data=void 0,bm.prototype.$reserved=void 0,bm.prototype.$objectType=void 0,bm.prototype.$unknownFields=void 0;var Fm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&km(e,t)}(a,e);var t,n,r,o=Tm(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(e=o.call(this)).$objectType="dataprotection.v4.config.VmSubRecoveryPointProjection",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.VmSubRecoveryPointProjection"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new a,Sa.constructFromObject(e,t,!0),!n))for(var r in t.$unknownFields=Om({},e.$unknownFields),e)Object.keys(t).includes(r)||"$"===r[0]&&r.endsWith("ItemDiscriminator")||(t.$unknownFields[r]=e[r]);return t}}],(n=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return new f(t,"no such property exists")}}])&&$m(t.prototype,n),r&&$m(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(Sa);function Rm(e){return(Rm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Am(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Im(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Am(Object(n),!0).forEach((function(t){xm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Am(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xm(e,t,n){return(t=_m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_m(r.key),r)}}function _m(e){var t=function(e,t){if("object"!==Rm(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Rm(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Rm(t)?t:String(t)}function Cm(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}var Nm=new WeakSet,Mm=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Cm(this,Nm),this.$objectType="dataprotection.v4.config.VolumeGroup",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.VolumeGroup"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("volumeGroupExtId")&&null!==t.volumeGroupExtId&&void 0!==t.volumeGroupExtId&&n.setVolumeGroupExtId(t.volumeGroupExtId),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Im({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getVolumeGroupExtId",value:function(){return this.volumeGroupExtId}},{key:"setVolumeGroupExtId",value:function(e){this.volumeGroupExtId=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Im(Im(Im({},void 0!==this.getVolumeGroupExtId()&&null!==this.getVolumeGroupExtId()?{volumeGroupExtId:this.getVolumeGroupExtId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("volumeGroupExtId"===t){if(void 0===this.volumeGroupExtId||null===this.volumeGroupExtId)return new f("volumeGroupExtId","undefined or null");if(!s.validatePattern(this.volumeGroupExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("volumeGroupExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"name"!==t||void 0!==this.name&&null!==this.name?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("name","undefined or null")}}])&&Dm(t.prototype,n),r&&Dm(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Jm(e){return(Jm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Um(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vm(Object(n),!0).forEach((function(t){Gm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gm(e,t,n){return(t=Wm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wm(r.key),r)}}function Wm(e){var t=function(e,t){if("object"!==Jm(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Jm(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Jm(t)?t:String(t)}function Bm(e,t){return(Bm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function qm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Km(e);if(t){var o=Km(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zm(this,n)}}function zm(e,t){if(t&&("object"===Jm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Hm(e)}function Hm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Km(e){return(Km=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Zm(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}Mm.prototype.volumeGroupExtId=void 0,Mm.prototype.name=void 0,Mm.prototype.$reserved=void 0,Mm.prototype.$objectType=void 0,Mm.prototype.$unknownFields=void 0;var Ym=new WeakSet,Xm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bm(e,t)}(a,e);var t,n,r,o=qm(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Zm(Hm(e=o.call(this)),Ym),e.$objectType="dataprotection.v4.config.VolumeGroupRecoveryPoint",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.VolumeGroupRecoveryPoint"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new a,Qr.constructFromObject(e,t,!0),e.hasOwnProperty("consistencyGroupExtId")&&null!==e.consistencyGroupExtId&&void 0!==e.consistencyGroupExtId&&t.setConsistencyGroupExtId(e.consistencyGroupExtId),e.hasOwnProperty("volumeGroup")&&null!==e.volumeGroup&&void 0!==e.volumeGroup&&t.setVolumeGroup(Mm.constructFromObject(e.volumeGroup)),!n))for(var r in t.$unknownFields=Um({},e.$unknownFields),e)Object.keys(t).includes(r)||"$"===r[0]&&r.endsWith("ItemDiscriminator")||(t.$unknownFields[r]=e[r]);return t}}],(n=[{key:"getConsistencyGroupExtId",value:function(){return this.consistencyGroupExtId}},{key:"setConsistencyGroupExtId",value:function(e){this.consistencyGroupExtId=e}},{key:"getVolumeGroup",value:function(){return this.volumeGroup}},{key:"setVolumeGroup",value:function(e){this.volumeGroup=e}},{key:"toJson",value:function(e){return Um(!1===e?Um(Um(Um(Um(Um(Um(Um(Um(Um(Um(Um(Um({},void 0!==this.getConsistencyGroupExtId()&&null!==this.getConsistencyGroupExtId()?{consistencyGroupExtId:this.getConsistencyGroupExtId()}:{}),void 0!==this.getVolumeGroup()&&null!==this.getVolumeGroup()?{volumeGroup:this.getVolumeGroup().toJson(!1)}:{}),void 0!==this.getLocationAgnosticId()&&null!==this.getLocationAgnosticId()?{locationAgnosticId:this.getLocationAgnosticId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getExpirationTime()&&null!==this.getExpirationTime()?{expirationTime:this.getExpirationTime()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getRecoveryPointType()&&null!==this.getRecoveryPointType()?{recoveryPointType:this.getRecoveryPointType()}:{}),void 0!==this.getVendorSpecificProperties()&&null!==this.getVendorSpecificProperties()?{vendorSpecificProperties:this.getVendorSpecificProperties().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Um(Um(Um(Um(Um(Um(Um({},void 0!==this.getConsistencyGroupExtId()&&null!==this.getConsistencyGroupExtId()?{consistencyGroupExtId:this.getConsistencyGroupExtId()}:{}),void 0!==this.getVolumeGroup()&&null!==this.getVolumeGroup()?{volumeGroup:this.getVolumeGroup().toJson(!1)}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getExpirationTime()&&null!==this.getExpirationTime()?{expirationTime:this.getExpirationTime()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getRecoveryPointType()&&null!==this.getRecoveryPointType()?{recoveryPointType:this.getRecoveryPointType()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("consistencyGroupExtId"===t){if(void 0===this.consistencyGroupExtId||null===this.consistencyGroupExtId)return new f("consistencyGroupExtId","undefined or null");if(!s.validatePattern(this.consistencyGroupExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("consistencyGroupExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"volumeGroup"!==t||void 0!==this.volumeGroup&&null!==this.volumeGroup?new f(t,"no such property exists"):new f("volumeGroup","undefined or null")}}])&&Lm(t.prototype,n),r&&Lm(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(Qr);function Qm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return eg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tg(e){return(tg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ng(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ng(Object(n),!0).forEach((function(t){og(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ng(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function og(e,t,n){return(t=ag(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ig(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ag(r.key),r)}}function ag(e){var t=function(e,t){if("object"!==tg(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==tg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===tg(t)?t:String(t)}function ug(e,t){return(ug=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function sg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fg(e);if(t){var o=fg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cg(this,n)}}function cg(e,t){if(t&&("object"===tg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return lg(e)}function lg(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fg(e){return(fg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function dg(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function pg(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}Xm.prototype.consistencyGroupExtId=void 0,Xm.prototype.volumeGroup=void 0;var yg=new WeakSet,hg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ug(e,t)}(a,e);var t,n,r,o=sg(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),dg(lg(e=o.call(this)),yg),e.$objectType="dataprotection.v4.config.VolumeGroupRecoveryPointApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.VolumeGroupRecoveryPointApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:tg(e.data)){case"dataprotection.v4.config.VolumeGroupRecoveryPoint":t.setData(Xm.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=rg({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return rg(rg(rg({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):pg(this,yg,vg).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):pg(this,yg,vg).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&ig(t.prototype,n),r&&ig(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function vg(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=Qm(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===tg(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function bg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return mg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gg(e){return(gg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Og(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wg(Object(n),!0).forEach((function(t){jg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jg(e,t,n){return(t=Pg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pg(r.key),r)}}function Pg(e){var t=function(e,t){if("object"!==gg(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==gg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gg(t)?t:String(t)}function kg(e,t){return(kg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Tg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fg(e);if(t){var o=Fg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Sg(this,n)}}function Sg(e,t){if(t&&("object"===gg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Eg(e)}function Eg(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fg(e){return(Fg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Rg(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function Ag(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}hg.prototype.metadata=void 0,hg.prototype.data=void 0,hg.prototype.$reserved=void 0,hg.prototype.$objectType=void 0,hg.prototype.$unknownFields=void 0;var Ig=new WeakSet,xg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kg(e,t)}(a,e);var t,n,r,o=Tg(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Rg(Eg(e=o.call(this)),Ig),e.$objectType="dataprotection.v4.config.VolumeGroupRecoveryPointListApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.VolumeGroupRecoveryPointListApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,u,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(i=[],u=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:gg(n[0]),o=0;o<n.length;o++)switch(u){case"dataprotection.v4.config.VolumeGroupRecoveryPoint":r=Xm.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+u+" in data"}t.setData(i)}else switch(u=e.data.hasOwnProperty("$objectType")?e.data.$objectType:gg(e.data)){case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+u+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!s)for(var c in t.$unknownFields=Og({},e.$unknownFields),e)Object.keys(t).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(t.$unknownFields[c]=e[c])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Og(Og(Og({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Ag(this,Ig,Dg).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Ag(this,Ig,Dg).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&$g(t.prototype,n),r&&$g(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function Dg(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=bg(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===gg(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function _g(e){return(_g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ng(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cg(Object(n),!0).forEach((function(t){Mg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mg(e,t,n){return(t=Vg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vg(r.key),r)}}function Vg(e){var t=function(e,t){if("object"!==_g(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_g(t)?t:String(t)}function Ug(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}xg.prototype.metadata=void 0,xg.prototype.data=void 0,xg.prototype.$reserved=void 0,xg.prototype.$objectType=void 0,xg.prototype.$unknownFields=void 0;var Gg=new WeakSet,Lg=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ug(this,Gg),this.$objectType="dataprotection.v4.config.VolumeGroupRecoveryPointRestorationSpec",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.VolumeGroupRecoveryPointRestorationSpec"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("clusterExtId")&&null!==t.clusterExtId&&void 0!==t.clusterExtId&&n.setClusterExtId(t.clusterExtId),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Ng({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ng(Ng(Ng({},void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new f("clusterExtId","undefined or null");if(!s.validatePattern(this.clusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("clusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("name"===t){if(void 0===this.name||null===this.name)return new f("name","undefined or null");if(!s.validateMaxLength(this.name,256))return new f("name","does not satisfy required maxLength constraint: 256")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&Jg(t.prototype,n),r&&Jg(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Wg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Bg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qg(e){return(qg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zg(Object(n),!0).forEach((function(t){Kg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kg(e,t,n){return(t=Yg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yg(r.key),r)}}function Yg(e){var t=function(e,t){if("object"!==qg(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qg(t)?t:String(t)}function Xg(e,t){return(Xg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Qg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nw(e);if(t){var o=nw(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ew(this,n)}}function ew(e,t){if(t&&("object"===qg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tw(e)}function tw(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nw(e){return(nw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rw(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function ow(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}Lg.prototype.clusterExtId=void 0,Lg.prototype.name=void 0,Lg.prototype.$reserved=void 0,Lg.prototype.$objectType=void 0,Lg.prototype.$unknownFields=void 0;var iw=new WeakSet,aw=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xg(e,t)}(a,e);var t,n,r,o=Qg(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),rw(tw(e=o.call(this)),iw),e.$objectType="dataprotection.v4.config.VolumeGroupRecoveryPointRestoreApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.VolumeGroupRecoveryPointRestoreApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:qg(e.data)){case"storage.v4.config.Task":t.setData(Si.constructFromObject(e.data,void 0));break;case"prism.v4.config.TaskReference":t.setData(mi.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=Hg({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Hg(Hg(Hg({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ow(this,iw,uw).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):ow(this,iw,uw).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Zg(t.prototype,n),r&&Zg(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function uw(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=Wg(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===qg(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function sw(e){return(sw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cw(Object(n),!0).forEach((function(t){fw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fw(e,t,n){return(t=pw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pw(r.key),r)}}function pw(e){var t=function(e,t){if("object"!==sw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==sw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sw(t)?t:String(t)}function yw(e,t){return(yw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function hw(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bw(e);if(t){var o=bw(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vw(this,n)}}function vw(e,t){if(t&&("object"===sw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function bw(e){return(bw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}aw.prototype.metadata=void 0,aw.prototype.data=void 0,aw.prototype.$reserved=void 0,aw.prototype.$objectType=void 0,aw.prototype.$unknownFields=void 0;var mw=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yw(e,t)}(a,e);var t,n,r,o=hw(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(e=o.call(this)).$objectType="dataprotection.v4.config.VolumeGroupSubRecoveryPointProjection",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.VolumeGroupSubRecoveryPointProjection"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new a,Ca.constructFromObject(e,t,!0),!n))for(var r in t.$unknownFields=lw({},e.$unknownFields),e)Object.keys(t).includes(r)||"$"===r[0]&&r.endsWith("ItemDiscriminator")||(t.$unknownFields[r]=e[r]);return t}}],(n=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return new f(t,"no such property exists")}}])&&dw(t.prototype,n),r&&dw(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(Ca);function gw(e){return(gw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ww(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ow(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ww(Object(n),!0).forEach((function(t){jw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ww(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jw(e,t,n){return(t=Pw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pw(r.key),r)}}function Pw(e){var t=function(e,t){if("object"!==gw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==gw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gw(t)?t:String(t)}function kw(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}var Tw=new WeakSet,Sw=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),kw(this,Tw),this.extId=t,this.$objectType="dataprotection.v4.config.VpcReference",this.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.VpcReference"},this.$unknownFields={}}var t,n,r;return t=e,r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Ow({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}}],(n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ow(!1===e?Ow(Ow({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}):Ow({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=["extId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new f("extId","undefined or null");if(!s.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new f("extId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"name"!==t||void 0!==this.name&&null!==this.name?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("name","undefined or null")}}])&&$w(t.prototype,n),r&&$w(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();Sw.prototype.extId=void 0,Sw.prototype.name=void 0,Sw.prototype.$reserved=void 0,Sw.prototype.$objectType=void 0,Sw.prototype.$unknownFields=void 0;var Ew={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Ew).find((function(t){return Ew[t]===e}));return null==t?Ew.$UNKNOWN:Ew[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ew.$UNKNOWN:case Ew.$REDACTED:case Ew.AVAILABLE:case Ew.UNAVAILABLE:return;default:throw new Error("Invalid : must be WitnessAvailabilityStatus.{ $UNKNOWN|$REDACTED|AVAILABLE|UNAVAILABLE }")}}};Object.freeze(Ew);var Fw=Ew;function Rw(e){return(Rw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Aw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Iw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Aw(Object(n),!0).forEach((function(t){xw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Aw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xw(e,t,n){return(t=_w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_w(r.key),r)}}function _w(e){var t=function(e,t){if("object"!==Rw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Rw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Rw(t)?t:String(t)}function Cw(e,t){return(Cw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Nw(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Vw(e);if(t){var o=Vw(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mw(this,n)}}function Mw(e,t){if(t&&("object"===Rw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Jw(e)}function Jw(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vw(e){return(Vw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Uw(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}var Gw=new WeakSet,Lw=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cw(e,t)}(a,e);var t,n,r,o=Nw(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Uw(Jw(e=o.call(this)),Gw),e.$objectType="dataprotection.v4.config.Witness",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.Witness"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r,o,i,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,L.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("hostReferences")&&null!==e.hostReferences&&void 0!==e.hostReferences){for(i=[],n=e.hostReferences,o=0;o<n.length;o++)r=gl.constructFromObject(n[o],void 0),i.push(r);t.setHostReferences(i)}if(e.hasOwnProperty("ipAddresses")&&null!==e.ipAddresses&&void 0!==e.ipAddresses){for(i=[],n=e.ipAddresses,o=0;o<n.length;o++)i.push(n[o]);t.setIpAddresses(i)}if(e.hasOwnProperty("status")&&null!==e.status&&void 0!==e.status&&t.setStatus(Fw.constructFromObject(e.status)),!u)for(var s in t.$unknownFields=Iw({},e.$unknownFields),e)Object.keys(t).includes(s)||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(t.$unknownFields[s]=e[s])}return t}}],(n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getHostReferences",value:function(){return this.hostReferences}},{key:"setHostReferences",value:function(e){this.hostReferences=e}},{key:"getIpAddresses",value:function(){return this.ipAddresses}},{key:"setIpAddresses",value:function(e){this.ipAddresses=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"toJson",value:function(e){return Iw(!1===e?Iw(Iw(Iw(Iw(Iw(Iw(Iw({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getHostReferences()&&null!==this.getHostReferences()?{hostReferences:this.getHostReferences().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getIpAddresses()&&null!==this.getIpAddresses()?{ipAddresses:this.getIpAddresses()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Iw(Iw(Iw(Iw(Iw({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getHostReferences()&&null!==this.getHostReferences()?{hostReferences:this.getHostReferences().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getIpAddresses()&&null!==this.getIpAddresses()?{ipAddresses:this.getIpAddresses()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"hostReferences"!==t||void 0!==this.hostReferences&&null!==this.hostReferences?"ipAddresses"!==t||void 0!==this.ipAddresses&&null!==this.ipAddresses?"status"!==t||void 0!==this.status&&null!==this.status?new f(t,"no such property exists"):new f("status","undefined or null"):new f("ipAddresses","undefined or null"):new f("hostReferences","undefined or null"):new f("name","undefined or null")}}])&&Dw(t.prototype,n),r&&Dw(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(L);function Ww(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Bw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bw(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qw(e){return(qw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zw(Object(n),!0).forEach((function(t){Kw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kw(e,t,n){return(t=Yw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yw(r.key),r)}}function Yw(e){var t=function(e,t){if("object"!==qw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qw(t)?t:String(t)}function Xw(e,t){return(Xw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Qw(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nO(e);if(t){var o=nO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return eO(this,n)}}function eO(e,t){if(t&&("object"===qw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tO(e)}function tO(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nO(e){return(nO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rO(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function oO(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}Lw.prototype.name=void 0,Lw.prototype.hostReferences=void 0,Lw.prototype.ipAddresses=void 0,Lw.prototype.status=void 0;var iO=new WeakSet,aO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xw(e,t)}(a,e);var t,n,r,o=Qw(a);function a(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),rO(tO(e=o.call(this)),iO),e.$objectType="dataprotection.v4.config.WitnessApiResponse",e.$reserved={$fqObjectType:"dataprotection.v4.r0.a4.config.WitnessApiResponse"},e.$unknownFields={},e}return t=a,r=[{key:"constructFromObject",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new a,e.hasOwnProperty("metadata")&&on.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(nt.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:qw(e.data)){case"dataprotection.v4.config.Witness":t.setData(Lw.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":t.setData(nn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!r)for(var o in t.$unknownFields=Hw({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return t}}],(n=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Hw(Hw(Hw({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):oO(this,iO,uO).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):oO(this,iO,uO).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],a=null;return r.forEach((function(t){(a=n.validateProperty(t,e))&&o.push(a)})),new Promise((function(e,t){0!==o.length?t(a):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Zw(t.prototype,n),r&&Zw(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(on.a);function uO(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=Ww(e,2),r=n[0],o=n[1];return[r,void 0!==o.toJson?o.toJson(t):o]}))):"object"===qw(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}aO.prototype.metadata=void 0,aO.prototype.data=void 0,aO.prototype.$reserved=void 0,aO.prototype.$objectType=void 0,aO.prototype.$unknownFields=void 0;t.default={ApiClient:r.a,ConsistencyGroupApi:br,Flag:$e,IPv4Address:Tr,KVPair:_e,Message:ze,MessageSeverity:Me,TenantAwareModel:F,ApiLink:w,ApiResponseMetadata:nt,ExternalizableAbstractModel:L,BaseRecoveryPoint:Qr,RecoveryPointStatus:Er,RecoveryPointType:Rr,VendorSpecificProperty:Jr,AhvVmOverrideSpec:so,Category:mo,ChangedRegions:Co,ChangedRegionsListApiResponse:Qo,ClusterReference:ci,ConsistencyGroup:ye,ConsistencyGroupApiResponse:or,ConsistencyGroupListApiResponse:jn,ConsistencyGroupMember:ee,ConsistencyGroupMemberType:B,ConsistencyGroupMigrateApiResponse:Wi,ConsistencyGroupMigrationSpec:ea,ConsistencyGroupProjection:pt,ConsistencyGroupRecoveryPointSpec:ca,CreateConsistencyGroupRecoveryPointApiResponse:pu,CreateRecoveryPointApiResponse:Au,DataProtectionInfo:ys,DataProtectionSiteReference:Uu,DeleteConsistencyGroupApiResponse:Vn,DeleteRecoveryPointApiResponse:As,DisasterRecoveryLocation:Us,Disk:Zs,DiskRecoveryPoint:lc,DiskRecoveryPointApiResponse:Sc,DiskRecoveryPointListApiResponse:Bc,EsxiVmOverrideSpec:tl,HardwareArchitecture:rl,HostReference:gl,HostType:il,HypervisorType:Ol,IpAddress:Rl,LocationReference:ma,PowerState:Il,ProtectedResource:af,ProtectedResourceApiResponse:$f,ProtectedResourceEntityType:Dl,ProtectedResourcePromoteApiResponse:Uf,ProtectedResourceReplicationStatus:Cl,ProtectedResourceRestoreApiResponse:id,ProtectedResourceRestoreSpec:hd,RecoveryInfo:is,RecoveryPoint:Za,RecoveryPointApiResponse:Id,RecoveryPointListApiResponse:Zd,RecoveryPointReplicateApiResponse:yp,RecoveryPointReplicationSpec:Fp,RecoveryPointRestorationSpec:fy,RecoveryPointRestoreApiResponse:Ey,Regions:So,ReplicationState:Bl,RestorableTimeRange:Zu,SetExpirationTimeSpec:My,SiteReference:zy,Subnet:nh,SyncedVolumeGroupByIdApiResponse:Eh,SynchronousReplicaPromoteApiResponse:qh,UpdateRecoveryPointExpirationTimeApiResponse:lv,VMRecoveryPoint:Dv,VMRecoveryPointApiResponse:Yv,VMRecoveryPointListApiResponse:hb,ValidateRecoveryPointResult:Sb,ValidateRestoreVmRecoveryPointApiResponse:Wb,ValidationSeverity:mb,Vm:wv,VmRecoveryPointRestorationSpec:em,VmRecoveryPointRestoreApiResponse:bm,VmRecoveryPointRestoreOverride:Mp,VmSubRecoveryPoint:Sa,VmSubRecoveryPointProjection:Fm,VolumeGroup:Mm,VolumeGroupOverrideSpec:zp,VolumeGroupRecoveryPoint:Xm,VolumeGroupRecoveryPointApiResponse:hg,VolumeGroupRecoveryPointListApiResponse:xg,VolumeGroupRecoveryPointRestorationSpec:Lg,VolumeGroupRecoveryPointRestoreApiResponse:aw,VolumeGroupRecoveryPointRestoreOverride:ny,VolumeGroupSubRecoveryPoint:Ca,VolumeGroupSubRecoveryPointProjection:mw,VolumeGroupSyncContext:fh,VpcReference:Sw,Witness:Lw,WitnessApiResponse:aO,WitnessAvailabilityStatus:Fw,AppMessage:kt,ErrorResponse:nn,SchemaValidationError:Wt,SchemaValidationErrorMessage:_t,TaskReference:mi,Task:Si}},function(e,t,n){"use strict";var r,o=new Uint8Array(16);function i(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var u=function(e){return"string"==typeof e&&a.test(e)},s=[],c=0;c<256;++c)s.push((c+256).toString(16).substr(1));var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!u(n))throw TypeError("Stringified UUID is invalid");return n};t.a=function(e,t,n){var r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return l(r)}}]).default}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Ntnx=t():(e.Ntnx=e.Ntnx||{},e.Ntnx.Dataprotection=t())}("undefined"==typeof self?this:self,(()=>(()=>{var e={960:e=>{function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},340:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=s,s.default=s,s.stable=f,s.stableStringify=f;var n="[...]",r="[Circular]",o=[],i=[];function a(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(e,t,n,r){var s;void 0===r&&(r=a()),c(e,"",0,[],void 0,0,r);try{s=0===i.length?JSON.stringify(e,t,n):JSON.stringify(e,d(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var u=o.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return s}function u(e,t,n,r){var a=Object.getOwnPropertyDescriptor(r,n);void 0!==a.get?a.configurable?(Object.defineProperty(r,n,{value:e}),o.push([r,n,t,a])):i.push([t,n,e]):(r[n]=e,o.push([r,n,t]))}function c(e,o,i,a,s,l,f){var p;if(l+=1,"object"===t(e)&&null!==e){for(p=0;p<a.length;p++)if(a[p]===e)return void u(r,e,o,s);if(void 0!==f.depthLimit&&l>f.depthLimit)return void u(n,e,o,s);if(void 0!==f.edgesLimit&&i+1>f.edgesLimit)return void u(n,e,o,s);if(a.push(e),Array.isArray(e))for(p=0;p<e.length;p++)c(e[p],p,p,a,e,l,f);else{var d=Object.keys(e);for(p=0;p<d.length;p++){var y=d[p];c(e[y],y,p,a,e,l,f)}}a.pop()}}function l(e,t){return e<t?-1:e>t?1:0}function f(e,t,n,r){void 0===r&&(r=a());var s,u=p(e,"",0,[],void 0,0,r)||e;try{s=0===i.length?JSON.stringify(u,t,n):JSON.stringify(u,d(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var c=o.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return s}function p(e,i,a,s,c,f,d){var y;if(f+=1,"object"===t(e)&&null!==e){for(y=0;y<s.length;y++)if(s[y]===e)return void u(r,e,i,c);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==d.depthLimit&&f>d.depthLimit)return void u(n,e,i,c);if(void 0!==d.edgesLimit&&a+1>d.edgesLimit)return void u(n,e,i,c);if(s.push(e),Array.isArray(e))for(y=0;y<e.length;y++)p(e[y],y,y,s,e,f,d);else{var v={},h=Object.keys(e).sort(l);for(y=0;y<h.length;y++){var b=h[y];p(e[b],b,y,s,e,f,d),v[b]=e[b]}if(void 0===c)return v;o.push([c,i,e]),c[i]=v}s.pop()}}function d(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(i.length>0)for(var r=0;r<i.length;r++){var o=i[r];if(o[1]===t&&o[0]===n){n=o[2],i.splice(r,1);break}}return e.call(this,t,n)}}},784:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o="win32"===process.platform,i=n(818);function a(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];o&&"."!==o&&(".."===o?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(o))}return n}function s(e){for(var t=e.length-1,n=0;n<=t&&!e[n];n++);for(var r=t;r>=0&&!e[r];r--);return 0===n&&r===t?e:n>r?[]:e.slice(n,r+1)}var u=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,c=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,l={};function f(e){var t=u.exec(e),n=(t[1]||"")+(t[2]||""),r=t[3]||"",o=c.exec(r);return[n,o[1],o[2],o[3]]}function p(e){var t=u.exec(e),n=t[1]||"",r=!!n&&":"!==n[1];return{device:n,isUnc:r,isAbsolute:r||!!t[2],tail:t[3]}}function d(e){return"\\\\"+e.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}l.resolve=function(){for(var e="",t="",n=!1,r=arguments.length-1;r>=-1;r--){var o;if(r>=0?o=arguments[r]:e?(o=process.env["="+e])&&o.substr(0,3).toLowerCase()===e.toLowerCase()+"\\"||(o=e+"\\"):o=process.cwd(),!i.isString(o))throw new TypeError("Arguments to path.resolve must be strings");if(o){var s=p(o),u=s.device,c=s.isUnc,l=s.isAbsolute,f=s.tail;if((!u||!e||u.toLowerCase()===e.toLowerCase())&&(e||(e=u),n||(t=f+"\\"+t,n=l),e&&n))break}}return c&&(e=d(e)),e+(n?"\\":"")+(t=a(t.split(/[\\\/]+/),!n).join("\\"))||"."},l.normalize=function(e){var t=p(e),n=t.device,r=t.isUnc,o=t.isAbsolute,i=t.tail,s=/[\\\/]$/.test(i);return(i=a(i.split(/[\\\/]+/),!o).join("\\"))||o||(i="."),i&&s&&(i+="\\"),r&&(n=d(n)),n+(o?"\\":"")+i},l.isAbsolute=function(e){return p(e).isAbsolute},l.join=function(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(!i.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&e.push(n)}var r=e.join("\\");return/^[\\\/]{2}[^\\\/]/.test(e[0])||(r=r.replace(/^[\\\/]{2,}/,"\\")),l.normalize(r)},l.relative=function(e,t){e=l.resolve(e),t=l.resolve(t);for(var n=e.toLowerCase(),r=t.toLowerCase(),o=s(t.split("\\")),i=s(n.split("\\")),a=s(r.split("\\")),u=Math.min(i.length,a.length),c=u,f=0;f<u;f++)if(i[f]!==a[f]){c=f;break}if(0==c)return t;var p=[];for(f=c;f<i.length;f++)p.push("..");return(p=p.concat(o.slice(c))).join("\\")},l._makeLong=function(e){if(!i.isString(e))return e;if(!e)return"";var t=l.resolve(e);return/^[a-zA-Z]\:\\/.test(t)?"\\\\?\\"+t:/^\\\\[^?.]/.test(t)?"\\\\?\\UNC\\"+t.substring(2):e},l.dirname=function(e){var t=f(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},l.basename=function(e,t){var n=f(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},l.extname=function(e){return f(e)[3]},l.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+r(e.root));var n=e.dir,o=e.base||"";return n?n[n.length-1]===l.sep?n+o:n+l.sep+o:o},l.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+r(e));var t=f(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},l.sep="\\",l.delimiter=";";var y=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,v={};function h(e){return y.exec(e).slice(1)}v.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:process.cwd();if(!i.isString(r))throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r[0])}return(t?"/":"")+(e=a(e.split("/"),!t).join("/"))||"."},v.normalize=function(e){var t=v.isAbsolute(e),n=e&&"/"===e[e.length-1];return(e=a(e.split("/"),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},v.isAbsolute=function(e){return"/"===e.charAt(0)},v.join=function(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];if(!i.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&(e+=e?"/"+n:n)}return v.normalize(e)},v.relative=function(e,t){e=v.resolve(e).substr(1),t=v.resolve(t).substr(1);for(var n=s(e.split("/")),r=s(t.split("/")),o=Math.min(n.length,r.length),i=o,a=0;a<o;a++)if(n[a]!==r[a]){i=a;break}var u=[];for(a=i;a<n.length;a++)u.push("..");return(u=u.concat(r.slice(i))).join("/")},v._makeLong=function(e){return e},v.dirname=function(e){var t=h(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},v.basename=function(e,t){var n=h(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},v.extname=function(e){return h(e)[3]},v.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+r(e.root));return(e.dir?e.dir+v.sep:"")+(e.base||"")},v.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+r(e));var t=h(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return t[1]=t[1]||"",t[2]=t[2]||"",t[3]=t[3]||"",{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},v.sep="/",v.delimiter=":",e.exports=o?l:v,e.exports.posix=v,e.exports.win32=l},540:e=>{function t(e,t){if(this._maxRetries&&this._retries++<this._maxRetries&&function(e,t,n,r){if(r)return r(e,t);if(e&&e.code&&~["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT","ENOTFOUND","ECONNREFUSED"].indexOf(e.code))return!0;if(t&&t.status){var o=t.status;if(o>=500)return!0;if((o>=400||o<200)&&-1===n.indexOf(o))return!0}return!(!e||!("timeout"in e)||"ECONNABORTED"!==e.code)||e&&"crossDomain"in e}(e,t,this._allowedStatuses,this._retryCallback)){var n;n=this._retries?this._retryDelays[this._retries-1]:0;var r=this;return setTimeout((function(){return r._retry()}),n)}var o=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),o(e,t)}function n(e,t,n,r){0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),"number"==typeof t&&(t=[t]);var o=t.length,i=e-o;if(0!==i){if(i<0)throw new Error("Cannot have more delays than retries");for(var a=t[o-1],s=0;s<i+1;s++)t.push(a)}return this._maxRetries=e,this._retries=0,this._retryDelays=t||[0],this._allowedStatuses=n||[],this._retryCallback=r,this}e.exports=function(e){var r=e.Request;return r.prototype.oldRetry=r.prototype.retry,r.prototype.retry=n,r.prototype.callback=t,e}},619:e=>{"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(e){n.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this}})),n.prototype._setDefaults=function(e){this._defaults.forEach((function(n){var r;e[n.fn].apply(e,function(e){if(Array.isArray(e))return t(e)}(r=n.args)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}))},e.exports=n},585:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o;"undefined"!=typeof window?o=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),o=void 0):o=self;var i=n(960),a=n(340),s=n(695),u=n(388),c=n(19),l=n(619);function f(){}e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};var p=t=e.exports;t.Request=g,p.getXHR=function(){if(o.XMLHttpRequest&&(!o.location||"file:"!==o.location.protocol||!o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var d="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function y(e){if(!u(e))return e;var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&v(t,n,e[n]);return t.join("&")}function v(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach((function(n){v(e,t,n)}));else if(u(n))for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&v(e,"".concat(t,"[").concat(r,"]"),n[r]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function h(e){for(var t,n,r={},o=e.split("&"),i=0,a=o.length;i<a;++i)-1===(n=(t=o[i]).indexOf("="))?r[decodeURIComponent(t)]="":r[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return r}function b(e){return/[/+]json($|[^-\w])/.test(e)}function m(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,n,r,o,i=e.split(/\r?\n/),a={},s=0,u=i.length;s<u;++s)-1!==(t=(n=i[s]).indexOf(":"))&&(r=n.slice(0,t).toLowerCase(),o=d(n.slice(t+1)),a[r]=o);return a}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function g(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(function(){var e,t=null,r=null;try{r=new m(n)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",r);try{n._isResponseOK(r)||(e=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=r,e.status=r.status,n.callback(e,r)):n.callback(null,r)}))}function w(e,t,n){var r=p("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}p.serializeObject=y,p.parseString=h,p.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},p.serialize={"application/x-www-form-urlencoded":y,"application/json":a},p.parse={"application/x-www-form-urlencoded":h,"application/json":JSON.parse},c(m.prototype),m.prototype._parseBody=function(e){var t=p.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&b(this.type)&&(t=p.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},m.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),o=new Error(r);return o.status=this.status,o.method=t,o.url=n,o},p.Response=m,i(g.prototype),s(g.prototype),g.prototype.type=function(e){return this.set("Content-Type",p.types[e]||e),this},g.prototype.accept=function(e){return this.set("Accept",p.types[e]||e),this},g.prototype.auth=function(e,t,n){return 1===arguments.length&&(t=""),"object"===r(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"}),this._auth(e,t,n,(function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")}))},g.prototype.query=function(e){return"string"!=typeof e&&(e=y(e)),e&&this._query.push(e),this},g.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},g.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},g.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},g.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},g.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},g.prototype.ca=g.prototype.agent,g.prototype.buffer=g.prototype.ca,g.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},g.prototype.pipe=g.prototype.write,g.prototype._isHost=function(e){return e&&"object"===r(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},g.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||f,this._finalizeQueryString(),this._end()},g.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},g.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=p.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||p.serialize[o?o.split(";")[0]:""];!i&&b(o)&&(i=p.serialize["application/json"]),i&&(n=i(n))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&t.setRequestHeader(a,this.header[a]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},p.agent=function(){return new l},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){l.prototype[e.toLowerCase()]=function(t,n){var r=new p.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}})),l.prototype.del=l.prototype.delete,p.get=function(e,t,n){var r=p("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.head=function(e,t,n){var r=p("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.options=function(e,t,n){var r=p("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.del=w,p.delete=w,p.patch=function(e,t,n){var r=p("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.post=function(e,t,n){var r=p("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.put=function(e,t,n){var r=p("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},388:e=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return null!==e&&"object"===t(e)}},695:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(388);function i(e){if(e)return function(e){for(var t in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,t)&&(e[t]=i.prototype[t]);return e}(e)}e.exports=i,i.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},i.prototype.parse=function(e){return this._parser=e,this},i.prototype.responseType=function(e){return this._responseType=e,this},i.prototype.serialize=function(e){return this._serializer=e,this},i.prototype.timeout=function(e){if(!e||"object"!==r(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},i.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var a=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];i.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!==t.status)return!0;if(e){if(e.code&&a.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},i.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){r.on("abort",(function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}})),r.end((function(n,r){n?t(n):e(r)}))}))}return this._fullfilledPromise.then(e,t)},i.prototype.catch=function(e){return this.then(void 0,e)},i.prototype.use=function(e){return e(this),this},i.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},i.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},i.prototype.get=function(e){return this._header[e.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(e,t){if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},i.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},i.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(e,t[r]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},i.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},i.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},i.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},i.prototype.redirects=function(e){return this._maxRedirects=e,this},i.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(e){var t=o(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&o(this._data))for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._data[r]=e[r]);else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},i.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},i.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},i.prototype._appendQueryString=function(){console.warn("Unsupported")},i.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},i.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},19:(e,t,n)=>{"use strict";var r=n(897);function o(e){if(e)return function(e){for(var t in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,t)&&(e[t]=o.prototype[t]);return e}(e)}e.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(this[o]=n[o]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},897:(e,t)=>{"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce((function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e}),{})},t.parseLinks=function(e){return e.split(/ *, */).reduce((function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,e}),{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},597:e=>{"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},98:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return e&&"object"===t(e)&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},818:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),u=r[n];n<i;u=r[++n])v(u)||!w(u)?a+=" "+u:a+=" "+s(u);return a},t.deprecate=function(e,r){if(m(n.g.process))return function(){return t.deprecate(e,r).apply(this,arguments)};if(!0===process.noDeprecation)return e;var o=!1;return function(){if(!o){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),o=!0}return e.apply(this,arguments)}};var i,a={};function s(e,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),m(r.showHidden)&&(r.showHidden=!1),m(r.depth)&&(r.depth=2),m(r.colors)&&(r.colors=!1),m(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),l(r,e,r.depth)}function u(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function c(e,t){return e}function l(e,n,r){if(e.customInspect&&n&&k(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return b(o)||(o=l(e,o,r)),o}var i=function(e,t){if(m(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return h(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}(e,n);if(i)return i;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),j(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(k(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(g(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return e.stylize(Date.prototype.toString.call(n),"date");if(j(n))return f(n)}var c,w="",$=!1,P=["{","}"];return d(n)&&($=!0,P=["[","]"]),k(n)&&(w=" [Function"+(n.name?": "+n.name:"")+"]"),g(n)&&(w=" "+RegExp.prototype.toString.call(n)),O(n)&&(w=" "+Date.prototype.toUTCString.call(n)),j(n)&&(w=" "+f(n)),0!==a.length||$&&0!=n.length?r<0?g(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=$?function(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)E(t,String(a))?i.push(p(e,t,n,r,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(p(e,t,n,r,o,!0))})),i}(e,n,r,s,a):a.map((function(t){return p(e,n,r,s,t,$)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,w,P)):P[0]+w+P[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,o,i){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),E(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(u.value)<0?(s=v(n)?l(e,u.value,null):l(e,u.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),m(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function d(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function v(e){return null===e}function h(e){return"number"==typeof e}function b(e){return"string"==typeof e}function m(e){return void 0===e}function g(e){return w(e)&&"[object RegExp]"===$(e)}function w(e){return"object"===r(e)&&null!==e}function O(e){return w(e)&&"[object Date]"===$(e)}function j(e){return w(e)&&("[object Error]"===$(e)||e instanceof Error)}function k(e){return"function"==typeof e}function $(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(m(i)&&(i=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var n=process.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=function(){};return a[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=y,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=h,t.isString=b,t.isSymbol=function(e){return"symbol"===r(e)},t.isUndefined=m,t.isRegExp=g,t.isObject=w,t.isDate=O,t.isError=j,t.isFunction=k,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===r(e)||void 0===e},t.isBuffer=n(98);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[P((e=new Date).getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":"),[e.getDate(),T[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(597),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}},548:()=>{},799:()=>{},545:()=>{},965:()=>{}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{"use strict";n.d(r,{default:()=>lm});var e=n(585),t=n.n(e);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}var u,c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,n=[{key:"getFirstPage",value:function(){return this.isFirstPage()?Promise.reject("Cannot navigate to first page : already on first page"):null===this.linkFirst?Promise.reject("No link to first page provided in previous API response"):this._getLink(this.linkFirst)}},{key:"getPrevPage",value:function(){return this.isFirstPage()?Promise.reject("Cannot navigate to previous page : already on first page"):null===this.linkPrev?Promise.reject("No link to previous page provided in previous API response"):this._getLink(this.linkPrev)}},{key:"getNextPage",value:function(){return this.isLastPage()?Promise.reject("Cannot navigate to next page : already on last page"):null===this.linkNext?Promise.reject("No link to next page provided in previous API response"):this._getLink(this.linkNext)}},{key:"getLastPage",value:function(){return this.isLastPage()?Promise.reject("Cannot navigate to last page : already on last page"):null===this.linkLast?Promise.reject("No link to last page provided in previous API response"):this._getLink(this.linkLast)}},{key:"currentPage",value:function(){return null===this.page?0:this.page}},{key:"countPages",value:function(){return null===this.resultsPerPage||null===this.resultsTotal||0===this.resultsPerPage?1:Math.ceil(this.resultsTotal/this.resultsPerPage)}},{key:"isFirstPage",value:function(){return 0===this.currentPage()}},{key:"isLastPage",value:function(){return this.currentPage()===this.countPages()-1}},{key:"populatePaginationMetadata",value:function(e,t,n){this.apiClient=e,this.page=t,this.resultsPerPage=n}},{key:"_getLink",value:function(e){null===this.apiClient&&(this.apiClient=ct.instance);var t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}],r=[{key:"constructFromObject",value:function(t,n){if(t){if(n=n||new e,t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){var r,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(t.links);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a.hasOwnProperty("rel")&&a.hasOwnProperty("href"))switch(a.rel){case"first":n.linkFirst=a.href;break;case"prev":n.linkPrev=a.href;break;case"next":n.linkNext=a.href;break;case"last":n.linkLast=a.href}}}catch(e){o.e(e)}finally{o.f()}}t.hasOwnProperty("totalAvailableResults")&&(n.resultsTotal=t.totalAvailableResults)}return n}}],n&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();c.prototype.linkFirst=null,c.prototype.linkPrev=null,c.prototype.linkNext=null,c.prototype.linkLast=null,c.prototype.apiClient=null,c.prototype.page=null,c.prototype.resultsPerPage=null,c.prototype.resultsTotal=null;var l=new Uint8Array(16);function f(){if(!u&&!(u="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return u(l)}const p=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var d=[],y=0;y<256;++y)d.push((y+256).toString(16).substr(1));const v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(d[e[t+0]]+d[e[t+1]]+d[e[t+2]]+d[e[t+3]]+"-"+d[e[t+4]]+d[e[t+5]]+"-"+d[e[t+6]]+d[e[t+7]]+"-"+d[e[t+8]]+d[e[t+9]]+"-"+d[e[t+10]]+d[e[t+11]]+d[e[t+12]]+d[e[t+13]]+d[e[t+14]]+d[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&p.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},h=function(e,t,n){var r=(e=e||{}).random||(e.rng||f)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return v(r)};var b=n(540),m=n.n(b),g=n(545),w=n.n(g),O=n(799),j=n.n(O),k=n(784),$=n.n(k),P=n(548),T={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return T[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e){if(e===T.DEFAULT)return;throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(T);const E=T;function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,R(r.key),r)}}function R(e){var t=function(e){if("object"!=F(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=F(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==F(t)?t:t+""}var I=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"validateMaximum",value:function(e,t){return!(null===t||e>t)}},{key:"validateMinimum",value:function(e,t){return!(null===t||e<t)}},{key:"validateExclusiveMaximum",value:function(e,t){return!(null===t||e>t)}},{key:"validateExclusiveMinimum",value:function(e,t){return!(null===t||e>t)}},{key:"validateMultipleOf",value:function(e,t){return!(null===t||e%t==0)}},{key:"validateMaxLength",value:function(e,t){return!(null===t||e.length>t)}},{key:"validateMinLength",value:function(e,t){return!(null===t||e.length<t)}},{key:"validatePattern",value:function(e,t){return!(null===t||null===e.match(t))}},{key:"validateMaxItems",value:function(e,t){return!(null===t||e.length>t)}},{key:"validateMinItems",value:function(e,t){return!(null===t||e.length<t)}},{key:"validateUniqueItems",value:function(e,t){return!(null===t||!t||e.length!==new Set(e).size)}}],null&&S(e.prototype,null),t&&S(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,D(r.key),r)}}function D(e){var t=function(e){if("object"!=x(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==x(t)?t:t+""}var C=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.message=n},(t=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"toJson",value:function(){return{name:this.getName(),message:this.getMessage()}}}])&&A(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e,t,n){return(t=G(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,G(r.key),r)}}function G(e){var t=function(e){if("object"!=_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_(t)?t:t+""}var L=new WeakSet,V=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,L),this.$objectType="common.v1.config.Flag",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return J(J(J({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new C("name","undefined or null");if(!I.validateMaxLength(this.name,128))return new C("name","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.name,3))return new C("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("value","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=J({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&U(t.prototype,n),r&&U(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function W(e){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W(e)}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t,n){return(t=Z(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Z(r.key),r)}}function Z(e){var t=function(e){if("object"!=W(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=W(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==W(t)?t:t+""}function X(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}V.prototype.name=void 0,V.prototype.value=!1,V.prototype.$reserved=void 0,V.prototype.$objectType=void 0,V.prototype.$unknownFields=void 0;var Y=new WeakSet,Q=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Y),this.$objectType="common.v1.config.MapOfStringWrapper",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getMap",value:function(){return this.map}},{key:"setMap",value:function(e){this.map=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return q(q({},!1===e?void 0!==this.getMap()&&null!==this.getMap()?{map:X(Y,this,ee).call(this,this.getMap(),!1)}:{}:void 0!==this.getMap()&&null!==this.getMap()?{map:X(Y,this,ee).call(this,this.getMap())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"map"!==t||void 0!==this.map&&null!==this.map?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("map","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("map")&&null!==t.map&&void 0!==t.map&&n.setMap(t.map),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=q({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&H(t.prototype,n),r&&H(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ee(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===W(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ne(e){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(e)}function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ie(e,t,n){return(t=se(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,se(r.key),r)}}function se(e){var t=function(e){if("object"!=ne(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ne(t)?t:t+""}function ue(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Q.prototype.map=void 0,Q.prototype.$reserved=void 0,Q.prototype.$objectType=void 0,Q.prototype.$unknownFields=void 0;var ce=new WeakSet,le=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,ce),this.$objectType="common.v1.config.KVPair",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return oe(oe(oe({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),!1===e?void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson(!1):Array.isArray(this.getValue())?this.getValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ue(ce,this,fe).call(this,this.getValue(),!1)}:{}:void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):ue(ce,this,fe).call(this,this.getValue())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new C("name","undefined or null");if(!I.validateMaxLength(this.name,128))return new C("name","does not satisfy required maxLength constraint: 128");if(!I.validateMinLength(this.name,3))return new C("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("value","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&s.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value)if(Array.isArray(t.value))if(0===t.value.length)s.setValue([]);else{for(i=[],a=(n=t.value)[0].hasOwnProperty("$objectType")?n[0].$objectType:ne(n[0]),o=0;o<n.length;o++)switch(a){case"string":case"integer":case"number":i.push(n[o]);break;case"common.v1.config.MapOfStringWrapper":r=Q.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+a+" in data"}s.setValue(i)}else switch(a=t.value.hasOwnProperty("$objectType")?t.value.$objectType:ne(t.value)){case"string":case"boolean":case"number":s.setValue(t.value);break;case"object":s.setValue(new Map(Object.entries(t.value)));break;default:throw"Unknown datatype "+a+" in data"}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!u)for(var c in s.$unknownFields=oe({},t.$unknownFields),t)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=t[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&ae(t.prototype,n),r&&ae(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function fe(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===ne(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}le.prototype.name=void 0,le.prototype.value=void 0,le.prototype.$reserved=void 0,le.prototype.$objectType=void 0,le.prototype.$unknownFields=void 0;var pe={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(pe).find((function(t){return pe[t]===e}));return null==t?pe.$UNKNOWN:pe[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case pe.$UNKNOWN:case pe.$REDACTED:case pe.INFO:case pe.WARNING:case pe.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(pe);const de=pe;function ye(e){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ye(e)}function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function he(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(n),!0).forEach((function(t){be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function be(e,t,n){return(t=ge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ge(r.key),r)}}function ge(e){var t=function(e){if("object"!=ye(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ye(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ye(t)?t:t+""}var we=new WeakSet,Oe=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,we),this.$objectType="common.v1.config.Message",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return he(he(he(he(he({},void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"code"!==t||void 0!==this.code&&null!==this.code?"message"!==t||void 0!==this.message&&null!==this.message?"locale"!==t||void 0!==this.locale&&null!==this.locale?"severity"!==t||void 0!==this.severity&&null!==this.severity?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("severity","undefined or null"):new C("locale","undefined or null"):new C("message","undefined or null"):new C("code","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(de.constructFromObject(t.severity)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=he({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&me(t.prototype,n),r&&me(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function je(e){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(e)}function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){Pe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pe(e,t,n){return(t=Ee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ee(r.key),r)}}function Ee(e){var t=function(e){if("object"!=je(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=je(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==je(t)?t:t+""}Oe.prototype.code=void 0,Oe.prototype.message=void 0,Oe.prototype.locale="en_US",Oe.prototype.severity=void 0,Oe.prototype.$reserved=void 0,Oe.prototype.$objectType=void 0,Oe.prototype.$unknownFields=void 0;var Fe=new WeakSet,Se=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Fe),this.$objectType="common.v1.response.ApiLink",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getHref",value:function(){return this.href}},{key:"setHref",value:function(e){this.href=e}},{key:"getRel",value:function(){return this.rel}},{key:"setRel",value:function(e){this.rel=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return $e($e($e({},void 0!==this.getHref()&&null!==this.getHref()?{href:this.getHref()}:{}),void 0!==this.getRel()&&null!==this.getRel()?{rel:this.getRel()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"href"!==t||void 0!==this.href&&null!==this.href?"rel"!==t||void 0!==this.rel&&null!==this.rel?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("rel","undefined or null"):new C("href","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("href")&&null!==t.href&&void 0!==t.href&&n.setHref(t.href),t.hasOwnProperty("rel")&&null!==t.rel&&void 0!==t.rel&&n.setRel(t.rel),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=$e({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Te(t.prototype,n),r&&Te(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Re(e){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(e)}function Ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(n),!0).forEach((function(t){Ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ae(e,t,n){return(t=Ce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function De(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ce(r.key),r)}}function Ce(e){var t=function(e){if("object"!=Re(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Re(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Re(t)?t:t+""}Se.prototype.href=void 0,Se.prototype.rel=void 0,Se.prototype.$reserved=void 0,Se.prototype.$objectType=void 0,Se.prototype.$unknownFields=void 0;var _e,Ne=new WeakSet,Je=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Ne),this.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getFlags",value:function(){return this.flags}},{key:"setFlags",value:function(e){this.flags=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"getTotalAvailableResults",value:function(){return this.totalAvailableResults}},{key:"setTotalAvailableResults",value:function(e){this.totalAvailableResults=e}},{key:"getMessages",value:function(){return this.messages}},{key:"setMessages",value:function(e){this.messages=e}},{key:"getExtraInfo",value:function(){return this.extraInfo}},{key:"setExtraInfo",value:function(e){this.extraInfo=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return xe(xe(xe(xe(xe(xe({},void 0!==this.getFlags()&&null!==this.getFlags()?{flags:this.getFlags().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTotalAvailableResults()&&null!==this.getTotalAvailableResults()?{totalAvailableResults:this.getTotalAvailableResults()}:{}),void 0!==this.getMessages()&&null!==this.getMessages()?{messages:this.getMessages().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtraInfo()&&null!==this.getExtraInfo()?{extraInfo:this.getExtraInfo().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("flags"===t){if(void 0===this.flags||null===this.flags)return new C("flags","undefined or null");if(!I.validateMaxItems(this.flags,20))return new C("flags","does not satisfy required maxItems constraint: 20")}if("links"===t){if(void 0===this.links||null===this.links)return new C("links","undefined or null");if(!I.validateMaxItems(this.links,20))return new C("links","does not satisfy required maxItems constraint: 20")}if("totalAvailableResults"===t&&(void 0===this.totalAvailableResults||null===this.totalAvailableResults))return new C("totalAvailableResults","undefined or null");if("messages"===t){if(void 0===this.messages||null===this.messages)return new C("messages","undefined or null");if(!I.validateMaxItems(this.messages,20))return new C("messages","does not satisfy required maxItems constraint: 20")}if("extraInfo"===t){if(void 0===this.extraInfo||null===this.extraInfo)return new C("extraInfo","undefined or null");if(!I.validateMaxItems(this.extraInfo,20))return new C("extraInfo","does not satisfy required maxItems constraint: 20")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("flags")&&null!==t.flags&&void 0!==t.flags){for(i=[],n=t.flags,o=0;o<n.length;o++)r=V.constructFromObject(n[o],void 0),i.push(r);a.setFlags(i)}if(t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){for(i=[],n=t.links,o=0;o<n.length;o++)r=Se.constructFromObject(n[o],void 0),i.push(r);a.setLinks(i)}if(t.hasOwnProperty("totalAvailableResults")&&null!==t.totalAvailableResults&&void 0!==t.totalAvailableResults&&a.setTotalAvailableResults(t.totalAvailableResults),t.hasOwnProperty("messages")&&null!==t.messages&&void 0!==t.messages){for(i=[],n=t.messages,o=0;o<n.length;o++)r=Oe.constructFromObject(n[o],void 0),i.push(r);a.setMessages(i)}if(t.hasOwnProperty("extraInfo")&&null!==t.extraInfo&&void 0!==t.extraInfo){for(i=[],n=t.extraInfo,o=0;o<n.length;o++)r=le.constructFromObject(n[o],void 0),i.push(r);a.setExtraInfo(i)}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=xe({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&De(t.prototype,n),r&&De(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Me(){Me=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var i=RegExp(e,r);return t.set(i,o||t.get(e)),Ue(i,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;t[n]=e[o[i]]}return t}),Object.create(null))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ue(e,t)}(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var i=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=We(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},Me.apply(this,arguments)}function Ue(e,t){return Ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ue(e,t)}function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach((function(t){Ve(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ve(e,t,n){return(t=Ke(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function We(e){return We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},We(e)}function Be(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ze(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ze(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ke(r.key),r)}}function Ke(e){var t=function(e){if("object"!=We(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=We(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==We(t)?t:t+""}function He(e,t,n){Ze(e,t),t.set(e,n)}function Ze(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xe(e,t){return e.get(Qe(e,t))}function Ye(e,t,n){return e.set(Qe(e,t),n),n}function Qe(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Je.prototype.flags=void 0,Je.prototype.links=void 0,Je.prototype.totalAvailableResults=void 0,Je.prototype.messages=void 0,Je.prototype.extraInfo=void 0,Je.prototype.$reserved=void 0,Je.prototype.$objectType=void 0,Je.prototype.$unknownFields=void 0,m()(t());var et=new WeakMap,tt=new WeakMap,nt=new WeakMap,rt=new WeakMap,ot=new WeakMap,it=new WeakMap,at=new WeakMap,st=new WeakMap,ut=new WeakSet,ct=function(){function e(){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ze(this,n=ut),n.add(this),He(this,et,void 0),He(this,tt,void 0),He(this,nt,void 0),He(this,rt,void 0),He(this,ot,void 0),He(this,it,void 0),He(this,at,void 0),He(this,st,void 0),Ye(st,this,Object.freeze({DEBUG:{key:"DEBUG",value:Symbol(0)},INFO:{key:"INFO",value:Symbol(1)},WARN:{key:"WARN",value:Symbol(2)},ERROR:{key:"ERROR",value:Symbol(3)}})),this.scheme="https",this.host="undefined"==typeof self?"localhost":self.location.hostname,this.port="undefined"==typeof self?"9440":self.location.port,this.authentications={apiKeyAuthScheme:{type:"apiKey",in:"header",name:"X-ntnx-api-key"},basicAuthScheme:{type:"basic"}},this.defaultHeaders={},Ye(ot,this,3e4),Ye(it,this,3e4),Ye(at,this,108e5),this.readTimeout=Xe(it,this),this.connectTimeout=Xe(ot,this),this.cache=!0,Ye(tt,this,null),this.maxRedirects=1,this.maxRetryAttempts=5,this.retryInterval=3e3,"undefined"==typeof self&&(this.agent=new(t().agent)),this.requestAgent=null,this.debug=!1,Ye(nt,this,null),this.username=null,this.password=null,Ye(rt,this,!0),this.downloadDestination=null,this.loggerFile=null}return r=e,o=[{key:"verifySsl",get:function(){return Xe(rt,this)},set:function(e){this.requestAgent=e?null:new(w().Agent)({rejectUnauthorized:!1}),Ye(rt,this,e)}},{key:"loggerFile",set:function(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=j().createWriteStream(e,{flags:"a"})),Ye(nt,this,new console.Console({stdout:e,stderr:e})))}},{key:"addDefaultHeader",value:function(e,t){"Authorization"===e&&Ye(tt,this,null),this.defaultHeaders[e]=t}},{key:"paramToString",value:function(e){return null==e||null==e?"":e instanceof Date?e.toJSON():e.toString()}},{key:"buildUrl",value:function(e,t){var n=this;e.match(/^\//)||(e="/"+e),Ye(et,this,"undefined"==typeof self?this.scheme+":":self.location.protocol);var r="";""!==Xe(et,this)&&""!==this.host&&""!==this.port?r=Xe(et,this)+"//"+this.host+":"+this.port:"undefined"!=typeof self&&(r=self.origin);var o=r+e;return o.replace(/\{([\w-]+)\}/g,(function(e,r){var o;return o=t.hasOwnProperty(r)?n.paramToString(t[r]):e,encodeURIComponent(o)}))}},{key:"buildCollectionParam",value:function(e,t){if(null==e)return null;switch(t){case"csv":return e.map(this.paramToString).join(",");case"ssv":return e.map(this.paramToString).join(" ");case"tsv":return e.map(this.paramToString).join("\t");case"pipes":return e.map(this.paramToString).join("|");case"multi":return e.map(this.paramToString);default:throw new Error("Unknown collection format: "+t)}}},{key:"setApiKey",value:function(e){this.authentications.apiKeyAuthScheme.apiKey=null==e||"string"==typeof e||e instanceof String?e:void 0}},{key:"addEtagToReservedMap",value:function(e,t){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("etag")){var n=e.headers.etag;if(void 0!==t.getData())if(Array.isArray(t.getData())&&t.getData().length>0){var r,o=Be(t.getData());try{for(o.s();!(r=o.n()).done;){var i=r.value;i.hasOwnProperty("$reserved")&&void 0!==i.get$Reserved()&&(i.get$Reserved().ETag=n)}}catch(e){o.e(e)}finally{o.f()}}else t.getData().hasOwnProperty("$reserved")&&void 0!==t.getData().get$Reserved()&&(t.getData().get$Reserved().ETag=n)}return t}},{key:"callApi",value:function(e,r,o,i,a,s,u,c,l,f,p){var d=this,y=this.buildUrl(e,o),v=t()(r,y);if(v.oldCallback=v.callback,v.callback=function(e,t){if(t&&t.status){var n=t.status;if(n>=400&&401!==n&&408!==n&&429!==n&&503!==n&&504!==n&&(this._maxRetries=0),401===t.status&&(this.unset("Cookie"),this._maxRetries=1),429===n){var r=t.headers["retry-after"];if(r){var o=1e3*parseInt(r,10);this._retryDelays[this._retries]=o}}}this.oldCallback(e,t)},Qe(ut,this,yt).call(this,v,c),"GET"===r.toUpperCase()&&!1===this.cache&&(i._=(new Date).getTime()),v.query(Qe(ut,this,dt).call(this,i)),v.set(this.defaultHeaders).set(Qe(ut,this,dt).call(this,a)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==a["NTNX-Request-Id"]&&void 0!==a["NTNX-Request-Id"])){var b=h();v.set(Qe(ut,this,dt).call(this,{"NTNX-Request-Id":b}))}var m="undefined"!=typeof window&&void 0!==window.document;m||(this.downloadDestination=".",v.set(Qe(ut,this,dt).call(this,{"User-Agent":"Nutanix-dataprotection-js-client/4.0.1"}))),this.requestAgent&&v.agent(this.requestAgent);var g={};g.response=Qe(ut,this,mt).call(this,this.connectTimeout,Xe(ot,this)),g.deadline=Qe(ut,this,mt).call(this,this.readTimeout,Xe(it,this)),v.timeout(g);var w=a.hasOwnProperty("Content-Type")?a["Content-Type"]:Qe(ut,this,ft).call(this,l);if(w?"multipart/form-data"!=w&&v.type(w):v.header["Content-Type"]||v.type("application/json"),Qe(ut,this,Ot).call(this,Xe(st,this).INFO,null,"Request URL :",r,y),Qe(ut,this,Ot).call(this,Xe(st,this).DEBUG,Qe(ut,this,$t),"Request Headers :",void 0===v.header?"":v.header),"application/x-www-form-urlencoded"===w)v.send(Qe(ut,this,dt).call(this,s));else if("multipart/form-data"==w){var O=Qe(ut,this,dt).call(this,s);for(var k in O)O.hasOwnProperty(k)&&(Qe(ut,this,pt).call(this,O[k])?v.attach(k,O[k]):v.field(k,O[k]))}else{if("application/octet-stream"===w&&null!=u&&"function"==typeof u.pipe){if(Qe(ut,this,Ot).call(this,Xe(st,this).INFO,null,"Piping octet-stream request"),"function"==typeof u.pipe)u.pipe(v);else{var $;try{$=n(965)}catch(e){Qe(ut,this,Ot).call(this,Xe(st,this).ERROR,null,"Error fetching steam/web")}u instanceof $.ReadableStream?u.pipeTo(new $.WritableStream({write:function(e){v.write(e)},close:function(){Qe(ut,this,Ot).call(this,Xe(st,this).INFO,null,"READABLE STREAM CLOSED")},abort:function(e){Qe(ut,this,Ot).call(this,Xe(st,this).ERROR,null,"READABLE STREAM ABORTED")}})):v.send(u)}return new Promise((function(t,n){v.on("error",(function(e){Qe(ut,d,Ot).call(d,Xe(st,d).DEBUG,null,"Caught the following error :",e),n(e)})).on("response",(function(r){Qe(ut,d,Pt).call(d,r,e,i,p,t,n)}))}))}u&&v.send(u)}"Blob"==typeof p?v.responseType("blob"):"String"===p&&v.responseType("string"),Qe(ut,this,wt).call(this,v),Qe(ut,this,Ot).call(this,Xe(st,this).DEBUG,null,"Request Body :",void 0===v._data?"":v._data);var P=a.hasOwnProperty("Accept")&&null!=a.Accept?a.Accept:f.join(", "),T=["application/octet-stream","application/pdf","application/zip"];return P&&v.accept(P),new Promise((function(o,a){v.buffer(!1).redirects(0).retry(d.maxRetryAttempts,d.retryInterval,[]).on("error",(function(e){Qe(ut,d,Ot).call(d,Xe(st,d).DEBUG,null,"Caught the following error :",e)})).end((function(s,u){if(s)Qe(ut,d,Ot).call(d,Xe(st,d).DEBUG,null,"Caught error during the request!"),Qe(ut,d,Ot).call(d,Xe(st,d).ERROR,null,s),null!==s.response&&void 0!==s.response?s.data=Qe(ut,d,ht).call(d,s.response,p):s.data=Qe(ut,d,vt).call(d,s),a(s);else{Qe(ut,d,Ot).call(d,Xe(st,d).INFO,null,"Response Status :",u.status),Qe(ut,d,Ot).call(d,Xe(st,d).DEBUG,Qe(ut,d,$t),"Response Headers :",u.headers);var c="";if(u.headers.hasOwnProperty("content-type")&&(c=u.headers["content-type"]),T.some((function(e){return c.includes(e)})))if(m){var l;try{l=n(965)}catch(e){Qe(ut,d,Ot).call(d,Xe(st,d).ERROR,null,"Error fetching steam/web")}if(d.downloadDestination instanceof l.WritableStream){var f=d.downloadDestination.getWriter();try{u.on("data",(function(e){f.write(e)}))}catch(e){Qe(ut,d,Ot).call(d,Xe(st,d).ERROR,null,"Issue while downloading file",e)}u.on("end",(function(){Qe(ut,d,Ot).call(d,Xe(st,d).INFO,null,"Finished streaming response"),f.close();var e=Qe(ut,d,ht).call(d,u,p);o({data:e,response:u})})).on("error",(function(e){Qe(ut,d,Ot).call(d,Xe(st,d).ERROR,null,"Caught the following error :",e),e.data=Qe(ut,d,vt).call(d,e),a(e)}))}else{var y="Incompatible downloadDestination for Browser Environment, must be WritableStream";Qe(ut,d,Ot).call(d,Xe(st,d).ERROR,null,y),a(y)}}else{var h=d.downloadDestination+"/downloaded_file_"+Date.now()+".txt",b=j().createWriteStream(h);Qe(ut,d,Tt).call(d,u,b,h,o,a,p)}else if(302==u.status){var g=d.downloadDestination+"/downloaded_file_"+Date.now()+".txt",w=d;Qe(ut,d,Ot).call(d,Xe(st,d).INFO,null,"Redirecting to :",u.headers.location);var O=t()(r,u.headers.location);O.set(v.header),u.headers.hasOwnProperty("x-redirect-token")&&(Qe(ut,d,Ot).call(d,Xe(st,d).INFO,null,"Writing X-Redirect-Token into Cookie"),O.set("Cookie",u.headers["x-redirect-token"])),O.redirects(0),O.buffer(!1);var k=j().createWriteStream(g);O.pipe(k),O.on("response",(function(e){Qe(ut,w,Ot).call(w,Xe(st,w).INFO,null,"Received response after redirection :",e.status),Qe(ut,w,Tt).call(w,e,k,g,o,a,p)}))}else Qe(ut,d,Pt).call(d,u,e,i,p,o,a)}}))}))}}],i=[{key:"getEtag",value:function(e){var t=null;return void 0!==e&&(e.hasOwnProperty("$reserved")&&void 0!==e.get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.get$Reserved(),"ETag")),null==t&&e.hasOwnProperty("data")&&e.getData().hasOwnProperty("$reserved")&&void 0!==e.getData().get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.getData().get$Reserved(),"ETag"))),t}},{key:"getValueForCaseInsensitiveKeyMatch",value:function(e,t){if(e&&t){var n=t.toLowerCase(),r=Object.keys(e).find((function(e){return e.toLowerCase()===n}));return r?e[r]:null}return null}},{key:"addEtagReferenceToHeader",value:function(e,t){if(null!=e&&e.hasOwnProperty("$reserved")&&e.$reserved.hasOwnProperty("ETag")){var n=e.$reserved.ETag;null!=n&&""!==n&&(t["If-Match"]=n)}}},{key:"parseDate",value:function(e){return new Date(e)}},{key:"parseQueryParam",value:function(e,t,n,r){var o=null;if(void 0!==t&&t.hasOwnProperty(n)&&(o=t[n]),null===o&&("string"==typeof e||e instanceof String)){var i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=e.match(new RegExp("".concat(i,"=([0-9]+)")));a&&(o=a[1])}return null===o&&(o=r),o}},{key:"convertToType",value:function(t,n){if(null==t)return t;switch(n){case"Boolean":return Boolean(t);case"Integer":return parseInt(t,10);case"Number":return parseFloat(t);case"String":return String(t);case"Date":return e.parseDate(String(t));case"Blob":return t;default:if(n===Object)return t;if("function"==typeof n)return n.constructFromObject(t);if(Array.isArray(n)){var r=n[0];return t.map((function(t){return e.convertToType(t,r)}))}if("object"===We(n)){var o,i;for(var a in n)if(n.hasOwnProperty(a)){o=a,i=n[a];break}var s={};for(var a in t)if(t.hasOwnProperty(a)){var u=e.convertToType(a,o),c=e.convertToType(t[a],i);s[u]=c}return s}return t}}},{key:"constructFromObject",value:function(t,n,r){if(Array.isArray(t))for(var o=0;o<t.length;o++)t.hasOwnProperty(o)&&(n[o]=e.convertToType(t[o],r));else for(var i in t)t.hasOwnProperty(i)&&(n[i]=e.convertToType(t[i],r))}}],o&&qe(r.prototype,o),i&&qe(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}();function lt(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function ft(e){for(var t=0;t<e.length;t++)if(Qe(ut,this,lt).call(this,e[t]))return e[t];return e[0]}function pt(e){var t;try{t=n(799)}catch(e){}return!!(t&&t.ReadStream&&e instanceof t.ReadStream)||"function"==typeof Buffer&&e instanceof Buffer||"function"==typeof P.Blob&&e instanceof P.Blob||"function"==typeof File&&e instanceof File}function dt(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n]&&null!=e[n]){var r=e[n];Qe(ut,this,pt).call(this,r)||Array.isArray(r)?t[n]=r:t[n]=this.paramToString(r)}return t}function yt(e,t){var n=this;t.forEach((function(t){var r=n.authentications[t];switch(r.type){case"basic":r.username||r.password?e.auth(r.username||"",r.password||""):(n.username||n.password)&&e.auth(n.username||"",n.password||""),Qe(ut,n,Ot).call(n,Xe(st,n).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(r.apiKey){var o={};r.apiKeyPrefix?o[r.name]=r.apiKeyPrefix+" "+r.apiKey:o[r.name]=r.apiKey,"header"===r.in?e.set(o):e.query(o)}Qe(ut,n,Ot).call(n,Xe(st,n).DEBUG,null,"apiKey applied to request");break;case"oauth2":r.accessToken&&e.set({Authorization:"Bearer "+r.accessToken}),Qe(ut,n,Ot).call(n,Xe(st,n).DEBUG,null,"oauth2 applied to request");break;default:throw Qe(ut,n,Ot).call(n,Xe(st,n).ERROR,null,"Unknown authentication type:",r.type),new Error("Unknown authentication type: "+r.type)}}))}function vt(e){var t={data:{},metadata:{}};t.data.status=e.status,t.data.message=e.message}function ht(e,t){if(null==e||null==t||204==e.status)return null;if(e.headers&&["text/event-stream","text/html","text/xml","text/csv","text/javascript","text/markdown","text/vcard"].includes(e.headers["content-type"])){(i=new t).data=new P.Blob([e.text],{type:e.headers["content-type"]});var n=new V;n.name="hasError",n.value=!1;var r=[n],o=new Je;return o.flags=r,i.metadata=o,i}var i;return(null==(i=e.body)||"object"===We(i)&&void 0===i.length&&!Object.keys(i).length)&&(i=e.text),_e.convertToType(i,t)}function bt(e,t,n){if(e instanceof c){var r=parseInt(this.constructor.parseQueryParam(t,n,"$page","0"),10),o=parseInt(this.constructor.parseQueryParam(t,n,"$limit","50"),10);e.populatePaginationMetadata(this,r,o)}}function mt(e,t){return e<=0?e=t:e>Xe(at,this)&&(e=Xe(at,this)),e}function gt(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){var t="",n=e.headers["set-cookie"];if(n.length>0){var r,o=Be(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;(i=i.split(";")[0]).includes("=")&&(i.trim(),t=t.concat(i).concat(";"))}}catch(e){o.e(e)}finally{o.f()}""!==t&&(t=t.substr(0,t.length-1))}Ye(tt,this,t),Qe(ut,this,Ot).call(this,Xe(st,this).DEBUG,null,"Retained cookie :",t)}else Ye(tt,this,null)}function wt(e){null!=Xe(tt,this)&&e.set(Qe(ut,this,dt).call(this,{Cookie:Xe(tt,this)}))}function Ot(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if("object"===We(e)&&"key"in e&&"value"in e&&"symbol"===We(e.value)||(e=Xe(st,this).INFO),!Qe(ut,this,jt).call(this,e)){r=r.map((function(e){return"string"==typeof e?e:t?t(e):JSON.stringify(e)}));var i=r.join(" ");i=Qe(ut,this,kt).call(this)+" "+e.key+" - "+i,void 0!==Xe(nt,this)&&null!==Xe(nt,this)&&"function"==typeof Xe(nt,this).log?Xe(nt,this).log(i):console.log(i)}}function jt(e){return!this.debug&&e===Xe(st,this).DEBUG}function kt(){var e=Date.now(),t=(new Date).getTimezoneOffset();return new Date(e-60*t*1e3).toISOString().slice(0,23)}function $t(e){if("object"!==We(e))return e;var t="\n";return e&&Object.keys(e).forEach((function(n){t+=n+"=["+e[n]+"]\n"})),"\n"===t?e:t}function Pt(e,t,n,r,o,i){try{var a=Qe(ut,this,ht).call(this,e,r);Qe(ut,this,Ot).call(this,Xe(st,this).INFO,null,"Response Status :",e.status),Qe(ut,this,Ot).call(this,Xe(st,this).DEBUG,Qe(ut,this,$t),"Response Headers :",e.headers),Qe(ut,this,gt).call(this,e||{}),Qe(ut,this,Ot).call(this,Xe(st,this).DEBUG,null,"Response Body :",a),204==e.status&&null==a?o({data:a,response:e}):e.ok&&null!=a?(this.addEtagToReservedMap(e,a),Qe(ut,this,bt).call(this,a,t,n),o({data:a,response:e})):(Qe(ut,this,Ot).call(this,Xe(st,this).ERROR,null,a),i(Le(Le({},e.error),{},{data:a})))}catch(e){Qe(ut,this,Ot).call(this,Xe(st,this).DEBUG,null,"Caught error while processing response!"),Qe(ut,this,Ot).call(this,Xe(st,this).ERROR,null,e),e.data=Qe(ut,this,vt).call(this,e),i(e)}}function Tt(e,t,n,r,o,i){var a=this;Qe(ut,this,Ot).call(this,Xe(st,this).INFO,null,"Streaming response to : ",n);try{e.on("data",(function(e){t.write(e)}))}catch(e){Qe(ut,this,Ot).call(this,Xe(st,this).ERROR,null,"Issue while downloading file",e)}var s=new i,u="";if(void 0!==e.headers["content-disposition"]&&null!==e.headers["content-disposition"]){var c=e.headers["content-disposition"].match(Me(/.*filename="(.*)".*/,{filename:1})),l=$().parse(c.groups.filename);u=this.downloadDestination+"/"+l.name+"_"+Date.now()+l.ext,s.data={path:$().parse(u),$objectType:"Path"};var f=new V;f.name="hasError",f.value=!1;var p=[f],d=new Je;d.flags=p,s.metadata=d}e.on("end",(function(){Qe(ut,a,Ot).call(a,Xe(st,a).INFO,null,"Finished streaming response"),0!==u.length?(Qe(ut,a,Ot).call(a,Xe(st,a).INFO,null,"Content-Disposition header found [",u,"] is final filename"),t.close(),j().renameSync(n,u),r({data:s,response:e})):(Qe(ut,a,Ot).call(a,Xe(st,a).ERROR,null,"Content-Disposition header not found [",n,"] is final filename"),r({data:s,response:e}))})),e.on("error",(function(e){Qe(ut,a,Ot).call(a,Xe(st,a).ERROR,null,"Caught the following error :",e),error.data=Qe(ut,a,vt).call(a,error),o(e)}))}function Et(e){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Et(e)}function Ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(n),!0).forEach((function(t){Rt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rt(e,t,n){return(t=xt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function It(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xt(r.key),r)}}function xt(e){var t=function(e){if("object"!=Et(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Et(t)?t:t+""}_e=ct,ct.instance=new ct;var At=new WeakSet,Dt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,At),this.$objectType="common.v1.config.TenantAwareModel",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getTenantId",value:function(){return this.tenantId}},{key:"setTenantId",value:function(e){this.tenantId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return!1===e?St(St({},void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new C("tenantId","undefined or null");if(!I.validatePattern(this.tenantId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("tenantId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("tenantId")&&null!==t.tenantId&&void 0!==t.tenantId&&n.setTenantId(t.tenantId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=St({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&It(t.prototype,n),r&&It(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ct(e){return Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ct(e)}function _t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(n),!0).forEach((function(t){Jt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jt(e,t,n){return(t=Ut(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ut(r.key),r)}}function Ut(e){var t=function(e){if("object"!=Ct(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ct(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ct(t)?t:t+""}function Gt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Gt=function(){return!!e})()}function Lt(e){return Lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lt(e)}function Vt(e,t){return Vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vt(e,t)}Dt.prototype.tenantId=void 0,Dt.prototype.$reserved=void 0,Dt.prototype.$objectType=void 0,Dt.prototype.$unknownFields=void 0;var Wt=new WeakSet,Bt=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Lt(t),function(e,t){if(t&&("object"==Ct(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Gt()?Reflect.construct(t,n||[],Lt(e).constructor):t.apply(e,n))}(this,t),Wt),e.$objectType="common.v1.response.ExternalizableAbstractModel",e.$reserved={$fv:"v1.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vt(e,t)}(t,e),n=t,r=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"toJson",value:function(e){return!1===e?Nt(Nt(Nt(Nt({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new C("extId","undefined or null");if(null==e){if(!I.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("extId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}else if(e===E.update&&!I.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("extId","does not satisfy pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("links"===t){if(void 0===this.links||null===this.links)return new C("links","undefined or null");if(!I.validateMaxItems(this.links,20))return new C("links","does not satisfy required maxItems constraint: 20")}return new C(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,Dt.constructFromObject(e,a,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&a.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(i=[],n=e.links,o=0;o<n.length;o++)r=Se.constructFromObject(n[o],void 0),i.push(r);a.setLinks(i)}if(!s)for(var u in a.$unknownFields=Nt({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Mt(n.prototype,r),o&&Mt(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Dt);function zt(e){return zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zt(e)}function qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ht(e,t,n){return(t=Xt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xt(r.key),r)}}function Xt(e){var t=function(e){if("object"!=zt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zt(t)?t:t+""}Bt.prototype.extId=void 0,Bt.prototype.links=void 0,Dt.prototype.tenantId=void 0;var Yt=new WeakSet,Qt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Yt),this.mgmtClusterExtId=t,this.$objectType="dataprotection.v4.config.DataProtectionSiteReference",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getMgmtClusterExtId",value:function(){return this.mgmtClusterExtId}},{key:"setMgmtClusterExtId",value:function(e){this.mgmtClusterExtId=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Kt(Kt(Kt({},void 0!==this.getMgmtClusterExtId()&&null!==this.getMgmtClusterExtId()?{mgmtClusterExtId:this.getMgmtClusterExtId()}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["mgmtClusterExtId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("mgmtClusterExtId"===t){if(void 0===this.mgmtClusterExtId||null===this.mgmtClusterExtId)return new C("mgmtClusterExtId","undefined or null");if(!I.validatePattern(this.mgmtClusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("mgmtClusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new C("clusterExtId","undefined or null");if(!I.validatePattern(this.clusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("clusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("mgmtClusterExtId")&&null!==t.mgmtClusterExtId&&void 0!==t.mgmtClusterExtId&&n.setMgmtClusterExtId(t.mgmtClusterExtId),t.hasOwnProperty("clusterExtId")&&null!==t.clusterExtId&&void 0!==t.clusterExtId&&n.setClusterExtId(t.clusterExtId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Kt({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Zt(t.prototype,n),r&&Zt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Qt.prototype.mgmtClusterExtId=void 0,Qt.prototype.clusterExtId=void 0,Qt.prototype.$reserved=void 0,Qt.prototype.$objectType=void 0,Qt.prototype.$unknownFields=void 0;var en={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VM:"VM",VOLUME_GROUP:"VOLUME_GROUP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(en).find((function(t){return en[t]===e}));return null==t?en.$UNKNOWN:en[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case en.$UNKNOWN:case en.$REDACTED:case en.VM:case en.VOLUME_GROUP:return;default:throw new Error("Invalid : must be ProtectedEntityType.{ $UNKNOWN|$REDACTED|VM|VOLUME_GROUP }")}}};Object.freeze(en);const tn=en;var nn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",IN_SYNC:"IN_SYNC",SYNCING:"SYNCING",OUT_OF_SYNC:"OUT_OF_SYNC",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(nn).find((function(t){return nn[t]===e}));return null==t?nn.$UNKNOWN:nn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case nn.$UNKNOWN:case nn.$REDACTED:case nn.IN_SYNC:case nn.SYNCING:case nn.OUT_OF_SYNC:return;default:throw new Error("Invalid : must be ProtectedResourceReplicationStatus.{ $UNKNOWN|$REDACTED|IN_SYNC|SYNCING|OUT_OF_SYNC }")}}};Object.freeze(nn);const rn=nn;function on(e){return on="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},on(e)}function an(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?an(Object(n),!0).forEach((function(t){un(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):an(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function un(e,t,n){return(t=ln(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ln(r.key),r)}}function ln(e){var t=function(e){if("object"!=on(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=on(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==on(t)?t:t+""}var fn=new WeakSet,pn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,fn),this.$objectType="dataprotection.v4.config.ReplicationState",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getProtectionPolicyExtId",value:function(){return this.protectionPolicyExtId}},{key:"setProtectionPolicyExtId",value:function(e){this.protectionPolicyExtId=e}},{key:"getRecoveryPointObjectiveSeconds",value:function(){return this.recoveryPointObjectiveSeconds}},{key:"setRecoveryPointObjectiveSeconds",value:function(e){this.recoveryPointObjectiveSeconds=e}},{key:"getReplicationStatus",value:function(){return this.replicationStatus}},{key:"setReplicationStatus",value:function(e){this.replicationStatus=e}},{key:"getTargetSiteReference",value:function(){return this.targetSiteReference}},{key:"setTargetSiteReference",value:function(e){this.targetSiteReference=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return sn(sn(sn(sn(sn({},void 0!==this.getProtectionPolicyExtId()&&null!==this.getProtectionPolicyExtId()?{protectionPolicyExtId:this.getProtectionPolicyExtId()}:{}),void 0!==this.getRecoveryPointObjectiveSeconds()&&null!==this.getRecoveryPointObjectiveSeconds()?{recoveryPointObjectiveSeconds:this.getRecoveryPointObjectiveSeconds()}:{}),void 0!==this.getReplicationStatus()&&null!==this.getReplicationStatus()?{replicationStatus:this.getReplicationStatus()}:{}),void 0!==this.getTargetSiteReference()&&null!==this.getTargetSiteReference()?{targetSiteReference:this.getTargetSiteReference().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("protectionPolicyExtId"===t){if(void 0===this.protectionPolicyExtId||null===this.protectionPolicyExtId)return new C("protectionPolicyExtId","undefined or null");if(!I.validatePattern(this.protectionPolicyExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("protectionPolicyExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("recoveryPointObjectiveSeconds"===t){if(void 0===this.recoveryPointObjectiveSeconds||null===this.recoveryPointObjectiveSeconds)return new C("recoveryPointObjectiveSeconds","undefined or null");if(!I.validateMaximum(this.recoveryPointObjectiveSeconds,2419200))return new C("recoveryPointObjectiveSeconds","does not satisfy required maximum constraint: 2419200");if(!I.validateMinimum(this.recoveryPointObjectiveSeconds,0))return new C("recoveryPointObjectiveSeconds","does not satisfy required minimum constraint: 0")}return"replicationStatus"!==t||void 0!==this.replicationStatus&&null!==this.replicationStatus?"targetSiteReference"!==t||void 0!==this.targetSiteReference&&null!==this.targetSiteReference?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("targetSiteReference","undefined or null"):new C("replicationStatus","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("protectionPolicyExtId")&&null!==t.protectionPolicyExtId&&void 0!==t.protectionPolicyExtId&&n.setProtectionPolicyExtId(t.protectionPolicyExtId),t.hasOwnProperty("recoveryPointObjectiveSeconds")&&null!==t.recoveryPointObjectiveSeconds&&void 0!==t.recoveryPointObjectiveSeconds&&n.setRecoveryPointObjectiveSeconds(t.recoveryPointObjectiveSeconds),t.hasOwnProperty("replicationStatus")&&null!==t.replicationStatus&&void 0!==t.replicationStatus&&n.setReplicationStatus(rn.constructFromObject(t.replicationStatus)),t.hasOwnProperty("targetSiteReference")&&null!==t.targetSiteReference&&void 0!==t.targetSiteReference&&n.setTargetSiteReference(Qt.constructFromObject(t.targetSiteReference)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=sn({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&cn(t.prototype,n),r&&cn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function dn(e){return dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dn(e)}function yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yn(Object(n),!0).forEach((function(t){hn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hn(e,t,n){return(t=mn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mn(r.key),r)}}function mn(e){var t=function(e){if("object"!=dn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dn(t)?t:t+""}function gn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}pn.prototype.protectionPolicyExtId=void 0,pn.prototype.recoveryPointObjectiveSeconds=void 0,pn.prototype.replicationStatus=void 0,pn.prototype.targetSiteReference=void 0,pn.prototype.$reserved=void 0,pn.prototype.$objectType=void 0,pn.prototype.$unknownFields=void 0;var wn=new WeakSet,On=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,wn),this.$objectType="dataprotection.v4.config.RestorableTimeRange",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getStartTime",value:function(){return this.startTime}},{key:"setStartTime",value:function(e){this.startTime=e}},{key:"getEndTime",value:function(){return this.endTime}},{key:"setEndTime",value:function(e){this.endTime=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return vn(vn(vn({},void 0!==this.getStartTime()&&null!==this.getStartTime()?{startTime:gn(wn,this,jn).call(this,this.getStartTime(),!1)}:{}),void 0!==this.getEndTime()&&null!==this.getEndTime()?{endTime:gn(wn,this,jn).call(this,this.getEndTime(),!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"startTime"!==t||void 0!==this.startTime&&null!==this.startTime?"endTime"!==t||void 0!==this.endTime&&null!==this.endTime?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("endTime","undefined or null"):new C("startTime","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("startTime")&&null!==t.startTime&&void 0!==t.startTime&&n.setStartTime(t.startTime),t.hasOwnProperty("endTime")&&null!==t.endTime&&void 0!==t.endTime&&n.setEndTime(t.endTime),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=vn({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&bn(t.prototype,n),r&&bn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function jn(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function kn(e){return kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kn(e)}function $n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$n(Object(n),!0).forEach((function(t){Tn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$n(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tn(e,t,n){return(t=Fn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function En(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fn(r.key),r)}}function Fn(e){var t=function(e){if("object"!=kn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=kn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==kn(t)?t:t+""}On.prototype.startTime=void 0,On.prototype.endTime=void 0,On.prototype.$reserved=void 0,On.prototype.$objectType=void 0,On.prototype.$unknownFields=void 0;var Sn=new WeakSet,Rn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Sn),this.$objectType="dataprotection.v4.config.RecoveryInfo",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getRestorableTimeRanges",value:function(){return this.restorableTimeRanges}},{key:"setRestorableTimeRanges",value:function(e){this.restorableTimeRanges=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Pn(Pn({},void 0!==this.getRestorableTimeRanges()&&null!==this.getRestorableTimeRanges()?{restorableTimeRanges:this.getRestorableTimeRanges().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("restorableTimeRanges"===t){if(void 0===this.restorableTimeRanges||null===this.restorableTimeRanges)return new C("restorableTimeRanges","undefined or null");if(!I.validateMaxItems(this.restorableTimeRanges,30))return new C("restorableTimeRanges","does not satisfy required maxItems constraint: 30")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("restorableTimeRanges")&&null!==t.restorableTimeRanges&&void 0!==t.restorableTimeRanges){for(i=[],n=t.restorableTimeRanges,o=0;o<n.length;o++)r=On.constructFromObject(n[o],void 0),i.push(r);a.setRestorableTimeRanges(i)}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=Pn({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&En(t.prototype,n),r&&En(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Rn.prototype.restorableTimeRanges=void 0,Rn.prototype.$reserved=void 0,Rn.prototype.$objectType=void 0,Rn.prototype.$unknownFields=void 0;var In={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PRIMARY:"PRIMARY",SECONDARY:"SECONDARY",INDEPENDENT:"INDEPENDENT",DECOUPLED:"DECOUPLED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(In).find((function(t){return In[t]===e}));return null==t?In.$UNKNOWN:In[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case In.$UNKNOWN:case In.$REDACTED:case In.PRIMARY:case In.SECONDARY:case In.INDEPENDENT:case In.DECOUPLED:return;default:throw new Error("Invalid : must be SynchronousReplicationRole.{ $UNKNOWN|$REDACTED|PRIMARY|SECONDARY|INDEPENDENT|DECOUPLED }")}}};Object.freeze(In);const xn=In;function An(e){return An="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},An(e)}function Dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dn(Object(n),!0).forEach((function(t){_n(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _n(e,t,n){return(t=Jn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jn(r.key),r)}}function Jn(e){var t=function(e){if("object"!=An(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=An(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==An(t)?t:t+""}var Mn=new WeakSet,Un=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Mn),this.$objectType="dataprotection.v4.config.SiteProtectionInfo",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getRecoveryInfo",value:function(){return this.recoveryInfo}},{key:"setRecoveryInfo",value:function(e){this.recoveryInfo=e}},{key:"getLocationReference",value:function(){return this.locationReference}},{key:"setLocationReference",value:function(e){this.locationReference=e}},{key:"getSynchronousReplicationRole",value:function(){return this.synchronousReplicationRole}},{key:"setSynchronousReplicationRole",value:function(e){this.synchronousReplicationRole=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Cn(Cn(Cn(Cn({},void 0!==this.getRecoveryInfo()&&null!==this.getRecoveryInfo()?{recoveryInfo:this.getRecoveryInfo().toJson(!1)}:{}),void 0!==this.getLocationReference()&&null!==this.getLocationReference()?{locationReference:this.getLocationReference().toJson(!1)}:{}),void 0!==this.getSynchronousReplicationRole()&&null!==this.getSynchronousReplicationRole()?{synchronousReplicationRole:this.getSynchronousReplicationRole()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"recoveryInfo"!==t||void 0!==this.recoveryInfo&&null!==this.recoveryInfo?"locationReference"!==t||void 0!==this.locationReference&&null!==this.locationReference?"synchronousReplicationRole"!==t||void 0!==this.synchronousReplicationRole&&null!==this.synchronousReplicationRole?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("synchronousReplicationRole","undefined or null"):new C("locationReference","undefined or null"):new C("recoveryInfo","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("recoveryInfo")&&null!==t.recoveryInfo&&void 0!==t.recoveryInfo&&n.setRecoveryInfo(Rn.constructFromObject(t.recoveryInfo)),t.hasOwnProperty("locationReference")&&null!==t.locationReference&&void 0!==t.locationReference&&n.setLocationReference(Qt.constructFromObject(t.locationReference)),t.hasOwnProperty("synchronousReplicationRole")&&null!==t.synchronousReplicationRole&&void 0!==t.synchronousReplicationRole&&n.setSynchronousReplicationRole(xn.constructFromObject(t.synchronousReplicationRole)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Cn({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Nn(t.prototype,n),r&&Nn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Gn(e){return Gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gn(e)}function Ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ln(Object(n),!0).forEach((function(t){Wn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wn(e,t,n){return(t=zn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zn(r.key),r)}}function zn(e){var t=function(e){if("object"!=Gn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Gn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gn(t)?t:t+""}function qn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qn=function(){return!!e})()}function Kn(e){return Kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Kn(e)}function Hn(e,t){return Hn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Hn(e,t)}Un.prototype.recoveryInfo=void 0,Un.prototype.locationReference=void 0,Un.prototype.synchronousReplicationRole=void 0,Un.prototype.$reserved=void 0,Un.prototype.$objectType=void 0,Un.prototype.$unknownFields=void 0;var Zn=new WeakSet,Xn=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Kn(t),function(e,t){if(t&&("object"==Gn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,qn()?Reflect.construct(t,n||[],Kn(e).constructor):t.apply(e,n))}(this,t),Zn),e.$objectType="dataprotection.v4.config.ProtectedResource",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hn(e,t)}(t,e),n=t,r=[{key:"getEntityExtId",value:function(){return this.entityExtId}},{key:"setEntityExtId",value:function(e){this.entityExtId=e}},{key:"getEntityType",value:function(){return this.entityType}},{key:"setEntityType",value:function(e){this.entityType=e}},{key:"getSourceSiteReference",value:function(){return this.sourceSiteReference}},{key:"setSourceSiteReference",value:function(e){this.sourceSiteReference=e}},{key:"getSiteProtectionInfo",value:function(){return this.siteProtectionInfo}},{key:"setSiteProtectionInfo",value:function(e){this.siteProtectionInfo=e}},{key:"getReplicationStates",value:function(){return this.replicationStates}},{key:"setReplicationStates",value:function(e){this.replicationStates=e}},{key:"getConsistencyGroupExtId",value:function(){return this.consistencyGroupExtId}},{key:"setConsistencyGroupExtId",value:function(e){this.consistencyGroupExtId=e}},{key:"getCategoryFqNames",value:function(){return this.categoryFqNames}},{key:"setCategoryFqNames",value:function(e){this.categoryFqNames=e}},{key:"toJson",value:function(e){return Vn(!1===e?Vn(Vn(Vn(Vn(Vn(Vn(Vn(Vn(Vn(Vn({},void 0!==this.getEntityExtId()&&null!==this.getEntityExtId()?{entityExtId:this.getEntityExtId()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getSourceSiteReference()&&null!==this.getSourceSiteReference()?{sourceSiteReference:this.getSourceSiteReference().toJson(!1)}:{}),void 0!==this.getSiteProtectionInfo()&&null!==this.getSiteProtectionInfo()?{siteProtectionInfo:this.getSiteProtectionInfo().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getReplicationStates()&&null!==this.getReplicationStates()?{replicationStates:this.getReplicationStates().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getConsistencyGroupExtId()&&null!==this.getConsistencyGroupExtId()?{consistencyGroupExtId:this.getConsistencyGroupExtId()}:{}),void 0!==this.getCategoryFqNames()&&null!==this.getCategoryFqNames()?{categoryFqNames:this.getCategoryFqNames()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Vn(Vn(Vn(Vn(Vn(Vn(Vn({},void 0!==this.getEntityExtId()&&null!==this.getEntityExtId()?{entityExtId:this.getEntityExtId()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getSourceSiteReference()&&null!==this.getSourceSiteReference()?{sourceSiteReference:this.getSourceSiteReference().toJson(!1)}:{}),void 0!==this.getSiteProtectionInfo()&&null!==this.getSiteProtectionInfo()?{siteProtectionInfo:this.getSiteProtectionInfo().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getReplicationStates()&&null!==this.getReplicationStates()?{replicationStates:this.getReplicationStates().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getConsistencyGroupExtId()&&null!==this.getConsistencyGroupExtId()?{consistencyGroupExtId:this.getConsistencyGroupExtId()}:{}),void 0!==this.getCategoryFqNames()&&null!==this.getCategoryFqNames()?{categoryFqNames:this.getCategoryFqNames()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("entityExtId"===t){if(void 0===this.entityExtId||null===this.entityExtId)return new C("entityExtId","undefined or null");if(!I.validatePattern(this.entityExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("entityExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("entityType"===t&&(void 0===this.entityType||null===this.entityType))return new C("entityType","undefined or null");if("sourceSiteReference"===t&&(void 0===this.sourceSiteReference||null===this.sourceSiteReference))return new C("sourceSiteReference","undefined or null");if("siteProtectionInfo"===t){if(void 0===this.siteProtectionInfo||null===this.siteProtectionInfo)return new C("siteProtectionInfo","undefined or null");if(!I.validateMaxItems(this.siteProtectionInfo,20))return new C("siteProtectionInfo","does not satisfy required maxItems constraint: 20")}if("replicationStates"===t){if(void 0===this.replicationStates||null===this.replicationStates)return new C("replicationStates","undefined or null");if(!I.validateMaxItems(this.replicationStates,20))return new C("replicationStates","does not satisfy required maxItems constraint: 20")}if("consistencyGroupExtId"===t){if(void 0===this.consistencyGroupExtId||null===this.consistencyGroupExtId)return new C("consistencyGroupExtId","undefined or null");if(!I.validatePattern(this.consistencyGroupExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("consistencyGroupExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("categoryFqNames"===t){if(void 0===this.categoryFqNames||null===this.categoryFqNames)return new C("categoryFqNames","undefined or null");if(!I.validateMaxItems(this.categoryFqNames,1200))return new C("categoryFqNames","does not satisfy required maxItems constraint: 1200")}return new C(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,Bt.constructFromObject(e,a,!0),e.hasOwnProperty("entityExtId")&&null!==e.entityExtId&&void 0!==e.entityExtId&&a.setEntityExtId(e.entityExtId),e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&a.setEntityType(tn.constructFromObject(e.entityType)),e.hasOwnProperty("sourceSiteReference")&&null!==e.sourceSiteReference&&void 0!==e.sourceSiteReference&&a.setSourceSiteReference(Qt.constructFromObject(e.sourceSiteReference)),e.hasOwnProperty("siteProtectionInfo")&&null!==e.siteProtectionInfo&&void 0!==e.siteProtectionInfo){for(i=[],n=e.siteProtectionInfo,o=0;o<n.length;o++)r=Un.constructFromObject(n[o],void 0),i.push(r);a.setSiteProtectionInfo(i)}if(e.hasOwnProperty("replicationStates")&&null!==e.replicationStates&&void 0!==e.replicationStates){for(i=[],n=e.replicationStates,o=0;o<n.length;o++)r=pn.constructFromObject(n[o],void 0),i.push(r);a.setReplicationStates(i)}if(e.hasOwnProperty("consistencyGroupExtId")&&null!==e.consistencyGroupExtId&&void 0!==e.consistencyGroupExtId&&a.setConsistencyGroupExtId(e.consistencyGroupExtId),e.hasOwnProperty("categoryFqNames")&&null!==e.categoryFqNames&&void 0!==e.categoryFqNames){for(i=[],n=e.categoryFqNames,o=0;o<n.length;o++)i.push(n[o]);a.setCategoryFqNames(i)}if(!s)for(var u in a.$unknownFields=Vn({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Bn(n.prototype,r),o&&Bn(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Bt);function Yn(e){return Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yn(e)}function Qn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?er(Object(n),!0).forEach((function(t){nr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nr(e,t,n){return(t=or(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,or(r.key),r)}}function or(e){var t=function(e){if("object"!=Yn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yn(t)?t:t+""}function ir(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Xn.prototype.entityExtId=void 0,Xn.prototype.entityType=void 0,Xn.prototype.sourceSiteReference=void 0,Xn.prototype.siteProtectionInfo=void 0,Xn.prototype.replicationStates=void 0,Xn.prototype.consistencyGroupExtId=void 0,Xn.prototype.categoryFqNames=void 0,Bt.prototype.extId=void 0,Bt.prototype.links=void 0,Dt.prototype.tenantId=void 0;var ar=new WeakSet,sr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,ar),this.$objectType="dataprotection.v4.error.AppMessage",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getErrorGroup",value:function(){return this.errorGroup}},{key:"setErrorGroup",value:function(e){this.errorGroup=e}},{key:"getArgumentsMap",value:function(){return this.argumentsMap}},{key:"setArgumentsMap",value:function(e){this.argumentsMap=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return tr(tr(tr(tr(tr(tr(tr({},void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getErrorGroup()&&null!==this.getErrorGroup()?{errorGroup:this.getErrorGroup()}:{}),!1===e?void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:ir(ar,this,ur).call(this,this.getArgumentsMap(),!1)}:{}:void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:ir(ar,this,ur).call(this,this.getArgumentsMap())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"message"!==t||void 0!==this.message&&null!==this.message?"severity"!==t||void 0!==this.severity&&null!==this.severity?"code"!==t||void 0!==this.code&&null!==this.code?"locale"!==t||void 0!==this.locale&&null!==this.locale?"errorGroup"!==t||void 0!==this.errorGroup&&null!==this.errorGroup?"argumentsMap"!==t||void 0!==this.argumentsMap&&null!==this.argumentsMap?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("argumentsMap","undefined or null"):new C("errorGroup","undefined or null"):new C("locale","undefined or null"):new C("code","undefined or null"):new C("severity","undefined or null"):new C("message","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(de.constructFromObject(t.severity)),t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("errorGroup")&&null!==t.errorGroup&&void 0!==t.errorGroup&&n.setErrorGroup(t.errorGroup),t.hasOwnProperty("argumentsMap")&&null!==t.argumentsMap&&void 0!==t.argumentsMap&&n.setArgumentsMap(t.argumentsMap),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=tr({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&rr(t.prototype,n),r&&rr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ur(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Qn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qn(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Yn(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function cr(e){return cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cr(e)}function lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lr(Object(n),!0).forEach((function(t){pr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pr(e,t,n){return(t=yr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yr(r.key),r)}}function yr(e){var t=function(e){if("object"!=cr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cr(t)?t:t+""}sr.prototype.message=void 0,sr.prototype.severity=void 0,sr.prototype.code=void 0,sr.prototype.locale="en_US",sr.prototype.errorGroup=void 0,sr.prototype.argumentsMap=void 0,sr.prototype.$reserved=void 0,sr.prototype.$objectType=void 0,sr.prototype.$unknownFields=void 0;var vr=new WeakSet,hr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,vr),this.$objectType="dataprotection.v4.error.SchemaValidationErrorMessage",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getLocation",value:function(){return this.location}},{key:"setLocation",value:function(e){this.location=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getAttributePath",value:function(){return this.attributePath}},{key:"setAttributePath",value:function(e){this.attributePath=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return fr(fr(fr(fr({},void 0!==this.getLocation()&&null!==this.getLocation()?{location:this.getLocation()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getAttributePath()&&null!==this.getAttributePath()?{attributePath:this.getAttributePath()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"location"!==t||void 0!==this.location&&null!==this.location?"message"!==t||void 0!==this.message&&null!==this.message?"attributePath"!==t||void 0!==this.attributePath&&null!==this.attributePath?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("attributePath","undefined or null"):new C("message","undefined or null"):new C("location","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("location")&&null!==t.location&&void 0!==t.location&&n.setLocation(t.location),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("attributePath")&&null!==t.attributePath&&void 0!==t.attributePath&&n.setAttributePath(t.attributePath),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=fr({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&dr(t.prototype,n),r&&dr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function br(e){return br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},br(e)}function mr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mr(Object(n),!0).forEach((function(t){wr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wr(e,t,n){return(t=jr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Or(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jr(r.key),r)}}function jr(e){var t=function(e){if("object"!=br(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=br(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==br(t)?t:t+""}function kr(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}hr.prototype.location=void 0,hr.prototype.message=void 0,hr.prototype.attributePath=void 0,hr.prototype.$reserved=void 0,hr.prototype.$objectType=void 0,hr.prototype.$unknownFields=void 0;var $r=new WeakSet,Pr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,$r),this.$objectType="dataprotection.v4.error.SchemaValidationError",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getTimestamp",value:function(){return this.timestamp}},{key:"setTimestamp",value:function(e){this.timestamp=e}},{key:"getStatusCode",value:function(){return this.statusCode}},{key:"setStatusCode",value:function(e){this.statusCode=e}},{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"getPath",value:function(){return this.path}},{key:"setPath",value:function(e){this.path=e}},{key:"getValidationErrorMessages",value:function(){return this.validationErrorMessages}},{key:"setValidationErrorMessages",value:function(e){this.validationErrorMessages=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return gr(gr(gr(gr(gr(gr({},void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:kr($r,this,Tr).call(this,this.getTimestamp(),!1)}:{}),void 0!==this.getStatusCode()&&null!==this.getStatusCode()?{statusCode:this.getStatusCode()}:{}),void 0!==this.getError()&&null!==this.getError()?{error:this.getError()}:{}),void 0!==this.getPath()&&null!==this.getPath()?{path:this.getPath()}:{}),void 0!==this.getValidationErrorMessages()&&null!==this.getValidationErrorMessages()?{validationErrorMessages:this.getValidationErrorMessages().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"statusCode"!==t||void 0!==this.statusCode&&null!==this.statusCode?"error"!==t||void 0!==this.error&&null!==this.error?"path"!==t||void 0!==this.path&&null!==this.path?"validationErrorMessages"!==t||void 0!==this.validationErrorMessages&&null!==this.validationErrorMessages?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("validationErrorMessages","undefined or null"):new C("path","undefined or null"):new C("error","undefined or null"):new C("statusCode","undefined or null"):new C("timestamp","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&a.setTimestamp(t.timestamp),t.hasOwnProperty("statusCode")&&null!==t.statusCode&&void 0!==t.statusCode&&a.setStatusCode(t.statusCode),t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error&&a.setError(t.error),t.hasOwnProperty("path")&&null!==t.path&&void 0!==t.path&&a.setPath(t.path),t.hasOwnProperty("validationErrorMessages")&&null!==t.validationErrorMessages&&void 0!==t.validationErrorMessages){for(i=[],n=t.validationErrorMessages,o=0;o<n.length;o++)r=hr.constructFromObject(n[o],void 0),i.push(r);a.setValidationErrorMessages(i)}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=gr({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Or(t.prototype,n),r&&Or(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Tr(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Er(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Fr(e){return Fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fr(e)}function Sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(n),!0).forEach((function(t){Ir(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ir(e,t,n){return(t=Ar(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ar(r.key),r)}}function Ar(e){var t=function(e){if("object"!=Fr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Fr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fr(t)?t:t+""}function Dr(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Pr.prototype.timestamp=void 0,Pr.prototype.statusCode=void 0,Pr.prototype.error=void 0,Pr.prototype.path=void 0,Pr.prototype.validationErrorMessages=void 0,Pr.prototype.$reserved=void 0,Pr.prototype.$objectType=void 0,Pr.prototype.$unknownFields=void 0;var Cr=new WeakSet,_r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Cr),this.$objectType="dataprotection.v4.error.ErrorResponse",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Rr(Rr({},!1===e?void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson(!1):Array.isArray(this.getError())?this.getError().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Dr(Cr,this,Nr).call(this,this.getError(),!1)}:{}:void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson():Array.isArray(this.getError())?this.getError().map((function(e){return void 0!==e.toJson?e.toJson():e})):Dr(Cr,this,Nr).call(this,this.getError())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"error"!==t||void 0!==this.error&&null!==this.error?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("error","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error)if(Array.isArray(t.error))if(0===t.error.length)s.setError([]);else{for(i=[],a=(n=t.error)[0].hasOwnProperty("$objectType")?n[0].$objectType:Fr(n[0]),o=0;o<n.length;o++){if("dataprotection.v4.error.AppMessage"!==a)throw"Unknown list of type "+a+" in data";r=sr.constructFromObject(n[o],void 0),i.push(r)}s.setError(i)}else{if("dataprotection.v4.error.SchemaValidationError"!==(a=t.error.hasOwnProperty("$objectType")?t.error.$objectType:Fr(t.error)))throw"Unknown datatype "+a+" in data";s.setError(Pr.constructFromObject(t.error,void 0))}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!u)for(var c in s.$unknownFields=Rr({},t.$unknownFields),t)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=t[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&xr(t.prototype,n),r&&xr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Nr(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Er(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Er(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Fr(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Jr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Mr(e){return Mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mr(e)}function Ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ur(Object(n),!0).forEach((function(t){Lr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ur(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lr(e,t,n){return(t=Wr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wr(r.key),r)}}function Wr(e){var t=function(e){if("object"!=Mr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Mr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mr(t)?t:t+""}function Br(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Br=function(){return!!e})()}function zr(e){return zr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zr(e)}function qr(e,t){return qr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qr(e,t)}function Kr(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}_r.prototype.error=void 0,_r.prototype.$reserved=void 0,_r.prototype.$objectType=void 0,_r.prototype.$unknownFields=void 0;var Hr=new WeakSet,Zr=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=zr(t),function(e,t){if(t&&("object"==Mr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Br()?Reflect.construct(t,n||[],zr(e).constructor):t.apply(e,n))}(this,t),Hr),e.$objectType="dataprotection.v4.config.GetProtectedResourceApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qr(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Gr(Gr(Gr({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Kr(Hr,this,Xr).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Kr(Hr,this,Xr).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("data","undefined or null"):new C("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&c.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Je.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Mr(e.data)){case"dataprotection.v4.config.ProtectedResource":r.setData(Xn.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":r.setData(_r.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Gr({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Vr(n.prototype,r),o&&Vr(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c);function Xr(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Jr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jr(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Mr(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Yr(e){return Yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yr(e)}function Qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qr(Object(n),!0).forEach((function(t){to(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function to(e,t,n){return(t=ro(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function no(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ro(r.key),r)}}function ro(e){var t=function(e){if("object"!=Yr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yr(t)?t:t+""}Zr.prototype.metadata=void 0,Zr.prototype.data=void 0,Zr.prototype.$reserved=void 0,Zr.prototype.$objectType=void 0,Zr.prototype.$unknownFields=void 0;var oo=new WeakSet,io=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,oo),this.$objectType="prism.v4.config.TaskReference",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return eo(eo({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new C("extId","undefined or null");if(!I.validatePattern(this.extId,/^[a-zA-Z0-9\/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/))return new C("extId","does not satisfy required pattern: /^[a-zA-Z0-9/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=eo({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&no(t.prototype,n),r&&no(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ao(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function so(e){return so="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},so(e)}function uo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function co(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uo(Object(n),!0).forEach((function(t){lo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lo(e,t,n){return(t=po(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,po(r.key),r)}}function po(e){var t=function(e){if("object"!=so(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=so(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==so(t)?t:t+""}function yo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yo=function(){return!!e})()}function vo(e){return vo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vo(e)}function ho(e,t){return ho=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ho(e,t)}function bo(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}io.prototype.extId=void 0,io.prototype.$reserved=void 0,io.prototype.$objectType=void 0,io.prototype.$unknownFields=void 0;var mo=new WeakSet,go=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=vo(t),function(e,t){if(t&&("object"==so(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,yo()?Reflect.construct(t,n||[],vo(e).constructor):t.apply(e,n))}(this,t),mo),e.$objectType="dataprotection.v4.config.ProtectedResourceRestoreApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ho(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return co(co(co({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):bo(mo,this,wo).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):bo(mo,this,wo).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("data","undefined or null"):new C("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&c.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Je.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:so(e.data)){case"prism.v4.config.TaskReference":r.setData(io.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":r.setData(_r.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=co({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&fo(n.prototype,r),o&&fo(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c);function wo(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ao(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ao(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===so(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Oo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jo(e){return jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jo(e)}function ko(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ko(Object(n),!0).forEach((function(t){Po(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ko(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Po(e,t,n){return(t=Eo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function To(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Eo(r.key),r)}}function Eo(e){var t=function(e){if("object"!=jo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=jo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jo(t)?t:t+""}function Fo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fo=function(){return!!e})()}function So(e){return So=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},So(e)}function Ro(e,t){return Ro=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ro(e,t)}function Io(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}go.prototype.metadata=void 0,go.prototype.data=void 0,go.prototype.$reserved=void 0,go.prototype.$objectType=void 0,go.prototype.$unknownFields=void 0;var xo=new WeakSet,Ao=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=So(t),function(e,t){if(t&&("object"==jo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Fo()?Reflect.construct(t,n||[],So(e).constructor):t.apply(e,n))}(this,t),xo),e.$objectType="dataprotection.v4.config.ProtectedResourcePromoteApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ro(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return $o($o($o({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Io(xo,this,Do).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Io(xo,this,Do).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("data","undefined or null"):new C("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&c.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Je.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:jo(e.data)){case"prism.v4.config.TaskReference":r.setData(io.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":r.setData(_r.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=$o({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&To(n.prototype,r),o&&To(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c);function Do(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Oo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oo(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===jo(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Co(e){return Co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Co(e)}function _o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function No(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_o(Object(n),!0).forEach((function(t){Jo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jo(e,t,n){return(t=Uo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Uo(r.key),r)}}function Uo(e){var t=function(e){if("object"!=Co(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Co(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Co(t)?t:t+""}function Go(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ao.prototype.metadata=void 0,Ao.prototype.data=void 0,Ao.prototype.$reserved=void 0,Ao.prototype.$objectType=void 0,Ao.prototype.$unknownFields=void 0;var Lo=new WeakSet,Vo=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Lo),this.clusterExtId=t,this.$objectType="dataprotection.v4.config.ProtectedResourceRestoreSpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getRestoreTime",value:function(){return this.restoreTime}},{key:"setRestoreTime",value:function(e){this.restoreTime=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return No(No(No({},void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getRestoreTime()&&null!==this.getRestoreTime()?{restoreTime:Go(Lo,this,Wo).call(this,this.getRestoreTime(),!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["clusterExtId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new C("clusterExtId","undefined or null");if(!I.validatePattern(this.clusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("clusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"restoreTime"!==t||void 0!==this.restoreTime&&null!==this.restoreTime?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("restoreTime","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("clusterExtId")&&null!==t.clusterExtId&&void 0!==t.clusterExtId&&n.setClusterExtId(t.clusterExtId),t.hasOwnProperty("restoreTime")&&null!==t.restoreTime&&void 0!==t.restoreTime&&n.setRestoreTime(t.restoreTime),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=No({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Mo(t.prototype,n),r&&Mo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Wo(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Bo(e){return Bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bo(e)}function zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(n),!0).forEach((function(t){Ko(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ko(e,t,n){return(t=Zo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ho(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zo(r.key),r)}}function Zo(e){var t=function(e){if("object"!=Bo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Bo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Bo(t)?t:t+""}function Xo(e,t){return e.get(Yo(e,t))}function Yo(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Vo.prototype.clusterExtId=void 0,Vo.prototype.restoreTime=void 0,Vo.prototype.$reserved=void 0,Vo.prototype.$objectType=void 0,Vo.prototype.$unknownFields=void 0;var Qo=new WeakMap,ei=function(){return e=function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,Qo,void 0),this.apiClient=t||ct.instance,n=Qo,r=new Set,n.set(Yo(n,this),r),Xo(Qo,this).add("authorization"),Xo(Qo,this).add("cookie"),Xo(Qo,this).add("host"),Xo(Qo,this).add("user-agent")},t=[{key:"getProtectedResourceById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getProtectedResourceById");var r={extId:e},o={};Object.keys(n).forEach((function(e){Xo(Qo,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=qo({},o),a=Zr;return this.apiClient.callApi("/api/dataprotection/v4.0/config/protected-resources/{extId}","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"promoteProtectedResource",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling promoteProtectedResource");var r={extId:e},o={};Object.keys(n).forEach((function(e){Xo(Qo,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=qo({},o),a=Ao;return this.apiClient.callApi("/api/dataprotection/v4.0/config/protected-resources/{extId}/$actions/promote","POST",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"restoreProtectedResource",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof Vo&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling restoreProtectedResource");if(null==n)throw new Error("Invalid body when calling restoreProtectedResource");var i={extId:e},a={};Object.keys(o).forEach((function(e){Xo(Qo,r).has(e.toLowerCase())||(a[e]=o[e])}));var s=qo({},a);ct.addEtagReferenceToHeader(t,s);var u=go;return this.apiClient.callApi("/api/dataprotection/v4.0/config/protected-resources/{extId}/$actions/restore","POST",i,{},s,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return ct}}],t&&Ho(e.prototype,t),n&&Ho(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function ti(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ni(e){return ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ni(e)}function ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ri(Object(n),!0).forEach((function(t){ii(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ii(e,t,n){return(t=si(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ai(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,si(r.key),r)}}function si(e){var t=function(e){if("object"!=ni(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ni(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ni(t)?t:t+""}function ui(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ui=function(){return!!e})()}function ci(e){return ci=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ci(e)}function li(e,t){return li=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},li(e,t)}function fi(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var pi=new WeakSet,di=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=ci(t),function(e,t){if(t&&("object"==ni(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ui()?Reflect.construct(t,n||[],ci(e).constructor):t.apply(e,n))}(this,t),pi),e.$objectType="dataprotection.v4.config.RecoveryPointReplicateApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&li(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return oi(oi(oi({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):fi(pi,this,yi).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):fi(pi,this,yi).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("data","undefined or null"):new C("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&c.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Je.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ni(e.data)){case"prism.v4.config.TaskReference":r.setData(io.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":r.setData(_r.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=oi({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&ai(n.prototype,r),o&&ai(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c);function yi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ti(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ti(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===ni(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}di.prototype.metadata=void 0,di.prototype.data=void 0,di.prototype.$reserved=void 0,di.prototype.$objectType=void 0,di.prototype.$unknownFields=void 0;var vi={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",GET_VSS_METADATA:"GET_VSS_METADATA",COMPUTE_CHANGED_REGIONS:"COMPUTE_CHANGED_REGIONS",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(vi).find((function(t){return vi[t]===e}));return null==t?vi.$UNKNOWN:vi[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case vi.$UNKNOWN:case vi.$REDACTED:case vi.GET_VSS_METADATA:case vi.COMPUTE_CHANGED_REGIONS:return;default:throw new Error("Invalid : must be ClusterDiscoverOperation.{ $UNKNOWN|$REDACTED|GET_VSS_METADATA|COMPUTE_CHANGED_REGIONS }")}}};Object.freeze(vi);const hi=vi;function bi(e){return bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bi(e)}function mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mi(Object(n),!0).forEach((function(t){wi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wi(e,t,n){return(t=ji(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ji(r.key),r)}}function ji(e){var t=function(e){if("object"!=bi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bi(t)?t:t+""}var ki=new WeakSet,$i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,ki),this.$objectType="dataprotection.v4.content.DiskRecoveryPointReference",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getRecoveryPointExtId",value:function(){return this.recoveryPointExtId}},{key:"setRecoveryPointExtId",value:function(e){this.recoveryPointExtId=e}},{key:"getDiskRecoveryPointExtId",value:function(){return this.diskRecoveryPointExtId}},{key:"setDiskRecoveryPointExtId",value:function(e){this.diskRecoveryPointExtId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return gi(gi(gi({},void 0!==this.getRecoveryPointExtId()&&null!==this.getRecoveryPointExtId()?{recoveryPointExtId:this.getRecoveryPointExtId()}:{}),void 0!==this.getDiskRecoveryPointExtId()&&null!==this.getDiskRecoveryPointExtId()?{diskRecoveryPointExtId:this.getDiskRecoveryPointExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("recoveryPointExtId"===t){if(void 0===this.recoveryPointExtId||null===this.recoveryPointExtId)return new C("recoveryPointExtId","undefined or null");if(!I.validatePattern(this.recoveryPointExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("recoveryPointExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("diskRecoveryPointExtId"===t){if(void 0===this.diskRecoveryPointExtId||null===this.diskRecoveryPointExtId)return new C("diskRecoveryPointExtId","undefined or null");if(!I.validatePattern(this.diskRecoveryPointExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("diskRecoveryPointExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("recoveryPointExtId")&&null!==t.recoveryPointExtId&&void 0!==t.recoveryPointExtId&&n.setRecoveryPointExtId(t.recoveryPointExtId),t.hasOwnProperty("diskRecoveryPointExtId")&&null!==t.diskRecoveryPointExtId&&void 0!==t.diskRecoveryPointExtId&&n.setDiskRecoveryPointExtId(t.diskRecoveryPointExtId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=gi({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Oi(t.prototype,n),r&&Oi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Pi(e){return Pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pi(e)}function Ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ti(Object(n),!0).forEach((function(t){Fi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ti(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fi(e,t,n){return(t=Ri(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Si(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ri(r.key),r)}}function Ri(e){var t=function(e){if("object"!=Pi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Pi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pi(t)?t:t+""}function Ii(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ii=function(){return!!e})()}function xi(e){return xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xi(e)}function Ai(e,t){return Ai=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ai(e,t)}$i.prototype.recoveryPointExtId=void 0,$i.prototype.diskRecoveryPointExtId=void 0,$i.prototype.$reserved=void 0,$i.prototype.$objectType=void 0,$i.prototype.$unknownFields=void 0;var Di=new WeakSet,Ci=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=xi(t),function(e,t){if(t&&("object"==Pi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ii()?Reflect.construct(t,n||[],xi(e).constructor):t.apply(e,n))}(this,t),Di),e.$objectType="dataprotection.v4.content.VmDiskRecoveryPointReference",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ai(e,t)}(t,e),n=t,r=[{key:"getVmRecoveryPointExtId",value:function(){return this.vmRecoveryPointExtId}},{key:"setVmRecoveryPointExtId",value:function(e){this.vmRecoveryPointExtId=e}},{key:"toJson",value:function(e){return Ei(Ei(Ei(Ei({},void 0!==this.getVmRecoveryPointExtId()&&null!==this.getVmRecoveryPointExtId()?{vmRecoveryPointExtId:this.getVmRecoveryPointExtId()}:{}),void 0!==this.getRecoveryPointExtId()&&null!==this.getRecoveryPointExtId()?{recoveryPointExtId:this.getRecoveryPointExtId()}:{}),void 0!==this.getDiskRecoveryPointExtId()&&null!==this.getDiskRecoveryPointExtId()?{diskRecoveryPointExtId:this.getDiskRecoveryPointExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("vmRecoveryPointExtId"===t){if(void 0===this.vmRecoveryPointExtId||null===this.vmRecoveryPointExtId)return new C("vmRecoveryPointExtId","undefined or null");if(!I.validatePattern(this.vmRecoveryPointExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("vmRecoveryPointExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return new C(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,$i.constructFromObject(e,n,!0),e.hasOwnProperty("vmRecoveryPointExtId")&&null!==e.vmRecoveryPointExtId&&void 0!==e.vmRecoveryPointExtId&&n.setVmRecoveryPointExtId(e.vmRecoveryPointExtId),!r))for(var o in n.$unknownFields=Ei({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Si(n.prototype,r),o&&Si(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}($i);function _i(e){return _i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_i(e)}function Ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ji(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(n),!0).forEach((function(t){Mi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ni(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mi(e,t,n){return(t=Gi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ui(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gi(r.key),r)}}function Gi(e){var t=function(e){if("object"!=_i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_i(t)?t:t+""}function Li(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Li=function(){return!!e})()}function Vi(e){return Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vi(e)}function Wi(e,t){return Wi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wi(e,t)}Ci.prototype.vmRecoveryPointExtId=void 0,$i.prototype.recoveryPointExtId=void 0,$i.prototype.diskRecoveryPointExtId=void 0;var Bi=new WeakSet,zi=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Vi(t),function(e,t){if(t&&("object"==_i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Li()?Reflect.construct(t,n||[],Vi(e).constructor):t.apply(e,n))}(this,t),Bi),e.$objectType="dataprotection.v4.content.VolumeGroupDiskRecoveryPointReference",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wi(e,t)}(t,e),n=t,r=[{key:"getVolumeGroupRecoveryPointExtId",value:function(){return this.volumeGroupRecoveryPointExtId}},{key:"setVolumeGroupRecoveryPointExtId",value:function(e){this.volumeGroupRecoveryPointExtId=e}},{key:"toJson",value:function(e){return Ji(Ji(Ji(Ji({},void 0!==this.getVolumeGroupRecoveryPointExtId()&&null!==this.getVolumeGroupRecoveryPointExtId()?{volumeGroupRecoveryPointExtId:this.getVolumeGroupRecoveryPointExtId()}:{}),void 0!==this.getRecoveryPointExtId()&&null!==this.getRecoveryPointExtId()?{recoveryPointExtId:this.getRecoveryPointExtId()}:{}),void 0!==this.getDiskRecoveryPointExtId()&&null!==this.getDiskRecoveryPointExtId()?{diskRecoveryPointExtId:this.getDiskRecoveryPointExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("volumeGroupRecoveryPointExtId"===t){if(void 0===this.volumeGroupRecoveryPointExtId||null===this.volumeGroupRecoveryPointExtId)return new C("volumeGroupRecoveryPointExtId","undefined or null");if(!I.validatePattern(this.volumeGroupRecoveryPointExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("volumeGroupRecoveryPointExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return new C(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,$i.constructFromObject(e,n,!0),e.hasOwnProperty("volumeGroupRecoveryPointExtId")&&null!==e.volumeGroupRecoveryPointExtId&&void 0!==e.volumeGroupRecoveryPointExtId&&n.setVolumeGroupRecoveryPointExtId(e.volumeGroupRecoveryPointExtId),!r))for(var o in n.$unknownFields=Ji({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Ui(n.prototype,r),o&&Ui(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}($i);function qi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ki(e){return Ki="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ki(e)}function Hi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hi(Object(n),!0).forEach((function(t){Xi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xi(e,t,n){return(t=Qi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qi(r.key),r)}}function Qi(e){var t=function(e){if("object"!=Ki(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ki(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ki(t)?t:t+""}function ea(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}zi.prototype.volumeGroupRecoveryPointExtId=void 0,$i.prototype.recoveryPointExtId=void 0,$i.prototype.diskRecoveryPointExtId=void 0;var ta=new WeakSet,na=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,ta),this.diskRecoveryPoint=t,this.$objectType="dataprotection.v4.content.ComputeChangedRegionsClusterDiscoverSpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getDiskRecoveryPoint",value:function(){return this.diskRecoveryPoint}},{key:"setDiskRecoveryPoint",value:function(e){this.diskRecoveryPoint=e}},{key:"getReferenceDiskRecoveryPoint",value:function(){return this.referenceDiskRecoveryPoint}},{key:"setReferenceDiskRecoveryPoint",value:function(e){this.referenceDiskRecoveryPoint=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Zi(!1===e?Zi(Zi({},void 0!==this.getDiskRecoveryPoint()&&null!==this.getDiskRecoveryPoint()?{diskRecoveryPoint:void 0!==this.getDiskRecoveryPoint().toJson?this.getDiskRecoveryPoint().toJson(!1):Array.isArray(this.getDiskRecoveryPoint())?this.getDiskRecoveryPoint().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ea(ta,this,ra).call(this,this.getDiskRecoveryPoint(),!1)}:{}),void 0!==this.getReferenceDiskRecoveryPoint()&&null!==this.getReferenceDiskRecoveryPoint()?{referenceDiskRecoveryPoint:void 0!==this.getReferenceDiskRecoveryPoint().toJson?this.getReferenceDiskRecoveryPoint().toJson(!1):Array.isArray(this.getReferenceDiskRecoveryPoint())?this.getReferenceDiskRecoveryPoint().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ea(ta,this,ra).call(this,this.getReferenceDiskRecoveryPoint(),!1)}:{}):Zi(Zi({},void 0!==this.getDiskRecoveryPoint()&&null!==this.getDiskRecoveryPoint()?{diskRecoveryPoint:void 0!==this.getDiskRecoveryPoint().toJson?this.getDiskRecoveryPoint().toJson():Array.isArray(this.getDiskRecoveryPoint())?this.getDiskRecoveryPoint().map((function(e){return void 0!==e.toJson?e.toJson():e})):ea(ta,this,ra).call(this,this.getDiskRecoveryPoint())}:{}),void 0!==this.getReferenceDiskRecoveryPoint()&&null!==this.getReferenceDiskRecoveryPoint()?{referenceDiskRecoveryPoint:void 0!==this.getReferenceDiskRecoveryPoint().toJson?this.getReferenceDiskRecoveryPoint().toJson():Array.isArray(this.getReferenceDiskRecoveryPoint())?this.getReferenceDiskRecoveryPoint().map((function(e){return void 0!==e.toJson?e.toJson():e})):ea(ta,this,ra).call(this,this.getReferenceDiskRecoveryPoint())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["diskRecoveryPoint"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"diskRecoveryPoint"!==t||void 0!==this.diskRecoveryPoint&&null!==this.diskRecoveryPoint?"referenceDiskRecoveryPoint"!==t||void 0!==this.referenceDiskRecoveryPoint&&null!==this.referenceDiskRecoveryPoint?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("referenceDiskRecoveryPoint","undefined or null"):new C("diskRecoveryPoint","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("diskRecoveryPoint")&&null!==t.diskRecoveryPoint&&void 0!==t.diskRecoveryPoint)switch(n=t.diskRecoveryPoint.hasOwnProperty("$objectType")?t.diskRecoveryPoint.$objectType:Ki(t.diskRecoveryPoint)){case"dataprotection.v4.content.VmDiskRecoveryPointReference":r.setDiskRecoveryPoint(Ci.constructFromObject(t.diskRecoveryPoint,void 0));break;case"dataprotection.v4.content.VolumeGroupDiskRecoveryPointReference":r.setDiskRecoveryPoint(zi.constructFromObject(t.diskRecoveryPoint,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(t.hasOwnProperty("referenceDiskRecoveryPoint")&&null!==t.referenceDiskRecoveryPoint&&void 0!==t.referenceDiskRecoveryPoint)switch(n=t.referenceDiskRecoveryPoint.hasOwnProperty("$objectType")?t.referenceDiskRecoveryPoint.$objectType:Ki(t.referenceDiskRecoveryPoint)){case"dataprotection.v4.content.VmDiskRecoveryPointReference":r.setReferenceDiskRecoveryPoint(Ci.constructFromObject(t.referenceDiskRecoveryPoint,void 0));break;case"dataprotection.v4.content.VolumeGroupDiskRecoveryPointReference":r.setReferenceDiskRecoveryPoint(zi.constructFromObject(t.referenceDiskRecoveryPoint,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!o)for(var i in r.$unknownFields=Zi({},t.$unknownFields),t)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=t[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Yi(t.prototype,n),r&&Yi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ra(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return qi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qi(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Ki(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function oa(e){return oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oa(e)}function ia(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function aa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ia(Object(n),!0).forEach((function(t){sa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ia(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sa(e,t,n){return(t=ca(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ua(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ca(r.key),r)}}function ca(e){var t=function(e){if("object"!=oa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=oa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oa(t)?t:t+""}na.prototype.diskRecoveryPoint=void 0,na.prototype.referenceDiskRecoveryPoint=void 0,na.prototype.$reserved=void 0,na.prototype.$objectType=void 0,na.prototype.$unknownFields=void 0;var la=new WeakSet,fa=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,la),this.vmRecoveryPointExtId=t,this.$objectType="dataprotection.v4.content.GetVssMetadataClusterDiscoverSpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getVmRecoveryPointExtId",value:function(){return this.vmRecoveryPointExtId}},{key:"setVmRecoveryPointExtId",value:function(e){this.vmRecoveryPointExtId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return aa(aa({},void 0!==this.getVmRecoveryPointExtId()&&null!==this.getVmRecoveryPointExtId()?{vmRecoveryPointExtId:this.getVmRecoveryPointExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["vmRecoveryPointExtId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("vmRecoveryPointExtId"===t){if(void 0===this.vmRecoveryPointExtId||null===this.vmRecoveryPointExtId)return new C("vmRecoveryPointExtId","undefined or null");if(!I.validatePattern(this.vmRecoveryPointExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("vmRecoveryPointExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("vmRecoveryPointExtId")&&null!==t.vmRecoveryPointExtId&&void 0!==t.vmRecoveryPointExtId&&n.setVmRecoveryPointExtId(t.vmRecoveryPointExtId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=aa({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&ua(t.prototype,n),r&&ua(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function pa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function da(e){return da="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},da(e)}function ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function va(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ya(Object(n),!0).forEach((function(t){ha(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ya(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ha(e,t,n){return(t=ma(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ba(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ma(r.key),r)}}function ma(e){var t=function(e){if("object"!=da(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=da(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==da(t)?t:t+""}function ga(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}fa.prototype.vmRecoveryPointExtId=void 0,fa.prototype.$reserved=void 0,fa.prototype.$objectType=void 0,fa.prototype.$unknownFields=void 0;var wa=new WeakSet,Oa=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,wa),this.operation=t,this.spec=n,this.$objectType="dataprotection.v4.content.ClusterDiscoverSpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getOperation",value:function(){return this.operation}},{key:"setOperation",value:function(e){this.operation=e}},{key:"getSpec",value:function(){return this.spec}},{key:"setSpec",value:function(e){this.spec=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return va(va(va({},void 0!==this.getOperation()&&null!==this.getOperation()?{operation:this.getOperation()}:{}),!1===e?void 0!==this.getSpec()&&null!==this.getSpec()?{spec:void 0!==this.getSpec().toJson?this.getSpec().toJson(!1):Array.isArray(this.getSpec())?this.getSpec().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ga(wa,this,ja).call(this,this.getSpec(),!1)}:{}:void 0!==this.getSpec()&&null!==this.getSpec()?{spec:void 0!==this.getSpec().toJson?this.getSpec().toJson():Array.isArray(this.getSpec())?this.getSpec().map((function(e){return void 0!==e.toJson?e.toJson():e})):ga(wa,this,ja).call(this,this.getSpec())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["operation","spec"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"operation"!==t||void 0!==this.operation&&null!==this.operation?"spec"!==t||void 0!==this.spec&&null!==this.spec?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("spec","undefined or null"):new C("operation","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("operation")&&null!==t.operation&&void 0!==t.operation&&r.setOperation(hi.constructFromObject(t.operation)),t.hasOwnProperty("spec")&&null!==t.spec&&void 0!==t.spec)switch(n=t.spec.hasOwnProperty("$objectType")?t.spec.$objectType:da(t.spec)){case"dataprotection.v4.content.GetVssMetadataClusterDiscoverSpec":r.setSpec(fa.constructFromObject(t.spec,void 0));break;case"dataprotection.v4.content.ComputeChangedRegionsClusterDiscoverSpec":r.setSpec(na.constructFromObject(t.spec,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!o)for(var i in r.$unknownFields=va({},t.$unknownFields),t)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=t[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&ba(t.prototype,n),r&&ba(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ja(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return pa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pa(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===da(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function ka(e){return ka="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ka(e)}function $a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$a(Object(n),!0).forEach((function(t){Ta(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ta(e,t,n){return(t=Fa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ea(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fa(r.key),r)}}function Fa(e){var t=function(e){if("object"!=ka(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ka(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ka(t)?t:t+""}Oa.prototype.operation=void 0,Oa.prototype.spec=void 0,Oa.prototype.$reserved=void 0,Oa.prototype.$objectType=void 0,Oa.prototype.$unknownFields=void 0;var Sa=new WeakSet,Ra=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Sa),this.$objectType="dataprotection.v4.content.BaseRecoveryPointSpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getReferenceRecoveryPointExtId",value:function(){return this.referenceRecoveryPointExtId}},{key:"setReferenceRecoveryPointExtId",value:function(e){this.referenceRecoveryPointExtId=e}},{key:"getReferenceDiskRecoveryPointExtId",value:function(){return this.referenceDiskRecoveryPointExtId}},{key:"setReferenceDiskRecoveryPointExtId",value:function(e){this.referenceDiskRecoveryPointExtId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Pa(Pa(Pa({},void 0!==this.getReferenceRecoveryPointExtId()&&null!==this.getReferenceRecoveryPointExtId()?{referenceRecoveryPointExtId:this.getReferenceRecoveryPointExtId()}:{}),void 0!==this.getReferenceDiskRecoveryPointExtId()&&null!==this.getReferenceDiskRecoveryPointExtId()?{referenceDiskRecoveryPointExtId:this.getReferenceDiskRecoveryPointExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("referenceRecoveryPointExtId"===t){if(void 0===this.referenceRecoveryPointExtId||null===this.referenceRecoveryPointExtId)return new C("referenceRecoveryPointExtId","undefined or null");if(!I.validatePattern(this.referenceRecoveryPointExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("referenceRecoveryPointExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("referenceDiskRecoveryPointExtId"===t){if(void 0===this.referenceDiskRecoveryPointExtId||null===this.referenceDiskRecoveryPointExtId)return new C("referenceDiskRecoveryPointExtId","undefined or null");if(!I.validatePattern(this.referenceDiskRecoveryPointExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("referenceDiskRecoveryPointExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("referenceRecoveryPointExtId")&&null!==t.referenceRecoveryPointExtId&&void 0!==t.referenceRecoveryPointExtId&&n.setReferenceRecoveryPointExtId(t.referenceRecoveryPointExtId),t.hasOwnProperty("referenceDiskRecoveryPointExtId")&&null!==t.referenceDiskRecoveryPointExtId&&void 0!==t.referenceDiskRecoveryPointExtId&&n.setReferenceDiskRecoveryPointExtId(t.referenceDiskRecoveryPointExtId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Pa({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Ea(t.prototype,n),r&&Ea(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ia(e){return Ia="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ia(e)}function xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Aa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xa(Object(n),!0).forEach((function(t){Da(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Da(e,t,n){return(t=_a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ca(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_a(r.key),r)}}function _a(e){var t=function(e){if("object"!=Ia(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ia(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ia(t)?t:t+""}function Na(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Na=function(){return!!e})()}function Ja(e){return Ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ja(e)}function Ma(e,t){return Ma=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ma(e,t)}Ra.prototype.referenceRecoveryPointExtId=void 0,Ra.prototype.referenceDiskRecoveryPointExtId=void 0,Ra.prototype.$reserved=void 0,Ra.prototype.$objectType=void 0,Ra.prototype.$unknownFields=void 0;var Ua=new WeakSet,Ga=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Ja(t),function(e,t){if(t&&("object"==Ia(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Na()?Reflect.construct(t,n||[],Ja(e).constructor):t.apply(e,n))}(this,t),Ua),e.$objectType="dataprotection.v4.content.VmDiskRecoveryPointClusterDiscoverSpec",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ma(e,t)}(t,e),n=t,r=[{key:"getReferenceVmRecoveryPointExtId",value:function(){return this.referenceVmRecoveryPointExtId}},{key:"setReferenceVmRecoveryPointExtId",value:function(e){this.referenceVmRecoveryPointExtId=e}},{key:"toJson",value:function(e){return Aa(Aa(Aa(Aa({},void 0!==this.getReferenceVmRecoveryPointExtId()&&null!==this.getReferenceVmRecoveryPointExtId()?{referenceVmRecoveryPointExtId:this.getReferenceVmRecoveryPointExtId()}:{}),void 0!==this.getReferenceRecoveryPointExtId()&&null!==this.getReferenceRecoveryPointExtId()?{referenceRecoveryPointExtId:this.getReferenceRecoveryPointExtId()}:{}),void 0!==this.getReferenceDiskRecoveryPointExtId()&&null!==this.getReferenceDiskRecoveryPointExtId()?{referenceDiskRecoveryPointExtId:this.getReferenceDiskRecoveryPointExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("referenceVmRecoveryPointExtId"===t){if(void 0===this.referenceVmRecoveryPointExtId||null===this.referenceVmRecoveryPointExtId)return new C("referenceVmRecoveryPointExtId","undefined or null");if(!I.validatePattern(this.referenceVmRecoveryPointExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("referenceVmRecoveryPointExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return new C(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Ra.constructFromObject(e,n,!0),e.hasOwnProperty("referenceVmRecoveryPointExtId")&&null!==e.referenceVmRecoveryPointExtId&&void 0!==e.referenceVmRecoveryPointExtId&&n.setReferenceVmRecoveryPointExtId(e.referenceVmRecoveryPointExtId),!r))for(var o in n.$unknownFields=Aa({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Ca(n.prototype,r),o&&Ca(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ra);function La(e){return La="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},La(e)}function Va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Va(Object(n),!0).forEach((function(t){Ba(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Va(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ba(e,t,n){return(t=qa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function za(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qa(r.key),r)}}function qa(e){var t=function(e){if("object"!=La(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=La(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==La(t)?t:t+""}function Ka(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ka=function(){return!!e})()}function Ha(e){return Ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ha(e)}function Za(e,t){return Za=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Za(e,t)}Ga.prototype.referenceVmRecoveryPointExtId=void 0,Ra.prototype.referenceRecoveryPointExtId=void 0,Ra.prototype.referenceDiskRecoveryPointExtId=void 0;var Xa=new WeakSet,Ya=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Ha(t),function(e,t){if(t&&("object"==La(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ka()?Reflect.construct(t,n||[],Ha(e).constructor):t.apply(e,n))}(this,t),Xa),e.$objectType="dataprotection.v4.content.VmRecoveryPointChangedRegionsComputeSpec",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Za(e,t)}(t,e),n=t,r=[{key:"getOffset",value:function(){return this.offset}},{key:"setOffset",value:function(e){this.offset=e}},{key:"getLength",value:function(){return this.length}},{key:"setLength",value:function(e){this.length=e}},{key:"getBlockSizeByte",value:function(){return this.blockSizeByte}},{key:"setBlockSizeByte",value:function(e){this.blockSizeByte=e}},{key:"toJson",value:function(e){return Wa(Wa(Wa(Wa(Wa(Wa(Wa({},void 0!==this.getOffset()&&null!==this.getOffset()?{offset:this.getOffset()}:{}),void 0!==this.getLength()&&null!==this.getLength()?{length:this.getLength()}:{}),void 0!==this.getBlockSizeByte()&&null!==this.getBlockSizeByte()?{blockSizeByte:this.getBlockSizeByte()}:{}),void 0!==this.getReferenceVmRecoveryPointExtId()&&null!==this.getReferenceVmRecoveryPointExtId()?{referenceVmRecoveryPointExtId:this.getReferenceVmRecoveryPointExtId()}:{}),void 0!==this.getReferenceRecoveryPointExtId()&&null!==this.getReferenceRecoveryPointExtId()?{referenceRecoveryPointExtId:this.getReferenceRecoveryPointExtId()}:{}),void 0!==this.getReferenceDiskRecoveryPointExtId()&&null!==this.getReferenceDiskRecoveryPointExtId()?{referenceDiskRecoveryPointExtId:this.getReferenceDiskRecoveryPointExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("offset"===t&&(void 0===this.offset||null===this.offset))return new C("offset","undefined or null");if("length"===t&&(void 0===this.length||null===this.length))return new C("length","undefined or null");if("blockSizeByte"===t){if(void 0===this.blockSizeByte||null===this.blockSizeByte)return new C("blockSizeByte","undefined or null");if(!I.validateMaximum(this.blockSizeByte,262144))return new C("blockSizeByte","does not satisfy required maximum constraint: 262144");if(!I.validateMinimum(this.blockSizeByte,32768))return new C("blockSizeByte","does not satisfy required minimum constraint: 32768")}return new C(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Ga.constructFromObject(e,n,!0),e.hasOwnProperty("offset")&&null!==e.offset&&void 0!==e.offset&&n.setOffset(e.offset),e.hasOwnProperty("length")&&null!==e.length&&void 0!==e.length&&n.setLength(e.length),e.hasOwnProperty("blockSizeByte")&&null!==e.blockSizeByte&&void 0!==e.blockSizeByte&&n.setBlockSizeByte(e.blockSizeByte),!r))for(var o in n.$unknownFields=Wa({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&za(n.prototype,r),o&&za(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ga);function Qa(e){return Qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qa(e)}function es(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ts(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?es(Object(n),!0).forEach((function(t){ns(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):es(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ns(e,t,n){return(t=os(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,os(r.key),r)}}function os(e){var t=function(e){if("object"!=Qa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qa(t)?t:t+""}Ya.prototype.offset=void 0,Ya.prototype.length=void 0,Ya.prototype.blockSizeByte=void 0,Ga.prototype.referenceVmRecoveryPointExtId=void 0,Ra.prototype.referenceRecoveryPointExtId=void 0,Ra.prototype.referenceDiskRecoveryPointExtId=void 0;var is=new WeakSet,as=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,is),this.value=t,this.$objectType="common.v1.config.IPv4Address",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ts(ts(ts({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["value"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new C("value","undefined or null");if(!I.validatePattern(this.value,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/))return new C("value","does not satisfy required pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new C("prefixLength","undefined or null");if(!I.validateMaximum(this.prefixLength,32))return new C("prefixLength","does not satisfy required maximum constraint: 32");if(!I.validateMinimum(this.prefixLength,0))return new C("prefixLength","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ts({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&rs(t.prototype,n),r&&rs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ss(e){return ss="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ss(e)}function us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?us(Object(n),!0).forEach((function(t){ls(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):us(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ls(e,t,n){return(t=ps(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ps(r.key),r)}}function ps(e){var t=function(e){if("object"!=ss(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ss(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ss(t)?t:t+""}as.prototype.value=void 0,as.prototype.prefixLength=32,as.prototype.$reserved=void 0,as.prototype.$objectType=void 0,as.prototype.$unknownFields=void 0;var ds=new WeakSet,ys=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,ds),this.value=t,this.$objectType="common.v1.config.IPv6Address",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return cs(cs(cs({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["value"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new C("value","undefined or null");if(!I.validatePattern(this.value,/^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/))return new C("value","does not satisfy required pattern: /^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new C("prefixLength","undefined or null");if(!I.validateMaximum(this.prefixLength,128))return new C("prefixLength","does not satisfy required maximum constraint: 128");if(!I.validateMinimum(this.prefixLength,0))return new C("prefixLength","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=cs({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&fs(t.prototype,n),r&&fs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function vs(e){return vs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vs(e)}function hs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hs(Object(n),!0).forEach((function(t){ms(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ms(e,t,n){return(t=ws(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ws(r.key),r)}}function ws(e){var t=function(e){if("object"!=vs(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vs(t)?t:t+""}ys.prototype.value=void 0,ys.prototype.prefixLength=128,ys.prototype.$reserved=void 0,ys.prototype.$objectType=void 0,ys.prototype.$unknownFields=void 0;var Os=new WeakSet,js=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Os),this.$objectType="common.v1.config.IPAddress",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getIpv4",value:function(){return this.ipv4}},{key:"setIpv4",value:function(e){this.ipv4=e}},{key:"getIpv6",value:function(){return this.ipv6}},{key:"setIpv6",value:function(e){this.ipv6=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"hasIpv4",value:function(){return!(void 0===this.ipv4||null===this.ipv4)}},{key:"hasIpv6",value:function(){return!(void 0===this.ipv6||null===this.ipv6)}},{key:"isValid",value:function(){return this.hasIpv4()||this.hasIpv6()}},{key:"toJson",value:function(e){return bs(bs(bs({},void 0!==this.getIpv4()&&null!==this.getIpv4()?{ipv4:this.getIpv4().toJson(!1)}:{}),void 0!==this.getIpv6()&&null!==this.getIpv6()?{ipv6:this.getIpv6().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"ipv4"!==t||void 0!==this.ipv4&&null!==this.ipv4?"ipv6"!==t||void 0!==this.ipv6&&null!==this.ipv6?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("ipv6","undefined or null"):new C("ipv4","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("ipv4")&&null!==t.ipv4&&void 0!==t.ipv4&&n.setIpv4(as.constructFromObject(t.ipv4)),t.hasOwnProperty("ipv6")&&null!==t.ipv6&&void 0!==t.ipv6&&n.setIpv6(ys.constructFromObject(t.ipv6)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=bs({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&gs(t.prototype,n),r&&gs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ks(e){return ks="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ks(e)}function $s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ps(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$s(Object(n),!0).forEach((function(t){Ts(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ts(e,t,n){return(t=Fs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Es(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fs(r.key),r)}}function Fs(e){var t=function(e){if("object"!=ks(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ks(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ks(t)?t:t+""}js.prototype.ipv4=void 0,js.prototype.ipv6=void 0,js.prototype.$reserved=void 0,js.prototype.$objectType=void 0,js.prototype.$unknownFields=void 0;var Ss=new WeakSet,Rs=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Ss),this.$objectType="dataprotection.v4.common.ClusterInfo",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getJwtToken",value:function(){return this.jwtToken}},{key:"setJwtToken",value:function(e){this.jwtToken=e}},{key:"getClusterIp",value:function(){return this.clusterIp}},{key:"setClusterIp",value:function(e){this.clusterIp=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ps(Ps(Ps({},void 0!==this.getJwtToken()&&null!==this.getJwtToken()?{jwtToken:this.getJwtToken()}:{}),void 0!==this.getClusterIp()&&null!==this.getClusterIp()?{clusterIp:this.getClusterIp().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"jwtToken"!==t||void 0!==this.jwtToken&&null!==this.jwtToken?"clusterIp"!==t||void 0!==this.clusterIp&&null!==this.clusterIp?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("clusterIp","undefined or null"):new C("jwtToken","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("jwtToken")&&null!==t.jwtToken&&void 0!==t.jwtToken&&n.setJwtToken(t.jwtToken),t.hasOwnProperty("clusterIp")&&null!==t.clusterIp&&void 0!==t.clusterIp&&n.setClusterIp(js.constructFromObject(t.clusterIp)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Ps({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Es(t.prototype,n),r&&Es(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Is(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xs(e){return xs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xs(e)}function As(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?As(Object(n),!0).forEach((function(t){Cs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):As(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cs(e,t,n){return(t=Ns(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ns(r.key),r)}}function Ns(e){var t=function(e){if("object"!=xs(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xs(t)?t:t+""}function Js(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Js=function(){return!!e})()}function Ms(e){return Ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ms(e)}function Us(e,t){return Us=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Us(e,t)}function Gs(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Rs.prototype.jwtToken=void 0,Rs.prototype.clusterIp=void 0,Rs.prototype.$reserved=void 0,Rs.prototype.$objectType=void 0,Rs.prototype.$unknownFields=void 0;var Ls=new WeakSet,Vs=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Ms(t),function(e,t){if(t&&("object"==xs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Js()?Reflect.construct(t,n||[],Ms(e).constructor):t.apply(e,n))}(this,t),Ls),e.$objectType="dataprotection.v4.config.ClusterInfoApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Us(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ds(Ds(Ds({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Gs(Ls,this,Ws).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Gs(Ls,this,Ws).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("data","undefined or null"):new C("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&c.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Je.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:xs(e.data)){case"dataprotection.v4.common.ClusterInfo":r.setData(Rs.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":r.setData(_r.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Ds({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&_s(n.prototype,r),o&&_s(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c);function Ws(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Is(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Is(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===xs(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}Vs.prototype.metadata=void 0,Vs.prototype.data=void 0,Vs.prototype.$reserved=void 0,Vs.prototype.$objectType=void 0,Vs.prototype.$unknownFields=void 0;var Bs={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",COMPLETE:"COMPLETE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Bs).find((function(t){return Bs[t]===e}));return null==t?Bs.$UNKNOWN:Bs[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Bs.$UNKNOWN:case Bs.$REDACTED:case Bs.COMPLETE:return;default:throw new Error("Invalid : must be RecoveryPointStatus.{ $UNKNOWN|$REDACTED|COMPLETE }")}}};Object.freeze(Bs);const zs=Bs;var qs={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CRASH_CONSISTENT:"CRASH_CONSISTENT",APPLICATION_CONSISTENT:"APPLICATION_CONSISTENT",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(qs).find((function(t){return qs[t]===e}));return null==t?qs.$UNKNOWN:qs[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case qs.$UNKNOWN:case qs.$REDACTED:case qs.CRASH_CONSISTENT:case qs.APPLICATION_CONSISTENT:return;default:throw new Error("Invalid : must be RecoveryPointType.{ $UNKNOWN|$REDACTED|CRASH_CONSISTENT|APPLICATION_CONSISTENT }")}}};Object.freeze(qs);const Ks=qs;function Hs(e){return Hs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hs(e)}function Zs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zs(Object(n),!0).forEach((function(t){Ys(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ys(e,t,n){return(t=eu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eu(r.key),r)}}function eu(e){var t=function(e){if("object"!=Hs(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Hs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hs(t)?t:t+""}function tu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tu=function(){return!!e})()}function nu(e){return nu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nu(e)}function ru(e,t){return ru=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ru(e,t)}function ou(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var iu=new WeakSet,au=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=nu(t),function(e,t){if(t&&("object"==Hs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,tu()?Reflect.construct(t,n||[],nu(e).constructor):t.apply(e,n))}(this,t),iu),e.$objectType="dataprotection.v4.common.BaseRecoveryPoint",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ru(e,t)}(t,e),n=t,r=[{key:"getLocationAgnosticId",value:function(){return this.locationAgnosticId}},{key:"setLocationAgnosticId",value:function(e){this.locationAgnosticId=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getCreationTime",value:function(){return this.creationTime}},{key:"setCreationTime",value:function(e){this.creationTime=e}},{key:"getExpirationTime",value:function(){return this.expirationTime}},{key:"setExpirationTime",value:function(e){this.expirationTime=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getRecoveryPointType",value:function(){return this.recoveryPointType}},{key:"setRecoveryPointType",value:function(e){this.recoveryPointType=e}},{key:"toJson",value:function(e){return Xs(!1===e?Xs(Xs(Xs(Xs(Xs(Xs(Xs(Xs(Xs({},void 0!==this.getLocationAgnosticId()&&null!==this.getLocationAgnosticId()?{locationAgnosticId:this.getLocationAgnosticId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:ou(iu,this,su).call(this,this.getCreationTime(),!1)}:{}),void 0!==this.getExpirationTime()&&null!==this.getExpirationTime()?{expirationTime:ou(iu,this,su).call(this,this.getExpirationTime(),!1)}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getRecoveryPointType()&&null!==this.getRecoveryPointType()?{recoveryPointType:this.getRecoveryPointType()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Xs(Xs(Xs(Xs({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getExpirationTime()&&null!==this.getExpirationTime()?{expirationTime:ou(iu,this,su).call(this,this.getExpirationTime(),!1)}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getRecoveryPointType()&&null!==this.getRecoveryPointType()?{recoveryPointType:this.getRecoveryPointType()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("locationAgnosticId"===t){if(void 0===this.locationAgnosticId||null===this.locationAgnosticId)return new C("locationAgnosticId","undefined or null");if(!I.validatePattern(this.locationAgnosticId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("locationAgnosticId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("name"===t){if(void 0===this.name||null===this.name)return new C("name","undefined or null");if(!I.validateMaxLength(this.name,256))return new C("name","does not satisfy required maxLength constraint: 256")}return"creationTime"!==t||void 0!==this.creationTime&&null!==this.creationTime?"expirationTime"!==t||void 0!==this.expirationTime&&null!==this.expirationTime?"status"!==t||void 0!==this.status&&null!==this.status?"recoveryPointType"!==t||void 0!==this.recoveryPointType&&null!==this.recoveryPointType?new C(t,"no such property exists"):new C("recoveryPointType","undefined or null"):new C("status","undefined or null"):new C("expirationTime","undefined or null"):new C("creationTime","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Bt.constructFromObject(e,n,!0),e.hasOwnProperty("locationAgnosticId")&&null!==e.locationAgnosticId&&void 0!==e.locationAgnosticId&&n.setLocationAgnosticId(e.locationAgnosticId),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&n.setName(e.name),e.hasOwnProperty("creationTime")&&null!==e.creationTime&&void 0!==e.creationTime&&n.setCreationTime(e.creationTime),e.hasOwnProperty("expirationTime")&&null!==e.expirationTime&&void 0!==e.expirationTime&&n.setExpirationTime(e.expirationTime),e.hasOwnProperty("status")&&null!==e.status&&void 0!==e.status&&n.setStatus(zs.constructFromObject(e.status)),e.hasOwnProperty("recoveryPointType")&&null!==e.recoveryPointType&&void 0!==e.recoveryPointType&&n.setRecoveryPointType(Ks.constructFromObject(e.recoveryPointType)),!r))for(var o in n.$unknownFields=Xs({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Qs(n.prototype,r),o&&Qs(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Bt);function su(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function uu(e){return uu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uu(e)}function cu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cu(Object(n),!0).forEach((function(t){fu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fu(e,t,n){return(t=du(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,du(r.key),r)}}function du(e){var t=function(e){if("object"!=uu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=uu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==uu(t)?t:t+""}au.prototype.locationAgnosticId=void 0,au.prototype.name=void 0,au.prototype.creationTime=void 0,au.prototype.expirationTime=void 0,au.prototype.status=void 0,au.prototype.recoveryPointType=void 0,Bt.prototype.extId=void 0,Bt.prototype.links=void 0,Dt.prototype.tenantId=void 0;var yu=new WeakSet,vu=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,yu),this.$objectType="dataprotection.v4.config.LocationReference",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getLocationExtId",value:function(){return this.locationExtId}},{key:"setLocationExtId",value:function(e){this.locationExtId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return lu(lu({},void 0!==this.getLocationExtId()&&null!==this.getLocationExtId()?{locationExtId:this.getLocationExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("locationExtId"===t){if(void 0===this.locationExtId||null===this.locationExtId)return new C("locationExtId","undefined or null");if(!I.validatePattern(this.locationExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("locationExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("locationExtId")&&null!==t.locationExtId&&void 0!==t.locationExtId&&n.setLocationExtId(t.locationExtId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=lu({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&pu(t.prototype,n),r&&pu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function hu(e){return hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hu(e)}function bu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bu(Object(n),!0).forEach((function(t){gu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gu(e,t,n){return(t=Ou(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ou(r.key),r)}}function Ou(e){var t=function(e){if("object"!=hu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hu(t)?t:t+""}vu.prototype.locationExtId=void 0,vu.prototype.$reserved=void 0,vu.prototype.$objectType=void 0,vu.prototype.$unknownFields=void 0;var ju=new WeakSet,ku=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,ju),this.$objectType="dataprotection.v4.common.DiskRecoveryPoint",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getDiskRecoveryPointExtId",value:function(){return this.diskRecoveryPointExtId}},{key:"setDiskRecoveryPointExtId",value:function(e){this.diskRecoveryPointExtId=e}},{key:"getDiskExtId",value:function(){return this.diskExtId}},{key:"setDiskExtId",value:function(e){this.diskExtId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return!1===e?mu(mu(mu({},void 0!==this.getDiskRecoveryPointExtId()&&null!==this.getDiskRecoveryPointExtId()?{diskRecoveryPointExtId:this.getDiskRecoveryPointExtId()}:{}),void 0!==this.getDiskExtId()&&null!==this.getDiskExtId()?{diskExtId:this.getDiskExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("diskRecoveryPointExtId"===t){if(void 0===this.diskRecoveryPointExtId||null===this.diskRecoveryPointExtId)return new C("diskRecoveryPointExtId","undefined or null");if(!I.validatePattern(this.diskRecoveryPointExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("diskRecoveryPointExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("diskExtId"===t){if(void 0===this.diskExtId||null===this.diskExtId)return new C("diskExtId","undefined or null");if(!I.validatePattern(this.diskExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("diskExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("diskRecoveryPointExtId")&&null!==t.diskRecoveryPointExtId&&void 0!==t.diskRecoveryPointExtId&&n.setDiskRecoveryPointExtId(t.diskRecoveryPointExtId),t.hasOwnProperty("diskExtId")&&null!==t.diskExtId&&void 0!==t.diskExtId&&n.setDiskExtId(t.diskExtId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=mu({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&wu(t.prototype,n),r&&wu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();ku.prototype.diskRecoveryPointExtId=void 0,ku.prototype.diskExtId=void 0,ku.prototype.$reserved=void 0,ku.prototype.$objectType=void 0,ku.prototype.$unknownFields=void 0;var $u={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",FULL_BACKUP:"FULL_BACKUP",COPY_BACKUP:"COPY_BACKUP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys($u).find((function(t){return $u[t]===e}));return null==t?$u.$UNKNOWN:$u[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case $u.$UNKNOWN:case $u.$REDACTED:case $u.FULL_BACKUP:case $u.COPY_BACKUP:return;default:throw new Error("Invalid : must be BackupType.{ $UNKNOWN|$REDACTED|FULL_BACKUP|COPY_BACKUP }")}}};Object.freeze($u);const Pu=$u;function Tu(e){return Tu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tu(e)}function Eu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Eu(Object(n),!0).forEach((function(t){Su(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Su(e,t,n){return(t=Iu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ru(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Iu(r.key),r)}}function Iu(e){var t=function(e){if("object"!=Tu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Tu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Tu(t)?t:t+""}var xu=new WeakSet,Au=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,xu),this.backupType=t,this.$objectType="dataprotection.v4.common.VssProperties",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getBackupType",value:function(){return this.backupType}},{key:"setBackupType",value:function(e){this.backupType=e}},{key:"getShouldIncludeWriters",value:function(){return this.shouldIncludeWriters}},{key:"setShouldIncludeWriters",value:function(e){this.shouldIncludeWriters=e}},{key:"getWriters",value:function(){return this.writers}},{key:"setWriters",value:function(e){this.writers=e}},{key:"getShouldStoreVssMetadata",value:function(){return this.shouldStoreVssMetadata}},{key:"setShouldStoreVssMetadata",value:function(e){this.shouldStoreVssMetadata=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Fu(Fu(Fu(Fu(Fu({},void 0!==this.getBackupType()&&null!==this.getBackupType()?{backupType:this.getBackupType()}:{}),void 0!==this.getShouldIncludeWriters()&&null!==this.getShouldIncludeWriters()?{shouldIncludeWriters:this.getShouldIncludeWriters()}:{}),void 0!==this.getWriters()&&null!==this.getWriters()?{writers:this.getWriters()}:{}),void 0!==this.getShouldStoreVssMetadata()&&null!==this.getShouldStoreVssMetadata()?{shouldStoreVssMetadata:this.getShouldStoreVssMetadata()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["backupType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("backupType"===t&&(void 0===this.backupType||null===this.backupType))return new C("backupType","undefined or null");if("shouldIncludeWriters"===t&&(void 0===this.shouldIncludeWriters||null===this.shouldIncludeWriters))return new C("shouldIncludeWriters","undefined or null");if("writers"===t){if(void 0===this.writers||null===this.writers)return new C("writers","undefined or null");if(!I.validateMaxItems(this.writers,25))return new C("writers","does not satisfy required maxItems constraint: 25");if(!I.validateMinItems(this.writers,1))return new C("writers","does not satisfy required minItems constraint: 1")}return"shouldStoreVssMetadata"!==t||void 0!==this.shouldStoreVssMetadata&&null!==this.shouldStoreVssMetadata?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("shouldStoreVssMetadata","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(i=i||new e,t.hasOwnProperty("backupType")&&null!==t.backupType&&void 0!==t.backupType&&i.setBackupType(Pu.constructFromObject(t.backupType)),t.hasOwnProperty("shouldIncludeWriters")&&null!==t.shouldIncludeWriters&&void 0!==t.shouldIncludeWriters&&i.setShouldIncludeWriters(t.shouldIncludeWriters),t.hasOwnProperty("writers")&&null!==t.writers&&void 0!==t.writers){for(o=[],n=t.writers,r=0;r<n.length;r++)o.push(n[r]);i.setWriters(o)}if(t.hasOwnProperty("shouldStoreVssMetadata")&&null!==t.shouldStoreVssMetadata&&void 0!==t.shouldStoreVssMetadata&&i.setShouldStoreVssMetadata(t.shouldStoreVssMetadata),t.hasOwnProperty("$reserved")&&(i.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(i.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(i.$unknownFields=t.$unknownFields),!a)for(var s in i.$unknownFields=Fu({},t.$unknownFields),t)Object.keys(i).includes(s)||Object.keys(i).includes(this.snakeToCamel(s))||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(i.$unknownFields[s]=t[s])}return i}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Ru(t.prototype,n),r&&Ru(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Du(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cu(e){return Cu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cu(e)}function _u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_u(Object(n),!0).forEach((function(t){Ju(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ju(e,t,n){return(t=Uu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Uu(r.key),r)}}function Uu(e){var t=function(e){if("object"!=Cu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Cu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Cu(t)?t:t+""}function Gu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Gu=function(){return!!e})()}function Lu(e){return Lu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lu(e)}function Vu(e,t){return Vu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vu(e,t)}function Wu(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Au.prototype.backupType=void 0,Au.prototype.shouldIncludeWriters=!1,Au.prototype.writers=void 0,Au.prototype.shouldStoreVssMetadata=!1,Au.prototype.$reserved=void 0,Au.prototype.$objectType=void 0,Au.prototype.$unknownFields=void 0;var Bu=new WeakSet,zu=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Lu(t),function(e,t){if(t&&("object"==Cu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Gu()?Reflect.construct(t,n||[],Lu(e).constructor):t.apply(e,n))}(this,t),Bu),e.$objectType="dataprotection.v4.common.BaseVmRecoveryPoint",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vu(e,t)}(t,e),n=t,r=[{key:"getConsistencyGroupExtId",value:function(){return this.consistencyGroupExtId}},{key:"setConsistencyGroupExtId",value:function(e){this.consistencyGroupExtId=e}},{key:"getDiskRecoveryPoints",value:function(){return this.diskRecoveryPoints}},{key:"setDiskRecoveryPoints",value:function(e){this.diskRecoveryPoints=e}},{key:"getVmExtId",value:function(){return this.vmExtId}},{key:"setVmExtId",value:function(e){this.vmExtId=e}},{key:"getVmCategories",value:function(){return this.vmCategories}},{key:"setVmCategories",value:function(e){this.vmCategories=e}},{key:"getApplicationConsistentProperties",value:function(){return this.applicationConsistentProperties}},{key:"setApplicationConsistentProperties",value:function(e){this.applicationConsistentProperties=e}},{key:"toJson",value:function(e){return Nu(!1===e?Nu(Nu(Nu(Nu(Nu(Nu(Nu(Nu(Nu(Nu(Nu(Nu(Nu(Nu({},void 0!==this.getConsistencyGroupExtId()&&null!==this.getConsistencyGroupExtId()?{consistencyGroupExtId:this.getConsistencyGroupExtId()}:{}),void 0!==this.getDiskRecoveryPoints()&&null!==this.getDiskRecoveryPoints()?{diskRecoveryPoints:this.getDiskRecoveryPoints().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getVmExtId()&&null!==this.getVmExtId()?{vmExtId:this.getVmExtId()}:{}),void 0!==this.getVmCategories()&&null!==this.getVmCategories()?{vmCategories:this.getVmCategories()}:{}),void 0!==this.getApplicationConsistentProperties()&&null!==this.getApplicationConsistentProperties()?{applicationConsistentProperties:void 0!==this.getApplicationConsistentProperties().toJson?this.getApplicationConsistentProperties().toJson(!1):Array.isArray(this.getApplicationConsistentProperties())?this.getApplicationConsistentProperties().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Wu(Bu,this,qu).call(this,this.getApplicationConsistentProperties(),!1)}:{}),void 0!==this.getLocationAgnosticId()&&null!==this.getLocationAgnosticId()?{locationAgnosticId:this.getLocationAgnosticId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:Wu(Bu,this,Ku).call(this,this.getCreationTime(),!1)}:{}),void 0!==this.getExpirationTime()&&null!==this.getExpirationTime()?{expirationTime:Wu(Bu,this,Ku).call(this,this.getExpirationTime(),!1)}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getRecoveryPointType()&&null!==this.getRecoveryPointType()?{recoveryPointType:this.getRecoveryPointType()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Nu(Nu(Nu(Nu(Nu(Nu({},void 0!==this.getVmExtId()&&null!==this.getVmExtId()?{vmExtId:this.getVmExtId()}:{}),void 0!==this.getApplicationConsistentProperties()&&null!==this.getApplicationConsistentProperties()?{applicationConsistentProperties:void 0!==this.getApplicationConsistentProperties().toJson?this.getApplicationConsistentProperties().toJson():Array.isArray(this.getApplicationConsistentProperties())?this.getApplicationConsistentProperties().map((function(e){return void 0!==e.toJson?e.toJson():e})):Wu(Bu,this,qu).call(this,this.getApplicationConsistentProperties())}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getExpirationTime()&&null!==this.getExpirationTime()?{expirationTime:Wu(Bu,this,Ku).call(this,this.getExpirationTime(),!1)}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getRecoveryPointType()&&null!==this.getRecoveryPointType()?{recoveryPointType:this.getRecoveryPointType()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("consistencyGroupExtId"===t){if(void 0===this.consistencyGroupExtId||null===this.consistencyGroupExtId)return new C("consistencyGroupExtId","undefined or null");if(!I.validatePattern(this.consistencyGroupExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("consistencyGroupExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("diskRecoveryPoints"===t){if(void 0===this.diskRecoveryPoints||null===this.diskRecoveryPoints)return new C("diskRecoveryPoints","undefined or null");if(!I.validateMaxItems(this.diskRecoveryPoints,1024))return new C("diskRecoveryPoints","does not satisfy required maxItems constraint: 1024");if(!I.validateMinItems(this.diskRecoveryPoints,1))return new C("diskRecoveryPoints","does not satisfy required minItems constraint: 1")}if("vmExtId"===t){if(void 0===this.vmExtId||null===this.vmExtId)return new C("vmExtId","undefined or null");if(!I.validatePattern(this.vmExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("vmExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("vmCategories"===t){if(void 0===this.vmCategories||null===this.vmCategories)return new C("vmCategories","undefined or null");if(!I.validateMaxItems(this.vmCategories,256))return new C("vmCategories","does not satisfy required maxItems constraint: 256");if(!I.validateMinItems(this.vmCategories,1))return new C("vmCategories","does not satisfy required minItems constraint: 1")}return"applicationConsistentProperties"!==t||void 0!==this.applicationConsistentProperties&&null!==this.applicationConsistentProperties?new C(t,"no such property exists"):new C("applicationConsistentProperties","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,au.constructFromObject(e,s,!0),e.hasOwnProperty("consistencyGroupExtId")&&null!==e.consistencyGroupExtId&&void 0!==e.consistencyGroupExtId&&s.setConsistencyGroupExtId(e.consistencyGroupExtId),e.hasOwnProperty("diskRecoveryPoints")&&null!==e.diskRecoveryPoints&&void 0!==e.diskRecoveryPoints){for(i=[],n=e.diskRecoveryPoints,o=0;o<n.length;o++)r=ku.constructFromObject(n[o],void 0),i.push(r);s.setDiskRecoveryPoints(i)}if(e.hasOwnProperty("vmExtId")&&null!==e.vmExtId&&void 0!==e.vmExtId&&s.setVmExtId(e.vmExtId),e.hasOwnProperty("vmCategories")&&null!==e.vmCategories&&void 0!==e.vmCategories){for(i=[],n=e.vmCategories,o=0;o<n.length;o++)i.push(n[o]);s.setVmCategories(i)}if(e.hasOwnProperty("applicationConsistentProperties")&&null!==e.applicationConsistentProperties&&void 0!==e.applicationConsistentProperties){if("dataprotection.v4.common.VssProperties"!==(a=e.applicationConsistentProperties.hasOwnProperty("$objectType")?e.applicationConsistentProperties.$objectType:Cu(e.applicationConsistentProperties)))throw"Unknown datatype "+a+" in data";s.setApplicationConsistentProperties(Au.constructFromObject(e.applicationConsistentProperties,void 0))}if(!u)for(var c in s.$unknownFields=Nu({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Mu(n.prototype,r),o&&Mu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(au);function qu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Du(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Du(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Cu(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Ku(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Hu(e){return Hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hu(e)}function Zu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xu(e,t,n){return(t=Qu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qu(r.key),r)}}function Qu(e){var t=function(e){if("object"!=Hu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Hu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hu(t)?t:t+""}function ec(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ec=function(){return!!e})()}function tc(e){return tc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tc(e)}function nc(e,t){return nc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nc(e,t)}zu.prototype.consistencyGroupExtId=void 0,zu.prototype.diskRecoveryPoints=void 0,zu.prototype.vmExtId=void 0,zu.prototype.vmCategories=void 0,zu.prototype.applicationConsistentProperties=void 0,au.prototype.locationAgnosticId=void 0,au.prototype.name=void 0,au.prototype.creationTime=void 0,au.prototype.expirationTime=void 0,au.prototype.status=void 0,au.prototype.recoveryPointType=void 0,Bt.prototype.extId=void 0,Bt.prototype.links=void 0,Dt.prototype.tenantId=void 0;var rc=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=tc(t),function(e,t){if(t&&("object"==Hu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ec()?Reflect.construct(t,n||[],tc(e).constructor):t.apply(e,n))}(this,t)).$objectType="dataprotection.v4.config.VmRecoveryPoint",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nc(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return new C(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,zu.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zu(Object(n),!0).forEach((function(t){Xu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Yu(n.prototype,r),o&&Yu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(zu);function oc(e){return oc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oc(e)}function ic(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ac(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ic(Object(n),!0).forEach((function(t){sc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ic(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sc(e,t,n){return(t=cc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cc(r.key),r)}}function cc(e){var t=function(e){if("object"!=oc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=oc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oc(t)?t:t+""}function lc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lc=function(){return!!e})()}function fc(e){return fc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fc(e)}function pc(e,t){return pc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pc(e,t)}var dc=new WeakSet,yc=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(n=function(e,t,n){return t=fc(t),function(e,t){if(t&&("object"==oc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,lc()?Reflect.construct(t,n||[],fc(e).constructor):t.apply(e,n))}(this,t),dc),n.volumeGroupExtId=e,n.$objectType="dataprotection.v4.config.VolumeGroupRecoveryPoint",n.$reserved={$fv:"v4.r0"},n.$unknownFields={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pc(e,t)}(t,e),n=t,r=[{key:"getConsistencyGroupExtId",value:function(){return this.consistencyGroupExtId}},{key:"setConsistencyGroupExtId",value:function(e){this.consistencyGroupExtId=e}},{key:"getLocationAgnosticId",value:function(){return this.locationAgnosticId}},{key:"setLocationAgnosticId",value:function(e){this.locationAgnosticId=e}},{key:"getVolumeGroupExtId",value:function(){return this.volumeGroupExtId}},{key:"setVolumeGroupExtId",value:function(e){this.volumeGroupExtId=e}},{key:"getVolumeGroupCategories",value:function(){return this.volumeGroupCategories}},{key:"setVolumeGroupCategories",value:function(e){this.volumeGroupCategories=e}},{key:"getDiskRecoveryPoints",value:function(){return this.diskRecoveryPoints}},{key:"setDiskRecoveryPoints",value:function(e){this.diskRecoveryPoints=e}},{key:"toJson",value:function(e){return ac(!1===e?ac(ac(ac(ac(ac(ac(ac(ac({},void 0!==this.getConsistencyGroupExtId()&&null!==this.getConsistencyGroupExtId()?{consistencyGroupExtId:this.getConsistencyGroupExtId()}:{}),void 0!==this.getLocationAgnosticId()&&null!==this.getLocationAgnosticId()?{locationAgnosticId:this.getLocationAgnosticId()}:{}),void 0!==this.getVolumeGroupExtId()&&null!==this.getVolumeGroupExtId()?{volumeGroupExtId:this.getVolumeGroupExtId()}:{}),void 0!==this.getVolumeGroupCategories()&&null!==this.getVolumeGroupCategories()?{volumeGroupCategories:this.getVolumeGroupCategories()}:{}),void 0!==this.getDiskRecoveryPoints()&&null!==this.getDiskRecoveryPoints()?{diskRecoveryPoints:this.getDiskRecoveryPoints().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):ac({},void 0!==this.getVolumeGroupExtId()&&null!==this.getVolumeGroupExtId()?{volumeGroupExtId:this.getVolumeGroupExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["volumeGroupExtId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("consistencyGroupExtId"===t){if(void 0===this.consistencyGroupExtId||null===this.consistencyGroupExtId)return new C("consistencyGroupExtId","undefined or null");if(!I.validatePattern(this.consistencyGroupExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("consistencyGroupExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("locationAgnosticId"===t){if(void 0===this.locationAgnosticId||null===this.locationAgnosticId)return new C("locationAgnosticId","undefined or null");if(!I.validatePattern(this.locationAgnosticId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("locationAgnosticId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("volumeGroupExtId"===t){if(void 0===this.volumeGroupExtId||null===this.volumeGroupExtId)return new C("volumeGroupExtId","undefined or null");if(!I.validatePattern(this.volumeGroupExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("volumeGroupExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("volumeGroupCategories"===t){if(void 0===this.volumeGroupCategories||null===this.volumeGroupCategories)return new C("volumeGroupCategories","undefined or null");if(!I.validateMaxItems(this.volumeGroupCategories,20))return new C("volumeGroupCategories","does not satisfy required maxItems constraint: 20");if(!I.validateMinItems(this.volumeGroupCategories,1))return new C("volumeGroupCategories","does not satisfy required minItems constraint: 1")}if("diskRecoveryPoints"===t){if(void 0===this.diskRecoveryPoints||null===this.diskRecoveryPoints)return new C("diskRecoveryPoints","undefined or null");if(!I.validateMaxItems(this.diskRecoveryPoints,1024))return new C("diskRecoveryPoints","does not satisfy required maxItems constraint: 1024");if(!I.validateMinItems(this.diskRecoveryPoints,1))return new C("diskRecoveryPoints","does not satisfy required minItems constraint: 1")}return new C(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,Bt.constructFromObject(e,a,!0),e.hasOwnProperty("consistencyGroupExtId")&&null!==e.consistencyGroupExtId&&void 0!==e.consistencyGroupExtId&&a.setConsistencyGroupExtId(e.consistencyGroupExtId),e.hasOwnProperty("locationAgnosticId")&&null!==e.locationAgnosticId&&void 0!==e.locationAgnosticId&&a.setLocationAgnosticId(e.locationAgnosticId),e.hasOwnProperty("volumeGroupExtId")&&null!==e.volumeGroupExtId&&void 0!==e.volumeGroupExtId&&a.setVolumeGroupExtId(e.volumeGroupExtId),e.hasOwnProperty("volumeGroupCategories")&&null!==e.volumeGroupCategories&&void 0!==e.volumeGroupCategories){for(i=[],n=e.volumeGroupCategories,o=0;o<n.length;o++)i.push(n[o]);a.setVolumeGroupCategories(i)}if(e.hasOwnProperty("diskRecoveryPoints")&&null!==e.diskRecoveryPoints&&void 0!==e.diskRecoveryPoints){for(i=[],n=e.diskRecoveryPoints,o=0;o<n.length;o++)r=ku.constructFromObject(n[o],void 0),i.push(r);a.setDiskRecoveryPoints(i)}if(!s)for(var u in a.$unknownFields=ac({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&uc(n.prototype,r),o&&uc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Bt);function vc(e){return vc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vc(e)}function hc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hc(Object(n),!0).forEach((function(t){mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mc(e,t,n){return(t=wc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wc(r.key),r)}}function wc(e){var t=function(e){if("object"!=vc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vc(t)?t:t+""}function Oc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Oc=function(){return!!e})()}function jc(e){return jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jc(e)}function kc(e,t){return kc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kc(e,t)}function $c(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}yc.prototype.consistencyGroupExtId=void 0,yc.prototype.locationAgnosticId=void 0,yc.prototype.volumeGroupExtId=void 0,yc.prototype.volumeGroupCategories=void 0,yc.prototype.diskRecoveryPoints=void 0,Bt.prototype.extId=void 0,Bt.prototype.links=void 0,Dt.prototype.tenantId=void 0;var Pc=new WeakSet,Tc=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=jc(t),function(e,t){if(t&&("object"==vc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Oc()?Reflect.construct(t,n||[],jc(e).constructor):t.apply(e,n))}(this,t),Pc),e.$objectType="dataprotection.v4.config.RecoveryPoint",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kc(e,t)}(t,e),n=t,r=[{key:"getOwnerExtId",value:function(){return this.ownerExtId}},{key:"setOwnerExtId",value:function(e){this.ownerExtId=e}},{key:"getLocationReferences",value:function(){return this.locationReferences}},{key:"setLocationReferences",value:function(e){this.locationReferences=e}},{key:"getVmRecoveryPoints",value:function(){return this.vmRecoveryPoints}},{key:"setVmRecoveryPoints",value:function(e){this.vmRecoveryPoints=e}},{key:"getVolumeGroupRecoveryPoints",value:function(){return this.volumeGroupRecoveryPoints}},{key:"setVolumeGroupRecoveryPoints",value:function(e){this.volumeGroupRecoveryPoints=e}},{key:"toJson",value:function(e){return bc(!1===e?bc(bc(bc(bc(bc(bc(bc(bc(bc(bc(bc(bc(bc({},void 0!==this.getOwnerExtId()&&null!==this.getOwnerExtId()?{ownerExtId:this.getOwnerExtId()}:{}),void 0!==this.getLocationReferences()&&null!==this.getLocationReferences()?{locationReferences:this.getLocationReferences().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getVmRecoveryPoints()&&null!==this.getVmRecoveryPoints()?{vmRecoveryPoints:this.getVmRecoveryPoints().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getVolumeGroupRecoveryPoints()&&null!==this.getVolumeGroupRecoveryPoints()?{volumeGroupRecoveryPoints:this.getVolumeGroupRecoveryPoints().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getLocationAgnosticId()&&null!==this.getLocationAgnosticId()?{locationAgnosticId:this.getLocationAgnosticId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:$c(Pc,this,Ec).call(this,this.getCreationTime(),!1)}:{}),void 0!==this.getExpirationTime()&&null!==this.getExpirationTime()?{expirationTime:$c(Pc,this,Ec).call(this,this.getExpirationTime(),!1)}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getRecoveryPointType()&&null!==this.getRecoveryPointType()?{recoveryPointType:this.getRecoveryPointType()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):bc(bc(bc(bc(bc(bc({},void 0!==this.getVmRecoveryPoints()&&null!==this.getVmRecoveryPoints()?{vmRecoveryPoints:this.getVmRecoveryPoints().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getVolumeGroupRecoveryPoints()&&null!==this.getVolumeGroupRecoveryPoints()?{volumeGroupRecoveryPoints:this.getVolumeGroupRecoveryPoints().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getExpirationTime()&&null!==this.getExpirationTime()?{expirationTime:$c(Pc,this,Ec).call(this,this.getExpirationTime(),!1)}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getRecoveryPointType()&&null!==this.getRecoveryPointType()?{recoveryPointType:this.getRecoveryPointType()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("ownerExtId"===t){if(void 0===this.ownerExtId||null===this.ownerExtId)return new C("ownerExtId","undefined or null");if(!I.validatePattern(this.ownerExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("ownerExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("locationReferences"===t){if(void 0===this.locationReferences||null===this.locationReferences)return new C("locationReferences","undefined or null");if(!I.validateMaxItems(this.locationReferences,1))return new C("locationReferences","does not satisfy required maxItems constraint: 1");if(!I.validateMinItems(this.locationReferences,1))return new C("locationReferences","does not satisfy required minItems constraint: 1")}if("vmRecoveryPoints"===t){if(void 0===this.vmRecoveryPoints||null===this.vmRecoveryPoints)return new C("vmRecoveryPoints","undefined or null");if(!I.validateMaxItems(this.vmRecoveryPoints,30))return new C("vmRecoveryPoints","does not satisfy required maxItems constraint: 30");if(!I.validateMinItems(this.vmRecoveryPoints,1))return new C("vmRecoveryPoints","does not satisfy required minItems constraint: 1")}if("volumeGroupRecoveryPoints"===t){if(void 0===this.volumeGroupRecoveryPoints||null===this.volumeGroupRecoveryPoints)return new C("volumeGroupRecoveryPoints","undefined or null");if(!I.validateMaxItems(this.volumeGroupRecoveryPoints,30))return new C("volumeGroupRecoveryPoints","does not satisfy required maxItems constraint: 30");if(!I.validateMinItems(this.volumeGroupRecoveryPoints,1))return new C("volumeGroupRecoveryPoints","does not satisfy required minItems constraint: 1")}return new C(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,au.constructFromObject(e,a,!0),e.hasOwnProperty("ownerExtId")&&null!==e.ownerExtId&&void 0!==e.ownerExtId&&a.setOwnerExtId(e.ownerExtId),e.hasOwnProperty("locationReferences")&&null!==e.locationReferences&&void 0!==e.locationReferences){for(i=[],n=e.locationReferences,o=0;o<n.length;o++)r=vu.constructFromObject(n[o],void 0),i.push(r);a.setLocationReferences(i)}if(e.hasOwnProperty("vmRecoveryPoints")&&null!==e.vmRecoveryPoints&&void 0!==e.vmRecoveryPoints){for(i=[],n=e.vmRecoveryPoints,o=0;o<n.length;o++)r=rc.constructFromObject(n[o],void 0),i.push(r);a.setVmRecoveryPoints(i)}if(e.hasOwnProperty("volumeGroupRecoveryPoints")&&null!==e.volumeGroupRecoveryPoints&&void 0!==e.volumeGroupRecoveryPoints){for(i=[],n=e.volumeGroupRecoveryPoints,o=0;o<n.length;o++)r=yc.constructFromObject(n[o],void 0),i.push(r);a.setVolumeGroupRecoveryPoints(i)}if(!s)for(var u in a.$unknownFields=bc({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&gc(n.prototype,r),o&&gc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(au);function Ec(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Fc(e){return Fc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fc(e)}function Sc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rc(e,t,n){return(t=xc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ic(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xc(r.key),r)}}function xc(e){var t=function(e){if("object"!=Fc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Fc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fc(t)?t:t+""}function Ac(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ac=function(){return!!e})()}function Dc(e){return Dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dc(e)}function Cc(e,t){return Cc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cc(e,t)}Tc.prototype.ownerExtId=void 0,Tc.prototype.locationReferences=void 0,Tc.prototype.vmRecoveryPoints=void 0,Tc.prototype.volumeGroupRecoveryPoints=void 0,au.prototype.locationAgnosticId=void 0,au.prototype.name=void 0,au.prototype.creationTime=void 0,au.prototype.expirationTime=void 0,au.prototype.status=void 0,au.prototype.recoveryPointType=void 0,Bt.prototype.extId=void 0,Bt.prototype.links=void 0,Dt.prototype.tenantId=void 0;var _c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Dc(t),function(e,t){if(t&&("object"==Fc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ac()?Reflect.construct(t,n||[],Dc(e).constructor):t.apply(e,n))}(this,t)).$objectType="dataprotection.v4.config.RecoveryPointProjection",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cc(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return new C(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Tc.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sc(Object(n),!0).forEach((function(t){Rc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Ic(n.prototype,r),o&&Ic(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Tc);function Nc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Jc(e){return Jc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jc(e)}function Mc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mc(Object(n),!0).forEach((function(t){Gc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gc(e,t,n){return(t=Vc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vc(r.key),r)}}function Vc(e){var t=function(e){if("object"!=Jc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Jc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Jc(t)?t:t+""}function Wc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wc=function(){return!!e})()}function Bc(e){return Bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bc(e)}function zc(e,t){return zc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zc(e,t)}function qc(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Kc=new WeakSet,Hc=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Bc(t),function(e,t){if(t&&("object"==Jc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Wc()?Reflect.construct(t,n||[],Bc(e).constructor):t.apply(e,n))}(this,t),Kc),e.$objectType="dataprotection.v4.config.ListRecoveryPointsApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zc(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Uc(Uc(Uc({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):qc(Kc,this,Zc).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):qc(Kc,this,Zc).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("data","undefined or null"):new C("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&c.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(Je.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Jc(n[0]),o=0;o<n.length;o++)switch(a){case"dataprotection.v4.config.RecoveryPoint":r=Tc.constructFromObject(n[o],void 0),i.push(r);break;case"dataprotection.v4.config.RecoveryPointProjection":r=_c.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+a+" in data"}s.setData(i)}else{if("dataprotection.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Jc(e.data)))throw"Unknown datatype "+a+" in data";s.setData(_r.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var l in s.$unknownFields=Uc({},e.$unknownFields),e)Object.keys(s).includes(l)||Object.keys(s).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(s.$unknownFields[l]=e[l])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Lc(n.prototype,r),o&&Lc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c);function Zc(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Nc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nc(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Jc(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Xc(e){return Xc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xc(e)}function Yc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yc(Object(n),!0).forEach((function(t){el(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function el(e,t,n){return(t=nl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nl(r.key),r)}}function nl(e){var t=function(e){if("object"!=Xc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xc(t)?t:t+""}Hc.prototype.metadata=void 0,Hc.prototype.data=void 0,Hc.prototype.$reserved=void 0,Hc.prototype.$objectType=void 0,Hc.prototype.$unknownFields=void 0;var rl=new WeakSet,ol=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,rl),this.$objectType="dataprotection.v4.config.VmRecoveryPointRestoreOverride",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getVmRecoveryPointExtId",value:function(){return this.vmRecoveryPointExtId}},{key:"setVmRecoveryPointExtId",value:function(e){this.vmRecoveryPointExtId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Qc(Qc({},void 0!==this.getVmRecoveryPointExtId()&&null!==this.getVmRecoveryPointExtId()?{vmRecoveryPointExtId:this.getVmRecoveryPointExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("vmRecoveryPointExtId"===t){if(void 0===this.vmRecoveryPointExtId||null===this.vmRecoveryPointExtId)return new C("vmRecoveryPointExtId","undefined or null");if(!I.validatePattern(this.vmRecoveryPointExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("vmRecoveryPointExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("vmRecoveryPointExtId")&&null!==t.vmRecoveryPointExtId&&void 0!==t.vmRecoveryPointExtId&&n.setVmRecoveryPointExtId(t.vmRecoveryPointExtId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Qc({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&tl(t.prototype,n),r&&tl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function il(e){return il="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},il(e)}function al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?al(Object(n),!0).forEach((function(t){ul(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):al(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ul(e,t,n){return(t=ll(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ll(r.key),r)}}function ll(e){var t=function(e){if("object"!=il(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=il(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==il(t)?t:t+""}ol.prototype.vmRecoveryPointExtId=void 0,ol.prototype.$reserved=void 0,ol.prototype.$objectType=void 0,ol.prototype.$unknownFields=void 0;var fl=new WeakSet,pl=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,fl),this.$objectType="dataprotection.v4.config.VolumeGroupOverrideSpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return sl(sl({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new C("name","undefined or null");if(!I.validateMaxLength(this.name,256))return new C("name","does not satisfy required maxLength constraint: 256")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=sl({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&cl(t.prototype,n),r&&cl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function dl(e){return dl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dl(e)}function yl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yl(Object(n),!0).forEach((function(t){hl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hl(e,t,n){return(t=ml(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ml(r.key),r)}}function ml(e){var t=function(e){if("object"!=dl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dl(t)?t:t+""}pl.prototype.name=void 0,pl.prototype.$reserved=void 0,pl.prototype.$objectType=void 0,pl.prototype.$unknownFields=void 0;var gl=new WeakSet,wl=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,gl),this.$objectType="dataprotection.v4.config.VolumeGroupRecoveryPointRestoreOverride",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getVolumeGroupRecoveryPointExtId",value:function(){return this.volumeGroupRecoveryPointExtId}},{key:"setVolumeGroupRecoveryPointExtId",value:function(e){this.volumeGroupRecoveryPointExtId=e}},{key:"getVolumeGroupOverrideSpec",value:function(){return this.volumeGroupOverrideSpec}},{key:"setVolumeGroupOverrideSpec",value:function(e){this.volumeGroupOverrideSpec=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return vl(vl(vl({},void 0!==this.getVolumeGroupRecoveryPointExtId()&&null!==this.getVolumeGroupRecoveryPointExtId()?{volumeGroupRecoveryPointExtId:this.getVolumeGroupRecoveryPointExtId()}:{}),void 0!==this.getVolumeGroupOverrideSpec()&&null!==this.getVolumeGroupOverrideSpec()?{volumeGroupOverrideSpec:this.getVolumeGroupOverrideSpec().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("volumeGroupRecoveryPointExtId"===t){if(void 0===this.volumeGroupRecoveryPointExtId||null===this.volumeGroupRecoveryPointExtId)return new C("volumeGroupRecoveryPointExtId","undefined or null");if(!I.validatePattern(this.volumeGroupRecoveryPointExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("volumeGroupRecoveryPointExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"volumeGroupOverrideSpec"!==t||void 0!==this.volumeGroupOverrideSpec&&null!==this.volumeGroupOverrideSpec?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("volumeGroupOverrideSpec","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("volumeGroupRecoveryPointExtId")&&null!==t.volumeGroupRecoveryPointExtId&&void 0!==t.volumeGroupRecoveryPointExtId&&n.setVolumeGroupRecoveryPointExtId(t.volumeGroupRecoveryPointExtId),t.hasOwnProperty("volumeGroupOverrideSpec")&&null!==t.volumeGroupOverrideSpec&&void 0!==t.volumeGroupOverrideSpec&&n.setVolumeGroupOverrideSpec(pl.constructFromObject(t.volumeGroupOverrideSpec)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=vl({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&bl(t.prototype,n),r&&bl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ol(e){return Ol="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ol(e)}function jl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jl(Object(n),!0).forEach((function(t){$l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $l(e,t,n){return(t=Tl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tl(r.key),r)}}function Tl(e){var t=function(e){if("object"!=Ol(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ol(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ol(t)?t:t+""}wl.prototype.volumeGroupRecoveryPointExtId=void 0,wl.prototype.volumeGroupOverrideSpec=void 0,wl.prototype.$reserved=void 0,wl.prototype.$objectType=void 0,wl.prototype.$unknownFields=void 0;var El=new WeakSet,Fl=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,El),this.$objectType="dataprotection.v4.config.RecoveryPointRestorationSpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getVmRecoveryPointRestoreOverrides",value:function(){return this.vmRecoveryPointRestoreOverrides}},{key:"setVmRecoveryPointRestoreOverrides",value:function(e){this.vmRecoveryPointRestoreOverrides=e}},{key:"getVolumeGroupRecoveryPointRestoreOverrides",value:function(){return this.volumeGroupRecoveryPointRestoreOverrides}},{key:"setVolumeGroupRecoveryPointRestoreOverrides",value:function(e){this.volumeGroupRecoveryPointRestoreOverrides=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return kl(kl(kl(kl({},void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getVmRecoveryPointRestoreOverrides()&&null!==this.getVmRecoveryPointRestoreOverrides()?{vmRecoveryPointRestoreOverrides:this.getVmRecoveryPointRestoreOverrides().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getVolumeGroupRecoveryPointRestoreOverrides()&&null!==this.getVolumeGroupRecoveryPointRestoreOverrides()?{volumeGroupRecoveryPointRestoreOverrides:this.getVolumeGroupRecoveryPointRestoreOverrides().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new C("clusterExtId","undefined or null");if(!I.validatePattern(this.clusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("clusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("vmRecoveryPointRestoreOverrides"===t){if(void 0===this.vmRecoveryPointRestoreOverrides||null===this.vmRecoveryPointRestoreOverrides)return new C("vmRecoveryPointRestoreOverrides","undefined or null");if(!I.validateMaxItems(this.vmRecoveryPointRestoreOverrides,30))return new C("vmRecoveryPointRestoreOverrides","does not satisfy required maxItems constraint: 30");if(!I.validateMinItems(this.vmRecoveryPointRestoreOverrides,1))return new C("vmRecoveryPointRestoreOverrides","does not satisfy required minItems constraint: 1")}if("volumeGroupRecoveryPointRestoreOverrides"===t){if(void 0===this.volumeGroupRecoveryPointRestoreOverrides||null===this.volumeGroupRecoveryPointRestoreOverrides)return new C("volumeGroupRecoveryPointRestoreOverrides","undefined or null");if(!I.validateMaxItems(this.volumeGroupRecoveryPointRestoreOverrides,30))return new C("volumeGroupRecoveryPointRestoreOverrides","does not satisfy required maxItems constraint: 30");if(!I.validateMinItems(this.volumeGroupRecoveryPointRestoreOverrides,1))return new C("volumeGroupRecoveryPointRestoreOverrides","does not satisfy required minItems constraint: 1")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("clusterExtId")&&null!==t.clusterExtId&&void 0!==t.clusterExtId&&a.setClusterExtId(t.clusterExtId),t.hasOwnProperty("vmRecoveryPointRestoreOverrides")&&null!==t.vmRecoveryPointRestoreOverrides&&void 0!==t.vmRecoveryPointRestoreOverrides){for(i=[],n=t.vmRecoveryPointRestoreOverrides,o=0;o<n.length;o++)r=ol.constructFromObject(n[o],void 0),i.push(r);a.setVmRecoveryPointRestoreOverrides(i)}if(t.hasOwnProperty("volumeGroupRecoveryPointRestoreOverrides")&&null!==t.volumeGroupRecoveryPointRestoreOverrides&&void 0!==t.volumeGroupRecoveryPointRestoreOverrides){for(i=[],n=t.volumeGroupRecoveryPointRestoreOverrides,o=0;o<n.length;o++)r=wl.constructFromObject(n[o],void 0),i.push(r);a.setVolumeGroupRecoveryPointRestoreOverrides(i)}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=kl({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Pl(t.prototype,n),r&&Pl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Sl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Rl(e){return Rl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rl(e)}function Il(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Il(Object(n),!0).forEach((function(t){Al(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Il(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Al(e,t,n){return(t=Cl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Cl(r.key),r)}}function Cl(e){var t=function(e){if("object"!=Rl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Rl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rl(t)?t:t+""}function _l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_l=function(){return!!e})()}function Nl(e){return Nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Nl(e)}function Jl(e,t){return Jl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jl(e,t)}function Ml(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Fl.prototype.clusterExtId=void 0,Fl.prototype.vmRecoveryPointRestoreOverrides=void 0,Fl.prototype.volumeGroupRecoveryPointRestoreOverrides=void 0,Fl.prototype.$reserved=void 0,Fl.prototype.$objectType=void 0,Fl.prototype.$unknownFields=void 0;var Ul=new WeakSet,Gl=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Nl(t),function(e,t){if(t&&("object"==Rl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_l()?Reflect.construct(t,n||[],Nl(e).constructor):t.apply(e,n))}(this,t),Ul),e.$objectType="dataprotection.v4.config.GetRecoveryPointApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jl(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return xl(xl(xl({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Ml(Ul,this,Ll).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Ml(Ul,this,Ll).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("data","undefined or null"):new C("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&c.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Je.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Rl(e.data)){case"dataprotection.v4.config.RecoveryPoint":r.setData(Tc.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":r.setData(_r.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=xl({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Dl(n.prototype,r),o&&Dl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c);function Ll(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Sl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sl(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Rl(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}Gl.prototype.metadata=void 0,Gl.prototype.data=void 0,Gl.prototype.$reserved=void 0,Gl.prototype.$objectType=void 0,Gl.prototype.$unknownFields=void 0;var Vl={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ZEROED:"ZEROED",REGULAR:"REGULAR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Vl).find((function(t){return Vl[t]===e}));return null==t?Vl.$UNKNOWN:Vl[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Vl.$UNKNOWN:case Vl.$REDACTED:case Vl.ZEROED:case Vl.REGULAR:return;default:throw new Error("Invalid : must be RegionType.{ $UNKNOWN|$REDACTED|ZEROED|REGULAR }")}}};Object.freeze(Vl);const Wl=Vl;function Bl(e){return Bl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bl(e)}function zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ql(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zl(Object(n),!0).forEach((function(t){Kl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kl(e,t,n){return(t=Zl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zl(r.key),r)}}function Zl(e){var t=function(e){if("object"!=Bl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Bl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Bl(t)?t:t+""}var Xl=new WeakSet,Yl=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Xl),this.offset=t,this.length=n,this.regionType=r,this.$objectType="dataprotection.v4.content.ChangedRegion",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getOffset",value:function(){return this.offset}},{key:"setOffset",value:function(e){this.offset=e}},{key:"getLength",value:function(){return this.length}},{key:"setLength",value:function(e){this.length=e}},{key:"getRegionType",value:function(){return this.regionType}},{key:"setRegionType",value:function(e){this.regionType=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ql(ql(ql(ql({},void 0!==this.getOffset()&&null!==this.getOffset()?{offset:this.getOffset()}:{}),void 0!==this.getLength()&&null!==this.getLength()?{length:this.getLength()}:{}),void 0!==this.getRegionType()&&null!==this.getRegionType()?{regionType:this.getRegionType()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["offset","length","regionType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"offset"!==t||void 0!==this.offset&&null!==this.offset?"length"!==t||void 0!==this.length&&null!==this.length?"regionType"!==t||void 0!==this.regionType&&null!==this.regionType?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("regionType","undefined or null"):new C("length","undefined or null"):new C("offset","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("offset")&&null!==t.offset&&void 0!==t.offset&&n.setOffset(t.offset),t.hasOwnProperty("length")&&null!==t.length&&void 0!==t.length&&n.setLength(t.length),t.hasOwnProperty("regionType")&&null!==t.regionType&&void 0!==t.regionType&&n.setRegionType(Wl.constructFromObject(t.regionType)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ql({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Hl(t.prototype,n),r&&Hl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ql(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ef(e){return ef="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ef(e)}function tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tf(Object(n),!0).forEach((function(t){rf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rf(e,t,n){return(t=af(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function of(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,af(r.key),r)}}function af(e){var t=function(e){if("object"!=ef(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ef(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ef(t)?t:t+""}function sf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sf=function(){return!!e})()}function uf(e){return uf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uf(e)}function cf(e,t){return cf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cf(e,t)}function lf(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Yl.prototype.offset=void 0,Yl.prototype.length=void 0,Yl.prototype.regionType=void 0,Yl.prototype.$reserved=void 0,Yl.prototype.$objectType=void 0,Yl.prototype.$unknownFields=void 0;var ff=new WeakSet,pf=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=uf(t),function(e,t){if(t&&("object"==ef(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,sf()?Reflect.construct(t,n||[],uf(e).constructor):t.apply(e,n))}(this,t),ff),e.$objectType="dataprotection.v4.content.ChangedVmRegionsApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cf(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return nf(nf(nf({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):lf(ff,this,df).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):lf(ff,this,df).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("data","undefined or null"):new C("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&c.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(Je.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:ef(n[0]),o=0;o<n.length;o++){if("dataprotection.v4.content.ChangedRegion"!==a)throw"Unknown list of type "+a+" in data";r=Yl.constructFromObject(n[o],void 0),i.push(r)}s.setData(i)}else{if("dataprotection.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ef(e.data)))throw"Unknown datatype "+a+" in data";s.setData(_r.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var l in s.$unknownFields=nf({},e.$unknownFields),e)Object.keys(s).includes(l)||Object.keys(s).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(s.$unknownFields[l]=e[l])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&of(n.prototype,r),o&&of(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c);function df(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ql(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ql(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===ef(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function yf(e){return yf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yf(e)}function vf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vf(Object(n),!0).forEach((function(t){bf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bf(e,t,n){return(t=gf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gf(r.key),r)}}function gf(e){var t=function(e){if("object"!=yf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yf(t)?t:t+""}function wf(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}pf.prototype.metadata=void 0,pf.prototype.data=void 0,pf.prototype.$reserved=void 0,pf.prototype.$objectType=void 0,pf.prototype.$unknownFields=void 0;var Of=new WeakSet,jf=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Of),this.expirationTime=t,this.$objectType="dataprotection.v4.config.ExpirationTimeSpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getExpirationTime",value:function(){return this.expirationTime}},{key:"setExpirationTime",value:function(e){this.expirationTime=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return hf(hf({},void 0!==this.getExpirationTime()&&null!==this.getExpirationTime()?{expirationTime:wf(Of,this,kf).call(this,this.getExpirationTime(),!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["expirationTime"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"expirationTime"!==t||void 0!==this.expirationTime&&null!==this.expirationTime?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("expirationTime","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("expirationTime")&&null!==t.expirationTime&&void 0!==t.expirationTime&&n.setExpirationTime(t.expirationTime),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=hf({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&mf(t.prototype,n),r&&mf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function kf(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function $f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pf(e){return Pf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pf(e)}function Tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ef(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tf(Object(n),!0).forEach((function(t){Ff(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ff(e,t,n){return(t=Rf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rf(r.key),r)}}function Rf(e){var t=function(e){if("object"!=Pf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Pf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pf(t)?t:t+""}function If(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(If=function(){return!!e})()}function xf(e){return xf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xf(e)}function Af(e,t){return Af=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Af(e,t)}function Df(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}jf.prototype.expirationTime=void 0,jf.prototype.$reserved=void 0,jf.prototype.$objectType=void 0,jf.prototype.$unknownFields=void 0;var Cf=new WeakSet,_f=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=xf(t),function(e,t){if(t&&("object"==Pf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,If()?Reflect.construct(t,n||[],xf(e).constructor):t.apply(e,n))}(this,t),Cf),e.$objectType="dataprotection.v4.config.CreateRecoveryPointApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Af(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ef(Ef(Ef({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Df(Cf,this,Nf).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Df(Cf,this,Nf).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("data","undefined or null"):new C("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&c.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Je.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Pf(e.data)){case"prism.v4.config.TaskReference":r.setData(io.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":r.setData(_r.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Ef({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Sf(n.prototype,r),o&&Sf(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c);function Nf(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return $f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$f(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Pf(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Jf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Mf(e){return Mf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mf(e)}function Uf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uf(Object(n),!0).forEach((function(t){Lf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lf(e,t,n){return(t=Wf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wf(r.key),r)}}function Wf(e){var t=function(e){if("object"!=Mf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Mf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mf(t)?t:t+""}function Bf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Bf=function(){return!!e})()}function zf(e){return zf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zf(e)}function qf(e,t){return qf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qf(e,t)}function Kf(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}_f.prototype.metadata=void 0,_f.prototype.data=void 0,_f.prototype.$reserved=void 0,_f.prototype.$objectType=void 0,_f.prototype.$unknownFields=void 0;var Hf=new WeakSet,Zf=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=zf(t),function(e,t){if(t&&("object"==Mf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Bf()?Reflect.construct(t,n||[],zf(e).constructor):t.apply(e,n))}(this,t),Hf),e.$objectType="dataprotection.v4.content.GetVssMetadataApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qf(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Gf(Gf(Gf({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Kf(Hf,this,Xf).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Kf(Hf,this,Xf).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("data","undefined or null"):new C("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&c.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Je.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Mf(e.data)){case"Map":r.setData(e.data);break;case"dataprotection.v4.error.ErrorResponse":r.setData(_r.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Gf({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Vf(n.prototype,r),o&&Vf(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c);function Xf(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Jf(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jf(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Mf(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Yf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Qf(e){return Qf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qf(e)}function ep(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ep(Object(n),!0).forEach((function(t){np(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ep(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function np(e,t,n){return(t=op(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,op(r.key),r)}}function op(e){var t=function(e){if("object"!=Qf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qf(t)?t:t+""}function ip(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ip=function(){return!!e})()}function ap(e){return ap=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ap(e)}function sp(e,t){return sp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sp(e,t)}function up(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Zf.prototype.metadata=void 0,Zf.prototype.data=void 0,Zf.prototype.$reserved=void 0,Zf.prototype.$objectType=void 0,Zf.prototype.$unknownFields=void 0;var cp=new WeakSet,lp=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=ap(t),function(e,t){if(t&&("object"==Qf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ip()?Reflect.construct(t,n||[],ap(e).constructor):t.apply(e,n))}(this,t),cp),e.$objectType="dataprotection.v4.config.RecoveryPointRestoreApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sp(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return tp(tp(tp({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):up(cp,this,fp).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):up(cp,this,fp).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("data","undefined or null"):new C("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&c.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Je.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Qf(e.data)){case"prism.v4.config.TaskReference":r.setData(io.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":r.setData(_r.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=tp({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&rp(n.prototype,r),o&&rp(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c);function fp(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Yf(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yf(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Qf(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function pp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function dp(e){return dp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dp(e)}function yp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yp(Object(n),!0).forEach((function(t){hp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hp(e,t,n){return(t=mp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mp(r.key),r)}}function mp(e){var t=function(e){if("object"!=dp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dp(t)?t:t+""}function gp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gp=function(){return!!e})()}function wp(e){return wp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wp(e)}function Op(e,t){return Op=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Op(e,t)}function jp(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}lp.prototype.metadata=void 0,lp.prototype.data=void 0,lp.prototype.$reserved=void 0,lp.prototype.$objectType=void 0,lp.prototype.$unknownFields=void 0;var kp=new WeakSet,$p=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=wp(t),function(e,t){if(t&&("object"==dp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,gp()?Reflect.construct(t,n||[],wp(e).constructor):t.apply(e,n))}(this,t),kp),e.$objectType="dataprotection.v4.config.DeleteRecoveryPointApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Op(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return vp(vp(vp({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):jp(kp,this,Pp).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):jp(kp,this,Pp).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("data","undefined or null"):new C("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&c.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Je.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:dp(e.data)){case"prism.v4.config.TaskReference":r.setData(io.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":r.setData(_r.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=vp({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&bp(n.prototype,r),o&&bp(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c);function Pp(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return pp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pp(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===dp(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Tp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ep(e){return Ep="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ep(e)}function Fp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fp(Object(n),!0).forEach((function(t){Rp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rp(e,t,n){return(t=xp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ip(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xp(r.key),r)}}function xp(e){var t=function(e){if("object"!=Ep(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ep(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ep(t)?t:t+""}function Ap(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ap=function(){return!!e})()}function Dp(e){return Dp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dp(e)}function Cp(e,t){return Cp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cp(e,t)}function _p(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}$p.prototype.metadata=void 0,$p.prototype.data=void 0,$p.prototype.$reserved=void 0,$p.prototype.$objectType=void 0,$p.prototype.$unknownFields=void 0;var Np=new WeakSet,Jp=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Dp(t),function(e,t){if(t&&("object"==Ep(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ap()?Reflect.construct(t,n||[],Dp(e).constructor):t.apply(e,n))}(this,t),Np),e.$objectType="dataprotection.v4.config.GetVmRecoveryPointApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cp(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Sp(Sp(Sp({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):_p(Np,this,Mp).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):_p(Np,this,Mp).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("data","undefined or null"):new C("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&c.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Je.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ep(e.data)){case"dataprotection.v4.config.VmRecoveryPoint":r.setData(rc.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":r.setData(_r.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Sp({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Ip(n.prototype,r),o&&Ip(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c);function Mp(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Tp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tp(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Ep(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Up(e){return Up="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Up(e)}function Gp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gp(Object(n),!0).forEach((function(t){Vp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vp(e,t,n){return(t=Bp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bp(r.key),r)}}function Bp(e){var t=function(e){if("object"!=Up(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Up(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Up(t)?t:t+""}function zp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zp=function(){return!!e})()}function qp(e){return qp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qp(e)}function Kp(e,t){return Kp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kp(e,t)}Jp.prototype.metadata=void 0,Jp.prototype.data=void 0,Jp.prototype.$reserved=void 0,Jp.prototype.$objectType=void 0,Jp.prototype.$unknownFields=void 0;var Hp=new WeakSet,Zp=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=qp(t),function(e,t){if(t&&("object"==Up(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,zp()?Reflect.construct(t,n||[],qp(e).constructor):t.apply(e,n))}(this,t),Hp),e.$objectType="dataprotection.v4.content.VolumeGroupDiskRecoveryPointClusterDiscoverSpec",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kp(e,t)}(t,e),n=t,r=[{key:"getReferenceVolumeGroupRecoveryPointExtId",value:function(){return this.referenceVolumeGroupRecoveryPointExtId}},{key:"setReferenceVolumeGroupRecoveryPointExtId",value:function(e){this.referenceVolumeGroupRecoveryPointExtId=e}},{key:"toJson",value:function(e){return Lp(Lp(Lp(Lp({},void 0!==this.getReferenceVolumeGroupRecoveryPointExtId()&&null!==this.getReferenceVolumeGroupRecoveryPointExtId()?{referenceVolumeGroupRecoveryPointExtId:this.getReferenceVolumeGroupRecoveryPointExtId()}:{}),void 0!==this.getReferenceRecoveryPointExtId()&&null!==this.getReferenceRecoveryPointExtId()?{referenceRecoveryPointExtId:this.getReferenceRecoveryPointExtId()}:{}),void 0!==this.getReferenceDiskRecoveryPointExtId()&&null!==this.getReferenceDiskRecoveryPointExtId()?{referenceDiskRecoveryPointExtId:this.getReferenceDiskRecoveryPointExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("referenceVolumeGroupRecoveryPointExtId"===t){if(void 0===this.referenceVolumeGroupRecoveryPointExtId||null===this.referenceVolumeGroupRecoveryPointExtId)return new C("referenceVolumeGroupRecoveryPointExtId","undefined or null");if(!I.validatePattern(this.referenceVolumeGroupRecoveryPointExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("referenceVolumeGroupRecoveryPointExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return new C(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Ra.constructFromObject(e,n,!0),e.hasOwnProperty("referenceVolumeGroupRecoveryPointExtId")&&null!==e.referenceVolumeGroupRecoveryPointExtId&&void 0!==e.referenceVolumeGroupRecoveryPointExtId&&n.setReferenceVolumeGroupRecoveryPointExtId(e.referenceVolumeGroupRecoveryPointExtId),!r))for(var o in n.$unknownFields=Lp({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Wp(n.prototype,r),o&&Wp(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ra);function Xp(e){return Xp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xp(e)}function Yp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yp(Object(n),!0).forEach((function(t){ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ed(e,t,n){return(t=nd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function td(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nd(r.key),r)}}function nd(e){var t=function(e){if("object"!=Xp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xp(t)?t:t+""}function rd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rd=function(){return!!e})()}function od(e){return od=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},od(e)}function id(e,t){return id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},id(e,t)}Zp.prototype.referenceVolumeGroupRecoveryPointExtId=void 0,Ra.prototype.referenceRecoveryPointExtId=void 0,Ra.prototype.referenceDiskRecoveryPointExtId=void 0;var ad=new WeakSet,sd=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=od(t),function(e,t){if(t&&("object"==Xp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,rd()?Reflect.construct(t,n||[],od(e).constructor):t.apply(e,n))}(this,t),ad),e.$objectType="dataprotection.v4.content.VolumeGroupRecoveryPointChangedRegionsComputeSpec",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&id(e,t)}(t,e),n=t,r=[{key:"getOffset",value:function(){return this.offset}},{key:"setOffset",value:function(e){this.offset=e}},{key:"getLength",value:function(){return this.length}},{key:"setLength",value:function(e){this.length=e}},{key:"getBlockSizeByte",value:function(){return this.blockSizeByte}},{key:"setBlockSizeByte",value:function(e){this.blockSizeByte=e}},{key:"toJson",value:function(e){return Qp(Qp(Qp(Qp(Qp(Qp(Qp({},void 0!==this.getOffset()&&null!==this.getOffset()?{offset:this.getOffset()}:{}),void 0!==this.getLength()&&null!==this.getLength()?{length:this.getLength()}:{}),void 0!==this.getBlockSizeByte()&&null!==this.getBlockSizeByte()?{blockSizeByte:this.getBlockSizeByte()}:{}),void 0!==this.getReferenceVolumeGroupRecoveryPointExtId()&&null!==this.getReferenceVolumeGroupRecoveryPointExtId()?{referenceVolumeGroupRecoveryPointExtId:this.getReferenceVolumeGroupRecoveryPointExtId()}:{}),void 0!==this.getReferenceRecoveryPointExtId()&&null!==this.getReferenceRecoveryPointExtId()?{referenceRecoveryPointExtId:this.getReferenceRecoveryPointExtId()}:{}),void 0!==this.getReferenceDiskRecoveryPointExtId()&&null!==this.getReferenceDiskRecoveryPointExtId()?{referenceDiskRecoveryPointExtId:this.getReferenceDiskRecoveryPointExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("offset"===t&&(void 0===this.offset||null===this.offset))return new C("offset","undefined or null");if("length"===t&&(void 0===this.length||null===this.length))return new C("length","undefined or null");if("blockSizeByte"===t){if(void 0===this.blockSizeByte||null===this.blockSizeByte)return new C("blockSizeByte","undefined or null");if(!I.validateMaximum(this.blockSizeByte,262144))return new C("blockSizeByte","does not satisfy required maximum constraint: 262144");if(!I.validateMinimum(this.blockSizeByte,32768))return new C("blockSizeByte","does not satisfy required minimum constraint: 32768")}return new C(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Zp.constructFromObject(e,n,!0),e.hasOwnProperty("offset")&&null!==e.offset&&void 0!==e.offset&&n.setOffset(e.offset),e.hasOwnProperty("length")&&null!==e.length&&void 0!==e.length&&n.setLength(e.length),e.hasOwnProperty("blockSizeByte")&&null!==e.blockSizeByte&&void 0!==e.blockSizeByte&&n.setBlockSizeByte(e.blockSizeByte),!r))for(var o in n.$unknownFields=Qp({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&td(n.prototype,r),o&&td(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Zp);function ud(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cd(e){return cd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cd(e)}function ld(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ld(Object(n),!0).forEach((function(t){pd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ld(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pd(e,t,n){return(t=yd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yd(r.key),r)}}function yd(e){var t=function(e){if("object"!=cd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cd(t)?t:t+""}function vd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vd=function(){return!!e})()}function hd(e){return hd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hd(e)}function bd(e,t){return bd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bd(e,t)}function md(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}sd.prototype.offset=void 0,sd.prototype.length=void 0,sd.prototype.blockSizeByte=void 0,Zp.prototype.referenceVolumeGroupRecoveryPointExtId=void 0,Ra.prototype.referenceRecoveryPointExtId=void 0,Ra.prototype.referenceDiskRecoveryPointExtId=void 0;var gd=new WeakSet,wd=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=hd(t),function(e,t){if(t&&("object"==cd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,vd()?Reflect.construct(t,n||[],hd(e).constructor):t.apply(e,n))}(this,t),gd),e.$objectType="dataprotection.v4.content.ChangedVolumeGroupRegionsApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bd(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return fd(fd(fd({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):md(gd,this,Od).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):md(gd,this,Od).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("data","undefined or null"):new C("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&c.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(Je.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:cd(n[0]),o=0;o<n.length;o++){if("dataprotection.v4.content.ChangedRegion"!==a)throw"Unknown list of type "+a+" in data";r=Yl.constructFromObject(n[o],void 0),i.push(r)}s.setData(i)}else{if("dataprotection.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:cd(e.data)))throw"Unknown datatype "+a+" in data";s.setData(_r.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var l in s.$unknownFields=fd({},e.$unknownFields),e)Object.keys(s).includes(l)||Object.keys(s).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(s.$unknownFields[l]=e[l])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&dd(n.prototype,r),o&&dd(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c);function Od(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ud(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ud(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===cd(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function jd(e){return jd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jd(e)}function kd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kd(Object(n),!0).forEach((function(t){Pd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pd(e,t,n){return(t=Ed(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Td(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ed(r.key),r)}}function Ed(e){var t=function(e){if("object"!=jd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=jd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jd(t)?t:t+""}wd.prototype.metadata=void 0,wd.prototype.data=void 0,wd.prototype.$reserved=void 0,wd.prototype.$objectType=void 0,wd.prototype.$unknownFields=void 0;var Fd=new WeakSet,Sd=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Fd),this.$objectType="dataprotection.v4.config.RecoveryPointReplicationSpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getPcExtId",value:function(){return this.pcExtId}},{key:"setPcExtId",value:function(e){this.pcExtId=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return $d($d($d({},void 0!==this.getPcExtId()&&null!==this.getPcExtId()?{pcExtId:this.getPcExtId()}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("pcExtId"===t){if(void 0===this.pcExtId||null===this.pcExtId)return new C("pcExtId","undefined or null");if(!I.validatePattern(this.pcExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("pcExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new C("clusterExtId","undefined or null");if(!I.validatePattern(this.clusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("clusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("pcExtId")&&null!==t.pcExtId&&void 0!==t.pcExtId&&n.setPcExtId(t.pcExtId),t.hasOwnProperty("clusterExtId")&&null!==t.clusterExtId&&void 0!==t.clusterExtId&&n.setClusterExtId(t.clusterExtId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=$d({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Td(t.prototype,n),r&&Td(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Rd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Id(e){return Id="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Id(e)}function xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ad(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xd(Object(n),!0).forEach((function(t){Dd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dd(e,t,n){return(t=_d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_d(r.key),r)}}function _d(e){var t=function(e){if("object"!=Id(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Id(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Id(t)?t:t+""}function Nd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Nd=function(){return!!e})()}function Jd(e){return Jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jd(e)}function Md(e,t){return Md=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Md(e,t)}function Ud(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Sd.prototype.pcExtId=void 0,Sd.prototype.clusterExtId=void 0,Sd.prototype.$reserved=void 0,Sd.prototype.$objectType=void 0,Sd.prototype.$unknownFields=void 0;var Gd=new WeakSet,Ld=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Jd(t),function(e,t){if(t&&("object"==Id(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Nd()?Reflect.construct(t,n||[],Jd(e).constructor):t.apply(e,n))}(this,t),Gd),e.$objectType="dataprotection.v4.config.UpdateRecoveryPointExpirationTimeApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Md(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ad(Ad(Ad({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Ud(Gd,this,Vd).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Ud(Gd,this,Vd).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("data","undefined or null"):new C("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&c.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Je.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Id(e.data)){case"prism.v4.config.TaskReference":r.setData(io.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":r.setData(_r.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Ad({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Cd(n.prototype,r),o&&Cd(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c);function Vd(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Rd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rd(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Id(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Wd(e){return Wd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wd(e)}function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bd(Object(n),!0).forEach((function(t){qd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qd(e,t,n){return(t=Hd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hd(r.key),r)}}function Hd(e){var t=function(e){if("object"!=Wd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wd(t)?t:t+""}function Zd(e,t){return e.get(Xd(e,t))}function Xd(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ld.prototype.metadata=void 0,Ld.prototype.data=void 0,Ld.prototype.$reserved=void 0,Ld.prototype.$objectType=void 0,Ld.prototype.$unknownFields=void 0;var Yd=new WeakMap,Qd=function(){return e=function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,Yd,void 0),this.apiClient=t||ct.instance,n=Yd,r=new Set,n.set(Xd(n,this),r),Zd(Yd,this).add("authorization"),Zd(Yd,this).add("cookie"),Zd(Yd,this).add("host"),Zd(Yd,this).add("user-agent")},t=[{key:"createRecoveryPoint",value:function(e){var t,n=this,r=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==(t=e instanceof Tc&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createRecoveryPoint");var o={};Object.keys(r).forEach((function(e){Zd(Yd,n).has(e.toLowerCase())||(o[e]=r[e])}));var i=zd({},o);ct.addEtagReferenceToHeader(e,i);var a=_f;return this.apiClient.callApi("/api/dataprotection/v4.0/config/recovery-points","POST",{},{},i,{},t,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],a)}},{key:"deleteRecoveryPointById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteRecoveryPointById");var r={extId:e},o={};Object.keys(n).forEach((function(e){Zd(Yd,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=zd({},o),a=$p;return this.apiClient.callApi("/api/dataprotection/v4.0/config/recovery-points/{extId}","DELETE",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"discoverClusterForRecoveryPointId",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof Oa&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling discoverClusterForRecoveryPointId");if(null==n)throw new Error("Invalid body when calling discoverClusterForRecoveryPointId");var i={extId:e},a={};Object.keys(o).forEach((function(e){Zd(Yd,r).has(e.toLowerCase())||(a[e]=o[e])}));var s=zd({},a);ct.addEtagReferenceToHeader(t,s);var u=Vs;return this.apiClient.callApi("/api/dataprotection/v4.0/config/recovery-points/{extId}/$actions/discover-cluster","POST",i,{},s,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}},{key:"getRecoveryPointById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getRecoveryPointById");var r={extId:e},o={};Object.keys(n).forEach((function(e){Zd(Yd,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=zd({},o),a=Gl;return this.apiClient.callApi("/api/dataprotection/v4.0/config/recovery-points/{extId}","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"getVmRecoveryPointById",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(null==e)throw new Error("Missing the required parameter 'recoveryPointExtId' when calling getVmRecoveryPointById");if(null==t)throw new Error("Missing the required parameter 'extId' when calling getVmRecoveryPointById");var o={recoveryPointExtId:e,extId:t},i={};Object.keys(r).forEach((function(e){Zd(Yd,n).has(e.toLowerCase())||(i[e]=r[e])}));var a=zd({},i),s=Jp;return this.apiClient.callApi("/api/dataprotection/v4.0/config/recovery-points/{recoveryPointExtId}/vm-recovery-points/{extId}","GET",o,{},a,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"getVssMetadataByVmRecoveryPointId",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(null==e)throw new Error("Missing the required parameter 'recoveryPointExtId' when calling getVssMetadataByVmRecoveryPointId");if(null==t)throw new Error("Missing the required parameter 'vmRecoveryPointExtId' when calling getVssMetadataByVmRecoveryPointId");var o={recoveryPointExtId:e,vmRecoveryPointExtId:t},i={};Object.keys(r).forEach((function(e){Zd(Yd,n).has(e.toLowerCase())||(i[e]=r[e])}));var a=zd({},i),s=Zf;return this.apiClient.callApi("/api/dataprotection/v4.0/content/recovery-points/{recoveryPointExtId}/vm-recovery-points/{vmRecoveryPointExtId}/vss-metadata","GET",o,{},a,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/octet-stream","application/json"],s)}},{key:"listRecoveryPoints",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=zd(zd(zd(zd(zd({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{}),e.hasOwnProperty("$select")?{$select:e.$select}:{}),o={};Object.keys(n).forEach((function(e){Zd(Yd,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=zd({"X-Cluster-Id":e.xClusterId},o),a=Hc;return this.apiClient.callApi("/api/dataprotection/v4.0/config/recovery-points","GET",{},r,i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"replicateRecoveryPoint",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof Sd&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling replicateRecoveryPoint");if(null==n)throw new Error("Invalid body when calling replicateRecoveryPoint");var i={extId:e},a={};Object.keys(o).forEach((function(e){Zd(Yd,r).has(e.toLowerCase())||(a[e]=o[e])}));var s=zd({},a);ct.addEtagReferenceToHeader(t,s);var u=di;return this.apiClient.callApi("/api/dataprotection/v4.0/config/recovery-points/{extId}/$actions/replicate","POST",i,{},s,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}},{key:"restoreRecoveryPoint",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof Fl&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling restoreRecoveryPoint");var i={extId:e},a={};Object.keys(o).forEach((function(e){Zd(Yd,r).has(e.toLowerCase())||(a[e]=o[e])}));var s=zd({},a);ct.addEtagReferenceToHeader(t,s);var u=lp;return this.apiClient.callApi("/api/dataprotection/v4.0/config/recovery-points/{extId}/$actions/restore","POST",i,{},s,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}},{key:"setRecoveryPointExpirationTime",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof jf&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling setRecoveryPointExpirationTime");if(null==n)throw new Error("Invalid body when calling setRecoveryPointExpirationTime");var i={extId:e},a={};Object.keys(o).forEach((function(e){Zd(Yd,r).has(e.toLowerCase())||(a[e]=o[e])}));var s=zd({},a);ct.addEtagReferenceToHeader(t,s);var u=Ld;return this.apiClient.callApi("/api/dataprotection/v4.0/config/recovery-points/{extId}/$actions/set-expiration-time","POST",i,{},s,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}},{key:"vmRecoveryPointComputeChangedRegions",value:function(e,t,n,r){var o,i=this,a=(arguments.length<=4?0:arguments.length-4)>0?arguments.length<=4?void 0:arguments[4]:{};if(o=r instanceof Ya&&"function"==typeof r.toJson?r.toJson():r,null==e)throw new Error("Missing the required parameter 'recoveryPointExtId' when calling vmRecoveryPointComputeChangedRegions");if(null==t)throw new Error("Missing the required parameter 'vmRecoveryPointExtId' when calling vmRecoveryPointComputeChangedRegions");if(null==n)throw new Error("Missing the required parameter 'extId' when calling vmRecoveryPointComputeChangedRegions");if(null==o)throw new Error("Invalid body when calling vmRecoveryPointComputeChangedRegions");var s={recoveryPointExtId:e,vmRecoveryPointExtId:t,extId:n},u={};Object.keys(a).forEach((function(e){Zd(Yd,i).has(e.toLowerCase())||(u[e]=a[e])}));var c=zd({},u);ct.addEtagReferenceToHeader(r,c);var l=pf;return this.apiClient.callApi("/api/dataprotection/v4.0/content/recovery-points/{recoveryPointExtId}/vm-recovery-points/{vmRecoveryPointExtId}/disk-recovery-points/{extId}/$actions/compute-changed-regions","POST",s,{},c,{},o,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}},{key:"volumeGroupRecoveryPointComputeChangedRegions",value:function(e,t,n,r){var o,i=this,a=(arguments.length<=4?0:arguments.length-4)>0?arguments.length<=4?void 0:arguments[4]:{};if(o=r instanceof sd&&"function"==typeof r.toJson?r.toJson():r,null==e)throw new Error("Missing the required parameter 'recoveryPointExtId' when calling volumeGroupRecoveryPointComputeChangedRegions");if(null==t)throw new Error("Missing the required parameter 'volumeGroupRecoveryPointExtId' when calling volumeGroupRecoveryPointComputeChangedRegions");if(null==n)throw new Error("Missing the required parameter 'extId' when calling volumeGroupRecoveryPointComputeChangedRegions");if(null==o)throw new Error("Invalid body when calling volumeGroupRecoveryPointComputeChangedRegions");var s={recoveryPointExtId:e,volumeGroupRecoveryPointExtId:t,extId:n},u={};Object.keys(a).forEach((function(e){Zd(Yd,i).has(e.toLowerCase())||(u[e]=a[e])}));var c=zd({},u);ct.addEtagReferenceToHeader(r,c);var l=wd;return this.apiClient.callApi("/api/dataprotection/v4.0/content/recovery-points/{recoveryPointExtId}/volume-group-recovery-points/{volumeGroupRecoveryPointExtId}/disk-recovery-points/{extId}/$actions/compute-changed-regions","POST",s,{},c,{},o,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}}],n=[{key:"ApiClient",get:function(){return ct}}],t&&Kd(e.prototype,t),n&&Kd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function ey(e){return ey="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ey(e)}function ty(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ny(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ty(Object(n),!0).forEach((function(t){ry(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ty(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ry(e,t,n){return(t=iy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iy(r.key),r)}}function iy(e){var t=function(e){if("object"!=ey(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ey(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ey(t)?t:t+""}var ay=new WeakSet,sy=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,ay),this.$objectType="dataprotection.v4.config.AhvVmOverrideSpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ny(ny({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new C("name","undefined or null");if(!I.validateMaxLength(this.name,80))return new C("name","does not satisfy required maxLength constraint: 80")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ny({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&oy(t.prototype,n),r&&oy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function uy(e){return uy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uy(e)}function cy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ly(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cy(Object(n),!0).forEach((function(t){fy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fy(e,t,n){return(t=dy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function py(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dy(r.key),r)}}function dy(e){var t=function(e){if("object"!=uy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=uy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==uy(t)?t:t+""}sy.prototype.name=void 0,sy.prototype.$reserved=void 0,sy.prototype.$objectType=void 0,sy.prototype.$unknownFields=void 0;var yy=new WeakSet,vy=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,yy),this.$objectType="dataprotection.v4.config.AmazonS3Bucket",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getBucketName",value:function(){return this.bucketName}},{key:"setBucketName",value:function(e){this.bucketName=e}},{key:"getRegionName",value:function(){return this.regionName}},{key:"setRegionName",value:function(e){this.regionName=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ly(ly(ly({},void 0!==this.getBucketName()&&null!==this.getBucketName()?{bucketName:this.getBucketName()}:{}),void 0!==this.getRegionName()&&null!==this.getRegionName()?{regionName:this.getRegionName()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("bucketName"===t){if(void 0===this.bucketName||null===this.bucketName)return new C("bucketName","undefined or null");if(!I.validateMaxLength(this.bucketName,256))return new C("bucketName","does not satisfy required maxLength constraint: 256")}if("regionName"===t){if(void 0===this.regionName||null===this.regionName)return new C("regionName","undefined or null");if(!I.validateMaxLength(this.regionName,256))return new C("regionName","does not satisfy required maxLength constraint: 256")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("bucketName")&&null!==t.bucketName&&void 0!==t.bucketName&&n.setBucketName(t.bucketName),t.hasOwnProperty("regionName")&&null!==t.regionName&&void 0!==t.regionName&&n.setRegionName(t.regionName),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ly({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&py(t.prototype,n),r&&py(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function hy(e){return hy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hy(e)}function by(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function my(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?by(Object(n),!0).forEach((function(t){gy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):by(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gy(e,t,n){return(t=Oy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Oy(r.key),r)}}function Oy(e){var t=function(e){if("object"!=hy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hy(t)?t:t+""}vy.prototype.bucketName=void 0,vy.prototype.regionName=void 0,vy.prototype.$reserved=void 0,vy.prototype.$objectType=void 0,vy.prototype.$unknownFields=void 0;var jy=new WeakSet,ky=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,jy),this.$objectType="dataprotection.v4.config.AzureBlobStorageContainer",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getStorageAccountName",value:function(){return this.storageAccountName}},{key:"setStorageAccountName",value:function(e){this.storageAccountName=e}},{key:"getContainerName",value:function(){return this.containerName}},{key:"setContainerName",value:function(e){this.containerName=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return my(my(my({},void 0!==this.getStorageAccountName()&&null!==this.getStorageAccountName()?{storageAccountName:this.getStorageAccountName()}:{}),void 0!==this.getContainerName()&&null!==this.getContainerName()?{containerName:this.getContainerName()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("storageAccountName"===t){if(void 0===this.storageAccountName||null===this.storageAccountName)return new C("storageAccountName","undefined or null");if(!I.validateMaxLength(this.storageAccountName,256))return new C("storageAccountName","does not satisfy required maxLength constraint: 256")}if("containerName"===t){if(void 0===this.containerName||null===this.containerName)return new C("containerName","undefined or null");if(!I.validateMaxLength(this.containerName,256))return new C("containerName","does not satisfy required maxLength constraint: 256")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("storageAccountName")&&null!==t.storageAccountName&&void 0!==t.storageAccountName&&n.setStorageAccountName(t.storageAccountName),t.hasOwnProperty("containerName")&&null!==t.containerName&&void 0!==t.containerName&&n.setContainerName(t.containerName),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=my({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&wy(t.prototype,n),r&&wy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();ky.prototype.storageAccountName=void 0,ky.prototype.containerName=void 0,ky.prototype.$reserved=void 0,ky.prototype.$objectType=void 0,ky.prototype.$unknownFields=void 0;var $y={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VM:"VM",VOLUME_GROUP:"VOLUME_GROUP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys($y).find((function(t){return $y[t]===e}));return null==t?$y.$UNKNOWN:$y[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case $y.$UNKNOWN:case $y.$REDACTED:case $y.VM:case $y.VOLUME_GROUP:return;default:throw new Error("Invalid : must be ConsistencyGroupMemberType.{ $UNKNOWN|$REDACTED|VM|VOLUME_GROUP }")}}};Object.freeze($y);const Py=$y;function Ty(e){return Ty="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ty(e)}function Ey(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ey(Object(n),!0).forEach((function(t){Sy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ey(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sy(e,t,n){return(t=Iy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ry(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Iy(r.key),r)}}function Iy(e){var t=function(e){if("object"!=Ty(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ty(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ty(t)?t:t+""}var xy=new WeakSet,Ay=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,xy),this.entityExtId=t,this.entityType=n,this.$objectType="dataprotection.v4.config.ConsistencyGroupMember",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getEntityExtId",value:function(){return this.entityExtId}},{key:"setEntityExtId",value:function(e){this.entityExtId=e}},{key:"getEntityType",value:function(){return this.entityType}},{key:"setEntityType",value:function(e){this.entityType=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Fy(Fy(Fy({},void 0!==this.getEntityExtId()&&null!==this.getEntityExtId()?{entityExtId:this.getEntityExtId()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["entityExtId","entityType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("entityExtId"===t){if(void 0===this.entityExtId||null===this.entityExtId)return new C("entityExtId","undefined or null");if(!I.validatePattern(this.entityExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("entityExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"entityType"!==t||void 0!==this.entityType&&null!==this.entityType?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("entityType","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("entityExtId")&&null!==t.entityExtId&&void 0!==t.entityExtId&&n.setEntityExtId(t.entityExtId),t.hasOwnProperty("entityType")&&null!==t.entityType&&void 0!==t.entityType&&n.setEntityType(Py.constructFromObject(t.entityType)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Fy({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Ry(t.prototype,n),r&&Ry(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Dy(e){return Dy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dy(e)}function Cy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cy(Object(n),!0).forEach((function(t){Ny(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ny(e,t,n){return(t=My(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,My(r.key),r)}}function My(e){var t=function(e){if("object"!=Dy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Dy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Dy(t)?t:t+""}function Uy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Uy=function(){return!!e})()}function Gy(e){return Gy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gy(e)}function Ly(e,t){return Ly=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ly(e,t)}Ay.prototype.entityExtId=void 0,Ay.prototype.entityType=void 0,Ay.prototype.$reserved=void 0,Ay.prototype.$objectType=void 0,Ay.prototype.$unknownFields=void 0;var Vy=new WeakSet,Wy=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(r=function(e,t,n){return t=Gy(t),function(e,t){if(t&&("object"==Dy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Uy()?Reflect.construct(t,n||[],Gy(e).constructor):t.apply(e,n))}(this,t),Vy),r.name=e,r.members=n,r.$objectType="dataprotection.v4.config.ConsistencyGroup",r.$reserved={$fv:"v4.r0"},r.$unknownFields={},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ly(e,t)}(t,e),n=t,r=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getOwnerExtId",value:function(){return this.ownerExtId}},{key:"setOwnerExtId",value:function(e){this.ownerExtId=e}},{key:"getMembers",value:function(){return this.members}},{key:"setMembers",value:function(e){this.members=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getProtectionPolicyExtId",value:function(){return this.protectionPolicyExtId}},{key:"setProtectionPolicyExtId",value:function(e){this.protectionPolicyExtId=e}},{key:"toJson",value:function(e){return _y(!1===e?_y(_y(_y(_y(_y(_y(_y(_y({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getOwnerExtId()&&null!==this.getOwnerExtId()?{ownerExtId:this.getOwnerExtId()}:{}),void 0!==this.getMembers()&&null!==this.getMembers()?{members:this.getMembers().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getProtectionPolicyExtId()&&null!==this.getProtectionPolicyExtId()?{protectionPolicyExtId:this.getProtectionPolicyExtId()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):_y(_y({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getMembers()&&null!==this.getMembers()?{members:this.getMembers().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["name","members"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new C("name","undefined or null");if(!I.validateMaxLength(this.name,256))return new C("name","does not satisfy required maxLength constraint: 256")}if("ownerExtId"===t){if(void 0===this.ownerExtId||null===this.ownerExtId)return new C("ownerExtId","undefined or null");if(!I.validatePattern(this.ownerExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("ownerExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("members"===t){if(void 0===this.members||null===this.members)return new C("members","undefined or null");if(!I.validateMaxItems(this.members,30))return new C("members","does not satisfy required maxItems constraint: 30");if(!I.validateMinItems(this.members,1))return new C("members","does not satisfy required minItems constraint: 1")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new C("clusterExtId","undefined or null");if(!I.validatePattern(this.clusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("clusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("protectionPolicyExtId"===t){if(void 0===this.protectionPolicyExtId||null===this.protectionPolicyExtId)return new C("protectionPolicyExtId","undefined or null");if(!I.validatePattern(this.protectionPolicyExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("protectionPolicyExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return new C(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,Bt.constructFromObject(e,a,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&a.setName(e.name),e.hasOwnProperty("ownerExtId")&&null!==e.ownerExtId&&void 0!==e.ownerExtId&&a.setOwnerExtId(e.ownerExtId),e.hasOwnProperty("members")&&null!==e.members&&void 0!==e.members){for(i=[],n=e.members,o=0;o<n.length;o++)r=Ay.constructFromObject(n[o],void 0),i.push(r);a.setMembers(i)}if(e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&a.setClusterExtId(e.clusterExtId),e.hasOwnProperty("protectionPolicyExtId")&&null!==e.protectionPolicyExtId&&void 0!==e.protectionPolicyExtId&&a.setProtectionPolicyExtId(e.protectionPolicyExtId),!s)for(var u in a.$unknownFields=_y({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Jy(n.prototype,r),o&&Jy(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Bt);function By(e){return By="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},By(e)}function zy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zy(Object(n),!0).forEach((function(t){Ky(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ky(e,t,n){return(t=Zy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zy(r.key),r)}}function Zy(e){var t=function(e){if("object"!=By(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=By(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==By(t)?t:t+""}Wy.prototype.name=void 0,Wy.prototype.ownerExtId=void 0,Wy.prototype.members=void 0,Wy.prototype.clusterExtId=void 0,Wy.prototype.protectionPolicyExtId=void 0,Bt.prototype.extId=void 0,Bt.prototype.links=void 0,Dt.prototype.tenantId=void 0;var Xy=new WeakSet,Yy=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Xy),this.$objectType="dataprotection.v4.config.ConsistencyGroupMigrationSpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getTargetPcExtId",value:function(){return this.targetPcExtId}},{key:"setTargetPcExtId",value:function(e){this.targetPcExtId=e}},{key:"getTargetClusterExtId",value:function(){return this.targetClusterExtId}},{key:"setTargetClusterExtId",value:function(e){this.targetClusterExtId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return qy(qy(qy({},void 0!==this.getTargetPcExtId()&&null!==this.getTargetPcExtId()?{targetPcExtId:this.getTargetPcExtId()}:{}),void 0!==this.getTargetClusterExtId()&&null!==this.getTargetClusterExtId()?{targetClusterExtId:this.getTargetClusterExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("targetPcExtId"===t){if(void 0===this.targetPcExtId||null===this.targetPcExtId)return new C("targetPcExtId","undefined or null");if(!I.validatePattern(this.targetPcExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("targetPcExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("targetClusterExtId"===t){if(void 0===this.targetClusterExtId||null===this.targetClusterExtId)return new C("targetClusterExtId","undefined or null");if(!I.validatePattern(this.targetClusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("targetClusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("targetPcExtId")&&null!==t.targetPcExtId&&void 0!==t.targetPcExtId&&n.setTargetPcExtId(t.targetPcExtId),t.hasOwnProperty("targetClusterExtId")&&null!==t.targetClusterExtId&&void 0!==t.targetClusterExtId&&n.setTargetClusterExtId(t.targetClusterExtId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=qy({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Hy(t.prototype,n),r&&Hy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Qy(e){return Qy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qy(e)}function ev(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tv(e,t,n){return(t=rv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rv(r.key),r)}}function rv(e){var t=function(e){if("object"!=Qy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qy(t)?t:t+""}function ov(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ov=function(){return!!e})()}function iv(e){return iv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iv(e)}function av(e,t){return av=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},av(e,t)}Yy.prototype.targetPcExtId=void 0,Yy.prototype.targetClusterExtId=void 0,Yy.prototype.$reserved=void 0,Yy.prototype.$objectType=void 0,Yy.prototype.$unknownFields=void 0;var sv=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=iv(t),function(e,t){if(t&&("object"==Qy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ov()?Reflect.construct(t,n||[],iv(e).constructor):t.apply(e,n))}(this,t,[e,n])).$objectType="dataprotection.v4.config.ConsistencyGroupProjection",r.$reserved={$fv:"v4.r0"},r.$unknownFields={},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&av(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["name","members"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return new C(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Wy.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ev(Object(n),!0).forEach((function(t){tv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ev(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&nv(n.prototype,r),o&&nv(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Wy);function uv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cv(e){return cv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cv(e)}function lv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lv(Object(n),!0).forEach((function(t){pv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pv(e,t,n){return(t=yv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yv(r.key),r)}}function yv(e){var t=function(e){if("object"!=cv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cv(t)?t:t+""}function vv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vv=function(){return!!e})()}function hv(e){return hv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hv(e)}function bv(e,t){return bv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bv(e,t)}function mv(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var gv=new WeakSet,wv=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=hv(t),function(e,t){if(t&&("object"==cv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,vv()?Reflect.construct(t,n||[],hv(e).constructor):t.apply(e,n))}(this,t),gv),e.$objectType="dataprotection.v4.config.CreateConsistencyGroupApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bv(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return fv(fv(fv({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):mv(gv,this,Ov).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):mv(gv,this,Ov).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("data","undefined or null"):new C("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&c.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Je.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:cv(e.data)){case"dataprotection.v4.config.ConsistencyGroup":r.setData(Wy.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":r.setData(_r.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=fv({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&dv(n.prototype,r),o&&dv(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c);function Ov(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return uv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?uv(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===cv(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function jv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kv(e){return kv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kv(e)}function $v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$v(Object(n),!0).forEach((function(t){Tv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tv(e,t,n){return(t=Fv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ev(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fv(r.key),r)}}function Fv(e){var t=function(e){if("object"!=kv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=kv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==kv(t)?t:t+""}function Sv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Sv=function(){return!!e})()}function Rv(e){return Rv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rv(e)}function Iv(e,t){return Iv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Iv(e,t)}function xv(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}wv.prototype.metadata=void 0,wv.prototype.data=void 0,wv.prototype.$reserved=void 0,wv.prototype.$objectType=void 0,wv.prototype.$unknownFields=void 0;var Av=new WeakSet,Dv=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Rv(t),function(e,t){if(t&&("object"==kv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Sv()?Reflect.construct(t,n||[],Rv(e).constructor):t.apply(e,n))}(this,t),Av),e.$objectType="dataprotection.v4.config.DeleteConsistencyGroupApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Iv(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Pv(Pv(Pv({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):xv(Av,this,Cv).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):xv(Av,this,Cv).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("data","undefined or null"):new C("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&c.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Je.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(null===e.data&&r.setData(null),n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:kv(e.data)){case"dataprotection.v4.error.ErrorResponse":r.setData(_r.constructFromObject(e.data,void 0));break;case"":r.setData(Void.constructFromObject(e[""],void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Pv({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Ev(n.prototype,r),o&&Ev(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c);function Cv(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return jv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jv(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===kv(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function _v(e){return _v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_v(e)}function Nv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nv(Object(n),!0).forEach((function(t){Mv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mv(e,t,n){return(t=Gv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gv(r.key),r)}}function Gv(e){var t=function(e){if("object"!=_v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_v(t)?t:t+""}Dv.prototype.metadata=void 0,Dv.prototype.data=void 0,Dv.prototype.$reserved=void 0,Dv.prototype.$objectType=void 0,Dv.prototype.$unknownFields=void 0;var Lv=new WeakSet,Vv=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Lv),this.$objectType="dataprotection.v4.config.EsxiVmOverrideSpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Jv(Jv({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new C("name","undefined or null");if(!I.validateMaxLength(this.name,80))return new C("name","does not satisfy required maxLength constraint: 80")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Jv({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Uv(t.prototype,n),r&&Uv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Vv.prototype.name=void 0,Vv.prototype.$reserved=void 0,Vv.prototype.$objectType=void 0,Vv.prototype.$unknownFields=void 0;var Wv={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PRISM_ELEMENT:"PRISM_ELEMENT",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Wv).find((function(t){return Wv[t]===e}));return null==t?Wv.$UNKNOWN:Wv[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Wv.$UNKNOWN:case Wv.$REDACTED:case Wv.PRISM_ELEMENT:return;default:throw new Error("Invalid : must be HostType.{ $UNKNOWN|$REDACTED|PRISM_ELEMENT }")}}};Object.freeze(Wv);const Bv=Wv;function zv(e){return zv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zv(e)}function qv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qv(Object(n),!0).forEach((function(t){Hv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hv(e,t,n){return(t=Xv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xv(r.key),r)}}function Xv(e){var t=function(e){if("object"!=zv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zv(t)?t:t+""}function Yv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yv=function(){return!!e})()}function Qv(e){return Qv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qv(e)}function eh(e,t){return eh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},eh(e,t)}var th=new WeakSet,nh=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Qv(t),function(e,t){if(t&&("object"==zv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Yv()?Reflect.construct(t,n||[],Qv(e).constructor):t.apply(e,n))}(this,t),th),e.$objectType="dataprotection.v4.config.HostReference",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eh(e,t)}(t,e),n=t,r=[{key:"getHostType",value:function(){return this.hostType}},{key:"setHostType",value:function(e){this.hostType=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"toJson",value:function(e){return Kv(!1===e?Kv(Kv(Kv(Kv(Kv({},void 0!==this.getHostType()&&null!==this.getHostType()?{hostType:this.getHostType()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Kv(Kv({},void 0!==this.getHostType()&&null!==this.getHostType()?{hostType:this.getHostType()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("hostType"===t&&(void 0===this.hostType||null===this.hostType))return new C("hostType","undefined or null");if("name"===t){if(void 0===this.name||null===this.name)return new C("name","undefined or null");if(!I.validateMaxLength(this.name,256))return new C("name","does not satisfy required maxLength constraint: 256")}return new C(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Bt.constructFromObject(e,n,!0),e.hasOwnProperty("hostType")&&null!==e.hostType&&void 0!==e.hostType&&n.setHostType(Bv.constructFromObject(e.hostType)),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&n.setName(e.name),!r))for(var o in n.$unknownFields=Kv({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Zv(n.prototype,r),o&&Zv(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Bt);function rh(e){return rh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rh(e)}function oh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ih(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oh(Object(n),!0).forEach((function(t){ah(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ah(e,t,n){return(t=uh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uh(r.key),r)}}function uh(e){var t=function(e){if("object"!=rh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rh(t)?t:t+""}nh.prototype.hostType=void 0,nh.prototype.name=void 0,Bt.prototype.extId=void 0,Bt.prototype.links=void 0,Dt.prototype.tenantId=void 0;var ch=new WeakSet,lh=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,ch),this.ipv4=t,this.$objectType="dataprotection.v4.config.IpAddress",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getIpv4",value:function(){return this.ipv4}},{key:"setIpv4",value:function(e){this.ipv4=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ih(ih({},void 0!==this.getIpv4()&&null!==this.getIpv4()?{ipv4:this.getIpv4()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["ipv4"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("ipv4"===t){if(void 0===this.ipv4||null===this.ipv4)return new C("ipv4","undefined or null");if(!I.validatePattern(this.ipv4,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/))return new C("ipv4","does not satisfy required pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("ipv4")&&null!==t.ipv4&&void 0!==t.ipv4&&n.setIpv4(t.ipv4),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ih({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&sh(t.prototype,n),r&&sh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function fh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ph(e){return ph="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ph(e)}function dh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dh(Object(n),!0).forEach((function(t){vh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vh(e,t,n){return(t=bh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bh(r.key),r)}}function bh(e){var t=function(e){if("object"!=ph(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ph(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ph(t)?t:t+""}function mh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mh=function(){return!!e})()}function gh(e){return gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gh(e)}function wh(e,t){return wh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wh(e,t)}function Oh(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}lh.prototype.ipv4=void 0,lh.prototype.$reserved=void 0,lh.prototype.$objectType=void 0,lh.prototype.$unknownFields=void 0;var jh=new WeakSet,kh=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=gh(t),function(e,t){if(t&&("object"==ph(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,mh()?Reflect.construct(t,n||[],gh(e).constructor):t.apply(e,n))}(this,t),jh),e.$objectType="dataprotection.v4.config.MigrateConsistencyGroupApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wh(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return yh(yh(yh({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Oh(jh,this,$h).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Oh(jh,this,$h).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("data","undefined or null"):new C("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&c.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Je.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ph(e.data)){case"prism.v4.config.TaskReference":r.setData(io.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":r.setData(_r.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=yh({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&hh(n.prototype,r),o&&hh(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c);function $h(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return fh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fh(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===ph(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Ph(e){return Ph="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ph(e)}function Th(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Th(Object(n),!0).forEach((function(t){Fh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Th(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fh(e,t,n){return(t=Rh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rh(r.key),r)}}function Rh(e){var t=function(e){if("object"!=Ph(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ph(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ph(t)?t:t+""}kh.prototype.metadata=void 0,kh.prototype.data=void 0,kh.prototype.$reserved=void 0,kh.prototype.$objectType=void 0,kh.prototype.$unknownFields=void 0;var Ih=new WeakSet,xh=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Ih),this.$objectType="dataprotection.v4.config.NutanixObjectsBucket",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getEndPoint",value:function(){return this.endPoint}},{key:"setEndPoint",value:function(e){this.endPoint=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Eh(Eh({},void 0!==this.getEndPoint()&&null!==this.getEndPoint()?{endPoint:this.getEndPoint()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"endPoint"!==t||void 0!==this.endPoint&&null!==this.endPoint?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("endPoint","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("endPoint")&&null!==t.endPoint&&void 0!==t.endPoint&&n.setEndPoint(t.endPoint),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Eh({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Sh(t.prototype,n),r&&Sh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();xh.prototype.endPoint=void 0,xh.prototype.$reserved=void 0,xh.prototype.$objectType=void 0,xh.prototype.$unknownFields=void 0;var Ah={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",AZURE_BLOB_STORAGE:"AZURE_BLOB_STORAGE",AMAZON_S3:"AMAZON_S3",NUTANIX_OBJECTS:"NUTANIX_OBJECTS",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Ah).find((function(t){return Ah[t]===e}));return null==t?Ah.$UNKNOWN:Ah[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ah.$UNKNOWN:case Ah.$REDACTED:case Ah.AZURE_BLOB_STORAGE:case Ah.AMAZON_S3:case Ah.NUTANIX_OBJECTS:return;default:throw new Error("Invalid : must be ObjectStorageType.{ $UNKNOWN|$REDACTED|AZURE_BLOB_STORAGE|AMAZON_S3|NUTANIX_OBJECTS }")}}};Object.freeze(Ah);const Dh=Ah;function Ch(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _h(e){return _h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_h(e)}function Nh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nh(Object(n),!0).forEach((function(t){Mh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mh(e,t,n){return(t=Gh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gh(r.key),r)}}function Gh(e){var t=function(e){if("object"!=_h(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_h(t)?t:t+""}function Lh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Lh=function(){return!!e})()}function Vh(e){return Vh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vh(e)}function Wh(e,t){return Wh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wh(e,t)}function Bh(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var zh=new WeakSet,qh=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Vh(t),function(e,t){if(t&&("object"==_h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Lh()?Reflect.construct(t,n||[],Vh(e).constructor):t.apply(e,n))}(this,t),zh),e.$objectType="dataprotection.v4.config.RecoveryPointRepository",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wh(e,t)}(t,e),n=t,r=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getObjectStorageType",value:function(){return this.objectStorageType}},{key:"setObjectStorageType",value:function(e){this.objectStorageType=e}},{key:"getObjectStorageReference",value:function(){return this.objectStorageReference}},{key:"setObjectStorageReference",value:function(e){this.objectStorageReference=e}},{key:"toJson",value:function(e){return Jh(!1===e?Jh(Jh(Jh(Jh(Jh(Jh({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getObjectStorageType()&&null!==this.getObjectStorageType()?{objectStorageType:this.getObjectStorageType()}:{}),void 0!==this.getObjectStorageReference()&&null!==this.getObjectStorageReference()?{objectStorageReference:void 0!==this.getObjectStorageReference().toJson?this.getObjectStorageReference().toJson(!1):Array.isArray(this.getObjectStorageReference())?this.getObjectStorageReference().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Bh(zh,this,Kh).call(this,this.getObjectStorageReference(),!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Jh(Jh(Jh({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getObjectStorageType()&&null!==this.getObjectStorageType()?{objectStorageType:this.getObjectStorageType()}:{}),void 0!==this.getObjectStorageReference()&&null!==this.getObjectStorageReference()?{objectStorageReference:void 0!==this.getObjectStorageReference().toJson?this.getObjectStorageReference().toJson():Array.isArray(this.getObjectStorageReference())?this.getObjectStorageReference().map((function(e){return void 0!==e.toJson?e.toJson():e})):Bh(zh,this,Kh).call(this,this.getObjectStorageReference())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new C("name","undefined or null");if(!I.validateMaxLength(this.name,256))return new C("name","does not satisfy required maxLength constraint: 256")}return"objectStorageType"!==t||void 0!==this.objectStorageType&&null!==this.objectStorageType?"objectStorageReference"!==t||void 0!==this.objectStorageReference&&null!==this.objectStorageReference?new C(t,"no such property exists"):new C("objectStorageReference","undefined or null"):new C("objectStorageType","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,Bt.constructFromObject(e,r,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&r.setName(e.name),e.hasOwnProperty("objectStorageType")&&null!==e.objectStorageType&&void 0!==e.objectStorageType&&r.setObjectStorageType(Dh.constructFromObject(e.objectStorageType)),e.hasOwnProperty("objectStorageReference")&&null!==e.objectStorageReference&&void 0!==e.objectStorageReference)switch(n=e.objectStorageReference.hasOwnProperty("$objectType")?e.objectStorageReference.$objectType:_h(e.objectStorageReference)){case"dataprotection.v4.config.AzureBlobStorageContainer":r.setObjectStorageReference(ky.constructFromObject(e.objectStorageReference,void 0));break;case"dataprotection.v4.config.AmazonS3Bucket":r.setObjectStorageReference(vy.constructFromObject(e.objectStorageReference,void 0));break;case"dataprotection.v4.config.NutanixObjectsBucket":r.setObjectStorageReference(xh.constructFromObject(e.objectStorageReference,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(!o)for(var i in r.$unknownFields=Jh({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Uh(n.prototype,r),o&&Uh(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Bt);function Kh(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ch(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ch(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===_h(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Hh(e){return Hh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hh(e)}function Zh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xh(e,t,n){return(t=Qh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qh(r.key),r)}}function Qh(e){var t=function(e){if("object"!=Hh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Hh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hh(t)?t:t+""}function eb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(eb=function(){return!!e})()}function tb(e){return tb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tb(e)}function nb(e,t){return nb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nb(e,t)}qh.prototype.name=void 0,qh.prototype.objectStorageType=void 0,qh.prototype.objectStorageReference=void 0,Bt.prototype.extId=void 0,Bt.prototype.links=void 0,Dt.prototype.tenantId=void 0;var rb=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=tb(t),function(e,t){if(t&&("object"==Hh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,eb()?Reflect.construct(t,n||[],tb(e).constructor):t.apply(e,n))}(this,t)).$objectType="dataprotection.v4.config.RecoveryPointRepositoryProjection",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nb(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return new C(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,qh.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zh(Object(n),!0).forEach((function(t){Xh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Yh(n.prototype,r),o&&Yh(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(qh);function ob(e){return ob="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ob(e)}function ib(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ab(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ib(Object(n),!0).forEach((function(t){sb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ib(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sb(e,t,n){return(t=cb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ub(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cb(r.key),r)}}function cb(e){var t=function(e){if("object"!=ob(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ob(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ob(t)?t:t+""}var lb=new WeakSet,fb=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,lb),this.$objectType="dataprotection.v4.config.SiteReference",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getAvailabilityZoneReference",value:function(){return this.availabilityZoneReference}},{key:"setAvailabilityZoneReference",value:function(e){this.availabilityZoneReference=e}},{key:"getClusterReference",value:function(){return this.clusterReference}},{key:"setClusterReference",value:function(e){this.clusterReference=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ab(ab(ab({},void 0!==this.getAvailabilityZoneReference()&&null!==this.getAvailabilityZoneReference()?{availabilityZoneReference:this.getAvailabilityZoneReference()}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("availabilityZoneReference"===t){if(void 0===this.availabilityZoneReference||null===this.availabilityZoneReference)return new C("availabilityZoneReference","undefined or null");if(!I.validatePattern(this.availabilityZoneReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("availabilityZoneReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("clusterReference"===t){if(void 0===this.clusterReference||null===this.clusterReference)return new C("clusterReference","undefined or null");if(!I.validatePattern(this.clusterReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new C("clusterReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("availabilityZoneReference")&&null!==t.availabilityZoneReference&&void 0!==t.availabilityZoneReference&&n.setAvailabilityZoneReference(t.availabilityZoneReference),t.hasOwnProperty("clusterReference")&&null!==t.clusterReference&&void 0!==t.clusterReference&&n.setClusterReference(t.clusterReference),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ab({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&ub(t.prototype,n),r&&ub(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function pb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function db(e){return db="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},db(e)}function yb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yb(Object(n),!0).forEach((function(t){hb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hb(e,t,n){return(t=mb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mb(r.key),r)}}function mb(e){var t=function(e){if("object"!=db(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=db(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==db(t)?t:t+""}function gb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gb=function(){return!!e})()}function wb(e){return wb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wb(e)}function Ob(e,t){return Ob=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ob(e,t)}function jb(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}fb.prototype.availabilityZoneReference=void 0,fb.prototype.clusterReference=void 0,fb.prototype.$reserved=void 0,fb.prototype.$objectType=void 0,fb.prototype.$unknownFields=void 0;var kb=new WeakSet,$b=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=wb(t),function(e,t){if(t&&("object"==db(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,gb()?Reflect.construct(t,n||[],wb(e).constructor):t.apply(e,n))}(this,t),kb),e.$objectType="dataprotection.v4.config.SynchronousReplicaPromoteApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ob(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return vb(vb(vb({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):jb(kb,this,Pb).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):jb(kb,this,Pb).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("data","undefined or null"):new C("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&c.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Je.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:db(e.data)){case"prism.v4.config.TaskReference":r.setData(io.constructFromObject(e.data,void 0));break;case"dataprotection.v4.error.ErrorResponse":r.setData(_r.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=vb({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&bb(n.prototype,r),o&&bb(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c);function Pb(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return pb(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pb(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===db(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Tb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Eb(e){return Eb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Eb(e)}function Fb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fb(Object(n),!0).forEach((function(t){Rb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rb(e,t,n){return(t=xb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ib(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xb(r.key),r)}}function xb(e){var t=function(e){if("object"!=Eb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Eb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Eb(t)?t:t+""}function Ab(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ab=function(){return!!e})()}function Db(e){return Db=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Db(e)}function Cb(e,t){return Cb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cb(e,t)}function _b(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}$b.prototype.metadata=void 0,$b.prototype.data=void 0,$b.prototype.$reserved=void 0,$b.prototype.$objectType=void 0,$b.prototype.$unknownFields=void 0;var Nb=new WeakSet,Jb=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Db(t),function(e,t){if(t&&("object"==Eb(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ab()?Reflect.construct(t,n||[],Db(e).constructor):t.apply(e,n))}(this,t),Nb),e.$objectType="dataprotection.v4.config.UpdateConsistencyGroupApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cb(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Sb(Sb(Sb({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):_b(Nb,this,Mb).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):_b(Nb,this,Mb).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new C(t,"no such property exists"):new C("$unknownFields","undefined or null"):new C("$objectType","undefined or null"):new C("$reserved","undefined or null"):new C("data","undefined or null"):new C("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&c.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(Je.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Eb(n[0]),o=0;o<n.length;o++){if("dataprotection.v4.error.AppMessage"!==a)throw"Unknown list of type "+a+" in data";r=sr.constructFromObject(n[o],void 0),i.push(r)}s.setData(i)}else{if("dataprotection.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Eb(e.data)))throw"Unknown datatype "+a+" in data";s.setData(_r.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var l in s.$unknownFields=Sb({},e.$unknownFields),e)Object.keys(s).includes(l)||Object.keys(s).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(s.$unknownFields[l]=e[l])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Ib(n.prototype,r),o&&Ib(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(c);function Mb(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Tb(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tb(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Eb(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Ub(e){return Ub="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ub(e)}function Gb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gb(Object(n),!0).forEach((function(t){Vb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vb(e,t,n){return(t=Bb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bb(r.key),r)}}function Bb(e){var t=function(e){if("object"!=Ub(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ub(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ub(t)?t:t+""}function zb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zb=function(){return!!e})()}function qb(e){return qb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qb(e)}function Kb(e,t){return Kb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kb(e,t)}Jb.prototype.metadata=void 0,Jb.prototype.data=void 0,Jb.prototype.$reserved=void 0,Jb.prototype.$objectType=void 0,Jb.prototype.$unknownFields=void 0;var Hb=new WeakSet,Zb=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=qb(t),function(e,t){if(t&&("object"==Ub(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,zb()?Reflect.construct(t,n||[],qb(e).constructor):t.apply(e,n))}(this,t),Hb),e.$objectType="dataprotection.v4.config.VolumeGroupSyncContext",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kb(e,t)}(t,e),n=t,r=[{key:"getPrimarySite",value:function(){return this.primarySite}},{key:"setPrimarySite",value:function(e){this.primarySite=e}},{key:"getSecondarySite",value:function(){return this.secondarySite}},{key:"setSecondarySite",value:function(e){this.secondarySite=e}},{key:"toJson",value:function(e){return Lb(!1===e?Lb(Lb(Lb(Lb(Lb({},void 0!==this.getPrimarySite()&&null!==this.getPrimarySite()?{primarySite:this.getPrimarySite().toJson(!1)}:{}),void 0!==this.getSecondarySite()&&null!==this.getSecondarySite()?{secondarySite:this.getSecondarySite().toJson(!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Lb(Lb({},void 0!==this.getPrimarySite()&&null!==this.getPrimarySite()?{primarySite:this.getPrimarySite().toJson(!1)}:{}),void 0!==this.getSecondarySite()&&null!==this.getSecondarySite()?{secondarySite:this.getSecondarySite().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"primarySite"!==t||void 0!==this.primarySite&&null!==this.primarySite?"secondarySite"!==t||void 0!==this.secondarySite&&null!==this.secondarySite?new C(t,"no such property exists"):new C("secondarySite","undefined or null"):new C("primarySite","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Bt.constructFromObject(e,n,!0),e.hasOwnProperty("primarySite")&&null!==e.primarySite&&void 0!==e.primarySite&&n.setPrimarySite(fb.constructFromObject(e.primarySite)),e.hasOwnProperty("secondarySite")&&null!==e.secondarySite&&void 0!==e.secondarySite&&n.setSecondarySite(fb.constructFromObject(e.secondarySite)),!r))for(var o in n.$unknownFields=Lb({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Wb(n.prototype,r),o&&Wb(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Bt);Zb.prototype.primarySite=void 0,Zb.prototype.secondarySite=void 0,Bt.prototype.extId=void 0,Bt.prototype.links=void 0,Dt.prototype.tenantId=void 0;var Xb={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Xb).find((function(t){return Xb[t]===e}));return null==t?Xb.$UNKNOWN:Xb[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Xb.$UNKNOWN:case Xb.$REDACTED:case Xb.AVAILABLE:case Xb.UNAVAILABLE:return;default:throw new Error("Invalid : must be WitnessAvailabilityStatus.{ $UNKNOWN|$REDACTED|AVAILABLE|UNAVAILABLE }")}}};Object.freeze(Xb);const Yb=Xb;function Qb(e){return Qb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qb(e)}function em(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?em(Object(n),!0).forEach((function(t){nm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):em(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nm(e,t,n){return(t=om(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,om(r.key),r)}}function om(e){var t=function(e){if("object"!=Qb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qb(t)?t:t+""}function im(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(im=function(){return!!e})()}function am(e){return am=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},am(e)}function sm(e,t){return sm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sm(e,t)}var um=new WeakSet,cm=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=am(t),function(e,t){if(t&&("object"==Qb(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,im()?Reflect.construct(t,n||[],am(e).constructor):t.apply(e,n))}(this,t),um),e.$objectType="dataprotection.v4.config.Witness",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sm(e,t)}(t,e),n=t,r=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getHostReferences",value:function(){return this.hostReferences}},{key:"setHostReferences",value:function(e){this.hostReferences=e}},{key:"getIpAddresses",value:function(){return this.ipAddresses}},{key:"setIpAddresses",value:function(e){this.ipAddresses=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"toJson",value:function(e){return tm(!1===e?tm(tm(tm(tm(tm(tm(tm({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getHostReferences()&&null!==this.getHostReferences()?{hostReferences:this.getHostReferences().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getIpAddresses()&&null!==this.getIpAddresses()?{ipAddresses:this.getIpAddresses()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):tm(tm(tm(tm({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getHostReferences()&&null!==this.getHostReferences()?{hostReferences:this.getHostReferences().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getIpAddresses()&&null!==this.getIpAddresses()?{ipAddresses:this.getIpAddresses()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new C("name","undefined or null");if(!I.validateMaxLength(this.name,256))return new C("name","does not satisfy required maxLength constraint: 256")}if("hostReferences"===t){if(void 0===this.hostReferences||null===this.hostReferences)return new C("hostReferences","undefined or null");if(!I.validateMaxItems(this.hostReferences,100))return new C("hostReferences","does not satisfy required maxItems constraint: 100");if(!I.validateMinItems(this.hostReferences,1))return new C("hostReferences","does not satisfy required minItems constraint: 1")}if("ipAddresses"===t){if(void 0===this.ipAddresses||null===this.ipAddresses)return new C("ipAddresses","undefined or null");if(!I.validateMaxItems(this.ipAddresses,100))return new C("ipAddresses","does not satisfy required maxItems constraint: 100");if(!I.validateMinItems(this.ipAddresses,1))return new C("ipAddresses","does not satisfy required minItems constraint: 1")}return"status"!==t||void 0!==this.status&&null!==this.status?new C(t,"no such property exists"):new C("status","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,Bt.constructFromObject(e,a,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&a.setName(e.name),e.hasOwnProperty("hostReferences")&&null!==e.hostReferences&&void 0!==e.hostReferences){for(i=[],n=e.hostReferences,o=0;o<n.length;o++)r=nh.constructFromObject(n[o],void 0),i.push(r);a.setHostReferences(i)}if(e.hasOwnProperty("ipAddresses")&&null!==e.ipAddresses&&void 0!==e.ipAddresses){for(i=[],n=e.ipAddresses,o=0;o<n.length;o++)i.push(n[o]);a.setIpAddresses(i)}if(e.hasOwnProperty("status")&&null!==e.status&&void 0!==e.status&&a.setStatus(Yb.constructFromObject(e.status)),!s)for(var u in a.$unknownFields=tm({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&rm(n.prototype,r),o&&rm(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Bt);cm.prototype.name=void 0,cm.prototype.hostReferences=void 0,cm.prototype.ipAddresses=void 0,cm.prototype.status=void 0,Bt.prototype.extId=void 0,Bt.prototype.links=void 0,Dt.prototype.tenantId=void 0;const lm={ApiClient:ct,ProtectedResourcesApi:ei,RecoveryPointsApi:Qd,Flag:V,IPAddress:js,IPv4Address:as,IPv6Address:ys,KVPair:le,MapOfStringWrapper:Q,Message:Oe,MessageSeverity:de,TenantAwareModel:Dt,ApiLink:Se,ApiResponseMetadata:Je,ExternalizableAbstractModel:Bt,BackupType:Pu,BaseRecoveryPoint:au,BaseVmRecoveryPoint:zu,ClusterInfo:Rs,DiskRecoveryPoint:ku,RecoveryPointStatus:zs,RecoveryPointType:Ks,VssProperties:Au,AhvVmOverrideSpec:sy,AmazonS3Bucket:vy,AzureBlobStorageContainer:ky,ClusterInfoApiResponse:Vs,ConsistencyGroup:Wy,ConsistencyGroupMember:Ay,ConsistencyGroupMemberType:Py,ConsistencyGroupMigrationSpec:Yy,ConsistencyGroupProjection:sv,CreateConsistencyGroupApiResponse:wv,CreateRecoveryPointApiResponse:_f,DataProtectionSiteReference:Qt,DeleteConsistencyGroupApiResponse:Dv,DeleteRecoveryPointApiResponse:$p,EsxiVmOverrideSpec:Vv,ExpirationTimeSpec:jf,GetProtectedResourceApiResponse:Zr,GetRecoveryPointApiResponse:Gl,GetVmRecoveryPointApiResponse:Jp,HostReference:nh,HostType:Bv,IpAddress:lh,ListRecoveryPointsApiResponse:Hc,LocationReference:vu,MigrateConsistencyGroupApiResponse:kh,NutanixObjectsBucket:xh,ObjectStorageType:Dh,ProtectedEntityType:tn,ProtectedResource:Xn,ProtectedResourcePromoteApiResponse:Ao,ProtectedResourceReplicationStatus:rn,ProtectedResourceRestoreApiResponse:go,ProtectedResourceRestoreSpec:Vo,RecoveryInfo:Rn,RecoveryPoint:Tc,RecoveryPointProjection:_c,RecoveryPointReplicateApiResponse:di,RecoveryPointReplicationSpec:Sd,RecoveryPointRepository:qh,RecoveryPointRepositoryProjection:rb,RecoveryPointRestorationSpec:Fl,RecoveryPointRestoreApiResponse:lp,ReplicationState:pn,RestorableTimeRange:On,SiteProtectionInfo:Un,SiteReference:fb,SynchronousReplicaPromoteApiResponse:$b,SynchronousReplicationRole:xn,UpdateConsistencyGroupApiResponse:Jb,UpdateRecoveryPointExpirationTimeApiResponse:Ld,VmRecoveryPoint:rc,VmRecoveryPointRestoreOverride:ol,VolumeGroupOverrideSpec:pl,VolumeGroupRecoveryPoint:yc,VolumeGroupRecoveryPointRestoreOverride:wl,VolumeGroupSyncContext:Zb,Witness:cm,WitnessAvailabilityStatus:Yb,BaseRecoveryPointSpec:Ra,ChangedRegion:Yl,ChangedVmRegionsApiResponse:pf,ChangedVolumeGroupRegionsApiResponse:wd,ClusterDiscoverOperation:hi,ClusterDiscoverSpec:Oa,ComputeChangedRegionsClusterDiscoverSpec:na,DiskRecoveryPointReference:$i,GetVssMetadataApiResponse:Zf,GetVssMetadataClusterDiscoverSpec:fa,RegionType:Wl,VmDiskRecoveryPointClusterDiscoverSpec:Ga,VmDiskRecoveryPointReference:Ci,VmRecoveryPointChangedRegionsComputeSpec:Ya,VolumeGroupDiskRecoveryPointClusterDiscoverSpec:Zp,VolumeGroupDiskRecoveryPointReference:zi,VolumeGroupRecoveryPointChangedRegionsComputeSpec:sd,AppMessage:sr,ErrorResponse:_r,SchemaValidationError:Pr,SchemaValidationErrorMessage:hr,TaskReference:io}})(),r.default})()));
|