@nutanix-scratch/dataprotection-js-client 4.0.1-alpha.4
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/LICENSE.txt +49 -0
- package/README.md +194 -0
- package/dist/Ntnx-Dataprotection-js-client-prod.js +11 -0
- package/dist/Ntnx-Dataprotection-js-client.js +2349 -0
- package/dist/es/ApiClient.d.ts +158 -0
- package/dist/es/ApiClient.js +1056 -0
- package/dist/es/Paginable.d.ts +95 -0
- package/dist/es/Paginable.js +289 -0
- package/dist/es/apis/consistencygroup-endpoints.d.ts +98 -0
- package/dist/es/apis/consistencygroup-endpoints.js +304 -0
- package/dist/es/index.d.ts +214 -0
- package/dist/es/index.js +853 -0
- package/dist/es/models/common/v1/config/Flag.d.ts +58 -0
- package/dist/es/models/common/v1/config/Flag.js +277 -0
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +62 -0
- package/dist/es/models/common/v1/config/IPv4Address.js +290 -0
- package/dist/es/models/common/v1/config/KVPair.d.ts +62 -0
- package/dist/es/models/common/v1/config/KVPair.js +334 -0
- package/dist/es/models/common/v1/config/Message.d.ts +84 -0
- package/dist/es/models/common/v1/config/Message.js +356 -0
- package/dist/es/models/common/v1/config/MessageSeverity.d.ts +19 -0
- package/dist/es/models/common/v1/config/MessageSeverity.js +92 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +50 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.js +245 -0
- package/dist/es/models/common/v1/response/ApiLink.d.ts +62 -0
- package/dist/es/models/common/v1/response/ApiLink.js +282 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +98 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +440 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +42 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +273 -0
- package/dist/es/models/dataprotection/v4/common/BaseRecoveryPoint.d.ts +100 -0
- package/dist/es/models/dataprotection/v4/common/BaseRecoveryPoint.js +461 -0
- package/dist/es/models/dataprotection/v4/common/RecoveryPointStatus.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/common/RecoveryPointStatus.js +92 -0
- package/dist/es/models/dataprotection/v4/common/RecoveryPointType.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/common/RecoveryPointType.js +86 -0
- package/dist/es/models/dataprotection/v4/common/VendorSpecificProperty.d.ts +70 -0
- package/dist/es/models/dataprotection/v4/common/VendorSpecificProperty.js +286 -0
- package/dist/es/models/dataprotection/v4/config/AhvVmOverrideSpec.d.ts +50 -0
- package/dist/es/models/dataprotection/v4/config/AhvVmOverrideSpec.js +247 -0
- package/dist/es/models/dataprotection/v4/config/Category.d.ts +70 -0
- package/dist/es/models/dataprotection/v4/config/Category.js +286 -0
- package/dist/es/models/dataprotection/v4/config/ChangedRegions.d.ts +62 -0
- package/dist/es/models/dataprotection/v4/config/ChangedRegions.js +295 -0
- package/dist/es/models/dataprotection/v4/config/ChangedRegionsListApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/ChangedRegionsListApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/ClusterReference.d.ts +69 -0
- package/dist/es/models/dataprotection/v4/config/ClusterReference.js +285 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroup.d.ts +62 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroup.js +328 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupListApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupListApiResponse.js +341 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMember.d.ts +79 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMember.js +326 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMemberType.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMemberType.js +86 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrateApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrateApiResponse.js +318 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.d.ts +69 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.js +290 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupProjection.d.ts +9 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupProjection.js +134 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupRecoveryPointSpec.d.ts +67 -0
- package/dist/es/models/dataprotection/v4/config/ConsistencyGroupRecoveryPointSpec.js +285 -0
- package/dist/es/models/dataprotection/v4/config/CreateConsistencyGroupRecoveryPointApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/CreateConsistencyGroupRecoveryPointApiResponse.js +318 -0
- package/dist/es/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.js +318 -0
- package/dist/es/models/dataprotection/v4/config/DataProtectionInfo.d.ts +58 -0
- package/dist/es/models/dataprotection/v4/config/DataProtectionInfo.js +278 -0
- package/dist/es/models/dataprotection/v4/config/DataProtectionSiteReference.d.ts +62 -0
- package/dist/es/models/dataprotection/v4/config/DataProtectionSiteReference.js +287 -0
- package/dist/es/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.js +316 -0
- package/dist/es/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.js +318 -0
- package/dist/es/models/dataprotection/v4/config/DisasterRecoveryLocation.d.ts +68 -0
- package/dist/es/models/dataprotection/v4/config/DisasterRecoveryLocation.js +297 -0
- package/dist/es/models/dataprotection/v4/config/Disk.d.ts +62 -0
- package/dist/es/models/dataprotection/v4/config/Disk.js +285 -0
- package/dist/es/models/dataprotection/v4/config/DiskRecoveryPoint.d.ts +37 -0
- package/dist/es/models/dataprotection/v4/config/DiskRecoveryPoint.js +254 -0
- package/dist/es/models/dataprotection/v4/config/DiskRecoveryPointApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/DiskRecoveryPointApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/DiskRecoveryPointListApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/DiskRecoveryPointListApiResponse.js +336 -0
- package/dist/es/models/dataprotection/v4/config/EsxiVmOverrideSpec.d.ts +50 -0
- package/dist/es/models/dataprotection/v4/config/EsxiVmOverrideSpec.js +247 -0
- package/dist/es/models/dataprotection/v4/config/HardwareArchitecture.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/HardwareArchitecture.js +86 -0
- package/dist/es/models/dataprotection/v4/config/HostReference.d.ts +42 -0
- package/dist/es/models/dataprotection/v4/config/HostReference.js +264 -0
- package/dist/es/models/dataprotection/v4/config/HostType.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/HostType.js +80 -0
- package/dist/es/models/dataprotection/v4/config/HypervisorType.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/HypervisorType.js +92 -0
- package/dist/es/models/dataprotection/v4/config/IpAddress.d.ts +57 -0
- package/dist/es/models/dataprotection/v4/config/IpAddress.js +249 -0
- package/dist/es/models/dataprotection/v4/config/LocationReference.d.ts +50 -0
- package/dist/es/models/dataprotection/v4/config/LocationReference.js +247 -0
- package/dist/es/models/dataprotection/v4/config/PowerState.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/PowerState.js +86 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResource.d.ts +74 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResource.js +400 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceEntityType.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceEntityType.js +86 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceReplicationStatus.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceReplicationStatus.js +104 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.d.ts +69 -0
- package/dist/es/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.js +287 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryInfo.d.ts +50 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryInfo.js +255 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPoint.d.ts +104 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPoint.js +512 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointListApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointListApiResponse.js +336 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.js +318 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicationSpec.d.ts +43 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointReplicationSpec.js +263 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRestorationSpec.d.ts +74 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRestorationSpec.js +357 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.js +318 -0
- package/dist/es/models/dataprotection/v4/config/Regions.d.ts +62 -0
- package/dist/es/models/dataprotection/v4/config/Regions.js +282 -0
- package/dist/es/models/dataprotection/v4/config/ReplicationState.d.ts +82 -0
- package/dist/es/models/dataprotection/v4/config/ReplicationState.js +357 -0
- package/dist/es/models/dataprotection/v4/config/RestorableTimeRange.d.ts +62 -0
- package/dist/es/models/dataprotection/v4/config/RestorableTimeRange.js +282 -0
- package/dist/es/models/dataprotection/v4/config/SetExpirationTimeSpec.d.ts +57 -0
- package/dist/es/models/dataprotection/v4/config/SetExpirationTimeSpec.js +246 -0
- package/dist/es/models/dataprotection/v4/config/SiteReference.d.ts +62 -0
- package/dist/es/models/dataprotection/v4/config/SiteReference.js +288 -0
- package/dist/es/models/dataprotection/v4/config/Subnet.d.ts +48 -0
- package/dist/es/models/dataprotection/v4/config/Subnet.js +242 -0
- package/dist/es/models/dataprotection/v4/config/SyncedVolumeGroupByIdApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/SyncedVolumeGroupByIdApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/VMRecoveryPoint.d.ts +49 -0
- package/dist/es/models/dataprotection/v4/config/VMRecoveryPoint.js +295 -0
- package/dist/es/models/dataprotection/v4/config/VMRecoveryPointApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/VMRecoveryPointApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/VMRecoveryPointListApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/VMRecoveryPointListApiResponse.js +336 -0
- package/dist/es/models/dataprotection/v4/config/ValidateRecoveryPointResult.d.ts +79 -0
- package/dist/es/models/dataprotection/v4/config/ValidateRecoveryPointResult.js +320 -0
- package/dist/es/models/dataprotection/v4/config/ValidateRestoreVmRecoveryPointApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/ValidateRestoreVmRecoveryPointApiResponse.js +336 -0
- package/dist/es/models/dataprotection/v4/config/ValidationSeverity.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/ValidationSeverity.js +86 -0
- package/dist/es/models/dataprotection/v4/config/Vm.d.ts +140 -0
- package/dist/es/models/dataprotection/v4/config/Vm.js +545 -0
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestorationSpec.d.ts +70 -0
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestorationSpec.js +319 -0
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreApiResponse.js +318 -0
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.d.ts +76 -0
- package/dist/es/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.js +320 -0
- package/dist/es/models/dataprotection/v4/config/VmSubRecoveryPoint.d.ts +98 -0
- package/dist/es/models/dataprotection/v4/config/VmSubRecoveryPoint.js +405 -0
- package/dist/es/models/dataprotection/v4/config/VmSubRecoveryPointProjection.d.ts +9 -0
- package/dist/es/models/dataprotection/v4/config/VmSubRecoveryPointProjection.js +132 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroup.d.ts +62 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroup.js +285 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupOverrideSpec.d.ts +50 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupOverrideSpec.js +247 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.d.ts +49 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.js +295 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointListApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointListApiResponse.js +336 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestorationSpec.d.ts +62 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestorationSpec.js +288 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreApiResponse.js +318 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.d.ts +66 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.js +284 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupSubRecoveryPoint.d.ts +98 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupSubRecoveryPoint.js +407 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupSubRecoveryPointProjection.d.ts +9 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupSubRecoveryPointProjection.js +132 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupSyncContext.d.ts +58 -0
- package/dist/es/models/dataprotection/v4/config/VolumeGroupSyncContext.js +279 -0
- package/dist/es/models/dataprotection/v4/config/VpcReference.d.ts +69 -0
- package/dist/es/models/dataprotection/v4/config/VpcReference.js +285 -0
- package/dist/es/models/dataprotection/v4/config/Witness.d.ts +66 -0
- package/dist/es/models/dataprotection/v4/config/Witness.js +358 -0
- package/dist/es/models/dataprotection/v4/config/WitnessApiResponse.d.ts +59 -0
- package/dist/es/models/dataprotection/v4/config/WitnessApiResponse.js +314 -0
- package/dist/es/models/dataprotection/v4/config/WitnessAvailabilityStatus.d.ts +19 -0
- package/dist/es/models/dataprotection/v4/config/WitnessAvailabilityStatus.js +86 -0
- package/dist/es/models/dataprotection/v4/error/AppMessage.d.ts +100 -0
- package/dist/es/models/dataprotection/v4/error/AppMessage.js +422 -0
- package/dist/es/models/dataprotection/v4/error/ErrorResponse.d.ts +48 -0
- package/dist/es/models/dataprotection/v4/error/ErrorResponse.js +313 -0
- package/dist/es/models/dataprotection/v4/error/SchemaValidationError.d.ts +88 -0
- package/dist/es/models/dataprotection/v4/error/SchemaValidationError.js +394 -0
- package/dist/es/models/dataprotection/v4/error/SchemaValidationErrorMessage.d.ts +68 -0
- package/dist/es/models/dataprotection/v4/error/SchemaValidationErrorMessage.js +311 -0
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +50 -0
- package/dist/es/models/prism/v4/config/TaskReference.js +260 -0
- package/dist/es/models/storage/v4/config/Task.d.ts +50 -0
- package/dist/es/models/storage/v4/config/Task.js +254 -0
- package/dist/es/models/validation/ValidationError.d.ts +13 -0
- package/dist/es/models/validation/ValidationError.js +62 -0
- package/dist/es/models/validation/ValidationScopes.d.ts +9 -0
- package/dist/es/models/validation/ValidationScopes.js +39 -0
- package/dist/es/utils/ValidationUtils.d.ts +13 -0
- package/dist/es/utils/ValidationUtils.js +87 -0
- package/dist/lib/ApiClient.d.ts +158 -0
- package/dist/lib/ApiClient.js +1056 -0
- package/dist/lib/Paginable.d.ts +95 -0
- package/dist/lib/Paginable.js +289 -0
- package/dist/lib/apis/consistencygroup-endpoints.d.ts +98 -0
- package/dist/lib/apis/consistencygroup-endpoints.js +304 -0
- package/dist/lib/index.d.ts +214 -0
- package/dist/lib/index.js +853 -0
- package/dist/lib/models/common/v1/config/Flag.d.ts +58 -0
- package/dist/lib/models/common/v1/config/Flag.js +277 -0
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +62 -0
- package/dist/lib/models/common/v1/config/IPv4Address.js +290 -0
- package/dist/lib/models/common/v1/config/KVPair.d.ts +62 -0
- package/dist/lib/models/common/v1/config/KVPair.js +334 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +84 -0
- package/dist/lib/models/common/v1/config/Message.js +356 -0
- package/dist/lib/models/common/v1/config/MessageSeverity.d.ts +19 -0
- package/dist/lib/models/common/v1/config/MessageSeverity.js +92 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +50 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +245 -0
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +62 -0
- package/dist/lib/models/common/v1/response/ApiLink.js +282 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +98 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +440 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +42 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +273 -0
- package/dist/lib/models/dataprotection/v4/common/BaseRecoveryPoint.d.ts +100 -0
- package/dist/lib/models/dataprotection/v4/common/BaseRecoveryPoint.js +461 -0
- package/dist/lib/models/dataprotection/v4/common/RecoveryPointStatus.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/common/RecoveryPointStatus.js +92 -0
- package/dist/lib/models/dataprotection/v4/common/RecoveryPointType.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/common/RecoveryPointType.js +86 -0
- package/dist/lib/models/dataprotection/v4/common/VendorSpecificProperty.d.ts +70 -0
- package/dist/lib/models/dataprotection/v4/common/VendorSpecificProperty.js +286 -0
- package/dist/lib/models/dataprotection/v4/config/AhvVmOverrideSpec.d.ts +50 -0
- package/dist/lib/models/dataprotection/v4/config/AhvVmOverrideSpec.js +247 -0
- package/dist/lib/models/dataprotection/v4/config/Category.d.ts +70 -0
- package/dist/lib/models/dataprotection/v4/config/Category.js +286 -0
- package/dist/lib/models/dataprotection/v4/config/ChangedRegions.d.ts +62 -0
- package/dist/lib/models/dataprotection/v4/config/ChangedRegions.js +295 -0
- package/dist/lib/models/dataprotection/v4/config/ChangedRegionsListApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/ChangedRegionsListApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/ClusterReference.d.ts +69 -0
- package/dist/lib/models/dataprotection/v4/config/ClusterReference.js +285 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroup.d.ts +62 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroup.js +328 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupListApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupListApiResponse.js +341 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMember.d.ts +79 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMember.js +326 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMemberType.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMemberType.js +86 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrateApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrateApiResponse.js +318 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.d.ts +69 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupMigrationSpec.js +290 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupProjection.d.ts +9 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupProjection.js +134 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupRecoveryPointSpec.d.ts +67 -0
- package/dist/lib/models/dataprotection/v4/config/ConsistencyGroupRecoveryPointSpec.js +285 -0
- package/dist/lib/models/dataprotection/v4/config/CreateConsistencyGroupRecoveryPointApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/CreateConsistencyGroupRecoveryPointApiResponse.js +318 -0
- package/dist/lib/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/CreateRecoveryPointApiResponse.js +318 -0
- package/dist/lib/models/dataprotection/v4/config/DataProtectionInfo.d.ts +58 -0
- package/dist/lib/models/dataprotection/v4/config/DataProtectionInfo.js +278 -0
- package/dist/lib/models/dataprotection/v4/config/DataProtectionSiteReference.d.ts +62 -0
- package/dist/lib/models/dataprotection/v4/config/DataProtectionSiteReference.js +287 -0
- package/dist/lib/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/DeleteConsistencyGroupApiResponse.js +316 -0
- package/dist/lib/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/DeleteRecoveryPointApiResponse.js +318 -0
- package/dist/lib/models/dataprotection/v4/config/DisasterRecoveryLocation.d.ts +68 -0
- package/dist/lib/models/dataprotection/v4/config/DisasterRecoveryLocation.js +297 -0
- package/dist/lib/models/dataprotection/v4/config/Disk.d.ts +62 -0
- package/dist/lib/models/dataprotection/v4/config/Disk.js +285 -0
- package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPoint.d.ts +37 -0
- package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPoint.js +254 -0
- package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPointApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPointApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPointListApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/DiskRecoveryPointListApiResponse.js +336 -0
- package/dist/lib/models/dataprotection/v4/config/EsxiVmOverrideSpec.d.ts +50 -0
- package/dist/lib/models/dataprotection/v4/config/EsxiVmOverrideSpec.js +247 -0
- package/dist/lib/models/dataprotection/v4/config/HardwareArchitecture.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/HardwareArchitecture.js +86 -0
- package/dist/lib/models/dataprotection/v4/config/HostReference.d.ts +42 -0
- package/dist/lib/models/dataprotection/v4/config/HostReference.js +264 -0
- package/dist/lib/models/dataprotection/v4/config/HostType.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/HostType.js +80 -0
- package/dist/lib/models/dataprotection/v4/config/HypervisorType.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/HypervisorType.js +92 -0
- package/dist/lib/models/dataprotection/v4/config/IpAddress.d.ts +57 -0
- package/dist/lib/models/dataprotection/v4/config/IpAddress.js +249 -0
- package/dist/lib/models/dataprotection/v4/config/LocationReference.d.ts +50 -0
- package/dist/lib/models/dataprotection/v4/config/LocationReference.js +247 -0
- package/dist/lib/models/dataprotection/v4/config/PowerState.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/PowerState.js +86 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResource.d.ts +74 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResource.js +400 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceEntityType.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceEntityType.js +86 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourcePromoteApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceReplicationStatus.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceReplicationStatus.js +104 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.d.ts +69 -0
- package/dist/lib/models/dataprotection/v4/config/ProtectedResourceRestoreSpec.js +287 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryInfo.d.ts +50 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryInfo.js +255 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPoint.d.ts +104 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPoint.js +512 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointListApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointListApiResponse.js +336 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicateApiResponse.js +318 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicationSpec.d.ts +43 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointReplicationSpec.js +263 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestorationSpec.d.ts +74 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestorationSpec.js +357 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/RecoveryPointRestoreApiResponse.js +318 -0
- package/dist/lib/models/dataprotection/v4/config/Regions.d.ts +62 -0
- package/dist/lib/models/dataprotection/v4/config/Regions.js +282 -0
- package/dist/lib/models/dataprotection/v4/config/ReplicationState.d.ts +82 -0
- package/dist/lib/models/dataprotection/v4/config/ReplicationState.js +357 -0
- package/dist/lib/models/dataprotection/v4/config/RestorableTimeRange.d.ts +62 -0
- package/dist/lib/models/dataprotection/v4/config/RestorableTimeRange.js +282 -0
- package/dist/lib/models/dataprotection/v4/config/SetExpirationTimeSpec.d.ts +57 -0
- package/dist/lib/models/dataprotection/v4/config/SetExpirationTimeSpec.js +246 -0
- package/dist/lib/models/dataprotection/v4/config/SiteReference.d.ts +62 -0
- package/dist/lib/models/dataprotection/v4/config/SiteReference.js +288 -0
- package/dist/lib/models/dataprotection/v4/config/Subnet.d.ts +48 -0
- package/dist/lib/models/dataprotection/v4/config/Subnet.js +242 -0
- package/dist/lib/models/dataprotection/v4/config/SyncedVolumeGroupByIdApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/SyncedVolumeGroupByIdApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/SynchronousReplicaPromoteApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/UpdateRecoveryPointExpirationTimeApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/VMRecoveryPoint.d.ts +49 -0
- package/dist/lib/models/dataprotection/v4/config/VMRecoveryPoint.js +295 -0
- package/dist/lib/models/dataprotection/v4/config/VMRecoveryPointApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/VMRecoveryPointApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/VMRecoveryPointListApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/VMRecoveryPointListApiResponse.js +336 -0
- package/dist/lib/models/dataprotection/v4/config/ValidateRecoveryPointResult.d.ts +79 -0
- package/dist/lib/models/dataprotection/v4/config/ValidateRecoveryPointResult.js +320 -0
- package/dist/lib/models/dataprotection/v4/config/ValidateRestoreVmRecoveryPointApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/ValidateRestoreVmRecoveryPointApiResponse.js +336 -0
- package/dist/lib/models/dataprotection/v4/config/ValidationSeverity.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/ValidationSeverity.js +86 -0
- package/dist/lib/models/dataprotection/v4/config/Vm.d.ts +140 -0
- package/dist/lib/models/dataprotection/v4/config/Vm.js +545 -0
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestorationSpec.d.ts +70 -0
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestorationSpec.js +319 -0
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreApiResponse.js +318 -0
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.d.ts +76 -0
- package/dist/lib/models/dataprotection/v4/config/VmRecoveryPointRestoreOverride.js +320 -0
- package/dist/lib/models/dataprotection/v4/config/VmSubRecoveryPoint.d.ts +98 -0
- package/dist/lib/models/dataprotection/v4/config/VmSubRecoveryPoint.js +405 -0
- package/dist/lib/models/dataprotection/v4/config/VmSubRecoveryPointProjection.d.ts +9 -0
- package/dist/lib/models/dataprotection/v4/config/VmSubRecoveryPointProjection.js +132 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroup.d.ts +62 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroup.js +285 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupOverrideSpec.d.ts +50 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupOverrideSpec.js +247 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.d.ts +49 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPoint.js +295 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointListApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointListApiResponse.js +336 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestorationSpec.d.ts +62 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestorationSpec.js +288 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreApiResponse.js +318 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.d.ts +66 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupRecoveryPointRestoreOverride.js +284 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupSubRecoveryPoint.d.ts +98 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupSubRecoveryPoint.js +407 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupSubRecoveryPointProjection.d.ts +9 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupSubRecoveryPointProjection.js +132 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupSyncContext.d.ts +58 -0
- package/dist/lib/models/dataprotection/v4/config/VolumeGroupSyncContext.js +279 -0
- package/dist/lib/models/dataprotection/v4/config/VpcReference.d.ts +69 -0
- package/dist/lib/models/dataprotection/v4/config/VpcReference.js +285 -0
- package/dist/lib/models/dataprotection/v4/config/Witness.d.ts +66 -0
- package/dist/lib/models/dataprotection/v4/config/Witness.js +358 -0
- package/dist/lib/models/dataprotection/v4/config/WitnessApiResponse.d.ts +59 -0
- package/dist/lib/models/dataprotection/v4/config/WitnessApiResponse.js +314 -0
- package/dist/lib/models/dataprotection/v4/config/WitnessAvailabilityStatus.d.ts +19 -0
- package/dist/lib/models/dataprotection/v4/config/WitnessAvailabilityStatus.js +86 -0
- package/dist/lib/models/dataprotection/v4/error/AppMessage.d.ts +100 -0
- package/dist/lib/models/dataprotection/v4/error/AppMessage.js +422 -0
- package/dist/lib/models/dataprotection/v4/error/ErrorResponse.d.ts +48 -0
- package/dist/lib/models/dataprotection/v4/error/ErrorResponse.js +313 -0
- package/dist/lib/models/dataprotection/v4/error/SchemaValidationError.d.ts +88 -0
- package/dist/lib/models/dataprotection/v4/error/SchemaValidationError.js +394 -0
- package/dist/lib/models/dataprotection/v4/error/SchemaValidationErrorMessage.d.ts +68 -0
- package/dist/lib/models/dataprotection/v4/error/SchemaValidationErrorMessage.js +311 -0
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +50 -0
- package/dist/lib/models/prism/v4/config/TaskReference.js +260 -0
- package/dist/lib/models/storage/v4/config/Task.d.ts +50 -0
- package/dist/lib/models/storage/v4/config/Task.js +254 -0
- package/dist/lib/models/validation/ValidationError.d.ts +13 -0
- package/dist/lib/models/validation/ValidationError.js +62 -0
- package/dist/lib/models/validation/ValidationScopes.d.ts +9 -0
- package/dist/lib/models/validation/ValidationScopes.js +39 -0
- package/dist/lib/utils/ValidationUtils.d.ts +13 -0
- package/dist/lib/utils/ValidationUtils.js +87 -0
- package/package.json +52 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The RecoveryPoint model module.
|
|
3
|
+
* @module Ntnx/RecoveryPoint
|
|
4
|
+
* @version 4.0.1-alpha-4
|
|
5
|
+
* @class RecoveryPoint
|
|
6
|
+
*/
|
|
7
|
+
export default class RecoveryPoint extends BaseRecoveryPoint {
|
|
8
|
+
/**
|
|
9
|
+
* Returns A read only field inserted into Recovery point at the time of Recovery point creation, indicating the external identifier of the user who created this Recovery point.
|
|
10
|
+
* @return {}
|
|
11
|
+
*/
|
|
12
|
+
getOwnerExtId(): any;
|
|
13
|
+
/**
|
|
14
|
+
* Sets A read only field inserted into Recovery point at the time of Recovery point creation, indicating the external identifier of the user who created this Recovery point.
|
|
15
|
+
* @param {} ownerExtId A read only field inserted into Recovery point at the time of Recovery point creation, indicating the external identifier of the user who created this Recovery point.
|
|
16
|
+
*/
|
|
17
|
+
setOwnerExtId(ownerExtId: any): void;
|
|
18
|
+
ownerExtId: any;
|
|
19
|
+
/**
|
|
20
|
+
* Returns List of location references where the VM or volume group Recovery points are a part of the specified Recovery point.
|
|
21
|
+
* @return {}
|
|
22
|
+
*/
|
|
23
|
+
getLocationReferences(): any;
|
|
24
|
+
/**
|
|
25
|
+
* Sets List of location references where the VM or volume group Recovery points are a part of the specified Recovery point.
|
|
26
|
+
* @param {} locationReferences List of location references where the VM or volume group Recovery points are a part of the specified Recovery point.
|
|
27
|
+
*/
|
|
28
|
+
setLocationReferences(locationReferences: any): void;
|
|
29
|
+
locationReferences: any;
|
|
30
|
+
/**
|
|
31
|
+
* Returns List of VM external identifiers that are intended to be captured as part of the Recovery point.
|
|
32
|
+
* @return {}
|
|
33
|
+
*/
|
|
34
|
+
getVmReferenceList(): any;
|
|
35
|
+
/**
|
|
36
|
+
* Sets List of VM external identifiers that are intended to be captured as part of the Recovery point.
|
|
37
|
+
* @param {} vmReferenceList List of VM external identifiers that are intended to be captured as part of the Recovery point.
|
|
38
|
+
*/
|
|
39
|
+
setVmReferenceList(vmReferenceList: any): void;
|
|
40
|
+
vmReferenceList: any;
|
|
41
|
+
/**
|
|
42
|
+
* Returns List of volume group external identifiers that are intended to be captured as part of the Recovery point.
|
|
43
|
+
* @return {}
|
|
44
|
+
*/
|
|
45
|
+
getVolumeGroupReferenceList(): any;
|
|
46
|
+
/**
|
|
47
|
+
* Sets List of volume group external identifiers that are intended to be captured as part of the Recovery point.
|
|
48
|
+
* @param {} volumeGroupReferenceList List of volume group external identifiers that are intended to be captured as part of the Recovery point.
|
|
49
|
+
*/
|
|
50
|
+
setVolumeGroupReferenceList(volumeGroupReferenceList: any): void;
|
|
51
|
+
volumeGroupReferenceList: any;
|
|
52
|
+
/**
|
|
53
|
+
* Returns List of VM Recovery points that are a part of the specified top-level Recovery point.
|
|
54
|
+
* @return {}
|
|
55
|
+
*/
|
|
56
|
+
getVmRecoveryPoints(): any;
|
|
57
|
+
/**
|
|
58
|
+
* Sets List of VM Recovery points that are a part of the specified top-level Recovery point.
|
|
59
|
+
* @param {} vmRecoveryPoints List of VM Recovery points that are a part of the specified top-level Recovery point.
|
|
60
|
+
*/
|
|
61
|
+
setVmRecoveryPoints(vmRecoveryPoints: any): void;
|
|
62
|
+
vmRecoveryPoints: any;
|
|
63
|
+
/**
|
|
64
|
+
* Returns List of volume group Recovery points that are a part of the specified top-level Recovery point.
|
|
65
|
+
* @return {}
|
|
66
|
+
*/
|
|
67
|
+
getVolumeGroupRecoveryPoints(): any;
|
|
68
|
+
/**
|
|
69
|
+
* Sets List of volume group Recovery points that are a part of the specified top-level Recovery point.
|
|
70
|
+
* @param {} volumeGroupRecoveryPoints List of volume group Recovery points that are a part of the specified top-level Recovery point.
|
|
71
|
+
*/
|
|
72
|
+
setVolumeGroupRecoveryPoints(volumeGroupRecoveryPoints: any): void;
|
|
73
|
+
volumeGroupRecoveryPoints: any;
|
|
74
|
+
toJson(forMutation: any): {
|
|
75
|
+
$reserved: {
|
|
76
|
+
$fqObjectType: string; /**
|
|
77
|
+
* Constructs a new <code>RecoveryPoint</code>.
|
|
78
|
+
* Details about the Recovery point along with all the captured VM and volume group Recovery point(s).
|
|
79
|
+
* @alias module:Ntnx/RecoveryPoint
|
|
80
|
+
* @extends module:Ntnx/BaseRecoveryPoint
|
|
81
|
+
*/
|
|
82
|
+
};
|
|
83
|
+
$objectType: string;
|
|
84
|
+
$unknownFields: {};
|
|
85
|
+
tenantId?: any;
|
|
86
|
+
links?: any;
|
|
87
|
+
extId?: any;
|
|
88
|
+
vendorSpecificProperties?: any;
|
|
89
|
+
recoveryPointType?: any;
|
|
90
|
+
status?: any;
|
|
91
|
+
expirationTime?: any;
|
|
92
|
+
creationTime?: any;
|
|
93
|
+
name?: any;
|
|
94
|
+
locationAgnosticId?: any;
|
|
95
|
+
volumeGroupRecoveryPoints?: any;
|
|
96
|
+
vmRecoveryPoints?: any;
|
|
97
|
+
volumeGroupReferenceList?: any;
|
|
98
|
+
vmReferenceList?: any;
|
|
99
|
+
locationReferences?: any;
|
|
100
|
+
ownerExtId?: any;
|
|
101
|
+
};
|
|
102
|
+
#private;
|
|
103
|
+
}
|
|
104
|
+
import BaseRecoveryPoint from "../common/BaseRecoveryPoint";
|
|
@@ -0,0 +1,512 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _BaseRecoveryPoint2 = _interopRequireDefault(require("../common/BaseRecoveryPoint"));
|
|
8
|
+
var _RecoveryPointStatus = _interopRequireDefault(require("../common/RecoveryPointStatus"));
|
|
9
|
+
var _RecoveryPointType = _interopRequireDefault(require("../common/RecoveryPointType"));
|
|
10
|
+
var _VendorSpecificProperty = _interopRequireDefault(require("../common/VendorSpecificProperty"));
|
|
11
|
+
var _LocationReference = _interopRequireDefault(require("./LocationReference"));
|
|
12
|
+
var _VmSubRecoveryPoint = _interopRequireDefault(require("./VmSubRecoveryPoint"));
|
|
13
|
+
var _VolumeGroupSubRecoveryPoint = _interopRequireDefault(require("./VolumeGroupSubRecoveryPoint"));
|
|
14
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
15
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
16
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
17
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
18
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
19
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
20
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
21
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
22
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
23
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
24
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
25
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
26
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
27
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
28
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
29
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
30
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
31
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
32
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
33
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
34
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
35
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
36
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
37
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
38
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
39
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
40
|
+
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
|
41
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
|
|
42
|
+
* Nutanix Dataprotection Versioned APIs
|
|
43
|
+
*
|
|
44
|
+
* OpenAPI spec version: 4.0.1-alpha-4
|
|
45
|
+
*
|
|
46
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
47
|
+
*
|
|
48
|
+
* Open API Dev Platform Codegen version: 16.8.0.6343-RELEASE
|
|
49
|
+
*
|
|
50
|
+
* Do not edit the class manually.
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
/**
|
|
54
|
+
* The RecoveryPoint model module.
|
|
55
|
+
* @module Ntnx/RecoveryPoint
|
|
56
|
+
* @version 4.0.1-alpha-4
|
|
57
|
+
* @class RecoveryPoint
|
|
58
|
+
*/
|
|
59
|
+
var _toJsonMapType = /*#__PURE__*/new WeakSet();
|
|
60
|
+
var RecoveryPoint = /*#__PURE__*/function (_BaseRecoveryPoint) {
|
|
61
|
+
_inherits(RecoveryPoint, _BaseRecoveryPoint);
|
|
62
|
+
var _super = _createSuper(RecoveryPoint);
|
|
63
|
+
/**
|
|
64
|
+
* Constructs a new <code>RecoveryPoint</code>.
|
|
65
|
+
* Details about the Recovery point along with all the captured VM and volume group Recovery point(s).
|
|
66
|
+
* @alias module:Ntnx/RecoveryPoint
|
|
67
|
+
* @extends module:Ntnx/BaseRecoveryPoint
|
|
68
|
+
*/
|
|
69
|
+
function RecoveryPoint() {
|
|
70
|
+
var _this;
|
|
71
|
+
_classCallCheck(this, RecoveryPoint);
|
|
72
|
+
_this = _super.call(this);
|
|
73
|
+
/*
|
|
74
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
75
|
+
* @param {Object} obj
|
|
76
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
77
|
+
* Otherwise, just returns the input object.
|
|
78
|
+
*/
|
|
79
|
+
_classPrivateMethodInitSpec(_assertThisInitialized(_this), _toJsonMapType);
|
|
80
|
+
_this.$objectType = "dataprotection.v4.config.RecoveryPoint";
|
|
81
|
+
_this.$reserved = {
|
|
82
|
+
'$fqObjectType': "dataprotection.v4.r0.a4.config.RecoveryPoint"
|
|
83
|
+
};
|
|
84
|
+
_this.$unknownFields = {};
|
|
85
|
+
return _this;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Constructs a <code>RecoveryPoint</code> from a plain JavaScript object, optionally creating a new instance.
|
|
90
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
91
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
92
|
+
* @param {module:Ntnx/RecoveryPoint} obj Optional instance to populate.
|
|
93
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
94
|
+
* @return {module:Ntnx/RecoveryPoint} The populated <code>RecoveryPoint</code> instance.
|
|
95
|
+
*/
|
|
96
|
+
_createClass(RecoveryPoint, [{
|
|
97
|
+
key: "getOwnerExtId",
|
|
98
|
+
value:
|
|
99
|
+
/**
|
|
100
|
+
* Returns A read only field inserted into Recovery point at the time of Recovery point creation, indicating the external identifier of the user who created this Recovery point.
|
|
101
|
+
* @return {}
|
|
102
|
+
*/
|
|
103
|
+
function getOwnerExtId() {
|
|
104
|
+
return this.ownerExtId;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Sets A read only field inserted into Recovery point at the time of Recovery point creation, indicating the external identifier of the user who created this Recovery point.
|
|
109
|
+
* @param {} ownerExtId A read only field inserted into Recovery point at the time of Recovery point creation, indicating the external identifier of the user who created this Recovery point.
|
|
110
|
+
*/
|
|
111
|
+
}, {
|
|
112
|
+
key: "setOwnerExtId",
|
|
113
|
+
value: function setOwnerExtId(ownerExtId) {
|
|
114
|
+
this.ownerExtId = ownerExtId;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Returns List of location references where the VM or volume group Recovery points are a part of the specified Recovery point.
|
|
119
|
+
* @return {}
|
|
120
|
+
*/
|
|
121
|
+
}, {
|
|
122
|
+
key: "getLocationReferences",
|
|
123
|
+
value: function getLocationReferences() {
|
|
124
|
+
return this.locationReferences;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Sets List of location references where the VM or volume group Recovery points are a part of the specified Recovery point.
|
|
129
|
+
* @param {} locationReferences List of location references where the VM or volume group Recovery points are a part of the specified Recovery point.
|
|
130
|
+
*/
|
|
131
|
+
}, {
|
|
132
|
+
key: "setLocationReferences",
|
|
133
|
+
value: function setLocationReferences(locationReferences) {
|
|
134
|
+
this.locationReferences = locationReferences;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Returns List of VM external identifiers that are intended to be captured as part of the Recovery point.
|
|
139
|
+
* @return {}
|
|
140
|
+
*/
|
|
141
|
+
}, {
|
|
142
|
+
key: "getVmReferenceList",
|
|
143
|
+
value: function getVmReferenceList() {
|
|
144
|
+
return this.vmReferenceList;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Sets List of VM external identifiers that are intended to be captured as part of the Recovery point.
|
|
149
|
+
* @param {} vmReferenceList List of VM external identifiers that are intended to be captured as part of the Recovery point.
|
|
150
|
+
*/
|
|
151
|
+
}, {
|
|
152
|
+
key: "setVmReferenceList",
|
|
153
|
+
value: function setVmReferenceList(vmReferenceList) {
|
|
154
|
+
this.vmReferenceList = vmReferenceList;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Returns List of volume group external identifiers that are intended to be captured as part of the Recovery point.
|
|
159
|
+
* @return {}
|
|
160
|
+
*/
|
|
161
|
+
}, {
|
|
162
|
+
key: "getVolumeGroupReferenceList",
|
|
163
|
+
value: function getVolumeGroupReferenceList() {
|
|
164
|
+
return this.volumeGroupReferenceList;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Sets List of volume group external identifiers that are intended to be captured as part of the Recovery point.
|
|
169
|
+
* @param {} volumeGroupReferenceList List of volume group external identifiers that are intended to be captured as part of the Recovery point.
|
|
170
|
+
*/
|
|
171
|
+
}, {
|
|
172
|
+
key: "setVolumeGroupReferenceList",
|
|
173
|
+
value: function setVolumeGroupReferenceList(volumeGroupReferenceList) {
|
|
174
|
+
this.volumeGroupReferenceList = volumeGroupReferenceList;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Returns List of VM Recovery points that are a part of the specified top-level Recovery point.
|
|
179
|
+
* @return {}
|
|
180
|
+
*/
|
|
181
|
+
}, {
|
|
182
|
+
key: "getVmRecoveryPoints",
|
|
183
|
+
value: function getVmRecoveryPoints() {
|
|
184
|
+
return this.vmRecoveryPoints;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Sets List of VM Recovery points that are a part of the specified top-level Recovery point.
|
|
189
|
+
* @param {} vmRecoveryPoints List of VM Recovery points that are a part of the specified top-level Recovery point.
|
|
190
|
+
*/
|
|
191
|
+
}, {
|
|
192
|
+
key: "setVmRecoveryPoints",
|
|
193
|
+
value: function setVmRecoveryPoints(vmRecoveryPoints) {
|
|
194
|
+
this.vmRecoveryPoints = vmRecoveryPoints;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Returns List of volume group Recovery points that are a part of the specified top-level Recovery point.
|
|
199
|
+
* @return {}
|
|
200
|
+
*/
|
|
201
|
+
}, {
|
|
202
|
+
key: "getVolumeGroupRecoveryPoints",
|
|
203
|
+
value: function getVolumeGroupRecoveryPoints() {
|
|
204
|
+
return this.volumeGroupRecoveryPoints;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Sets List of volume group Recovery points that are a part of the specified top-level Recovery point.
|
|
209
|
+
* @param {} volumeGroupRecoveryPoints List of volume group Recovery points that are a part of the specified top-level Recovery point.
|
|
210
|
+
*/
|
|
211
|
+
}, {
|
|
212
|
+
key: "setVolumeGroupRecoveryPoints",
|
|
213
|
+
value: function setVolumeGroupRecoveryPoints(volumeGroupRecoveryPoints) {
|
|
214
|
+
this.volumeGroupRecoveryPoints = volumeGroupRecoveryPoints;
|
|
215
|
+
}
|
|
216
|
+
}, {
|
|
217
|
+
key: "toJson",
|
|
218
|
+
value: function toJson(forMutation) {
|
|
219
|
+
if (forMutation === false) {
|
|
220
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getOwnerExtId() !== 'undefined' && this.getOwnerExtId() !== null ? {
|
|
221
|
+
'ownerExtId': this.getOwnerExtId()
|
|
222
|
+
} : {}), typeof this.getLocationReferences() !== 'undefined' && this.getLocationReferences() !== null ? {
|
|
223
|
+
'locationReferences': this.getLocationReferences().map(function (item) {
|
|
224
|
+
return item.toJson(false);
|
|
225
|
+
})
|
|
226
|
+
} : {}), typeof this.getVmReferenceList() !== 'undefined' && this.getVmReferenceList() !== null ? {
|
|
227
|
+
'vmReferenceList': this.getVmReferenceList()
|
|
228
|
+
} : {}), typeof this.getVolumeGroupReferenceList() !== 'undefined' && this.getVolumeGroupReferenceList() !== null ? {
|
|
229
|
+
'volumeGroupReferenceList': this.getVolumeGroupReferenceList()
|
|
230
|
+
} : {}), typeof this.getVmRecoveryPoints() !== 'undefined' && this.getVmRecoveryPoints() !== null ? {
|
|
231
|
+
'vmRecoveryPoints': this.getVmRecoveryPoints().map(function (item) {
|
|
232
|
+
return item.toJson(false);
|
|
233
|
+
})
|
|
234
|
+
} : {}), typeof this.getVolumeGroupRecoveryPoints() !== 'undefined' && this.getVolumeGroupRecoveryPoints() !== null ? {
|
|
235
|
+
'volumeGroupRecoveryPoints': this.getVolumeGroupRecoveryPoints().map(function (item) {
|
|
236
|
+
return item.toJson(false);
|
|
237
|
+
})
|
|
238
|
+
} : {}), typeof this.getLocationAgnosticId() !== 'undefined' && this.getLocationAgnosticId() !== null ? {
|
|
239
|
+
'locationAgnosticId': this.getLocationAgnosticId()
|
|
240
|
+
} : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
241
|
+
'name': this.getName()
|
|
242
|
+
} : {}), typeof this.getCreationTime() !== 'undefined' && this.getCreationTime() !== null ? {
|
|
243
|
+
'creationTime': this.getCreationTime()
|
|
244
|
+
} : {}), typeof this.getExpirationTime() !== 'undefined' && this.getExpirationTime() !== null ? {
|
|
245
|
+
'expirationTime': this.getExpirationTime()
|
|
246
|
+
} : {}), typeof this.getStatus() !== 'undefined' && this.getStatus() !== null ? {
|
|
247
|
+
'status': this.getStatus()
|
|
248
|
+
} : {}), typeof this.getRecoveryPointType() !== 'undefined' && this.getRecoveryPointType() !== null ? {
|
|
249
|
+
'recoveryPointType': this.getRecoveryPointType()
|
|
250
|
+
} : {}), typeof this.getVendorSpecificProperties() !== 'undefined' && this.getVendorSpecificProperties() !== null ? {
|
|
251
|
+
'vendorSpecificProperties': this.getVendorSpecificProperties().map(function (item) {
|
|
252
|
+
return item.toJson(false);
|
|
253
|
+
})
|
|
254
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
255
|
+
'extId': this.getExtId()
|
|
256
|
+
} : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
257
|
+
'links': this.getLinks().map(function (item) {
|
|
258
|
+
return item.toJson(false);
|
|
259
|
+
})
|
|
260
|
+
} : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
261
|
+
'tenantId': this.getTenantId()
|
|
262
|
+
} : {}), {}, {
|
|
263
|
+
'$reserved': this.get$Reserved(),
|
|
264
|
+
'$objectType': this.get$ObjectType(),
|
|
265
|
+
'$unknownFields': this.get$UnknownFields()
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getVmReferenceList() !== 'undefined' && this.getVmReferenceList() !== null ? {
|
|
269
|
+
'vmReferenceList': this.getVmReferenceList()
|
|
270
|
+
} : {}), typeof this.getVolumeGroupReferenceList() !== 'undefined' && this.getVolumeGroupReferenceList() !== null ? {
|
|
271
|
+
'volumeGroupReferenceList': this.getVolumeGroupReferenceList()
|
|
272
|
+
} : {}), typeof this.getVmRecoveryPoints() !== 'undefined' && this.getVmRecoveryPoints() !== null ? {
|
|
273
|
+
'vmRecoveryPoints': this.getVmRecoveryPoints().map(function (item) {
|
|
274
|
+
return item.toJson(false);
|
|
275
|
+
})
|
|
276
|
+
} : {}), typeof this.getVolumeGroupRecoveryPoints() !== 'undefined' && this.getVolumeGroupRecoveryPoints() !== null ? {
|
|
277
|
+
'volumeGroupRecoveryPoints': this.getVolumeGroupRecoveryPoints().map(function (item) {
|
|
278
|
+
return item.toJson(false);
|
|
279
|
+
})
|
|
280
|
+
} : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
281
|
+
'name': this.getName()
|
|
282
|
+
} : {}), typeof this.getExpirationTime() !== 'undefined' && this.getExpirationTime() !== null ? {
|
|
283
|
+
'expirationTime': this.getExpirationTime()
|
|
284
|
+
} : {}), typeof this.getStatus() !== 'undefined' && this.getStatus() !== null ? {
|
|
285
|
+
'status': this.getStatus()
|
|
286
|
+
} : {}), typeof this.getRecoveryPointType() !== 'undefined' && this.getRecoveryPointType() !== null ? {
|
|
287
|
+
'recoveryPointType': this.getRecoveryPointType()
|
|
288
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
289
|
+
'extId': this.getExtId()
|
|
290
|
+
} : {}), {}, {
|
|
291
|
+
'$reserved': this.get$Reserved(),
|
|
292
|
+
'$objectType': this.get$ObjectType(),
|
|
293
|
+
'$unknownFields': this.get$UnknownFields()
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
}, {
|
|
297
|
+
key: "validate",
|
|
298
|
+
value: function validate(scope, properties) {
|
|
299
|
+
var _this2 = this;
|
|
300
|
+
var propList = [];
|
|
301
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
302
|
+
//cases validate() and validate(scope)
|
|
303
|
+
propList = [];
|
|
304
|
+
} else if (arguments.length === 1) {
|
|
305
|
+
//case validate(properties)
|
|
306
|
+
propList = arguments[0];
|
|
307
|
+
scope = null;
|
|
308
|
+
} else {
|
|
309
|
+
//case validate(scope, properties)
|
|
310
|
+
propList = arguments[1];
|
|
311
|
+
}
|
|
312
|
+
var res = [];
|
|
313
|
+
var err = null;
|
|
314
|
+
propList.forEach(function (property) {
|
|
315
|
+
err = _this2.validateProperty(property, scope);
|
|
316
|
+
if (err) {
|
|
317
|
+
res.push(err);
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
return new Promise(function (resolve, reject) {
|
|
321
|
+
if (res.length !== 0) {
|
|
322
|
+
reject(err);
|
|
323
|
+
} else {
|
|
324
|
+
resolve();
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
}, {
|
|
329
|
+
key: "validateProperty",
|
|
330
|
+
value: function validateProperty(scope, property) {
|
|
331
|
+
if (property === "ownerExtId") {
|
|
332
|
+
if (typeof this.ownerExtId === 'undefined' || this.ownerExtId === null) {
|
|
333
|
+
return new _ValidationError["default"]("ownerExtId", "undefined or null");
|
|
334
|
+
}
|
|
335
|
+
if (!_ValidationUtils["default"].validatePattern(this.ownerExtId, /^[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}$/)) {
|
|
336
|
+
return new _ValidationError["default"]("ownerExtId", "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}$/");
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
if (property === "locationReferences") {
|
|
340
|
+
if (typeof this.locationReferences === 'undefined' || this.locationReferences === null) {
|
|
341
|
+
return new _ValidationError["default"]("locationReferences", "undefined or null");
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
if (property === "vmReferenceList") {
|
|
345
|
+
if (typeof this.vmReferenceList === 'undefined' || this.vmReferenceList === null) {
|
|
346
|
+
return new _ValidationError["default"]("vmReferenceList", "undefined or null");
|
|
347
|
+
}
|
|
348
|
+
if (!_ValidationUtils["default"].validateMaxItems(this.vmReferenceList, 64)) {
|
|
349
|
+
return new _ValidationError["default"]("vmReferenceList", "does not satisfy required maxItems constraint: 64");
|
|
350
|
+
}
|
|
351
|
+
if (!_ValidationUtils["default"].validateMinItems(this.vmReferenceList, 1)) {
|
|
352
|
+
return new _ValidationError["default"]("vmReferenceList", "does not satisfy required minItems constraint: 1");
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
if (property === "volumeGroupReferenceList") {
|
|
356
|
+
if (typeof this.volumeGroupReferenceList === 'undefined' || this.volumeGroupReferenceList === null) {
|
|
357
|
+
return new _ValidationError["default"]("volumeGroupReferenceList", "undefined or null");
|
|
358
|
+
}
|
|
359
|
+
if (!_ValidationUtils["default"].validateMaxItems(this.volumeGroupReferenceList, 64)) {
|
|
360
|
+
return new _ValidationError["default"]("volumeGroupReferenceList", "does not satisfy required maxItems constraint: 64");
|
|
361
|
+
}
|
|
362
|
+
if (!_ValidationUtils["default"].validateMinItems(this.volumeGroupReferenceList, 1)) {
|
|
363
|
+
return new _ValidationError["default"]("volumeGroupReferenceList", "does not satisfy required minItems constraint: 1");
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
if (property === "vmRecoveryPoints") {
|
|
367
|
+
if (typeof this.vmRecoveryPoints === 'undefined' || this.vmRecoveryPoints === null) {
|
|
368
|
+
return new _ValidationError["default"]("vmRecoveryPoints", "undefined or null");
|
|
369
|
+
}
|
|
370
|
+
if (!_ValidationUtils["default"].validateMaxItems(this.vmRecoveryPoints, 64)) {
|
|
371
|
+
return new _ValidationError["default"]("vmRecoveryPoints", "does not satisfy required maxItems constraint: 64");
|
|
372
|
+
}
|
|
373
|
+
if (!_ValidationUtils["default"].validateMinItems(this.vmRecoveryPoints, 1)) {
|
|
374
|
+
return new _ValidationError["default"]("vmRecoveryPoints", "does not satisfy required minItems constraint: 1");
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
if (property === "volumeGroupRecoveryPoints") {
|
|
378
|
+
if (typeof this.volumeGroupRecoveryPoints === 'undefined' || this.volumeGroupRecoveryPoints === null) {
|
|
379
|
+
return new _ValidationError["default"]("volumeGroupRecoveryPoints", "undefined or null");
|
|
380
|
+
}
|
|
381
|
+
if (!_ValidationUtils["default"].validateMaxItems(this.volumeGroupRecoveryPoints, 64)) {
|
|
382
|
+
return new _ValidationError["default"]("volumeGroupRecoveryPoints", "does not satisfy required maxItems constraint: 64");
|
|
383
|
+
}
|
|
384
|
+
if (!_ValidationUtils["default"].validateMinItems(this.volumeGroupRecoveryPoints, 1)) {
|
|
385
|
+
return new _ValidationError["default"]("volumeGroupRecoveryPoints", "does not satisfy required minItems constraint: 1");
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
389
|
+
}
|
|
390
|
+
}], [{
|
|
391
|
+
key: "constructFromObject",
|
|
392
|
+
value: function constructFromObject(data, obj) {
|
|
393
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
394
|
+
var items, item, i, itemArr, discriminator;
|
|
395
|
+
if (data) {
|
|
396
|
+
obj = obj || new RecoveryPoint();
|
|
397
|
+
_BaseRecoveryPoint2["default"].constructFromObject(data, obj, true);
|
|
398
|
+
if (data.hasOwnProperty('ownerExtId') && data.ownerExtId !== null && data.ownerExtId !== undefined) {
|
|
399
|
+
obj.setOwnerExtId(data['ownerExtId']);
|
|
400
|
+
}
|
|
401
|
+
if (data.hasOwnProperty('locationReferences') && data.locationReferences !== null && data.locationReferences !== undefined) {
|
|
402
|
+
itemArr = [];
|
|
403
|
+
items = data.locationReferences;
|
|
404
|
+
for (i = 0; i < items.length; i++) {
|
|
405
|
+
item = _LocationReference["default"].constructFromObject(items[i], undefined);
|
|
406
|
+
itemArr.push(item);
|
|
407
|
+
}
|
|
408
|
+
obj.setLocationReferences(itemArr);
|
|
409
|
+
}
|
|
410
|
+
if (data.hasOwnProperty('vmReferenceList') && data.vmReferenceList !== null && data.vmReferenceList !== undefined) {
|
|
411
|
+
itemArr = [];
|
|
412
|
+
items = data.vmReferenceList;
|
|
413
|
+
for (i = 0; i < items.length; i++) {
|
|
414
|
+
itemArr.push(items[i]);
|
|
415
|
+
}
|
|
416
|
+
obj.setVmReferenceList(itemArr);
|
|
417
|
+
}
|
|
418
|
+
if (data.hasOwnProperty('volumeGroupReferenceList') && data.volumeGroupReferenceList !== null && data.volumeGroupReferenceList !== undefined) {
|
|
419
|
+
itemArr = [];
|
|
420
|
+
items = data.volumeGroupReferenceList;
|
|
421
|
+
for (i = 0; i < items.length; i++) {
|
|
422
|
+
itemArr.push(items[i]);
|
|
423
|
+
}
|
|
424
|
+
obj.setVolumeGroupReferenceList(itemArr);
|
|
425
|
+
}
|
|
426
|
+
if (data.hasOwnProperty('vmRecoveryPoints') && data.vmRecoveryPoints !== null && data.vmRecoveryPoints !== undefined) {
|
|
427
|
+
itemArr = [];
|
|
428
|
+
items = data.vmRecoveryPoints;
|
|
429
|
+
for (i = 0; i < items.length; i++) {
|
|
430
|
+
item = _VmSubRecoveryPoint["default"].constructFromObject(items[i], undefined);
|
|
431
|
+
itemArr.push(item);
|
|
432
|
+
}
|
|
433
|
+
obj.setVmRecoveryPoints(itemArr);
|
|
434
|
+
}
|
|
435
|
+
if (data.hasOwnProperty('volumeGroupRecoveryPoints') && data.volumeGroupRecoveryPoints !== null && data.volumeGroupRecoveryPoints !== undefined) {
|
|
436
|
+
itemArr = [];
|
|
437
|
+
items = data.volumeGroupRecoveryPoints;
|
|
438
|
+
for (i = 0; i < items.length; i++) {
|
|
439
|
+
item = _VolumeGroupSubRecoveryPoint["default"].constructFromObject(items[i], undefined);
|
|
440
|
+
itemArr.push(item);
|
|
441
|
+
}
|
|
442
|
+
obj.setVolumeGroupRecoveryPoints(itemArr);
|
|
443
|
+
}
|
|
444
|
+
if (!callFromChild) {
|
|
445
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
446
|
+
for (var property in data) {
|
|
447
|
+
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
448
|
+
obj.$unknownFields[property] = data[property];
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
return obj;
|
|
454
|
+
}
|
|
455
|
+
}]);
|
|
456
|
+
return RecoveryPoint;
|
|
457
|
+
}(_BaseRecoveryPoint2["default"]);
|
|
458
|
+
/**
|
|
459
|
+
* A read only field inserted into Recovery point at the time of Recovery point creation, indicating the external identifier of the user who created this Recovery point.
|
|
460
|
+
* @memberof RecoveryPoint
|
|
461
|
+
*/
|
|
462
|
+
exports["default"] = RecoveryPoint;
|
|
463
|
+
function _toJsonMapType2(obj, forMutation) {
|
|
464
|
+
if (obj instanceof Map) {
|
|
465
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
466
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
467
|
+
k = _ref2[0],
|
|
468
|
+
v = _ref2[1];
|
|
469
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
470
|
+
}));
|
|
471
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
472
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
473
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
474
|
+
}));
|
|
475
|
+
}
|
|
476
|
+
return obj;
|
|
477
|
+
}
|
|
478
|
+
RecoveryPoint.prototype.ownerExtId = undefined;
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* List of location references where the VM or volume group Recovery points are a part of the specified Recovery point.
|
|
482
|
+
* @memberof RecoveryPoint
|
|
483
|
+
*/
|
|
484
|
+
RecoveryPoint.prototype.locationReferences = undefined;
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* List of VM external identifiers that are intended to be captured as part of the Recovery point.
|
|
488
|
+
* @memberof RecoveryPoint
|
|
489
|
+
*/
|
|
490
|
+
RecoveryPoint.prototype.vmReferenceList = undefined;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* List of volume group external identifiers that are intended to be captured as part of the Recovery point.
|
|
494
|
+
* @memberof RecoveryPoint
|
|
495
|
+
*/
|
|
496
|
+
RecoveryPoint.prototype.volumeGroupReferenceList = undefined;
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* List of VM Recovery points that are a part of the specified top-level Recovery point.
|
|
500
|
+
* @memberof RecoveryPoint
|
|
501
|
+
*/
|
|
502
|
+
RecoveryPoint.prototype.vmRecoveryPoints = undefined;
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* List of volume group Recovery points that are a part of the specified top-level Recovery point.
|
|
506
|
+
* @memberof RecoveryPoint
|
|
507
|
+
*/
|
|
508
|
+
RecoveryPoint.prototype.volumeGroupRecoveryPoints = undefined;
|
|
509
|
+
|
|
510
|
+
// Implement OneOfdataprotection.v4.config.CreateRecoveryPointApiResponsedata interface:
|
|
511
|
+
// Implement OneOfdataprotection.v4.config.CreateConsistencyGroupRecoveryPointApiResponsedata interface:
|
|
512
|
+
// Implement OneOfdataprotection.v4.config.RecoveryPointApiResponsedata interface:
|