@nutanix-scratch/dataprotection-js-client 4.0.1 → 4.2.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 +55 -48
- package/dist/Ntnx-Dataprotection-js-client-prod.js +1 -1
- package/dist/Ntnx-Dataprotection-js-client.js +1327 -540
- package/dist/es/ApiClient.d.ts +35 -7
- package/dist/es/ApiClient.js +862 -684
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +144 -183
- package/dist/es/apis/consistencygroups-endpoints.d.ts +84 -0
- package/dist/es/apis/consistencygroups-endpoints.js +267 -0
- package/dist/es/apis/dataprotectionclustercapabilities-endpoints.d.ts +46 -0
- package/dist/es/apis/dataprotectionclustercapabilities-endpoints.js +107 -0
- package/dist/es/apis/protectedresources-endpoints.d.ts +7 -7
- package/dist/es/apis/protectedresources-endpoints.js +129 -147
- package/dist/es/apis/recoveryplanactions-endpoints.d.ts +76 -0
- package/dist/es/apis/recoveryplanactions-endpoints.js +282 -0
- package/dist/es/apis/recoveryplanjobs-endpoints.d.ts +108 -0
- package/dist/es/apis/recoveryplanjobs-endpoints.js +291 -0
- package/dist/es/apis/recoverypoints-endpoints.d.ts +7 -27
- package/dist/es/apis/recoverypoints-endpoints.js +530 -571
- package/dist/es/index.d.ts +149 -7
- package/dist/es/index.js +883 -315
- package/dist/es/models/common/v1/config/EntityReference.d.ts +79 -0
- package/dist/es/models/common/v1/config/EntityReference.js +355 -0
- package/dist/es/models/common/v1/config/EntityType.d.ts +19 -0
- package/dist/es/models/common/v1/config/EntityType.js +239 -0
- package/dist/es/models/common/v1/config/Flag.d.ts +2 -8
- package/dist/es/models/common/v1/config/Flag.js +170 -211
- package/dist/es/models/common/v1/config/IPAddress.d.ts +2 -20
- package/dist/es/models/common/v1/config/IPAddress.js +170 -217
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +2 -8
- package/dist/es/models/common/v1/config/IPv4Address.js +174 -215
- package/dist/es/models/common/v1/config/IPv6Address.d.ts +2 -8
- package/dist/es/models/common/v1/config/IPv6Address.js +174 -215
- package/dist/es/models/common/v1/config/KVPair.d.ts +2 -8
- package/dist/es/models/common/v1/config/KVPair.js +225 -270
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +139 -178
- package/dist/es/models/common/v1/config/Message.d.ts +2 -10
- package/dist/es/models/common/v1/config/Message.js +213 -258
- package/dist/es/models/common/v1/config/MessageSeverity.js +7 -9
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +5 -10
- package/dist/es/models/common/v1/config/TenantAwareModel.js +138 -178
- package/dist/es/models/common/v1/response/ApiLink.d.ts +2 -8
- package/dist/es/models/common/v1/response/ApiLink.js +165 -206
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +281 -344
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +155 -203
- package/dist/es/models/dataprotection/v4/common/BackupType.js +7 -9
- package/dist/es/models/dataprotection/v4/common/BaseRecoveryPoint.d.ts +12 -21
- package/dist/es/models/dataprotection/v4/common/BaseRecoveryPoint.js +281 -302
- package/dist/es/models/dataprotection/v4/common/BaseVmRecoveryPoint.d.ts +1 -32
- package/dist/es/models/dataprotection/v4/common/BaseVmRecoveryPoint.js +295 -336
- package/dist/es/models/dataprotection/v4/common/ClusterInfo.d.ts +5 -29
- package/dist/es/models/dataprotection/v4/common/ClusterInfo.js +166 -207
- package/dist/es/models/dataprotection/v4/common/DiskRecoveryPoint.d.ts +2 -8
- package/dist/es/models/dataprotection/v4/common/DiskRecoveryPoint.js +163 -206
- package/dist/es/models/dataprotection/v4/common/RecoveryPointStatus.js +7 -9
- package/dist/es/models/dataprotection/v4/common/RecoveryPointType.js +7 -9
- package/dist/es/models/dataprotection/v4/common/VssProperties.d.ts +2 -10
- package/dist/es/models/dataprotection/v4/common/VssProperties.js +222 -267
- package/dist/es/models/dataprotection/v4/config/AhvVmOverrideSpec.d.ts +4 -46
- package/dist/es/models/dataprotection/v4/config/AhvVmOverrideSpec.js +72 -226
- package/dist/es/models/dataprotection/v4/config/AmazonS3Bucket.d.ts +2 -8
- package/dist/es/models/dataprotection/v4/config/AmazonS3Bucket.js +171 -212
- package/dist/es/models/dataprotection/v4/config/AzureBlobStorageContainer.d.ts +2 -8
- package/dist/es/models/dataprotection/v4/config/AzureBlobStorageContainer.js +171 -212
- package/dist/es/models/dataprotection/v4/config/Capability.d.ts +71 -0
- package/dist/es/models/dataprotection/v4/config/Capability.js +279 -0
- package/dist/es/models/dataprotection/v4/config/ClusterInfoApiResponse.d.ts +2 -43
- package/dist/es/models/dataprotection/v4/config/ClusterInfoApiResponse.js +187 -242
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroup.d.ts +1 -26
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroup.js +247 -303
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMember.d.ts +2 -8
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMember.js +166 -207
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMemberType.js +7 -9
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.d.ts +2 -8
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.js +171 -212
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupProjection.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupProjection.js +74 -103
- package/dist/es/models/dataprotection/v4/config/CreateConsistencyGroupApiResponse.d.ts +2 -43
- package/dist/es/models/dataprotection/v4/config/CreateConsistencyGroupApiResponse.js +187 -242
- package/dist/es/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.d.ts +2 -43
- package/dist/es/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.js +187 -242
- package/dist/es/models/dataprotection/v4/config/CreationTimeRange.d.ts +58 -0
- package/dist/es/models/dataprotection/v4/config/CreationTimeRange.js +272 -0
- package/dist/es/models/dataprotection/v4/config/DataProtectionCapabilityName.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/DataProtectionCapabilityName.js +77 -0
- package/dist/es/models/dataprotection/v4/config/DataProtectionClusterCapability.d.ts +34 -0
- package/dist/es/models/dataprotection/v4/config/DataProtectionClusterCapability.js +277 -0
- package/dist/es/models/dataprotection/v4/config/DataProtectionClusterCapabilityProjection.d.ts +10 -0
- package/dist/es/models/dataprotection/v4/config/DataProtectionClusterCapabilityProjection.js +124 -0
- package/dist/es/models/dataprotection/v4/config/DataProtectionSiteReference.d.ts +12 -18
- package/dist/es/models/dataprotection/v4/config/DataProtectionSiteReference.js +178 -219
- package/dist/es/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.d.ts +2 -43
- package/dist/es/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.js +190 -245
- package/dist/{lib/models/dataprotection/v4/config/MigrateConsistencyGroupApiResponse.d.ts → es/models/dataprotection/v4/config/DeleteRecoveryPlanJobApiResponse.d.ts} +9 -50
- package/dist/es/models/dataprotection/v4/config/DeleteRecoveryPlanJobApiResponse.js +288 -0
- package/dist/es/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.d.ts +2 -43
- package/dist/es/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.js +187 -242
- package/dist/es/models/dataprotection/v4/config/DisasterRecoveryLocation.d.ts +72 -0
- package/dist/es/models/dataprotection/v4/config/DisasterRecoveryLocation.js +292 -0
- package/dist/es/models/dataprotection/v4/config/EntityRecoveryResult.d.ts +79 -0
- package/dist/es/models/dataprotection/v4/config/EntityRecoveryResult.js +352 -0
- package/dist/es/models/dataprotection/v4/config/{IpAddress.d.ts → EntityReference.d.ts} +21 -26
- package/dist/es/models/dataprotection/v4/config/EntityReference.js +243 -0
- package/dist/es/models/dataprotection/v4/config/ErrorGroup.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/ErrorGroup.js +113 -0
- package/dist/es/models/dataprotection/v4/config/ErrorMessage.d.ts +53 -0
- package/dist/es/models/dataprotection/v4/config/ErrorMessage.js +335 -0
- package/dist/es/models/dataprotection/v4/config/EsxiVmOverrideSpec.d.ts +2 -7
- package/dist/es/models/dataprotection/v4/config/EsxiVmOverrideSpec.js +146 -183
- package/dist/es/models/dataprotection/v4/config/ExecutionStepEntityReference.d.ts +68 -0
- package/dist/es/models/dataprotection/v4/config/ExecutionStepEntityReference.js +311 -0
- package/dist/es/models/dataprotection/v4/config/ExecutionStepEntityType.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/ExecutionStepEntityType.js +143 -0
- package/dist/es/models/dataprotection/v4/config/ExecutionStepResult.d.ts +58 -0
- package/dist/es/models/dataprotection/v4/config/ExecutionStepResult.js +253 -0
- package/dist/es/models/dataprotection/v4/config/ExpirationTimeSpec.d.ts +7 -12
- package/dist/es/models/dataprotection/v4/config/ExpirationTimeSpec.js +143 -182
- package/dist/es/models/dataprotection/v4/config/FailoverDirection.d.ts +90 -0
- package/dist/es/models/dataprotection/v4/config/FailoverDirection.js +354 -0
- package/dist/es/models/dataprotection/v4/config/ForceDeleteAllRecoveryPointsSpec.d.ts +55 -0
- package/dist/es/models/dataprotection/v4/config/ForceDeleteAllRecoveryPointsSpec.js +274 -0
- package/dist/es/models/dataprotection/v4/config/GetConsistencyGroupApiResponse.d.ts +58 -0
- package/dist/es/models/dataprotection/v4/config/GetConsistencyGroupApiResponse.js +288 -0
- package/dist/es/models/dataprotection/v4/config/GetProtectedResourceApiResponse.d.ts +3 -44
- package/dist/es/models/dataprotection/v4/config/GetProtectedResourceApiResponse.js +187 -242
- package/dist/es/models/dataprotection/v4/config/GetRecoveryPlanJobApiResponse.d.ts +58 -0
- package/dist/es/models/dataprotection/v4/config/GetRecoveryPlanJobApiResponse.js +288 -0
- package/dist/es/models/dataprotection/v4/config/GetRecoveryPointApiResponse.d.ts +2 -43
- package/dist/es/models/dataprotection/v4/config/GetRecoveryPointApiResponse.js +187 -242
- package/dist/es/models/dataprotection/v4/config/GetVmRecoveryPointApiResponse.d.ts +2 -45
- package/dist/es/models/dataprotection/v4/config/GetVmRecoveryPointApiResponse.js +187 -242
- package/dist/es/models/dataprotection/v4/config/HostReference.d.ts +1 -17
- package/dist/es/models/dataprotection/v4/config/HostReference.js +154 -198
- package/dist/es/models/dataprotection/v4/config/HostType.js +7 -9
- package/dist/es/models/dataprotection/v4/config/HypervisorType.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/HypervisorType.js +83 -0
- package/dist/es/models/dataprotection/v4/config/ListConsistencyGroupsApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/ListConsistencyGroupsApiResponse.js +315 -0
- package/dist/es/models/dataprotection/v4/config/ListDPClusterCapabilitiesApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/ListDPClusterCapabilitiesApiResponse.js +315 -0
- package/dist/es/models/dataprotection/v4/config/ListRecoveryPlanJobExecutionStepsApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/ListRecoveryPlanJobExecutionStepsApiResponse.js +315 -0
- package/dist/es/models/dataprotection/v4/config/ListRecoveryPlanJobValidationErrorsApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/ListRecoveryPlanJobValidationErrorsApiResponse.js +315 -0
- package/dist/es/models/dataprotection/v4/config/ListRecoveryPlanJobsApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/ListRecoveryPlanJobsApiResponse.js +315 -0
- package/dist/es/models/dataprotection/v4/config/ListRecoveryPointsApiResponse.d.ts +2 -43
- package/dist/es/models/dataprotection/v4/config/ListRecoveryPointsApiResponse.js +213 -268
- package/dist/es/models/dataprotection/v4/config/LocationReference.d.ts +2 -7
- package/dist/es/models/dataprotection/v4/config/LocationReference.js +142 -181
- package/dist/es/models/dataprotection/v4/config/NutanixObjectsBucket.d.ts +2 -7
- package/dist/es/models/dataprotection/v4/config/NutanixObjectsBucket.js +140 -179
- package/dist/es/models/dataprotection/v4/config/ObjectStorageType.js +7 -9
- package/dist/es/models/dataprotection/v4/config/OperationType.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/OperationType.js +251 -0
- package/dist/es/models/dataprotection/v4/config/PhaseSummary.d.ts +33 -0
- package/dist/es/models/dataprotection/v4/config/PhaseSummary.js +274 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedEntityType.js +7 -9
- package/dist/es/models/dataprotection/v4/config/ProtectedResource.d.ts +7 -75
- package/dist/es/models/dataprotection/v4/config/ProtectedResource.js +309 -371
- package/dist/es/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.d.ts +2 -43
- package/dist/es/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.js +187 -242
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceReplicationStatus.js +10 -12
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.d.ts +2 -43
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.js +187 -242
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.d.ts +10 -16
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.js +172 -213
- package/dist/es/models/dataprotection/v4/config/RecoveryInfo.d.ts +2 -13
- package/dist/es/models/dataprotection/v4/config/RecoveryInfo.js +150 -193
- package/dist/es/models/dataprotection/v4/config/RecoveryPlanActionType.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPlanActionType.js +95 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPlanJob.d.ts +166 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPlanJob.js +738 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPlanJobExecutionStatus.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPlanJobExecutionStatus.js +107 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPlanJobExecutionStep.d.ts +132 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPlanJobExecutionStep.js +624 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPlanJobExecutionStepProjection.d.ts +10 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPlanJobExecutionStepProjection.js +129 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPlanJobPhaseType.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPlanJobPhaseType.js +89 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPlanJobProjection.d.ts +10 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPlanJobProjection.js +128 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPlanValidationError.d.ts +32 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPlanValidationError.js +322 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPlanValidationErrorProjection.d.ts +10 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPlanValidationErrorProjection.js +126 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPoint.d.ts +34 -96
- package/dist/es/models/dataprotection/v4/config/RecoveryPoint.js +348 -323
- package/dist/es/models/dataprotection/v4/config/RecoveryPointProjection.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/RecoveryPointProjection.js +75 -103
- package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.d.ts +2 -43
- package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.js +187 -242
- package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicationSpec.d.ts +5 -11
- package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicationSpec.js +172 -213
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRepository.d.ts +1 -18
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRepository.js +197 -247
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRepositoryProjection.d.ts +1 -1
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRepositoryProjection.js +73 -102
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRestorationSpec.d.ts +8 -31
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRestorationSpec.js +222 -273
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.d.ts +2 -43
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.js +187 -242
- package/dist/es/models/dataprotection/v4/config/RecycleBinEntry.d.ts +77 -0
- package/dist/es/models/dataprotection/v4/config/RecycleBinEntry.js +405 -0
- package/dist/es/models/dataprotection/v4/config/RecycleBinVm.d.ts +44 -0
- package/dist/es/models/dataprotection/v4/config/RecycleBinVm.js +352 -0
- package/dist/es/models/dataprotection/v4/config/RecycleBinVmProjection.d.ts +10 -0
- package/dist/es/models/dataprotection/v4/config/RecycleBinVmProjection.js +124 -0
- package/dist/es/models/dataprotection/v4/config/RecycleBinVolumeGroup.d.ts +44 -0
- package/dist/es/models/dataprotection/v4/config/RecycleBinVolumeGroup.js +352 -0
- package/dist/es/models/dataprotection/v4/config/RecycleBinVolumeGroupProjection.d.ts +10 -0
- package/dist/es/models/dataprotection/v4/config/RecycleBinVolumeGroupProjection.js +124 -0
- package/dist/es/models/dataprotection/v4/config/ReplicationState.d.ts +2 -16
- package/dist/es/models/dataprotection/v4/config/ReplicationState.js +222 -267
- package/dist/es/models/dataprotection/v4/config/RestorableTimeRange.d.ts +2 -8
- package/dist/es/models/dataprotection/v4/config/RestorableTimeRange.js +167 -208
- package/dist/es/models/dataprotection/v4/config/RootCauseAnalysis.d.ts +69 -0
- package/dist/es/models/dataprotection/v4/config/RootCauseAnalysis.js +329 -0
- package/dist/es/models/dataprotection/v4/config/Severity.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/Severity.js +83 -0
- package/dist/es/models/dataprotection/v4/config/SiteProtectionInfo.d.ts +2 -26
- package/dist/es/models/dataprotection/v4/config/SiteProtectionInfo.js +185 -228
- package/dist/es/models/dataprotection/v4/config/SiteReference.d.ts +2 -8
- package/dist/es/models/dataprotection/v4/config/SiteReference.js +171 -212
- package/dist/es/models/dataprotection/v4/config/StageSummary.d.ts +22 -0
- package/dist/es/models/dataprotection/v4/config/StageSummary.js +230 -0
- package/dist/es/models/dataprotection/v4/config/Summary.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/Summary.js +277 -0
- package/dist/es/models/dataprotection/v4/config/SynchronousReplicationRole.js +11 -13
- package/dist/es/models/dataprotection/v4/config/UpdateConsistencyGroupApiResponse.d.ts +2 -43
- package/dist/es/models/dataprotection/v4/config/UpdateConsistencyGroupApiResponse.js +209 -264
- package/dist/es/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.d.ts +2 -43
- package/dist/es/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.js +187 -242
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPoint.d.ts +12 -1
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPoint.js +291 -102
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.d.ts +26 -7
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.js +232 -181
- package/dist/es/models/dataprotection/v4/config/VolumeGroupOverrideSpec.d.ts +2 -7
- package/dist/es/models/dataprotection/v4/config/VolumeGroupOverrideSpec.js +143 -182
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.d.ts +18 -32
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.js +284 -307
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.d.ts +2 -13
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.js +166 -207
- package/dist/es/models/dataprotection/v4/config/VolumeGroupSyncContext.d.ts +1 -29
- package/dist/es/models/dataprotection/v4/config/VolumeGroupSyncContext.js +149 -193
- package/dist/es/models/dataprotection/v4/config/Witness.d.ts +1 -34
- package/dist/es/models/dataprotection/v4/config/Witness.js +227 -279
- package/dist/es/models/dataprotection/v4/config/WitnessAvailabilityStatus.js +7 -9
- package/dist/es/models/dataprotection/v4/content/BaseRecoveryPointSpec.d.ts +2 -8
- package/dist/es/models/dataprotection/v4/content/BaseRecoveryPointSpec.js +171 -212
- package/dist/es/models/dataprotection/v4/content/ChangedRegion.d.ts +2 -9
- package/dist/es/models/dataprotection/v4/content/ChangedRegion.js +189 -232
- package/dist/es/models/dataprotection/v4/content/ChangedVmRegionsApiResponse.d.ts +2 -43
- package/dist/es/models/dataprotection/v4/content/ChangedVmRegionsApiResponse.js +209 -264
- package/dist/es/models/dataprotection/v4/content/ChangedVolumeGroupRegionsApiResponse.d.ts +2 -43
- package/dist/es/models/dataprotection/v4/content/ChangedVolumeGroupRegionsApiResponse.js +209 -264
- package/dist/es/models/dataprotection/v4/content/ClusterDiscoverOperation.js +9 -11
- package/dist/es/models/dataprotection/v4/content/ClusterDiscoverSpec.d.ts +3 -9
- package/dist/es/models/dataprotection/v4/content/ClusterDiscoverSpec.js +180 -225
- package/dist/es/models/dataprotection/v4/content/ComputeChangedRegionsClusterDiscoverSpec.d.ts +11 -17
- package/dist/es/models/dataprotection/v4/content/ComputeChangedRegionsClusterDiscoverSpec.js +201 -250
- package/dist/es/models/dataprotection/v4/content/DiskRecoveryPointReference.d.ts +2 -8
- package/dist/es/models/dataprotection/v4/content/DiskRecoveryPointReference.js +172 -213
- package/dist/es/models/dataprotection/v4/content/FileWrapper.d.ts +36 -0
- package/dist/es/models/dataprotection/v4/content/FileWrapper.js +200 -0
- package/dist/es/models/dataprotection/v4/content/GetVssMetadataApiResponse.d.ts +8 -48
- package/dist/es/models/dataprotection/v4/content/GetVssMetadataApiResponse.js +188 -242
- package/dist/es/models/dataprotection/v4/content/GetVssMetadataClusterDiscoverSpec.d.ts +3 -8
- package/dist/es/models/dataprotection/v4/content/GetVssMetadataClusterDiscoverSpec.js +143 -182
- package/dist/es/models/dataprotection/v4/content/RegionType.js +7 -9
- package/dist/es/models/dataprotection/v4/content/VmDiskRecoveryPointClusterDiscoverSpec.d.ts +1 -9
- package/dist/es/models/dataprotection/v4/content/VmDiskRecoveryPointClusterDiscoverSpec.js +130 -169
- package/dist/es/models/dataprotection/v4/content/VmDiskRecoveryPointReference.d.ts +1 -9
- package/dist/es/models/dataprotection/v4/content/VmDiskRecoveryPointReference.js +131 -170
- package/dist/es/models/dataprotection/v4/content/VmRecoveryPointChangedRegionsComputeSpec.d.ts +10 -21
- package/dist/es/models/dataprotection/v4/content/VmRecoveryPointChangedRegionsComputeSpec.js +192 -233
- package/dist/es/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointClusterDiscoverSpec.d.ts +4 -12
- package/dist/es/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointClusterDiscoverSpec.js +131 -170
- package/dist/es/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointReference.d.ts +4 -12
- package/dist/es/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointReference.js +132 -171
- package/dist/es/models/dataprotection/v4/content/VolumeGroupRecoveryPointChangedRegionsComputeSpec.d.ts +10 -21
- package/dist/es/models/dataprotection/v4/content/VolumeGroupRecoveryPointChangedRegionsComputeSpec.js +193 -234
- package/dist/es/models/dataprotection/v4/error/AppMessage.d.ts +5 -15
- package/dist/es/models/dataprotection/v4/error/AppMessage.js +265 -314
- package/dist/es/models/dataprotection/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/es/models/dataprotection/v4/error/ErrorResponse.js +192 -224
- package/dist/es/models/dataprotection/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/es/models/dataprotection/v4/error/SchemaValidationError.js +249 -300
- package/dist/es/models/dataprotection/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/es/models/dataprotection/v4/error/SchemaValidationErrorMessage.js +191 -234
- package/dist/es/models/dataprotection/v4/operations/BaseRecoveryPlanActionSpec.d.ts +73 -0
- package/dist/es/models/dataprotection/v4/operations/BaseRecoveryPlanActionSpec.js +297 -0
- package/dist/es/models/dataprotection/v4/{config/MigrateConsistencyGroupApiResponse.d.ts → operations/CleanupRecoveryPlanResourcesApiResponse.d.ts} +9 -50
- package/dist/es/models/dataprotection/v4/operations/CleanupRecoveryPlanResourcesApiResponse.js +288 -0
- package/dist/es/models/dataprotection/v4/operations/PlannedFailoverRecoveryPlanApiResponse.d.ts +58 -0
- package/dist/es/models/dataprotection/v4/operations/PlannedFailoverRecoveryPlanApiResponse.js +288 -0
- package/dist/es/models/dataprotection/v4/operations/PlannedFailoverSpec.d.ts +37 -0
- package/dist/es/models/dataprotection/v4/operations/PlannedFailoverSpec.js +274 -0
- package/dist/es/models/dataprotection/v4/{config/SynchronousReplicaPromoteApiResponse.d.ts → operations/TestFailoverRecoveryPlanApiResponse.d.ts} +9 -50
- package/dist/es/models/dataprotection/v4/operations/TestFailoverRecoveryPlanApiResponse.js +288 -0
- package/dist/es/models/dataprotection/v4/operations/TestFailoverSpec.d.ts +26 -0
- package/dist/es/models/dataprotection/v4/operations/TestFailoverSpec.js +237 -0
- package/dist/es/models/dataprotection/v4/operations/UnplannedFailoverRecoveryPlanApiResponse.d.ts +58 -0
- package/dist/es/models/dataprotection/v4/operations/UnplannedFailoverRecoveryPlanApiResponse.js +288 -0
- package/dist/es/models/dataprotection/v4/operations/UnplannedFailoverSpec.d.ts +37 -0
- package/dist/es/models/dataprotection/v4/operations/UnplannedFailoverSpec.js +274 -0
- package/dist/es/models/dataprotection/v4/operations/ValidateRecoveryPlanApiResponse.d.ts +58 -0
- package/dist/es/models/dataprotection/v4/operations/ValidateRecoveryPlanApiResponse.js +288 -0
- package/dist/es/models/dataprotection/v4/operations/ValidateSpec.d.ts +24 -0
- package/dist/es/models/dataprotection/v4/operations/ValidateSpec.js +129 -0
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +5 -10
- package/dist/es/models/prism/v4/config/TaskReference.js +151 -186
- package/dist/es/models/validation/ValidationError.js +26 -42
- package/dist/es/models/validation/ValidationScopes.js +3 -3
- package/dist/es/models/vmm/v4/ahv/config/CategoryReference.d.ts +47 -0
- package/dist/es/models/vmm/v4/ahv/config/CategoryReference.js +238 -0
- package/dist/es/models/vmm/v4/ahv/config/GuestStaticIpSpec.d.ts +57 -0
- package/dist/es/models/vmm/v4/ahv/config/GuestStaticIpSpec.js +277 -0
- package/dist/es/models/vmm/v4/ahv/config/OwnerReference.d.ts +47 -0
- package/dist/es/models/vmm/v4/ahv/config/OwnerReference.js +238 -0
- package/dist/es/models/vmm/v4/ahv/config/OwnershipInfo.d.ts +46 -0
- package/dist/es/models/vmm/v4/ahv/config/OwnershipInfo.js +233 -0
- package/dist/es/models/vmm/v4/ahv/config/SubnetReference.d.ts +47 -0
- package/dist/es/models/vmm/v4/ahv/config/SubnetReference.js +238 -0
- package/dist/es/models/vmm/v4/ahv/config/VmConfigOverrideSpecification.d.ts +100 -0
- package/dist/es/models/vmm/v4/ahv/config/VmConfigOverrideSpecification.js +422 -0
- package/dist/es/models/vmm/v4/ahv/config/VmRestoreGuestNicInfoOverrideSpec.d.ts +48 -0
- package/dist/es/models/vmm/v4/ahv/config/VmRestoreGuestNicInfoOverrideSpec.js +245 -0
- package/dist/es/models/vmm/v4/ahv/config/VmRestoreGuestToolsSpecification.d.ts +47 -0
- package/dist/es/models/vmm/v4/ahv/config/VmRestoreGuestToolsSpecification.js +236 -0
- package/dist/es/models/vmm/v4/ahv/config/VmRestoreIpv4ConfigOverrideSpec.d.ts +57 -0
- package/dist/es/models/vmm/v4/ahv/config/VmRestoreIpv4ConfigOverrideSpec.js +278 -0
- package/dist/es/models/vmm/v4/ahv/config/VmRestoreNicConfigOverrideParams.d.ts +91 -0
- package/dist/es/models/vmm/v4/ahv/config/VmRestoreNicConfigOverrideParams.js +374 -0
- package/dist/es/models/vmm/v4/ahv/config/VmRestoreNicConfigSpecification.d.ts +59 -0
- package/dist/es/models/vmm/v4/ahv/config/VmRestoreNicConfigSpecification.js +289 -0
- package/dist/es/models/vmm/v4/ahv/config/VmRestoreVirtualEthernetNicNetworkInfoOverrideSpec.d.ts +56 -0
- package/dist/es/models/vmm/v4/ahv/config/VmRestoreVirtualEthernetNicNetworkInfoOverrideSpec.js +269 -0
- package/dist/es/models/vmm/v4/ahv/config/VmRestoreVirtualEthernetNicOverrideSpec.d.ts +47 -0
- package/dist/es/models/vmm/v4/ahv/config/VmRestoreVirtualEthernetNicOverrideSpec.js +238 -0
- package/dist/es/utils/ValidationUtils.js +39 -69
- package/dist/lib/ApiClient.d.ts +35 -7
- package/dist/lib/ApiClient.js +862 -684
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +144 -183
- package/dist/lib/apis/consistencygroups-endpoints.d.ts +84 -0
- package/dist/lib/apis/consistencygroups-endpoints.js +267 -0
- package/dist/lib/apis/dataprotectionclustercapabilities-endpoints.d.ts +46 -0
- package/dist/lib/apis/dataprotectionclustercapabilities-endpoints.js +107 -0
- package/dist/lib/apis/protectedresources-endpoints.d.ts +7 -7
- package/dist/lib/apis/protectedresources-endpoints.js +129 -147
- package/dist/lib/apis/recoveryplanactions-endpoints.d.ts +76 -0
- package/dist/lib/apis/recoveryplanactions-endpoints.js +282 -0
- package/dist/lib/apis/recoveryplanjobs-endpoints.d.ts +108 -0
- package/dist/lib/apis/recoveryplanjobs-endpoints.js +291 -0
- package/dist/lib/apis/recoverypoints-endpoints.d.ts +7 -27
- package/dist/lib/apis/recoverypoints-endpoints.js +530 -571
- package/dist/lib/index.d.ts +149 -7
- package/dist/lib/index.js +883 -315
- package/dist/lib/models/common/v1/config/EntityReference.d.ts +79 -0
- package/dist/lib/models/common/v1/config/EntityReference.js +355 -0
- package/dist/lib/models/common/v1/config/EntityType.d.ts +19 -0
- package/dist/lib/models/common/v1/config/EntityType.js +239 -0
- package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
- package/dist/lib/models/common/v1/config/Flag.js +170 -211
- package/dist/lib/models/common/v1/config/IPAddress.d.ts +2 -20
- package/dist/lib/models/common/v1/config/IPAddress.js +170 -217
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +2 -8
- package/dist/lib/models/common/v1/config/IPv4Address.js +174 -215
- package/dist/lib/models/common/v1/config/IPv6Address.d.ts +2 -8
- package/dist/lib/models/common/v1/config/IPv6Address.js +174 -215
- package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
- package/dist/lib/models/common/v1/config/KVPair.js +225 -270
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
- package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
- package/dist/lib/models/common/v1/config/Message.js +213 -258
- package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +5 -10
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +138 -178
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
- package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +155 -203
- package/dist/lib/models/dataprotection/v4/common/BackupType.js +7 -9
- package/dist/lib/models/dataprotection/v4/common/BaseRecoveryPoint.d.ts +12 -21
- package/dist/lib/models/dataprotection/v4/common/BaseRecoveryPoint.js +281 -302
- package/dist/lib/models/dataprotection/v4/common/BaseVmRecoveryPoint.d.ts +1 -32
- package/dist/lib/models/dataprotection/v4/common/BaseVmRecoveryPoint.js +295 -336
- package/dist/lib/models/dataprotection/v4/common/ClusterInfo.d.ts +5 -29
- package/dist/lib/models/dataprotection/v4/common/ClusterInfo.js +166 -207
- package/dist/lib/models/dataprotection/v4/common/DiskRecoveryPoint.d.ts +2 -8
- package/dist/lib/models/dataprotection/v4/common/DiskRecoveryPoint.js +163 -206
- package/dist/lib/models/dataprotection/v4/common/RecoveryPointStatus.js +7 -9
- package/dist/lib/models/dataprotection/v4/common/RecoveryPointType.js +7 -9
- package/dist/lib/models/dataprotection/v4/common/VssProperties.d.ts +2 -10
- package/dist/lib/models/dataprotection/v4/common/VssProperties.js +222 -267
- package/dist/lib/models/dataprotection/v4/config/AhvVmOverrideSpec.d.ts +4 -46
- package/dist/lib/models/dataprotection/v4/config/AhvVmOverrideSpec.js +72 -226
- package/dist/lib/models/dataprotection/v4/config/AmazonS3Bucket.d.ts +2 -8
- package/dist/lib/models/dataprotection/v4/config/AmazonS3Bucket.js +171 -212
- package/dist/lib/models/dataprotection/v4/config/AzureBlobStorageContainer.d.ts +2 -8
- package/dist/lib/models/dataprotection/v4/config/AzureBlobStorageContainer.js +171 -212
- package/dist/lib/models/dataprotection/v4/config/Capability.d.ts +71 -0
- package/dist/lib/models/dataprotection/v4/config/Capability.js +279 -0
- package/dist/lib/models/dataprotection/v4/config/ClusterInfoApiResponse.d.ts +2 -43
- package/dist/lib/models/dataprotection/v4/config/ClusterInfoApiResponse.js +187 -242
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroup.d.ts +1 -26
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroup.js +247 -303
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMember.d.ts +2 -8
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMember.js +166 -207
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMemberType.js +7 -9
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.d.ts +2 -8
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.js +171 -212
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupProjection.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupProjection.js +74 -103
- package/dist/lib/models/dataprotection/v4/config/CreateConsistencyGroupApiResponse.d.ts +2 -43
- package/dist/lib/models/dataprotection/v4/config/CreateConsistencyGroupApiResponse.js +187 -242
- package/dist/lib/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.d.ts +2 -43
- package/dist/lib/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.js +187 -242
- package/dist/lib/models/dataprotection/v4/config/CreationTimeRange.d.ts +58 -0
- package/dist/lib/models/dataprotection/v4/config/CreationTimeRange.js +272 -0
- package/dist/lib/models/dataprotection/v4/config/DataProtectionCapabilityName.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/DataProtectionCapabilityName.js +77 -0
- package/dist/lib/models/dataprotection/v4/config/DataProtectionClusterCapability.d.ts +34 -0
- package/dist/lib/models/dataprotection/v4/config/DataProtectionClusterCapability.js +277 -0
- package/dist/lib/models/dataprotection/v4/config/DataProtectionClusterCapabilityProjection.d.ts +10 -0
- package/dist/lib/models/dataprotection/v4/config/DataProtectionClusterCapabilityProjection.js +124 -0
- package/dist/lib/models/dataprotection/v4/config/DataProtectionSiteReference.d.ts +12 -18
- package/dist/lib/models/dataprotection/v4/config/DataProtectionSiteReference.js +178 -219
- package/dist/lib/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.d.ts +2 -43
- package/dist/lib/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.js +190 -245
- package/dist/lib/models/dataprotection/v4/config/DeleteRecoveryPlanJobApiResponse.d.ts +58 -0
- package/dist/lib/models/dataprotection/v4/config/DeleteRecoveryPlanJobApiResponse.js +288 -0
- package/dist/lib/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.d.ts +2 -43
- package/dist/lib/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.js +187 -242
- package/dist/lib/models/dataprotection/v4/config/DisasterRecoveryLocation.d.ts +72 -0
- package/dist/lib/models/dataprotection/v4/config/DisasterRecoveryLocation.js +292 -0
- package/dist/lib/models/dataprotection/v4/config/EntityRecoveryResult.d.ts +79 -0
- package/dist/lib/models/dataprotection/v4/config/EntityRecoveryResult.js +352 -0
- package/dist/lib/models/dataprotection/v4/config/{IpAddress.d.ts → EntityReference.d.ts} +21 -26
- package/dist/lib/models/dataprotection/v4/config/EntityReference.js +243 -0
- package/dist/lib/models/dataprotection/v4/config/ErrorGroup.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/ErrorGroup.js +113 -0
- package/dist/lib/models/dataprotection/v4/config/ErrorMessage.d.ts +53 -0
- package/dist/lib/models/dataprotection/v4/config/ErrorMessage.js +335 -0
- package/dist/lib/models/dataprotection/v4/config/EsxiVmOverrideSpec.d.ts +2 -7
- package/dist/lib/models/dataprotection/v4/config/EsxiVmOverrideSpec.js +146 -183
- package/dist/lib/models/dataprotection/v4/config/ExecutionStepEntityReference.d.ts +68 -0
- package/dist/lib/models/dataprotection/v4/config/ExecutionStepEntityReference.js +311 -0
- package/dist/lib/models/dataprotection/v4/config/ExecutionStepEntityType.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/ExecutionStepEntityType.js +143 -0
- package/dist/lib/models/dataprotection/v4/config/ExecutionStepResult.d.ts +58 -0
- package/dist/lib/models/dataprotection/v4/config/ExecutionStepResult.js +253 -0
- package/dist/lib/models/dataprotection/v4/config/ExpirationTimeSpec.d.ts +7 -12
- package/dist/lib/models/dataprotection/v4/config/ExpirationTimeSpec.js +143 -182
- package/dist/lib/models/dataprotection/v4/config/FailoverDirection.d.ts +90 -0
- package/dist/lib/models/dataprotection/v4/config/FailoverDirection.js +354 -0
- package/dist/lib/models/dataprotection/v4/config/ForceDeleteAllRecoveryPointsSpec.d.ts +55 -0
- package/dist/lib/models/dataprotection/v4/config/ForceDeleteAllRecoveryPointsSpec.js +274 -0
- package/dist/lib/models/dataprotection/v4/config/GetConsistencyGroupApiResponse.d.ts +58 -0
- package/dist/lib/models/dataprotection/v4/config/GetConsistencyGroupApiResponse.js +288 -0
- package/dist/lib/models/dataprotection/v4/config/GetProtectedResourceApiResponse.d.ts +3 -44
- package/dist/lib/models/dataprotection/v4/config/GetProtectedResourceApiResponse.js +187 -242
- package/dist/lib/models/dataprotection/v4/config/GetRecoveryPlanJobApiResponse.d.ts +58 -0
- package/dist/lib/models/dataprotection/v4/config/GetRecoveryPlanJobApiResponse.js +288 -0
- package/dist/lib/models/dataprotection/v4/config/GetRecoveryPointApiResponse.d.ts +2 -43
- package/dist/lib/models/dataprotection/v4/config/GetRecoveryPointApiResponse.js +187 -242
- package/dist/lib/models/dataprotection/v4/config/GetVmRecoveryPointApiResponse.d.ts +2 -45
- package/dist/lib/models/dataprotection/v4/config/GetVmRecoveryPointApiResponse.js +187 -242
- package/dist/lib/models/dataprotection/v4/config/HostReference.d.ts +1 -17
- package/dist/lib/models/dataprotection/v4/config/HostReference.js +154 -198
- package/dist/lib/models/dataprotection/v4/config/HostType.js +7 -9
- package/dist/lib/models/dataprotection/v4/config/HypervisorType.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/HypervisorType.js +83 -0
- package/dist/lib/models/dataprotection/v4/config/ListConsistencyGroupsApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/ListConsistencyGroupsApiResponse.js +315 -0
- package/dist/lib/models/dataprotection/v4/config/ListDPClusterCapabilitiesApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/ListDPClusterCapabilitiesApiResponse.js +315 -0
- package/dist/lib/models/dataprotection/v4/config/ListRecoveryPlanJobExecutionStepsApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/ListRecoveryPlanJobExecutionStepsApiResponse.js +315 -0
- package/dist/lib/models/dataprotection/v4/config/ListRecoveryPlanJobValidationErrorsApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/ListRecoveryPlanJobValidationErrorsApiResponse.js +315 -0
- package/dist/lib/models/dataprotection/v4/config/ListRecoveryPlanJobsApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/ListRecoveryPlanJobsApiResponse.js +315 -0
- package/dist/lib/models/dataprotection/v4/config/ListRecoveryPointsApiResponse.d.ts +2 -43
- package/dist/lib/models/dataprotection/v4/config/ListRecoveryPointsApiResponse.js +213 -268
- package/dist/lib/models/dataprotection/v4/config/LocationReference.d.ts +2 -7
- package/dist/lib/models/dataprotection/v4/config/LocationReference.js +142 -181
- package/dist/lib/models/dataprotection/v4/config/NutanixObjectsBucket.d.ts +2 -7
- package/dist/lib/models/dataprotection/v4/config/NutanixObjectsBucket.js +140 -179
- package/dist/lib/models/dataprotection/v4/config/ObjectStorageType.js +7 -9
- package/dist/lib/models/dataprotection/v4/config/OperationType.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/OperationType.js +251 -0
- package/dist/lib/models/dataprotection/v4/config/PhaseSummary.d.ts +33 -0
- package/dist/lib/models/dataprotection/v4/config/PhaseSummary.js +274 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedEntityType.js +7 -9
- package/dist/lib/models/dataprotection/v4/config/ProtectedResource.d.ts +7 -75
- package/dist/lib/models/dataprotection/v4/config/ProtectedResource.js +309 -371
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.d.ts +2 -43
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.js +187 -242
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceReplicationStatus.js +10 -12
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.d.ts +2 -43
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.js +187 -242
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.d.ts +10 -16
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.js +172 -213
- package/dist/lib/models/dataprotection/v4/config/RecoveryInfo.d.ts +2 -13
- package/dist/lib/models/dataprotection/v4/config/RecoveryInfo.js +150 -193
- package/dist/lib/models/dataprotection/v4/config/RecoveryPlanActionType.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPlanActionType.js +95 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPlanJob.d.ts +166 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPlanJob.js +738 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPlanJobExecutionStatus.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPlanJobExecutionStatus.js +107 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPlanJobExecutionStep.d.ts +132 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPlanJobExecutionStep.js +624 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPlanJobExecutionStepProjection.d.ts +10 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPlanJobExecutionStepProjection.js +129 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPlanJobPhaseType.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPlanJobPhaseType.js +89 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPlanJobProjection.d.ts +10 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPlanJobProjection.js +128 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPlanValidationError.d.ts +32 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPlanValidationError.js +322 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPlanValidationErrorProjection.d.ts +10 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPlanValidationErrorProjection.js +126 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPoint.d.ts +34 -96
- package/dist/lib/models/dataprotection/v4/config/RecoveryPoint.js +348 -323
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointProjection.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointProjection.js +75 -103
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.d.ts +2 -43
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.js +187 -242
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicationSpec.d.ts +5 -11
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicationSpec.js +172 -213
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRepository.d.ts +1 -18
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRepository.js +197 -247
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRepositoryProjection.d.ts +1 -1
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRepositoryProjection.js +73 -102
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestorationSpec.d.ts +8 -31
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestorationSpec.js +222 -273
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.d.ts +2 -43
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.js +187 -242
- package/dist/lib/models/dataprotection/v4/config/RecycleBinEntry.d.ts +77 -0
- package/dist/lib/models/dataprotection/v4/config/RecycleBinEntry.js +405 -0
- package/dist/lib/models/dataprotection/v4/config/RecycleBinVm.d.ts +44 -0
- package/dist/lib/models/dataprotection/v4/config/RecycleBinVm.js +352 -0
- package/dist/lib/models/dataprotection/v4/config/RecycleBinVmProjection.d.ts +10 -0
- package/dist/lib/models/dataprotection/v4/config/RecycleBinVmProjection.js +124 -0
- package/dist/lib/models/dataprotection/v4/config/RecycleBinVolumeGroup.d.ts +44 -0
- package/dist/lib/models/dataprotection/v4/config/RecycleBinVolumeGroup.js +352 -0
- package/dist/lib/models/dataprotection/v4/config/RecycleBinVolumeGroupProjection.d.ts +10 -0
- package/dist/lib/models/dataprotection/v4/config/RecycleBinVolumeGroupProjection.js +124 -0
- package/dist/lib/models/dataprotection/v4/config/ReplicationState.d.ts +2 -16
- package/dist/lib/models/dataprotection/v4/config/ReplicationState.js +222 -267
- package/dist/lib/models/dataprotection/v4/config/RestorableTimeRange.d.ts +2 -8
- package/dist/lib/models/dataprotection/v4/config/RestorableTimeRange.js +167 -208
- package/dist/lib/models/dataprotection/v4/config/RootCauseAnalysis.d.ts +69 -0
- package/dist/lib/models/dataprotection/v4/config/RootCauseAnalysis.js +329 -0
- package/dist/lib/models/dataprotection/v4/config/Severity.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/Severity.js +83 -0
- package/dist/lib/models/dataprotection/v4/config/SiteProtectionInfo.d.ts +2 -26
- package/dist/lib/models/dataprotection/v4/config/SiteProtectionInfo.js +185 -228
- package/dist/lib/models/dataprotection/v4/config/SiteReference.d.ts +2 -8
- package/dist/lib/models/dataprotection/v4/config/SiteReference.js +171 -212
- package/dist/lib/models/dataprotection/v4/config/StageSummary.d.ts +22 -0
- package/dist/lib/models/dataprotection/v4/config/StageSummary.js +230 -0
- package/dist/lib/models/dataprotection/v4/config/Summary.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/Summary.js +277 -0
- package/dist/lib/models/dataprotection/v4/config/SynchronousReplicationRole.js +11 -13
- package/dist/lib/models/dataprotection/v4/config/UpdateConsistencyGroupApiResponse.d.ts +2 -43
- package/dist/lib/models/dataprotection/v4/config/UpdateConsistencyGroupApiResponse.js +209 -264
- package/dist/lib/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.d.ts +2 -43
- package/dist/lib/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.js +187 -242
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPoint.d.ts +12 -1
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPoint.js +291 -102
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.d.ts +26 -7
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.js +232 -181
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupOverrideSpec.d.ts +2 -7
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupOverrideSpec.js +143 -182
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.d.ts +18 -32
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.js +284 -307
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.d.ts +2 -13
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.js +166 -207
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupSyncContext.d.ts +1 -29
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupSyncContext.js +149 -193
- package/dist/lib/models/dataprotection/v4/config/Witness.d.ts +1 -34
- package/dist/lib/models/dataprotection/v4/config/Witness.js +227 -279
- package/dist/lib/models/dataprotection/v4/config/WitnessAvailabilityStatus.js +7 -9
- package/dist/lib/models/dataprotection/v4/content/BaseRecoveryPointSpec.d.ts +2 -8
- package/dist/lib/models/dataprotection/v4/content/BaseRecoveryPointSpec.js +171 -212
- package/dist/lib/models/dataprotection/v4/content/ChangedRegion.d.ts +2 -9
- package/dist/lib/models/dataprotection/v4/content/ChangedRegion.js +189 -232
- package/dist/lib/models/dataprotection/v4/content/ChangedVmRegionsApiResponse.d.ts +2 -43
- package/dist/lib/models/dataprotection/v4/content/ChangedVmRegionsApiResponse.js +209 -264
- package/dist/lib/models/dataprotection/v4/content/ChangedVolumeGroupRegionsApiResponse.d.ts +2 -43
- package/dist/lib/models/dataprotection/v4/content/ChangedVolumeGroupRegionsApiResponse.js +209 -264
- package/dist/lib/models/dataprotection/v4/content/ClusterDiscoverOperation.js +9 -11
- package/dist/lib/models/dataprotection/v4/content/ClusterDiscoverSpec.d.ts +3 -9
- package/dist/lib/models/dataprotection/v4/content/ClusterDiscoverSpec.js +180 -225
- package/dist/lib/models/dataprotection/v4/content/ComputeChangedRegionsClusterDiscoverSpec.d.ts +11 -17
- package/dist/lib/models/dataprotection/v4/content/ComputeChangedRegionsClusterDiscoverSpec.js +201 -250
- package/dist/lib/models/dataprotection/v4/content/DiskRecoveryPointReference.d.ts +2 -8
- package/dist/lib/models/dataprotection/v4/content/DiskRecoveryPointReference.js +172 -213
- package/dist/lib/models/dataprotection/v4/content/FileWrapper.d.ts +36 -0
- package/dist/lib/models/dataprotection/v4/content/FileWrapper.js +200 -0
- package/dist/lib/models/dataprotection/v4/content/GetVssMetadataApiResponse.d.ts +8 -48
- package/dist/lib/models/dataprotection/v4/content/GetVssMetadataApiResponse.js +188 -242
- package/dist/lib/models/dataprotection/v4/content/GetVssMetadataClusterDiscoverSpec.d.ts +3 -8
- package/dist/lib/models/dataprotection/v4/content/GetVssMetadataClusterDiscoverSpec.js +143 -182
- package/dist/lib/models/dataprotection/v4/content/RegionType.js +7 -9
- package/dist/lib/models/dataprotection/v4/content/VmDiskRecoveryPointClusterDiscoverSpec.d.ts +1 -9
- package/dist/lib/models/dataprotection/v4/content/VmDiskRecoveryPointClusterDiscoverSpec.js +130 -169
- package/dist/lib/models/dataprotection/v4/content/VmDiskRecoveryPointReference.d.ts +1 -9
- package/dist/lib/models/dataprotection/v4/content/VmDiskRecoveryPointReference.js +131 -170
- package/dist/lib/models/dataprotection/v4/content/VmRecoveryPointChangedRegionsComputeSpec.d.ts +10 -21
- package/dist/lib/models/dataprotection/v4/content/VmRecoveryPointChangedRegionsComputeSpec.js +192 -233
- package/dist/lib/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointClusterDiscoverSpec.d.ts +4 -12
- package/dist/lib/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointClusterDiscoverSpec.js +131 -170
- package/dist/lib/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointReference.d.ts +4 -12
- package/dist/lib/models/dataprotection/v4/content/VolumeGroupDiskRecoveryPointReference.js +132 -171
- package/dist/lib/models/dataprotection/v4/content/VolumeGroupRecoveryPointChangedRegionsComputeSpec.d.ts +10 -21
- package/dist/lib/models/dataprotection/v4/content/VolumeGroupRecoveryPointChangedRegionsComputeSpec.js +193 -234
- package/dist/lib/models/dataprotection/v4/error/AppMessage.d.ts +5 -15
- package/dist/lib/models/dataprotection/v4/error/AppMessage.js +265 -314
- package/dist/lib/models/dataprotection/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/lib/models/dataprotection/v4/error/ErrorResponse.js +192 -224
- package/dist/lib/models/dataprotection/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/lib/models/dataprotection/v4/error/SchemaValidationError.js +249 -300
- package/dist/lib/models/dataprotection/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/lib/models/dataprotection/v4/error/SchemaValidationErrorMessage.js +191 -234
- package/dist/lib/models/dataprotection/v4/operations/BaseRecoveryPlanActionSpec.d.ts +73 -0
- package/dist/lib/models/dataprotection/v4/operations/BaseRecoveryPlanActionSpec.js +297 -0
- package/dist/lib/models/dataprotection/v4/operations/CleanupRecoveryPlanResourcesApiResponse.d.ts +58 -0
- package/dist/lib/models/dataprotection/v4/operations/CleanupRecoveryPlanResourcesApiResponse.js +288 -0
- package/dist/lib/models/dataprotection/v4/operations/PlannedFailoverRecoveryPlanApiResponse.d.ts +58 -0
- package/dist/lib/models/dataprotection/v4/operations/PlannedFailoverRecoveryPlanApiResponse.js +288 -0
- package/dist/lib/models/dataprotection/v4/operations/PlannedFailoverSpec.d.ts +37 -0
- package/dist/lib/models/dataprotection/v4/operations/PlannedFailoverSpec.js +274 -0
- package/dist/lib/models/dataprotection/v4/{config/SynchronousReplicaPromoteApiResponse.d.ts → operations/TestFailoverRecoveryPlanApiResponse.d.ts} +9 -50
- package/dist/lib/models/dataprotection/v4/operations/TestFailoverRecoveryPlanApiResponse.js +288 -0
- package/dist/lib/models/dataprotection/v4/operations/TestFailoverSpec.d.ts +26 -0
- package/dist/lib/models/dataprotection/v4/operations/TestFailoverSpec.js +237 -0
- package/dist/lib/models/dataprotection/v4/operations/UnplannedFailoverRecoveryPlanApiResponse.d.ts +58 -0
- package/dist/lib/models/dataprotection/v4/operations/UnplannedFailoverRecoveryPlanApiResponse.js +288 -0
- package/dist/lib/models/dataprotection/v4/operations/UnplannedFailoverSpec.d.ts +37 -0
- package/dist/lib/models/dataprotection/v4/operations/UnplannedFailoverSpec.js +274 -0
- package/dist/lib/models/dataprotection/v4/operations/ValidateRecoveryPlanApiResponse.d.ts +58 -0
- package/dist/lib/models/dataprotection/v4/operations/ValidateRecoveryPlanApiResponse.js +288 -0
- package/dist/lib/models/dataprotection/v4/operations/ValidateSpec.d.ts +24 -0
- package/dist/lib/models/dataprotection/v4/operations/ValidateSpec.js +129 -0
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +5 -10
- package/dist/lib/models/prism/v4/config/TaskReference.js +151 -186
- package/dist/lib/models/validation/ValidationError.js +26 -42
- package/dist/lib/models/validation/ValidationScopes.js +3 -3
- package/dist/lib/models/vmm/v4/ahv/config/CategoryReference.d.ts +47 -0
- package/dist/lib/models/vmm/v4/ahv/config/CategoryReference.js +238 -0
- package/dist/lib/models/vmm/v4/ahv/config/GuestStaticIpSpec.d.ts +57 -0
- package/dist/lib/models/vmm/v4/ahv/config/GuestStaticIpSpec.js +277 -0
- package/dist/lib/models/vmm/v4/ahv/config/OwnerReference.d.ts +47 -0
- package/dist/lib/models/vmm/v4/ahv/config/OwnerReference.js +238 -0
- package/dist/lib/models/vmm/v4/ahv/config/OwnershipInfo.d.ts +46 -0
- package/dist/lib/models/vmm/v4/ahv/config/OwnershipInfo.js +233 -0
- package/dist/lib/models/vmm/v4/ahv/config/SubnetReference.d.ts +47 -0
- package/dist/lib/models/vmm/v4/ahv/config/SubnetReference.js +238 -0
- package/dist/lib/models/vmm/v4/ahv/config/VmConfigOverrideSpecification.d.ts +100 -0
- package/dist/lib/models/vmm/v4/ahv/config/VmConfigOverrideSpecification.js +422 -0
- package/dist/lib/models/vmm/v4/ahv/config/VmRestoreGuestNicInfoOverrideSpec.d.ts +48 -0
- package/dist/lib/models/vmm/v4/ahv/config/VmRestoreGuestNicInfoOverrideSpec.js +245 -0
- package/dist/lib/models/vmm/v4/ahv/config/VmRestoreGuestToolsSpecification.d.ts +47 -0
- package/dist/lib/models/vmm/v4/ahv/config/VmRestoreGuestToolsSpecification.js +236 -0
- package/dist/lib/models/vmm/v4/ahv/config/VmRestoreIpv4ConfigOverrideSpec.d.ts +57 -0
- package/dist/lib/models/vmm/v4/ahv/config/VmRestoreIpv4ConfigOverrideSpec.js +278 -0
- package/dist/lib/models/vmm/v4/ahv/config/VmRestoreNicConfigOverrideParams.d.ts +91 -0
- package/dist/lib/models/vmm/v4/ahv/config/VmRestoreNicConfigOverrideParams.js +374 -0
- package/dist/lib/models/vmm/v4/ahv/config/VmRestoreNicConfigSpecification.d.ts +59 -0
- package/dist/lib/models/vmm/v4/ahv/config/VmRestoreNicConfigSpecification.js +289 -0
- package/dist/lib/models/vmm/v4/ahv/config/VmRestoreVirtualEthernetNicNetworkInfoOverrideSpec.d.ts +56 -0
- package/dist/lib/models/vmm/v4/ahv/config/VmRestoreVirtualEthernetNicNetworkInfoOverrideSpec.js +269 -0
- package/dist/lib/models/vmm/v4/ahv/config/VmRestoreVirtualEthernetNicOverrideSpec.d.ts +47 -0
- package/dist/lib/models/vmm/v4/ahv/config/VmRestoreVirtualEthernetNicOverrideSpec.js +238 -0
- package/dist/lib/utils/ValidationUtils.js +39 -69
- package/package.json +2 -2
- package/dist/es/models/dataprotection/v4/config/IpAddress.js +0 -282
- package/dist/es/models/dataprotection/v4/config/MigrateConsistencyGroupApiResponse.js +0 -343
- package/dist/es/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.js +0 -343
- package/dist/lib/models/dataprotection/v4/config/IpAddress.js +0 -282
- package/dist/lib/models/dataprotection/v4/config/MigrateConsistencyGroupApiResponse.js +0 -343
- package/dist/lib/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.js +0 -343
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The EntityReference model module.
|
|
3
|
+
* @module Ntnx/EntityReference
|
|
4
|
+
* @version 4.2.1
|
|
5
|
+
* @class EntityReference
|
|
6
|
+
*/
|
|
7
|
+
export default class EntityReference {
|
|
8
|
+
/**
|
|
9
|
+
* Constructs a <code>EntityReference</code> from a plain JavaScript object, optionally creating a new instance.
|
|
10
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
11
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
12
|
+
* @param {module:Ntnx/EntityReference} obj Optional instance to populate.
|
|
13
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
14
|
+
* @return {module:Ntnx/EntityReference} The populated <code>EntityReference</code> instance.
|
|
15
|
+
*/
|
|
16
|
+
static constructFromObject(data: any, obj?: any, callFromChild?: boolean): any;
|
|
17
|
+
/**
|
|
18
|
+
* Converts a given snake_case string to camelCase.
|
|
19
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
20
|
+
* @returns {string} - The converted string in camelCase format.
|
|
21
|
+
*/
|
|
22
|
+
static snakeToCamel(snakeStr: string): string;
|
|
23
|
+
$objectType: string;
|
|
24
|
+
/** @type {object<string, any>} */
|
|
25
|
+
$reserved: object;
|
|
26
|
+
/** @type {object<string, any>} */
|
|
27
|
+
$unknownFields: object;
|
|
28
|
+
/**
|
|
29
|
+
* Returns A globally unique identifier of an instance that is suitable for external consumption.
|
|
30
|
+
* @return {string}
|
|
31
|
+
*/
|
|
32
|
+
getExtId(): string;
|
|
33
|
+
/**
|
|
34
|
+
* Sets A globally unique identifier of an instance that is suitable for external consumption.
|
|
35
|
+
* @param {string} extId A globally unique identifier of an instance that is suitable for external consumption.
|
|
36
|
+
*/
|
|
37
|
+
setExtId(extId: string): void;
|
|
38
|
+
extId: string;
|
|
39
|
+
/**
|
|
40
|
+
* Returns Name of the entity represented by this reference.
|
|
41
|
+
* @return {string}
|
|
42
|
+
*/
|
|
43
|
+
getName(): string;
|
|
44
|
+
/**
|
|
45
|
+
* Sets Name of the entity represented by this reference.
|
|
46
|
+
* @param {string} name Name of the entity represented by this reference.
|
|
47
|
+
*/
|
|
48
|
+
setName(name: string): void;
|
|
49
|
+
name: string;
|
|
50
|
+
/**
|
|
51
|
+
* Returns URI of entity represented by this reference.
|
|
52
|
+
* @return {string[]}
|
|
53
|
+
*/
|
|
54
|
+
getUris(): string[];
|
|
55
|
+
/**
|
|
56
|
+
* Sets URI of entity represented by this reference.
|
|
57
|
+
* @param {string[]} uris URI of entity represented by this reference.
|
|
58
|
+
*/
|
|
59
|
+
setUris(uris: string[]): void;
|
|
60
|
+
uris: string[];
|
|
61
|
+
/**
|
|
62
|
+
* @return {EntityType}
|
|
63
|
+
*/
|
|
64
|
+
getEntityType(): EntityType;
|
|
65
|
+
/**
|
|
66
|
+
* @param {EntityType} entityType
|
|
67
|
+
*/
|
|
68
|
+
setEntityType(entityType: EntityType): void;
|
|
69
|
+
entityType: string;
|
|
70
|
+
get$Reserved(): any;
|
|
71
|
+
get$ObjectType(): string;
|
|
72
|
+
get$UnknownFields(): any;
|
|
73
|
+
toJson(forMutation: any): any;
|
|
74
|
+
validate(scope: any, properties: any, ...args: any[]): Promise<any>;
|
|
75
|
+
validateProperty(scope: any, property: any): ValidationError;
|
|
76
|
+
#private;
|
|
77
|
+
}
|
|
78
|
+
import EntityType from "./EntityType";
|
|
79
|
+
import ValidationError from "../../../validation/ValidationError";
|
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _EntityType = _interopRequireDefault(require("./EntityType"));
|
|
8
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
9
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
10
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
13
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
|
|
14
|
+
* Nutanix Data Protection APIs
|
|
15
|
+
*
|
|
16
|
+
* OpenAPI spec version: 4.2.1
|
|
17
|
+
*
|
|
18
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
19
|
+
*
|
|
20
|
+
* Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
|
|
21
|
+
*
|
|
22
|
+
* Do not edit the class manually.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* The EntityReference model module.
|
|
27
|
+
* @module Ntnx/EntityReference
|
|
28
|
+
* @version 4.2.1
|
|
29
|
+
* @class EntityReference
|
|
30
|
+
*/
|
|
31
|
+
var _EntityReference_brand = /*#__PURE__*/new WeakSet();
|
|
32
|
+
class EntityReference {
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a new <code>EntityReference</code>.
|
|
35
|
+
* Represents another entity that has been referenced by this entity.
|
|
36
|
+
* @alias module:Ntnx/EntityReference
|
|
37
|
+
*/
|
|
38
|
+
constructor() {
|
|
39
|
+
/*
|
|
40
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
41
|
+
* @param {Object} obj
|
|
42
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
43
|
+
* Otherwise, just returns the input object.
|
|
44
|
+
*/
|
|
45
|
+
_classPrivateMethodInitSpec(this, _EntityReference_brand);
|
|
46
|
+
this.$objectType = "common.v1.config.EntityReference";
|
|
47
|
+
/** @type {object<string, any>} */
|
|
48
|
+
this.$reserved = {
|
|
49
|
+
'$fv': "v1.r0"
|
|
50
|
+
};
|
|
51
|
+
/** @type {object<string, any>} */
|
|
52
|
+
this.$unknownFields = {};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Constructs a <code>EntityReference</code> from a plain JavaScript object, optionally creating a new instance.
|
|
57
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
58
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
59
|
+
* @param {module:Ntnx/EntityReference} obj Optional instance to populate.
|
|
60
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
61
|
+
* @return {module:Ntnx/EntityReference} The populated <code>EntityReference</code> instance.
|
|
62
|
+
*/
|
|
63
|
+
static constructFromObject(data, obj = null, callFromChild = false) {
|
|
64
|
+
let items, item, i, itemArr, discriminator;
|
|
65
|
+
if (data) {
|
|
66
|
+
obj = obj || new EntityReference();
|
|
67
|
+
if (data.hasOwnProperty('extId') && data.extId !== null && data.extId !== undefined) {
|
|
68
|
+
obj.setExtId(data['extId']);
|
|
69
|
+
}
|
|
70
|
+
if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
|
|
71
|
+
obj.setName(data['name']);
|
|
72
|
+
}
|
|
73
|
+
if (data.hasOwnProperty('uris') && data.uris !== null && data.uris !== undefined) {
|
|
74
|
+
itemArr = [];
|
|
75
|
+
items = data.uris;
|
|
76
|
+
for (i = 0; i < items.length; i++) {
|
|
77
|
+
itemArr.push(items[i]);
|
|
78
|
+
}
|
|
79
|
+
obj.setUris(itemArr);
|
|
80
|
+
}
|
|
81
|
+
if (data.hasOwnProperty('entityType') && data.entityType !== null && data.entityType !== undefined) {
|
|
82
|
+
obj.setEntityType(_EntityType.default.constructFromObject(data['entityType']));
|
|
83
|
+
}
|
|
84
|
+
if (data.hasOwnProperty('$reserved')) {
|
|
85
|
+
obj.$reserved = data['$reserved'];
|
|
86
|
+
}
|
|
87
|
+
if (data.hasOwnProperty('$objectType')) {
|
|
88
|
+
obj.$objectType = data['$objectType'];
|
|
89
|
+
}
|
|
90
|
+
if (data.hasOwnProperty('$unknownFields')) {
|
|
91
|
+
obj.$unknownFields = data['$unknownFields'];
|
|
92
|
+
}
|
|
93
|
+
if (!callFromChild) {
|
|
94
|
+
obj.$unknownFields = {
|
|
95
|
+
...data.$unknownFields
|
|
96
|
+
};
|
|
97
|
+
for (const property in data) {
|
|
98
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
99
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
100
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
101
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
102
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
103
|
+
obj.$unknownFields[property] = data[property];
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return obj;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Converts a given snake_case string to camelCase.
|
|
113
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
114
|
+
* @returns {string} - The converted string in camelCase format.
|
|
115
|
+
*/
|
|
116
|
+
static snakeToCamel(snakeStr) {
|
|
117
|
+
return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Returns A globally unique identifier of an instance that is suitable for external consumption.
|
|
122
|
+
* @return {string}
|
|
123
|
+
*/
|
|
124
|
+
getExtId() {
|
|
125
|
+
return this.extId;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Sets A globally unique identifier of an instance that is suitable for external consumption.
|
|
130
|
+
* @param {string} extId A globally unique identifier of an instance that is suitable for external consumption.
|
|
131
|
+
*/
|
|
132
|
+
setExtId(extId) {
|
|
133
|
+
this.extId = extId;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Returns Name of the entity represented by this reference.
|
|
138
|
+
* @return {string}
|
|
139
|
+
*/
|
|
140
|
+
getName() {
|
|
141
|
+
return this.name;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Sets Name of the entity represented by this reference.
|
|
146
|
+
* @param {string} name Name of the entity represented by this reference.
|
|
147
|
+
*/
|
|
148
|
+
setName(name) {
|
|
149
|
+
this.name = name;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Returns URI of entity represented by this reference.
|
|
154
|
+
* @return {string[]}
|
|
155
|
+
*/
|
|
156
|
+
getUris() {
|
|
157
|
+
return this.uris;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Sets URI of entity represented by this reference.
|
|
162
|
+
* @param {string[]} uris URI of entity represented by this reference.
|
|
163
|
+
*/
|
|
164
|
+
setUris(uris) {
|
|
165
|
+
this.uris = uris;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @return {EntityType}
|
|
170
|
+
*/
|
|
171
|
+
getEntityType() {
|
|
172
|
+
return this.entityType;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @param {EntityType} entityType
|
|
177
|
+
*/
|
|
178
|
+
setEntityType(entityType) {
|
|
179
|
+
this.entityType = entityType;
|
|
180
|
+
}
|
|
181
|
+
get$Reserved() {
|
|
182
|
+
return this.$reserved;
|
|
183
|
+
}
|
|
184
|
+
get$ObjectType() {
|
|
185
|
+
return this.$objectType;
|
|
186
|
+
}
|
|
187
|
+
get$UnknownFields() {
|
|
188
|
+
return this.$unknownFields;
|
|
189
|
+
}
|
|
190
|
+
toJson(forMutation) {
|
|
191
|
+
if (forMutation === false) {
|
|
192
|
+
return {
|
|
193
|
+
...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
194
|
+
'extId': this.getExtId()
|
|
195
|
+
} : {}),
|
|
196
|
+
...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
197
|
+
'name': this.getName()
|
|
198
|
+
} : {}),
|
|
199
|
+
...(typeof this.getUris() !== 'undefined' && this.getUris() !== null ? {
|
|
200
|
+
'uris': this.getUris()
|
|
201
|
+
} : {}),
|
|
202
|
+
...(typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {
|
|
203
|
+
'entityType': this.getEntityType()
|
|
204
|
+
} : {}),
|
|
205
|
+
'$reserved': this.get$Reserved(),
|
|
206
|
+
'$objectType': this.get$ObjectType(),
|
|
207
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
208
|
+
'$unknownFields': {}
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
return {
|
|
212
|
+
...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
213
|
+
'extId': this.getExtId()
|
|
214
|
+
} : {}),
|
|
215
|
+
...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
216
|
+
'name': this.getName()
|
|
217
|
+
} : {}),
|
|
218
|
+
...(typeof this.getUris() !== 'undefined' && this.getUris() !== null ? {
|
|
219
|
+
'uris': this.getUris()
|
|
220
|
+
} : {}),
|
|
221
|
+
...(typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {
|
|
222
|
+
'entityType': this.getEntityType()
|
|
223
|
+
} : {}),
|
|
224
|
+
'$reserved': this.get$Reserved(),
|
|
225
|
+
'$objectType': this.get$ObjectType(),
|
|
226
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
227
|
+
'$unknownFields': {}
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
validate(scope, properties) {
|
|
231
|
+
let propList = [];
|
|
232
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
|
|
233
|
+
//cases validate() and validate(scope)
|
|
234
|
+
propList = [];
|
|
235
|
+
} else if (arguments.length === 1) {
|
|
236
|
+
//case validate(properties)
|
|
237
|
+
propList = arguments[0];
|
|
238
|
+
scope = null;
|
|
239
|
+
} else {
|
|
240
|
+
//case validate(scope, properties)
|
|
241
|
+
propList = arguments[1];
|
|
242
|
+
}
|
|
243
|
+
let res = [];
|
|
244
|
+
let err = null;
|
|
245
|
+
propList.forEach(property => {
|
|
246
|
+
err = this.validateProperty(property, scope);
|
|
247
|
+
if (err) {
|
|
248
|
+
res.push(err);
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
return new Promise(function (resolve, reject) {
|
|
252
|
+
if (res.length !== 0) {
|
|
253
|
+
reject(err);
|
|
254
|
+
} else {
|
|
255
|
+
resolve();
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
validateProperty(scope, property) {
|
|
260
|
+
if (property === "extId") {
|
|
261
|
+
if (typeof this.extId === 'undefined' || this.extId === null) {
|
|
262
|
+
return new _ValidationError.default("extId", "undefined or null");
|
|
263
|
+
}
|
|
264
|
+
if (!_ValidationUtils.default.validatePattern(this.extId, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
|
|
265
|
+
return new _ValidationError.default("extId", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
if (property === "name") {
|
|
269
|
+
if (typeof this.name === 'undefined' || this.name === null) {
|
|
270
|
+
return new _ValidationError.default("name", "undefined or null");
|
|
271
|
+
}
|
|
272
|
+
if (!_ValidationUtils.default.validateMaxLength(this.name, 256)) {
|
|
273
|
+
return new _ValidationError.default("name", "does not satisfy required maxLength constraint: 256");
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
if (property === "uris") {
|
|
277
|
+
if (typeof this.uris === 'undefined' || this.uris === null) {
|
|
278
|
+
return new _ValidationError.default("uris", "undefined or null");
|
|
279
|
+
}
|
|
280
|
+
if (!_ValidationUtils.default.validateMaxItems(this.uris, 100)) {
|
|
281
|
+
return new _ValidationError.default("uris", "does not satisfy required maxItems constraint: 100");
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
if (property === "entityType") {
|
|
285
|
+
if (typeof this.entityType === 'undefined' || this.entityType === null) {
|
|
286
|
+
return new _ValidationError.default("entityType", "undefined or null");
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
if (property === "$reserved") {
|
|
290
|
+
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
291
|
+
return new _ValidationError.default("$reserved", "undefined or null");
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
if (property === "$objectType") {
|
|
295
|
+
if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
|
|
296
|
+
return new _ValidationError.default("$objectType", "undefined or null");
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
if (property === "$unknownFields") {
|
|
300
|
+
if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
|
|
301
|
+
return new _ValidationError.default("$unknownFields", "undefined or null");
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
return new _ValidationError.default(property, "no such property exists");
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* A globally unique identifier of an instance that is suitable for external consumption.
|
|
310
|
+
* @memberof EntityReference
|
|
311
|
+
*/
|
|
312
|
+
exports.default = EntityReference;
|
|
313
|
+
function _toJsonMapType(obj, forMutation) {
|
|
314
|
+
if (obj instanceof Map) {
|
|
315
|
+
return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
|
|
316
|
+
} else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
|
|
317
|
+
return Object.fromEntries(Array.from(Object.entries(obj), entry => {
|
|
318
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
319
|
+
}));
|
|
320
|
+
}
|
|
321
|
+
return obj;
|
|
322
|
+
}
|
|
323
|
+
/*
|
|
324
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
325
|
+
* @param {Object} obj Object to serialize
|
|
326
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
327
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
328
|
+
*/
|
|
329
|
+
function _handleDateType(obj, isDateOnly) {
|
|
330
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
331
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
332
|
+
}
|
|
333
|
+
return obj;
|
|
334
|
+
}
|
|
335
|
+
EntityReference.prototype.extId = undefined;
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Name of the entity represented by this reference.
|
|
339
|
+
* @memberof EntityReference
|
|
340
|
+
*/
|
|
341
|
+
EntityReference.prototype.name = undefined;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* URI of entity represented by this reference.
|
|
345
|
+
* @memberof EntityReference
|
|
346
|
+
*/
|
|
347
|
+
EntityReference.prototype.uris = undefined;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* @memberof EntityReference
|
|
351
|
+
*/
|
|
352
|
+
EntityReference.prototype.entityType = undefined;
|
|
353
|
+
EntityReference.prototype.$reserved = undefined;
|
|
354
|
+
EntityReference.prototype.$objectType = undefined;
|
|
355
|
+
EntityReference.prototype.$unknownFields = undefined;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default EntityType;
|
|
2
|
+
/**
|
|
3
|
+
* *
|
|
4
|
+
*/
|
|
5
|
+
type EntityType = string;
|
|
6
|
+
declare namespace EntityType {
|
|
7
|
+
/**
|
|
8
|
+
* Returns a <code>EntityType</code> enum value from a JavaScript object name.
|
|
9
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
10
|
+
* @return {EntityType} The enum <code>EntityType</code> value.
|
|
11
|
+
*/
|
|
12
|
+
function constructFromObject(obj: any): string;
|
|
13
|
+
/**
|
|
14
|
+
* Validates <code>EntityType</code> enum value.
|
|
15
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
16
|
+
* @return {null} Throws error for invalid value.
|
|
17
|
+
*/
|
|
18
|
+
function validate(obj: any): null;
|
|
19
|
+
}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
8
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
9
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
/*
|
|
12
|
+
* Nutanix Data Protection APIs
|
|
13
|
+
*
|
|
14
|
+
* OpenAPI spec version: 4.2.1
|
|
15
|
+
*
|
|
16
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
17
|
+
*
|
|
18
|
+
* Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
|
|
19
|
+
*
|
|
20
|
+
* Do not edit the class manually.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Enum class EntityType.
|
|
26
|
+
* @enum {string}
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
const EntityType = {
|
|
30
|
+
/**
|
|
31
|
+
* Unknown value.
|
|
32
|
+
* @const
|
|
33
|
+
*/
|
|
34
|
+
$UNKNOWN: "$UNKNOWN",
|
|
35
|
+
/**
|
|
36
|
+
* Redacted value.
|
|
37
|
+
* @const
|
|
38
|
+
*/
|
|
39
|
+
$REDACTED: "$REDACTED",
|
|
40
|
+
/**
|
|
41
|
+
* Entity representing a Nutanix managed cluster.
|
|
42
|
+
* @const
|
|
43
|
+
*/
|
|
44
|
+
CLUSTER: "CLUSTER",
|
|
45
|
+
/**
|
|
46
|
+
* Entity representing an AHV or ESX Virtual Machine.
|
|
47
|
+
* @const
|
|
48
|
+
*/
|
|
49
|
+
VM: "VM",
|
|
50
|
+
/**
|
|
51
|
+
* Entity representing a storage container.
|
|
52
|
+
* @const
|
|
53
|
+
*/
|
|
54
|
+
STORAGE_CONTAINER: "STORAGE_CONTAINER",
|
|
55
|
+
/**
|
|
56
|
+
* Entity representing a volume group.
|
|
57
|
+
* @const
|
|
58
|
+
*/
|
|
59
|
+
VOLUME_GROUP: "VOLUME_GROUP",
|
|
60
|
+
/**
|
|
61
|
+
* Entity representing a task.
|
|
62
|
+
* @const
|
|
63
|
+
*/
|
|
64
|
+
TASK: "TASK",
|
|
65
|
+
/**
|
|
66
|
+
* Entity representing an image that can be used for creating VM disks etc.
|
|
67
|
+
* @const
|
|
68
|
+
*/
|
|
69
|
+
IMAGE: "IMAGE",
|
|
70
|
+
/**
|
|
71
|
+
* Entity representing a category in the form of a Key Value pair.
|
|
72
|
+
* @const
|
|
73
|
+
*/
|
|
74
|
+
CATEGORY: "CATEGORY",
|
|
75
|
+
/**
|
|
76
|
+
* Entity representing a node in a Nutanix managed cluster.
|
|
77
|
+
* @const
|
|
78
|
+
*/
|
|
79
|
+
NODE: "NODE",
|
|
80
|
+
/**
|
|
81
|
+
* Entity representing a Virtual Private Cloud.
|
|
82
|
+
* @const
|
|
83
|
+
*/
|
|
84
|
+
VPC: "VPC",
|
|
85
|
+
/**
|
|
86
|
+
* Entity representing a Subnet.
|
|
87
|
+
* @const
|
|
88
|
+
*/
|
|
89
|
+
SUBNET: "SUBNET",
|
|
90
|
+
/**
|
|
91
|
+
* Entity representing a Routing Policy.
|
|
92
|
+
* @const
|
|
93
|
+
*/
|
|
94
|
+
ROUTING_POLICY: "ROUTING_POLICY",
|
|
95
|
+
/**
|
|
96
|
+
* Entity representing a Floating IP.
|
|
97
|
+
* @const
|
|
98
|
+
*/
|
|
99
|
+
FLOATING_IP: "FLOATING_IP",
|
|
100
|
+
/**
|
|
101
|
+
* Entity representing a VPN Gateway.
|
|
102
|
+
* @const
|
|
103
|
+
*/
|
|
104
|
+
VPN_GATEWAY: "VPN_GATEWAY",
|
|
105
|
+
/**
|
|
106
|
+
* Entity representing a VPN Connection.
|
|
107
|
+
* @const
|
|
108
|
+
*/
|
|
109
|
+
VPN_CONNECTION: "VPN_CONNECTION",
|
|
110
|
+
/**
|
|
111
|
+
* Entity representing a Direct Connect.
|
|
112
|
+
* @const
|
|
113
|
+
*/
|
|
114
|
+
DIRECT_CONNECT: "DIRECT_CONNECT",
|
|
115
|
+
/**
|
|
116
|
+
* Entity representing a Direct Connect Virtual Interface.
|
|
117
|
+
* @const
|
|
118
|
+
*/
|
|
119
|
+
DIRECT_CONNECT_VIF: "DIRECT_CONNECT_VIF",
|
|
120
|
+
/**
|
|
121
|
+
* Entity representing a Virtual Network Interface Card.
|
|
122
|
+
* @const
|
|
123
|
+
*/
|
|
124
|
+
VIRTUAL_NIC: "VIRTUAL_NIC",
|
|
125
|
+
/**
|
|
126
|
+
* Entity representing a Virtual Switch.
|
|
127
|
+
* @const
|
|
128
|
+
*/
|
|
129
|
+
VIRTUAL_SWITCH: "VIRTUAL_SWITCH",
|
|
130
|
+
/**
|
|
131
|
+
* Entity representing a VM Disk.
|
|
132
|
+
* @const
|
|
133
|
+
*/
|
|
134
|
+
VM_DISK: "VM_DISK",
|
|
135
|
+
/**
|
|
136
|
+
* Entity representing a Volume Disk.
|
|
137
|
+
* @const
|
|
138
|
+
*/
|
|
139
|
+
VOLUME_DISK: "VOLUME_DISK",
|
|
140
|
+
/**
|
|
141
|
+
* Entity representing the recovery point of a protected Disk.
|
|
142
|
+
* @const
|
|
143
|
+
*/
|
|
144
|
+
DISK_RECOVERY_POINT: "DISK_RECOVERY_POINT",
|
|
145
|
+
/**
|
|
146
|
+
* Entity representing a Virtual Tunnel End Point.
|
|
147
|
+
* @const
|
|
148
|
+
*/
|
|
149
|
+
VTEP_GATEWAY: "VTEP_GATEWAY",
|
|
150
|
+
/**
|
|
151
|
+
* Entity representing a Disaster Recovery Plan.
|
|
152
|
+
* @const
|
|
153
|
+
*/
|
|
154
|
+
RECOVERY_PLAN: "RECOVERY_PLAN",
|
|
155
|
+
/**
|
|
156
|
+
* Entity representing a Disaster Recovery Plan Job.
|
|
157
|
+
* @const
|
|
158
|
+
*/
|
|
159
|
+
RECOVERY_PLAN_JOB: "RECOVERY_PLAN_JOB",
|
|
160
|
+
/**
|
|
161
|
+
* Entity representing an Availability Zone.
|
|
162
|
+
* @const
|
|
163
|
+
*/
|
|
164
|
+
AVAILABILITY_ZONE: "AVAILABILITY_ZONE",
|
|
165
|
+
/**
|
|
166
|
+
* Entity representing a Virtual Network.
|
|
167
|
+
* @const
|
|
168
|
+
*/
|
|
169
|
+
VIRTUAL_NETWORK: "VIRTUAL_NETWORK",
|
|
170
|
+
/**
|
|
171
|
+
* Entity representing a Consistency Group.
|
|
172
|
+
* @const
|
|
173
|
+
*/
|
|
174
|
+
CONSISTENCY_GROUP: "CONSISTENCY_GROUP",
|
|
175
|
+
/**
|
|
176
|
+
* Entity representing a Subnet Extension.
|
|
177
|
+
* @const
|
|
178
|
+
*/
|
|
179
|
+
SUBNET_EXTENSION: "SUBNET_EXTENSION"
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Returns a <code>EntityType</code> enum value from a JavaScript object name.
|
|
184
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
185
|
+
* @return {EntityType} The enum <code>EntityType</code> value.
|
|
186
|
+
*/
|
|
187
|
+
EntityType.constructFromObject = function (obj) {
|
|
188
|
+
if (typeof obj === 'string' || obj instanceof String) {
|
|
189
|
+
let enumVal = Object.keys(EntityType).find(key => EntityType[key] === obj);
|
|
190
|
+
return enumVal === undefined || enumVal === null ? EntityType.$UNKNOWN : EntityType[enumVal];
|
|
191
|
+
} else {
|
|
192
|
+
throw new Error("Received object name is not an instance of String");
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Validates <code>EntityType</code> enum value.
|
|
198
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
199
|
+
* @return {null} Throws error for invalid value.
|
|
200
|
+
*/
|
|
201
|
+
EntityType.validate = function (obj) {
|
|
202
|
+
switch (obj) {
|
|
203
|
+
case EntityType.$UNKNOWN:
|
|
204
|
+
case EntityType.$REDACTED:
|
|
205
|
+
case EntityType.CLUSTER:
|
|
206
|
+
case EntityType.VM:
|
|
207
|
+
case EntityType.STORAGE_CONTAINER:
|
|
208
|
+
case EntityType.VOLUME_GROUP:
|
|
209
|
+
case EntityType.TASK:
|
|
210
|
+
case EntityType.IMAGE:
|
|
211
|
+
case EntityType.CATEGORY:
|
|
212
|
+
case EntityType.NODE:
|
|
213
|
+
case EntityType.VPC:
|
|
214
|
+
case EntityType.SUBNET:
|
|
215
|
+
case EntityType.ROUTING_POLICY:
|
|
216
|
+
case EntityType.FLOATING_IP:
|
|
217
|
+
case EntityType.VPN_GATEWAY:
|
|
218
|
+
case EntityType.VPN_CONNECTION:
|
|
219
|
+
case EntityType.DIRECT_CONNECT:
|
|
220
|
+
case EntityType.DIRECT_CONNECT_VIF:
|
|
221
|
+
case EntityType.VIRTUAL_NIC:
|
|
222
|
+
case EntityType.VIRTUAL_SWITCH:
|
|
223
|
+
case EntityType.VM_DISK:
|
|
224
|
+
case EntityType.VOLUME_DISK:
|
|
225
|
+
case EntityType.DISK_RECOVERY_POINT:
|
|
226
|
+
case EntityType.VTEP_GATEWAY:
|
|
227
|
+
case EntityType.RECOVERY_PLAN:
|
|
228
|
+
case EntityType.RECOVERY_PLAN_JOB:
|
|
229
|
+
case EntityType.AVAILABILITY_ZONE:
|
|
230
|
+
case EntityType.VIRTUAL_NETWORK:
|
|
231
|
+
case EntityType.CONSISTENCY_GROUP:
|
|
232
|
+
case EntityType.SUBNET_EXTENSION:
|
|
233
|
+
return;
|
|
234
|
+
default:
|
|
235
|
+
throw new Error("Invalid : must be EntityType.{ $UNKNOWN|$REDACTED|CLUSTER|VM|STORAGE_CONTAINER|VOLUME_GROUP|TASK|IMAGE|CATEGORY|NODE|VPC|SUBNET|ROUTING_POLICY|FLOATING_IP|VPN_GATEWAY|VPN_CONNECTION|DIRECT_CONNECT|DIRECT_CONNECT_VIF|VIRTUAL_NIC|VIRTUAL_SWITCH|VM_DISK|VOLUME_DISK|DISK_RECOVERY_POINT|VTEP_GATEWAY|RECOVERY_PLAN|RECOVERY_PLAN_JOB|AVAILABILITY_ZONE|VIRTUAL_NETWORK|CONSISTENCY_GROUP|SUBNET_EXTENSION }");
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
Object.freeze(EntityType);
|
|
239
|
+
var _default = exports.default = EntityType;
|