@nutanix-scratch/volumes-js-client 4.0.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +49 -0
- package/README.md +195 -0
- package/dist/Ntnx-Volumes-js-client-prod.js +1 -0
- package/dist/Ntnx-Volumes-js-client.js +1389 -0
- package/dist/es/ApiClient.d.ts +159 -0
- package/dist/es/ApiClient.js +1211 -0
- package/dist/es/Paginable.d.ts +95 -0
- package/dist/es/Paginable.js +287 -0
- package/dist/es/apis/iscsiclients-endpoints.d.ts +69 -0
- package/dist/es/apis/iscsiclients-endpoints.js +167 -0
- package/dist/es/apis/volumegroups-endpoints.d.ts +342 -0
- package/dist/es/apis/volumegroups-endpoints.js +1023 -0
- package/dist/es/index.d.ts +184 -0
- package/dist/es/index.js +732 -0
- package/dist/es/models/common/v1/config/EntityReference.d.ts +78 -0
- package/dist/es/models/common/v1/config/EntityReference.js +352 -0
- package/dist/es/models/common/v1/config/EntityType.d.ts +19 -0
- package/dist/es/models/common/v1/config/EntityType.js +205 -0
- package/dist/es/models/common/v1/config/FQDN.d.ts +48 -0
- package/dist/es/models/common/v1/config/FQDN.js +242 -0
- package/dist/es/models/common/v1/config/Flag.d.ts +58 -0
- package/dist/es/models/common/v1/config/Flag.js +275 -0
- package/dist/es/models/common/v1/config/IPAddressOrFQDN.d.ts +72 -0
- package/dist/es/models/common/v1/config/IPAddressOrFQDN.js +332 -0
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +62 -0
- package/dist/es/models/common/v1/config/IPv4Address.js +288 -0
- package/dist/es/models/common/v1/config/IPv6Address.d.ts +62 -0
- package/dist/es/models/common/v1/config/IPv6Address.js +288 -0
- package/dist/es/models/common/v1/config/KVPair.d.ts +62 -0
- package/dist/es/models/common/v1/config/KVPair.js +332 -0
- package/dist/es/models/common/v1/config/Message.d.ts +84 -0
- package/dist/es/models/common/v1/config/Message.js +354 -0
- package/dist/es/models/common/v1/config/MessageSeverity.d.ts +19 -0
- package/dist/es/models/common/v1/config/MessageSeverity.js +91 -0
- package/dist/es/models/common/v1/config/Metadata.d.ts +98 -0
- package/dist/es/models/common/v1/config/Metadata.js +413 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +50 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.js +243 -0
- package/dist/es/models/common/v1/response/ApiLink.d.ts +62 -0
- package/dist/es/models/common/v1/response/ApiLink.js +280 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +98 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +438 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +42 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +270 -0
- package/dist/es/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
- package/dist/es/models/common/v1/stats/DownSamplingOperator.js +109 -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/validation/ValidationError.d.ts +13 -0
- package/dist/es/models/validation/ValidationError.js +60 -0
- package/dist/es/models/validation/ValidationScopes.d.ts +9 -0
- package/dist/es/models/validation/ValidationScopes.js +38 -0
- package/dist/es/models/volumes/v4/config/AssociateCategoryApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/AssociateCategoryApiResponse.js +313 -0
- package/dist/es/models/volumes/v4/config/AttachIscsiClientApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/AttachIscsiClientApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/AttachVmApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/AttachVmApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/AuthenticationType.d.ts +19 -0
- package/dist/es/models/volumes/v4/config/AuthenticationType.js +85 -0
- package/dist/es/models/volumes/v4/config/CategoryDetails.d.ts +9 -0
- package/dist/es/models/volumes/v4/config/CategoryDetails.js +131 -0
- package/dist/es/models/volumes/v4/config/CategoryEntityReferences.d.ts +48 -0
- package/dist/es/models/volumes/v4/config/CategoryEntityReferences.js +256 -0
- package/dist/es/models/volumes/v4/config/Cluster.d.ts +62 -0
- package/dist/es/models/volumes/v4/config/Cluster.js +279 -0
- package/dist/es/models/volumes/v4/config/ClusterProjection.d.ts +9 -0
- package/dist/es/models/volumes/v4/config/ClusterProjection.js +129 -0
- package/dist/es/models/volumes/v4/config/CreateVolumeDiskApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/CreateVolumeDiskApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/CreateVolumeGroupApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/CreateVolumeGroupApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/DeleteVolumeDiskApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/DeleteVolumeDiskApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/DeleteVolumeGroupApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/DeleteVolumeGroupApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/DetachIscsiClientApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/DetachIscsiClientApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/DetachVmApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/DetachVmApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/DisassociateCategoryApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/DisassociateCategoryApiResponse.js +313 -0
- package/dist/es/models/volumes/v4/config/DiskStorageFeatures.d.ts +48 -0
- package/dist/es/models/volumes/v4/config/DiskStorageFeatures.js +240 -0
- package/dist/es/models/volumes/v4/config/FlashMode.d.ts +48 -0
- package/dist/es/models/volumes/v4/config/FlashMode.js +239 -0
- package/dist/es/models/volumes/v4/config/GetIscsiClientApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/GetIscsiClientApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/GetVolumeDiskApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/GetVolumeDiskApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/GetVolumeGroupApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/GetVolumeGroupApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/GetVolumeGroupMetadataApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/GetVolumeGroupMetadataApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/IscsiClient.d.ts +113 -0
- package/dist/es/models/volumes/v4/config/IscsiClient.js +495 -0
- package/dist/es/models/volumes/v4/config/IscsiClientAttachment.d.ts +32 -0
- package/dist/es/models/volumes/v4/config/IscsiClientAttachment.js +226 -0
- package/dist/es/models/volumes/v4/config/IscsiClientAttachmentProjection.d.ts +31 -0
- package/dist/es/models/volumes/v4/config/IscsiClientAttachmentProjection.js +223 -0
- package/dist/es/models/volumes/v4/config/IscsiClientProjection.d.ts +38 -0
- package/dist/es/models/volumes/v4/config/IscsiClientProjection.js +255 -0
- package/dist/es/models/volumes/v4/config/IscsiFeatures.d.ts +60 -0
- package/dist/es/models/volumes/v4/config/IscsiFeatures.js +278 -0
- package/dist/es/models/volumes/v4/config/ListCategoryAssociationsApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/ListCategoryAssociationsApiResponse.js +333 -0
- package/dist/es/models/volumes/v4/config/ListExternalIscsiAttachmentsApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/ListExternalIscsiAttachmentsApiResponse.js +338 -0
- package/dist/es/models/volumes/v4/config/ListIscsiClientsApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/ListIscsiClientsApiResponse.js +338 -0
- package/dist/es/models/volumes/v4/config/ListVmAttachmentsApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/ListVmAttachmentsApiResponse.js +338 -0
- package/dist/es/models/volumes/v4/config/ListVolumeDisksApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/ListVolumeDisksApiResponse.js +338 -0
- package/dist/es/models/volumes/v4/config/ListVolumeGroupsApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/ListVolumeGroupsApiResponse.js +338 -0
- package/dist/es/models/volumes/v4/config/MigrateVolumeGroupApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/MigrateVolumeGroupApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/NvmfClient.d.ts +56 -0
- package/dist/es/models/volumes/v4/config/NvmfClient.js +308 -0
- package/dist/es/models/volumes/v4/config/NvmfClientAttachment.d.ts +32 -0
- package/dist/es/models/volumes/v4/config/NvmfClientAttachment.js +228 -0
- package/dist/es/models/volumes/v4/config/NvmfClientAttachmentProjection.d.ts +31 -0
- package/dist/es/models/volumes/v4/config/NvmfClientAttachmentProjection.js +225 -0
- package/dist/es/models/volumes/v4/config/NvmfClientProjection.d.ts +33 -0
- package/dist/es/models/volumes/v4/config/NvmfClientProjection.js +229 -0
- package/dist/es/models/volumes/v4/config/PauseVolumeGroupSynchronousReplicationApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/PauseVolumeGroupSynchronousReplicationApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/ResumeVolumeGroupSynchronousReplicationApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/ResumeVolumeGroupSynchronousReplicationApiResponse.js +313 -0
- package/dist/es/models/volumes/v4/config/RevertSpec.d.ts +60 -0
- package/dist/es/models/volumes/v4/config/RevertSpec.js +250 -0
- package/dist/es/models/volumes/v4/config/RevertVolumeGroupApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/RevertVolumeGroupApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/SharingStatus.d.ts +19 -0
- package/dist/es/models/volumes/v4/config/SharingStatus.js +85 -0
- package/dist/es/models/volumes/v4/config/StorageFeatures.d.ts +48 -0
- package/dist/es/models/volumes/v4/config/StorageFeatures.js +240 -0
- package/dist/es/models/volumes/v4/config/TargetParam.d.ts +64 -0
- package/dist/es/models/volumes/v4/config/TargetParam.js +284 -0
- package/dist/es/models/volumes/v4/config/Task.d.ts +50 -0
- package/dist/es/models/volumes/v4/config/Task.js +245 -0
- package/dist/es/models/volumes/v4/config/UpdateIscsiClientApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/UpdateIscsiClientApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/UpdateVolumeDiskApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/UpdateVolumeDiskApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/UpdateVolumeGroupApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/UpdateVolumeGroupApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/UpdateVolumeGroupMetadataApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/UpdateVolumeGroupMetadataApiResponse.js +313 -0
- package/dist/es/models/volumes/v4/config/UpdateVolumeGroupMetadataInfoApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/UpdateVolumeGroupMetadataInfoApiResponse.js +313 -0
- package/dist/es/models/volumes/v4/config/UsageType.d.ts +19 -0
- package/dist/es/models/volumes/v4/config/UsageType.js +97 -0
- package/dist/es/models/volumes/v4/config/VmAttachment.d.ts +32 -0
- package/dist/es/models/volumes/v4/config/VmAttachment.js +225 -0
- package/dist/es/models/volumes/v4/config/VmAttachmentProjection.d.ts +9 -0
- package/dist/es/models/volumes/v4/config/VmAttachmentProjection.js +129 -0
- package/dist/es/models/volumes/v4/config/VolumeDisk.d.ts +92 -0
- package/dist/es/models/volumes/v4/config/VolumeDisk.js +433 -0
- package/dist/es/models/volumes/v4/config/VolumeDiskProjection.d.ts +9 -0
- package/dist/es/models/volumes/v4/config/VolumeDiskProjection.js +131 -0
- package/dist/es/models/volumes/v4/config/VolumeGroup.d.ts +166 -0
- package/dist/es/models/volumes/v4/config/VolumeGroup.js +697 -0
- package/dist/es/models/volumes/v4/config/VolumeGroupAttachmentSite.d.ts +19 -0
- package/dist/es/models/volumes/v4/config/VolumeGroupAttachmentSite.js +85 -0
- package/dist/es/models/volumes/v4/config/VolumeGroupMetadata.d.ts +62 -0
- package/dist/es/models/volumes/v4/config/VolumeGroupMetadata.js +284 -0
- package/dist/es/models/volumes/v4/config/VolumeGroupMetadataProjection.d.ts +9 -0
- package/dist/es/models/volumes/v4/config/VolumeGroupMetadataProjection.js +129 -0
- package/dist/es/models/volumes/v4/config/VolumeGroupProjection.d.ts +53 -0
- package/dist/es/models/volumes/v4/config/VolumeGroupProjection.js +314 -0
- package/dist/es/models/volumes/v4/error/AppMessage.d.ts +108 -0
- package/dist/es/models/volumes/v4/error/AppMessage.js +432 -0
- package/dist/es/models/volumes/v4/error/ErrorResponse.d.ts +48 -0
- package/dist/es/models/volumes/v4/error/ErrorResponse.js +314 -0
- package/dist/es/models/volumes/v4/error/SchemaValidationError.d.ts +98 -0
- package/dist/es/models/volumes/v4/error/SchemaValidationError.js +407 -0
- package/dist/es/models/volumes/v4/error/SchemaValidationErrorMessage.d.ts +74 -0
- package/dist/es/models/volumes/v4/error/SchemaValidationErrorMessage.js +318 -0
- package/dist/es/models/volumes/v4/stats/GetVolumeDiskStatsApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/stats/GetVolumeDiskStatsApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/stats/GetVolumeGroupStatsApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/stats/GetVolumeGroupStatsApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/stats/TimeValuePair.d.ts +62 -0
- package/dist/es/models/volumes/v4/stats/TimeValuePair.js +279 -0
- package/dist/es/models/volumes/v4/stats/VolumeDiskStats.d.ts +170 -0
- package/dist/es/models/volumes/v4/stats/VolumeDiskStats.js +728 -0
- package/dist/es/models/volumes/v4/stats/VolumeGroupStats.d.ts +170 -0
- package/dist/es/models/volumes/v4/stats/VolumeGroupStats.js +728 -0
- package/dist/es/models/volumes/v4/stats/VolumeGroupStatsProjection.d.ts +9 -0
- package/dist/es/models/volumes/v4/stats/VolumeGroupStatsProjection.js +130 -0
- package/dist/es/utils/ValidationUtils.d.ts +13 -0
- package/dist/es/utils/ValidationUtils.js +85 -0
- package/dist/lib/ApiClient.d.ts +159 -0
- package/dist/lib/ApiClient.js +1211 -0
- package/dist/lib/Paginable.d.ts +95 -0
- package/dist/lib/Paginable.js +287 -0
- package/dist/lib/apis/iscsiclients-endpoints.d.ts +69 -0
- package/dist/lib/apis/iscsiclients-endpoints.js +167 -0
- package/dist/lib/apis/volumegroups-endpoints.d.ts +342 -0
- package/dist/lib/apis/volumegroups-endpoints.js +1023 -0
- package/dist/lib/index.d.ts +184 -0
- package/dist/lib/index.js +732 -0
- package/dist/lib/models/common/v1/config/EntityReference.d.ts +78 -0
- package/dist/lib/models/common/v1/config/EntityReference.js +352 -0
- package/dist/lib/models/common/v1/config/EntityType.d.ts +19 -0
- package/dist/lib/models/common/v1/config/EntityType.js +205 -0
- package/dist/lib/models/common/v1/config/FQDN.d.ts +48 -0
- package/dist/lib/models/common/v1/config/FQDN.js +242 -0
- package/dist/lib/models/common/v1/config/Flag.d.ts +58 -0
- package/dist/lib/models/common/v1/config/Flag.js +275 -0
- package/dist/lib/models/common/v1/config/IPAddressOrFQDN.d.ts +72 -0
- package/dist/lib/models/common/v1/config/IPAddressOrFQDN.js +332 -0
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +62 -0
- package/dist/lib/models/common/v1/config/IPv4Address.js +288 -0
- package/dist/lib/models/common/v1/config/IPv6Address.d.ts +62 -0
- package/dist/lib/models/common/v1/config/IPv6Address.js +288 -0
- package/dist/lib/models/common/v1/config/KVPair.d.ts +62 -0
- package/dist/lib/models/common/v1/config/KVPair.js +332 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +84 -0
- package/dist/lib/models/common/v1/config/Message.js +354 -0
- package/dist/lib/models/common/v1/config/MessageSeverity.d.ts +19 -0
- package/dist/lib/models/common/v1/config/MessageSeverity.js +91 -0
- package/dist/lib/models/common/v1/config/Metadata.d.ts +98 -0
- package/dist/lib/models/common/v1/config/Metadata.js +413 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +50 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +243 -0
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +62 -0
- package/dist/lib/models/common/v1/response/ApiLink.js +280 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +98 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +438 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +42 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +270 -0
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +109 -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/validation/ValidationError.d.ts +13 -0
- package/dist/lib/models/validation/ValidationError.js +60 -0
- package/dist/lib/models/validation/ValidationScopes.d.ts +9 -0
- package/dist/lib/models/validation/ValidationScopes.js +38 -0
- package/dist/lib/models/volumes/v4/config/AssociateCategoryApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/AssociateCategoryApiResponse.js +313 -0
- package/dist/lib/models/volumes/v4/config/AttachIscsiClientApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/AttachIscsiClientApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/AttachVmApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/AttachVmApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/AuthenticationType.d.ts +19 -0
- package/dist/lib/models/volumes/v4/config/AuthenticationType.js +85 -0
- package/dist/lib/models/volumes/v4/config/CategoryDetails.d.ts +9 -0
- package/dist/lib/models/volumes/v4/config/CategoryDetails.js +131 -0
- package/dist/lib/models/volumes/v4/config/CategoryEntityReferences.d.ts +48 -0
- package/dist/lib/models/volumes/v4/config/CategoryEntityReferences.js +256 -0
- package/dist/lib/models/volumes/v4/config/Cluster.d.ts +62 -0
- package/dist/lib/models/volumes/v4/config/Cluster.js +279 -0
- package/dist/lib/models/volumes/v4/config/ClusterProjection.d.ts +9 -0
- package/dist/lib/models/volumes/v4/config/ClusterProjection.js +129 -0
- package/dist/lib/models/volumes/v4/config/CreateVolumeDiskApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/CreateVolumeDiskApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/CreateVolumeGroupApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/CreateVolumeGroupApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/DeleteVolumeDiskApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/DeleteVolumeDiskApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/DeleteVolumeGroupApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/DeleteVolumeGroupApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/DetachIscsiClientApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/DetachIscsiClientApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/DetachVmApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/DetachVmApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/DisassociateCategoryApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/DisassociateCategoryApiResponse.js +313 -0
- package/dist/lib/models/volumes/v4/config/DiskStorageFeatures.d.ts +48 -0
- package/dist/lib/models/volumes/v4/config/DiskStorageFeatures.js +240 -0
- package/dist/lib/models/volumes/v4/config/FlashMode.d.ts +48 -0
- package/dist/lib/models/volumes/v4/config/FlashMode.js +239 -0
- package/dist/lib/models/volumes/v4/config/GetIscsiClientApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/GetIscsiClientApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/GetVolumeDiskApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/GetVolumeDiskApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/GetVolumeGroupApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/GetVolumeGroupApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/GetVolumeGroupMetadataApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/GetVolumeGroupMetadataApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/IscsiClient.d.ts +113 -0
- package/dist/lib/models/volumes/v4/config/IscsiClient.js +495 -0
- package/dist/lib/models/volumes/v4/config/IscsiClientAttachment.d.ts +32 -0
- package/dist/lib/models/volumes/v4/config/IscsiClientAttachment.js +226 -0
- package/dist/lib/models/volumes/v4/config/IscsiClientAttachmentProjection.d.ts +31 -0
- package/dist/lib/models/volumes/v4/config/IscsiClientAttachmentProjection.js +223 -0
- package/dist/lib/models/volumes/v4/config/IscsiClientProjection.d.ts +38 -0
- package/dist/lib/models/volumes/v4/config/IscsiClientProjection.js +255 -0
- package/dist/lib/models/volumes/v4/config/IscsiFeatures.d.ts +60 -0
- package/dist/lib/models/volumes/v4/config/IscsiFeatures.js +278 -0
- package/dist/lib/models/volumes/v4/config/ListCategoryAssociationsApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/ListCategoryAssociationsApiResponse.js +333 -0
- package/dist/lib/models/volumes/v4/config/ListExternalIscsiAttachmentsApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/ListExternalIscsiAttachmentsApiResponse.js +338 -0
- package/dist/lib/models/volumes/v4/config/ListIscsiClientsApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/ListIscsiClientsApiResponse.js +338 -0
- package/dist/lib/models/volumes/v4/config/ListVmAttachmentsApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/ListVmAttachmentsApiResponse.js +338 -0
- package/dist/lib/models/volumes/v4/config/ListVolumeDisksApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/ListVolumeDisksApiResponse.js +338 -0
- package/dist/lib/models/volumes/v4/config/ListVolumeGroupsApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/ListVolumeGroupsApiResponse.js +338 -0
- package/dist/lib/models/volumes/v4/config/MigrateVolumeGroupApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/MigrateVolumeGroupApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/NvmfClient.d.ts +56 -0
- package/dist/lib/models/volumes/v4/config/NvmfClient.js +308 -0
- package/dist/lib/models/volumes/v4/config/NvmfClientAttachment.d.ts +32 -0
- package/dist/lib/models/volumes/v4/config/NvmfClientAttachment.js +228 -0
- package/dist/lib/models/volumes/v4/config/NvmfClientAttachmentProjection.d.ts +31 -0
- package/dist/lib/models/volumes/v4/config/NvmfClientAttachmentProjection.js +225 -0
- package/dist/lib/models/volumes/v4/config/NvmfClientProjection.d.ts +33 -0
- package/dist/lib/models/volumes/v4/config/NvmfClientProjection.js +229 -0
- package/dist/lib/models/volumes/v4/config/PauseVolumeGroupSynchronousReplicationApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/PauseVolumeGroupSynchronousReplicationApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/ResumeVolumeGroupSynchronousReplicationApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/ResumeVolumeGroupSynchronousReplicationApiResponse.js +313 -0
- package/dist/lib/models/volumes/v4/config/RevertSpec.d.ts +60 -0
- package/dist/lib/models/volumes/v4/config/RevertSpec.js +250 -0
- package/dist/lib/models/volumes/v4/config/RevertVolumeGroupApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/RevertVolumeGroupApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/SharingStatus.d.ts +19 -0
- package/dist/lib/models/volumes/v4/config/SharingStatus.js +85 -0
- package/dist/lib/models/volumes/v4/config/StorageFeatures.d.ts +48 -0
- package/dist/lib/models/volumes/v4/config/StorageFeatures.js +240 -0
- package/dist/lib/models/volumes/v4/config/TargetParam.d.ts +64 -0
- package/dist/lib/models/volumes/v4/config/TargetParam.js +284 -0
- package/dist/lib/models/volumes/v4/config/Task.d.ts +50 -0
- package/dist/lib/models/volumes/v4/config/Task.js +245 -0
- package/dist/lib/models/volumes/v4/config/UpdateIscsiClientApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/UpdateIscsiClientApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/UpdateVolumeDiskApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/UpdateVolumeDiskApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupMetadataApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupMetadataApiResponse.js +313 -0
- package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupMetadataInfoApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupMetadataInfoApiResponse.js +313 -0
- package/dist/lib/models/volumes/v4/config/UsageType.d.ts +19 -0
- package/dist/lib/models/volumes/v4/config/UsageType.js +97 -0
- package/dist/lib/models/volumes/v4/config/VmAttachment.d.ts +32 -0
- package/dist/lib/models/volumes/v4/config/VmAttachment.js +225 -0
- package/dist/lib/models/volumes/v4/config/VmAttachmentProjection.d.ts +9 -0
- package/dist/lib/models/volumes/v4/config/VmAttachmentProjection.js +129 -0
- package/dist/lib/models/volumes/v4/config/VolumeDisk.d.ts +92 -0
- package/dist/lib/models/volumes/v4/config/VolumeDisk.js +433 -0
- package/dist/lib/models/volumes/v4/config/VolumeDiskProjection.d.ts +9 -0
- package/dist/lib/models/volumes/v4/config/VolumeDiskProjection.js +131 -0
- package/dist/lib/models/volumes/v4/config/VolumeGroup.d.ts +166 -0
- package/dist/lib/models/volumes/v4/config/VolumeGroup.js +697 -0
- package/dist/lib/models/volumes/v4/config/VolumeGroupAttachmentSite.d.ts +19 -0
- package/dist/lib/models/volumes/v4/config/VolumeGroupAttachmentSite.js +85 -0
- package/dist/lib/models/volumes/v4/config/VolumeGroupMetadata.d.ts +62 -0
- package/dist/lib/models/volumes/v4/config/VolumeGroupMetadata.js +284 -0
- package/dist/lib/models/volumes/v4/config/VolumeGroupMetadataProjection.d.ts +9 -0
- package/dist/lib/models/volumes/v4/config/VolumeGroupMetadataProjection.js +129 -0
- package/dist/lib/models/volumes/v4/config/VolumeGroupProjection.d.ts +53 -0
- package/dist/lib/models/volumes/v4/config/VolumeGroupProjection.js +314 -0
- package/dist/lib/models/volumes/v4/error/AppMessage.d.ts +108 -0
- package/dist/lib/models/volumes/v4/error/AppMessage.js +432 -0
- package/dist/lib/models/volumes/v4/error/ErrorResponse.d.ts +48 -0
- package/dist/lib/models/volumes/v4/error/ErrorResponse.js +314 -0
- package/dist/lib/models/volumes/v4/error/SchemaValidationError.d.ts +98 -0
- package/dist/lib/models/volumes/v4/error/SchemaValidationError.js +407 -0
- package/dist/lib/models/volumes/v4/error/SchemaValidationErrorMessage.d.ts +74 -0
- package/dist/lib/models/volumes/v4/error/SchemaValidationErrorMessage.js +318 -0
- package/dist/lib/models/volumes/v4/stats/GetVolumeDiskStatsApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/stats/GetVolumeDiskStatsApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/stats/GetVolumeGroupStatsApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/stats/GetVolumeGroupStatsApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/stats/TimeValuePair.d.ts +62 -0
- package/dist/lib/models/volumes/v4/stats/TimeValuePair.js +279 -0
- package/dist/lib/models/volumes/v4/stats/VolumeDiskStats.d.ts +170 -0
- package/dist/lib/models/volumes/v4/stats/VolumeDiskStats.js +728 -0
- package/dist/lib/models/volumes/v4/stats/VolumeGroupStats.d.ts +170 -0
- package/dist/lib/models/volumes/v4/stats/VolumeGroupStats.js +728 -0
- package/dist/lib/models/volumes/v4/stats/VolumeGroupStatsProjection.d.ts +9 -0
- package/dist/lib/models/volumes/v4/stats/VolumeGroupStatsProjection.js +130 -0
- package/dist/lib/utils/ValidationUtils.d.ts +13 -0
- package/dist/lib/utils/ValidationUtils.js +85 -0
- package/package.json +53 -0
|
@@ -0,0 +1,697 @@
|
|
|
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 _AuthenticationType = _interopRequireDefault(require("./AuthenticationType"));
|
|
10
|
+
var _IscsiFeatures = _interopRequireDefault(require("./IscsiFeatures"));
|
|
11
|
+
var _SharingStatus = _interopRequireDefault(require("./SharingStatus"));
|
|
12
|
+
var _StorageFeatures = _interopRequireDefault(require("./StorageFeatures"));
|
|
13
|
+
var _UsageType = _interopRequireDefault(require("./UsageType"));
|
|
14
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
15
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
16
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
17
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
18
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
19
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
20
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
21
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
22
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
23
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
24
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
25
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
28
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
29
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
30
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
31
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
32
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
33
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
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() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
37
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
38
|
+
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); }
|
|
39
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
40
|
+
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
|
41
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
|
|
42
|
+
* Nutanix Volumes Versioned APIs
|
|
43
|
+
*
|
|
44
|
+
* OpenAPI spec version: 4.0.1-beta-1
|
|
45
|
+
*
|
|
46
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
47
|
+
*
|
|
48
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
49
|
+
*
|
|
50
|
+
* Do not edit the class manually.
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
/**
|
|
54
|
+
* The VolumeGroup model module.
|
|
55
|
+
* @module Ntnx/VolumeGroup
|
|
56
|
+
* @version 4.0.1-beta-1
|
|
57
|
+
* @class VolumeGroup
|
|
58
|
+
*/
|
|
59
|
+
var _VolumeGroup_brand = /*#__PURE__*/new WeakSet();
|
|
60
|
+
var VolumeGroup = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
|
|
61
|
+
/**
|
|
62
|
+
* Constructs a new <code>VolumeGroup</code>.
|
|
63
|
+
* A model that represents a Volume Group resource.
|
|
64
|
+
* @alias module:Ntnx/VolumeGroup
|
|
65
|
+
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
66
|
+
*/
|
|
67
|
+
function VolumeGroup() {
|
|
68
|
+
var _this;
|
|
69
|
+
_classCallCheck(this, VolumeGroup);
|
|
70
|
+
_this = _callSuper(this, VolumeGroup);
|
|
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(_this, _VolumeGroup_brand);
|
|
78
|
+
_this.$objectType = "volumes.v4.config.VolumeGroup";
|
|
79
|
+
_this.$reserved = {
|
|
80
|
+
'$fv': "v4.r0.b1"
|
|
81
|
+
};
|
|
82
|
+
_this.$unknownFields = {};
|
|
83
|
+
return _this;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Constructs a <code>VolumeGroup</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/VolumeGroup} obj Optional instance to populate.
|
|
91
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
92
|
+
* @return {module:Ntnx/VolumeGroup} The populated <code>VolumeGroup</code> instance.
|
|
93
|
+
*/
|
|
94
|
+
_inherits(VolumeGroup, _ExternalizableAbstra);
|
|
95
|
+
return _createClass(VolumeGroup, [{
|
|
96
|
+
key: "getName",
|
|
97
|
+
value:
|
|
98
|
+
/**
|
|
99
|
+
* Returns Volume Group name. This is an optional field.
|
|
100
|
+
* @return {}
|
|
101
|
+
*/
|
|
102
|
+
function getName() {
|
|
103
|
+
return this.name;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Sets Volume Group name. This is an optional field.
|
|
108
|
+
* @param {} name Volume Group name. This is an optional field.
|
|
109
|
+
*/
|
|
110
|
+
}, {
|
|
111
|
+
key: "setName",
|
|
112
|
+
value: function setName(name) {
|
|
113
|
+
this.name = name;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Returns Volume Group description. This is an optional field.
|
|
118
|
+
* @return {}
|
|
119
|
+
*/
|
|
120
|
+
}, {
|
|
121
|
+
key: "getDescription",
|
|
122
|
+
value: function getDescription() {
|
|
123
|
+
return this.description;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Sets Volume Group description. This is an optional field.
|
|
128
|
+
* @param {} description Volume Group description. This is an optional field.
|
|
129
|
+
*/
|
|
130
|
+
}, {
|
|
131
|
+
key: "setDescription",
|
|
132
|
+
value: function setDescription(description) {
|
|
133
|
+
this.description = description;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Returns Indicates whether to enable Volume Group load balancing for VM attachments. This cannot be enabled if there are iSCSI client attachments already associated with the Volume Group, and vice-versa. This is an optional field.
|
|
138
|
+
* @return {}
|
|
139
|
+
*/
|
|
140
|
+
}, {
|
|
141
|
+
key: "getShouldLoadBalanceVmAttachments",
|
|
142
|
+
value: function getShouldLoadBalanceVmAttachments() {
|
|
143
|
+
return this.shouldLoadBalanceVmAttachments;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Sets Indicates whether to enable Volume Group load balancing for VM attachments. This cannot be enabled if there are iSCSI client attachments already associated with the Volume Group, and vice-versa. This is an optional field.
|
|
148
|
+
* @param {} shouldLoadBalanceVmAttachments Indicates whether to enable Volume Group load balancing for VM attachments. This cannot be enabled if there are iSCSI client attachments already associated with the Volume Group, and vice-versa. This is an optional field.
|
|
149
|
+
*/
|
|
150
|
+
}, {
|
|
151
|
+
key: "setShouldLoadBalanceVmAttachments",
|
|
152
|
+
value: function setShouldLoadBalanceVmAttachments(shouldLoadBalanceVmAttachments) {
|
|
153
|
+
this.shouldLoadBalanceVmAttachments = shouldLoadBalanceVmAttachments;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @return {}
|
|
158
|
+
*/
|
|
159
|
+
}, {
|
|
160
|
+
key: "getSharingStatus",
|
|
161
|
+
value: function getSharingStatus() {
|
|
162
|
+
return this.sharingStatus;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* @param {} sharingStatus
|
|
167
|
+
*/
|
|
168
|
+
}, {
|
|
169
|
+
key: "setSharingStatus",
|
|
170
|
+
value: function setSharingStatus(sharingStatus) {
|
|
171
|
+
this.sharingStatus = sharingStatus;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Returns The specifications contain the target prefix for external clients as the value. This is an optional field.
|
|
176
|
+
* @return {}
|
|
177
|
+
*/
|
|
178
|
+
}, {
|
|
179
|
+
key: "getTargetPrefix",
|
|
180
|
+
value: function getTargetPrefix() {
|
|
181
|
+
return this.targetPrefix;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Sets The specifications contain the target prefix for external clients as the value. This is an optional field.
|
|
186
|
+
* @param {} targetPrefix The specifications contain the target prefix for external clients as the value. This is an optional field.
|
|
187
|
+
*/
|
|
188
|
+
}, {
|
|
189
|
+
key: "setTargetPrefix",
|
|
190
|
+
value: function setTargetPrefix(targetPrefix) {
|
|
191
|
+
this.targetPrefix = targetPrefix;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Returns Name of the external client target that will be visible and accessible to the client. This is an optional field.
|
|
196
|
+
* @return {}
|
|
197
|
+
*/
|
|
198
|
+
}, {
|
|
199
|
+
key: "getTargetName",
|
|
200
|
+
value: function getTargetName() {
|
|
201
|
+
return this.targetName;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Sets Name of the external client target that will be visible and accessible to the client. This is an optional field.
|
|
206
|
+
* @param {} targetName Name of the external client target that will be visible and accessible to the client. This is an optional field.
|
|
207
|
+
*/
|
|
208
|
+
}, {
|
|
209
|
+
key: "setTargetName",
|
|
210
|
+
value: function setTargetName(targetName) {
|
|
211
|
+
this.targetName = targetName;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* @return {}
|
|
216
|
+
*/
|
|
217
|
+
}, {
|
|
218
|
+
key: "getEnabledAuthentications",
|
|
219
|
+
value: function getEnabledAuthentications() {
|
|
220
|
+
return this.enabledAuthentications;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* @param {} enabledAuthentications
|
|
225
|
+
*/
|
|
226
|
+
}, {
|
|
227
|
+
key: "setEnabledAuthentications",
|
|
228
|
+
value: function setEnabledAuthentications(enabledAuthentications) {
|
|
229
|
+
this.enabledAuthentications = enabledAuthentications;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @return {}
|
|
234
|
+
*/
|
|
235
|
+
}, {
|
|
236
|
+
key: "getIscsiFeatures",
|
|
237
|
+
value: function getIscsiFeatures() {
|
|
238
|
+
return this.iscsiFeatures;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* @param {} iscsiFeatures
|
|
243
|
+
*/
|
|
244
|
+
}, {
|
|
245
|
+
key: "setIscsiFeatures",
|
|
246
|
+
value: function setIscsiFeatures(iscsiFeatures) {
|
|
247
|
+
this.iscsiFeatures = iscsiFeatures;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Returns Service/user who created this Volume Group. This is an optional field.
|
|
252
|
+
* @return {}
|
|
253
|
+
*/
|
|
254
|
+
}, {
|
|
255
|
+
key: "getCreatedBy",
|
|
256
|
+
value: function getCreatedBy() {
|
|
257
|
+
return this.createdBy;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Sets Service/user who created this Volume Group. This is an optional field.
|
|
262
|
+
* @param {} createdBy Service/user who created this Volume Group. This is an optional field.
|
|
263
|
+
*/
|
|
264
|
+
}, {
|
|
265
|
+
key: "setCreatedBy",
|
|
266
|
+
value: function setCreatedBy(createdBy) {
|
|
267
|
+
this.createdBy = createdBy;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Returns The UUID of the cluster that will host the Volume Group. This is a mandatory field for creating a Volume Group on Prism Central.
|
|
272
|
+
* @return {}
|
|
273
|
+
*/
|
|
274
|
+
}, {
|
|
275
|
+
key: "getClusterReference",
|
|
276
|
+
value: function getClusterReference() {
|
|
277
|
+
return this.clusterReference;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Sets The UUID of the cluster that will host the Volume Group. This is a mandatory field for creating a Volume Group on Prism Central.
|
|
282
|
+
* @param {} clusterReference The UUID of the cluster that will host the Volume Group. This is a mandatory field for creating a Volume Group on Prism Central.
|
|
283
|
+
*/
|
|
284
|
+
}, {
|
|
285
|
+
key: "setClusterReference",
|
|
286
|
+
value: function setClusterReference(clusterReference) {
|
|
287
|
+
this.clusterReference = clusterReference;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* @return {}
|
|
292
|
+
*/
|
|
293
|
+
}, {
|
|
294
|
+
key: "getStorageFeatures",
|
|
295
|
+
value: function getStorageFeatures() {
|
|
296
|
+
return this.storageFeatures;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* @param {} storageFeatures
|
|
301
|
+
*/
|
|
302
|
+
}, {
|
|
303
|
+
key: "setStorageFeatures",
|
|
304
|
+
value: function setStorageFeatures(storageFeatures) {
|
|
305
|
+
this.storageFeatures = storageFeatures;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* @return {}
|
|
310
|
+
*/
|
|
311
|
+
}, {
|
|
312
|
+
key: "getUsageType",
|
|
313
|
+
value: function getUsageType() {
|
|
314
|
+
return this.usageType;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* @param {} usageType
|
|
319
|
+
*/
|
|
320
|
+
}, {
|
|
321
|
+
key: "setUsageType",
|
|
322
|
+
value: function setUsageType(usageType) {
|
|
323
|
+
this.usageType = usageType;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Returns Indicates whether the Volume Group is meant to be hidden or not. This is an optional field. If omitted, the VG will not be hidden.
|
|
328
|
+
* @return {}
|
|
329
|
+
*/
|
|
330
|
+
}, {
|
|
331
|
+
key: "getIsHidden",
|
|
332
|
+
value: function getIsHidden() {
|
|
333
|
+
return this.isHidden;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Sets Indicates whether the Volume Group is meant to be hidden or not. This is an optional field. If omitted, the VG will not be hidden.
|
|
338
|
+
* @param {} isHidden Indicates whether the Volume Group is meant to be hidden or not. This is an optional field. If omitted, the VG will not be hidden.
|
|
339
|
+
*/
|
|
340
|
+
}, {
|
|
341
|
+
key: "setIsHidden",
|
|
342
|
+
value: function setIsHidden(isHidden) {
|
|
343
|
+
this.isHidden = isHidden;
|
|
344
|
+
}
|
|
345
|
+
}, {
|
|
346
|
+
key: "toJson",
|
|
347
|
+
value: function toJson(forMutation) {
|
|
348
|
+
if (forMutation === false) {
|
|
349
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
350
|
+
'name': this.getName()
|
|
351
|
+
} : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
|
|
352
|
+
'description': this.getDescription()
|
|
353
|
+
} : {}), typeof this.getShouldLoadBalanceVmAttachments() !== 'undefined' && this.getShouldLoadBalanceVmAttachments() !== null ? {
|
|
354
|
+
'shouldLoadBalanceVmAttachments': this.getShouldLoadBalanceVmAttachments()
|
|
355
|
+
} : {}), typeof this.getSharingStatus() !== 'undefined' && this.getSharingStatus() !== null ? {
|
|
356
|
+
'sharingStatus': this.getSharingStatus()
|
|
357
|
+
} : {}), typeof this.getTargetPrefix() !== 'undefined' && this.getTargetPrefix() !== null ? {
|
|
358
|
+
'targetPrefix': this.getTargetPrefix()
|
|
359
|
+
} : {}), typeof this.getTargetName() !== 'undefined' && this.getTargetName() !== null ? {
|
|
360
|
+
'targetName': this.getTargetName()
|
|
361
|
+
} : {}), typeof this.getEnabledAuthentications() !== 'undefined' && this.getEnabledAuthentications() !== null ? {
|
|
362
|
+
'enabledAuthentications': this.getEnabledAuthentications()
|
|
363
|
+
} : {}), typeof this.getIscsiFeatures() !== 'undefined' && this.getIscsiFeatures() !== null ? {
|
|
364
|
+
'iscsiFeatures': this.getIscsiFeatures().toJson(false)
|
|
365
|
+
} : {}), typeof this.getCreatedBy() !== 'undefined' && this.getCreatedBy() !== null ? {
|
|
366
|
+
'createdBy': this.getCreatedBy()
|
|
367
|
+
} : {}), typeof this.getClusterReference() !== 'undefined' && this.getClusterReference() !== null ? {
|
|
368
|
+
'clusterReference': this.getClusterReference()
|
|
369
|
+
} : {}), typeof this.getStorageFeatures() !== 'undefined' && this.getStorageFeatures() !== null ? {
|
|
370
|
+
'storageFeatures': this.getStorageFeatures().toJson(false)
|
|
371
|
+
} : {}), typeof this.getUsageType() !== 'undefined' && this.getUsageType() !== null ? {
|
|
372
|
+
'usageType': this.getUsageType()
|
|
373
|
+
} : {}), typeof this.getIsHidden() !== 'undefined' && this.getIsHidden() !== null ? {
|
|
374
|
+
'isHidden': this.getIsHidden()
|
|
375
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
376
|
+
'extId': this.getExtId()
|
|
377
|
+
} : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
378
|
+
'links': this.getLinks().map(function (item) {
|
|
379
|
+
return item.toJson(false);
|
|
380
|
+
})
|
|
381
|
+
} : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
382
|
+
'tenantId': this.getTenantId()
|
|
383
|
+
} : {}), {}, {
|
|
384
|
+
'$reserved': this.get$Reserved(),
|
|
385
|
+
'$objectType': this.get$ObjectType(),
|
|
386
|
+
'$unknownFields': this.get$UnknownFields()
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
390
|
+
'name': this.getName()
|
|
391
|
+
} : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
|
|
392
|
+
'description': this.getDescription()
|
|
393
|
+
} : {}), typeof this.getShouldLoadBalanceVmAttachments() !== 'undefined' && this.getShouldLoadBalanceVmAttachments() !== null ? {
|
|
394
|
+
'shouldLoadBalanceVmAttachments': this.getShouldLoadBalanceVmAttachments()
|
|
395
|
+
} : {}), typeof this.getSharingStatus() !== 'undefined' && this.getSharingStatus() !== null ? {
|
|
396
|
+
'sharingStatus': this.getSharingStatus()
|
|
397
|
+
} : {}), typeof this.getTargetPrefix() !== 'undefined' && this.getTargetPrefix() !== null ? {
|
|
398
|
+
'targetPrefix': this.getTargetPrefix()
|
|
399
|
+
} : {}), typeof this.getTargetName() !== 'undefined' && this.getTargetName() !== null ? {
|
|
400
|
+
'targetName': this.getTargetName()
|
|
401
|
+
} : {}), typeof this.getEnabledAuthentications() !== 'undefined' && this.getEnabledAuthentications() !== null ? {
|
|
402
|
+
'enabledAuthentications': this.getEnabledAuthentications()
|
|
403
|
+
} : {}), typeof this.getIscsiFeatures() !== 'undefined' && this.getIscsiFeatures() !== null ? {
|
|
404
|
+
'iscsiFeatures': this.getIscsiFeatures().toJson(false)
|
|
405
|
+
} : {}), typeof this.getCreatedBy() !== 'undefined' && this.getCreatedBy() !== null ? {
|
|
406
|
+
'createdBy': this.getCreatedBy()
|
|
407
|
+
} : {}), typeof this.getClusterReference() !== 'undefined' && this.getClusterReference() !== null ? {
|
|
408
|
+
'clusterReference': this.getClusterReference()
|
|
409
|
+
} : {}), typeof this.getStorageFeatures() !== 'undefined' && this.getStorageFeatures() !== null ? {
|
|
410
|
+
'storageFeatures': this.getStorageFeatures().toJson(false)
|
|
411
|
+
} : {}), typeof this.getUsageType() !== 'undefined' && this.getUsageType() !== null ? {
|
|
412
|
+
'usageType': this.getUsageType()
|
|
413
|
+
} : {}), typeof this.getIsHidden() !== 'undefined' && this.getIsHidden() !== null ? {
|
|
414
|
+
'isHidden': this.getIsHidden()
|
|
415
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
416
|
+
'extId': this.getExtId()
|
|
417
|
+
} : {}), {}, {
|
|
418
|
+
'$reserved': this.get$Reserved(),
|
|
419
|
+
'$objectType': this.get$ObjectType(),
|
|
420
|
+
'$unknownFields': this.get$UnknownFields()
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
}, {
|
|
424
|
+
key: "validate",
|
|
425
|
+
value: function validate(scope, properties) {
|
|
426
|
+
var _this2 = this;
|
|
427
|
+
var propList = [];
|
|
428
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
429
|
+
//cases validate() and validate(scope)
|
|
430
|
+
propList = [];
|
|
431
|
+
} else if (arguments.length === 1) {
|
|
432
|
+
//case validate(properties)
|
|
433
|
+
propList = arguments[0];
|
|
434
|
+
scope = null;
|
|
435
|
+
} else {
|
|
436
|
+
//case validate(scope, properties)
|
|
437
|
+
propList = arguments[1];
|
|
438
|
+
}
|
|
439
|
+
var res = [];
|
|
440
|
+
var err = null;
|
|
441
|
+
propList.forEach(function (property) {
|
|
442
|
+
err = _this2.validateProperty(property, scope);
|
|
443
|
+
if (err) {
|
|
444
|
+
res.push(err);
|
|
445
|
+
}
|
|
446
|
+
});
|
|
447
|
+
return new Promise(function (resolve, reject) {
|
|
448
|
+
if (res.length !== 0) {
|
|
449
|
+
reject(err);
|
|
450
|
+
} else {
|
|
451
|
+
resolve();
|
|
452
|
+
}
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
}, {
|
|
456
|
+
key: "validateProperty",
|
|
457
|
+
value: function validateProperty(scope, property) {
|
|
458
|
+
if (property === "name") {
|
|
459
|
+
if (typeof this.name === 'undefined' || this.name === null) {
|
|
460
|
+
return new _ValidationError["default"]("name", "undefined or null");
|
|
461
|
+
}
|
|
462
|
+
if (!_ValidationUtils["default"].validateMaxLength(this.name, 256)) {
|
|
463
|
+
return new _ValidationError["default"]("name", "does not satisfy required maxLength constraint: 256");
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
if (property === "description") {
|
|
467
|
+
if (typeof this.description === 'undefined' || this.description === null) {
|
|
468
|
+
return new _ValidationError["default"]("description", "undefined or null");
|
|
469
|
+
}
|
|
470
|
+
if (!_ValidationUtils["default"].validateMaxLength(this.description, 1000)) {
|
|
471
|
+
return new _ValidationError["default"]("description", "does not satisfy required maxLength constraint: 1000");
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
if (property === "shouldLoadBalanceVmAttachments") {
|
|
475
|
+
if (typeof this.shouldLoadBalanceVmAttachments === 'undefined' || this.shouldLoadBalanceVmAttachments === null) {
|
|
476
|
+
return new _ValidationError["default"]("shouldLoadBalanceVmAttachments", "undefined or null");
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
if (property === "sharingStatus") {
|
|
480
|
+
if (typeof this.sharingStatus === 'undefined' || this.sharingStatus === null) {
|
|
481
|
+
return new _ValidationError["default"]("sharingStatus", "undefined or null");
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
if (property === "targetPrefix") {
|
|
485
|
+
if (typeof this.targetPrefix === 'undefined' || this.targetPrefix === null) {
|
|
486
|
+
return new _ValidationError["default"]("targetPrefix", "undefined or null");
|
|
487
|
+
}
|
|
488
|
+
if (!_ValidationUtils["default"].validateMaxLength(this.targetPrefix, 512)) {
|
|
489
|
+
return new _ValidationError["default"]("targetPrefix", "does not satisfy required maxLength constraint: 512");
|
|
490
|
+
}
|
|
491
|
+
if (!_ValidationUtils["default"].validatePattern(this.targetPrefix, /^[\\da-zA-Z:\\.\\-]+$/)) {
|
|
492
|
+
return new _ValidationError["default"]("targetPrefix", "does not satisfy required pattern: /^[\\da-zA-Z:\\.\\-]+$/");
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
if (property === "targetName") {
|
|
496
|
+
if (typeof this.targetName === 'undefined' || this.targetName === null) {
|
|
497
|
+
return new _ValidationError["default"]("targetName", "undefined or null");
|
|
498
|
+
}
|
|
499
|
+
if (!_ValidationUtils["default"].validateMaxLength(this.targetName, 512)) {
|
|
500
|
+
return new _ValidationError["default"]("targetName", "does not satisfy required maxLength constraint: 512");
|
|
501
|
+
}
|
|
502
|
+
if (!_ValidationUtils["default"].validateMinLength(this.targetName, 12)) {
|
|
503
|
+
return new _ValidationError["default"]("targetName", "does not satisfy required minLength constraint: 12");
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
if (property === "enabledAuthentications") {
|
|
507
|
+
if (typeof this.enabledAuthentications === 'undefined' || this.enabledAuthentications === null) {
|
|
508
|
+
return new _ValidationError["default"]("enabledAuthentications", "undefined or null");
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
if (property === "iscsiFeatures") {
|
|
512
|
+
if (typeof this.iscsiFeatures === 'undefined' || this.iscsiFeatures === null) {
|
|
513
|
+
return new _ValidationError["default"]("iscsiFeatures", "undefined or null");
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
if (property === "createdBy") {
|
|
517
|
+
if (typeof this.createdBy === 'undefined' || this.createdBy === null) {
|
|
518
|
+
return new _ValidationError["default"]("createdBy", "undefined or null");
|
|
519
|
+
}
|
|
520
|
+
if (!_ValidationUtils["default"].validateMaxLength(this.createdBy, 512)) {
|
|
521
|
+
return new _ValidationError["default"]("createdBy", "does not satisfy required maxLength constraint: 512");
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
if (property === "clusterReference") {
|
|
525
|
+
if (typeof this.clusterReference === 'undefined' || this.clusterReference === null) {
|
|
526
|
+
return new _ValidationError["default"]("clusterReference", "undefined or null");
|
|
527
|
+
}
|
|
528
|
+
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}$/)) {
|
|
529
|
+
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}$/");
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
if (property === "storageFeatures") {
|
|
533
|
+
if (typeof this.storageFeatures === 'undefined' || this.storageFeatures === null) {
|
|
534
|
+
return new _ValidationError["default"]("storageFeatures", "undefined or null");
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
if (property === "usageType") {
|
|
538
|
+
if (typeof this.usageType === 'undefined' || this.usageType === null) {
|
|
539
|
+
return new _ValidationError["default"]("usageType", "undefined or null");
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
if (property === "isHidden") {
|
|
543
|
+
if (typeof this.isHidden === 'undefined' || this.isHidden === null) {
|
|
544
|
+
return new _ValidationError["default"]("isHidden", "undefined or null");
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
548
|
+
}
|
|
549
|
+
}], [{
|
|
550
|
+
key: "constructFromObject",
|
|
551
|
+
value: function constructFromObject(data, obj) {
|
|
552
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
553
|
+
var items, item, i, itemArr, discriminator;
|
|
554
|
+
if (data) {
|
|
555
|
+
obj = obj || new VolumeGroup();
|
|
556
|
+
_ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
|
|
557
|
+
if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
|
|
558
|
+
obj.setName(data['name']);
|
|
559
|
+
}
|
|
560
|
+
if (data.hasOwnProperty('description') && data.description !== null && data.description !== undefined) {
|
|
561
|
+
obj.setDescription(data['description']);
|
|
562
|
+
}
|
|
563
|
+
if (data.hasOwnProperty('shouldLoadBalanceVmAttachments') && data.shouldLoadBalanceVmAttachments !== null && data.shouldLoadBalanceVmAttachments !== undefined) {
|
|
564
|
+
obj.setShouldLoadBalanceVmAttachments(data['shouldLoadBalanceVmAttachments']);
|
|
565
|
+
}
|
|
566
|
+
if (data.hasOwnProperty('sharingStatus') && data.sharingStatus !== null && data.sharingStatus !== undefined) {
|
|
567
|
+
obj.setSharingStatus(_SharingStatus["default"].constructFromObject(data['sharingStatus']));
|
|
568
|
+
}
|
|
569
|
+
if (data.hasOwnProperty('targetPrefix') && data.targetPrefix !== null && data.targetPrefix !== undefined) {
|
|
570
|
+
obj.setTargetPrefix(data['targetPrefix']);
|
|
571
|
+
}
|
|
572
|
+
if (data.hasOwnProperty('targetName') && data.targetName !== null && data.targetName !== undefined) {
|
|
573
|
+
obj.setTargetName(data['targetName']);
|
|
574
|
+
}
|
|
575
|
+
if (data.hasOwnProperty('enabledAuthentications') && data.enabledAuthentications !== null && data.enabledAuthentications !== undefined) {
|
|
576
|
+
obj.setEnabledAuthentications(_AuthenticationType["default"].constructFromObject(data['enabledAuthentications']));
|
|
577
|
+
}
|
|
578
|
+
if (data.hasOwnProperty('iscsiFeatures') && data.iscsiFeatures !== null && data.iscsiFeatures !== undefined) {
|
|
579
|
+
obj.setIscsiFeatures(_IscsiFeatures["default"].constructFromObject(data['iscsiFeatures']));
|
|
580
|
+
}
|
|
581
|
+
if (data.hasOwnProperty('createdBy') && data.createdBy !== null && data.createdBy !== undefined) {
|
|
582
|
+
obj.setCreatedBy(data['createdBy']);
|
|
583
|
+
}
|
|
584
|
+
if (data.hasOwnProperty('clusterReference') && data.clusterReference !== null && data.clusterReference !== undefined) {
|
|
585
|
+
obj.setClusterReference(data['clusterReference']);
|
|
586
|
+
}
|
|
587
|
+
if (data.hasOwnProperty('storageFeatures') && data.storageFeatures !== null && data.storageFeatures !== undefined) {
|
|
588
|
+
obj.setStorageFeatures(_StorageFeatures["default"].constructFromObject(data['storageFeatures']));
|
|
589
|
+
}
|
|
590
|
+
if (data.hasOwnProperty('usageType') && data.usageType !== null && data.usageType !== undefined) {
|
|
591
|
+
obj.setUsageType(_UsageType["default"].constructFromObject(data['usageType']));
|
|
592
|
+
}
|
|
593
|
+
if (data.hasOwnProperty('isHidden') && data.isHidden !== null && data.isHidden !== undefined) {
|
|
594
|
+
obj.setIsHidden(data['isHidden']);
|
|
595
|
+
}
|
|
596
|
+
if (!callFromChild) {
|
|
597
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
598
|
+
for (var property in data) {
|
|
599
|
+
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
600
|
+
obj.$unknownFields[property] = data[property];
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
return obj;
|
|
606
|
+
}
|
|
607
|
+
}]);
|
|
608
|
+
}(_ExternalizableAbstractModel["default"]);
|
|
609
|
+
/**
|
|
610
|
+
* Volume Group name. This is an optional field.
|
|
611
|
+
* @memberof VolumeGroup
|
|
612
|
+
*/
|
|
613
|
+
function _toJsonMapType(obj, forMutation) {
|
|
614
|
+
if (obj instanceof Map) {
|
|
615
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
616
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
617
|
+
k = _ref2[0],
|
|
618
|
+
v = _ref2[1];
|
|
619
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
620
|
+
}));
|
|
621
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
622
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
623
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
624
|
+
}));
|
|
625
|
+
}
|
|
626
|
+
return obj;
|
|
627
|
+
}
|
|
628
|
+
VolumeGroup.prototype.name = undefined;
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* Volume Group description. This is an optional field.
|
|
632
|
+
* @memberof VolumeGroup
|
|
633
|
+
*/
|
|
634
|
+
VolumeGroup.prototype.description = undefined;
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* Indicates whether to enable Volume Group load balancing for VM attachments. This cannot be enabled if there are iSCSI client attachments already associated with the Volume Group, and vice-versa. This is an optional field.
|
|
638
|
+
* @memberof VolumeGroup
|
|
639
|
+
*/
|
|
640
|
+
VolumeGroup.prototype.shouldLoadBalanceVmAttachments = undefined;
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* @memberof VolumeGroup
|
|
644
|
+
*/
|
|
645
|
+
VolumeGroup.prototype.sharingStatus = undefined;
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* The specifications contain the target prefix for external clients as the value. This is an optional field.
|
|
649
|
+
* @memberof VolumeGroup
|
|
650
|
+
*/
|
|
651
|
+
VolumeGroup.prototype.targetPrefix = undefined;
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* Name of the external client target that will be visible and accessible to the client. This is an optional field.
|
|
655
|
+
* @memberof VolumeGroup
|
|
656
|
+
*/
|
|
657
|
+
VolumeGroup.prototype.targetName = undefined;
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* @memberof VolumeGroup
|
|
661
|
+
*/
|
|
662
|
+
VolumeGroup.prototype.enabledAuthentications = undefined;
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* @memberof VolumeGroup
|
|
666
|
+
*/
|
|
667
|
+
VolumeGroup.prototype.iscsiFeatures = undefined;
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* Service/user who created this Volume Group. This is an optional field.
|
|
671
|
+
* @memberof VolumeGroup
|
|
672
|
+
*/
|
|
673
|
+
VolumeGroup.prototype.createdBy = undefined;
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* The UUID of the cluster that will host the Volume Group. This is a mandatory field for creating a Volume Group on Prism Central.
|
|
677
|
+
* @memberof VolumeGroup
|
|
678
|
+
*/
|
|
679
|
+
VolumeGroup.prototype.clusterReference = undefined;
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* @memberof VolumeGroup
|
|
683
|
+
*/
|
|
684
|
+
VolumeGroup.prototype.storageFeatures = undefined;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* @memberof VolumeGroup
|
|
688
|
+
*/
|
|
689
|
+
VolumeGroup.prototype.usageType = undefined;
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* Indicates whether the Volume Group is meant to be hidden or not. This is an optional field. If omitted, the VG will not be hidden.
|
|
693
|
+
* @memberof VolumeGroup
|
|
694
|
+
*/
|
|
695
|
+
VolumeGroup.prototype.isHidden = undefined;
|
|
696
|
+
|
|
697
|
+
// Implement OneOfvolumes.v4.config.GetVolumeGroupApiResponsedata interface:
|