@nutanix-scratch/dataprotection-js-client 4.0.1-alpha.4
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 +49 -0
- package/README.md +194 -0
- package/dist/Ntnx-Dataprotection-js-client-prod.js +11 -0
- package/dist/Ntnx-Dataprotection-js-client.js +2349 -0
- package/dist/es/ApiClient.d.ts +158 -0
- package/dist/es/ApiClient.js +1056 -0
- package/dist/es/Paginable.d.ts +95 -0
- package/dist/es/Paginable.js +289 -0
- package/dist/es/apis/consistencygroup-endpoints.d.ts +98 -0
- package/dist/es/apis/consistencygroup-endpoints.js +304 -0
- package/dist/es/index.d.ts +214 -0
- package/dist/es/index.js +853 -0
- package/dist/es/models/common/v1/config/Flag.d.ts +58 -0
- package/dist/es/models/common/v1/config/Flag.js +277 -0
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +62 -0
- package/dist/es/models/common/v1/config/IPv4Address.js +290 -0
- package/dist/es/models/common/v1/config/KVPair.d.ts +62 -0
- package/dist/es/models/common/v1/config/KVPair.js +334 -0
- package/dist/es/models/common/v1/config/Message.d.ts +84 -0
- package/dist/es/models/common/v1/config/Message.js +356 -0
- package/dist/es/models/common/v1/config/MessageSeverity.d.ts +19 -0
- package/dist/es/models/common/v1/config/MessageSeverity.js +92 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +50 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.js +245 -0
- package/dist/es/models/common/v1/response/ApiLink.d.ts +62 -0
- package/dist/es/models/common/v1/response/ApiLink.js +282 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +98 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +440 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +42 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +273 -0
- package/dist/es/models/dataprotection/v4/common/BaseRecoveryPoint.d.ts +100 -0
- package/dist/es/models/dataprotection/v4/common/BaseRecoveryPoint.js +461 -0
- package/dist/es/models/dataprotection/v4/common/RecoveryPointStatus.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/common/RecoveryPointStatus.js +92 -0
- package/dist/es/models/dataprotection/v4/common/RecoveryPointType.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/common/RecoveryPointType.js +86 -0
- package/dist/es/models/dataprotection/v4/common/VendorSpecificProperty.d.ts +70 -0
- package/dist/es/models/dataprotection/v4/common/VendorSpecificProperty.js +286 -0
- package/dist/es/models/dataprotection/v4/config/AhvVmOverrideSpec.d.ts +50 -0
- package/dist/es/models/dataprotection/v4/config/AhvVmOverrideSpec.js +247 -0
- package/dist/es/models/dataprotection/v4/config/Category.d.ts +70 -0
- package/dist/es/models/dataprotection/v4/config/Category.js +286 -0
- package/dist/es/models/dataprotection/v4/config/ChangedRegions.d.ts +62 -0
- package/dist/es/models/dataprotection/v4/config/ChangedRegions.js +295 -0
- package/dist/es/models/dataprotection/v4/config/ChangedRegionsListApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/ChangedRegionsListApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/ClusterReference.d.ts +69 -0
- package/dist/es/models/dataprotection/v4/config/ClusterReference.js +285 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroup.d.ts +62 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroup.js +328 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupListApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupListApiResponse.js +341 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMember.d.ts +79 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMember.js +326 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMemberType.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMemberType.js +86 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrateApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrateApiResponse.js +318 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.d.ts +69 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.js +290 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupProjection.d.ts +9 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupProjection.js +134 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupRecoveryPointSpec.d.ts +67 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupRecoveryPointSpec.js +285 -0
- package/dist/es/models/dataprotection/v4/config/CreateConsistencyGroupRecoveryPointApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/CreateConsistencyGroupRecoveryPointApiResponse.js +318 -0
- package/dist/es/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.js +318 -0
- package/dist/es/models/dataprotection/v4/config/DataProtectionInfo.d.ts +58 -0
- package/dist/es/models/dataprotection/v4/config/DataProtectionInfo.js +278 -0
- package/dist/es/models/dataprotection/v4/config/DataProtectionSiteReference.d.ts +62 -0
- package/dist/es/models/dataprotection/v4/config/DataProtectionSiteReference.js +287 -0
- package/dist/es/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.js +316 -0
- package/dist/es/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.js +318 -0
- package/dist/es/models/dataprotection/v4/config/DisasterRecoveryLocation.d.ts +68 -0
- package/dist/es/models/dataprotection/v4/config/DisasterRecoveryLocation.js +297 -0
- package/dist/es/models/dataprotection/v4/config/Disk.d.ts +62 -0
- package/dist/es/models/dataprotection/v4/config/Disk.js +285 -0
- package/dist/es/models/dataprotection/v4/config/DiskRecoveryPoint.d.ts +37 -0
- package/dist/es/models/dataprotection/v4/config/DiskRecoveryPoint.js +254 -0
- package/dist/es/models/dataprotection/v4/config/DiskRecoveryPointApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/DiskRecoveryPointApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/DiskRecoveryPointListApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/DiskRecoveryPointListApiResponse.js +336 -0
- package/dist/es/models/dataprotection/v4/config/EsxiVmOverrideSpec.d.ts +50 -0
- package/dist/es/models/dataprotection/v4/config/EsxiVmOverrideSpec.js +247 -0
- package/dist/es/models/dataprotection/v4/config/HardwareArchitecture.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/HardwareArchitecture.js +86 -0
- package/dist/es/models/dataprotection/v4/config/HostReference.d.ts +42 -0
- package/dist/es/models/dataprotection/v4/config/HostReference.js +264 -0
- package/dist/es/models/dataprotection/v4/config/HostType.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/HostType.js +80 -0
- package/dist/es/models/dataprotection/v4/config/HypervisorType.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/HypervisorType.js +92 -0
- package/dist/es/models/dataprotection/v4/config/IpAddress.d.ts +57 -0
- package/dist/es/models/dataprotection/v4/config/IpAddress.js +249 -0
- package/dist/es/models/dataprotection/v4/config/LocationReference.d.ts +50 -0
- package/dist/es/models/dataprotection/v4/config/LocationReference.js +247 -0
- package/dist/es/models/dataprotection/v4/config/PowerState.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/PowerState.js +86 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResource.d.ts +74 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResource.js +400 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceEntityType.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceEntityType.js +86 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceReplicationStatus.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceReplicationStatus.js +104 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.d.ts +69 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.js +287 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryInfo.d.ts +50 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryInfo.js +255 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPoint.d.ts +104 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPoint.js +512 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointListApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointListApiResponse.js +336 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.js +318 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicationSpec.d.ts +43 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicationSpec.js +263 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRestorationSpec.d.ts +74 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRestorationSpec.js +357 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.js +318 -0
- package/dist/es/models/dataprotection/v4/config/Regions.d.ts +62 -0
- package/dist/es/models/dataprotection/v4/config/Regions.js +282 -0
- package/dist/es/models/dataprotection/v4/config/ReplicationState.d.ts +82 -0
- package/dist/es/models/dataprotection/v4/config/ReplicationState.js +357 -0
- package/dist/es/models/dataprotection/v4/config/RestorableTimeRange.d.ts +62 -0
- package/dist/es/models/dataprotection/v4/config/RestorableTimeRange.js +282 -0
- package/dist/es/models/dataprotection/v4/config/SetExpirationTimeSpec.d.ts +57 -0
- package/dist/es/models/dataprotection/v4/config/SetExpirationTimeSpec.js +246 -0
- package/dist/es/models/dataprotection/v4/config/SiteReference.d.ts +62 -0
- package/dist/es/models/dataprotection/v4/config/SiteReference.js +288 -0
- package/dist/es/models/dataprotection/v4/config/Subnet.d.ts +48 -0
- package/dist/es/models/dataprotection/v4/config/Subnet.js +242 -0
- package/dist/es/models/dataprotection/v4/config/SyncedVolumeGroupByIdApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/SyncedVolumeGroupByIdApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/VMRecoveryPoint.d.ts +49 -0
- package/dist/es/models/dataprotection/v4/config/VMRecoveryPoint.js +295 -0
- package/dist/es/models/dataprotection/v4/config/VMRecoveryPointApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/VMRecoveryPointApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/VMRecoveryPointListApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/VMRecoveryPointListApiResponse.js +336 -0
- package/dist/es/models/dataprotection/v4/config/ValidateRecoveryPointResult.d.ts +79 -0
- package/dist/es/models/dataprotection/v4/config/ValidateRecoveryPointResult.js +320 -0
- package/dist/es/models/dataprotection/v4/config/ValidateRestoreVmRecoveryPointApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/ValidateRestoreVmRecoveryPointApiResponse.js +336 -0
- package/dist/es/models/dataprotection/v4/config/ValidationSeverity.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/ValidationSeverity.js +86 -0
- package/dist/es/models/dataprotection/v4/config/Vm.d.ts +140 -0
- package/dist/es/models/dataprotection/v4/config/Vm.js +545 -0
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestorationSpec.d.ts +70 -0
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestorationSpec.js +319 -0
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreApiResponse.js +318 -0
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.d.ts +76 -0
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.js +320 -0
- package/dist/es/models/dataprotection/v4/config/VmSubRecoveryPoint.d.ts +98 -0
- package/dist/es/models/dataprotection/v4/config/VmSubRecoveryPoint.js +405 -0
- package/dist/es/models/dataprotection/v4/config/VmSubRecoveryPointProjection.d.ts +9 -0
- package/dist/es/models/dataprotection/v4/config/VmSubRecoveryPointProjection.js +132 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroup.d.ts +62 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroup.js +285 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupOverrideSpec.d.ts +50 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupOverrideSpec.js +247 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.d.ts +49 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.js +295 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointListApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointListApiResponse.js +336 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestorationSpec.d.ts +62 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestorationSpec.js +288 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreApiResponse.js +318 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.d.ts +66 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.js +284 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupSubRecoveryPoint.d.ts +98 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupSubRecoveryPoint.js +407 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupSubRecoveryPointProjection.d.ts +9 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupSubRecoveryPointProjection.js +132 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupSyncContext.d.ts +58 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupSyncContext.js +279 -0
- package/dist/es/models/dataprotection/v4/config/VpcReference.d.ts +69 -0
- package/dist/es/models/dataprotection/v4/config/VpcReference.js +285 -0
- package/dist/es/models/dataprotection/v4/config/Witness.d.ts +66 -0
- package/dist/es/models/dataprotection/v4/config/Witness.js +358 -0
- package/dist/es/models/dataprotection/v4/config/WitnessApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/WitnessApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/WitnessAvailabilityStatus.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/WitnessAvailabilityStatus.js +86 -0
- package/dist/es/models/dataprotection/v4/error/AppMessage.d.ts +100 -0
- package/dist/es/models/dataprotection/v4/error/AppMessage.js +422 -0
- package/dist/es/models/dataprotection/v4/error/ErrorResponse.d.ts +48 -0
- package/dist/es/models/dataprotection/v4/error/ErrorResponse.js +313 -0
- package/dist/es/models/dataprotection/v4/error/SchemaValidationError.d.ts +88 -0
- package/dist/es/models/dataprotection/v4/error/SchemaValidationError.js +394 -0
- package/dist/es/models/dataprotection/v4/error/SchemaValidationErrorMessage.d.ts +68 -0
- package/dist/es/models/dataprotection/v4/error/SchemaValidationErrorMessage.js +311 -0
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +50 -0
- package/dist/es/models/prism/v4/config/TaskReference.js +260 -0
- package/dist/es/models/storage/v4/config/Task.d.ts +50 -0
- package/dist/es/models/storage/v4/config/Task.js +254 -0
- package/dist/es/models/validation/ValidationError.d.ts +13 -0
- package/dist/es/models/validation/ValidationError.js +62 -0
- package/dist/es/models/validation/ValidationScopes.d.ts +9 -0
- package/dist/es/models/validation/ValidationScopes.js +39 -0
- package/dist/es/utils/ValidationUtils.d.ts +13 -0
- package/dist/es/utils/ValidationUtils.js +87 -0
- package/dist/lib/ApiClient.d.ts +158 -0
- package/dist/lib/ApiClient.js +1056 -0
- package/dist/lib/Paginable.d.ts +95 -0
- package/dist/lib/Paginable.js +289 -0
- package/dist/lib/apis/consistencygroup-endpoints.d.ts +98 -0
- package/dist/lib/apis/consistencygroup-endpoints.js +304 -0
- package/dist/lib/index.d.ts +214 -0
- package/dist/lib/index.js +853 -0
- package/dist/lib/models/common/v1/config/Flag.d.ts +58 -0
- package/dist/lib/models/common/v1/config/Flag.js +277 -0
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +62 -0
- package/dist/lib/models/common/v1/config/IPv4Address.js +290 -0
- package/dist/lib/models/common/v1/config/KVPair.d.ts +62 -0
- package/dist/lib/models/common/v1/config/KVPair.js +334 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +84 -0
- package/dist/lib/models/common/v1/config/Message.js +356 -0
- package/dist/lib/models/common/v1/config/MessageSeverity.d.ts +19 -0
- package/dist/lib/models/common/v1/config/MessageSeverity.js +92 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +50 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +245 -0
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +62 -0
- package/dist/lib/models/common/v1/response/ApiLink.js +282 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +98 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +440 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +42 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +273 -0
- package/dist/lib/models/dataprotection/v4/common/BaseRecoveryPoint.d.ts +100 -0
- package/dist/lib/models/dataprotection/v4/common/BaseRecoveryPoint.js +461 -0
- package/dist/lib/models/dataprotection/v4/common/RecoveryPointStatus.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/common/RecoveryPointStatus.js +92 -0
- package/dist/lib/models/dataprotection/v4/common/RecoveryPointType.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/common/RecoveryPointType.js +86 -0
- package/dist/lib/models/dataprotection/v4/common/VendorSpecificProperty.d.ts +70 -0
- package/dist/lib/models/dataprotection/v4/common/VendorSpecificProperty.js +286 -0
- package/dist/lib/models/dataprotection/v4/config/AhvVmOverrideSpec.d.ts +50 -0
- package/dist/lib/models/dataprotection/v4/config/AhvVmOverrideSpec.js +247 -0
- package/dist/lib/models/dataprotection/v4/config/Category.d.ts +70 -0
- package/dist/lib/models/dataprotection/v4/config/Category.js +286 -0
- package/dist/lib/models/dataprotection/v4/config/ChangedRegions.d.ts +62 -0
- package/dist/lib/models/dataprotection/v4/config/ChangedRegions.js +295 -0
- package/dist/lib/models/dataprotection/v4/config/ChangedRegionsListApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/ChangedRegionsListApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/ClusterReference.d.ts +69 -0
- package/dist/lib/models/dataprotection/v4/config/ClusterReference.js +285 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroup.d.ts +62 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroup.js +328 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupListApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupListApiResponse.js +341 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMember.d.ts +79 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMember.js +326 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMemberType.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMemberType.js +86 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrateApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrateApiResponse.js +318 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.d.ts +69 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.js +290 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupProjection.d.ts +9 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupProjection.js +134 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupRecoveryPointSpec.d.ts +67 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupRecoveryPointSpec.js +285 -0
- package/dist/lib/models/dataprotection/v4/config/CreateConsistencyGroupRecoveryPointApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/CreateConsistencyGroupRecoveryPointApiResponse.js +318 -0
- package/dist/lib/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.js +318 -0
- package/dist/lib/models/dataprotection/v4/config/DataProtectionInfo.d.ts +58 -0
- package/dist/lib/models/dataprotection/v4/config/DataProtectionInfo.js +278 -0
- package/dist/lib/models/dataprotection/v4/config/DataProtectionSiteReference.d.ts +62 -0
- package/dist/lib/models/dataprotection/v4/config/DataProtectionSiteReference.js +287 -0
- package/dist/lib/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.js +316 -0
- package/dist/lib/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.js +318 -0
- package/dist/lib/models/dataprotection/v4/config/DisasterRecoveryLocation.d.ts +68 -0
- package/dist/lib/models/dataprotection/v4/config/DisasterRecoveryLocation.js +297 -0
- package/dist/lib/models/dataprotection/v4/config/Disk.d.ts +62 -0
- package/dist/lib/models/dataprotection/v4/config/Disk.js +285 -0
- package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPoint.d.ts +37 -0
- package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPoint.js +254 -0
- package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPointApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPointApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPointListApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPointListApiResponse.js +336 -0
- package/dist/lib/models/dataprotection/v4/config/EsxiVmOverrideSpec.d.ts +50 -0
- package/dist/lib/models/dataprotection/v4/config/EsxiVmOverrideSpec.js +247 -0
- package/dist/lib/models/dataprotection/v4/config/HardwareArchitecture.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/HardwareArchitecture.js +86 -0
- package/dist/lib/models/dataprotection/v4/config/HostReference.d.ts +42 -0
- package/dist/lib/models/dataprotection/v4/config/HostReference.js +264 -0
- package/dist/lib/models/dataprotection/v4/config/HostType.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/HostType.js +80 -0
- package/dist/lib/models/dataprotection/v4/config/HypervisorType.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/HypervisorType.js +92 -0
- package/dist/lib/models/dataprotection/v4/config/IpAddress.d.ts +57 -0
- package/dist/lib/models/dataprotection/v4/config/IpAddress.js +249 -0
- package/dist/lib/models/dataprotection/v4/config/LocationReference.d.ts +50 -0
- package/dist/lib/models/dataprotection/v4/config/LocationReference.js +247 -0
- package/dist/lib/models/dataprotection/v4/config/PowerState.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/PowerState.js +86 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResource.d.ts +74 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResource.js +400 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceEntityType.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceEntityType.js +86 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceReplicationStatus.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceReplicationStatus.js +104 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.d.ts +69 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.js +287 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryInfo.d.ts +50 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryInfo.js +255 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPoint.d.ts +104 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPoint.js +512 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointListApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointListApiResponse.js +336 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.js +318 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicationSpec.d.ts +43 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicationSpec.js +263 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestorationSpec.d.ts +74 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestorationSpec.js +357 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.js +318 -0
- package/dist/lib/models/dataprotection/v4/config/Regions.d.ts +62 -0
- package/dist/lib/models/dataprotection/v4/config/Regions.js +282 -0
- package/dist/lib/models/dataprotection/v4/config/ReplicationState.d.ts +82 -0
- package/dist/lib/models/dataprotection/v4/config/ReplicationState.js +357 -0
- package/dist/lib/models/dataprotection/v4/config/RestorableTimeRange.d.ts +62 -0
- package/dist/lib/models/dataprotection/v4/config/RestorableTimeRange.js +282 -0
- package/dist/lib/models/dataprotection/v4/config/SetExpirationTimeSpec.d.ts +57 -0
- package/dist/lib/models/dataprotection/v4/config/SetExpirationTimeSpec.js +246 -0
- package/dist/lib/models/dataprotection/v4/config/SiteReference.d.ts +62 -0
- package/dist/lib/models/dataprotection/v4/config/SiteReference.js +288 -0
- package/dist/lib/models/dataprotection/v4/config/Subnet.d.ts +48 -0
- package/dist/lib/models/dataprotection/v4/config/Subnet.js +242 -0
- package/dist/lib/models/dataprotection/v4/config/SyncedVolumeGroupByIdApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/SyncedVolumeGroupByIdApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/VMRecoveryPoint.d.ts +49 -0
- package/dist/lib/models/dataprotection/v4/config/VMRecoveryPoint.js +295 -0
- package/dist/lib/models/dataprotection/v4/config/VMRecoveryPointApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/VMRecoveryPointApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/VMRecoveryPointListApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/VMRecoveryPointListApiResponse.js +336 -0
- package/dist/lib/models/dataprotection/v4/config/ValidateRecoveryPointResult.d.ts +79 -0
- package/dist/lib/models/dataprotection/v4/config/ValidateRecoveryPointResult.js +320 -0
- package/dist/lib/models/dataprotection/v4/config/ValidateRestoreVmRecoveryPointApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/ValidateRestoreVmRecoveryPointApiResponse.js +336 -0
- package/dist/lib/models/dataprotection/v4/config/ValidationSeverity.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/ValidationSeverity.js +86 -0
- package/dist/lib/models/dataprotection/v4/config/Vm.d.ts +140 -0
- package/dist/lib/models/dataprotection/v4/config/Vm.js +545 -0
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestorationSpec.d.ts +70 -0
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestorationSpec.js +319 -0
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreApiResponse.js +318 -0
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.d.ts +76 -0
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.js +320 -0
- package/dist/lib/models/dataprotection/v4/config/VmSubRecoveryPoint.d.ts +98 -0
- package/dist/lib/models/dataprotection/v4/config/VmSubRecoveryPoint.js +405 -0
- package/dist/lib/models/dataprotection/v4/config/VmSubRecoveryPointProjection.d.ts +9 -0
- package/dist/lib/models/dataprotection/v4/config/VmSubRecoveryPointProjection.js +132 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroup.d.ts +62 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroup.js +285 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupOverrideSpec.d.ts +50 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupOverrideSpec.js +247 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.d.ts +49 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.js +295 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointListApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointListApiResponse.js +336 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestorationSpec.d.ts +62 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestorationSpec.js +288 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreApiResponse.js +318 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.d.ts +66 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.js +284 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupSubRecoveryPoint.d.ts +98 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupSubRecoveryPoint.js +407 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupSubRecoveryPointProjection.d.ts +9 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupSubRecoveryPointProjection.js +132 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupSyncContext.d.ts +58 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupSyncContext.js +279 -0
- package/dist/lib/models/dataprotection/v4/config/VpcReference.d.ts +69 -0
- package/dist/lib/models/dataprotection/v4/config/VpcReference.js +285 -0
- package/dist/lib/models/dataprotection/v4/config/Witness.d.ts +66 -0
- package/dist/lib/models/dataprotection/v4/config/Witness.js +358 -0
- package/dist/lib/models/dataprotection/v4/config/WitnessApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/WitnessApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/WitnessAvailabilityStatus.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/WitnessAvailabilityStatus.js +86 -0
- package/dist/lib/models/dataprotection/v4/error/AppMessage.d.ts +100 -0
- package/dist/lib/models/dataprotection/v4/error/AppMessage.js +422 -0
- package/dist/lib/models/dataprotection/v4/error/ErrorResponse.d.ts +48 -0
- package/dist/lib/models/dataprotection/v4/error/ErrorResponse.js +313 -0
- package/dist/lib/models/dataprotection/v4/error/SchemaValidationError.d.ts +88 -0
- package/dist/lib/models/dataprotection/v4/error/SchemaValidationError.js +394 -0
- package/dist/lib/models/dataprotection/v4/error/SchemaValidationErrorMessage.d.ts +68 -0
- package/dist/lib/models/dataprotection/v4/error/SchemaValidationErrorMessage.js +311 -0
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +50 -0
- package/dist/lib/models/prism/v4/config/TaskReference.js +260 -0
- package/dist/lib/models/storage/v4/config/Task.d.ts +50 -0
- package/dist/lib/models/storage/v4/config/Task.js +254 -0
- package/dist/lib/models/validation/ValidationError.d.ts +13 -0
- package/dist/lib/models/validation/ValidationError.js +62 -0
- package/dist/lib/models/validation/ValidationScopes.d.ts +9 -0
- package/dist/lib/models/validation/ValidationScopes.js +39 -0
- package/dist/lib/utils/ValidationUtils.d.ts +13 -0
- package/dist/lib/utils/ValidationUtils.js +87 -0
- package/package.json +52 -0
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiResponseMetadata = _interopRequireDefault(require("../../../common/v1/response/ApiResponseMetadata"));
|
|
8
|
+
var _RecoveryPoint = _interopRequireDefault(require("./RecoveryPoint"));
|
|
9
|
+
var _ErrorResponse = _interopRequireDefault(require("../error/ErrorResponse"));
|
|
10
|
+
var _TaskReference = _interopRequireDefault(require("../../../prism/v4/config/TaskReference"));
|
|
11
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
12
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
13
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
14
|
+
var _Paginable2 = _interopRequireDefault(require("../../../../Paginable"));
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
16
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
17
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
18
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
19
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
20
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
21
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
22
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
23
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
24
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
25
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
26
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
27
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
28
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
29
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
30
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
31
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
32
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
34
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
35
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
36
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
37
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
38
|
+
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
|
39
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
40
|
+
function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; } /*
|
|
41
|
+
* Nutanix Dataprotection Versioned APIs
|
|
42
|
+
*
|
|
43
|
+
* OpenAPI spec version: 4.0.1-alpha-4
|
|
44
|
+
*
|
|
45
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
46
|
+
*
|
|
47
|
+
* Open API Dev Platform Codegen version: 16.8.0.6343-RELEASE
|
|
48
|
+
*
|
|
49
|
+
* Do not edit the class manually.
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
/**
|
|
53
|
+
* The CreateRecoveryPointApiResponse model module.
|
|
54
|
+
* @module Ntnx/CreateRecoveryPointApiResponse
|
|
55
|
+
* @version 4.0.1-alpha-4
|
|
56
|
+
* @class CreateRecoveryPointApiResponse
|
|
57
|
+
*/
|
|
58
|
+
var _toJsonMapType = /*#__PURE__*/new WeakSet();
|
|
59
|
+
var CreateRecoveryPointApiResponse = /*#__PURE__*/function (_Paginable) {
|
|
60
|
+
_inherits(CreateRecoveryPointApiResponse, _Paginable);
|
|
61
|
+
var _super = _createSuper(CreateRecoveryPointApiResponse);
|
|
62
|
+
/**
|
|
63
|
+
* Constructs a new <code>CreateRecoveryPointApiResponse</code>.
|
|
64
|
+
* REST response for all response codes in API path /dataprotection/v4.0.a4/config/recovery-points Post operation
|
|
65
|
+
* @alias module:Ntnx/CreateRecoveryPointApiResponse
|
|
66
|
+
*/
|
|
67
|
+
function CreateRecoveryPointApiResponse() {
|
|
68
|
+
var _this;
|
|
69
|
+
_classCallCheck(this, CreateRecoveryPointApiResponse);
|
|
70
|
+
_this = _super.call(this);
|
|
71
|
+
/*
|
|
72
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
73
|
+
* @param {Object} obj
|
|
74
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
75
|
+
* Otherwise, just returns the input object.
|
|
76
|
+
*/
|
|
77
|
+
_classPrivateMethodInitSpec(_assertThisInitialized(_this), _toJsonMapType);
|
|
78
|
+
_this.$objectType = "dataprotection.v4.config.CreateRecoveryPointApiResponse";
|
|
79
|
+
_this.$reserved = {
|
|
80
|
+
'$fqObjectType': "dataprotection.v4.r0.a4.config.CreateRecoveryPointApiResponse"
|
|
81
|
+
};
|
|
82
|
+
_this.$unknownFields = {};
|
|
83
|
+
return _this;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Constructs a <code>CreateRecoveryPointApiResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
88
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
89
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
90
|
+
* @param {module:Ntnx/CreateRecoveryPointApiResponse} obj Optional instance to populate.
|
|
91
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
92
|
+
* @return {module:Ntnx/CreateRecoveryPointApiResponse} The populated <code>CreateRecoveryPointApiResponse</code> instance.
|
|
93
|
+
*/
|
|
94
|
+
_createClass(CreateRecoveryPointApiResponse, [{
|
|
95
|
+
key: "getMetadata",
|
|
96
|
+
value:
|
|
97
|
+
/**
|
|
98
|
+
* @return {}
|
|
99
|
+
*/
|
|
100
|
+
function getMetadata() {
|
|
101
|
+
return this.metadata;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @param {} metadata
|
|
106
|
+
*/
|
|
107
|
+
}, {
|
|
108
|
+
key: "setMetadata",
|
|
109
|
+
value: function setMetadata(metadata) {
|
|
110
|
+
this.metadata = metadata;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @return {}
|
|
115
|
+
*/
|
|
116
|
+
}, {
|
|
117
|
+
key: "getData",
|
|
118
|
+
value: function getData() {
|
|
119
|
+
return this.data;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @param {} data
|
|
124
|
+
*/
|
|
125
|
+
}, {
|
|
126
|
+
key: "setData",
|
|
127
|
+
value: function setData(data) {
|
|
128
|
+
this.data = data;
|
|
129
|
+
}
|
|
130
|
+
}, {
|
|
131
|
+
key: "get$Reserved",
|
|
132
|
+
value: function get$Reserved() {
|
|
133
|
+
return this.$reserved;
|
|
134
|
+
}
|
|
135
|
+
}, {
|
|
136
|
+
key: "get$ObjectType",
|
|
137
|
+
value: function get$ObjectType() {
|
|
138
|
+
return this.$objectType;
|
|
139
|
+
}
|
|
140
|
+
}, {
|
|
141
|
+
key: "get$UnknownFields",
|
|
142
|
+
value: function get$UnknownFields() {
|
|
143
|
+
return this.$unknownFields;
|
|
144
|
+
}
|
|
145
|
+
}, {
|
|
146
|
+
key: "toJson",
|
|
147
|
+
value: function toJson(forMutation) {
|
|
148
|
+
if (forMutation === false) {
|
|
149
|
+
return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {
|
|
150
|
+
'metadata': this.getMetadata().toJson(false)
|
|
151
|
+
} : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {
|
|
152
|
+
'data': typeof this.getData().toJson !== "undefined" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {
|
|
153
|
+
return typeof item.toJson !== "undefined" ? item.toJson(false) : item;
|
|
154
|
+
}) : _classPrivateMethodGet(this, _toJsonMapType, _toJsonMapType2).call(this, this.getData(), false)
|
|
155
|
+
} : {}), {}, {
|
|
156
|
+
'$reserved': this.get$Reserved(),
|
|
157
|
+
'$objectType': this.get$ObjectType(),
|
|
158
|
+
'$unknownFields': this.get$UnknownFields()
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {
|
|
162
|
+
'metadata': this.getMetadata().toJson(false)
|
|
163
|
+
} : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {
|
|
164
|
+
'data': typeof this.getData().toJson !== "undefined" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {
|
|
165
|
+
return typeof item.toJson !== "undefined" ? item.toJson() : item;
|
|
166
|
+
}) : _classPrivateMethodGet(this, _toJsonMapType, _toJsonMapType2).call(this, this.getData())
|
|
167
|
+
} : {}), {}, {
|
|
168
|
+
'$reserved': this.get$Reserved(),
|
|
169
|
+
'$objectType': this.get$ObjectType(),
|
|
170
|
+
'$unknownFields': this.get$UnknownFields()
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
}, {
|
|
174
|
+
key: "validate",
|
|
175
|
+
value: function validate(scope, properties) {
|
|
176
|
+
var _this2 = this;
|
|
177
|
+
var propList = [];
|
|
178
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
179
|
+
//cases validate() and validate(scope)
|
|
180
|
+
propList = [];
|
|
181
|
+
} else if (arguments.length === 1) {
|
|
182
|
+
//case validate(properties)
|
|
183
|
+
propList = arguments[0];
|
|
184
|
+
scope = null;
|
|
185
|
+
} else {
|
|
186
|
+
//case validate(scope, properties)
|
|
187
|
+
propList = arguments[1];
|
|
188
|
+
}
|
|
189
|
+
var res = [];
|
|
190
|
+
var err = null;
|
|
191
|
+
propList.forEach(function (property) {
|
|
192
|
+
err = _this2.validateProperty(property, scope);
|
|
193
|
+
if (err) {
|
|
194
|
+
res.push(err);
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
return new Promise(function (resolve, reject) {
|
|
198
|
+
if (res.length !== 0) {
|
|
199
|
+
reject(err);
|
|
200
|
+
} else {
|
|
201
|
+
resolve();
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
}, {
|
|
206
|
+
key: "validateProperty",
|
|
207
|
+
value: function validateProperty(scope, property) {
|
|
208
|
+
if (property === "metadata") {
|
|
209
|
+
if (typeof this.metadata === 'undefined' || this.metadata === null) {
|
|
210
|
+
return new _ValidationError["default"]("metadata", "undefined or null");
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
if (property === "data") {
|
|
214
|
+
if (typeof this.data === 'undefined' || this.data === null) {
|
|
215
|
+
return new _ValidationError["default"]("data", "undefined or null");
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
if (property === "$reserved") {
|
|
219
|
+
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
220
|
+
return new _ValidationError["default"]("$reserved", "undefined or null");
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
if (property === "$objectType") {
|
|
224
|
+
if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
|
|
225
|
+
return new _ValidationError["default"]("$objectType", "undefined or null");
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
if (property === "$unknownFields") {
|
|
229
|
+
if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
|
|
230
|
+
return new _ValidationError["default"]("$unknownFields", "undefined or null");
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
234
|
+
}
|
|
235
|
+
}], [{
|
|
236
|
+
key: "constructFromObject",
|
|
237
|
+
value: function constructFromObject(data, obj) {
|
|
238
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
239
|
+
var items, item, i, itemArr, discriminator;
|
|
240
|
+
if (data) {
|
|
241
|
+
obj = obj || new CreateRecoveryPointApiResponse();
|
|
242
|
+
if (data.hasOwnProperty('metadata')) {
|
|
243
|
+
_Paginable2["default"].constructFromObject(data['metadata'], obj);
|
|
244
|
+
}
|
|
245
|
+
if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {
|
|
246
|
+
obj.setMetadata(_ApiResponseMetadata["default"].constructFromObject(data['metadata']));
|
|
247
|
+
}
|
|
248
|
+
if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {
|
|
249
|
+
if (data['data'].hasOwnProperty('$objectType')) {
|
|
250
|
+
discriminator = data['data']['$objectType'];
|
|
251
|
+
} else {
|
|
252
|
+
discriminator = _typeof(data['data']);
|
|
253
|
+
}
|
|
254
|
+
switch (discriminator) {
|
|
255
|
+
case 'prism.v4.config.TaskReference':
|
|
256
|
+
obj.setData(_TaskReference["default"].constructFromObject(data['data'], undefined));
|
|
257
|
+
break;
|
|
258
|
+
case 'dataprotection.v4.config.RecoveryPoint':
|
|
259
|
+
obj.setData(_RecoveryPoint["default"].constructFromObject(data['data'], undefined));
|
|
260
|
+
break;
|
|
261
|
+
case 'dataprotection.v4.error.ErrorResponse':
|
|
262
|
+
obj.setData(_ErrorResponse["default"].constructFromObject(data['data'], undefined));
|
|
263
|
+
break;
|
|
264
|
+
default:
|
|
265
|
+
throw "Unknown datatype " + discriminator + " in data";
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
if (data.hasOwnProperty('$reserved')) {
|
|
269
|
+
obj.$reserved = data['$reserved'];
|
|
270
|
+
}
|
|
271
|
+
if (data.hasOwnProperty('$objectType')) {
|
|
272
|
+
obj.$objectType = data['$objectType'];
|
|
273
|
+
}
|
|
274
|
+
if (data.hasOwnProperty('$unknownFields')) {
|
|
275
|
+
obj.$unknownFields = data['$unknownFields'];
|
|
276
|
+
}
|
|
277
|
+
if (!callFromChild) {
|
|
278
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
279
|
+
for (var property in data) {
|
|
280
|
+
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
281
|
+
obj.$unknownFields[property] = data[property];
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
return obj;
|
|
287
|
+
}
|
|
288
|
+
}]);
|
|
289
|
+
return CreateRecoveryPointApiResponse;
|
|
290
|
+
}(_Paginable2["default"]);
|
|
291
|
+
/**
|
|
292
|
+
* @memberof CreateRecoveryPointApiResponse
|
|
293
|
+
*/
|
|
294
|
+
exports["default"] = CreateRecoveryPointApiResponse;
|
|
295
|
+
function _toJsonMapType2(obj, forMutation) {
|
|
296
|
+
if (obj instanceof Map) {
|
|
297
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
298
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
299
|
+
k = _ref2[0],
|
|
300
|
+
v = _ref2[1];
|
|
301
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
302
|
+
}));
|
|
303
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
304
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
305
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
306
|
+
}));
|
|
307
|
+
}
|
|
308
|
+
return obj;
|
|
309
|
+
}
|
|
310
|
+
CreateRecoveryPointApiResponse.prototype.metadata = undefined;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* @memberof CreateRecoveryPointApiResponse
|
|
314
|
+
*/
|
|
315
|
+
CreateRecoveryPointApiResponse.prototype.data = undefined;
|
|
316
|
+
CreateRecoveryPointApiResponse.prototype.$reserved = undefined;
|
|
317
|
+
CreateRecoveryPointApiResponse.prototype.$objectType = undefined;
|
|
318
|
+
CreateRecoveryPointApiResponse.prototype.$unknownFields = undefined;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The DataProtectionInfo model module.
|
|
3
|
+
* @module Ntnx/DataProtectionInfo
|
|
4
|
+
* @version 4.0.1-alpha-4
|
|
5
|
+
* @class DataProtectionInfo
|
|
6
|
+
*/
|
|
7
|
+
export default class DataProtectionInfo {
|
|
8
|
+
/**
|
|
9
|
+
* Constructs a <code>DataProtectionInfo</code> from a plain JavaScript object, optionally creating a new instance.
|
|
10
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
11
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
12
|
+
* @param {module:Ntnx/DataProtectionInfo} obj Optional instance to populate.
|
|
13
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
14
|
+
* @return {module:Ntnx/DataProtectionInfo} The populated <code>DataProtectionInfo</code> instance.
|
|
15
|
+
*/
|
|
16
|
+
static constructFromObject(data: any, obj: any, callFromChild?: boolean): any;
|
|
17
|
+
$objectType: string;
|
|
18
|
+
$reserved: {
|
|
19
|
+
$fqObjectType: string;
|
|
20
|
+
};
|
|
21
|
+
$unknownFields: {};
|
|
22
|
+
/**
|
|
23
|
+
* @return {}
|
|
24
|
+
*/
|
|
25
|
+
getRecoveryInfo(): any;
|
|
26
|
+
/**
|
|
27
|
+
* @param {} recoveryInfo
|
|
28
|
+
*/
|
|
29
|
+
setRecoveryInfo(recoveryInfo: any): void;
|
|
30
|
+
recoveryInfo: any;
|
|
31
|
+
/**
|
|
32
|
+
* @return {}
|
|
33
|
+
*/
|
|
34
|
+
getLocationReference(): any;
|
|
35
|
+
/**
|
|
36
|
+
* @param {} locationReference
|
|
37
|
+
*/
|
|
38
|
+
setLocationReference(locationReference: any): void;
|
|
39
|
+
locationReference: any;
|
|
40
|
+
get$Reserved(): {
|
|
41
|
+
$fqObjectType: string;
|
|
42
|
+
};
|
|
43
|
+
get$ObjectType(): string;
|
|
44
|
+
get$UnknownFields(): {};
|
|
45
|
+
toJson(forMutation: any): {
|
|
46
|
+
$reserved: {
|
|
47
|
+
$fqObjectType: string;
|
|
48
|
+
};
|
|
49
|
+
$objectType: string;
|
|
50
|
+
$unknownFields: {};
|
|
51
|
+
locationReference?: any;
|
|
52
|
+
recoveryInfo?: any;
|
|
53
|
+
};
|
|
54
|
+
validate(scope: any, properties: any, ...args: any[]): any;
|
|
55
|
+
validateProperty(scope: any, property: any): ValidationError;
|
|
56
|
+
#private;
|
|
57
|
+
}
|
|
58
|
+
import ValidationError from "../../../validation/ValidationError";
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _DataProtectionSiteReference = _interopRequireDefault(require("./DataProtectionSiteReference"));
|
|
8
|
+
var _RecoveryInfo = _interopRequireDefault(require("./RecoveryInfo"));
|
|
9
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
10
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
11
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
14
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
15
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
17
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
18
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
19
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
20
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
21
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
22
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
24
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
25
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
26
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
27
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
28
|
+
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
|
29
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
|
|
30
|
+
* Nutanix Dataprotection Versioned APIs
|
|
31
|
+
*
|
|
32
|
+
* OpenAPI spec version: 4.0.1-alpha-4
|
|
33
|
+
*
|
|
34
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
35
|
+
*
|
|
36
|
+
* Open API Dev Platform Codegen version: 16.8.0.6343-RELEASE
|
|
37
|
+
*
|
|
38
|
+
* Do not edit the class manually.
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
/**
|
|
42
|
+
* The DataProtectionInfo model module.
|
|
43
|
+
* @module Ntnx/DataProtectionInfo
|
|
44
|
+
* @version 4.0.1-alpha-4
|
|
45
|
+
* @class DataProtectionInfo
|
|
46
|
+
*/
|
|
47
|
+
var _toJsonMapType = /*#__PURE__*/new WeakSet();
|
|
48
|
+
var DataProtectionInfo = /*#__PURE__*/function () {
|
|
49
|
+
/**
|
|
50
|
+
* Constructs a new <code>DataProtectionInfo</code>.
|
|
51
|
+
* The data protection details for the protected resource that are relevant to the specified cluster, like the time ranges available for recovery on the given cluster.
|
|
52
|
+
* @alias module:Ntnx/DataProtectionInfo
|
|
53
|
+
*/
|
|
54
|
+
function DataProtectionInfo() {
|
|
55
|
+
_classCallCheck(this, DataProtectionInfo);
|
|
56
|
+
/*
|
|
57
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
58
|
+
* @param {Object} obj
|
|
59
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
60
|
+
* Otherwise, just returns the input object.
|
|
61
|
+
*/
|
|
62
|
+
_classPrivateMethodInitSpec(this, _toJsonMapType);
|
|
63
|
+
this.$objectType = "dataprotection.v4.config.DataProtectionInfo";
|
|
64
|
+
this.$reserved = {
|
|
65
|
+
'$fqObjectType': "dataprotection.v4.r0.a4.config.DataProtectionInfo"
|
|
66
|
+
};
|
|
67
|
+
this.$unknownFields = {};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Constructs a <code>DataProtectionInfo</code> from a plain JavaScript object, optionally creating a new instance.
|
|
72
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
73
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
74
|
+
* @param {module:Ntnx/DataProtectionInfo} obj Optional instance to populate.
|
|
75
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
76
|
+
* @return {module:Ntnx/DataProtectionInfo} The populated <code>DataProtectionInfo</code> instance.
|
|
77
|
+
*/
|
|
78
|
+
_createClass(DataProtectionInfo, [{
|
|
79
|
+
key: "getRecoveryInfo",
|
|
80
|
+
value:
|
|
81
|
+
/**
|
|
82
|
+
* @return {}
|
|
83
|
+
*/
|
|
84
|
+
function getRecoveryInfo() {
|
|
85
|
+
return this.recoveryInfo;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @param {} recoveryInfo
|
|
90
|
+
*/
|
|
91
|
+
}, {
|
|
92
|
+
key: "setRecoveryInfo",
|
|
93
|
+
value: function setRecoveryInfo(recoveryInfo) {
|
|
94
|
+
this.recoveryInfo = recoveryInfo;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @return {}
|
|
99
|
+
*/
|
|
100
|
+
}, {
|
|
101
|
+
key: "getLocationReference",
|
|
102
|
+
value: function getLocationReference() {
|
|
103
|
+
return this.locationReference;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @param {} locationReference
|
|
108
|
+
*/
|
|
109
|
+
}, {
|
|
110
|
+
key: "setLocationReference",
|
|
111
|
+
value: function setLocationReference(locationReference) {
|
|
112
|
+
this.locationReference = locationReference;
|
|
113
|
+
}
|
|
114
|
+
}, {
|
|
115
|
+
key: "get$Reserved",
|
|
116
|
+
value: function get$Reserved() {
|
|
117
|
+
return this.$reserved;
|
|
118
|
+
}
|
|
119
|
+
}, {
|
|
120
|
+
key: "get$ObjectType",
|
|
121
|
+
value: function get$ObjectType() {
|
|
122
|
+
return this.$objectType;
|
|
123
|
+
}
|
|
124
|
+
}, {
|
|
125
|
+
key: "get$UnknownFields",
|
|
126
|
+
value: function get$UnknownFields() {
|
|
127
|
+
return this.$unknownFields;
|
|
128
|
+
}
|
|
129
|
+
}, {
|
|
130
|
+
key: "toJson",
|
|
131
|
+
value: function toJson(forMutation) {
|
|
132
|
+
if (forMutation === false) {
|
|
133
|
+
return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getRecoveryInfo() !== 'undefined' && this.getRecoveryInfo() !== null ? {
|
|
134
|
+
'recoveryInfo': this.getRecoveryInfo().toJson(false)
|
|
135
|
+
} : {}), typeof this.getLocationReference() !== 'undefined' && this.getLocationReference() !== null ? {
|
|
136
|
+
'locationReference': this.getLocationReference().toJson(false)
|
|
137
|
+
} : {}), {}, {
|
|
138
|
+
'$reserved': this.get$Reserved(),
|
|
139
|
+
'$objectType': this.get$ObjectType(),
|
|
140
|
+
'$unknownFields': this.get$UnknownFields()
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getRecoveryInfo() !== 'undefined' && this.getRecoveryInfo() !== null ? {
|
|
144
|
+
'recoveryInfo': this.getRecoveryInfo().toJson(false)
|
|
145
|
+
} : {}), typeof this.getLocationReference() !== 'undefined' && this.getLocationReference() !== null ? {
|
|
146
|
+
'locationReference': this.getLocationReference().toJson(false)
|
|
147
|
+
} : {}), {}, {
|
|
148
|
+
'$reserved': this.get$Reserved(),
|
|
149
|
+
'$objectType': this.get$ObjectType(),
|
|
150
|
+
'$unknownFields': this.get$UnknownFields()
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
}, {
|
|
154
|
+
key: "validate",
|
|
155
|
+
value: function validate(scope, properties) {
|
|
156
|
+
var _this = this;
|
|
157
|
+
var propList = [];
|
|
158
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
159
|
+
//cases validate() and validate(scope)
|
|
160
|
+
propList = [];
|
|
161
|
+
} else if (arguments.length === 1) {
|
|
162
|
+
//case validate(properties)
|
|
163
|
+
propList = arguments[0];
|
|
164
|
+
scope = null;
|
|
165
|
+
} else {
|
|
166
|
+
//case validate(scope, properties)
|
|
167
|
+
propList = arguments[1];
|
|
168
|
+
}
|
|
169
|
+
var res = [];
|
|
170
|
+
var err = null;
|
|
171
|
+
propList.forEach(function (property) {
|
|
172
|
+
err = _this.validateProperty(property, scope);
|
|
173
|
+
if (err) {
|
|
174
|
+
res.push(err);
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
return new Promise(function (resolve, reject) {
|
|
178
|
+
if (res.length !== 0) {
|
|
179
|
+
reject(err);
|
|
180
|
+
} else {
|
|
181
|
+
resolve();
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
}, {
|
|
186
|
+
key: "validateProperty",
|
|
187
|
+
value: function validateProperty(scope, property) {
|
|
188
|
+
if (property === "recoveryInfo") {
|
|
189
|
+
if (typeof this.recoveryInfo === 'undefined' || this.recoveryInfo === null) {
|
|
190
|
+
return new _ValidationError["default"]("recoveryInfo", "undefined or null");
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
if (property === "locationReference") {
|
|
194
|
+
if (typeof this.locationReference === 'undefined' || this.locationReference === null) {
|
|
195
|
+
return new _ValidationError["default"]("locationReference", "undefined or null");
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
if (property === "$reserved") {
|
|
199
|
+
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
200
|
+
return new _ValidationError["default"]("$reserved", "undefined or null");
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
if (property === "$objectType") {
|
|
204
|
+
if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
|
|
205
|
+
return new _ValidationError["default"]("$objectType", "undefined or null");
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
if (property === "$unknownFields") {
|
|
209
|
+
if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
|
|
210
|
+
return new _ValidationError["default"]("$unknownFields", "undefined or null");
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
214
|
+
}
|
|
215
|
+
}], [{
|
|
216
|
+
key: "constructFromObject",
|
|
217
|
+
value: function constructFromObject(data, obj) {
|
|
218
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
219
|
+
var items, item, i, itemArr, discriminator;
|
|
220
|
+
if (data) {
|
|
221
|
+
obj = obj || new DataProtectionInfo();
|
|
222
|
+
if (data.hasOwnProperty('recoveryInfo') && data.recoveryInfo !== null && data.recoveryInfo !== undefined) {
|
|
223
|
+
obj.setRecoveryInfo(_RecoveryInfo["default"].constructFromObject(data['recoveryInfo']));
|
|
224
|
+
}
|
|
225
|
+
if (data.hasOwnProperty('locationReference') && data.locationReference !== null && data.locationReference !== undefined) {
|
|
226
|
+
obj.setLocationReference(_DataProtectionSiteReference["default"].constructFromObject(data['locationReference']));
|
|
227
|
+
}
|
|
228
|
+
if (data.hasOwnProperty('$reserved')) {
|
|
229
|
+
obj.$reserved = data['$reserved'];
|
|
230
|
+
}
|
|
231
|
+
if (data.hasOwnProperty('$objectType')) {
|
|
232
|
+
obj.$objectType = data['$objectType'];
|
|
233
|
+
}
|
|
234
|
+
if (data.hasOwnProperty('$unknownFields')) {
|
|
235
|
+
obj.$unknownFields = data['$unknownFields'];
|
|
236
|
+
}
|
|
237
|
+
if (!callFromChild) {
|
|
238
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
239
|
+
for (var property in data) {
|
|
240
|
+
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
241
|
+
obj.$unknownFields[property] = data[property];
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
return obj;
|
|
247
|
+
}
|
|
248
|
+
}]);
|
|
249
|
+
return DataProtectionInfo;
|
|
250
|
+
}();
|
|
251
|
+
/**
|
|
252
|
+
* @memberof DataProtectionInfo
|
|
253
|
+
*/
|
|
254
|
+
exports["default"] = DataProtectionInfo;
|
|
255
|
+
function _toJsonMapType2(obj, forMutation) {
|
|
256
|
+
if (obj instanceof Map) {
|
|
257
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
258
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
259
|
+
k = _ref2[0],
|
|
260
|
+
v = _ref2[1];
|
|
261
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
262
|
+
}));
|
|
263
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
264
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
265
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
266
|
+
}));
|
|
267
|
+
}
|
|
268
|
+
return obj;
|
|
269
|
+
}
|
|
270
|
+
DataProtectionInfo.prototype.recoveryInfo = undefined;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* @memberof DataProtectionInfo
|
|
274
|
+
*/
|
|
275
|
+
DataProtectionInfo.prototype.locationReference = undefined;
|
|
276
|
+
DataProtectionInfo.prototype.$reserved = undefined;
|
|
277
|
+
DataProtectionInfo.prototype.$objectType = undefined;
|
|
278
|
+
DataProtectionInfo.prototype.$unknownFields = undefined;
|