@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,624 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
|
|
8
|
+
var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
|
|
9
|
+
var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
|
|
10
|
+
var _ExecutionStepEntityReference = _interopRequireDefault(require("./ExecutionStepEntityReference"));
|
|
11
|
+
var _ExecutionStepResult = _interopRequireDefault(require("./ExecutionStepResult"));
|
|
12
|
+
var _OperationType = _interopRequireDefault(require("./OperationType"));
|
|
13
|
+
var _RecoveryPlanJobExecutionStatus = _interopRequireDefault(require("./RecoveryPlanJobExecutionStatus"));
|
|
14
|
+
var _RecoveryPlanJobPhaseType = _interopRequireDefault(require("./RecoveryPlanJobPhaseType"));
|
|
15
|
+
var _AppMessage = _interopRequireDefault(require("../error/AppMessage"));
|
|
16
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
17
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
18
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
19
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
21
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
22
|
+
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"); } /*
|
|
23
|
+
* Nutanix Data Protection APIs
|
|
24
|
+
*
|
|
25
|
+
* OpenAPI spec version: 4.2.1
|
|
26
|
+
*
|
|
27
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
28
|
+
*
|
|
29
|
+
* Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
|
|
30
|
+
*
|
|
31
|
+
* Do not edit the class manually.
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
/**
|
|
35
|
+
* The RecoveryPlanJobExecutionStep model module.
|
|
36
|
+
* @module Ntnx/RecoveryPlanJobExecutionStep
|
|
37
|
+
* @version 4.2.1
|
|
38
|
+
* @class RecoveryPlanJobExecutionStep
|
|
39
|
+
* @extends ExternalizableAbstractModel
|
|
40
|
+
*/
|
|
41
|
+
var _RecoveryPlanJobExecutionStep_brand = /*#__PURE__*/new WeakSet();
|
|
42
|
+
class RecoveryPlanJobExecutionStep extends _ExternalizableAbstractModel.default {
|
|
43
|
+
/**
|
|
44
|
+
* Constructs a new <code>RecoveryPlanJobExecutionStep</code>.
|
|
45
|
+
* A step executes an action. Each step has its external identifier and the status of the action it is/was performing.
|
|
46
|
+
* @alias module:Ntnx/RecoveryPlanJobExecutionStep
|
|
47
|
+
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
48
|
+
*/
|
|
49
|
+
constructor() {
|
|
50
|
+
super();
|
|
51
|
+
/*
|
|
52
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
53
|
+
* @param {Object} obj
|
|
54
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
55
|
+
* Otherwise, just returns the input object.
|
|
56
|
+
*/
|
|
57
|
+
_classPrivateMethodInitSpec(this, _RecoveryPlanJobExecutionStep_brand);
|
|
58
|
+
this.$objectType = "dataprotection.v4.config.RecoveryPlanJobExecutionStep";
|
|
59
|
+
/** @type {object<string, any>} */
|
|
60
|
+
this.$reserved = {
|
|
61
|
+
'$fv': "v4.r2"
|
|
62
|
+
};
|
|
63
|
+
/** @type {object<string, any>} */
|
|
64
|
+
this.$unknownFields = {};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Constructs a <code>RecoveryPlanJobExecutionStep</code> from a plain JavaScript object, optionally creating a new instance.
|
|
69
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
70
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
71
|
+
* @param {module:Ntnx/RecoveryPlanJobExecutionStep} obj Optional instance to populate.
|
|
72
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
73
|
+
* @return {module:Ntnx/RecoveryPlanJobExecutionStep} The populated <code>RecoveryPlanJobExecutionStep</code> instance.
|
|
74
|
+
*/
|
|
75
|
+
static constructFromObject(data, obj = null, callFromChild = false) {
|
|
76
|
+
let items, item, i, itemArr, discriminator;
|
|
77
|
+
if (data) {
|
|
78
|
+
obj = obj || new RecoveryPlanJobExecutionStep();
|
|
79
|
+
_ExternalizableAbstractModel.default.constructFromObject(data, obj, true);
|
|
80
|
+
if (data.hasOwnProperty('errorMessage') && data.errorMessage !== null && data.errorMessage !== undefined) {
|
|
81
|
+
obj.setErrorMessage(_AppMessage.default.constructFromObject(data['errorMessage']));
|
|
82
|
+
}
|
|
83
|
+
if (data.hasOwnProperty('stageExtId') && data.stageExtId !== null && data.stageExtId !== undefined) {
|
|
84
|
+
obj.setStageExtId(data['stageExtId']);
|
|
85
|
+
}
|
|
86
|
+
if (data.hasOwnProperty('phase') && data.phase !== null && data.phase !== undefined) {
|
|
87
|
+
obj.setPhase(_RecoveryPlanJobPhaseType.default.constructFromObject(data['phase']));
|
|
88
|
+
}
|
|
89
|
+
if (data.hasOwnProperty('operationType') && data.operationType !== null && data.operationType !== undefined) {
|
|
90
|
+
obj.setOperationType(_OperationType.default.constructFromObject(data['operationType']));
|
|
91
|
+
}
|
|
92
|
+
if (data.hasOwnProperty('stepDescription') && data.stepDescription !== null && data.stepDescription !== undefined) {
|
|
93
|
+
obj.setStepDescription(data['stepDescription']);
|
|
94
|
+
}
|
|
95
|
+
if (data.hasOwnProperty('affectedEntities') && data.affectedEntities !== null && data.affectedEntities !== undefined) {
|
|
96
|
+
itemArr = [];
|
|
97
|
+
items = data.affectedEntities;
|
|
98
|
+
for (i = 0; i < items.length; i++) {
|
|
99
|
+
item = _ExecutionStepEntityReference.default.constructFromObject(items[i], undefined);
|
|
100
|
+
itemArr.push(item);
|
|
101
|
+
}
|
|
102
|
+
obj.setAffectedEntities(itemArr);
|
|
103
|
+
}
|
|
104
|
+
if (data.hasOwnProperty('executionStepResults') && data.executionStepResults !== null && data.executionStepResults !== undefined) {
|
|
105
|
+
itemArr = [];
|
|
106
|
+
items = data.executionStepResults;
|
|
107
|
+
for (i = 0; i < items.length; i++) {
|
|
108
|
+
item = _ExecutionStepResult.default.constructFromObject(items[i], undefined);
|
|
109
|
+
itemArr.push(item);
|
|
110
|
+
}
|
|
111
|
+
obj.setExecutionStepResults(itemArr);
|
|
112
|
+
}
|
|
113
|
+
if (data.hasOwnProperty('status') && data.status !== null && data.status !== undefined) {
|
|
114
|
+
obj.setStatus(_RecoveryPlanJobExecutionStatus.default.constructFromObject(data['status']));
|
|
115
|
+
}
|
|
116
|
+
if (data.hasOwnProperty('startTime') && data.startTime !== null && data.startTime !== undefined) {
|
|
117
|
+
obj.setStartTime(data['startTime']);
|
|
118
|
+
}
|
|
119
|
+
if (data.hasOwnProperty('endTime') && data.endTime !== null && data.endTime !== undefined) {
|
|
120
|
+
obj.setEndTime(data['endTime']);
|
|
121
|
+
}
|
|
122
|
+
if (data.hasOwnProperty('percentageComplete') && data.percentageComplete !== null && data.percentageComplete !== undefined) {
|
|
123
|
+
obj.setPercentageComplete(data['percentageComplete']);
|
|
124
|
+
}
|
|
125
|
+
if (!callFromChild) {
|
|
126
|
+
obj.$unknownFields = {
|
|
127
|
+
...data.$unknownFields
|
|
128
|
+
};
|
|
129
|
+
for (const property in data) {
|
|
130
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
131
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
132
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
133
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
134
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
135
|
+
obj.$unknownFields[property] = data[property];
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return obj;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Converts a given snake_case string to camelCase.
|
|
145
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
146
|
+
* @returns {string} - The converted string in camelCase format.
|
|
147
|
+
*/
|
|
148
|
+
static snakeToCamel(snakeStr) {
|
|
149
|
+
return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* @return {AppMessage}
|
|
154
|
+
*/
|
|
155
|
+
getErrorMessage() {
|
|
156
|
+
return this.errorMessage;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @param {AppMessage} errorMessage
|
|
161
|
+
*/
|
|
162
|
+
setErrorMessage(errorMessage) {
|
|
163
|
+
this.errorMessage = errorMessage;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Returns External identifier of a recovery plan stage.
|
|
168
|
+
* @return {string}
|
|
169
|
+
*/
|
|
170
|
+
getStageExtId() {
|
|
171
|
+
return this.stageExtId;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Sets External identifier of a recovery plan stage.
|
|
176
|
+
* @param {string} stageExtId External identifier of a recovery plan stage.
|
|
177
|
+
*/
|
|
178
|
+
setStageExtId(stageExtId) {
|
|
179
|
+
this.stageExtId = stageExtId;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* @return {RecoveryPlanJobPhaseType}
|
|
184
|
+
*/
|
|
185
|
+
getPhase() {
|
|
186
|
+
return this.phase;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* @param {RecoveryPlanJobPhaseType} phase
|
|
191
|
+
*/
|
|
192
|
+
setPhase(phase) {
|
|
193
|
+
this.phase = phase;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* @return {OperationType}
|
|
198
|
+
*/
|
|
199
|
+
getOperationType() {
|
|
200
|
+
return this.operationType;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* @param {OperationType} operationType
|
|
205
|
+
*/
|
|
206
|
+
setOperationType(operationType) {
|
|
207
|
+
this.operationType = operationType;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Returns User readable message for the action being performed for the current step.
|
|
212
|
+
* @return {string}
|
|
213
|
+
*/
|
|
214
|
+
getStepDescription() {
|
|
215
|
+
return this.stepDescription;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Sets User readable message for the action being performed for the current step.
|
|
220
|
+
* @param {string} stepDescription User readable message for the action being performed for the current step.
|
|
221
|
+
*/
|
|
222
|
+
setStepDescription(stepDescription) {
|
|
223
|
+
this.stepDescription = stepDescription;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Returns List of affected entities.
|
|
228
|
+
* @return {ExecutionStepEntityReference[]}
|
|
229
|
+
*/
|
|
230
|
+
getAffectedEntities() {
|
|
231
|
+
return this.affectedEntities;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Sets List of affected entities.
|
|
236
|
+
* @param {ExecutionStepEntityReference[]} affectedEntities List of affected entities.
|
|
237
|
+
*/
|
|
238
|
+
setAffectedEntities(affectedEntities) {
|
|
239
|
+
this.affectedEntities = affectedEntities;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Returns Result for an execution step.
|
|
244
|
+
* @return {ExecutionStepResult[]}
|
|
245
|
+
*/
|
|
246
|
+
getExecutionStepResults() {
|
|
247
|
+
return this.executionStepResults;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Sets Result for an execution step.
|
|
252
|
+
* @param {ExecutionStepResult[]} executionStepResults Result for an execution step.
|
|
253
|
+
*/
|
|
254
|
+
setExecutionStepResults(executionStepResults) {
|
|
255
|
+
this.executionStepResults = executionStepResults;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* @return {RecoveryPlanJobExecutionStatus}
|
|
260
|
+
*/
|
|
261
|
+
getStatus() {
|
|
262
|
+
return this.status;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* @param {RecoveryPlanJobExecutionStatus} status
|
|
267
|
+
*/
|
|
268
|
+
setStatus(status) {
|
|
269
|
+
this.status = status;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Returns Time in ISO-8601 format when the current step started.
|
|
274
|
+
* @return {Date}
|
|
275
|
+
*/
|
|
276
|
+
getStartTime() {
|
|
277
|
+
return this.startTime;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Sets Time in ISO-8601 format when the current step started.
|
|
282
|
+
* @param {Date} startTime Time in ISO-8601 format when the current step started.
|
|
283
|
+
*/
|
|
284
|
+
setStartTime(startTime) {
|
|
285
|
+
this.startTime = startTime;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Returns Time in ISO-8601 format when the current step ended.
|
|
290
|
+
* @return {Date}
|
|
291
|
+
*/
|
|
292
|
+
getEndTime() {
|
|
293
|
+
return this.endTime;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Sets Time in ISO-8601 format when the current step ended.
|
|
298
|
+
* @param {Date} endTime Time in ISO-8601 format when the current step ended.
|
|
299
|
+
*/
|
|
300
|
+
setEndTime(endTime) {
|
|
301
|
+
this.endTime = endTime;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Returns The completed percentage for a step in the recovery plan job.
|
|
306
|
+
* minimum: 0
|
|
307
|
+
* maximum: 100
|
|
308
|
+
* @return {Number}
|
|
309
|
+
*/
|
|
310
|
+
getPercentageComplete() {
|
|
311
|
+
return this.percentageComplete;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Sets The completed percentage for a step in the recovery plan job.
|
|
316
|
+
* @param {Number} percentageComplete The completed percentage for a step in the recovery plan job.
|
|
317
|
+
*/
|
|
318
|
+
setPercentageComplete(percentageComplete) {
|
|
319
|
+
this.percentageComplete = percentageComplete;
|
|
320
|
+
}
|
|
321
|
+
toJson(forMutation) {
|
|
322
|
+
if (forMutation === false) {
|
|
323
|
+
return {
|
|
324
|
+
...(typeof this.getErrorMessage() !== 'undefined' && this.getErrorMessage() !== null ? {
|
|
325
|
+
'errorMessage': this.getErrorMessage().toJson(false)
|
|
326
|
+
} : {}),
|
|
327
|
+
...(typeof this.getStageExtId() !== 'undefined' && this.getStageExtId() !== null ? {
|
|
328
|
+
'stageExtId': this.getStageExtId()
|
|
329
|
+
} : {}),
|
|
330
|
+
...(typeof this.getPhase() !== 'undefined' && this.getPhase() !== null ? {
|
|
331
|
+
'phase': this.getPhase()
|
|
332
|
+
} : {}),
|
|
333
|
+
...(typeof this.getOperationType() !== 'undefined' && this.getOperationType() !== null ? {
|
|
334
|
+
'operationType': this.getOperationType()
|
|
335
|
+
} : {}),
|
|
336
|
+
...(typeof this.getStepDescription() !== 'undefined' && this.getStepDescription() !== null ? {
|
|
337
|
+
'stepDescription': this.getStepDescription()
|
|
338
|
+
} : {}),
|
|
339
|
+
...(typeof this.getAffectedEntities() !== 'undefined' && this.getAffectedEntities() !== null ? {
|
|
340
|
+
'affectedEntities': this.getAffectedEntities().map(item => item.toJson(false))
|
|
341
|
+
} : {}),
|
|
342
|
+
...(typeof this.getExecutionStepResults() !== 'undefined' && this.getExecutionStepResults() !== null ? {
|
|
343
|
+
'executionStepResults': this.getExecutionStepResults().map(item => item.toJson(false))
|
|
344
|
+
} : {}),
|
|
345
|
+
...(typeof this.getStatus() !== 'undefined' && this.getStatus() !== null ? {
|
|
346
|
+
'status': this.getStatus()
|
|
347
|
+
} : {}),
|
|
348
|
+
...(typeof this.getStartTime() !== 'undefined' && this.getStartTime() !== null ? {
|
|
349
|
+
'startTime': _assertClassBrand(_RecoveryPlanJobExecutionStep_brand, this, _handleDateType).call(this, this.getStartTime(), false)
|
|
350
|
+
} : {}),
|
|
351
|
+
...(typeof this.getEndTime() !== 'undefined' && this.getEndTime() !== null ? {
|
|
352
|
+
'endTime': _assertClassBrand(_RecoveryPlanJobExecutionStep_brand, this, _handleDateType).call(this, this.getEndTime(), false)
|
|
353
|
+
} : {}),
|
|
354
|
+
...(typeof this.getPercentageComplete() !== 'undefined' && this.getPercentageComplete() !== null ? {
|
|
355
|
+
'percentageComplete': this.getPercentageComplete()
|
|
356
|
+
} : {}),
|
|
357
|
+
...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
358
|
+
'extId': this.getExtId()
|
|
359
|
+
} : {}),
|
|
360
|
+
...(typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
361
|
+
'links': this.getLinks().map(item => item.toJson(false))
|
|
362
|
+
} : {}),
|
|
363
|
+
...(typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
364
|
+
'tenantId': this.getTenantId()
|
|
365
|
+
} : {}),
|
|
366
|
+
'$reserved': this.get$Reserved(),
|
|
367
|
+
'$objectType': this.get$ObjectType(),
|
|
368
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
369
|
+
'$unknownFields': {}
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
return {
|
|
373
|
+
...(typeof this.getErrorMessage() !== 'undefined' && this.getErrorMessage() !== null ? {
|
|
374
|
+
'errorMessage': this.getErrorMessage().toJson(false)
|
|
375
|
+
} : {}),
|
|
376
|
+
...(typeof this.getStageExtId() !== 'undefined' && this.getStageExtId() !== null ? {
|
|
377
|
+
'stageExtId': this.getStageExtId()
|
|
378
|
+
} : {}),
|
|
379
|
+
...(typeof this.getPhase() !== 'undefined' && this.getPhase() !== null ? {
|
|
380
|
+
'phase': this.getPhase()
|
|
381
|
+
} : {}),
|
|
382
|
+
...(typeof this.getOperationType() !== 'undefined' && this.getOperationType() !== null ? {
|
|
383
|
+
'operationType': this.getOperationType()
|
|
384
|
+
} : {}),
|
|
385
|
+
...(typeof this.getStepDescription() !== 'undefined' && this.getStepDescription() !== null ? {
|
|
386
|
+
'stepDescription': this.getStepDescription()
|
|
387
|
+
} : {}),
|
|
388
|
+
...(typeof this.getAffectedEntities() !== 'undefined' && this.getAffectedEntities() !== null ? {
|
|
389
|
+
'affectedEntities': this.getAffectedEntities().map(item => item.toJson(false))
|
|
390
|
+
} : {}),
|
|
391
|
+
...(typeof this.getExecutionStepResults() !== 'undefined' && this.getExecutionStepResults() !== null ? {
|
|
392
|
+
'executionStepResults': this.getExecutionStepResults().map(item => item.toJson(false))
|
|
393
|
+
} : {}),
|
|
394
|
+
...(typeof this.getStatus() !== 'undefined' && this.getStatus() !== null ? {
|
|
395
|
+
'status': this.getStatus()
|
|
396
|
+
} : {}),
|
|
397
|
+
...(typeof this.getStartTime() !== 'undefined' && this.getStartTime() !== null ? {
|
|
398
|
+
'startTime': _assertClassBrand(_RecoveryPlanJobExecutionStep_brand, this, _handleDateType).call(this, this.getStartTime(), false)
|
|
399
|
+
} : {}),
|
|
400
|
+
...(typeof this.getEndTime() !== 'undefined' && this.getEndTime() !== null ? {
|
|
401
|
+
'endTime': _assertClassBrand(_RecoveryPlanJobExecutionStep_brand, this, _handleDateType).call(this, this.getEndTime(), false)
|
|
402
|
+
} : {}),
|
|
403
|
+
...(typeof this.getPercentageComplete() !== 'undefined' && this.getPercentageComplete() !== null ? {
|
|
404
|
+
'percentageComplete': this.getPercentageComplete()
|
|
405
|
+
} : {}),
|
|
406
|
+
'$reserved': this.get$Reserved(),
|
|
407
|
+
'$objectType': this.get$ObjectType(),
|
|
408
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
409
|
+
'$unknownFields': {}
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
validate(scope, properties) {
|
|
413
|
+
let propList = [];
|
|
414
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
|
|
415
|
+
//cases validate() and validate(scope)
|
|
416
|
+
propList = [];
|
|
417
|
+
} else if (arguments.length === 1) {
|
|
418
|
+
//case validate(properties)
|
|
419
|
+
propList = arguments[0];
|
|
420
|
+
scope = null;
|
|
421
|
+
} else {
|
|
422
|
+
//case validate(scope, properties)
|
|
423
|
+
propList = arguments[1];
|
|
424
|
+
}
|
|
425
|
+
let res = [];
|
|
426
|
+
let err = null;
|
|
427
|
+
propList.forEach(property => {
|
|
428
|
+
err = this.validateProperty(property, scope);
|
|
429
|
+
if (err) {
|
|
430
|
+
res.push(err);
|
|
431
|
+
}
|
|
432
|
+
});
|
|
433
|
+
return new Promise(function (resolve, reject) {
|
|
434
|
+
if (res.length !== 0) {
|
|
435
|
+
reject(err);
|
|
436
|
+
} else {
|
|
437
|
+
resolve();
|
|
438
|
+
}
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
validateProperty(scope, property) {
|
|
442
|
+
if (property === "errorMessage") {
|
|
443
|
+
if (typeof this.errorMessage === 'undefined' || this.errorMessage === null) {
|
|
444
|
+
return new _ValidationError.default("errorMessage", "undefined or null");
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
if (property === "stageExtId") {
|
|
448
|
+
if (typeof this.stageExtId === 'undefined' || this.stageExtId === null) {
|
|
449
|
+
return new _ValidationError.default("stageExtId", "undefined or null");
|
|
450
|
+
}
|
|
451
|
+
if (!_ValidationUtils.default.validatePattern(this.stageExtId, /^[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}$/)) {
|
|
452
|
+
return new _ValidationError.default("stageExtId", "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}$/");
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
if (property === "phase") {
|
|
456
|
+
if (typeof this.phase === 'undefined' || this.phase === null) {
|
|
457
|
+
return new _ValidationError.default("phase", "undefined or null");
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
if (property === "operationType") {
|
|
461
|
+
if (typeof this.operationType === 'undefined' || this.operationType === null) {
|
|
462
|
+
return new _ValidationError.default("operationType", "undefined or null");
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
if (property === "stepDescription") {
|
|
466
|
+
if (typeof this.stepDescription === 'undefined' || this.stepDescription === null) {
|
|
467
|
+
return new _ValidationError.default("stepDescription", "undefined or null");
|
|
468
|
+
}
|
|
469
|
+
if (!_ValidationUtils.default.validateMaxLength(this.stepDescription, 1000)) {
|
|
470
|
+
return new _ValidationError.default("stepDescription", "does not satisfy required maxLength constraint: 1000");
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
if (property === "affectedEntities") {
|
|
474
|
+
if (typeof this.affectedEntities === 'undefined' || this.affectedEntities === null) {
|
|
475
|
+
return new _ValidationError.default("affectedEntities", "undefined or null");
|
|
476
|
+
}
|
|
477
|
+
if (!_ValidationUtils.default.validateMaxItems(this.affectedEntities, 100)) {
|
|
478
|
+
return new _ValidationError.default("affectedEntities", "does not satisfy required maxItems constraint: 100");
|
|
479
|
+
}
|
|
480
|
+
if (!_ValidationUtils.default.validateMinItems(this.affectedEntities, 1)) {
|
|
481
|
+
return new _ValidationError.default("affectedEntities", "does not satisfy required minItems constraint: 1");
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
if (property === "executionStepResults") {
|
|
485
|
+
if (typeof this.executionStepResults === 'undefined' || this.executionStepResults === null) {
|
|
486
|
+
return new _ValidationError.default("executionStepResults", "undefined or null");
|
|
487
|
+
}
|
|
488
|
+
if (!_ValidationUtils.default.validateMaxItems(this.executionStepResults, 1)) {
|
|
489
|
+
return new _ValidationError.default("executionStepResults", "does not satisfy required maxItems constraint: 1");
|
|
490
|
+
}
|
|
491
|
+
if (!_ValidationUtils.default.validateMinItems(this.executionStepResults, 1)) {
|
|
492
|
+
return new _ValidationError.default("executionStepResults", "does not satisfy required minItems constraint: 1");
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
if (property === "status") {
|
|
496
|
+
if (typeof this.status === 'undefined' || this.status === null) {
|
|
497
|
+
return new _ValidationError.default("status", "undefined or null");
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
if (property === "startTime") {
|
|
501
|
+
if (typeof this.startTime === 'undefined' || this.startTime === null) {
|
|
502
|
+
return new _ValidationError.default("startTime", "undefined or null");
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
if (property === "endTime") {
|
|
506
|
+
if (typeof this.endTime === 'undefined' || this.endTime === null) {
|
|
507
|
+
return new _ValidationError.default("endTime", "undefined or null");
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
if (property === "percentageComplete") {
|
|
511
|
+
if (typeof this.percentageComplete === 'undefined' || this.percentageComplete === null) {
|
|
512
|
+
return new _ValidationError.default("percentageComplete", "undefined or null");
|
|
513
|
+
}
|
|
514
|
+
if (!_ValidationUtils.default.validateMaximum(this.percentageComplete, 100)) {
|
|
515
|
+
return new _ValidationError.default("percentageComplete", "does not satisfy required maximum constraint: 100");
|
|
516
|
+
}
|
|
517
|
+
if (!_ValidationUtils.default.validateMinimum(this.percentageComplete, 0)) {
|
|
518
|
+
return new _ValidationError.default("percentageComplete", "does not satisfy required minimum constraint: 0");
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
return new _ValidationError.default(property, "no such property exists");
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* @memberof RecoveryPlanJobExecutionStep
|
|
527
|
+
*/
|
|
528
|
+
exports.default = RecoveryPlanJobExecutionStep;
|
|
529
|
+
function _toJsonMapType(obj, forMutation) {
|
|
530
|
+
if (obj instanceof Map) {
|
|
531
|
+
return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
|
|
532
|
+
} else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
|
|
533
|
+
return Object.fromEntries(Array.from(Object.entries(obj), entry => {
|
|
534
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
535
|
+
}));
|
|
536
|
+
}
|
|
537
|
+
return obj;
|
|
538
|
+
}
|
|
539
|
+
/*
|
|
540
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
541
|
+
* @param {Object} obj Object to serialize
|
|
542
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
543
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
544
|
+
*/
|
|
545
|
+
function _handleDateType(obj, isDateOnly) {
|
|
546
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
547
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
548
|
+
}
|
|
549
|
+
return obj;
|
|
550
|
+
}
|
|
551
|
+
RecoveryPlanJobExecutionStep.prototype.errorMessage = undefined;
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* External identifier of a recovery plan stage.
|
|
555
|
+
* @memberof RecoveryPlanJobExecutionStep
|
|
556
|
+
*/
|
|
557
|
+
RecoveryPlanJobExecutionStep.prototype.stageExtId = undefined;
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* @memberof RecoveryPlanJobExecutionStep
|
|
561
|
+
*/
|
|
562
|
+
RecoveryPlanJobExecutionStep.prototype.phase = undefined;
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* @memberof RecoveryPlanJobExecutionStep
|
|
566
|
+
*/
|
|
567
|
+
RecoveryPlanJobExecutionStep.prototype.operationType = undefined;
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* User readable message for the action being performed for the current step.
|
|
571
|
+
* @memberof RecoveryPlanJobExecutionStep
|
|
572
|
+
*/
|
|
573
|
+
RecoveryPlanJobExecutionStep.prototype.stepDescription = undefined;
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* List of affected entities.
|
|
577
|
+
* @memberof RecoveryPlanJobExecutionStep
|
|
578
|
+
*/
|
|
579
|
+
RecoveryPlanJobExecutionStep.prototype.affectedEntities = undefined;
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Result for an execution step.
|
|
583
|
+
* @memberof RecoveryPlanJobExecutionStep
|
|
584
|
+
*/
|
|
585
|
+
RecoveryPlanJobExecutionStep.prototype.executionStepResults = undefined;
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* @memberof RecoveryPlanJobExecutionStep
|
|
589
|
+
*/
|
|
590
|
+
RecoveryPlanJobExecutionStep.prototype.status = undefined;
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Time in ISO-8601 format when the current step started.
|
|
594
|
+
* @memberof RecoveryPlanJobExecutionStep
|
|
595
|
+
*/
|
|
596
|
+
RecoveryPlanJobExecutionStep.prototype.startTime = undefined;
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Time in ISO-8601 format when the current step ended.
|
|
600
|
+
* @memberof RecoveryPlanJobExecutionStep
|
|
601
|
+
*/
|
|
602
|
+
RecoveryPlanJobExecutionStep.prototype.endTime = undefined;
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* The completed percentage for a step in the recovery plan job.
|
|
606
|
+
* @memberof RecoveryPlanJobExecutionStep
|
|
607
|
+
*/
|
|
608
|
+
RecoveryPlanJobExecutionStep.prototype.percentageComplete = undefined;
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* A globally unique identifier of an instance that is suitable for external consumption.
|
|
612
|
+
* @memberof RecoveryPlanJobExecutionStep
|
|
613
|
+
*/
|
|
614
|
+
_ExternalizableAbstractModel.default.prototype.extId = undefined;
|
|
615
|
+
/**
|
|
616
|
+
* A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
|
|
617
|
+
* @memberof RecoveryPlanJobExecutionStep
|
|
618
|
+
*/
|
|
619
|
+
_ExternalizableAbstractModel.default.prototype.links = undefined;
|
|
620
|
+
/**
|
|
621
|
+
* A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this ID to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
|
|
622
|
+
* @memberof RecoveryPlanJobExecutionStep
|
|
623
|
+
*/
|
|
624
|
+
_TenantAwareModel.default.prototype.tenantId = undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The RecoveryPlanJobExecutionStepProjection model module.
|
|
3
|
+
* @module Ntnx/RecoveryPlanJobExecutionStepProjection
|
|
4
|
+
* @version 4.2.1
|
|
5
|
+
* @class RecoveryPlanJobExecutionStepProjection
|
|
6
|
+
* @extends RecoveryPlanJobExecutionStep
|
|
7
|
+
*/
|
|
8
|
+
export default class RecoveryPlanJobExecutionStepProjection extends RecoveryPlanJobExecutionStep {
|
|
9
|
+
}
|
|
10
|
+
import RecoveryPlanJobExecutionStep from "./RecoveryPlanJobExecutionStep";
|