@nutanix-scratch/dataprotection-js-client 4.0.1 → 4.1.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 +19 -18
- package/dist/Ntnx-Dataprotection-js-client-prod.js +1 -1
- package/dist/Ntnx-Dataprotection-js-client.js +226 -171
- package/dist/es/ApiClient.d.ts +7 -1
- package/dist/es/ApiClient.js +16 -25
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +3 -3
- package/dist/es/apis/protectedresources-endpoints.d.ts +7 -7
- package/dist/es/apis/protectedresources-endpoints.js +12 -12
- package/dist/es/apis/recoverypoints-endpoints.d.ts +7 -27
- package/dist/es/apis/recoverypoints-endpoints.js +28 -47
- package/dist/es/index.d.ts +23 -13
- package/dist/es/index.js +83 -43
- package/dist/es/models/common/v1/config/Flag.d.ts +1 -1
- package/dist/es/models/common/v1/config/Flag.js +3 -3
- package/dist/es/models/common/v1/config/IPAddress.d.ts +1 -1
- package/dist/es/models/common/v1/config/IPAddress.js +3 -3
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +1 -1
- package/dist/es/models/common/v1/config/IPv4Address.js +3 -3
- package/dist/es/models/common/v1/config/IPv6Address.d.ts +1 -1
- package/dist/es/models/common/v1/config/IPv6Address.js +3 -3
- package/dist/es/models/common/v1/config/KVPair.d.ts +1 -1
- package/dist/es/models/common/v1/config/KVPair.js +3 -3
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +1 -1
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +3 -3
- package/dist/es/models/common/v1/config/Message.d.ts +1 -1
- package/dist/es/models/common/v1/config/Message.js +3 -3
- package/dist/es/models/common/v1/config/MessageSeverity.js +2 -2
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +4 -4
- package/dist/es/models/common/v1/config/TenantAwareModel.js +7 -7
- package/dist/es/models/common/v1/response/ApiLink.d.ts +1 -1
- package/dist/es/models/common/v1/response/ApiLink.js +3 -3
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +1 -1
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +3 -3
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -1
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +4 -4
- package/dist/es/models/dataprotection/v4/common/BackupType.js +2 -2
- package/dist/es/models/dataprotection/v4/common/BaseRecoveryPoint.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/common/BaseRecoveryPoint.js +4 -4
- package/dist/es/models/dataprotection/v4/common/BaseVmRecoveryPoint.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/common/BaseVmRecoveryPoint.js +4 -4
- package/dist/es/models/dataprotection/v4/common/ClusterInfo.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/common/ClusterInfo.js +4 -4
- package/dist/es/models/dataprotection/v4/common/DiskRecoveryPoint.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/common/DiskRecoveryPoint.js +3 -3
- package/dist/es/models/dataprotection/v4/common/RecoveryPointStatus.js +2 -2
- package/dist/es/models/dataprotection/v4/common/RecoveryPointType.js +2 -2
- package/dist/es/models/dataprotection/v4/common/VssProperties.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/common/VssProperties.js +3 -3
- package/dist/es/models/dataprotection/v4/config/AhvVmOverrideSpec.d.ts +4 -46
- package/dist/es/models/dataprotection/v4/config/AhvVmOverrideSpec.js +30 -153
- package/dist/es/models/dataprotection/v4/config/AmazonS3Bucket.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/AmazonS3Bucket.js +4 -4
- package/dist/es/models/dataprotection/v4/config/AzureBlobStorageContainer.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/AzureBlobStorageContainer.js +4 -4
- package/dist/es/models/dataprotection/v4/config/ClusterInfoApiResponse.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/ClusterInfoApiResponse.js +5 -5
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroup.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroup.js +6 -7
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMember.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMember.js +4 -4
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMemberType.js +2 -2
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.js +4 -4
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupProjection.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupProjection.js +4 -4
- package/dist/es/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.js +5 -5
- package/dist/es/models/dataprotection/v4/config/DataProtectionSiteReference.d.ts +12 -12
- package/dist/es/models/dataprotection/v4/config/DataProtectionSiteReference.js +32 -32
- package/dist/es/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.js +5 -5
- package/dist/es/models/dataprotection/v4/config/EsxiVmOverrideSpec.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/EsxiVmOverrideSpec.js +7 -5
- package/dist/es/models/dataprotection/v4/config/ExpirationTimeSpec.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/ExpirationTimeSpec.js +4 -4
- package/dist/es/models/dataprotection/v4/config/GetProtectedResourceApiResponse.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/GetProtectedResourceApiResponse.js +5 -5
- package/dist/es/models/dataprotection/v4/config/GetRecoveryPointApiResponse.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/GetRecoveryPointApiResponse.js +5 -5
- package/dist/es/models/dataprotection/v4/config/GetVmRecoveryPointApiResponse.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/GetVmRecoveryPointApiResponse.js +5 -5
- package/dist/es/models/dataprotection/v4/config/HostReference.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/HostReference.js +5 -5
- package/dist/es/models/dataprotection/v4/config/HostType.js +2 -2
- package/dist/es/models/dataprotection/v4/config/HypervisorType.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/HypervisorType.js +85 -0
- package/dist/es/models/dataprotection/v4/config/ListRecoveryPointsApiResponse.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/ListRecoveryPointsApiResponse.js +5 -5
- package/dist/es/models/dataprotection/v4/config/LocationReference.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/LocationReference.js +4 -4
- package/dist/es/models/dataprotection/v4/config/NutanixObjectsBucket.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/NutanixObjectsBucket.js +4 -4
- package/dist/es/models/dataprotection/v4/config/ObjectStorageType.js +2 -2
- package/dist/es/models/dataprotection/v4/config/ProtectedEntityType.js +2 -2
- package/dist/es/models/dataprotection/v4/config/ProtectedResource.d.ts +7 -7
- package/dist/es/models/dataprotection/v4/config/ProtectedResource.js +9 -9
- package/dist/es/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.js +5 -5
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceReplicationStatus.js +5 -5
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.js +5 -5
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.d.ts +9 -9
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.js +14 -14
- package/dist/es/models/dataprotection/v4/config/RecoveryInfo.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/RecoveryInfo.js +5 -5
- package/dist/es/models/dataprotection/v4/config/RecoveryPoint.d.ts +24 -8
- package/dist/es/models/dataprotection/v4/config/RecoveryPoint.js +54 -18
- package/dist/es/models/dataprotection/v4/config/RecoveryPointProjection.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/RecoveryPointProjection.js +4 -4
- package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.js +5 -5
- package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicationSpec.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicationSpec.js +4 -4
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRepository.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRepository.js +5 -5
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRepositoryProjection.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRepositoryProjection.js +4 -4
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRestorationSpec.d.ts +3 -1
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRestorationSpec.js +8 -8
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.js +5 -5
- package/dist/es/models/dataprotection/v4/config/ReplicationState.d.ts +2 -2
- package/dist/es/models/dataprotection/v4/config/ReplicationState.js +5 -5
- package/dist/es/models/dataprotection/v4/config/RestorableTimeRange.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/RestorableTimeRange.js +5 -5
- package/dist/es/models/dataprotection/v4/config/SiteProtectionInfo.d.ts +2 -2
- package/dist/es/models/dataprotection/v4/config/SiteProtectionInfo.js +4 -4
- package/dist/es/models/dataprotection/v4/config/SiteReference.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/SiteReference.js +4 -4
- package/dist/es/models/dataprotection/v4/config/SynchronousReplicationRole.js +6 -6
- package/dist/es/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.js +5 -5
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPoint.d.ts +44 -1
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPoint.js +219 -7
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.d.ts +27 -1
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.js +106 -8
- package/dist/es/models/dataprotection/v4/config/VolumeGroupOverrideSpec.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/VolumeGroupOverrideSpec.js +4 -4
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.js +5 -5
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.js +4 -4
- package/dist/es/models/dataprotection/v4/config/VolumeGroupSyncContext.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/VolumeGroupSyncContext.js +5 -5
- package/dist/es/models/dataprotection/v4/config/Witness.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/Witness.js +5 -5
- package/dist/es/models/dataprotection/v4/config/WitnessAvailabilityStatus.js +2 -2
- package/dist/es/models/dataprotection/v4/content/BaseRecoveryPointSpec.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/content/BaseRecoveryPointSpec.js +4 -4
- package/dist/es/models/dataprotection/v4/content/ChangedRegion.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/content/ChangedRegion.js +4 -4
- package/dist/es/models/dataprotection/v4/content/ChangedVmRegionsApiResponse.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/content/ChangedVmRegionsApiResponse.js +5 -5
- package/dist/es/models/dataprotection/v4/content/ChangedVolumeGroupRegionsApiResponse.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/content/ChangedVolumeGroupRegionsApiResponse.js +5 -5
- package/dist/es/models/dataprotection/v4/content/ClusterDiscoverOperation.js +2 -2
- package/dist/es/models/dataprotection/v4/content/ClusterDiscoverSpec.d.ts +2 -2
- package/dist/es/models/dataprotection/v4/content/ClusterDiscoverSpec.js +5 -5
- package/dist/es/models/dataprotection/v4/content/ComputeChangedRegionsClusterDiscoverSpec.d.ts +9 -9
- package/dist/es/models/dataprotection/v4/content/ComputeChangedRegionsClusterDiscoverSpec.js +14 -14
- package/dist/es/models/dataprotection/v4/content/DiskRecoveryPointReference.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/content/DiskRecoveryPointReference.js +4 -4
- package/dist/es/models/dataprotection/v4/content/GetVssMetadataApiResponse.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/content/GetVssMetadataApiResponse.js +5 -5
- package/dist/es/models/dataprotection/v4/content/GetVssMetadataClusterDiscoverSpec.d.ts +2 -2
- package/dist/es/models/dataprotection/v4/content/GetVssMetadataClusterDiscoverSpec.js +5 -5
- package/dist/es/models/dataprotection/v4/content/RegionType.js +2 -2
- package/dist/es/models/dataprotection/v4/content/VmDiskRecoveryPointClusterDiscoverSpec.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/content/VmDiskRecoveryPointClusterDiscoverSpec.js +4 -4
- package/dist/es/models/dataprotection/v4/content/VmDiskRecoveryPointReference.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/content/VmDiskRecoveryPointReference.js +5 -5
- package/dist/es/models/dataprotection/v4/content/VmRecoveryPointChangedRegionsComputeSpec.d.ts +10 -10
- package/dist/es/models/dataprotection/v4/content/VmRecoveryPointChangedRegionsComputeSpec.js +16 -16
- package/dist/es/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointClusterDiscoverSpec.d.ts +4 -4
- package/dist/es/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointClusterDiscoverSpec.js +8 -8
- package/dist/es/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointReference.d.ts +4 -4
- package/dist/es/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointReference.js +9 -9
- package/dist/es/models/dataprotection/v4/content/VolumeGroupRecoveryPointChangedRegionsComputeSpec.d.ts +10 -10
- package/dist/es/models/dataprotection/v4/content/VolumeGroupRecoveryPointChangedRegionsComputeSpec.js +17 -17
- package/dist/es/models/dataprotection/v4/error/AppMessage.d.ts +4 -4
- package/dist/es/models/dataprotection/v4/error/AppMessage.js +8 -8
- package/dist/es/models/dataprotection/v4/error/ErrorResponse.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/error/ErrorResponse.js +5 -10
- package/dist/es/models/dataprotection/v4/error/SchemaValidationError.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/error/SchemaValidationError.js +4 -4
- package/dist/es/models/dataprotection/v4/error/SchemaValidationErrorMessage.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/error/SchemaValidationErrorMessage.js +4 -4
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +4 -4
- package/dist/es/models/prism/v4/config/TaskReference.js +9 -11
- package/dist/es/models/validation/ValidationError.js +2 -2
- package/dist/es/models/{dataprotection/v4/config/IpAddress.d.ts → vmm/v4/ahv/config/CategoryReference.d.ts} +16 -26
- package/dist/es/models/vmm/v4/ahv/config/CategoryReference.js +277 -0
- package/dist/{lib/models/dataprotection/v4/config/IpAddress.d.ts → es/models/vmm/v4/ahv/config/OwnerReference.d.ts} +16 -26
- package/dist/es/models/{dataprotection/v4/config/IpAddress.js → vmm/v4/ahv/config/OwnerReference.js} +51 -56
- package/dist/es/models/vmm/v4/ahv/config/OwnershipInfo.d.ts +56 -0
- package/dist/es/models/vmm/v4/ahv/config/OwnershipInfo.js +272 -0
- package/dist/es/models/vmm/v4/ahv/config/SubnetReference.d.ts +52 -0
- package/dist/es/models/vmm/v4/ahv/config/SubnetReference.js +277 -0
- package/dist/es/models/vmm/v4/ahv/config/VmConfigOverrideSpecification.d.ts +127 -0
- package/dist/es/models/{dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.js → vmm/v4/ahv/config/VmConfigOverrideSpecification.js} +203 -107
- package/dist/es/models/vmm/v4/ahv/config/VmRestoreIpv4ConfigOverrideSpec.d.ts +75 -0
- package/dist/es/models/vmm/v4/ahv/config/VmRestoreIpv4ConfigOverrideSpec.js +323 -0
- package/dist/es/models/vmm/v4/ahv/config/VmRestoreNicConfigOverrideParams.d.ts +88 -0
- package/dist/{lib/models/dataprotection/v4/config/CreateConsistencyGroupApiResponse.js → es/models/vmm/v4/ahv/config/VmRestoreNicConfigOverrideParams.js} +145 -97
- package/dist/es/models/vmm/v4/ahv/config/VmRestoreNicConfigSpecification.d.ts +72 -0
- package/dist/{lib/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.js → es/models/vmm/v4/ahv/config/VmRestoreNicConfigSpecification.js} +99 -110
- package/dist/es/models/vmm/v4/ahv/config/VmRestoreVirtualEthernetNicNetworkInfoOverrideSpec.d.ts +85 -0
- package/dist/es/models/vmm/v4/ahv/config/VmRestoreVirtualEthernetNicNetworkInfoOverrideSpec.js +310 -0
- package/dist/es/models/vmm/v4/ahv/config/VmRestoreVirtualEthernetNicOverrideSpec.d.ts +52 -0
- package/dist/es/models/vmm/v4/ahv/config/VmRestoreVirtualEthernetNicOverrideSpec.js +277 -0
- package/dist/es/utils/ValidationUtils.js +2 -2
- package/dist/lib/ApiClient.d.ts +7 -1
- package/dist/lib/ApiClient.js +16 -25
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +3 -3
- package/dist/lib/apis/protectedresources-endpoints.d.ts +7 -7
- package/dist/lib/apis/protectedresources-endpoints.js +12 -12
- package/dist/lib/apis/recoverypoints-endpoints.d.ts +7 -27
- package/dist/lib/apis/recoverypoints-endpoints.js +28 -47
- package/dist/lib/index.d.ts +23 -13
- package/dist/lib/index.js +83 -43
- package/dist/lib/models/common/v1/config/Flag.d.ts +1 -1
- package/dist/lib/models/common/v1/config/Flag.js +3 -3
- package/dist/lib/models/common/v1/config/IPAddress.d.ts +1 -1
- package/dist/lib/models/common/v1/config/IPAddress.js +3 -3
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +1 -1
- package/dist/lib/models/common/v1/config/IPv4Address.js +3 -3
- package/dist/lib/models/common/v1/config/IPv6Address.d.ts +1 -1
- package/dist/lib/models/common/v1/config/IPv6Address.js +3 -3
- package/dist/lib/models/common/v1/config/KVPair.d.ts +1 -1
- package/dist/lib/models/common/v1/config/KVPair.js +3 -3
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +1 -1
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +3 -3
- package/dist/lib/models/common/v1/config/Message.d.ts +1 -1
- package/dist/lib/models/common/v1/config/Message.js +3 -3
- package/dist/lib/models/common/v1/config/MessageSeverity.js +2 -2
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +4 -4
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +7 -7
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +1 -1
- package/dist/lib/models/common/v1/response/ApiLink.js +3 -3
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +1 -1
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +3 -3
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -1
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +4 -4
- package/dist/lib/models/dataprotection/v4/common/BackupType.js +2 -2
- package/dist/lib/models/dataprotection/v4/common/BaseRecoveryPoint.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/common/BaseRecoveryPoint.js +4 -4
- package/dist/lib/models/dataprotection/v4/common/BaseVmRecoveryPoint.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/common/BaseVmRecoveryPoint.js +4 -4
- package/dist/lib/models/dataprotection/v4/common/ClusterInfo.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/common/ClusterInfo.js +4 -4
- package/dist/lib/models/dataprotection/v4/common/DiskRecoveryPoint.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/common/DiskRecoveryPoint.js +3 -3
- package/dist/lib/models/dataprotection/v4/common/RecoveryPointStatus.js +2 -2
- package/dist/lib/models/dataprotection/v4/common/RecoveryPointType.js +2 -2
- package/dist/lib/models/dataprotection/v4/common/VssProperties.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/common/VssProperties.js +3 -3
- package/dist/lib/models/dataprotection/v4/config/AhvVmOverrideSpec.d.ts +4 -46
- package/dist/lib/models/dataprotection/v4/config/AhvVmOverrideSpec.js +30 -153
- package/dist/lib/models/dataprotection/v4/config/AmazonS3Bucket.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/AmazonS3Bucket.js +4 -4
- package/dist/lib/models/dataprotection/v4/config/AzureBlobStorageContainer.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/AzureBlobStorageContainer.js +4 -4
- package/dist/lib/models/dataprotection/v4/config/ClusterInfoApiResponse.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/ClusterInfoApiResponse.js +5 -5
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroup.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroup.js +6 -7
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMember.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMember.js +4 -4
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMemberType.js +2 -2
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.js +4 -4
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupProjection.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupProjection.js +4 -4
- package/dist/lib/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.js +5 -5
- package/dist/lib/models/dataprotection/v4/config/DataProtectionSiteReference.d.ts +12 -12
- package/dist/lib/models/dataprotection/v4/config/DataProtectionSiteReference.js +32 -32
- package/dist/lib/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.js +5 -5
- package/dist/lib/models/dataprotection/v4/config/EsxiVmOverrideSpec.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/EsxiVmOverrideSpec.js +7 -5
- package/dist/lib/models/dataprotection/v4/config/ExpirationTimeSpec.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/ExpirationTimeSpec.js +4 -4
- package/dist/lib/models/dataprotection/v4/config/GetProtectedResourceApiResponse.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/GetProtectedResourceApiResponse.js +5 -5
- package/dist/lib/models/dataprotection/v4/config/GetRecoveryPointApiResponse.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/GetRecoveryPointApiResponse.js +5 -5
- package/dist/lib/models/dataprotection/v4/config/GetVmRecoveryPointApiResponse.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/GetVmRecoveryPointApiResponse.js +5 -5
- package/dist/lib/models/dataprotection/v4/config/HostReference.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/HostReference.js +5 -5
- package/dist/lib/models/dataprotection/v4/config/HostType.js +2 -2
- package/dist/lib/models/dataprotection/v4/config/HypervisorType.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/HypervisorType.js +85 -0
- package/dist/lib/models/dataprotection/v4/config/ListRecoveryPointsApiResponse.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/ListRecoveryPointsApiResponse.js +5 -5
- package/dist/lib/models/dataprotection/v4/config/LocationReference.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/LocationReference.js +4 -4
- package/dist/lib/models/dataprotection/v4/config/NutanixObjectsBucket.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/NutanixObjectsBucket.js +4 -4
- package/dist/lib/models/dataprotection/v4/config/ObjectStorageType.js +2 -2
- package/dist/lib/models/dataprotection/v4/config/ProtectedEntityType.js +2 -2
- package/dist/lib/models/dataprotection/v4/config/ProtectedResource.d.ts +7 -7
- package/dist/lib/models/dataprotection/v4/config/ProtectedResource.js +9 -9
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.js +5 -5
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceReplicationStatus.js +5 -5
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.js +5 -5
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.d.ts +9 -9
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.js +14 -14
- package/dist/lib/models/dataprotection/v4/config/RecoveryInfo.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/RecoveryInfo.js +5 -5
- package/dist/lib/models/dataprotection/v4/config/RecoveryPoint.d.ts +24 -8
- package/dist/lib/models/dataprotection/v4/config/RecoveryPoint.js +54 -18
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointProjection.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointProjection.js +4 -4
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.js +5 -5
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicationSpec.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicationSpec.js +4 -4
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRepository.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRepository.js +5 -5
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRepositoryProjection.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRepositoryProjection.js +4 -4
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestorationSpec.d.ts +3 -1
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestorationSpec.js +8 -8
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.js +5 -5
- package/dist/lib/models/dataprotection/v4/config/ReplicationState.d.ts +2 -2
- package/dist/lib/models/dataprotection/v4/config/ReplicationState.js +5 -5
- package/dist/lib/models/dataprotection/v4/config/RestorableTimeRange.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/RestorableTimeRange.js +5 -5
- package/dist/lib/models/dataprotection/v4/config/SiteProtectionInfo.d.ts +2 -2
- package/dist/lib/models/dataprotection/v4/config/SiteProtectionInfo.js +4 -4
- package/dist/lib/models/dataprotection/v4/config/SiteReference.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/SiteReference.js +4 -4
- package/dist/lib/models/dataprotection/v4/config/SynchronousReplicationRole.js +6 -6
- package/dist/lib/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.js +5 -5
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPoint.d.ts +44 -1
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPoint.js +219 -7
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.d.ts +27 -1
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.js +106 -8
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupOverrideSpec.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupOverrideSpec.js +4 -4
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.js +5 -5
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.js +4 -4
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupSyncContext.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupSyncContext.js +5 -5
- package/dist/lib/models/dataprotection/v4/config/Witness.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/Witness.js +5 -5
- package/dist/lib/models/dataprotection/v4/config/WitnessAvailabilityStatus.js +2 -2
- package/dist/lib/models/dataprotection/v4/content/BaseRecoveryPointSpec.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/content/BaseRecoveryPointSpec.js +4 -4
- package/dist/lib/models/dataprotection/v4/content/ChangedRegion.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/content/ChangedRegion.js +4 -4
- package/dist/lib/models/dataprotection/v4/content/ChangedVmRegionsApiResponse.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/content/ChangedVmRegionsApiResponse.js +5 -5
- package/dist/lib/models/dataprotection/v4/content/ChangedVolumeGroupRegionsApiResponse.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/content/ChangedVolumeGroupRegionsApiResponse.js +5 -5
- package/dist/lib/models/dataprotection/v4/content/ClusterDiscoverOperation.js +2 -2
- package/dist/lib/models/dataprotection/v4/content/ClusterDiscoverSpec.d.ts +2 -2
- package/dist/lib/models/dataprotection/v4/content/ClusterDiscoverSpec.js +5 -5
- package/dist/lib/models/dataprotection/v4/content/ComputeChangedRegionsClusterDiscoverSpec.d.ts +9 -9
- package/dist/lib/models/dataprotection/v4/content/ComputeChangedRegionsClusterDiscoverSpec.js +14 -14
- package/dist/lib/models/dataprotection/v4/content/DiskRecoveryPointReference.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/content/DiskRecoveryPointReference.js +4 -4
- package/dist/lib/models/dataprotection/v4/content/GetVssMetadataApiResponse.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/content/GetVssMetadataApiResponse.js +5 -5
- package/dist/lib/models/dataprotection/v4/content/GetVssMetadataClusterDiscoverSpec.d.ts +2 -2
- package/dist/lib/models/dataprotection/v4/content/GetVssMetadataClusterDiscoverSpec.js +5 -5
- package/dist/lib/models/dataprotection/v4/content/RegionType.js +2 -2
- package/dist/lib/models/dataprotection/v4/content/VmDiskRecoveryPointClusterDiscoverSpec.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/content/VmDiskRecoveryPointClusterDiscoverSpec.js +4 -4
- package/dist/lib/models/dataprotection/v4/content/VmDiskRecoveryPointReference.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/content/VmDiskRecoveryPointReference.js +5 -5
- package/dist/lib/models/dataprotection/v4/content/VmRecoveryPointChangedRegionsComputeSpec.d.ts +10 -10
- package/dist/lib/models/dataprotection/v4/content/VmRecoveryPointChangedRegionsComputeSpec.js +16 -16
- package/dist/lib/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointClusterDiscoverSpec.d.ts +4 -4
- package/dist/lib/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointClusterDiscoverSpec.js +8 -8
- package/dist/lib/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointReference.d.ts +4 -4
- package/dist/lib/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointReference.js +9 -9
- package/dist/lib/models/dataprotection/v4/content/VolumeGroupRecoveryPointChangedRegionsComputeSpec.d.ts +10 -10
- package/dist/lib/models/dataprotection/v4/content/VolumeGroupRecoveryPointChangedRegionsComputeSpec.js +17 -17
- package/dist/lib/models/dataprotection/v4/error/AppMessage.d.ts +4 -4
- package/dist/lib/models/dataprotection/v4/error/AppMessage.js +8 -8
- package/dist/lib/models/dataprotection/v4/error/ErrorResponse.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/error/ErrorResponse.js +5 -10
- package/dist/lib/models/dataprotection/v4/error/SchemaValidationError.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/error/SchemaValidationError.js +4 -4
- package/dist/lib/models/dataprotection/v4/error/SchemaValidationErrorMessage.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/error/SchemaValidationErrorMessage.js +4 -4
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +4 -4
- package/dist/lib/models/prism/v4/config/TaskReference.js +9 -11
- package/dist/lib/models/validation/ValidationError.js +2 -2
- package/dist/lib/models/vmm/v4/ahv/config/CategoryReference.d.ts +52 -0
- package/dist/lib/models/vmm/v4/ahv/config/CategoryReference.js +277 -0
- package/dist/lib/models/vmm/v4/ahv/config/OwnerReference.d.ts +52 -0
- package/dist/lib/models/{dataprotection/v4/config/IpAddress.js → vmm/v4/ahv/config/OwnerReference.js} +51 -56
- package/dist/lib/models/vmm/v4/ahv/config/OwnershipInfo.d.ts +56 -0
- package/dist/lib/models/vmm/v4/ahv/config/OwnershipInfo.js +272 -0
- package/dist/lib/models/vmm/v4/ahv/config/SubnetReference.d.ts +52 -0
- package/dist/lib/models/vmm/v4/ahv/config/SubnetReference.js +277 -0
- package/dist/lib/models/vmm/v4/ahv/config/VmConfigOverrideSpecification.d.ts +127 -0
- package/dist/lib/models/{dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.js → vmm/v4/ahv/config/VmConfigOverrideSpecification.js} +203 -107
- package/dist/lib/models/vmm/v4/ahv/config/VmRestoreIpv4ConfigOverrideSpec.d.ts +75 -0
- package/dist/lib/models/vmm/v4/ahv/config/VmRestoreIpv4ConfigOverrideSpec.js +323 -0
- package/dist/lib/models/vmm/v4/ahv/config/VmRestoreNicConfigOverrideParams.d.ts +88 -0
- package/dist/{es/models/dataprotection/v4/config/CreateConsistencyGroupApiResponse.js → lib/models/vmm/v4/ahv/config/VmRestoreNicConfigOverrideParams.js} +145 -97
- package/dist/lib/models/vmm/v4/ahv/config/VmRestoreNicConfigSpecification.d.ts +72 -0
- package/dist/{es/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.js → lib/models/vmm/v4/ahv/config/VmRestoreNicConfigSpecification.js} +99 -110
- package/dist/lib/models/vmm/v4/ahv/config/VmRestoreVirtualEthernetNicNetworkInfoOverrideSpec.d.ts +85 -0
- package/dist/lib/models/vmm/v4/ahv/config/VmRestoreVirtualEthernetNicNetworkInfoOverrideSpec.js +310 -0
- package/dist/lib/models/vmm/v4/ahv/config/VmRestoreVirtualEthernetNicOverrideSpec.d.ts +52 -0
- package/dist/lib/models/vmm/v4/ahv/config/VmRestoreVirtualEthernetNicOverrideSpec.js +277 -0
- package/dist/lib/utils/ValidationUtils.js +2 -2
- package/package.json +2 -2
- package/dist/es/models/dataprotection/v4/config/CreateConsistencyGroupApiResponse.d.ts +0 -99
- package/dist/es/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.d.ts +0 -98
- package/dist/es/models/dataprotection/v4/config/MigrateConsistencyGroupApiResponse.d.ts +0 -99
- package/dist/es/models/dataprotection/v4/config/MigrateConsistencyGroupApiResponse.js +0 -343
- package/dist/es/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.d.ts +0 -99
- package/dist/es/models/dataprotection/v4/config/UpdateConsistencyGroupApiResponse.d.ts +0 -99
- package/dist/es/models/dataprotection/v4/config/UpdateConsistencyGroupApiResponse.js +0 -365
- package/dist/lib/models/dataprotection/v4/config/CreateConsistencyGroupApiResponse.d.ts +0 -99
- package/dist/lib/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.d.ts +0 -98
- package/dist/lib/models/dataprotection/v4/config/MigrateConsistencyGroupApiResponse.d.ts +0 -99
- package/dist/lib/models/dataprotection/v4/config/MigrateConsistencyGroupApiResponse.js +0 -343
- package/dist/lib/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.d.ts +0 -99
- package/dist/lib/models/dataprotection/v4/config/UpdateConsistencyGroupApiResponse.d.ts +0 -99
- package/dist/lib/models/dataprotection/v4/config/UpdateConsistencyGroupApiResponse.js +0 -365
package/dist/es/ApiClient.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
4
4
|
* contents of this file should be regarded as internal but are documented for completeness.
|
|
5
5
|
* @module ApiClient
|
|
6
|
-
* @version 4.
|
|
6
|
+
* @version 4.1.1
|
|
7
7
|
*/
|
|
8
8
|
export class ApiClient {
|
|
9
9
|
/**
|
|
@@ -102,6 +102,12 @@ export class ApiClient {
|
|
|
102
102
|
* @default 3000
|
|
103
103
|
*/
|
|
104
104
|
retryInterval: number;
|
|
105
|
+
/**
|
|
106
|
+
* A boolean value that indicates whether cross-site Access-Control requests should be made using auth credentials.
|
|
107
|
+
* @type {Boolean}
|
|
108
|
+
* @default false
|
|
109
|
+
*/
|
|
110
|
+
withCredentials: boolean;
|
|
105
111
|
agent: any;
|
|
106
112
|
/**
|
|
107
113
|
* Allow user to override superagent agent
|
package/dist/es/ApiClient.js
CHANGED
|
@@ -16,7 +16,7 @@ var _ApiResponseMetadata = _interopRequireDefault(require("./models/common/v1/re
|
|
|
16
16
|
var _Flag = _interopRequireDefault(require("./models/common/v1/config/Flag"));
|
|
17
17
|
var _ApiClient;
|
|
18
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
19
|
-
function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(e, r) { return new BabelRegExp(e, void 0, r); }; var e = RegExp.prototype, r = new WeakMap(); function BabelRegExp(e, t, p) { var o = RegExp(e, t); return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype); } function buildGroups(e, t) { var p = r.get(t); return Object.keys(p).reduce(function (r, t) { var o = p[t]; if ("number" == typeof o) r[t] = e[o];else { for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; r[t] = e[o[i]]; } return r; }, Object.create(null)); } return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { var t = e.exec.call(this, r); if (t) { t.groups = buildGroups(t, this); var p = t.indices; p && (p.groups = buildGroups(p, this)); } return t; }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { if ("string" == typeof p) { var o = r.get(this); return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)
|
|
19
|
+
function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(e, r) { return new BabelRegExp(e, void 0, r); }; var e = RegExp.prototype, r = new WeakMap(); function BabelRegExp(e, t, p) { var o = RegExp(e, t); return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype); } function buildGroups(e, t) { var p = r.get(t); return Object.keys(p).reduce(function (r, t) { var o = p[t]; if ("number" == typeof o) r[t] = e[o];else { for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; r[t] = e[o[i]]; } return r; }, Object.create(null)); } return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { var t = e.exec.call(this, r); if (t) { t.groups = buildGroups(t, this); var p = t.indices; p && (p.groups = buildGroups(p, this)); } return t; }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { if ("string" == typeof p) { var o = r.get(this); return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)(>|$)/g, function (e, r, t) { if ("" === t) return e; var p = o[r]; return Array.isArray(p) ? "$" + p.join("$") : "number" == typeof p ? "$" + p : ""; })); } if ("function" == typeof p) { var i = this; return e[Symbol.replace].call(this, t, function () { var e = arguments; return "object" != _typeof(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); }); } return e[Symbol.replace].call(this, t, p); }, _wrapRegExp.apply(this, arguments); }
|
|
20
20
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
21
21
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
22
22
|
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; }
|
|
@@ -39,11 +39,11 @@ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a),
|
|
|
39
39
|
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"); } /*
|
|
40
40
|
* Nutanix Data Protection APIs
|
|
41
41
|
*
|
|
42
|
-
* OpenAPI spec version: 4.
|
|
42
|
+
* OpenAPI spec version: 4.1.1
|
|
43
43
|
*
|
|
44
44
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
45
45
|
*
|
|
46
|
-
* Open API Dev Platform Codegen version:
|
|
46
|
+
* Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
|
|
47
47
|
*
|
|
48
48
|
* Do not edit the class manually.
|
|
49
49
|
*
|
|
@@ -54,7 +54,7 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
|
54
54
|
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
55
55
|
* contents of this file should be regarded as internal but are documented for completeness.
|
|
56
56
|
* @module ApiClient
|
|
57
|
-
* @version 4.
|
|
57
|
+
* @version 4.1.1
|
|
58
58
|
*/
|
|
59
59
|
var _protocol = /*#__PURE__*/new WeakMap();
|
|
60
60
|
var _cookie = /*#__PURE__*/new WeakMap();
|
|
@@ -207,6 +207,13 @@ var ApiClient = exports.ApiClient = /*#__PURE__*/function () {
|
|
|
207
207
|
* @default 3000
|
|
208
208
|
*/
|
|
209
209
|
this.retryInterval = 3000;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* A boolean value that indicates whether cross-site Access-Control requests should be made using auth credentials.
|
|
213
|
+
* @type {Boolean}
|
|
214
|
+
* @default false
|
|
215
|
+
*/
|
|
216
|
+
this.withCredentials = false;
|
|
210
217
|
if (typeof self === 'undefined') {
|
|
211
218
|
this.agent = new _superagent["default"].agent();
|
|
212
219
|
}
|
|
@@ -501,7 +508,7 @@ var ApiClient = exports.ApiClient = /*#__PURE__*/function () {
|
|
|
501
508
|
if (!isBrowser) {
|
|
502
509
|
this.downloadDestination = '.';
|
|
503
510
|
request.set(_assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, {
|
|
504
|
-
'User-Agent': 'Nutanix-dataprotection-js-client/4.
|
|
511
|
+
'User-Agent': 'Nutanix-dataprotection-js-client/4.1.1'
|
|
505
512
|
}));
|
|
506
513
|
}
|
|
507
514
|
|
|
@@ -595,7 +602,7 @@ var ApiClient = exports.ApiClient = /*#__PURE__*/function () {
|
|
|
595
602
|
request.accept(accept);
|
|
596
603
|
}
|
|
597
604
|
return new Promise(function (resolve, reject) {
|
|
598
|
-
request.buffer(false).redirects(0).retry(_this2.maxRetryAttempts, _this2.retryInterval, []).on('error', function (err) {
|
|
605
|
+
request.buffer(false).redirects(0).retry(_this2.maxRetryAttempts, _this2.retryInterval, []).withCredentials(_this2.withCredentials).on('error', function (err) {
|
|
599
606
|
_assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).DEBUG, null, "Caught the following error :", err);
|
|
600
607
|
}).end(function (error, response) {
|
|
601
608
|
if (error) {
|
|
@@ -614,9 +621,7 @@ var ApiClient = exports.ApiClient = /*#__PURE__*/function () {
|
|
|
614
621
|
if (response.headers.hasOwnProperty('content-type')) {
|
|
615
622
|
_contentType = response.headers["content-type"];
|
|
616
623
|
}
|
|
617
|
-
var fetchStream = binaryMediaTypes.
|
|
618
|
-
return _contentType.includes(binaryMediaType);
|
|
619
|
-
});
|
|
624
|
+
var fetchStream = binaryMediaTypes.includes(_contentType);
|
|
620
625
|
if (fetchStream) {
|
|
621
626
|
/*
|
|
622
627
|
* Browser environment :
|
|
@@ -699,6 +704,7 @@ var ApiClient = exports.ApiClient = /*#__PURE__*/function () {
|
|
|
699
704
|
redirectRequest.set("Cookie", response.headers["x-redirect-token"]);
|
|
700
705
|
}
|
|
701
706
|
redirectRequest.redirects(0);
|
|
707
|
+
redirectRequest.withCredentials(_this2.withCredentials);
|
|
702
708
|
redirectRequest.buffer(false);
|
|
703
709
|
var redirectedStream = _fs2["default"].createWriteStream(_tempFilename);
|
|
704
710
|
redirectRequest.pipe(redirectedStream);
|
|
@@ -1140,7 +1146,7 @@ function _log(level, mapper) {
|
|
|
1140
1146
|
return typeof message === "string" ? message : mapper ? mapper(message) : JSON.stringify(message);
|
|
1141
1147
|
});
|
|
1142
1148
|
var message = messages.join(' ');
|
|
1143
|
-
message =
|
|
1149
|
+
message = new Date().toISOString() + ' ' + level.key + ' - ' + message;
|
|
1144
1150
|
if (typeof _classPrivateFieldGet(_logger, this) !== "undefined" && _classPrivateFieldGet(_logger, this) !== null && typeof _classPrivateFieldGet(_logger, this).log === 'function') {
|
|
1145
1151
|
_classPrivateFieldGet(_logger, this).log(message);
|
|
1146
1152
|
} else {
|
|
@@ -1152,21 +1158,6 @@ function _skipLogging(level) {
|
|
|
1152
1158
|
// Skip logging if log level is DEBUG but debug is not enabled.
|
|
1153
1159
|
return !this.debug && level === _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG;
|
|
1154
1160
|
}
|
|
1155
|
-
function _getLocalDateTime() {
|
|
1156
|
-
// Current epoch UTC time in milliseconds
|
|
1157
|
-
var epochTime = Date.now();
|
|
1158
|
-
|
|
1159
|
-
// "getTimezoneOffset" returns the difference, in minutes, between a date as evaluated in the UTC time zone,
|
|
1160
|
-
// and the same date as evaluated in the local time zone.
|
|
1161
|
-
// if you are in timezone UTC-1, outputs 60
|
|
1162
|
-
// if you are in timezone UTC+3, outputs -180
|
|
1163
|
-
var timezoneOffsetInMinutes = new Date().getTimezoneOffset();
|
|
1164
|
-
var timezoneOffsetInMilliseconds = timezoneOffsetInMinutes * 60 * 1000;
|
|
1165
|
-
|
|
1166
|
-
// Create a new date with adjusted epoch time based on timezone offset
|
|
1167
|
-
var date = new Date(epochTime - timezoneOffsetInMilliseconds);
|
|
1168
|
-
return date.toISOString().slice(0, 23);
|
|
1169
|
-
}
|
|
1170
1161
|
// A mapper function to flatten a simple non-nested (key:value) object to string
|
|
1171
1162
|
function _flatten(obj) {
|
|
1172
1163
|
if (_typeof(obj) !== "object") {
|
package/dist/es/Paginable.d.ts
CHANGED
package/dist/es/Paginable.js
CHANGED
|
@@ -16,11 +16,11 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
16
16
|
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); } /*
|
|
17
17
|
* Nutanix Data Protection APIs
|
|
18
18
|
*
|
|
19
|
-
* OpenAPI spec version: 4.
|
|
19
|
+
* OpenAPI spec version: 4.1.1
|
|
20
20
|
*
|
|
21
21
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
22
22
|
*
|
|
23
|
-
* Open API Dev Platform Codegen version:
|
|
23
|
+
* Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
|
|
24
24
|
*
|
|
25
25
|
* Do not edit the class manually.
|
|
26
26
|
*
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* A model that represents a paginable response from a list endpoint.
|
|
30
30
|
* @module Paginable
|
|
31
|
-
* @version 4.
|
|
31
|
+
* @version 4.1.1
|
|
32
32
|
*/
|
|
33
33
|
var Paginable = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ProtectedResources service.
|
|
3
|
-
* @version 4.
|
|
3
|
+
* @version 4.1.1
|
|
4
4
|
* @class ProtectedResourcesApi
|
|
5
5
|
*/
|
|
6
6
|
export class ProtectedResourcesApi {
|
|
@@ -20,25 +20,25 @@ export class ProtectedResourcesApi {
|
|
|
20
20
|
apiClient: any;
|
|
21
21
|
/**
|
|
22
22
|
* Get a protected resource
|
|
23
|
-
*
|
|
24
|
-
* @param { String } extId The external identifier of a protected VM or volume group
|
|
23
|
+
* Retrieves the details of the specified protection resource, including available restorable time ranges on the local Prism Central and the replication status to targets defined in the applied protection policies. This is applicable only if the entity is protected with a minutely or synchronous schedule. Other protection schedules are not currently supported by this endpoint and are considered unprotected.
|
|
24
|
+
* @param { String } extId The external identifier of a protected VM or volume group used to retrieve the protected resource.
|
|
25
25
|
* @param {Object} args Additional Arguments
|
|
26
26
|
* @return {Promise<GetProtectedResourceApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetProtectedResourceApiResponse } and HTTP response
|
|
27
27
|
*/
|
|
28
28
|
getProtectedResourceById(extId: string, ...args: any): Promise<GetProtectedResourceApiResponse>;
|
|
29
29
|
/**
|
|
30
30
|
* Promote protected resource
|
|
31
|
-
* Promotes
|
|
32
|
-
* @param { String } extId The external identifier of a protected VM or volume group
|
|
31
|
+
* Promotes a specified synced entity at the target site. This is only relevant if the synced entity is protected in a synchronous schedule.
|
|
32
|
+
* @param { String } extId The external identifier of a protected VM or volume group used to retrieve the protected resource.
|
|
33
33
|
* @param {Object} args Additional Arguments
|
|
34
34
|
* @return {Promise<ProtectedResourcePromoteApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ProtectedResourcePromoteApiResponse } and HTTP response
|
|
35
35
|
*/
|
|
36
36
|
promoteProtectedResource(extId: string, ...args: any): Promise<ProtectedResourcePromoteApiResponse>;
|
|
37
37
|
/**
|
|
38
38
|
* Restore protected resource
|
|
39
|
-
*
|
|
39
|
+
* Restores the specified protected resource from its state at the given timestamp on the given cluster. This is only relevant if the entity is protected in a minutely schedule at the given timestamp.
|
|
40
40
|
* @param { Required<Pick<ProtectedResourceRestoreSpec, 'clusterExtId'>> & Partial<ProtectedResourceRestoreSpec> } body specification
|
|
41
|
-
* @param { String } extId The external identifier of a protected VM or volume group
|
|
41
|
+
* @param { String } extId The external identifier of a protected VM or volume group used to retrieve the protected resource.
|
|
42
42
|
* @param {Object} args Additional Arguments
|
|
43
43
|
* @return {Promise<ProtectedResourceRestoreApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ProtectedResourceRestoreApiResponse } and HTTP response
|
|
44
44
|
*/
|
|
@@ -26,18 +26,18 @@ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a),
|
|
|
26
26
|
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"); } /*
|
|
27
27
|
* Nutanix Data Protection APIs
|
|
28
28
|
*
|
|
29
|
-
* OpenAPI spec version: 4.
|
|
29
|
+
* OpenAPI spec version: 4.1.1
|
|
30
30
|
*
|
|
31
31
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
32
32
|
*
|
|
33
|
-
* Open API Dev Platform Codegen version:
|
|
33
|
+
* Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
|
|
34
34
|
*
|
|
35
35
|
* Do not edit the class manually.
|
|
36
36
|
*
|
|
37
37
|
*/
|
|
38
38
|
/**
|
|
39
39
|
* ProtectedResources service.
|
|
40
|
-
* @version 4.
|
|
40
|
+
* @version 4.1.1
|
|
41
41
|
* @class ProtectedResourcesApi
|
|
42
42
|
*/
|
|
43
43
|
var _headersToSkip = /*#__PURE__*/new WeakMap();
|
|
@@ -62,8 +62,8 @@ var ProtectedResourcesApi = exports.ProtectedResourcesApi = /*#__PURE__*/functio
|
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
* Get a protected resource
|
|
65
|
-
*
|
|
66
|
-
* @param { String } extId The external identifier of a protected VM or volume group
|
|
65
|
+
* Retrieves the details of the specified protection resource, including available restorable time ranges on the local Prism Central and the replication status to targets defined in the applied protection policies. This is applicable only if the entity is protected with a minutely or synchronous schedule. Other protection schedules are not currently supported by this endpoint and are considered unprotected.
|
|
66
|
+
* @param { String } extId The external identifier of a protected VM or volume group used to retrieve the protected resource.
|
|
67
67
|
* @param {Object} args Additional Arguments
|
|
68
68
|
* @return {Promise<GetProtectedResourceApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetProtectedResourceApiResponse } and HTTP response
|
|
69
69
|
*/
|
|
@@ -93,13 +93,13 @@ var ProtectedResourcesApi = exports.ProtectedResourcesApi = /*#__PURE__*/functio
|
|
|
93
93
|
var contentTypes = [];
|
|
94
94
|
var accepts = ['application/json'];
|
|
95
95
|
var returnType = _GetProtectedResourceApiResponse["default"];
|
|
96
|
-
return this.apiClient.callApi('/api/dataprotection/v4.
|
|
96
|
+
return this.apiClient.callApi('/api/dataprotection/v4.1/config/protected-resources/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
100
|
* Promote protected resource
|
|
101
|
-
* Promotes
|
|
102
|
-
* @param { String } extId The external identifier of a protected VM or volume group
|
|
101
|
+
* Promotes a specified synced entity at the target site. This is only relevant if the synced entity is protected in a synchronous schedule.
|
|
102
|
+
* @param { String } extId The external identifier of a protected VM or volume group used to retrieve the protected resource.
|
|
103
103
|
* @param {Object} args Additional Arguments
|
|
104
104
|
* @return {Promise<ProtectedResourcePromoteApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ProtectedResourcePromoteApiResponse } and HTTP response
|
|
105
105
|
*/
|
|
@@ -129,14 +129,14 @@ var ProtectedResourcesApi = exports.ProtectedResourcesApi = /*#__PURE__*/functio
|
|
|
129
129
|
var contentTypes = [];
|
|
130
130
|
var accepts = ['application/json'];
|
|
131
131
|
var returnType = _ProtectedResourcePromoteApiResponse["default"];
|
|
132
|
-
return this.apiClient.callApi('/api/dataprotection/v4.
|
|
132
|
+
return this.apiClient.callApi('/api/dataprotection/v4.1/config/protected-resources/{extId}/$actions/promote', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
136
|
* Restore protected resource
|
|
137
|
-
*
|
|
137
|
+
* Restores the specified protected resource from its state at the given timestamp on the given cluster. This is only relevant if the entity is protected in a minutely schedule at the given timestamp.
|
|
138
138
|
* @param { Required<Pick<ProtectedResourceRestoreSpec, 'clusterExtId'>> & Partial<ProtectedResourceRestoreSpec> } body specification
|
|
139
|
-
* @param { String } extId The external identifier of a protected VM or volume group
|
|
139
|
+
* @param { String } extId The external identifier of a protected VM or volume group used to retrieve the protected resource.
|
|
140
140
|
* @param {Object} args Additional Arguments
|
|
141
141
|
* @return {Promise<ProtectedResourceRestoreApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ProtectedResourceRestoreApiResponse } and HTTP response
|
|
142
142
|
*/
|
|
@@ -176,7 +176,7 @@ var ProtectedResourcesApi = exports.ProtectedResourcesApi = /*#__PURE__*/functio
|
|
|
176
176
|
var contentTypes = ['application/json'];
|
|
177
177
|
var accepts = ['application/json'];
|
|
178
178
|
var returnType = _ProtectedResourceRestoreApiResponse["default"];
|
|
179
|
-
return this.apiClient.callApi('/api/dataprotection/v4.
|
|
179
|
+
return this.apiClient.callApi('/api/dataprotection/v4.1/config/protected-resources/{extId}/$actions/restore', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
180
180
|
}
|
|
181
181
|
}], [{
|
|
182
182
|
key: "ApiClient",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* RecoveryPoints service.
|
|
3
|
-
* @version 4.
|
|
3
|
+
* @version 4.1.1
|
|
4
4
|
* @class RecoveryPointsApi
|
|
5
5
|
*/
|
|
6
6
|
export class RecoveryPointsApi {
|
|
@@ -35,8 +35,8 @@ export class RecoveryPointsApi {
|
|
|
35
35
|
*/
|
|
36
36
|
deleteRecoveryPointById(extId: string, ...args: any): Promise<DeleteRecoveryPointApiResponse>;
|
|
37
37
|
/**
|
|
38
|
-
* Discover cluster
|
|
39
|
-
* It returns cluster details
|
|
38
|
+
* Discover cluster details for a recovery point
|
|
39
|
+
* It returns cluster details where the given recovery point is located, and a certificate to access the endpoint. The certificate must be set as a NTNX_IGW_SESSION cookie in the header. For example, Cookie: NTNX_IGW_SESSION='certificate'
|
|
40
40
|
* @param { Required<Pick<ClusterDiscoverSpec, 'operation' | 'spec'>> & Partial<ClusterDiscoverSpec> } body specification
|
|
41
41
|
* @param { String } extId The external identifier that can be used to retrieve the recovery point using its URL.
|
|
42
42
|
* @param {Object} args Additional Arguments
|
|
@@ -62,7 +62,7 @@ export class RecoveryPointsApi {
|
|
|
62
62
|
getVmRecoveryPointById(recoveryPointExtId: string, extId: string, ...args: any): Promise<GetVmRecoveryPointApiResponse>;
|
|
63
63
|
/**
|
|
64
64
|
* Get VSS metadata by VM recovery point ID
|
|
65
|
-
* The metadata documents of Volume Shadow Copy Service(VSS) writers and requesters are called VSS metadata. During a VSS backup operation, the VSS metadata is compressed into a cabinet file, which is in a .cab file format designed
|
|
65
|
+
* The metadata documents of Volume Shadow Copy Service (VSS) writers and requesters are called VSS metadata. During a VSS backup operation, the VSS metadata is compressed into a cabinet file, which is in a .cab file format designed to store compressed files. This cabinet file must be saved to the backup media during a backup operation, as it will be required during a restore operation. This API returns the VSS metadata (cabinet file) of a VM recovery point under a composite recovery point that is identified by an external identifier. This external identifier was saved during the recovery point creation operation.
|
|
66
66
|
* @param { String } recoveryPointExtId The external identifier that can be used to retrieve the recovery point using its URL.
|
|
67
67
|
* @param { String } vmRecoveryPointExtId The external identifier that can be used to identify a VM recovery point.
|
|
68
68
|
* @param {Object} args Additional Arguments
|
|
@@ -71,7 +71,7 @@ export class RecoveryPointsApi {
|
|
|
71
71
|
getVssMetadataByVmRecoveryPointId(recoveryPointExtId: string, vmRecoveryPointExtId: string, ...args: any): Promise<GetVssMetadataApiResponse>;
|
|
72
72
|
/**
|
|
73
73
|
* List recovery points
|
|
74
|
-
* List of recovery
|
|
74
|
+
* List of recovery points.
|
|
75
75
|
* @param {Object} opts Optional parameters defined for the operation
|
|
76
76
|
* @param { String } opts.xClusterId Cluster type from which recovery points must be fetched. Valid values: [AOS, MST]
|
|
77
77
|
* @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.
|
|
@@ -79,29 +79,9 @@ export class RecoveryPointsApi {
|
|
|
79
79
|
* @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.
|
|
80
80
|
|
|
81
81
|
* @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>
|
|
82
|
-
* 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'
|
|
83
|
-
*
|
|
84
|
-
* - creationTime<br>
|
|
85
|
-
* - extId<br>
|
|
86
|
-
* - locationAgnosticId<br>
|
|
87
|
-
* - name<br>
|
|
88
|
-
* - ownerExtId<br>
|
|
89
|
-
* - recoveryPointType<br>
|
|
90
|
-
* - vmRecoveryPoints<br>
|
|
91
|
-
* - volumeGroupRecoveryPoints
|
|
92
|
-
* @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>
|
|
93
|
-
* The orderby can be applied to the following fields:<br>
|
|
94
|
-
* - creationTime<br>
|
|
95
|
-
* - expirationTime<br>
|
|
96
|
-
* - name<br>
|
|
97
|
-
* - ownerExtId
|
|
82
|
+
* 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'.
|
|
83
|
+
* @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.
|
|
98
84
|
* @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.
|
|
99
|
-
- creationTime
|
|
100
|
-
- expirationTime
|
|
101
|
-
- extId
|
|
102
|
-
- name
|
|
103
|
-
- recoveryPointType
|
|
104
|
-
|
|
105
85
|
* @param {Object} args Additional Arguments
|
|
106
86
|
* @return {Promise<ListRecoveryPointsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListRecoveryPointsApiResponse } and HTTP response
|
|
107
87
|
*/
|
|
@@ -41,18 +41,18 @@ function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a),
|
|
|
41
41
|
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"); } /*
|
|
42
42
|
* Nutanix Data Protection APIs
|
|
43
43
|
*
|
|
44
|
-
* OpenAPI spec version: 4.
|
|
44
|
+
* OpenAPI spec version: 4.1.1
|
|
45
45
|
*
|
|
46
46
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
47
47
|
*
|
|
48
|
-
* Open API Dev Platform Codegen version:
|
|
48
|
+
* Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
|
|
49
49
|
*
|
|
50
50
|
* Do not edit the class manually.
|
|
51
51
|
*
|
|
52
52
|
*/
|
|
53
53
|
/**
|
|
54
54
|
* RecoveryPoints service.
|
|
55
|
-
* @version 4.
|
|
55
|
+
* @version 4.1.1
|
|
56
56
|
* @class RecoveryPointsApi
|
|
57
57
|
*/
|
|
58
58
|
var _headersToSkip = /*#__PURE__*/new WeakMap();
|
|
@@ -112,7 +112,7 @@ var RecoveryPointsApi = exports.RecoveryPointsApi = /*#__PURE__*/function () {
|
|
|
112
112
|
var contentTypes = ['application/json'];
|
|
113
113
|
var accepts = ['application/json'];
|
|
114
114
|
var returnType = _CreateRecoveryPointApiResponse["default"];
|
|
115
|
-
return this.apiClient.callApi('/api/dataprotection/v4.
|
|
115
|
+
return this.apiClient.callApi('/api/dataprotection/v4.1/config/recovery-points', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
/**
|
|
@@ -148,12 +148,12 @@ var RecoveryPointsApi = exports.RecoveryPointsApi = /*#__PURE__*/function () {
|
|
|
148
148
|
var contentTypes = [];
|
|
149
149
|
var accepts = ['application/json'];
|
|
150
150
|
var returnType = _DeleteRecoveryPointApiResponse["default"];
|
|
151
|
-
return this.apiClient.callApi('/api/dataprotection/v4.
|
|
151
|
+
return this.apiClient.callApi('/api/dataprotection/v4.1/config/recovery-points/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
/**
|
|
155
|
-
* Discover cluster
|
|
156
|
-
* It returns cluster details
|
|
155
|
+
* Discover cluster details for a recovery point
|
|
156
|
+
* It returns cluster details where the given recovery point is located, and a certificate to access the endpoint. The certificate must be set as a NTNX_IGW_SESSION cookie in the header. For example, Cookie: NTNX_IGW_SESSION='certificate'
|
|
157
157
|
* @param { Required<Pick<ClusterDiscoverSpec, 'operation' | 'spec'>> & Partial<ClusterDiscoverSpec> } body specification
|
|
158
158
|
* @param { String } extId The external identifier that can be used to retrieve the recovery point using its URL.
|
|
159
159
|
* @param {Object} args Additional Arguments
|
|
@@ -195,7 +195,7 @@ var RecoveryPointsApi = exports.RecoveryPointsApi = /*#__PURE__*/function () {
|
|
|
195
195
|
var contentTypes = ['application/json'];
|
|
196
196
|
var accepts = ['application/json'];
|
|
197
197
|
var returnType = _ClusterInfoApiResponse["default"];
|
|
198
|
-
return this.apiClient.callApi('/api/dataprotection/v4.
|
|
198
|
+
return this.apiClient.callApi('/api/dataprotection/v4.1/config/recovery-points/{extId}/$actions/discover-cluster', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
/**
|
|
@@ -231,7 +231,7 @@ var RecoveryPointsApi = exports.RecoveryPointsApi = /*#__PURE__*/function () {
|
|
|
231
231
|
var contentTypes = [];
|
|
232
232
|
var accepts = ['application/json'];
|
|
233
233
|
var returnType = _GetRecoveryPointApiResponse["default"];
|
|
234
|
-
return this.apiClient.callApi('/api/dataprotection/v4.
|
|
234
|
+
return this.apiClient.callApi('/api/dataprotection/v4.1/config/recovery-points/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
/**
|
|
@@ -273,12 +273,12 @@ var RecoveryPointsApi = exports.RecoveryPointsApi = /*#__PURE__*/function () {
|
|
|
273
273
|
var contentTypes = [];
|
|
274
274
|
var accepts = ['application/json'];
|
|
275
275
|
var returnType = _GetVmRecoveryPointApiResponse["default"];
|
|
276
|
-
return this.apiClient.callApi('/api/dataprotection/v4.
|
|
276
|
+
return this.apiClient.callApi('/api/dataprotection/v4.1/config/recovery-points/{recoveryPointExtId}/vm-recovery-points/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
/**
|
|
280
280
|
* Get VSS metadata by VM recovery point ID
|
|
281
|
-
* The metadata documents of Volume Shadow Copy Service(VSS) writers and requesters are called VSS metadata. During a VSS backup operation, the VSS metadata is compressed into a cabinet file, which is in a .cab file format designed
|
|
281
|
+
* The metadata documents of Volume Shadow Copy Service (VSS) writers and requesters are called VSS metadata. During a VSS backup operation, the VSS metadata is compressed into a cabinet file, which is in a .cab file format designed to store compressed files. This cabinet file must be saved to the backup media during a backup operation, as it will be required during a restore operation. This API returns the VSS metadata (cabinet file) of a VM recovery point under a composite recovery point that is identified by an external identifier. This external identifier was saved during the recovery point creation operation.
|
|
282
282
|
* @param { String } recoveryPointExtId The external identifier that can be used to retrieve the recovery point using its URL.
|
|
283
283
|
* @param { String } vmRecoveryPointExtId The external identifier that can be used to identify a VM recovery point.
|
|
284
284
|
* @param {Object} args Additional Arguments
|
|
@@ -315,40 +315,21 @@ var RecoveryPointsApi = exports.RecoveryPointsApi = /*#__PURE__*/function () {
|
|
|
315
315
|
var contentTypes = [];
|
|
316
316
|
var accepts = ['application/octet-stream', 'application/json'];
|
|
317
317
|
var returnType = _GetVssMetadataApiResponse["default"];
|
|
318
|
-
return this.apiClient.callApi('/api/dataprotection/v4.
|
|
318
|
+
return this.apiClient.callApi('/api/dataprotection/v4.1/content/recovery-points/{recoveryPointExtId}/vm-recovery-points/{vmRecoveryPointExtId}/vss-metadata', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
/**
|
|
322
322
|
* List recovery points
|
|
323
|
-
* List of recovery
|
|
323
|
+
* List of recovery points.
|
|
324
324
|
* @param {Object} opts Optional parameters defined for the operation
|
|
325
325
|
* @param { String } opts.xClusterId Cluster type from which recovery points must be fetched. Valid values: [AOS, MST]
|
|
326
326
|
* @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.
|
|
327
327
|
* @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.
|
|
328
328
|
* @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>
|
|
329
|
-
* 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'
|
|
330
|
-
*
|
|
331
|
-
* - creationTime<br>
|
|
332
|
-
* - extId<br>
|
|
333
|
-
* - locationAgnosticId<br>
|
|
334
|
-
* - name<br>
|
|
335
|
-
* - ownerExtId<br>
|
|
336
|
-
* - recoveryPointType<br>
|
|
337
|
-
* - vmRecoveryPoints<br>
|
|
338
|
-
* - volumeGroupRecoveryPoints
|
|
339
|
-
* @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>
|
|
340
|
-
* The orderby can be applied to the following fields:<br>
|
|
341
|
-
* - creationTime<br>
|
|
342
|
-
* - expirationTime<br>
|
|
343
|
-
* - name<br>
|
|
344
|
-
* - ownerExtId
|
|
329
|
+
* 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'.
|
|
330
|
+
* @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.
|
|
345
331
|
* @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.
|
|
346
|
-
|
|
347
|
-
- expirationTime
|
|
348
|
-
- extId
|
|
349
|
-
- name
|
|
350
|
-
- recoveryPointType
|
|
351
|
-
* @param {Object} args Additional Arguments
|
|
332
|
+
* @param {Object} args Additional Arguments
|
|
352
333
|
* @return {Promise<ListRecoveryPointsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListRecoveryPointsApiResponse } and HTTP response
|
|
353
334
|
*/
|
|
354
335
|
}, {
|
|
@@ -384,7 +365,7 @@ var RecoveryPointsApi = exports.RecoveryPointsApi = /*#__PURE__*/function () {
|
|
|
384
365
|
var contentTypes = [];
|
|
385
366
|
var accepts = ['application/json'];
|
|
386
367
|
var returnType = _ListRecoveryPointsApiResponse["default"];
|
|
387
|
-
return this.apiClient.callApi('/api/dataprotection/v4.
|
|
368
|
+
return this.apiClient.callApi('/api/dataprotection/v4.1/config/recovery-points', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
388
369
|
}
|
|
389
370
|
|
|
390
371
|
/**
|
|
@@ -431,7 +412,7 @@ var RecoveryPointsApi = exports.RecoveryPointsApi = /*#__PURE__*/function () {
|
|
|
431
412
|
var contentTypes = ['application/json'];
|
|
432
413
|
var accepts = ['application/json'];
|
|
433
414
|
var returnType = _RecoveryPointReplicateApiResponse["default"];
|
|
434
|
-
return this.apiClient.callApi('/api/dataprotection/v4.
|
|
415
|
+
return this.apiClient.callApi('/api/dataprotection/v4.1/config/recovery-points/{extId}/$actions/replicate', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
435
416
|
}
|
|
436
417
|
|
|
437
418
|
/**
|
|
@@ -474,7 +455,7 @@ var RecoveryPointsApi = exports.RecoveryPointsApi = /*#__PURE__*/function () {
|
|
|
474
455
|
var contentTypes = ['application/json'];
|
|
475
456
|
var accepts = ['application/json'];
|
|
476
457
|
var returnType = _RecoveryPointRestoreApiResponse["default"];
|
|
477
|
-
return this.apiClient.callApi('/api/dataprotection/v4.
|
|
458
|
+
return this.apiClient.callApi('/api/dataprotection/v4.1/config/recovery-points/{extId}/$actions/restore', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
478
459
|
}
|
|
479
460
|
|
|
480
461
|
/**
|
|
@@ -488,7 +469,7 @@ var RecoveryPointsApi = exports.RecoveryPointsApi = /*#__PURE__*/function () {
|
|
|
488
469
|
}, {
|
|
489
470
|
key: "setRecoveryPointExpirationTime",
|
|
490
471
|
value: function setRecoveryPointExpirationTime(extId, body) {
|
|
491
|
-
var
|
|
472
|
+
var _this0 = this;
|
|
492
473
|
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
493
474
|
var postBody = null;
|
|
494
475
|
if (body instanceof _ExpirationTimeSpec["default"] && typeof body.toJson === 'function') {
|
|
@@ -510,7 +491,7 @@ var RecoveryPointsApi = exports.RecoveryPointsApi = /*#__PURE__*/function () {
|
|
|
510
491
|
var queryParams = {};
|
|
511
492
|
var headersToInclude = {};
|
|
512
493
|
Object.keys(argMap).forEach(function (header) {
|
|
513
|
-
if (!_classPrivateFieldGet(_headersToSkip,
|
|
494
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this0).has(header.toLowerCase())) {
|
|
514
495
|
headersToInclude[header] = argMap[header];
|
|
515
496
|
}
|
|
516
497
|
});
|
|
@@ -521,7 +502,7 @@ var RecoveryPointsApi = exports.RecoveryPointsApi = /*#__PURE__*/function () {
|
|
|
521
502
|
var contentTypes = ['application/json'];
|
|
522
503
|
var accepts = ['application/json'];
|
|
523
504
|
var returnType = _UpdateRecoveryPointExpirationTimeApiResponse["default"];
|
|
524
|
-
return this.apiClient.callApi('/api/dataprotection/v4.
|
|
505
|
+
return this.apiClient.callApi('/api/dataprotection/v4.1/config/recovery-points/{extId}/$actions/set-expiration-time', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
525
506
|
}
|
|
526
507
|
|
|
527
508
|
/**
|
|
@@ -537,7 +518,7 @@ var RecoveryPointsApi = exports.RecoveryPointsApi = /*#__PURE__*/function () {
|
|
|
537
518
|
}, {
|
|
538
519
|
key: "vmRecoveryPointComputeChangedRegions",
|
|
539
520
|
value: function vmRecoveryPointComputeChangedRegions(recoveryPointExtId, vmRecoveryPointExtId, extId, body) {
|
|
540
|
-
var
|
|
521
|
+
var _this1 = this;
|
|
541
522
|
var argMap = (arguments.length <= 4 ? 0 : arguments.length - 4) > 0 ? arguments.length <= 4 ? undefined : arguments[4] : {};
|
|
542
523
|
var postBody = null;
|
|
543
524
|
if (body instanceof _VmRecoveryPointChangedRegionsComputeSpec["default"] && typeof body.toJson === 'function') {
|
|
@@ -569,7 +550,7 @@ var RecoveryPointsApi = exports.RecoveryPointsApi = /*#__PURE__*/function () {
|
|
|
569
550
|
var queryParams = {};
|
|
570
551
|
var headersToInclude = {};
|
|
571
552
|
Object.keys(argMap).forEach(function (header) {
|
|
572
|
-
if (!_classPrivateFieldGet(_headersToSkip,
|
|
553
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this1).has(header.toLowerCase())) {
|
|
573
554
|
headersToInclude[header] = argMap[header];
|
|
574
555
|
}
|
|
575
556
|
});
|
|
@@ -580,7 +561,7 @@ var RecoveryPointsApi = exports.RecoveryPointsApi = /*#__PURE__*/function () {
|
|
|
580
561
|
var contentTypes = ['application/json'];
|
|
581
562
|
var accepts = ['application/json'];
|
|
582
563
|
var returnType = _ChangedVmRegionsApiResponse["default"];
|
|
583
|
-
return this.apiClient.callApi('/api/dataprotection/v4.
|
|
564
|
+
return this.apiClient.callApi('/api/dataprotection/v4.1/content/recovery-points/{recoveryPointExtId}/vm-recovery-points/{vmRecoveryPointExtId}/disk-recovery-points/{extId}/$actions/compute-changed-regions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
584
565
|
}
|
|
585
566
|
|
|
586
567
|
/**
|
|
@@ -596,7 +577,7 @@ var RecoveryPointsApi = exports.RecoveryPointsApi = /*#__PURE__*/function () {
|
|
|
596
577
|
}, {
|
|
597
578
|
key: "volumeGroupRecoveryPointComputeChangedRegions",
|
|
598
579
|
value: function volumeGroupRecoveryPointComputeChangedRegions(recoveryPointExtId, volumeGroupRecoveryPointExtId, extId, body) {
|
|
599
|
-
var
|
|
580
|
+
var _this10 = this;
|
|
600
581
|
var argMap = (arguments.length <= 4 ? 0 : arguments.length - 4) > 0 ? arguments.length <= 4 ? undefined : arguments[4] : {};
|
|
601
582
|
var postBody = null;
|
|
602
583
|
if (body instanceof _VolumeGroupRecoveryPointChangedRegionsComputeSpec["default"] && typeof body.toJson === 'function') {
|
|
@@ -628,7 +609,7 @@ var RecoveryPointsApi = exports.RecoveryPointsApi = /*#__PURE__*/function () {
|
|
|
628
609
|
var queryParams = {};
|
|
629
610
|
var headersToInclude = {};
|
|
630
611
|
Object.keys(argMap).forEach(function (header) {
|
|
631
|
-
if (!_classPrivateFieldGet(_headersToSkip,
|
|
612
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this10).has(header.toLowerCase())) {
|
|
632
613
|
headersToInclude[header] = argMap[header];
|
|
633
614
|
}
|
|
634
615
|
});
|
|
@@ -639,7 +620,7 @@ var RecoveryPointsApi = exports.RecoveryPointsApi = /*#__PURE__*/function () {
|
|
|
639
620
|
var contentTypes = ['application/json'];
|
|
640
621
|
var accepts = ['application/json'];
|
|
641
622
|
var returnType = _ChangedVolumeGroupRegionsApiResponse["default"];
|
|
642
|
-
return this.apiClient.callApi('/api/dataprotection/v4.
|
|
623
|
+
return this.apiClient.callApi('/api/dataprotection/v4.1/content/recovery-points/{recoveryPointExtId}/volume-group-recovery-points/{volumeGroupRecoveryPointExtId}/disk-recovery-points/{extId}/$actions/compute-changed-regions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
643
624
|
}
|
|
644
625
|
}], [{
|
|
645
626
|
key: "ApiClient",
|