@nutanix-scratch/dataprotection-js-client 4.0.1-alpha.4 → 4.0.1-beta.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/README.md +35 -28
- package/dist/Ntnx-Dataprotection-js-client-prod.js +1 -11
- package/dist/Ntnx-Dataprotection-js-client.js +530 -1501
- package/dist/es/ApiClient.d.ts +2 -1
- package/dist/es/ApiClient.js +401 -246
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +17 -19
- 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 +126 -0
- package/dist/es/apis/recoverypoints-endpoints.js +394 -0
- package/dist/es/index.d.ts +55 -87
- package/dist/es/index.js +169 -298
- package/dist/es/models/common/v1/config/Flag.d.ts +5 -5
- package/dist/es/models/common/v1/config/Flag.js +25 -27
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +5 -5
- package/dist/es/models/common/v1/config/IPv4Address.js +25 -27
- package/dist/es/models/common/v1/config/KVPair.d.ts +5 -5
- package/dist/es/models/common/v1/config/KVPair.js +28 -30
- package/dist/es/models/common/v1/config/Message.d.ts +5 -5
- package/dist/es/models/common/v1/config/Message.js +25 -27
- package/dist/es/models/common/v1/config/MessageSeverity.js +9 -10
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +8 -8
- package/dist/es/models/common/v1/config/TenantAwareModel.js +29 -31
- package/dist/es/models/common/v1/response/ApiLink.d.ts +5 -5
- package/dist/es/models/common/v1/response/ApiLink.js +26 -28
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +8 -8
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +29 -31
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +5 -5
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +36 -39
- package/dist/es/models/dataprotection/v4/common/BaseRecoveryPoint.d.ts +2 -14
- package/dist/es/models/dataprotection/v4/common/BaseRecoveryPoint.js +33 -81
- package/dist/es/models/dataprotection/v4/common/RecoveryPointStatus.js +3 -4
- package/dist/es/models/dataprotection/v4/common/RecoveryPointType.js +3 -4
- package/dist/es/models/dataprotection/v4/config/AhvVmOverrideSpec.d.ts +5 -5
- package/dist/es/models/dataprotection/v4/config/AhvVmOverrideSpec.js +31 -31
- package/dist/es/models/dataprotection/v4/config/AmazonS3Bucket.d.ts +62 -0
- package/dist/es/models/{storage/v4/config/Task.js → dataprotection/v4/config/AmazonS3Bucket.js} +101 -72
- package/dist/es/models/dataprotection/v4/config/AzureBlobStorageContainer.d.ts +62 -0
- package/dist/{lib/models/storage/v4/config/Task.js → es/models/dataprotection/v4/config/AzureBlobStorageContainer.js} +101 -72
- package/dist/es/models/dataprotection/v4/config/Category.d.ts +17 -11
- package/dist/es/models/dataprotection/v4/config/Category.js +33 -29
- package/dist/es/models/dataprotection/v4/config/ClusterReference.d.ts +12 -9
- package/dist/es/models/dataprotection/v4/config/ClusterReference.js +29 -28
- package/dist/es/models/{storage/v4/config/Task.d.ts → dataprotection/v4/config/ComputeChangedRegionsResponse.d.ts} +17 -19
- package/dist/es/models/dataprotection/v4/config/ComputeChangedRegionsResponse.js +262 -0
- package/dist/{lib/models/dataprotection/v4/config/ConsistencyGroupMigrateApiResponse.d.ts → es/models/dataprotection/v4/config/ComputeChangedRegionsResponseModel.d.ts} +12 -12
- package/dist/es/models/dataprotection/v4/config/{WitnessApiResponse.js → ComputeChangedRegionsResponseModel.js} +57 -60
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroup.d.ts +39 -7
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroup.js +123 -42
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMember.d.ts +18 -26
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMember.js +48 -88
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMemberType.js +3 -4
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.d.ts +15 -22
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.js +65 -69
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupProjection.d.ts +5 -1
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupProjection.js +39 -35
- package/dist/es/models/dataprotection/v4/config/{VmRecoveryPointRestoreApiResponse.d.ts → CreateConsistencyGroupApiResponse.d.ts} +12 -12
- package/dist/{lib/models/dataprotection/v4/config/ConsistencyGroupApiResponse.js → es/models/dataprotection/v4/config/CreateConsistencyGroupApiResponse.js} +54 -57
- package/dist/es/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.d.ts +5 -5
- package/dist/es/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.js +35 -42
- package/dist/es/models/dataprotection/v4/config/DataProtectionSiteReference.d.ts +10 -10
- package/dist/es/models/dataprotection/v4/config/DataProtectionSiteReference.js +44 -46
- package/dist/es/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.d.ts +5 -5
- package/dist/es/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.js +35 -38
- package/dist/es/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.d.ts +5 -5
- package/dist/es/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.js +35 -42
- package/dist/es/models/dataprotection/v4/config/DisasterRecoveryLocation.d.ts +12 -9
- package/dist/es/models/dataprotection/v4/config/DisasterRecoveryLocation.js +29 -28
- package/dist/es/models/dataprotection/v4/config/DiskRecoveryPoint.d.ts +44 -19
- package/dist/es/models/dataprotection/v4/config/DiskRecoveryPoint.js +137 -105
- package/dist/es/models/dataprotection/v4/config/EsxiVmOverrideSpec.d.ts +5 -5
- package/dist/es/models/dataprotection/v4/config/EsxiVmOverrideSpec.js +31 -31
- package/dist/es/models/dataprotection/v4/config/ExpirationTimeSpec.d.ts +60 -0
- package/dist/es/models/dataprotection/v4/config/{SetExpirationTimeSpec.js → ExpirationTimeSpec.js} +51 -50
- package/dist/es/models/dataprotection/v4/config/{ConsistencyGroupListApiResponse.d.ts → GetProtectedResourceApiResponse.d.ts} +12 -12
- package/dist/{lib/models/dataprotection/v4/config/ProtectedResourceApiResponse.js → es/models/dataprotection/v4/config/GetProtectedResourceApiResponse.js} +54 -57
- package/dist/{lib/models/dataprotection/v4/config/ConsistencyGroupApiResponse.d.ts → es/models/dataprotection/v4/config/GetRecoveryPointApiResponse.d.ts} +12 -12
- package/dist/{lib/models/dataprotection/v4/config/RecoveryPointApiResponse.js → es/models/dataprotection/v4/config/GetRecoveryPointApiResponse.js} +54 -57
- package/dist/es/models/dataprotection/v4/config/HostReference.d.ts +2 -2
- package/dist/es/models/dataprotection/v4/config/HostReference.js +34 -34
- package/dist/es/models/dataprotection/v4/config/HostType.js +3 -4
- package/dist/es/models/dataprotection/v4/config/IpAddress.d.ts +12 -9
- package/dist/es/models/dataprotection/v4/config/IpAddress.js +29 -28
- package/dist/{lib/models/dataprotection/v4/config/ChangedRegionsListApiResponse.d.ts → es/models/dataprotection/v4/config/ListRecoveryPointsApiResponse.d.ts} +12 -12
- package/dist/{lib/models/dataprotection/v4/config/RecoveryPointListApiResponse.js → es/models/dataprotection/v4/config/ListRecoveryPointsApiResponse.js} +59 -57
- package/dist/es/models/dataprotection/v4/config/LocationReference.d.ts +8 -8
- package/dist/es/models/dataprotection/v4/config/LocationReference.js +30 -32
- package/dist/es/models/dataprotection/v4/config/{ConsistencyGroupMigrateApiResponse.d.ts → MigrateConsistencyGroupApiResponse.d.ts} +12 -12
- package/dist/{lib/models/dataprotection/v4/config/WitnessApiResponse.js → es/models/dataprotection/v4/config/MigrateConsistencyGroupApiResponse.js} +57 -60
- package/dist/es/models/dataprotection/v4/config/NutanixObjectsBucket.d.ts +50 -0
- package/dist/es/models/dataprotection/v4/config/NutanixObjectsBucket.js +245 -0
- package/dist/{lib/models/dataprotection/v4/config/HypervisorType.d.ts → es/models/dataprotection/v4/config/ObjectStorageType.d.ts} +6 -6
- package/dist/{lib/models/dataprotection/v4/config/HypervisorType.js → es/models/dataprotection/v4/config/ObjectStorageType.js} +26 -27
- package/dist/es/models/dataprotection/v4/config/{ValidationSeverity.d.ts → ProtectedEntityType.d.ts} +6 -6
- package/dist/{lib/models/dataprotection/v4/config/ProtectedResourceEntityType.js → es/models/dataprotection/v4/config/ProtectedEntityType.js} +21 -22
- package/dist/es/models/dataprotection/v4/config/ProtectedResource.d.ts +21 -9
- package/dist/es/models/dataprotection/v4/config/ProtectedResource.js +111 -62
- package/dist/es/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.d.ts +5 -5
- package/dist/es/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.js +35 -38
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceReplicationStatus.js +11 -24
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.d.ts +5 -5
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.js +35 -38
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.d.ts +24 -9
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.js +95 -31
- package/dist/es/models/dataprotection/v4/config/RecoveryInfo.d.ts +5 -5
- package/dist/es/models/dataprotection/v4/config/RecoveryInfo.js +25 -27
- package/dist/es/models/dataprotection/v4/config/RecoveryPoint.d.ts +14 -44
- package/dist/es/models/dataprotection/v4/config/RecoveryPoint.js +59 -167
- package/dist/es/models/dataprotection/v4/config/RecoveryPointProjection.d.ts +9 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointProjection.js +132 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.d.ts +5 -5
- package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.js +35 -42
- package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicationSpec.d.ts +37 -18
- package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicationSpec.js +114 -91
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRepository.d.ts +52 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRepository.js +323 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRepositoryProjection.d.ts +9 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRepositoryProjection.js +129 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRestorationSpec.d.ts +14 -14
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRestorationSpec.js +42 -44
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.d.ts +5 -5
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.js +35 -42
- package/dist/es/models/dataprotection/v4/config/RedirectionResponse.d.ts +60 -0
- package/dist/es/models/dataprotection/v4/config/RedirectionResponse.js +279 -0
- package/dist/es/models/dataprotection/v4/config/Region.d.ts +91 -0
- package/dist/{lib/models/dataprotection/v4/config/Regions.js → es/models/dataprotection/v4/config/Region.js} +107 -58
- package/dist/es/models/dataprotection/v4/config/RegionResponse.d.ts +60 -0
- package/dist/es/models/dataprotection/v4/config/{ChangedRegions.js → RegionResponse.js} +58 -58
- package/dist/es/models/dataprotection/v4/config/{PowerState.d.ts → RegionType.d.ts} +6 -6
- package/dist/es/models/dataprotection/v4/config/{PowerState.js → RegionType.js} +23 -24
- package/dist/es/models/dataprotection/v4/config/ReplicationState.d.ts +19 -17
- package/dist/es/models/dataprotection/v4/config/ReplicationState.js +72 -66
- package/dist/es/models/dataprotection/v4/config/RestorableTimeRange.d.ts +5 -5
- package/dist/es/models/dataprotection/v4/config/RestorableTimeRange.js +25 -27
- package/dist/{lib/models/dataprotection/v4/config/DataProtectionInfo.d.ts → es/models/dataprotection/v4/config/SiteProtectionInfo.d.ts} +12 -12
- package/dist/{lib/models/dataprotection/v4/config/DataProtectionInfo.js → es/models/dataprotection/v4/config/SiteProtectionInfo.js} +45 -47
- package/dist/es/models/dataprotection/v4/config/SiteReference.d.ts +5 -5
- package/dist/es/models/dataprotection/v4/config/SiteReference.js +25 -27
- package/dist/es/models/dataprotection/v4/config/Subnet.d.ts +5 -5
- package/dist/es/models/dataprotection/v4/config/Subnet.js +25 -27
- package/dist/es/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.d.ts +5 -5
- package/dist/es/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.js +35 -38
- package/dist/{lib/models/dataprotection/v4/config/VmRecoveryPointRestoreApiResponse.d.ts → es/models/dataprotection/v4/config/UpdateConsistencyGroupApiResponse.d.ts} +12 -12
- package/dist/es/models/dataprotection/v4/config/{VMRecoveryPointListApiResponse.js → UpdateConsistencyGroupApiResponse.js} +57 -60
- package/dist/es/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.d.ts +5 -5
- package/dist/es/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.js +35 -38
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPoint.d.ts +77 -0
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPoint.js +361 -0
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointComputeChangedRegionsRequest.d.ts +98 -0
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointComputeChangedRegionsRequest.js +403 -0
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.d.ts +12 -38
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.js +49 -125
- package/dist/es/models/dataprotection/v4/config/VolumeGroupOverrideSpec.d.ts +5 -5
- package/dist/es/models/dataprotection/v4/config/VolumeGroupOverrideSpec.js +29 -29
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.d.ts +40 -22
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.js +126 -108
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointComputeChangedRegionsRequest.d.ts +98 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointComputeChangedRegionsRequest.js +403 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.d.ts +12 -18
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.js +49 -53
- package/dist/es/models/dataprotection/v4/config/VolumeGroupSyncContext.d.ts +5 -5
- package/dist/es/models/dataprotection/v4/config/VolumeGroupSyncContext.js +27 -31
- package/dist/es/models/dataprotection/v4/config/VpcReference.d.ts +13 -10
- package/dist/es/models/dataprotection/v4/config/VpcReference.js +30 -29
- package/dist/es/models/dataprotection/v4/config/Witness.d.ts +5 -5
- package/dist/es/models/dataprotection/v4/config/Witness.js +39 -41
- package/dist/es/models/dataprotection/v4/config/WitnessAvailabilityStatus.js +3 -4
- package/dist/es/models/dataprotection/v4/error/AppMessage.d.ts +20 -12
- package/dist/es/models/dataprotection/v4/error/AppMessage.js +49 -39
- package/dist/es/models/dataprotection/v4/error/ErrorResponse.d.ts +5 -5
- package/dist/es/models/dataprotection/v4/error/ErrorResponse.js +36 -50
- package/dist/es/models/dataprotection/v4/error/SchemaValidationError.d.ts +20 -10
- package/dist/es/models/dataprotection/v4/error/SchemaValidationError.js +45 -32
- package/dist/es/models/dataprotection/v4/error/SchemaValidationErrorMessage.d.ts +14 -8
- package/dist/es/models/dataprotection/v4/error/SchemaValidationErrorMessage.js +37 -30
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +5 -5
- package/dist/es/models/prism/v4/config/TaskReference.js +27 -32
- package/dist/es/models/validation/ValidationError.js +8 -10
- package/dist/es/models/validation/ValidationScopes.js +1 -2
- package/dist/es/utils/ValidationUtils.js +8 -10
- package/dist/lib/ApiClient.d.ts +2 -1
- package/dist/lib/ApiClient.js +401 -246
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +17 -19
- 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 +126 -0
- package/dist/lib/apis/recoverypoints-endpoints.js +394 -0
- package/dist/lib/index.d.ts +55 -87
- package/dist/lib/index.js +169 -298
- package/dist/lib/models/common/v1/config/Flag.d.ts +5 -5
- package/dist/lib/models/common/v1/config/Flag.js +25 -27
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +5 -5
- package/dist/lib/models/common/v1/config/IPv4Address.js +25 -27
- package/dist/lib/models/common/v1/config/KVPair.d.ts +5 -5
- package/dist/lib/models/common/v1/config/KVPair.js +28 -30
- package/dist/lib/models/common/v1/config/Message.d.ts +5 -5
- package/dist/lib/models/common/v1/config/Message.js +25 -27
- package/dist/lib/models/common/v1/config/MessageSeverity.js +9 -10
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +8 -8
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +29 -31
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +5 -5
- package/dist/lib/models/common/v1/response/ApiLink.js +26 -28
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +8 -8
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +29 -31
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +5 -5
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +36 -39
- package/dist/lib/models/dataprotection/v4/common/BaseRecoveryPoint.d.ts +2 -14
- package/dist/lib/models/dataprotection/v4/common/BaseRecoveryPoint.js +33 -81
- package/dist/lib/models/dataprotection/v4/common/RecoveryPointStatus.js +3 -4
- package/dist/lib/models/dataprotection/v4/common/RecoveryPointType.js +3 -4
- package/dist/lib/models/dataprotection/v4/config/AhvVmOverrideSpec.d.ts +5 -5
- package/dist/lib/models/dataprotection/v4/config/AhvVmOverrideSpec.js +31 -31
- package/dist/lib/models/dataprotection/v4/config/AmazonS3Bucket.d.ts +62 -0
- package/dist/lib/models/dataprotection/v4/config/AmazonS3Bucket.js +283 -0
- package/dist/lib/models/dataprotection/v4/config/AzureBlobStorageContainer.d.ts +62 -0
- package/dist/lib/models/dataprotection/v4/config/AzureBlobStorageContainer.js +283 -0
- package/dist/lib/models/dataprotection/v4/config/Category.d.ts +17 -11
- package/dist/lib/models/dataprotection/v4/config/Category.js +33 -29
- package/dist/lib/models/dataprotection/v4/config/ClusterReference.d.ts +12 -9
- package/dist/lib/models/dataprotection/v4/config/ClusterReference.js +29 -28
- package/dist/lib/models/{storage/v4/config/Task.d.ts → dataprotection/v4/config/ComputeChangedRegionsResponse.d.ts} +17 -19
- package/dist/lib/models/dataprotection/v4/config/ComputeChangedRegionsResponse.js +262 -0
- package/dist/lib/models/dataprotection/v4/config/ComputeChangedRegionsResponseModel.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/ComputeChangedRegionsResponseModel.js +311 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroup.d.ts +39 -7
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroup.js +123 -42
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMember.d.ts +18 -26
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMember.js +48 -88
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMemberType.js +3 -4
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.d.ts +15 -22
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.js +65 -69
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupProjection.d.ts +5 -1
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupProjection.js +39 -35
- package/dist/{es/models/dataprotection/v4/config/DiskRecoveryPointApiResponse.d.ts → lib/models/dataprotection/v4/config/CreateConsistencyGroupApiResponse.d.ts} +12 -12
- package/dist/{es/models/dataprotection/v4/config/ConsistencyGroupApiResponse.js → lib/models/dataprotection/v4/config/CreateConsistencyGroupApiResponse.js} +54 -57
- package/dist/lib/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.d.ts +5 -5
- package/dist/lib/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.js +35 -42
- package/dist/lib/models/dataprotection/v4/config/DataProtectionSiteReference.d.ts +10 -10
- package/dist/lib/models/dataprotection/v4/config/DataProtectionSiteReference.js +44 -46
- package/dist/lib/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.d.ts +5 -5
- package/dist/lib/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.js +35 -38
- package/dist/lib/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.d.ts +5 -5
- package/dist/lib/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.js +35 -42
- package/dist/lib/models/dataprotection/v4/config/DisasterRecoveryLocation.d.ts +12 -9
- package/dist/lib/models/dataprotection/v4/config/DisasterRecoveryLocation.js +29 -28
- package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPoint.d.ts +44 -19
- package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPoint.js +137 -105
- package/dist/lib/models/dataprotection/v4/config/EsxiVmOverrideSpec.d.ts +5 -5
- package/dist/lib/models/dataprotection/v4/config/EsxiVmOverrideSpec.js +31 -31
- package/dist/lib/models/dataprotection/v4/config/ExpirationTimeSpec.d.ts +60 -0
- package/dist/lib/models/dataprotection/v4/config/{SetExpirationTimeSpec.js → ExpirationTimeSpec.js} +51 -50
- package/dist/lib/models/dataprotection/v4/config/{ConsistencyGroupListApiResponse.d.ts → GetProtectedResourceApiResponse.d.ts} +12 -12
- package/dist/{es/models/dataprotection/v4/config/ProtectedResourceApiResponse.js → lib/models/dataprotection/v4/config/GetProtectedResourceApiResponse.js} +54 -57
- package/dist/{es/models/dataprotection/v4/config/ConsistencyGroupApiResponse.d.ts → lib/models/dataprotection/v4/config/GetRecoveryPointApiResponse.d.ts} +12 -12
- package/dist/{es/models/dataprotection/v4/config/RecoveryPointApiResponse.js → lib/models/dataprotection/v4/config/GetRecoveryPointApiResponse.js} +54 -57
- package/dist/lib/models/dataprotection/v4/config/HostReference.d.ts +2 -2
- package/dist/lib/models/dataprotection/v4/config/HostReference.js +34 -34
- package/dist/lib/models/dataprotection/v4/config/HostType.js +3 -4
- package/dist/lib/models/dataprotection/v4/config/IpAddress.d.ts +12 -9
- package/dist/lib/models/dataprotection/v4/config/IpAddress.js +29 -28
- package/dist/{es/models/dataprotection/v4/config/ChangedRegionsListApiResponse.d.ts → lib/models/dataprotection/v4/config/ListRecoveryPointsApiResponse.d.ts} +12 -12
- package/dist/{es/models/dataprotection/v4/config/RecoveryPointListApiResponse.js → lib/models/dataprotection/v4/config/ListRecoveryPointsApiResponse.js} +59 -57
- package/dist/lib/models/dataprotection/v4/config/LocationReference.d.ts +8 -8
- package/dist/lib/models/dataprotection/v4/config/LocationReference.js +30 -32
- package/dist/lib/models/dataprotection/v4/config/MigrateConsistencyGroupApiResponse.d.ts +59 -0
- package/dist/{es/models/dataprotection/v4/config/ConsistencyGroupMigrateApiResponse.js → lib/models/dataprotection/v4/config/MigrateConsistencyGroupApiResponse.js} +54 -61
- package/dist/lib/models/dataprotection/v4/config/NutanixObjectsBucket.d.ts +50 -0
- package/dist/lib/models/dataprotection/v4/config/NutanixObjectsBucket.js +245 -0
- package/dist/{es/models/dataprotection/v4/config/HypervisorType.d.ts → lib/models/dataprotection/v4/config/ObjectStorageType.d.ts} +6 -6
- package/dist/{es/models/dataprotection/v4/config/HypervisorType.js → lib/models/dataprotection/v4/config/ObjectStorageType.js} +26 -27
- package/dist/lib/models/dataprotection/v4/config/ProtectedEntityType.d.ts +19 -0
- package/dist/{es/models/dataprotection/v4/config/ProtectedResourceEntityType.js → lib/models/dataprotection/v4/config/ProtectedEntityType.js} +21 -22
- package/dist/lib/models/dataprotection/v4/config/ProtectedResource.d.ts +21 -9
- package/dist/lib/models/dataprotection/v4/config/ProtectedResource.js +111 -62
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.d.ts +5 -5
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.js +35 -38
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceReplicationStatus.js +11 -24
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.d.ts +5 -5
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.js +35 -38
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.d.ts +24 -9
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.js +95 -31
- package/dist/lib/models/dataprotection/v4/config/RecoveryInfo.d.ts +5 -5
- package/dist/lib/models/dataprotection/v4/config/RecoveryInfo.js +25 -27
- package/dist/lib/models/dataprotection/v4/config/RecoveryPoint.d.ts +14 -44
- package/dist/lib/models/dataprotection/v4/config/RecoveryPoint.js +59 -167
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointProjection.d.ts +9 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointProjection.js +132 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.d.ts +5 -5
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.js +35 -42
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicationSpec.d.ts +37 -18
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicationSpec.js +114 -91
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRepository.d.ts +52 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRepository.js +323 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRepositoryProjection.d.ts +9 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRepositoryProjection.js +129 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestorationSpec.d.ts +14 -14
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestorationSpec.js +42 -44
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.d.ts +5 -5
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.js +35 -42
- package/dist/lib/models/dataprotection/v4/config/RedirectionResponse.d.ts +60 -0
- package/dist/lib/models/dataprotection/v4/config/RedirectionResponse.js +279 -0
- package/dist/lib/models/dataprotection/v4/config/Region.d.ts +91 -0
- package/dist/{es/models/dataprotection/v4/config/Regions.js → lib/models/dataprotection/v4/config/Region.js} +107 -58
- package/dist/lib/models/dataprotection/v4/config/RegionResponse.d.ts +60 -0
- package/dist/lib/models/dataprotection/v4/config/{ChangedRegions.js → RegionResponse.js} +58 -58
- package/dist/lib/models/dataprotection/v4/config/{PowerState.d.ts → RegionType.d.ts} +6 -6
- package/dist/lib/models/dataprotection/v4/config/{PowerState.js → RegionType.js} +23 -24
- package/dist/lib/models/dataprotection/v4/config/ReplicationState.d.ts +19 -17
- package/dist/lib/models/dataprotection/v4/config/ReplicationState.js +72 -66
- package/dist/lib/models/dataprotection/v4/config/RestorableTimeRange.d.ts +5 -5
- package/dist/lib/models/dataprotection/v4/config/RestorableTimeRange.js +25 -27
- package/dist/{es/models/dataprotection/v4/config/DataProtectionInfo.d.ts → lib/models/dataprotection/v4/config/SiteProtectionInfo.d.ts} +12 -12
- package/dist/{es/models/dataprotection/v4/config/DataProtectionInfo.js → lib/models/dataprotection/v4/config/SiteProtectionInfo.js} +45 -47
- package/dist/lib/models/dataprotection/v4/config/SiteReference.d.ts +5 -5
- package/dist/lib/models/dataprotection/v4/config/SiteReference.js +25 -27
- package/dist/lib/models/dataprotection/v4/config/Subnet.d.ts +5 -5
- package/dist/lib/models/dataprotection/v4/config/Subnet.js +25 -27
- package/dist/lib/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.d.ts +5 -5
- package/dist/lib/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.js +35 -38
- package/dist/lib/models/dataprotection/v4/config/UpdateConsistencyGroupApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/{VMRecoveryPointListApiResponse.js → UpdateConsistencyGroupApiResponse.js} +57 -60
- package/dist/lib/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.d.ts +5 -5
- package/dist/lib/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.js +35 -38
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPoint.d.ts +77 -0
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPoint.js +361 -0
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointComputeChangedRegionsRequest.d.ts +98 -0
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointComputeChangedRegionsRequest.js +403 -0
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.d.ts +12 -38
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.js +49 -125
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupOverrideSpec.d.ts +5 -5
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupOverrideSpec.js +29 -29
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.d.ts +40 -22
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.js +126 -108
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointComputeChangedRegionsRequest.d.ts +98 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointComputeChangedRegionsRequest.js +403 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.d.ts +12 -18
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.js +49 -53
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupSyncContext.d.ts +5 -5
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupSyncContext.js +27 -31
- package/dist/lib/models/dataprotection/v4/config/VpcReference.d.ts +13 -10
- package/dist/lib/models/dataprotection/v4/config/VpcReference.js +30 -29
- package/dist/lib/models/dataprotection/v4/config/Witness.d.ts +5 -5
- package/dist/lib/models/dataprotection/v4/config/Witness.js +39 -41
- package/dist/lib/models/dataprotection/v4/config/WitnessAvailabilityStatus.js +3 -4
- package/dist/lib/models/dataprotection/v4/error/AppMessage.d.ts +20 -12
- package/dist/lib/models/dataprotection/v4/error/AppMessage.js +49 -39
- package/dist/lib/models/dataprotection/v4/error/ErrorResponse.d.ts +5 -5
- package/dist/lib/models/dataprotection/v4/error/ErrorResponse.js +36 -50
- package/dist/lib/models/dataprotection/v4/error/SchemaValidationError.d.ts +20 -10
- package/dist/lib/models/dataprotection/v4/error/SchemaValidationError.js +45 -32
- package/dist/lib/models/dataprotection/v4/error/SchemaValidationErrorMessage.d.ts +14 -8
- package/dist/lib/models/dataprotection/v4/error/SchemaValidationErrorMessage.js +37 -30
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +5 -5
- package/dist/lib/models/prism/v4/config/TaskReference.js +27 -32
- package/dist/lib/models/validation/ValidationError.js +8 -10
- package/dist/lib/models/validation/ValidationScopes.js +1 -2
- package/dist/lib/utils/ValidationUtils.js +8 -10
- package/package.json +3 -2
- 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/ChangedRegions.d.ts +0 -62
- package/dist/es/models/dataprotection/v4/config/ChangedRegionsListApiResponse.js +0 -314
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupListApiResponse.js +0 -341
- 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/Disk.d.ts +0 -62
- package/dist/es/models/dataprotection/v4/config/Disk.js +0 -285
- 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/ProtectedResourceApiResponse.d.ts +0 -59
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceEntityType.d.ts +0 -19
- package/dist/es/models/dataprotection/v4/config/RecoveryPointApiResponse.d.ts +0 -59
- package/dist/es/models/dataprotection/v4/config/RecoveryPointListApiResponse.d.ts +0 -59
- package/dist/es/models/dataprotection/v4/config/Regions.d.ts +0 -62
- package/dist/es/models/dataprotection/v4/config/SetExpirationTimeSpec.d.ts +0 -57
- 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/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.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/WitnessApiResponse.d.ts +0 -59
- 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/ChangedRegions.d.ts +0 -62
- package/dist/lib/models/dataprotection/v4/config/ChangedRegionsListApiResponse.js +0 -314
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupListApiResponse.js +0 -341
- 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/Disk.d.ts +0 -62
- package/dist/lib/models/dataprotection/v4/config/Disk.js +0 -285
- 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/ProtectedResourceApiResponse.d.ts +0 -59
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceEntityType.d.ts +0 -19
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointApiResponse.d.ts +0 -59
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointListApiResponse.d.ts +0 -59
- package/dist/lib/models/dataprotection/v4/config/Regions.d.ts +0 -62
- package/dist/lib/models/dataprotection/v4/config/SetExpirationTimeSpec.d.ts +0 -57
- 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/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.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/WitnessApiResponse.d.ts +0 -59
|
@@ -1,545 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _HardwareArchitecture = _interopRequireDefault(require("./HardwareArchitecture"));
|
|
8
|
-
var _HypervisorType = _interopRequireDefault(require("./HypervisorType"));
|
|
9
|
-
var _PowerState = _interopRequireDefault(require("./PowerState"));
|
|
10
|
-
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
11
|
-
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
12
|
-
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
-
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); }
|
|
15
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
16
|
-
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."); }
|
|
17
|
-
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); }
|
|
18
|
-
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; }
|
|
19
|
-
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; } }
|
|
20
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
|
-
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; }
|
|
22
|
-
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; }
|
|
23
|
-
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; }
|
|
24
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25
|
-
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); } }
|
|
26
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
27
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
28
|
-
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); }
|
|
29
|
-
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
|
30
|
-
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
|
|
31
|
-
* Nutanix Dataprotection Versioned APIs
|
|
32
|
-
*
|
|
33
|
-
* OpenAPI spec version: 4.0.1-alpha-4
|
|
34
|
-
*
|
|
35
|
-
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
36
|
-
*
|
|
37
|
-
* Open API Dev Platform Codegen version: 16.8.0.6343-RELEASE
|
|
38
|
-
*
|
|
39
|
-
* Do not edit the class manually.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
/**
|
|
43
|
-
* The Vm model module.
|
|
44
|
-
* @module Ntnx/Vm
|
|
45
|
-
* @version 4.0.1-alpha-4
|
|
46
|
-
* @class Vm
|
|
47
|
-
*/
|
|
48
|
-
var _toJsonMapType = /*#__PURE__*/new WeakSet();
|
|
49
|
-
var Vm = /*#__PURE__*/function () {
|
|
50
|
-
/**
|
|
51
|
-
* Constructs a new <code>Vm</code>.
|
|
52
|
-
* The configuration of the VM captured by the Recovery point.
|
|
53
|
-
* @alias module:Ntnx/Vm
|
|
54
|
-
*/
|
|
55
|
-
function Vm() {
|
|
56
|
-
_classCallCheck(this, Vm);
|
|
57
|
-
/*
|
|
58
|
-
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
59
|
-
* @param {Object} obj
|
|
60
|
-
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
61
|
-
* Otherwise, just returns the input object.
|
|
62
|
-
*/
|
|
63
|
-
_classPrivateMethodInitSpec(this, _toJsonMapType);
|
|
64
|
-
this.$objectType = "dataprotection.v4.config.Vm";
|
|
65
|
-
this.$reserved = {
|
|
66
|
-
'$fqObjectType': "dataprotection.v4.r0.a4.config.Vm"
|
|
67
|
-
};
|
|
68
|
-
this.$unknownFields = {};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Constructs a <code>Vm</code> from a plain JavaScript object, optionally creating a new instance.
|
|
73
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
74
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
75
|
-
* @param {module:Ntnx/Vm} obj Optional instance to populate.
|
|
76
|
-
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
77
|
-
* @return {module:Ntnx/Vm} The populated <code>Vm</code> instance.
|
|
78
|
-
*/
|
|
79
|
-
_createClass(Vm, [{
|
|
80
|
-
key: "getVmExtId",
|
|
81
|
-
value:
|
|
82
|
-
/**
|
|
83
|
-
* Returns VM external identifier which is captured as part of this Recovery point.
|
|
84
|
-
* @return {}
|
|
85
|
-
*/
|
|
86
|
-
function getVmExtId() {
|
|
87
|
-
return this.vmExtId;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Sets VM external identifier which is captured as part of this Recovery point.
|
|
92
|
-
* @param {} vmExtId VM external identifier which is captured as part of this Recovery point.
|
|
93
|
-
*/
|
|
94
|
-
}, {
|
|
95
|
-
key: "setVmExtId",
|
|
96
|
-
value: function setVmExtId(vmExtId) {
|
|
97
|
-
this.vmExtId = vmExtId;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Returns The name of the VM that is captured as part of this Recovery point.
|
|
102
|
-
* @return {}
|
|
103
|
-
*/
|
|
104
|
-
}, {
|
|
105
|
-
key: "getName",
|
|
106
|
-
value: function getName() {
|
|
107
|
-
return this.name;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Sets The name of the VM that is captured as part of this Recovery point.
|
|
112
|
-
* @param {} name The name of the VM that is captured as part of this Recovery point.
|
|
113
|
-
*/
|
|
114
|
-
}, {
|
|
115
|
-
key: "setName",
|
|
116
|
-
value: function setName(name) {
|
|
117
|
-
this.name = name;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Returns Number of vCPUs.
|
|
122
|
-
* @return {}
|
|
123
|
-
*/
|
|
124
|
-
}, {
|
|
125
|
-
key: "getNumVcpus",
|
|
126
|
-
value: function getNumVcpus() {
|
|
127
|
-
return this.numVcpus;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Sets Number of vCPUs.
|
|
132
|
-
* @param {} numVcpus Number of vCPUs.
|
|
133
|
-
*/
|
|
134
|
-
}, {
|
|
135
|
-
key: "setNumVcpus",
|
|
136
|
-
value: function setNumVcpus(numVcpus) {
|
|
137
|
-
this.numVcpus = numVcpus;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Returns Number of cores per vCPU.
|
|
142
|
-
* @return {}
|
|
143
|
-
*/
|
|
144
|
-
}, {
|
|
145
|
-
key: "getCoresPerVcpu",
|
|
146
|
-
value: function getCoresPerVcpu() {
|
|
147
|
-
return this.coresPerVcpu;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Sets Number of cores per vCPU.
|
|
152
|
-
* @param {} coresPerVcpu Number of cores per vCPU.
|
|
153
|
-
*/
|
|
154
|
-
}, {
|
|
155
|
-
key: "setCoresPerVcpu",
|
|
156
|
-
value: function setCoresPerVcpu(coresPerVcpu) {
|
|
157
|
-
this.coresPerVcpu = coresPerVcpu;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Returns Docref(vmNumThreadsPerCoreDesc)
|
|
162
|
-
* @return {}
|
|
163
|
-
*/
|
|
164
|
-
}, {
|
|
165
|
-
key: "getVmNumThreadsPerCore",
|
|
166
|
-
value: function getVmNumThreadsPerCore() {
|
|
167
|
-
return this.vmNumThreadsPerCore;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* Sets Docref(vmNumThreadsPerCoreDesc)
|
|
172
|
-
* @param {} vmNumThreadsPerCore Docref(vmNumThreadsPerCoreDesc)
|
|
173
|
-
*/
|
|
174
|
-
}, {
|
|
175
|
-
key: "setVmNumThreadsPerCore",
|
|
176
|
-
value: function setVmNumThreadsPerCore(vmNumThreadsPerCore) {
|
|
177
|
-
this.vmNumThreadsPerCore = vmNumThreadsPerCore;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Returns Memory size in bytes.
|
|
182
|
-
* @return {}
|
|
183
|
-
*/
|
|
184
|
-
}, {
|
|
185
|
-
key: "getMemorySizeBytes",
|
|
186
|
-
value: function getMemorySizeBytes() {
|
|
187
|
-
return this.memorySizeBytes;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* Sets Memory size in bytes.
|
|
192
|
-
* @param {} memorySizeBytes Memory size in bytes.
|
|
193
|
-
*/
|
|
194
|
-
}, {
|
|
195
|
-
key: "setMemorySizeBytes",
|
|
196
|
-
value: function setMemorySizeBytes(memorySizeBytes) {
|
|
197
|
-
this.memorySizeBytes = memorySizeBytes;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* @return {}
|
|
202
|
-
*/
|
|
203
|
-
}, {
|
|
204
|
-
key: "getHypervisorType",
|
|
205
|
-
value: function getHypervisorType() {
|
|
206
|
-
return this.hypervisorType;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* @param {} hypervisorType
|
|
211
|
-
*/
|
|
212
|
-
}, {
|
|
213
|
-
key: "setHypervisorType",
|
|
214
|
-
value: function setHypervisorType(hypervisorType) {
|
|
215
|
-
this.hypervisorType = hypervisorType;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* @return {}
|
|
220
|
-
*/
|
|
221
|
-
}, {
|
|
222
|
-
key: "getPowerState",
|
|
223
|
-
value: function getPowerState() {
|
|
224
|
-
return this.powerState;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* @param {} powerState
|
|
229
|
-
*/
|
|
230
|
-
}, {
|
|
231
|
-
key: "setPowerState",
|
|
232
|
-
value: function setPowerState(powerState) {
|
|
233
|
-
this.powerState = powerState;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* @return {}
|
|
238
|
-
*/
|
|
239
|
-
}, {
|
|
240
|
-
key: "getHardwareArchitecture",
|
|
241
|
-
value: function getHardwareArchitecture() {
|
|
242
|
-
return this.hardwareArchitecture;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* @param {} hardwareArchitecture
|
|
247
|
-
*/
|
|
248
|
-
}, {
|
|
249
|
-
key: "setHardwareArchitecture",
|
|
250
|
-
value: function setHardwareArchitecture(hardwareArchitecture) {
|
|
251
|
-
this.hardwareArchitecture = hardwareArchitecture;
|
|
252
|
-
}
|
|
253
|
-
}, {
|
|
254
|
-
key: "get$Reserved",
|
|
255
|
-
value: function get$Reserved() {
|
|
256
|
-
return this.$reserved;
|
|
257
|
-
}
|
|
258
|
-
}, {
|
|
259
|
-
key: "get$ObjectType",
|
|
260
|
-
value: function get$ObjectType() {
|
|
261
|
-
return this.$objectType;
|
|
262
|
-
}
|
|
263
|
-
}, {
|
|
264
|
-
key: "get$UnknownFields",
|
|
265
|
-
value: function get$UnknownFields() {
|
|
266
|
-
return this.$unknownFields;
|
|
267
|
-
}
|
|
268
|
-
}, {
|
|
269
|
-
key: "toJson",
|
|
270
|
-
value: function toJson(forMutation) {
|
|
271
|
-
if (forMutation === false) {
|
|
272
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getVmExtId() !== 'undefined' && this.getVmExtId() !== null ? {
|
|
273
|
-
'vmExtId': this.getVmExtId()
|
|
274
|
-
} : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
275
|
-
'name': this.getName()
|
|
276
|
-
} : {}), typeof this.getNumVcpus() !== 'undefined' && this.getNumVcpus() !== null ? {
|
|
277
|
-
'numVcpus': this.getNumVcpus()
|
|
278
|
-
} : {}), typeof this.getCoresPerVcpu() !== 'undefined' && this.getCoresPerVcpu() !== null ? {
|
|
279
|
-
'coresPerVcpu': this.getCoresPerVcpu()
|
|
280
|
-
} : {}), typeof this.getVmNumThreadsPerCore() !== 'undefined' && this.getVmNumThreadsPerCore() !== null ? {
|
|
281
|
-
'vmNumThreadsPerCore': this.getVmNumThreadsPerCore()
|
|
282
|
-
} : {}), typeof this.getMemorySizeBytes() !== 'undefined' && this.getMemorySizeBytes() !== null ? {
|
|
283
|
-
'memorySizeBytes': this.getMemorySizeBytes()
|
|
284
|
-
} : {}), typeof this.getHypervisorType() !== 'undefined' && this.getHypervisorType() !== null ? {
|
|
285
|
-
'hypervisorType': this.getHypervisorType()
|
|
286
|
-
} : {}), typeof this.getPowerState() !== 'undefined' && this.getPowerState() !== null ? {
|
|
287
|
-
'powerState': this.getPowerState()
|
|
288
|
-
} : {}), typeof this.getHardwareArchitecture() !== 'undefined' && this.getHardwareArchitecture() !== null ? {
|
|
289
|
-
'hardwareArchitecture': this.getHardwareArchitecture()
|
|
290
|
-
} : {}), {}, {
|
|
291
|
-
'$reserved': this.get$Reserved(),
|
|
292
|
-
'$objectType': this.get$ObjectType(),
|
|
293
|
-
'$unknownFields': this.get$UnknownFields()
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getVmExtId() !== 'undefined' && this.getVmExtId() !== null ? {
|
|
297
|
-
'vmExtId': this.getVmExtId()
|
|
298
|
-
} : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
299
|
-
'name': this.getName()
|
|
300
|
-
} : {}), typeof this.getNumVcpus() !== 'undefined' && this.getNumVcpus() !== null ? {
|
|
301
|
-
'numVcpus': this.getNumVcpus()
|
|
302
|
-
} : {}), typeof this.getCoresPerVcpu() !== 'undefined' && this.getCoresPerVcpu() !== null ? {
|
|
303
|
-
'coresPerVcpu': this.getCoresPerVcpu()
|
|
304
|
-
} : {}), typeof this.getVmNumThreadsPerCore() !== 'undefined' && this.getVmNumThreadsPerCore() !== null ? {
|
|
305
|
-
'vmNumThreadsPerCore': this.getVmNumThreadsPerCore()
|
|
306
|
-
} : {}), typeof this.getMemorySizeBytes() !== 'undefined' && this.getMemorySizeBytes() !== null ? {
|
|
307
|
-
'memorySizeBytes': this.getMemorySizeBytes()
|
|
308
|
-
} : {}), typeof this.getHypervisorType() !== 'undefined' && this.getHypervisorType() !== null ? {
|
|
309
|
-
'hypervisorType': this.getHypervisorType()
|
|
310
|
-
} : {}), typeof this.getPowerState() !== 'undefined' && this.getPowerState() !== null ? {
|
|
311
|
-
'powerState': this.getPowerState()
|
|
312
|
-
} : {}), typeof this.getHardwareArchitecture() !== 'undefined' && this.getHardwareArchitecture() !== null ? {
|
|
313
|
-
'hardwareArchitecture': this.getHardwareArchitecture()
|
|
314
|
-
} : {}), {}, {
|
|
315
|
-
'$reserved': this.get$Reserved(),
|
|
316
|
-
'$objectType': this.get$ObjectType(),
|
|
317
|
-
'$unknownFields': this.get$UnknownFields()
|
|
318
|
-
});
|
|
319
|
-
}
|
|
320
|
-
}, {
|
|
321
|
-
key: "validate",
|
|
322
|
-
value: function validate(scope, properties) {
|
|
323
|
-
var _this = this;
|
|
324
|
-
var propList = [];
|
|
325
|
-
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
326
|
-
//cases validate() and validate(scope)
|
|
327
|
-
propList = [];
|
|
328
|
-
} else if (arguments.length === 1) {
|
|
329
|
-
//case validate(properties)
|
|
330
|
-
propList = arguments[0];
|
|
331
|
-
scope = null;
|
|
332
|
-
} else {
|
|
333
|
-
//case validate(scope, properties)
|
|
334
|
-
propList = arguments[1];
|
|
335
|
-
}
|
|
336
|
-
var res = [];
|
|
337
|
-
var err = null;
|
|
338
|
-
propList.forEach(function (property) {
|
|
339
|
-
err = _this.validateProperty(property, scope);
|
|
340
|
-
if (err) {
|
|
341
|
-
res.push(err);
|
|
342
|
-
}
|
|
343
|
-
});
|
|
344
|
-
return new Promise(function (resolve, reject) {
|
|
345
|
-
if (res.length !== 0) {
|
|
346
|
-
reject(err);
|
|
347
|
-
} else {
|
|
348
|
-
resolve();
|
|
349
|
-
}
|
|
350
|
-
});
|
|
351
|
-
}
|
|
352
|
-
}, {
|
|
353
|
-
key: "validateProperty",
|
|
354
|
-
value: function validateProperty(scope, property) {
|
|
355
|
-
if (property === "vmExtId") {
|
|
356
|
-
if (typeof this.vmExtId === 'undefined' || this.vmExtId === null) {
|
|
357
|
-
return new _ValidationError["default"]("vmExtId", "undefined or null");
|
|
358
|
-
}
|
|
359
|
-
if (!_ValidationUtils["default"].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}$/)) {
|
|
360
|
-
return new _ValidationError["default"]("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}$/");
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
if (property === "name") {
|
|
364
|
-
if (typeof this.name === 'undefined' || this.name === null) {
|
|
365
|
-
return new _ValidationError["default"]("name", "undefined or null");
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
if (property === "numVcpus") {
|
|
369
|
-
if (typeof this.numVcpus === 'undefined' || this.numVcpus === null) {
|
|
370
|
-
return new _ValidationError["default"]("numVcpus", "undefined or null");
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
if (property === "coresPerVcpu") {
|
|
374
|
-
if (typeof this.coresPerVcpu === 'undefined' || this.coresPerVcpu === null) {
|
|
375
|
-
return new _ValidationError["default"]("coresPerVcpu", "undefined or null");
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
if (property === "vmNumThreadsPerCore") {
|
|
379
|
-
if (typeof this.vmNumThreadsPerCore === 'undefined' || this.vmNumThreadsPerCore === null) {
|
|
380
|
-
return new _ValidationError["default"]("vmNumThreadsPerCore", "undefined or null");
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
if (property === "memorySizeBytes") {
|
|
384
|
-
if (typeof this.memorySizeBytes === 'undefined' || this.memorySizeBytes === null) {
|
|
385
|
-
return new _ValidationError["default"]("memorySizeBytes", "undefined or null");
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
if (property === "hypervisorType") {
|
|
389
|
-
if (typeof this.hypervisorType === 'undefined' || this.hypervisorType === null) {
|
|
390
|
-
return new _ValidationError["default"]("hypervisorType", "undefined or null");
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
if (property === "powerState") {
|
|
394
|
-
if (typeof this.powerState === 'undefined' || this.powerState === null) {
|
|
395
|
-
return new _ValidationError["default"]("powerState", "undefined or null");
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
if (property === "hardwareArchitecture") {
|
|
399
|
-
if (typeof this.hardwareArchitecture === 'undefined' || this.hardwareArchitecture === null) {
|
|
400
|
-
return new _ValidationError["default"]("hardwareArchitecture", "undefined or null");
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
if (property === "$reserved") {
|
|
404
|
-
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
405
|
-
return new _ValidationError["default"]("$reserved", "undefined or null");
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
if (property === "$objectType") {
|
|
409
|
-
if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
|
|
410
|
-
return new _ValidationError["default"]("$objectType", "undefined or null");
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
if (property === "$unknownFields") {
|
|
414
|
-
if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
|
|
415
|
-
return new _ValidationError["default"]("$unknownFields", "undefined or null");
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
return new _ValidationError["default"](property, "no such property exists");
|
|
419
|
-
}
|
|
420
|
-
}], [{
|
|
421
|
-
key: "constructFromObject",
|
|
422
|
-
value: function constructFromObject(data, obj) {
|
|
423
|
-
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
424
|
-
var items, item, i, itemArr, discriminator;
|
|
425
|
-
if (data) {
|
|
426
|
-
obj = obj || new Vm();
|
|
427
|
-
if (data.hasOwnProperty('vmExtId') && data.vmExtId !== null && data.vmExtId !== undefined) {
|
|
428
|
-
obj.setVmExtId(data['vmExtId']);
|
|
429
|
-
}
|
|
430
|
-
if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
|
|
431
|
-
obj.setName(data['name']);
|
|
432
|
-
}
|
|
433
|
-
if (data.hasOwnProperty('numVcpus') && data.numVcpus !== null && data.numVcpus !== undefined) {
|
|
434
|
-
obj.setNumVcpus(data['numVcpus']);
|
|
435
|
-
}
|
|
436
|
-
if (data.hasOwnProperty('coresPerVcpu') && data.coresPerVcpu !== null && data.coresPerVcpu !== undefined) {
|
|
437
|
-
obj.setCoresPerVcpu(data['coresPerVcpu']);
|
|
438
|
-
}
|
|
439
|
-
if (data.hasOwnProperty('vmNumThreadsPerCore') && data.vmNumThreadsPerCore !== null && data.vmNumThreadsPerCore !== undefined) {
|
|
440
|
-
obj.setVmNumThreadsPerCore(data['vmNumThreadsPerCore']);
|
|
441
|
-
}
|
|
442
|
-
if (data.hasOwnProperty('memorySizeBytes') && data.memorySizeBytes !== null && data.memorySizeBytes !== undefined) {
|
|
443
|
-
obj.setMemorySizeBytes(data['memorySizeBytes']);
|
|
444
|
-
}
|
|
445
|
-
if (data.hasOwnProperty('hypervisorType') && data.hypervisorType !== null && data.hypervisorType !== undefined) {
|
|
446
|
-
obj.setHypervisorType(_HypervisorType["default"].constructFromObject(data['hypervisorType']));
|
|
447
|
-
}
|
|
448
|
-
if (data.hasOwnProperty('powerState') && data.powerState !== null && data.powerState !== undefined) {
|
|
449
|
-
obj.setPowerState(_PowerState["default"].constructFromObject(data['powerState']));
|
|
450
|
-
}
|
|
451
|
-
if (data.hasOwnProperty('hardwareArchitecture') && data.hardwareArchitecture !== null && data.hardwareArchitecture !== undefined) {
|
|
452
|
-
obj.setHardwareArchitecture(_HardwareArchitecture["default"].constructFromObject(data['hardwareArchitecture']));
|
|
453
|
-
}
|
|
454
|
-
if (data.hasOwnProperty('$reserved')) {
|
|
455
|
-
obj.$reserved = data['$reserved'];
|
|
456
|
-
}
|
|
457
|
-
if (data.hasOwnProperty('$objectType')) {
|
|
458
|
-
obj.$objectType = data['$objectType'];
|
|
459
|
-
}
|
|
460
|
-
if (data.hasOwnProperty('$unknownFields')) {
|
|
461
|
-
obj.$unknownFields = data['$unknownFields'];
|
|
462
|
-
}
|
|
463
|
-
if (!callFromChild) {
|
|
464
|
-
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
465
|
-
for (var property in data) {
|
|
466
|
-
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
467
|
-
obj.$unknownFields[property] = data[property];
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
return obj;
|
|
473
|
-
}
|
|
474
|
-
}]);
|
|
475
|
-
return Vm;
|
|
476
|
-
}();
|
|
477
|
-
/**
|
|
478
|
-
* VM external identifier which is captured as part of this Recovery point.
|
|
479
|
-
* @memberof Vm
|
|
480
|
-
*/
|
|
481
|
-
exports["default"] = Vm;
|
|
482
|
-
function _toJsonMapType2(obj, forMutation) {
|
|
483
|
-
if (obj instanceof Map) {
|
|
484
|
-
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
485
|
-
var _ref2 = _slicedToArray(_ref, 2),
|
|
486
|
-
k = _ref2[0],
|
|
487
|
-
v = _ref2[1];
|
|
488
|
-
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
489
|
-
}));
|
|
490
|
-
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
491
|
-
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
492
|
-
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
493
|
-
}));
|
|
494
|
-
}
|
|
495
|
-
return obj;
|
|
496
|
-
}
|
|
497
|
-
Vm.prototype.vmExtId = undefined;
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
* The name of the VM that is captured as part of this Recovery point.
|
|
501
|
-
* @memberof Vm
|
|
502
|
-
*/
|
|
503
|
-
Vm.prototype.name = undefined;
|
|
504
|
-
|
|
505
|
-
/**
|
|
506
|
-
* Number of vCPUs.
|
|
507
|
-
* @memberof Vm
|
|
508
|
-
*/
|
|
509
|
-
Vm.prototype.numVcpus = undefined;
|
|
510
|
-
|
|
511
|
-
/**
|
|
512
|
-
* Number of cores per vCPU.
|
|
513
|
-
* @memberof Vm
|
|
514
|
-
*/
|
|
515
|
-
Vm.prototype.coresPerVcpu = undefined;
|
|
516
|
-
|
|
517
|
-
/**
|
|
518
|
-
* Docref(vmNumThreadsPerCoreDesc)
|
|
519
|
-
* @memberof Vm
|
|
520
|
-
*/
|
|
521
|
-
Vm.prototype.vmNumThreadsPerCore = undefined;
|
|
522
|
-
|
|
523
|
-
/**
|
|
524
|
-
* Memory size in bytes.
|
|
525
|
-
* @memberof Vm
|
|
526
|
-
*/
|
|
527
|
-
Vm.prototype.memorySizeBytes = undefined;
|
|
528
|
-
|
|
529
|
-
/**
|
|
530
|
-
* @memberof Vm
|
|
531
|
-
*/
|
|
532
|
-
Vm.prototype.hypervisorType = undefined;
|
|
533
|
-
|
|
534
|
-
/**
|
|
535
|
-
* @memberof Vm
|
|
536
|
-
*/
|
|
537
|
-
Vm.prototype.powerState = undefined;
|
|
538
|
-
|
|
539
|
-
/**
|
|
540
|
-
* @memberof Vm
|
|
541
|
-
*/
|
|
542
|
-
Vm.prototype.hardwareArchitecture = undefined;
|
|
543
|
-
Vm.prototype.$reserved = undefined;
|
|
544
|
-
Vm.prototype.$objectType = undefined;
|
|
545
|
-
Vm.prototype.$unknownFields = undefined;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The VmRecoveryPointRestorationSpec model module.
|
|
3
|
-
* @module Ntnx/VmRecoveryPointRestorationSpec
|
|
4
|
-
* @version 4.0.1-alpha-4
|
|
5
|
-
* @class VmRecoveryPointRestorationSpec
|
|
6
|
-
*/
|
|
7
|
-
export default class VmRecoveryPointRestorationSpec {
|
|
8
|
-
/**
|
|
9
|
-
* Constructs a <code>VmRecoveryPointRestorationSpec</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/VmRecoveryPointRestorationSpec} obj Optional instance to populate.
|
|
13
|
-
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
14
|
-
* @return {module:Ntnx/VmRecoveryPointRestorationSpec} The populated <code>VmRecoveryPointRestorationSpec</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
|
-
getAhvVmOverrideSpec(): any;
|
|
26
|
-
/**
|
|
27
|
-
* @param {} ahvVmOverrideSpec
|
|
28
|
-
*/
|
|
29
|
-
setAhvVmOverrideSpec(ahvVmOverrideSpec: any): void;
|
|
30
|
-
ahvVmOverrideSpec: any;
|
|
31
|
-
/**
|
|
32
|
-
* @return {}
|
|
33
|
-
*/
|
|
34
|
-
getEsxiVmOverrideSpec(): any;
|
|
35
|
-
/**
|
|
36
|
-
* @param {} esxiVmOverrideSpec
|
|
37
|
-
*/
|
|
38
|
-
setEsxiVmOverrideSpec(esxiVmOverrideSpec: any): void;
|
|
39
|
-
esxiVmOverrideSpec: any;
|
|
40
|
-
/**
|
|
41
|
-
* Returns Recovery points are restored at the associated location reference by default. However, there is no particular location reference associated with Recovery points located on the cloud. In such a case, the client must specify the external identifier of the cluster on which the entity should be restored.
|
|
42
|
-
* @return {}
|
|
43
|
-
*/
|
|
44
|
-
getClusterExtId(): any;
|
|
45
|
-
/**
|
|
46
|
-
* Sets Recovery points are restored at the associated location reference by default. However, there is no particular location reference associated with Recovery points located on the cloud. In such a case, the client must specify the external identifier of the cluster on which the entity should be restored.
|
|
47
|
-
* @param {} clusterExtId Recovery points are restored at the associated location reference by default. However, there is no particular location reference associated with Recovery points located on the cloud. In such a case, the client must specify the external identifier of the cluster on which the entity should be restored.
|
|
48
|
-
*/
|
|
49
|
-
setClusterExtId(clusterExtId: any): void;
|
|
50
|
-
clusterExtId: any;
|
|
51
|
-
get$Reserved(): {
|
|
52
|
-
$fqObjectType: string;
|
|
53
|
-
};
|
|
54
|
-
get$ObjectType(): string;
|
|
55
|
-
get$UnknownFields(): {};
|
|
56
|
-
toJson(forMutation: any): {
|
|
57
|
-
$reserved: {
|
|
58
|
-
$fqObjectType: string;
|
|
59
|
-
};
|
|
60
|
-
$objectType: string;
|
|
61
|
-
$unknownFields: {};
|
|
62
|
-
clusterExtId?: any;
|
|
63
|
-
esxiVmOverrideSpec?: any;
|
|
64
|
-
ahvVmOverrideSpec?: any;
|
|
65
|
-
};
|
|
66
|
-
validate(scope: any, properties: any, ...args: any[]): any;
|
|
67
|
-
validateProperty(scope: any, property: any): ValidationError;
|
|
68
|
-
#private;
|
|
69
|
-
}
|
|
70
|
-
import ValidationError from "../../../validation/ValidationError";
|