@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
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.RecoveryPointsApi = void 0;
|
|
8
|
+
var _ApiClient = require("../ApiClient");
|
|
9
|
+
var _RecoveryPointReplicateApiResponse = _interopRequireDefault(require("../models/dataprotection/v4/config/RecoveryPointReplicateApiResponse"));
|
|
10
|
+
var _ListRecoveryPointsApiResponse = _interopRequireDefault(require("../models/dataprotection/v4/config/ListRecoveryPointsApiResponse"));
|
|
11
|
+
var _RecoveryPointRestorationSpec = _interopRequireDefault(require("../models/dataprotection/v4/config/RecoveryPointRestorationSpec"));
|
|
12
|
+
var _GetRecoveryPointApiResponse = _interopRequireDefault(require("../models/dataprotection/v4/config/GetRecoveryPointApiResponse"));
|
|
13
|
+
var _ExpirationTimeSpec = _interopRequireDefault(require("../models/dataprotection/v4/config/ExpirationTimeSpec"));
|
|
14
|
+
var _CreateRecoveryPointApiResponse = _interopRequireDefault(require("../models/dataprotection/v4/config/CreateRecoveryPointApiResponse"));
|
|
15
|
+
var _RecoveryPointRestoreApiResponse = _interopRequireDefault(require("../models/dataprotection/v4/config/RecoveryPointRestoreApiResponse"));
|
|
16
|
+
var _RecoveryPoint = _interopRequireDefault(require("../models/dataprotection/v4/config/RecoveryPoint"));
|
|
17
|
+
var _DeleteRecoveryPointApiResponse = _interopRequireDefault(require("../models/dataprotection/v4/config/DeleteRecoveryPointApiResponse"));
|
|
18
|
+
var _RecoveryPointReplicationSpec = _interopRequireDefault(require("../models/dataprotection/v4/config/RecoveryPointReplicationSpec"));
|
|
19
|
+
var _UpdateRecoveryPointExpirationTimeApiResponse = _interopRequireDefault(require("../models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse"));
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
28
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
29
|
+
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
|
30
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
31
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
32
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
33
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); } /*
|
|
34
|
+
* Nutanix Dataprotection Versioned APIs
|
|
35
|
+
*
|
|
36
|
+
* OpenAPI spec version: 4.0.1-beta-1
|
|
37
|
+
*
|
|
38
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
39
|
+
*
|
|
40
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
41
|
+
*
|
|
42
|
+
* Do not edit the class manually.
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* RecoveryPoints service.
|
|
47
|
+
* @version 4.0.1-beta-1
|
|
48
|
+
* @class RecoveryPointsApi
|
|
49
|
+
*/
|
|
50
|
+
var _headersToSkip = /*#__PURE__*/new WeakMap();
|
|
51
|
+
var RecoveryPointsApi = exports.RecoveryPointsApi = /*#__PURE__*/function () {
|
|
52
|
+
/**
|
|
53
|
+
* Constructs a new RecoveryPointsApi.
|
|
54
|
+
* @alias module:api/RecoveryPointsApi
|
|
55
|
+
* @class
|
|
56
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
57
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
58
|
+
*/
|
|
59
|
+
function RecoveryPointsApi(apiClient) {
|
|
60
|
+
_classCallCheck(this, RecoveryPointsApi);
|
|
61
|
+
_classPrivateFieldInitSpec(this, _headersToSkip, void 0);
|
|
62
|
+
this.apiClient = apiClient || _ApiClient.ApiClient.instance;
|
|
63
|
+
_classPrivateFieldSet(_headersToSkip, this, new Set());
|
|
64
|
+
_classPrivateFieldGet(_headersToSkip, this).add('authorization');
|
|
65
|
+
_classPrivateFieldGet(_headersToSkip, this).add('cookie');
|
|
66
|
+
_classPrivateFieldGet(_headersToSkip, this).add('host');
|
|
67
|
+
_classPrivateFieldGet(_headersToSkip, this).add('user-agent');
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Create a recovery point
|
|
72
|
+
* Create a new recovery point.<br> #### Task Completion Details <br> External identifier of the created recovery point can be found in the task completion details under the key `recoveryPointExtId`.
|
|
73
|
+
* @param { Partial<RecoveryPoint> } body specification
|
|
74
|
+
* @param {Object} args Additional Arguments
|
|
75
|
+
* @return {Promise<CreateRecoveryPointApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateRecoveryPointApiResponse } and HTTP response
|
|
76
|
+
*/
|
|
77
|
+
return _createClass(RecoveryPointsApi, [{
|
|
78
|
+
key: "createRecoveryPoint",
|
|
79
|
+
value: function createRecoveryPoint(body) {
|
|
80
|
+
var _this = this;
|
|
81
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
82
|
+
var postBody = null;
|
|
83
|
+
if (body instanceof _RecoveryPoint["default"] && typeof body.toJson === 'function') {
|
|
84
|
+
postBody = body.toJson();
|
|
85
|
+
} else {
|
|
86
|
+
postBody = body;
|
|
87
|
+
}
|
|
88
|
+
// verify the required parameter 'body' is set
|
|
89
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
90
|
+
throw new Error("Invalid body when calling createRecoveryPoint");
|
|
91
|
+
}
|
|
92
|
+
var pathParams = {};
|
|
93
|
+
var queryParams = {};
|
|
94
|
+
var headersToInclude = {};
|
|
95
|
+
Object.keys(argMap).forEach(function (header) {
|
|
96
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {
|
|
97
|
+
headersToInclude[header] = argMap[header];
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
101
|
+
var formParams = {};
|
|
102
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
103
|
+
var authNames = ['basicAuthScheme'];
|
|
104
|
+
var contentTypes = ['application/json'];
|
|
105
|
+
var accepts = ['application/json'];
|
|
106
|
+
var returnType = _CreateRecoveryPointApiResponse["default"];
|
|
107
|
+
return this.apiClient.callApi('/api/dataprotection/v4.0.b1/config/recovery-points', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Delete a recovery point
|
|
112
|
+
* Delete the recovery point identified by {extId}.
|
|
113
|
+
* @param { String } extId The external identifier that can be used to retrieve the recovery point using its URL.
|
|
114
|
+
* @param {Object} args Additional Arguments
|
|
115
|
+
* @return {Promise<DeleteRecoveryPointApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteRecoveryPointApiResponse } and HTTP response
|
|
116
|
+
*/
|
|
117
|
+
}, {
|
|
118
|
+
key: "deleteRecoveryPointById",
|
|
119
|
+
value: function deleteRecoveryPointById(extId) {
|
|
120
|
+
var _this2 = this;
|
|
121
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
122
|
+
var postBody = null;
|
|
123
|
+
// verify the required parameter 'extId' is set
|
|
124
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
125
|
+
throw new Error("Missing the required parameter 'extId' when calling deleteRecoveryPointById");
|
|
126
|
+
}
|
|
127
|
+
var pathParams = {
|
|
128
|
+
'extId': extId
|
|
129
|
+
};
|
|
130
|
+
var queryParams = {};
|
|
131
|
+
var headersToInclude = {};
|
|
132
|
+
Object.keys(argMap).forEach(function (header) {
|
|
133
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {
|
|
134
|
+
headersToInclude[header] = argMap[header];
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
138
|
+
var formParams = {};
|
|
139
|
+
var authNames = ['basicAuthScheme'];
|
|
140
|
+
var contentTypes = [];
|
|
141
|
+
var accepts = ['application/json'];
|
|
142
|
+
var returnType = _DeleteRecoveryPointApiResponse["default"];
|
|
143
|
+
return this.apiClient.callApi('/api/dataprotection/v4.0.b1/config/recovery-points/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Get a recovery point
|
|
148
|
+
* Query the recovery point identified by {extId}.
|
|
149
|
+
* @param { String } extId The external identifier that can be used to retrieve the recovery point using its URL.
|
|
150
|
+
* @param {Object} args Additional Arguments
|
|
151
|
+
* @return {Promise<GetRecoveryPointApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetRecoveryPointApiResponse } and HTTP response
|
|
152
|
+
*/
|
|
153
|
+
}, {
|
|
154
|
+
key: "getRecoveryPointById",
|
|
155
|
+
value: function getRecoveryPointById(extId) {
|
|
156
|
+
var _this3 = this;
|
|
157
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
158
|
+
var postBody = null;
|
|
159
|
+
// verify the required parameter 'extId' is set
|
|
160
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
161
|
+
throw new Error("Missing the required parameter 'extId' when calling getRecoveryPointById");
|
|
162
|
+
}
|
|
163
|
+
var pathParams = {
|
|
164
|
+
'extId': extId
|
|
165
|
+
};
|
|
166
|
+
var queryParams = {};
|
|
167
|
+
var headersToInclude = {};
|
|
168
|
+
Object.keys(argMap).forEach(function (header) {
|
|
169
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this3).has(header.toLowerCase())) {
|
|
170
|
+
headersToInclude[header] = argMap[header];
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
174
|
+
var formParams = {};
|
|
175
|
+
var authNames = ['basicAuthScheme'];
|
|
176
|
+
var contentTypes = [];
|
|
177
|
+
var accepts = ['application/json'];
|
|
178
|
+
var returnType = _GetRecoveryPointApiResponse["default"];
|
|
179
|
+
return this.apiClient.callApi('/api/dataprotection/v4.0.b1/config/recovery-points/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* List recovery point
|
|
184
|
+
* List of recovery point.
|
|
185
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
186
|
+
* @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
|
|
187
|
+
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
188
|
+
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
189
|
+
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>
|
|
190
|
+
* The filter can be applied to the following fields:<br>
|
|
191
|
+
* - creationTime<br>
|
|
192
|
+
* - extId<br>
|
|
193
|
+
* - name<br>
|
|
194
|
+
* - ownerExtId<br>
|
|
195
|
+
* - recoveryPointType<br>
|
|
196
|
+
* - vmRecoveryPoints<br>
|
|
197
|
+
* - volumeGroupRecoveryPoints
|
|
198
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>
|
|
199
|
+
* The orderby can be applied to the following fields:<br>
|
|
200
|
+
* - creationTime<br>
|
|
201
|
+
* - expirationTime<br>
|
|
202
|
+
* - name<br>
|
|
203
|
+
* - ownerExtId
|
|
204
|
+
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
205
|
+
- creationTime
|
|
206
|
+
- expirationTime
|
|
207
|
+
- extId
|
|
208
|
+
- name
|
|
209
|
+
- recoveryPointType
|
|
210
|
+
* @param {Object} args Additional Arguments
|
|
211
|
+
* @return {Promise<ListRecoveryPointsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListRecoveryPointsApiResponse } and HTTP response
|
|
212
|
+
*/
|
|
213
|
+
}, {
|
|
214
|
+
key: "listRecoveryPoints",
|
|
215
|
+
value: function listRecoveryPoints(opts) {
|
|
216
|
+
var _this4 = this;
|
|
217
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
218
|
+
opts = opts || {};
|
|
219
|
+
var postBody = null;
|
|
220
|
+
var pathParams = {};
|
|
221
|
+
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
222
|
+
'$page': opts['$page']
|
|
223
|
+
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
224
|
+
'$limit': opts['$limit']
|
|
225
|
+
} : {}), opts.hasOwnProperty('$filter') ? {
|
|
226
|
+
'$filter': opts['$filter']
|
|
227
|
+
} : {}), opts.hasOwnProperty('$orderby') ? {
|
|
228
|
+
'$orderby': opts['$orderby']
|
|
229
|
+
} : {}), opts.hasOwnProperty('$select') ? {
|
|
230
|
+
'$select': opts['$select']
|
|
231
|
+
} : {});
|
|
232
|
+
var headersToInclude = {};
|
|
233
|
+
Object.keys(argMap).forEach(function (header) {
|
|
234
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this4).has(header.toLowerCase())) {
|
|
235
|
+
headersToInclude[header] = argMap[header];
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
239
|
+
var formParams = {};
|
|
240
|
+
var authNames = ['basicAuthScheme'];
|
|
241
|
+
var contentTypes = [];
|
|
242
|
+
var accepts = ['application/json'];
|
|
243
|
+
var returnType = _ListRecoveryPointsApiResponse["default"];
|
|
244
|
+
return this.apiClient.callApi('/api/dataprotection/v4.0.b1/config/recovery-points', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Replicate a recovery point
|
|
249
|
+
* Replicate the recovery point identified by {extId}.<br> #### Task Completion Details <br> External identifier of the replicated recovery point can be found in the task completion details under the key `recoveryPointExtId`.
|
|
250
|
+
* @param { Partial<RecoveryPointReplicationSpec> } body specification
|
|
251
|
+
* @param { String } extId The external identifier that can be used to retrieve the recovery point using its URL.
|
|
252
|
+
* @param {Object} args Additional Arguments
|
|
253
|
+
* @return {Promise<RecoveryPointReplicateApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link RecoveryPointReplicateApiResponse } and HTTP response
|
|
254
|
+
*/
|
|
255
|
+
}, {
|
|
256
|
+
key: "replicateRecoveryPoint",
|
|
257
|
+
value: function replicateRecoveryPoint(extId, body) {
|
|
258
|
+
var _this5 = this;
|
|
259
|
+
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
260
|
+
var postBody = null;
|
|
261
|
+
if (body instanceof _RecoveryPointReplicationSpec["default"] && typeof body.toJson === 'function') {
|
|
262
|
+
postBody = body.toJson();
|
|
263
|
+
} else {
|
|
264
|
+
postBody = body;
|
|
265
|
+
}
|
|
266
|
+
// verify the required parameter 'extId' is set
|
|
267
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
268
|
+
throw new Error("Missing the required parameter 'extId' when calling replicateRecoveryPoint");
|
|
269
|
+
}
|
|
270
|
+
// verify the required parameter 'body' is set
|
|
271
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
272
|
+
throw new Error("Invalid body when calling replicateRecoveryPoint");
|
|
273
|
+
}
|
|
274
|
+
var pathParams = {
|
|
275
|
+
'extId': extId
|
|
276
|
+
};
|
|
277
|
+
var queryParams = {};
|
|
278
|
+
var headersToInclude = {};
|
|
279
|
+
Object.keys(argMap).forEach(function (header) {
|
|
280
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this5).has(header.toLowerCase())) {
|
|
281
|
+
headersToInclude[header] = argMap[header];
|
|
282
|
+
}
|
|
283
|
+
});
|
|
284
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
285
|
+
var formParams = {};
|
|
286
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
287
|
+
var authNames = ['basicAuthScheme'];
|
|
288
|
+
var contentTypes = ['application/json'];
|
|
289
|
+
var accepts = ['application/json'];
|
|
290
|
+
var returnType = _RecoveryPointReplicateApiResponse["default"];
|
|
291
|
+
return this.apiClient.callApi('/api/dataprotection/v4.0.b1/config/recovery-points/{extId}/$actions/replicate', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Restore recovery point
|
|
296
|
+
* Restore a recovery point identified by {extId}.<br> #### Task Completion Details <br> A comma separated list of the created VM and volume group external identifiers can be found in the task completion details under the keys `vmExtIds` and `volumeGroupExtIds` respectively.
|
|
297
|
+
* @param { Partial<RecoveryPointRestorationSpec> } body specification
|
|
298
|
+
* @param { String } extId The external identifier that can be used to retrieve the recovery point using its URL.
|
|
299
|
+
* @param {Object} args Additional Arguments
|
|
300
|
+
* @return {Promise<RecoveryPointRestoreApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link RecoveryPointRestoreApiResponse } and HTTP response
|
|
301
|
+
*/
|
|
302
|
+
}, {
|
|
303
|
+
key: "restoreRecoveryPoint",
|
|
304
|
+
value: function restoreRecoveryPoint(extId, body) {
|
|
305
|
+
var _this6 = this;
|
|
306
|
+
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
307
|
+
var postBody = null;
|
|
308
|
+
if (body instanceof _RecoveryPointRestorationSpec["default"] && typeof body.toJson === 'function') {
|
|
309
|
+
postBody = body.toJson();
|
|
310
|
+
} else {
|
|
311
|
+
postBody = body;
|
|
312
|
+
}
|
|
313
|
+
// verify the required parameter 'extId' is set
|
|
314
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
315
|
+
throw new Error("Missing the required parameter 'extId' when calling restoreRecoveryPoint");
|
|
316
|
+
}
|
|
317
|
+
var pathParams = {
|
|
318
|
+
'extId': extId
|
|
319
|
+
};
|
|
320
|
+
var queryParams = {};
|
|
321
|
+
var headersToInclude = {};
|
|
322
|
+
Object.keys(argMap).forEach(function (header) {
|
|
323
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this6).has(header.toLowerCase())) {
|
|
324
|
+
headersToInclude[header] = argMap[header];
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
328
|
+
var formParams = {};
|
|
329
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
330
|
+
var authNames = ['basicAuthScheme'];
|
|
331
|
+
var contentTypes = ['application/json'];
|
|
332
|
+
var accepts = ['application/json'];
|
|
333
|
+
var returnType = _RecoveryPointRestoreApiResponse["default"];
|
|
334
|
+
return this.apiClient.callApi('/api/dataprotection/v4.0.b1/config/recovery-points/{extId}/$actions/restore', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Set the expiration time of the recovery point
|
|
339
|
+
* Set the expiration time for the recovery point identified by {extId}.
|
|
340
|
+
* @param { Required<Pick<ExpirationTimeSpec, 'expirationTime'>> & Partial<ExpirationTimeSpec> } body specification
|
|
341
|
+
* @param { String } extId The external identifier that can be used to retrieve the recovery point using its URL.
|
|
342
|
+
* @param {Object} args Additional Arguments
|
|
343
|
+
* @return {Promise<UpdateRecoveryPointExpirationTimeApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateRecoveryPointExpirationTimeApiResponse } and HTTP response
|
|
344
|
+
*/
|
|
345
|
+
}, {
|
|
346
|
+
key: "setRecoveryPointExpirationTime",
|
|
347
|
+
value: function setRecoveryPointExpirationTime(extId, body) {
|
|
348
|
+
var _this7 = this;
|
|
349
|
+
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
350
|
+
var postBody = null;
|
|
351
|
+
if (body instanceof _ExpirationTimeSpec["default"] && typeof body.toJson === 'function') {
|
|
352
|
+
postBody = body.toJson();
|
|
353
|
+
} else {
|
|
354
|
+
postBody = body;
|
|
355
|
+
}
|
|
356
|
+
// verify the required parameter 'extId' is set
|
|
357
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
358
|
+
throw new Error("Missing the required parameter 'extId' when calling setRecoveryPointExpirationTime");
|
|
359
|
+
}
|
|
360
|
+
// verify the required parameter 'body' is set
|
|
361
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
362
|
+
throw new Error("Invalid body when calling setRecoveryPointExpirationTime");
|
|
363
|
+
}
|
|
364
|
+
var pathParams = {
|
|
365
|
+
'extId': extId
|
|
366
|
+
};
|
|
367
|
+
var queryParams = {};
|
|
368
|
+
var headersToInclude = {};
|
|
369
|
+
Object.keys(argMap).forEach(function (header) {
|
|
370
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this7).has(header.toLowerCase())) {
|
|
371
|
+
headersToInclude[header] = argMap[header];
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
375
|
+
var formParams = {};
|
|
376
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
377
|
+
var authNames = ['basicAuthScheme'];
|
|
378
|
+
var contentTypes = ['application/json'];
|
|
379
|
+
var accepts = ['application/json'];
|
|
380
|
+
var returnType = _UpdateRecoveryPointExpirationTimeApiResponse["default"];
|
|
381
|
+
return this.apiClient.callApi('/api/dataprotection/v4.0.b1/config/recovery-points/{extId}/$actions/set-expiration-time', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
382
|
+
}
|
|
383
|
+
}], [{
|
|
384
|
+
key: "ApiClient",
|
|
385
|
+
get:
|
|
386
|
+
/**
|
|
387
|
+
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
388
|
+
* their own fetch methods into the SDK
|
|
389
|
+
*/
|
|
390
|
+
function get() {
|
|
391
|
+
return _ApiClient.ApiClient;
|
|
392
|
+
}
|
|
393
|
+
}]);
|
|
394
|
+
}();
|