@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,288 @@
|
|
|
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
|
+
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); }
|
|
12
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
13
|
+
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."); }
|
|
14
|
+
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); }
|
|
15
|
+
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; }
|
|
16
|
+
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; } }
|
|
17
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
18
|
+
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; }
|
|
19
|
+
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; }
|
|
20
|
+
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; }
|
|
21
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
22
|
+
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); } }
|
|
23
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
24
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
25
|
+
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); }
|
|
26
|
+
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
|
27
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
|
|
28
|
+
* Nutanix Dataprotection Versioned APIs
|
|
29
|
+
*
|
|
30
|
+
* OpenAPI spec version: 4.0.1-alpha-4
|
|
31
|
+
*
|
|
32
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
33
|
+
*
|
|
34
|
+
* Open API Dev Platform Codegen version: 16.8.0.6343-RELEASE
|
|
35
|
+
*
|
|
36
|
+
* Do not edit the class manually.
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* The SiteReference model module.
|
|
41
|
+
* @module Ntnx/SiteReference
|
|
42
|
+
* @version 4.0.1-alpha-4
|
|
43
|
+
* @class SiteReference
|
|
44
|
+
*/
|
|
45
|
+
var _toJsonMapType = /*#__PURE__*/new WeakSet();
|
|
46
|
+
var SiteReference = /*#__PURE__*/function () {
|
|
47
|
+
/**
|
|
48
|
+
* Constructs a new <code>SiteReference</code>.
|
|
49
|
+
* Specification corresponding to the cluster reference information along with the related AZ information.
|
|
50
|
+
* @alias module:Ntnx/SiteReference
|
|
51
|
+
*/
|
|
52
|
+
function SiteReference() {
|
|
53
|
+
_classCallCheck(this, SiteReference);
|
|
54
|
+
/*
|
|
55
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
56
|
+
* @param {Object} obj
|
|
57
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
58
|
+
* Otherwise, just returns the input object.
|
|
59
|
+
*/
|
|
60
|
+
_classPrivateMethodInitSpec(this, _toJsonMapType);
|
|
61
|
+
this.$objectType = "dataprotection.v4.config.SiteReference";
|
|
62
|
+
this.$reserved = {
|
|
63
|
+
'$fqObjectType': "dataprotection.v4.r0.a4.config.SiteReference"
|
|
64
|
+
};
|
|
65
|
+
this.$unknownFields = {};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Constructs a <code>SiteReference</code> from a plain JavaScript object, optionally creating a new instance.
|
|
70
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
71
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
72
|
+
* @param {module:Ntnx/SiteReference} obj Optional instance to populate.
|
|
73
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
74
|
+
* @return {module:Ntnx/SiteReference} The populated <code>SiteReference</code> instance.
|
|
75
|
+
*/
|
|
76
|
+
_createClass(SiteReference, [{
|
|
77
|
+
key: "getAvailabilityZoneReference",
|
|
78
|
+
value:
|
|
79
|
+
/**
|
|
80
|
+
* Returns The UUID corresponding to the Availability Zone where an entity resides or is synced.
|
|
81
|
+
* @return {}
|
|
82
|
+
*/
|
|
83
|
+
function getAvailabilityZoneReference() {
|
|
84
|
+
return this.availabilityZoneReference;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Sets The UUID corresponding to the Availability Zone where an entity resides or is synced.
|
|
89
|
+
* @param {} availabilityZoneReference The UUID corresponding to the Availability Zone where an entity resides or is synced.
|
|
90
|
+
*/
|
|
91
|
+
}, {
|
|
92
|
+
key: "setAvailabilityZoneReference",
|
|
93
|
+
value: function setAvailabilityZoneReference(availabilityZoneReference) {
|
|
94
|
+
this.availabilityZoneReference = availabilityZoneReference;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Returns The UUID corresponding to the cluster where an entity resides or is synced.
|
|
99
|
+
* @return {}
|
|
100
|
+
*/
|
|
101
|
+
}, {
|
|
102
|
+
key: "getClusterReference",
|
|
103
|
+
value: function getClusterReference() {
|
|
104
|
+
return this.clusterReference;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Sets The UUID corresponding to the cluster where an entity resides or is synced.
|
|
109
|
+
* @param {} clusterReference The UUID corresponding to the cluster where an entity resides or is synced.
|
|
110
|
+
*/
|
|
111
|
+
}, {
|
|
112
|
+
key: "setClusterReference",
|
|
113
|
+
value: function setClusterReference(clusterReference) {
|
|
114
|
+
this.clusterReference = clusterReference;
|
|
115
|
+
}
|
|
116
|
+
}, {
|
|
117
|
+
key: "get$Reserved",
|
|
118
|
+
value: function get$Reserved() {
|
|
119
|
+
return this.$reserved;
|
|
120
|
+
}
|
|
121
|
+
}, {
|
|
122
|
+
key: "get$ObjectType",
|
|
123
|
+
value: function get$ObjectType() {
|
|
124
|
+
return this.$objectType;
|
|
125
|
+
}
|
|
126
|
+
}, {
|
|
127
|
+
key: "get$UnknownFields",
|
|
128
|
+
value: function get$UnknownFields() {
|
|
129
|
+
return this.$unknownFields;
|
|
130
|
+
}
|
|
131
|
+
}, {
|
|
132
|
+
key: "toJson",
|
|
133
|
+
value: function toJson(forMutation) {
|
|
134
|
+
if (forMutation === false) {
|
|
135
|
+
return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getAvailabilityZoneReference() !== 'undefined' && this.getAvailabilityZoneReference() !== null ? {
|
|
136
|
+
'availabilityZoneReference': this.getAvailabilityZoneReference()
|
|
137
|
+
} : {}), typeof this.getClusterReference() !== 'undefined' && this.getClusterReference() !== null ? {
|
|
138
|
+
'clusterReference': this.getClusterReference()
|
|
139
|
+
} : {}), {}, {
|
|
140
|
+
'$reserved': this.get$Reserved(),
|
|
141
|
+
'$objectType': this.get$ObjectType(),
|
|
142
|
+
'$unknownFields': this.get$UnknownFields()
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getAvailabilityZoneReference() !== 'undefined' && this.getAvailabilityZoneReference() !== null ? {
|
|
146
|
+
'availabilityZoneReference': this.getAvailabilityZoneReference()
|
|
147
|
+
} : {}), typeof this.getClusterReference() !== 'undefined' && this.getClusterReference() !== null ? {
|
|
148
|
+
'clusterReference': this.getClusterReference()
|
|
149
|
+
} : {}), {}, {
|
|
150
|
+
'$reserved': this.get$Reserved(),
|
|
151
|
+
'$objectType': this.get$ObjectType(),
|
|
152
|
+
'$unknownFields': this.get$UnknownFields()
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}, {
|
|
156
|
+
key: "validate",
|
|
157
|
+
value: function validate(scope, properties) {
|
|
158
|
+
var _this = this;
|
|
159
|
+
var propList = [];
|
|
160
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
161
|
+
//cases validate() and validate(scope)
|
|
162
|
+
propList = [];
|
|
163
|
+
} else if (arguments.length === 1) {
|
|
164
|
+
//case validate(properties)
|
|
165
|
+
propList = arguments[0];
|
|
166
|
+
scope = null;
|
|
167
|
+
} else {
|
|
168
|
+
//case validate(scope, properties)
|
|
169
|
+
propList = arguments[1];
|
|
170
|
+
}
|
|
171
|
+
var res = [];
|
|
172
|
+
var err = null;
|
|
173
|
+
propList.forEach(function (property) {
|
|
174
|
+
err = _this.validateProperty(property, scope);
|
|
175
|
+
if (err) {
|
|
176
|
+
res.push(err);
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
return new Promise(function (resolve, reject) {
|
|
180
|
+
if (res.length !== 0) {
|
|
181
|
+
reject(err);
|
|
182
|
+
} else {
|
|
183
|
+
resolve();
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
}, {
|
|
188
|
+
key: "validateProperty",
|
|
189
|
+
value: function validateProperty(scope, property) {
|
|
190
|
+
if (property === "availabilityZoneReference") {
|
|
191
|
+
if (typeof this.availabilityZoneReference === 'undefined' || this.availabilityZoneReference === null) {
|
|
192
|
+
return new _ValidationError["default"]("availabilityZoneReference", "undefined or null");
|
|
193
|
+
}
|
|
194
|
+
if (!_ValidationUtils["default"].validatePattern(this.availabilityZoneReference, /^[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}$/)) {
|
|
195
|
+
return new _ValidationError["default"]("availabilityZoneReference", "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}$/");
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
if (property === "clusterReference") {
|
|
199
|
+
if (typeof this.clusterReference === 'undefined' || this.clusterReference === null) {
|
|
200
|
+
return new _ValidationError["default"]("clusterReference", "undefined or null");
|
|
201
|
+
}
|
|
202
|
+
if (!_ValidationUtils["default"].validatePattern(this.clusterReference, /^[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}$/)) {
|
|
203
|
+
return new _ValidationError["default"]("clusterReference", "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}$/");
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
if (property === "$reserved") {
|
|
207
|
+
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
208
|
+
return new _ValidationError["default"]("$reserved", "undefined or null");
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
if (property === "$objectType") {
|
|
212
|
+
if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
|
|
213
|
+
return new _ValidationError["default"]("$objectType", "undefined or null");
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
if (property === "$unknownFields") {
|
|
217
|
+
if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
|
|
218
|
+
return new _ValidationError["default"]("$unknownFields", "undefined or null");
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
222
|
+
}
|
|
223
|
+
}], [{
|
|
224
|
+
key: "constructFromObject",
|
|
225
|
+
value: function constructFromObject(data, obj) {
|
|
226
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
227
|
+
var items, item, i, itemArr, discriminator;
|
|
228
|
+
if (data) {
|
|
229
|
+
obj = obj || new SiteReference();
|
|
230
|
+
if (data.hasOwnProperty('availabilityZoneReference') && data.availabilityZoneReference !== null && data.availabilityZoneReference !== undefined) {
|
|
231
|
+
obj.setAvailabilityZoneReference(data['availabilityZoneReference']);
|
|
232
|
+
}
|
|
233
|
+
if (data.hasOwnProperty('clusterReference') && data.clusterReference !== null && data.clusterReference !== undefined) {
|
|
234
|
+
obj.setClusterReference(data['clusterReference']);
|
|
235
|
+
}
|
|
236
|
+
if (data.hasOwnProperty('$reserved')) {
|
|
237
|
+
obj.$reserved = data['$reserved'];
|
|
238
|
+
}
|
|
239
|
+
if (data.hasOwnProperty('$objectType')) {
|
|
240
|
+
obj.$objectType = data['$objectType'];
|
|
241
|
+
}
|
|
242
|
+
if (data.hasOwnProperty('$unknownFields')) {
|
|
243
|
+
obj.$unknownFields = data['$unknownFields'];
|
|
244
|
+
}
|
|
245
|
+
if (!callFromChild) {
|
|
246
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
247
|
+
for (var property in data) {
|
|
248
|
+
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
249
|
+
obj.$unknownFields[property] = data[property];
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
return obj;
|
|
255
|
+
}
|
|
256
|
+
}]);
|
|
257
|
+
return SiteReference;
|
|
258
|
+
}();
|
|
259
|
+
/**
|
|
260
|
+
* The UUID corresponding to the Availability Zone where an entity resides or is synced.
|
|
261
|
+
* @memberof SiteReference
|
|
262
|
+
*/
|
|
263
|
+
exports["default"] = SiteReference;
|
|
264
|
+
function _toJsonMapType2(obj, forMutation) {
|
|
265
|
+
if (obj instanceof Map) {
|
|
266
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
267
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
268
|
+
k = _ref2[0],
|
|
269
|
+
v = _ref2[1];
|
|
270
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
271
|
+
}));
|
|
272
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
273
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
274
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
275
|
+
}));
|
|
276
|
+
}
|
|
277
|
+
return obj;
|
|
278
|
+
}
|
|
279
|
+
SiteReference.prototype.availabilityZoneReference = undefined;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* The UUID corresponding to the cluster where an entity resides or is synced.
|
|
283
|
+
* @memberof SiteReference
|
|
284
|
+
*/
|
|
285
|
+
SiteReference.prototype.clusterReference = undefined;
|
|
286
|
+
SiteReference.prototype.$reserved = undefined;
|
|
287
|
+
SiteReference.prototype.$objectType = undefined;
|
|
288
|
+
SiteReference.prototype.$unknownFields = undefined;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Subnet model module.
|
|
3
|
+
* @module Ntnx/Subnet
|
|
4
|
+
* @version 4.0.1-alpha-4
|
|
5
|
+
* @class Subnet
|
|
6
|
+
*/
|
|
7
|
+
export default class Subnet {
|
|
8
|
+
/**
|
|
9
|
+
* Constructs a <code>Subnet</code> from a plain JavaScript object, optionally creating a new instance.
|
|
10
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
11
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
12
|
+
* @param {module:Ntnx/Subnet} obj Optional instance to populate.
|
|
13
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
14
|
+
* @return {module:Ntnx/Subnet} The populated <code>Subnet</code> instance.
|
|
15
|
+
*/
|
|
16
|
+
static constructFromObject(data: any, obj: any, callFromChild?: boolean): any;
|
|
17
|
+
$objectType: string;
|
|
18
|
+
$reserved: {
|
|
19
|
+
$fqObjectType: string;
|
|
20
|
+
};
|
|
21
|
+
$unknownFields: {};
|
|
22
|
+
/**
|
|
23
|
+
* @return {}
|
|
24
|
+
*/
|
|
25
|
+
getIpv4(): any;
|
|
26
|
+
/**
|
|
27
|
+
* @param {} ipv4
|
|
28
|
+
*/
|
|
29
|
+
setIpv4(ipv4: any): void;
|
|
30
|
+
ipv4: any;
|
|
31
|
+
get$Reserved(): {
|
|
32
|
+
$fqObjectType: string;
|
|
33
|
+
};
|
|
34
|
+
get$ObjectType(): string;
|
|
35
|
+
get$UnknownFields(): {};
|
|
36
|
+
toJson(forMutation: any): {
|
|
37
|
+
$reserved: {
|
|
38
|
+
$fqObjectType: string;
|
|
39
|
+
};
|
|
40
|
+
$objectType: string;
|
|
41
|
+
$unknownFields: {};
|
|
42
|
+
ipv4?: any;
|
|
43
|
+
};
|
|
44
|
+
validate(scope: any, properties: any, ...args: any[]): any;
|
|
45
|
+
validateProperty(scope: any, property: any): ValidationError;
|
|
46
|
+
#private;
|
|
47
|
+
}
|
|
48
|
+
import ValidationError from "../../../validation/ValidationError";
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _IPv4Address = _interopRequireDefault(require("../../../common/v1/config/IPv4Address"));
|
|
8
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
9
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
10
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
+
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); }
|
|
13
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
14
|
+
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."); }
|
|
15
|
+
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); }
|
|
16
|
+
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; }
|
|
17
|
+
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; } }
|
|
18
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
19
|
+
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; }
|
|
20
|
+
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; }
|
|
21
|
+
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; }
|
|
22
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
|
+
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); } }
|
|
24
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
25
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
26
|
+
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); }
|
|
27
|
+
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
|
28
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
|
|
29
|
+
* Nutanix Dataprotection Versioned APIs
|
|
30
|
+
*
|
|
31
|
+
* OpenAPI spec version: 4.0.1-alpha-4
|
|
32
|
+
*
|
|
33
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
34
|
+
*
|
|
35
|
+
* Open API Dev Platform Codegen version: 16.8.0.6343-RELEASE
|
|
36
|
+
*
|
|
37
|
+
* Do not edit the class manually.
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
/**
|
|
41
|
+
* The Subnet model module.
|
|
42
|
+
* @module Ntnx/Subnet
|
|
43
|
+
* @version 4.0.1-alpha-4
|
|
44
|
+
* @class Subnet
|
|
45
|
+
*/
|
|
46
|
+
var _toJsonMapType = /*#__PURE__*/new WeakSet();
|
|
47
|
+
var Subnet = /*#__PURE__*/function () {
|
|
48
|
+
/**
|
|
49
|
+
* Constructs a new <code>Subnet</code>.
|
|
50
|
+
* CIDR of the network gateway.
|
|
51
|
+
* @alias module:Ntnx/Subnet
|
|
52
|
+
*/
|
|
53
|
+
function Subnet() {
|
|
54
|
+
_classCallCheck(this, Subnet);
|
|
55
|
+
/*
|
|
56
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
57
|
+
* @param {Object} obj
|
|
58
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
59
|
+
* Otherwise, just returns the input object.
|
|
60
|
+
*/
|
|
61
|
+
_classPrivateMethodInitSpec(this, _toJsonMapType);
|
|
62
|
+
this.$objectType = "dataprotection.v4.config.Subnet";
|
|
63
|
+
this.$reserved = {
|
|
64
|
+
'$fqObjectType': "dataprotection.v4.r0.a4.config.Subnet"
|
|
65
|
+
};
|
|
66
|
+
this.$unknownFields = {};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Constructs a <code>Subnet</code> from a plain JavaScript object, optionally creating a new instance.
|
|
71
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
72
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
73
|
+
* @param {module:Ntnx/Subnet} obj Optional instance to populate.
|
|
74
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
75
|
+
* @return {module:Ntnx/Subnet} The populated <code>Subnet</code> instance.
|
|
76
|
+
*/
|
|
77
|
+
_createClass(Subnet, [{
|
|
78
|
+
key: "getIpv4",
|
|
79
|
+
value:
|
|
80
|
+
/**
|
|
81
|
+
* @return {}
|
|
82
|
+
*/
|
|
83
|
+
function getIpv4() {
|
|
84
|
+
return this.ipv4;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @param {} ipv4
|
|
89
|
+
*/
|
|
90
|
+
}, {
|
|
91
|
+
key: "setIpv4",
|
|
92
|
+
value: function setIpv4(ipv4) {
|
|
93
|
+
this.ipv4 = ipv4;
|
|
94
|
+
}
|
|
95
|
+
}, {
|
|
96
|
+
key: "get$Reserved",
|
|
97
|
+
value: function get$Reserved() {
|
|
98
|
+
return this.$reserved;
|
|
99
|
+
}
|
|
100
|
+
}, {
|
|
101
|
+
key: "get$ObjectType",
|
|
102
|
+
value: function get$ObjectType() {
|
|
103
|
+
return this.$objectType;
|
|
104
|
+
}
|
|
105
|
+
}, {
|
|
106
|
+
key: "get$UnknownFields",
|
|
107
|
+
value: function get$UnknownFields() {
|
|
108
|
+
return this.$unknownFields;
|
|
109
|
+
}
|
|
110
|
+
}, {
|
|
111
|
+
key: "toJson",
|
|
112
|
+
value: function toJson(forMutation) {
|
|
113
|
+
if (forMutation === false) {
|
|
114
|
+
return _objectSpread(_objectSpread({}, typeof this.getIpv4() !== 'undefined' && this.getIpv4() !== null ? {
|
|
115
|
+
'ipv4': this.getIpv4().toJson(false)
|
|
116
|
+
} : {}), {}, {
|
|
117
|
+
'$reserved': this.get$Reserved(),
|
|
118
|
+
'$objectType': this.get$ObjectType(),
|
|
119
|
+
'$unknownFields': this.get$UnknownFields()
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
return _objectSpread(_objectSpread({}, typeof this.getIpv4() !== 'undefined' && this.getIpv4() !== null ? {
|
|
123
|
+
'ipv4': this.getIpv4().toJson(false)
|
|
124
|
+
} : {}), {}, {
|
|
125
|
+
'$reserved': this.get$Reserved(),
|
|
126
|
+
'$objectType': this.get$ObjectType(),
|
|
127
|
+
'$unknownFields': this.get$UnknownFields()
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
}, {
|
|
131
|
+
key: "validate",
|
|
132
|
+
value: function validate(scope, properties) {
|
|
133
|
+
var _this = this;
|
|
134
|
+
var propList = [];
|
|
135
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
136
|
+
//cases validate() and validate(scope)
|
|
137
|
+
propList = [];
|
|
138
|
+
} else if (arguments.length === 1) {
|
|
139
|
+
//case validate(properties)
|
|
140
|
+
propList = arguments[0];
|
|
141
|
+
scope = null;
|
|
142
|
+
} else {
|
|
143
|
+
//case validate(scope, properties)
|
|
144
|
+
propList = arguments[1];
|
|
145
|
+
}
|
|
146
|
+
var res = [];
|
|
147
|
+
var err = null;
|
|
148
|
+
propList.forEach(function (property) {
|
|
149
|
+
err = _this.validateProperty(property, scope);
|
|
150
|
+
if (err) {
|
|
151
|
+
res.push(err);
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
return new Promise(function (resolve, reject) {
|
|
155
|
+
if (res.length !== 0) {
|
|
156
|
+
reject(err);
|
|
157
|
+
} else {
|
|
158
|
+
resolve();
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
}, {
|
|
163
|
+
key: "validateProperty",
|
|
164
|
+
value: function validateProperty(scope, property) {
|
|
165
|
+
if (property === "ipv4") {
|
|
166
|
+
if (typeof this.ipv4 === 'undefined' || this.ipv4 === null) {
|
|
167
|
+
return new _ValidationError["default"]("ipv4", "undefined or null");
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
if (property === "$reserved") {
|
|
171
|
+
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
172
|
+
return new _ValidationError["default"]("$reserved", "undefined or null");
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
if (property === "$objectType") {
|
|
176
|
+
if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
|
|
177
|
+
return new _ValidationError["default"]("$objectType", "undefined or null");
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
if (property === "$unknownFields") {
|
|
181
|
+
if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
|
|
182
|
+
return new _ValidationError["default"]("$unknownFields", "undefined or null");
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
186
|
+
}
|
|
187
|
+
}], [{
|
|
188
|
+
key: "constructFromObject",
|
|
189
|
+
value: function constructFromObject(data, obj) {
|
|
190
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
191
|
+
var items, item, i, itemArr, discriminator;
|
|
192
|
+
if (data) {
|
|
193
|
+
obj = obj || new Subnet();
|
|
194
|
+
if (data.hasOwnProperty('ipv4') && data.ipv4 !== null && data.ipv4 !== undefined) {
|
|
195
|
+
obj.setIpv4(_IPv4Address["default"].constructFromObject(data['ipv4']));
|
|
196
|
+
}
|
|
197
|
+
if (data.hasOwnProperty('$reserved')) {
|
|
198
|
+
obj.$reserved = data['$reserved'];
|
|
199
|
+
}
|
|
200
|
+
if (data.hasOwnProperty('$objectType')) {
|
|
201
|
+
obj.$objectType = data['$objectType'];
|
|
202
|
+
}
|
|
203
|
+
if (data.hasOwnProperty('$unknownFields')) {
|
|
204
|
+
obj.$unknownFields = data['$unknownFields'];
|
|
205
|
+
}
|
|
206
|
+
if (!callFromChild) {
|
|
207
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
208
|
+
for (var property in data) {
|
|
209
|
+
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
210
|
+
obj.$unknownFields[property] = data[property];
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
return obj;
|
|
216
|
+
}
|
|
217
|
+
}]);
|
|
218
|
+
return Subnet;
|
|
219
|
+
}();
|
|
220
|
+
/**
|
|
221
|
+
* @memberof Subnet
|
|
222
|
+
*/
|
|
223
|
+
exports["default"] = Subnet;
|
|
224
|
+
function _toJsonMapType2(obj, forMutation) {
|
|
225
|
+
if (obj instanceof Map) {
|
|
226
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
227
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
228
|
+
k = _ref2[0],
|
|
229
|
+
v = _ref2[1];
|
|
230
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
231
|
+
}));
|
|
232
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
233
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
234
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
235
|
+
}));
|
|
236
|
+
}
|
|
237
|
+
return obj;
|
|
238
|
+
}
|
|
239
|
+
Subnet.prototype.ipv4 = undefined;
|
|
240
|
+
Subnet.prototype.$reserved = undefined;
|
|
241
|
+
Subnet.prototype.$objectType = undefined;
|
|
242
|
+
Subnet.prototype.$unknownFields = undefined;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The SyncedVolumeGroupByIdApiResponse model module.
|
|
3
|
+
* @module Ntnx/SyncedVolumeGroupByIdApiResponse
|
|
4
|
+
* @version 4.0.1-alpha-4
|
|
5
|
+
* @class SyncedVolumeGroupByIdApiResponse
|
|
6
|
+
*/
|
|
7
|
+
export default class SyncedVolumeGroupByIdApiResponse extends Paginable {
|
|
8
|
+
/**
|
|
9
|
+
* Constructs a <code>SyncedVolumeGroupByIdApiResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
10
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
11
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
12
|
+
* @param {module:Ntnx/SyncedVolumeGroupByIdApiResponse} obj Optional instance to populate.
|
|
13
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
14
|
+
* @return {module:Ntnx/SyncedVolumeGroupByIdApiResponse} The populated <code>SyncedVolumeGroupByIdApiResponse</code> instance.
|
|
15
|
+
*/
|
|
16
|
+
static constructFromObject(data: any, obj: any, callFromChild?: boolean): any;
|
|
17
|
+
$objectType: string;
|
|
18
|
+
$reserved: {
|
|
19
|
+
$fqObjectType: string;
|
|
20
|
+
};
|
|
21
|
+
$unknownFields: {};
|
|
22
|
+
/**
|
|
23
|
+
* @return {}
|
|
24
|
+
*/
|
|
25
|
+
getMetadata(): any;
|
|
26
|
+
/**
|
|
27
|
+
* @param {} metadata
|
|
28
|
+
*/
|
|
29
|
+
setMetadata(metadata: any): void;
|
|
30
|
+
metadata: any;
|
|
31
|
+
/**
|
|
32
|
+
* @return {}
|
|
33
|
+
*/
|
|
34
|
+
getData(): any;
|
|
35
|
+
/**
|
|
36
|
+
* @param {} data
|
|
37
|
+
*/
|
|
38
|
+
setData(data: any): void;
|
|
39
|
+
data: any;
|
|
40
|
+
get$Reserved(): {
|
|
41
|
+
$fqObjectType: string;
|
|
42
|
+
};
|
|
43
|
+
get$ObjectType(): string;
|
|
44
|
+
get$UnknownFields(): {};
|
|
45
|
+
toJson(forMutation: any): {
|
|
46
|
+
$reserved: {
|
|
47
|
+
$fqObjectType: string;
|
|
48
|
+
};
|
|
49
|
+
$objectType: string;
|
|
50
|
+
$unknownFields: {};
|
|
51
|
+
data?: any;
|
|
52
|
+
metadata?: any;
|
|
53
|
+
};
|
|
54
|
+
validate(scope: any, properties: any, ...args: any[]): any;
|
|
55
|
+
validateProperty(scope: any, property: any): ValidationError;
|
|
56
|
+
#private;
|
|
57
|
+
}
|
|
58
|
+
import Paginable from "../../../../Paginable";
|
|
59
|
+
import ValidationError from "../../../validation/ValidationError";
|