@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,308 @@
|
|
|
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 _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
10
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
11
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
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); }
|
|
14
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
15
|
+
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."); }
|
|
16
|
+
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); }
|
|
17
|
+
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; }
|
|
18
|
+
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; } }
|
|
19
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
20
|
+
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; }
|
|
21
|
+
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; }
|
|
22
|
+
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; }
|
|
23
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
24
|
+
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); } }
|
|
25
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
26
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
27
|
+
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); }
|
|
28
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
29
|
+
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); }
|
|
30
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
31
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
32
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
33
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
34
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
35
|
+
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
|
36
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
|
|
37
|
+
* Nutanix Volumes Versioned APIs
|
|
38
|
+
*
|
|
39
|
+
* OpenAPI spec version: 4.0.1-beta-1
|
|
40
|
+
*
|
|
41
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
42
|
+
*
|
|
43
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
44
|
+
*
|
|
45
|
+
* Do not edit the class manually.
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
/**
|
|
49
|
+
* The NvmfClient model module.
|
|
50
|
+
* @module Ntnx/NvmfClient
|
|
51
|
+
* @version 4.0.1-beta-1
|
|
52
|
+
* @class NvmfClient
|
|
53
|
+
*/
|
|
54
|
+
var _NvmfClient_brand = /*#__PURE__*/new WeakSet();
|
|
55
|
+
var NvmfClient = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
|
|
56
|
+
/**
|
|
57
|
+
* Constructs a new <code>NvmfClient</code>.
|
|
58
|
+
* A model that represents an NVMf client that can be associated with a Volume Group as an external attachment.
|
|
59
|
+
* @alias module:Ntnx/NvmfClient
|
|
60
|
+
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
61
|
+
*/
|
|
62
|
+
function NvmfClient() {
|
|
63
|
+
var _this;
|
|
64
|
+
_classCallCheck(this, NvmfClient);
|
|
65
|
+
_this = _callSuper(this, NvmfClient);
|
|
66
|
+
/*
|
|
67
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
68
|
+
* @param {Object} obj
|
|
69
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
70
|
+
* Otherwise, just returns the input object.
|
|
71
|
+
*/
|
|
72
|
+
_classPrivateMethodInitSpec(_this, _NvmfClient_brand);
|
|
73
|
+
_this.$objectType = "volumes.v4.config.NvmfClient";
|
|
74
|
+
_this.$reserved = {
|
|
75
|
+
'$fv': "v4.r0.b1"
|
|
76
|
+
};
|
|
77
|
+
_this.$unknownFields = {};
|
|
78
|
+
return _this;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Constructs a <code>NvmfClient</code> from a plain JavaScript object, optionally creating a new instance.
|
|
83
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
84
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
85
|
+
* @param {module:Ntnx/NvmfClient} obj Optional instance to populate.
|
|
86
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
87
|
+
* @return {module:Ntnx/NvmfClient} The populated <code>NvmfClient</code> instance.
|
|
88
|
+
*/
|
|
89
|
+
_inherits(NvmfClient, _ExternalizableAbstra);
|
|
90
|
+
return _createClass(NvmfClient, [{
|
|
91
|
+
key: "getNvmfInitiatorName",
|
|
92
|
+
value:
|
|
93
|
+
/**
|
|
94
|
+
* Returns NVMf client qualified name.
|
|
95
|
+
* @return {}
|
|
96
|
+
*/
|
|
97
|
+
function getNvmfInitiatorName() {
|
|
98
|
+
return this.nvmfInitiatorName;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Sets NVMf client qualified name.
|
|
103
|
+
* @param {} nvmfInitiatorName NVMf client qualified name.
|
|
104
|
+
*/
|
|
105
|
+
}, {
|
|
106
|
+
key: "setNvmfInitiatorName",
|
|
107
|
+
value: function setNvmfInitiatorName(nvmfInitiatorName) {
|
|
108
|
+
this.nvmfInitiatorName = nvmfInitiatorName;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Returns List of all subsystems connected to the NVMf client.
|
|
113
|
+
* @return {}
|
|
114
|
+
*/
|
|
115
|
+
}, {
|
|
116
|
+
key: "getAttachedTargets",
|
|
117
|
+
value: function getAttachedTargets() {
|
|
118
|
+
return this.attachedTargets;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Sets List of all subsystems connected to the NVMf client.
|
|
123
|
+
* @param {} attachedTargets List of all subsystems connected to the NVMf client.
|
|
124
|
+
*/
|
|
125
|
+
}, {
|
|
126
|
+
key: "setAttachedTargets",
|
|
127
|
+
value: function setAttachedTargets(attachedTargets) {
|
|
128
|
+
this.attachedTargets = attachedTargets;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Returns The UUID of the cluster that will host the NVMf client.
|
|
133
|
+
* @return {}
|
|
134
|
+
*/
|
|
135
|
+
}, {
|
|
136
|
+
key: "getClusterReference",
|
|
137
|
+
value: function getClusterReference() {
|
|
138
|
+
return this.clusterReference;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Sets The UUID of the cluster that will host the NVMf client.
|
|
143
|
+
* @param {} clusterReference The UUID of the cluster that will host the NVMf client.
|
|
144
|
+
*/
|
|
145
|
+
}, {
|
|
146
|
+
key: "setClusterReference",
|
|
147
|
+
value: function setClusterReference(clusterReference) {
|
|
148
|
+
this.clusterReference = clusterReference;
|
|
149
|
+
}
|
|
150
|
+
}, {
|
|
151
|
+
key: "toJson",
|
|
152
|
+
value: function toJson(forMutation) {
|
|
153
|
+
if (forMutation === false) {
|
|
154
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getNvmfInitiatorName() !== 'undefined' && this.getNvmfInitiatorName() !== null ? {
|
|
155
|
+
'nvmfInitiatorName': this.getNvmfInitiatorName()
|
|
156
|
+
} : {}), typeof this.getAttachedTargets() !== 'undefined' && this.getAttachedTargets() !== null ? {
|
|
157
|
+
'attachedTargets': this.getAttachedTargets()
|
|
158
|
+
} : {}), typeof this.getClusterReference() !== 'undefined' && this.getClusterReference() !== null ? {
|
|
159
|
+
'clusterReference': this.getClusterReference()
|
|
160
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
161
|
+
'extId': this.getExtId()
|
|
162
|
+
} : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
163
|
+
'links': this.getLinks().map(function (item) {
|
|
164
|
+
return item.toJson(false);
|
|
165
|
+
})
|
|
166
|
+
} : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
167
|
+
'tenantId': this.getTenantId()
|
|
168
|
+
} : {}), {}, {
|
|
169
|
+
'$reserved': this.get$Reserved(),
|
|
170
|
+
'$objectType': this.get$ObjectType(),
|
|
171
|
+
'$unknownFields': this.get$UnknownFields()
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getNvmfInitiatorName() !== 'undefined' && this.getNvmfInitiatorName() !== null ? {
|
|
175
|
+
'nvmfInitiatorName': this.getNvmfInitiatorName()
|
|
176
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
177
|
+
'extId': this.getExtId()
|
|
178
|
+
} : {}), {}, {
|
|
179
|
+
'$reserved': this.get$Reserved(),
|
|
180
|
+
'$objectType': this.get$ObjectType(),
|
|
181
|
+
'$unknownFields': this.get$UnknownFields()
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
}, {
|
|
185
|
+
key: "validate",
|
|
186
|
+
value: function validate(scope, properties) {
|
|
187
|
+
var _this2 = this;
|
|
188
|
+
var propList = [];
|
|
189
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
190
|
+
//cases validate() and validate(scope)
|
|
191
|
+
propList = [];
|
|
192
|
+
} else if (arguments.length === 1) {
|
|
193
|
+
//case validate(properties)
|
|
194
|
+
propList = arguments[0];
|
|
195
|
+
scope = null;
|
|
196
|
+
} else {
|
|
197
|
+
//case validate(scope, properties)
|
|
198
|
+
propList = arguments[1];
|
|
199
|
+
}
|
|
200
|
+
var res = [];
|
|
201
|
+
var err = null;
|
|
202
|
+
propList.forEach(function (property) {
|
|
203
|
+
err = _this2.validateProperty(property, scope);
|
|
204
|
+
if (err) {
|
|
205
|
+
res.push(err);
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
return new Promise(function (resolve, reject) {
|
|
209
|
+
if (res.length !== 0) {
|
|
210
|
+
reject(err);
|
|
211
|
+
} else {
|
|
212
|
+
resolve();
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
}, {
|
|
217
|
+
key: "validateProperty",
|
|
218
|
+
value: function validateProperty(scope, property) {
|
|
219
|
+
if (property === "nvmfInitiatorName") {
|
|
220
|
+
if (typeof this.nvmfInitiatorName === 'undefined' || this.nvmfInitiatorName === null) {
|
|
221
|
+
return new _ValidationError["default"]("nvmfInitiatorName", "undefined or null");
|
|
222
|
+
}
|
|
223
|
+
if (!_ValidationUtils["default"].validateMaxLength(this.nvmfInitiatorName, 68)) {
|
|
224
|
+
return new _ValidationError["default"]("nvmfInitiatorName", "does not satisfy required maxLength constraint: 68");
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
if (property === "attachedTargets") {
|
|
228
|
+
if (typeof this.attachedTargets === 'undefined' || this.attachedTargets === null) {
|
|
229
|
+
return new _ValidationError["default"]("attachedTargets", "undefined or null");
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
if (property === "clusterReference") {
|
|
233
|
+
if (typeof this.clusterReference === 'undefined' || this.clusterReference === null) {
|
|
234
|
+
return new _ValidationError["default"]("clusterReference", "undefined or null");
|
|
235
|
+
}
|
|
236
|
+
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}$/)) {
|
|
237
|
+
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}$/");
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
241
|
+
}
|
|
242
|
+
}], [{
|
|
243
|
+
key: "constructFromObject",
|
|
244
|
+
value: function constructFromObject(data, obj) {
|
|
245
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
246
|
+
var items, item, i, itemArr, discriminator;
|
|
247
|
+
if (data) {
|
|
248
|
+
obj = obj || new NvmfClient();
|
|
249
|
+
_ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
|
|
250
|
+
if (data.hasOwnProperty('nvmfInitiatorName') && data.nvmfInitiatorName !== null && data.nvmfInitiatorName !== undefined) {
|
|
251
|
+
obj.setNvmfInitiatorName(data['nvmfInitiatorName']);
|
|
252
|
+
}
|
|
253
|
+
if (data.hasOwnProperty('attachedTargets') && data.attachedTargets !== null && data.attachedTargets !== undefined) {
|
|
254
|
+
itemArr = [];
|
|
255
|
+
items = data.attachedTargets;
|
|
256
|
+
for (i = 0; i < items.length; i++) {
|
|
257
|
+
itemArr.push(items[i]);
|
|
258
|
+
}
|
|
259
|
+
obj.setAttachedTargets(itemArr);
|
|
260
|
+
}
|
|
261
|
+
if (data.hasOwnProperty('clusterReference') && data.clusterReference !== null && data.clusterReference !== undefined) {
|
|
262
|
+
obj.setClusterReference(data['clusterReference']);
|
|
263
|
+
}
|
|
264
|
+
if (!callFromChild) {
|
|
265
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
266
|
+
for (var property in data) {
|
|
267
|
+
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
268
|
+
obj.$unknownFields[property] = data[property];
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
return obj;
|
|
274
|
+
}
|
|
275
|
+
}]);
|
|
276
|
+
}(_ExternalizableAbstractModel["default"]);
|
|
277
|
+
/**
|
|
278
|
+
* NVMf client qualified name.
|
|
279
|
+
* @memberof NvmfClient
|
|
280
|
+
*/
|
|
281
|
+
function _toJsonMapType(obj, forMutation) {
|
|
282
|
+
if (obj instanceof Map) {
|
|
283
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
284
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
285
|
+
k = _ref2[0],
|
|
286
|
+
v = _ref2[1];
|
|
287
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
288
|
+
}));
|
|
289
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
290
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
291
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
292
|
+
}));
|
|
293
|
+
}
|
|
294
|
+
return obj;
|
|
295
|
+
}
|
|
296
|
+
NvmfClient.prototype.nvmfInitiatorName = undefined;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* List of all subsystems connected to the NVMf client.
|
|
300
|
+
* @memberof NvmfClient
|
|
301
|
+
*/
|
|
302
|
+
NvmfClient.prototype.attachedTargets = undefined;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* The UUID of the cluster that will host the NVMf client.
|
|
306
|
+
* @memberof NvmfClient
|
|
307
|
+
*/
|
|
308
|
+
NvmfClient.prototype.clusterReference = undefined;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NvmfClientAttachment model module.
|
|
3
|
+
* @module Ntnx/NvmfClientAttachment
|
|
4
|
+
* @version 4.0.1-beta-1
|
|
5
|
+
* @class NvmfClientAttachment
|
|
6
|
+
*/
|
|
7
|
+
export default class NvmfClientAttachment extends ExternalizableAbstractModel {
|
|
8
|
+
/**
|
|
9
|
+
* Returns The UUID of the cluster that will host the NVMf client.
|
|
10
|
+
* @return {}
|
|
11
|
+
*/
|
|
12
|
+
getClusterReference(): any;
|
|
13
|
+
/**
|
|
14
|
+
* Sets The UUID of the cluster that will host the NVMf client.
|
|
15
|
+
* @param {} clusterReference The UUID of the cluster that will host the NVMf client.
|
|
16
|
+
*/
|
|
17
|
+
setClusterReference(clusterReference: any): void;
|
|
18
|
+
clusterReference: any;
|
|
19
|
+
toJson(forMutation: any): {
|
|
20
|
+
$reserved: {
|
|
21
|
+
$fv: string;
|
|
22
|
+
};
|
|
23
|
+
$objectType: string;
|
|
24
|
+
$unknownFields: {};
|
|
25
|
+
tenantId?: any;
|
|
26
|
+
links?: any;
|
|
27
|
+
extId?: any;
|
|
28
|
+
clusterReference?: any;
|
|
29
|
+
};
|
|
30
|
+
#private;
|
|
31
|
+
}
|
|
32
|
+
import ExternalizableAbstractModel from "../../../common/v1/response/ExternalizableAbstractModel";
|
|
@@ -0,0 +1,228 @@
|
|
|
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 _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
10
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
11
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
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); }
|
|
14
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
15
|
+
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."); }
|
|
16
|
+
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); }
|
|
17
|
+
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; }
|
|
18
|
+
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; } }
|
|
19
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
20
|
+
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; }
|
|
21
|
+
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; }
|
|
22
|
+
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; }
|
|
23
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
24
|
+
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); } }
|
|
25
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
26
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
27
|
+
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); }
|
|
28
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
29
|
+
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); }
|
|
30
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
31
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
32
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
33
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
34
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
35
|
+
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
|
36
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
|
|
37
|
+
* Nutanix Volumes Versioned APIs
|
|
38
|
+
*
|
|
39
|
+
* OpenAPI spec version: 4.0.1-beta-1
|
|
40
|
+
*
|
|
41
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
42
|
+
*
|
|
43
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
44
|
+
*
|
|
45
|
+
* Do not edit the class manually.
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
/**
|
|
49
|
+
* The NvmfClientAttachment model module.
|
|
50
|
+
* @module Ntnx/NvmfClientAttachment
|
|
51
|
+
* @version 4.0.1-beta-1
|
|
52
|
+
* @class NvmfClientAttachment
|
|
53
|
+
*/
|
|
54
|
+
var _NvmfClientAttachment_brand = /*#__PURE__*/new WeakSet();
|
|
55
|
+
var NvmfClientAttachment = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
|
|
56
|
+
/**
|
|
57
|
+
* Constructs a new <code>NvmfClientAttachment</code>.
|
|
58
|
+
* A model that represents an NVMf client that can be associated with a Volume Group as an external attachment. It contains the minimal properties required for the attachment.
|
|
59
|
+
* @alias module:Ntnx/NvmfClientAttachment
|
|
60
|
+
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
61
|
+
*/
|
|
62
|
+
function NvmfClientAttachment() {
|
|
63
|
+
var _this;
|
|
64
|
+
_classCallCheck(this, NvmfClientAttachment);
|
|
65
|
+
_this = _callSuper(this, NvmfClientAttachment);
|
|
66
|
+
/*
|
|
67
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
68
|
+
* @param {Object} obj
|
|
69
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
70
|
+
* Otherwise, just returns the input object.
|
|
71
|
+
*/
|
|
72
|
+
_classPrivateMethodInitSpec(_this, _NvmfClientAttachment_brand);
|
|
73
|
+
_this.$objectType = "volumes.v4.config.NvmfClientAttachment";
|
|
74
|
+
_this.$reserved = {
|
|
75
|
+
'$fv': "v4.r0.b1"
|
|
76
|
+
};
|
|
77
|
+
_this.$unknownFields = {};
|
|
78
|
+
return _this;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Constructs a <code>NvmfClientAttachment</code> from a plain JavaScript object, optionally creating a new instance.
|
|
83
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
84
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
85
|
+
* @param {module:Ntnx/NvmfClientAttachment} obj Optional instance to populate.
|
|
86
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
87
|
+
* @return {module:Ntnx/NvmfClientAttachment} The populated <code>NvmfClientAttachment</code> instance.
|
|
88
|
+
*/
|
|
89
|
+
_inherits(NvmfClientAttachment, _ExternalizableAbstra);
|
|
90
|
+
return _createClass(NvmfClientAttachment, [{
|
|
91
|
+
key: "getClusterReference",
|
|
92
|
+
value:
|
|
93
|
+
/**
|
|
94
|
+
* Returns The UUID of the cluster that will host the NVMf client.
|
|
95
|
+
* @return {}
|
|
96
|
+
*/
|
|
97
|
+
function getClusterReference() {
|
|
98
|
+
return this.clusterReference;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Sets The UUID of the cluster that will host the NVMf client.
|
|
103
|
+
* @param {} clusterReference The UUID of the cluster that will host the NVMf client.
|
|
104
|
+
*/
|
|
105
|
+
}, {
|
|
106
|
+
key: "setClusterReference",
|
|
107
|
+
value: function setClusterReference(clusterReference) {
|
|
108
|
+
this.clusterReference = clusterReference;
|
|
109
|
+
}
|
|
110
|
+
}, {
|
|
111
|
+
key: "toJson",
|
|
112
|
+
value: function toJson(forMutation) {
|
|
113
|
+
if (forMutation === false) {
|
|
114
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getClusterReference() !== 'undefined' && this.getClusterReference() !== null ? {
|
|
115
|
+
'clusterReference': this.getClusterReference()
|
|
116
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
117
|
+
'extId': this.getExtId()
|
|
118
|
+
} : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
119
|
+
'links': this.getLinks().map(function (item) {
|
|
120
|
+
return item.toJson(false);
|
|
121
|
+
})
|
|
122
|
+
} : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
123
|
+
'tenantId': this.getTenantId()
|
|
124
|
+
} : {}), {}, {
|
|
125
|
+
'$reserved': this.get$Reserved(),
|
|
126
|
+
'$objectType': this.get$ObjectType(),
|
|
127
|
+
'$unknownFields': this.get$UnknownFields()
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getClusterReference() !== 'undefined' && this.getClusterReference() !== null ? {
|
|
131
|
+
'clusterReference': this.getClusterReference()
|
|
132
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
133
|
+
'extId': this.getExtId()
|
|
134
|
+
} : {}), {}, {
|
|
135
|
+
'$reserved': this.get$Reserved(),
|
|
136
|
+
'$objectType': this.get$ObjectType(),
|
|
137
|
+
'$unknownFields': this.get$UnknownFields()
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
}, {
|
|
141
|
+
key: "validate",
|
|
142
|
+
value: function validate(scope, properties) {
|
|
143
|
+
var _this2 = this;
|
|
144
|
+
var propList = [];
|
|
145
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
146
|
+
//cases validate() and validate(scope)
|
|
147
|
+
propList = [];
|
|
148
|
+
} else if (arguments.length === 1) {
|
|
149
|
+
//case validate(properties)
|
|
150
|
+
propList = arguments[0];
|
|
151
|
+
scope = null;
|
|
152
|
+
} else {
|
|
153
|
+
//case validate(scope, properties)
|
|
154
|
+
propList = arguments[1];
|
|
155
|
+
}
|
|
156
|
+
var res = [];
|
|
157
|
+
var err = null;
|
|
158
|
+
propList.forEach(function (property) {
|
|
159
|
+
err = _this2.validateProperty(property, scope);
|
|
160
|
+
if (err) {
|
|
161
|
+
res.push(err);
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
return new Promise(function (resolve, reject) {
|
|
165
|
+
if (res.length !== 0) {
|
|
166
|
+
reject(err);
|
|
167
|
+
} else {
|
|
168
|
+
resolve();
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
}, {
|
|
173
|
+
key: "validateProperty",
|
|
174
|
+
value: function validateProperty(scope, property) {
|
|
175
|
+
if (property === "clusterReference") {
|
|
176
|
+
if (typeof this.clusterReference === 'undefined' || this.clusterReference === null) {
|
|
177
|
+
return new _ValidationError["default"]("clusterReference", "undefined or null");
|
|
178
|
+
}
|
|
179
|
+
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}$/)) {
|
|
180
|
+
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}$/");
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
184
|
+
}
|
|
185
|
+
}], [{
|
|
186
|
+
key: "constructFromObject",
|
|
187
|
+
value: function constructFromObject(data, obj) {
|
|
188
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
189
|
+
var items, item, i, itemArr, discriminator;
|
|
190
|
+
if (data) {
|
|
191
|
+
obj = obj || new NvmfClientAttachment();
|
|
192
|
+
_ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
|
|
193
|
+
if (data.hasOwnProperty('clusterReference') && data.clusterReference !== null && data.clusterReference !== undefined) {
|
|
194
|
+
obj.setClusterReference(data['clusterReference']);
|
|
195
|
+
}
|
|
196
|
+
if (!callFromChild) {
|
|
197
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
198
|
+
for (var property in data) {
|
|
199
|
+
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
200
|
+
obj.$unknownFields[property] = data[property];
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
return obj;
|
|
206
|
+
}
|
|
207
|
+
}]);
|
|
208
|
+
}(_ExternalizableAbstractModel["default"]);
|
|
209
|
+
/**
|
|
210
|
+
* The UUID of the cluster that will host the NVMf client.
|
|
211
|
+
* @memberof NvmfClientAttachment
|
|
212
|
+
*/
|
|
213
|
+
function _toJsonMapType(obj, forMutation) {
|
|
214
|
+
if (obj instanceof Map) {
|
|
215
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
216
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
217
|
+
k = _ref2[0],
|
|
218
|
+
v = _ref2[1];
|
|
219
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
220
|
+
}));
|
|
221
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
222
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
223
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
224
|
+
}));
|
|
225
|
+
}
|
|
226
|
+
return obj;
|
|
227
|
+
}
|
|
228
|
+
NvmfClientAttachment.prototype.clusterReference = undefined;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The NvmfClientAttachmentProjection model module.
|
|
3
|
+
* @module Ntnx/NvmfClientAttachmentProjection
|
|
4
|
+
* @version 4.0.1-beta-1
|
|
5
|
+
* @class NvmfClientAttachmentProjection
|
|
6
|
+
*/
|
|
7
|
+
export default class NvmfClientAttachmentProjection extends NvmfClientAttachment {
|
|
8
|
+
/**
|
|
9
|
+
* @return {}
|
|
10
|
+
*/
|
|
11
|
+
getNvmfClientProjection(): any;
|
|
12
|
+
/**
|
|
13
|
+
* @param {} nvmfClientProjection
|
|
14
|
+
*/
|
|
15
|
+
setNvmfClientProjection(nvmfClientProjection: any): void;
|
|
16
|
+
nvmfClientProjection: any;
|
|
17
|
+
toJson(forMutation: any): {
|
|
18
|
+
$reserved: {
|
|
19
|
+
$fv: string;
|
|
20
|
+
};
|
|
21
|
+
$objectType: string;
|
|
22
|
+
$unknownFields: {};
|
|
23
|
+
tenantId?: any;
|
|
24
|
+
links?: any;
|
|
25
|
+
extId?: any;
|
|
26
|
+
clusterReference?: any;
|
|
27
|
+
nvmfClientProjection?: any;
|
|
28
|
+
};
|
|
29
|
+
#private;
|
|
30
|
+
}
|
|
31
|
+
import NvmfClientAttachment from "./NvmfClientAttachment";
|