@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,461 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
|
|
8
|
+
var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
|
|
9
|
+
var _RecoveryPointStatus = _interopRequireDefault(require("./RecoveryPointStatus"));
|
|
10
|
+
var _RecoveryPointType = _interopRequireDefault(require("./RecoveryPointType"));
|
|
11
|
+
var _VendorSpecificProperty = _interopRequireDefault(require("./VendorSpecificProperty"));
|
|
12
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
13
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
14
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
16
|
+
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); }
|
|
17
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
18
|
+
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."); }
|
|
19
|
+
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); }
|
|
20
|
+
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; }
|
|
21
|
+
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; } }
|
|
22
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
23
|
+
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; }
|
|
24
|
+
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; }
|
|
25
|
+
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; }
|
|
26
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
27
|
+
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); } }
|
|
28
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
29
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
30
|
+
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); }
|
|
31
|
+
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); }
|
|
32
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
|
+
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); }; }
|
|
34
|
+
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); }
|
|
35
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
36
|
+
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; } }
|
|
37
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
38
|
+
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
|
39
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
|
|
40
|
+
* Nutanix Dataprotection Versioned APIs
|
|
41
|
+
*
|
|
42
|
+
* OpenAPI spec version: 4.0.1-alpha-4
|
|
43
|
+
*
|
|
44
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
45
|
+
*
|
|
46
|
+
* Open API Dev Platform Codegen version: 16.8.0.6343-RELEASE
|
|
47
|
+
*
|
|
48
|
+
* Do not edit the class manually.
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* The BaseRecoveryPoint model module.
|
|
53
|
+
* @module Ntnx/BaseRecoveryPoint
|
|
54
|
+
* @version 4.0.1-alpha-4
|
|
55
|
+
* @class BaseRecoveryPoint
|
|
56
|
+
*/
|
|
57
|
+
var _toJsonMapType = /*#__PURE__*/new WeakSet();
|
|
58
|
+
var BaseRecoveryPoint = /*#__PURE__*/function (_ExternalizableAbstra) {
|
|
59
|
+
_inherits(BaseRecoveryPoint, _ExternalizableAbstra);
|
|
60
|
+
var _super = _createSuper(BaseRecoveryPoint);
|
|
61
|
+
/**
|
|
62
|
+
* Constructs a new <code>BaseRecoveryPoint</code>.
|
|
63
|
+
* A model that represents common properties of a Recovery point resources
|
|
64
|
+
* @alias module:Ntnx/BaseRecoveryPoint
|
|
65
|
+
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
66
|
+
*/
|
|
67
|
+
function BaseRecoveryPoint() {
|
|
68
|
+
var _this;
|
|
69
|
+
_classCallCheck(this, BaseRecoveryPoint);
|
|
70
|
+
_this = _super.call(this);
|
|
71
|
+
/*
|
|
72
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
73
|
+
* @param {Object} obj
|
|
74
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
75
|
+
* Otherwise, just returns the input object.
|
|
76
|
+
*/
|
|
77
|
+
_classPrivateMethodInitSpec(_assertThisInitialized(_this), _toJsonMapType);
|
|
78
|
+
_this.$objectType = "dataprotection.v4.common.BaseRecoveryPoint";
|
|
79
|
+
_this.$reserved = {
|
|
80
|
+
'$fqObjectType': "dataprotection.v4.r0.a2.common.BaseRecoveryPoint"
|
|
81
|
+
};
|
|
82
|
+
_this.$unknownFields = {};
|
|
83
|
+
return _this;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Constructs a <code>BaseRecoveryPoint</code> from a plain JavaScript object, optionally creating a new instance.
|
|
88
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
89
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
90
|
+
* @param {module:Ntnx/BaseRecoveryPoint} obj Optional instance to populate.
|
|
91
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
92
|
+
* @return {module:Ntnx/BaseRecoveryPoint} The populated <code>BaseRecoveryPoint</code> instance.
|
|
93
|
+
*/
|
|
94
|
+
_createClass(BaseRecoveryPoint, [{
|
|
95
|
+
key: "getLocationAgnosticId",
|
|
96
|
+
value:
|
|
97
|
+
/**
|
|
98
|
+
* Returns Location agnostic identifier of the Recovery point.
|
|
99
|
+
* @return {}
|
|
100
|
+
*/
|
|
101
|
+
function getLocationAgnosticId() {
|
|
102
|
+
return this.locationAgnosticId;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Sets Location agnostic identifier of the Recovery point.
|
|
107
|
+
* @param {} locationAgnosticId Location agnostic identifier of the Recovery point.
|
|
108
|
+
*/
|
|
109
|
+
}, {
|
|
110
|
+
key: "setLocationAgnosticId",
|
|
111
|
+
value: function setLocationAgnosticId(locationAgnosticId) {
|
|
112
|
+
this.locationAgnosticId = locationAgnosticId;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Returns The name of the Recovery point.
|
|
117
|
+
* @return {}
|
|
118
|
+
*/
|
|
119
|
+
}, {
|
|
120
|
+
key: "getName",
|
|
121
|
+
value: function getName() {
|
|
122
|
+
return this.name;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Sets The name of the Recovery point.
|
|
127
|
+
* @param {} name The name of the Recovery point.
|
|
128
|
+
*/
|
|
129
|
+
}, {
|
|
130
|
+
key: "setName",
|
|
131
|
+
value: function setName(name) {
|
|
132
|
+
this.name = name;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Returns The UTC date and time in ISO-8601 format when the Recovery point is created.
|
|
137
|
+
* @return {}
|
|
138
|
+
*/
|
|
139
|
+
}, {
|
|
140
|
+
key: "getCreationTime",
|
|
141
|
+
value: function getCreationTime() {
|
|
142
|
+
return this.creationTime;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Sets The UTC date and time in ISO-8601 format when the Recovery point is created.
|
|
147
|
+
* @param {} creationTime The UTC date and time in ISO-8601 format when the Recovery point is created.
|
|
148
|
+
*/
|
|
149
|
+
}, {
|
|
150
|
+
key: "setCreationTime",
|
|
151
|
+
value: function setCreationTime(creationTime) {
|
|
152
|
+
this.creationTime = creationTime;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Returns The UTC date and time in ISO-8601 format when the current Recovery point expires and will be garbage collected.
|
|
157
|
+
* @return {}
|
|
158
|
+
*/
|
|
159
|
+
}, {
|
|
160
|
+
key: "getExpirationTime",
|
|
161
|
+
value: function getExpirationTime() {
|
|
162
|
+
return this.expirationTime;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Sets The UTC date and time in ISO-8601 format when the current Recovery point expires and will be garbage collected.
|
|
167
|
+
* @param {} expirationTime The UTC date and time in ISO-8601 format when the current Recovery point expires and will be garbage collected.
|
|
168
|
+
*/
|
|
169
|
+
}, {
|
|
170
|
+
key: "setExpirationTime",
|
|
171
|
+
value: function setExpirationTime(expirationTime) {
|
|
172
|
+
this.expirationTime = expirationTime;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @return {}
|
|
177
|
+
*/
|
|
178
|
+
}, {
|
|
179
|
+
key: "getStatus",
|
|
180
|
+
value: function getStatus() {
|
|
181
|
+
return this.status;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @param {} status
|
|
186
|
+
*/
|
|
187
|
+
}, {
|
|
188
|
+
key: "setStatus",
|
|
189
|
+
value: function setStatus(status) {
|
|
190
|
+
this.status = status;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* @return {}
|
|
195
|
+
*/
|
|
196
|
+
}, {
|
|
197
|
+
key: "getRecoveryPointType",
|
|
198
|
+
value: function getRecoveryPointType() {
|
|
199
|
+
return this.recoveryPointType;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* @param {} recoveryPointType
|
|
204
|
+
*/
|
|
205
|
+
}, {
|
|
206
|
+
key: "setRecoveryPointType",
|
|
207
|
+
value: function setRecoveryPointType(recoveryPointType) {
|
|
208
|
+
this.recoveryPointType = recoveryPointType;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Returns List of additional metadata provided by the client at the time of Recovery point creation.
|
|
213
|
+
* @return {}
|
|
214
|
+
*/
|
|
215
|
+
}, {
|
|
216
|
+
key: "getVendorSpecificProperties",
|
|
217
|
+
value: function getVendorSpecificProperties() {
|
|
218
|
+
return this.vendorSpecificProperties;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Sets List of additional metadata provided by the client at the time of Recovery point creation.
|
|
223
|
+
* @param {} vendorSpecificProperties List of additional metadata provided by the client at the time of Recovery point creation.
|
|
224
|
+
*/
|
|
225
|
+
}, {
|
|
226
|
+
key: "setVendorSpecificProperties",
|
|
227
|
+
value: function setVendorSpecificProperties(vendorSpecificProperties) {
|
|
228
|
+
this.vendorSpecificProperties = vendorSpecificProperties;
|
|
229
|
+
}
|
|
230
|
+
}, {
|
|
231
|
+
key: "toJson",
|
|
232
|
+
value: function toJson(forMutation) {
|
|
233
|
+
if (forMutation === false) {
|
|
234
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getLocationAgnosticId() !== 'undefined' && this.getLocationAgnosticId() !== null ? {
|
|
235
|
+
'locationAgnosticId': this.getLocationAgnosticId()
|
|
236
|
+
} : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
237
|
+
'name': this.getName()
|
|
238
|
+
} : {}), typeof this.getCreationTime() !== 'undefined' && this.getCreationTime() !== null ? {
|
|
239
|
+
'creationTime': this.getCreationTime()
|
|
240
|
+
} : {}), typeof this.getExpirationTime() !== 'undefined' && this.getExpirationTime() !== null ? {
|
|
241
|
+
'expirationTime': this.getExpirationTime()
|
|
242
|
+
} : {}), typeof this.getStatus() !== 'undefined' && this.getStatus() !== null ? {
|
|
243
|
+
'status': this.getStatus()
|
|
244
|
+
} : {}), typeof this.getRecoveryPointType() !== 'undefined' && this.getRecoveryPointType() !== null ? {
|
|
245
|
+
'recoveryPointType': this.getRecoveryPointType()
|
|
246
|
+
} : {}), typeof this.getVendorSpecificProperties() !== 'undefined' && this.getVendorSpecificProperties() !== null ? {
|
|
247
|
+
'vendorSpecificProperties': this.getVendorSpecificProperties().map(function (item) {
|
|
248
|
+
return item.toJson(false);
|
|
249
|
+
})
|
|
250
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
251
|
+
'extId': this.getExtId()
|
|
252
|
+
} : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
253
|
+
'links': this.getLinks().map(function (item) {
|
|
254
|
+
return item.toJson(false);
|
|
255
|
+
})
|
|
256
|
+
} : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
257
|
+
'tenantId': this.getTenantId()
|
|
258
|
+
} : {}), {}, {
|
|
259
|
+
'$reserved': this.get$Reserved(),
|
|
260
|
+
'$objectType': this.get$ObjectType(),
|
|
261
|
+
'$unknownFields': this.get$UnknownFields()
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
265
|
+
'name': this.getName()
|
|
266
|
+
} : {}), typeof this.getExpirationTime() !== 'undefined' && this.getExpirationTime() !== null ? {
|
|
267
|
+
'expirationTime': this.getExpirationTime()
|
|
268
|
+
} : {}), typeof this.getStatus() !== 'undefined' && this.getStatus() !== null ? {
|
|
269
|
+
'status': this.getStatus()
|
|
270
|
+
} : {}), typeof this.getRecoveryPointType() !== 'undefined' && this.getRecoveryPointType() !== null ? {
|
|
271
|
+
'recoveryPointType': this.getRecoveryPointType()
|
|
272
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
273
|
+
'extId': this.getExtId()
|
|
274
|
+
} : {}), {}, {
|
|
275
|
+
'$reserved': this.get$Reserved(),
|
|
276
|
+
'$objectType': this.get$ObjectType(),
|
|
277
|
+
'$unknownFields': this.get$UnknownFields()
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
}, {
|
|
281
|
+
key: "validate",
|
|
282
|
+
value: function validate(scope, properties) {
|
|
283
|
+
var _this2 = this;
|
|
284
|
+
var propList = [];
|
|
285
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
286
|
+
//cases validate() and validate(scope)
|
|
287
|
+
propList = [];
|
|
288
|
+
} else if (arguments.length === 1) {
|
|
289
|
+
//case validate(properties)
|
|
290
|
+
propList = arguments[0];
|
|
291
|
+
scope = null;
|
|
292
|
+
} else {
|
|
293
|
+
//case validate(scope, properties)
|
|
294
|
+
propList = arguments[1];
|
|
295
|
+
}
|
|
296
|
+
var res = [];
|
|
297
|
+
var err = null;
|
|
298
|
+
propList.forEach(function (property) {
|
|
299
|
+
err = _this2.validateProperty(property, scope);
|
|
300
|
+
if (err) {
|
|
301
|
+
res.push(err);
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
return new Promise(function (resolve, reject) {
|
|
305
|
+
if (res.length !== 0) {
|
|
306
|
+
reject(err);
|
|
307
|
+
} else {
|
|
308
|
+
resolve();
|
|
309
|
+
}
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
}, {
|
|
313
|
+
key: "validateProperty",
|
|
314
|
+
value: function validateProperty(scope, property) {
|
|
315
|
+
if (property === "locationAgnosticId") {
|
|
316
|
+
if (typeof this.locationAgnosticId === 'undefined' || this.locationAgnosticId === null) {
|
|
317
|
+
return new _ValidationError["default"]("locationAgnosticId", "undefined or null");
|
|
318
|
+
}
|
|
319
|
+
if (!_ValidationUtils["default"].validatePattern(this.locationAgnosticId, /^[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}$/)) {
|
|
320
|
+
return new _ValidationError["default"]("locationAgnosticId", "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}$/");
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
if (property === "name") {
|
|
324
|
+
if (typeof this.name === 'undefined' || this.name === null) {
|
|
325
|
+
return new _ValidationError["default"]("name", "undefined or null");
|
|
326
|
+
}
|
|
327
|
+
if (!_ValidationUtils["default"].validateMaxLength(this.name, 256)) {
|
|
328
|
+
return new _ValidationError["default"]("name", "does not satisfy required maxLength constraint: 256");
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
if (property === "creationTime") {
|
|
332
|
+
if (typeof this.creationTime === 'undefined' || this.creationTime === null) {
|
|
333
|
+
return new _ValidationError["default"]("creationTime", "undefined or null");
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
if (property === "expirationTime") {
|
|
337
|
+
if (typeof this.expirationTime === 'undefined' || this.expirationTime === null) {
|
|
338
|
+
return new _ValidationError["default"]("expirationTime", "undefined or null");
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
if (property === "status") {
|
|
342
|
+
if (typeof this.status === 'undefined' || this.status === null) {
|
|
343
|
+
return new _ValidationError["default"]("status", "undefined or null");
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
if (property === "recoveryPointType") {
|
|
347
|
+
if (typeof this.recoveryPointType === 'undefined' || this.recoveryPointType === null) {
|
|
348
|
+
return new _ValidationError["default"]("recoveryPointType", "undefined or null");
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
if (property === "vendorSpecificProperties") {
|
|
352
|
+
if (typeof this.vendorSpecificProperties === 'undefined' || this.vendorSpecificProperties === null) {
|
|
353
|
+
return new _ValidationError["default"]("vendorSpecificProperties", "undefined or null");
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
357
|
+
}
|
|
358
|
+
}], [{
|
|
359
|
+
key: "constructFromObject",
|
|
360
|
+
value: function constructFromObject(data, obj) {
|
|
361
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
362
|
+
var items, item, i, itemArr, discriminator;
|
|
363
|
+
if (data) {
|
|
364
|
+
obj = obj || new BaseRecoveryPoint();
|
|
365
|
+
_ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
|
|
366
|
+
if (data.hasOwnProperty('locationAgnosticId') && data.locationAgnosticId !== null && data.locationAgnosticId !== undefined) {
|
|
367
|
+
obj.setLocationAgnosticId(data['locationAgnosticId']);
|
|
368
|
+
}
|
|
369
|
+
if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
|
|
370
|
+
obj.setName(data['name']);
|
|
371
|
+
}
|
|
372
|
+
if (data.hasOwnProperty('creationTime') && data.creationTime !== null && data.creationTime !== undefined) {
|
|
373
|
+
obj.setCreationTime(data['creationTime']);
|
|
374
|
+
}
|
|
375
|
+
if (data.hasOwnProperty('expirationTime') && data.expirationTime !== null && data.expirationTime !== undefined) {
|
|
376
|
+
obj.setExpirationTime(data['expirationTime']);
|
|
377
|
+
}
|
|
378
|
+
if (data.hasOwnProperty('status') && data.status !== null && data.status !== undefined) {
|
|
379
|
+
obj.setStatus(_RecoveryPointStatus["default"].constructFromObject(data['status']));
|
|
380
|
+
}
|
|
381
|
+
if (data.hasOwnProperty('recoveryPointType') && data.recoveryPointType !== null && data.recoveryPointType !== undefined) {
|
|
382
|
+
obj.setRecoveryPointType(_RecoveryPointType["default"].constructFromObject(data['recoveryPointType']));
|
|
383
|
+
}
|
|
384
|
+
if (data.hasOwnProperty('vendorSpecificProperties') && data.vendorSpecificProperties !== null && data.vendorSpecificProperties !== undefined) {
|
|
385
|
+
itemArr = [];
|
|
386
|
+
items = data.vendorSpecificProperties;
|
|
387
|
+
for (i = 0; i < items.length; i++) {
|
|
388
|
+
item = _VendorSpecificProperty["default"].constructFromObject(items[i], undefined);
|
|
389
|
+
itemArr.push(item);
|
|
390
|
+
}
|
|
391
|
+
obj.setVendorSpecificProperties(itemArr);
|
|
392
|
+
}
|
|
393
|
+
if (!callFromChild) {
|
|
394
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
395
|
+
for (var property in data) {
|
|
396
|
+
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
397
|
+
obj.$unknownFields[property] = data[property];
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
return obj;
|
|
403
|
+
}
|
|
404
|
+
}]);
|
|
405
|
+
return BaseRecoveryPoint;
|
|
406
|
+
}(_ExternalizableAbstractModel["default"]);
|
|
407
|
+
/**
|
|
408
|
+
* Location agnostic identifier of the Recovery point.
|
|
409
|
+
* @memberof BaseRecoveryPoint
|
|
410
|
+
*/
|
|
411
|
+
exports["default"] = BaseRecoveryPoint;
|
|
412
|
+
function _toJsonMapType2(obj, forMutation) {
|
|
413
|
+
if (obj instanceof Map) {
|
|
414
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
415
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
416
|
+
k = _ref2[0],
|
|
417
|
+
v = _ref2[1];
|
|
418
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
419
|
+
}));
|
|
420
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
421
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
422
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
423
|
+
}));
|
|
424
|
+
}
|
|
425
|
+
return obj;
|
|
426
|
+
}
|
|
427
|
+
BaseRecoveryPoint.prototype.locationAgnosticId = undefined;
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* The name of the Recovery point.
|
|
431
|
+
* @memberof BaseRecoveryPoint
|
|
432
|
+
*/
|
|
433
|
+
BaseRecoveryPoint.prototype.name = undefined;
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* The UTC date and time in ISO-8601 format when the Recovery point is created.
|
|
437
|
+
* @memberof BaseRecoveryPoint
|
|
438
|
+
*/
|
|
439
|
+
BaseRecoveryPoint.prototype.creationTime = undefined;
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* The UTC date and time in ISO-8601 format when the current Recovery point expires and will be garbage collected.
|
|
443
|
+
* @memberof BaseRecoveryPoint
|
|
444
|
+
*/
|
|
445
|
+
BaseRecoveryPoint.prototype.expirationTime = undefined;
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* @memberof BaseRecoveryPoint
|
|
449
|
+
*/
|
|
450
|
+
BaseRecoveryPoint.prototype.status = undefined;
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* @memberof BaseRecoveryPoint
|
|
454
|
+
*/
|
|
455
|
+
BaseRecoveryPoint.prototype.recoveryPointType = undefined;
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* List of additional metadata provided by the client at the time of Recovery point creation.
|
|
459
|
+
* @memberof BaseRecoveryPoint
|
|
460
|
+
*/
|
|
461
|
+
BaseRecoveryPoint.prototype.vendorSpecificProperties = undefined;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default RecoveryPointStatus;
|
|
2
|
+
/**
|
|
3
|
+
* *
|
|
4
|
+
*/
|
|
5
|
+
type RecoveryPointStatus = string;
|
|
6
|
+
declare namespace RecoveryPointStatus {
|
|
7
|
+
/**
|
|
8
|
+
* Returns a <code>RecoveryPointStatus</code> enum value from a JavaScript object name.
|
|
9
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
10
|
+
* @return {RecoveryPointStatus} The enum <code>RecoveryPointStatus</code> value.
|
|
11
|
+
*/
|
|
12
|
+
function constructFromObject(obj: any): string;
|
|
13
|
+
/**
|
|
14
|
+
* Validates <code>RecoveryPointStatus</code> enum value.
|
|
15
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
16
|
+
* @return {null} Throws error for invalid value.
|
|
17
|
+
*/
|
|
18
|
+
function validate(obj: any): null;
|
|
19
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
8
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
9
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
/*
|
|
12
|
+
* Nutanix Dataprotection Versioned APIs
|
|
13
|
+
*
|
|
14
|
+
* OpenAPI spec version: 4.0.1-alpha-4
|
|
15
|
+
*
|
|
16
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
17
|
+
*
|
|
18
|
+
* Open API Dev Platform Codegen version: 16.8.0.6343-RELEASE
|
|
19
|
+
*
|
|
20
|
+
* Do not edit the class manually.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Enum class RecoveryPointStatus.
|
|
26
|
+
* @enum {string}
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
var RecoveryPointStatus = {
|
|
30
|
+
/**
|
|
31
|
+
* value: "$UNKNOWN"
|
|
32
|
+
* @const
|
|
33
|
+
*/
|
|
34
|
+
$UNKNOWN: "$UNKNOWN",
|
|
35
|
+
/**
|
|
36
|
+
* value: "$REDACTED"
|
|
37
|
+
* @const
|
|
38
|
+
*/
|
|
39
|
+
$REDACTED: "$REDACTED",
|
|
40
|
+
/**
|
|
41
|
+
* The Recovery point is incomplete and not ready to be consumed.
|
|
42
|
+
* @const
|
|
43
|
+
*/
|
|
44
|
+
INCOMPLETE: "INCOMPLETE",
|
|
45
|
+
/**
|
|
46
|
+
* The Recovery point is in a complete state and ready to be consumed.
|
|
47
|
+
* @const
|
|
48
|
+
*/
|
|
49
|
+
COMPLETE: "COMPLETE",
|
|
50
|
+
/**
|
|
51
|
+
* The Recovery point has expired and may not be fit for consumption.
|
|
52
|
+
* @const
|
|
53
|
+
*/
|
|
54
|
+
EXPIRED: "EXPIRED"
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Returns a <code>RecoveryPointStatus</code> enum value from a JavaScript object name.
|
|
59
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
60
|
+
* @return {RecoveryPointStatus} The enum <code>RecoveryPointStatus</code> value.
|
|
61
|
+
*/
|
|
62
|
+
RecoveryPointStatus.constructFromObject = function (obj) {
|
|
63
|
+
if (typeof obj === 'string' || obj instanceof String) {
|
|
64
|
+
var enumVal = Object.keys(RecoveryPointStatus).find(function (key) {
|
|
65
|
+
return RecoveryPointStatus[key] === obj;
|
|
66
|
+
});
|
|
67
|
+
return enumVal === undefined || enumVal === null ? RecoveryPointStatus.$UNKNOWN : RecoveryPointStatus[enumVal];
|
|
68
|
+
} else {
|
|
69
|
+
throw new Error("Received object name is not an instance of String");
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Validates <code>RecoveryPointStatus</code> enum value.
|
|
75
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
76
|
+
* @return {null} Throws error for invalid value.
|
|
77
|
+
*/
|
|
78
|
+
RecoveryPointStatus.validate = function (obj) {
|
|
79
|
+
switch (obj) {
|
|
80
|
+
case RecoveryPointStatus.$UNKNOWN:
|
|
81
|
+
case RecoveryPointStatus.$REDACTED:
|
|
82
|
+
case RecoveryPointStatus.INCOMPLETE:
|
|
83
|
+
case RecoveryPointStatus.COMPLETE:
|
|
84
|
+
case RecoveryPointStatus.EXPIRED:
|
|
85
|
+
return;
|
|
86
|
+
default:
|
|
87
|
+
throw new Error("Invalid : must be RecoveryPointStatus.{ $UNKNOWN|$REDACTED|INCOMPLETE|COMPLETE|EXPIRED }");
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
Object.freeze(RecoveryPointStatus);
|
|
91
|
+
var _default = RecoveryPointStatus;
|
|
92
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default RecoveryPointType;
|
|
2
|
+
/**
|
|
3
|
+
* *
|
|
4
|
+
*/
|
|
5
|
+
type RecoveryPointType = string;
|
|
6
|
+
declare namespace RecoveryPointType {
|
|
7
|
+
/**
|
|
8
|
+
* Returns a <code>RecoveryPointType</code> enum value from a JavaScript object name.
|
|
9
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
10
|
+
* @return {RecoveryPointType} The enum <code>RecoveryPointType</code> value.
|
|
11
|
+
*/
|
|
12
|
+
function constructFromObject(obj: any): string;
|
|
13
|
+
/**
|
|
14
|
+
* Validates <code>RecoveryPointType</code> enum value.
|
|
15
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
16
|
+
* @return {null} Throws error for invalid value.
|
|
17
|
+
*/
|
|
18
|
+
function validate(obj: any): null;
|
|
19
|
+
}
|