@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,1023 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
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); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.VolumeGroupsApi = void 0;
|
|
8
|
+
var _ApiClient = require("../ApiClient");
|
|
9
|
+
var _GetVolumeGroupApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/GetVolumeGroupApiResponse"));
|
|
10
|
+
var _ListVolumeGroupsApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/ListVolumeGroupsApiResponse"));
|
|
11
|
+
var _CreateVolumeGroupApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/CreateVolumeGroupApiResponse"));
|
|
12
|
+
var _ListVolumeDisksApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/ListVolumeDisksApiResponse"));
|
|
13
|
+
var _RevertSpec = _interopRequireDefault(require("../models/volumes/v4/config/RevertSpec"));
|
|
14
|
+
var _DetachIscsiClientApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/DetachIscsiClientApiResponse"));
|
|
15
|
+
var _DownSamplingOperator = _interopRequireDefault(require("../models/common/v1/stats/DownSamplingOperator"));
|
|
16
|
+
var _GetVolumeGroupMetadataApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/GetVolumeGroupMetadataApiResponse"));
|
|
17
|
+
var _AttachVmApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/AttachVmApiResponse"));
|
|
18
|
+
var _GetVolumeDiskApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/GetVolumeDiskApiResponse"));
|
|
19
|
+
var _ListCategoryAssociationsApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/ListCategoryAssociationsApiResponse"));
|
|
20
|
+
var _ListExternalIscsiAttachmentsApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/ListExternalIscsiAttachmentsApiResponse"));
|
|
21
|
+
var _DeleteVolumeGroupApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/DeleteVolumeGroupApiResponse"));
|
|
22
|
+
var _VmAttachment = _interopRequireDefault(require("../models/volumes/v4/config/VmAttachment"));
|
|
23
|
+
var _RevertVolumeGroupApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/RevertVolumeGroupApiResponse"));
|
|
24
|
+
var _CreateVolumeDiskApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/CreateVolumeDiskApiResponse"));
|
|
25
|
+
var _DeleteVolumeDiskApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/DeleteVolumeDiskApiResponse"));
|
|
26
|
+
var _GetVolumeGroupStatsApiResponse = _interopRequireDefault(require("../models/volumes/v4/stats/GetVolumeGroupStatsApiResponse"));
|
|
27
|
+
var _VolumeGroup = _interopRequireDefault(require("../models/volumes/v4/config/VolumeGroup"));
|
|
28
|
+
var _ListVmAttachmentsApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/ListVmAttachmentsApiResponse"));
|
|
29
|
+
var _AttachIscsiClientApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/AttachIscsiClientApiResponse"));
|
|
30
|
+
var _IscsiClientAttachment = _interopRequireDefault(require("../models/volumes/v4/config/IscsiClientAttachment"));
|
|
31
|
+
var _GetVolumeDiskStatsApiResponse = _interopRequireDefault(require("../models/volumes/v4/stats/GetVolumeDiskStatsApiResponse"));
|
|
32
|
+
var _DetachVmApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/DetachVmApiResponse"));
|
|
33
|
+
var _VolumeDisk = _interopRequireDefault(require("../models/volumes/v4/config/VolumeDisk"));
|
|
34
|
+
var _IscsiClient = _interopRequireDefault(require("../models/volumes/v4/config/IscsiClient"));
|
|
35
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
36
|
+
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; }
|
|
37
|
+
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; }
|
|
38
|
+
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; }
|
|
39
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
40
|
+
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); } }
|
|
41
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
42
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
43
|
+
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); }
|
|
44
|
+
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
|
45
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
46
|
+
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
47
|
+
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
48
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); } /*
|
|
49
|
+
* Nutanix Volumes Versioned APIs
|
|
50
|
+
*
|
|
51
|
+
* OpenAPI spec version: 4.0.1-beta-1
|
|
52
|
+
*
|
|
53
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
54
|
+
*
|
|
55
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
56
|
+
*
|
|
57
|
+
* Do not edit the class manually.
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
/**
|
|
61
|
+
* VolumeGroups service.
|
|
62
|
+
* @version 4.0.1-beta-1
|
|
63
|
+
* @class VolumeGroupsApi
|
|
64
|
+
*/
|
|
65
|
+
var _headersToSkip = /*#__PURE__*/new WeakMap();
|
|
66
|
+
var VolumeGroupsApi = exports.VolumeGroupsApi = /*#__PURE__*/function () {
|
|
67
|
+
/**
|
|
68
|
+
* Constructs a new VolumeGroupsApi.
|
|
69
|
+
* @alias module:api/VolumeGroupsApi
|
|
70
|
+
* @class
|
|
71
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
72
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
73
|
+
*/
|
|
74
|
+
function VolumeGroupsApi(apiClient) {
|
|
75
|
+
_classCallCheck(this, VolumeGroupsApi);
|
|
76
|
+
_classPrivateFieldInitSpec(this, _headersToSkip, void 0);
|
|
77
|
+
this.apiClient = apiClient || _ApiClient.ApiClient.instance;
|
|
78
|
+
_classPrivateFieldSet(_headersToSkip, this, new Set());
|
|
79
|
+
_classPrivateFieldGet(_headersToSkip, this).add('authorization');
|
|
80
|
+
_classPrivateFieldGet(_headersToSkip, this).add('cookie');
|
|
81
|
+
_classPrivateFieldGet(_headersToSkip, this).add('host');
|
|
82
|
+
_classPrivateFieldGet(_headersToSkip, this).add('user-agent');
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Attach an iSCSI client to the given Volume Group.
|
|
87
|
+
* Attaches iSCSI initiator to a Volume Group identified by {extId}.
|
|
88
|
+
* @param { Partial<IscsiClient> } body specification
|
|
89
|
+
* @param { String } extId The external identifier of the Volume Group.
|
|
90
|
+
* @param {Object} args Additional Arguments
|
|
91
|
+
* @return {Promise<AttachIscsiClientApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link AttachIscsiClientApiResponse } and HTTP response
|
|
92
|
+
*/
|
|
93
|
+
return _createClass(VolumeGroupsApi, [{
|
|
94
|
+
key: "attachIscsiClient",
|
|
95
|
+
value: function attachIscsiClient(extId, body) {
|
|
96
|
+
var _this = this;
|
|
97
|
+
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
98
|
+
var postBody = null;
|
|
99
|
+
if (body instanceof _IscsiClient["default"] && typeof body.toJson === 'function') {
|
|
100
|
+
postBody = body.toJson();
|
|
101
|
+
} else {
|
|
102
|
+
postBody = body;
|
|
103
|
+
}
|
|
104
|
+
// verify the required parameter 'extId' is set
|
|
105
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
106
|
+
throw new Error("Missing the required parameter 'extId' when calling attachIscsiClient");
|
|
107
|
+
}
|
|
108
|
+
// verify the required parameter 'body' is set
|
|
109
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
110
|
+
throw new Error("Invalid body when calling attachIscsiClient");
|
|
111
|
+
}
|
|
112
|
+
var pathParams = {
|
|
113
|
+
'extId': extId
|
|
114
|
+
};
|
|
115
|
+
var queryParams = {};
|
|
116
|
+
var headersToInclude = {};
|
|
117
|
+
Object.keys(argMap).forEach(function (header) {
|
|
118
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {
|
|
119
|
+
headersToInclude[header] = argMap[header];
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
123
|
+
var formParams = {};
|
|
124
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
125
|
+
var authNames = ['basicAuthScheme'];
|
|
126
|
+
var contentTypes = ['application/json'];
|
|
127
|
+
var accepts = ['application/json'];
|
|
128
|
+
var returnType = _AttachIscsiClientApiResponse["default"];
|
|
129
|
+
return this.apiClient.callApi('/api/volumes/v4.0.b1/config/volume-groups/{extId}/$actions/attach-iscsi-client', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Attach an AHV VM to the given Volume Group.
|
|
134
|
+
* Attaches VM to a Volume Group identified by {extId}.
|
|
135
|
+
* @param { Partial<VmAttachment> } body specification
|
|
136
|
+
* @param { String } extId The external identifier of the Volume Group.
|
|
137
|
+
* @param {Object} args Additional Arguments
|
|
138
|
+
* @return {Promise<AttachVmApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link AttachVmApiResponse } and HTTP response
|
|
139
|
+
*/
|
|
140
|
+
}, {
|
|
141
|
+
key: "attachVm",
|
|
142
|
+
value: function attachVm(extId, body) {
|
|
143
|
+
var _this2 = this;
|
|
144
|
+
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
145
|
+
var postBody = null;
|
|
146
|
+
if (body instanceof _VmAttachment["default"] && typeof body.toJson === 'function') {
|
|
147
|
+
postBody = body.toJson();
|
|
148
|
+
} else {
|
|
149
|
+
postBody = body;
|
|
150
|
+
}
|
|
151
|
+
// verify the required parameter 'extId' is set
|
|
152
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
153
|
+
throw new Error("Missing the required parameter 'extId' when calling attachVm");
|
|
154
|
+
}
|
|
155
|
+
// verify the required parameter 'body' is set
|
|
156
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
157
|
+
throw new Error("Invalid body when calling attachVm");
|
|
158
|
+
}
|
|
159
|
+
var pathParams = {
|
|
160
|
+
'extId': extId
|
|
161
|
+
};
|
|
162
|
+
var queryParams = {};
|
|
163
|
+
var headersToInclude = {};
|
|
164
|
+
Object.keys(argMap).forEach(function (header) {
|
|
165
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {
|
|
166
|
+
headersToInclude[header] = argMap[header];
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
170
|
+
var formParams = {};
|
|
171
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
172
|
+
var authNames = ['basicAuthScheme'];
|
|
173
|
+
var contentTypes = ['application/json'];
|
|
174
|
+
var accepts = ['application/json'];
|
|
175
|
+
var returnType = _AttachVmApiResponse["default"];
|
|
176
|
+
return this.apiClient.callApi('/api/volumes/v4.0.b1/config/volume-groups/{extId}/$actions/attach-vm', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Creates a new Volume Disk.
|
|
181
|
+
* Creates a new Volume Disk.
|
|
182
|
+
* @param { Partial<VolumeDisk> } body specification
|
|
183
|
+
* @param { String } volumeGroupExtId The external identifier of the Volume Group.
|
|
184
|
+
* @param {Object} args Additional Arguments
|
|
185
|
+
* @return {Promise<CreateVolumeDiskApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateVolumeDiskApiResponse } and HTTP response
|
|
186
|
+
*/
|
|
187
|
+
}, {
|
|
188
|
+
key: "createVolumeDisk",
|
|
189
|
+
value: function createVolumeDisk(volumeGroupExtId, body) {
|
|
190
|
+
var _this3 = this;
|
|
191
|
+
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
192
|
+
var postBody = null;
|
|
193
|
+
if (body instanceof _VolumeDisk["default"] && typeof body.toJson === 'function') {
|
|
194
|
+
postBody = body.toJson();
|
|
195
|
+
} else {
|
|
196
|
+
postBody = body;
|
|
197
|
+
}
|
|
198
|
+
// verify the required parameter 'volumeGroupExtId' is set
|
|
199
|
+
if (typeof volumeGroupExtId === 'undefined' || volumeGroupExtId === null) {
|
|
200
|
+
throw new Error("Missing the required parameter 'volumeGroupExtId' when calling createVolumeDisk");
|
|
201
|
+
}
|
|
202
|
+
// verify the required parameter 'body' is set
|
|
203
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
204
|
+
throw new Error("Invalid body when calling createVolumeDisk");
|
|
205
|
+
}
|
|
206
|
+
var pathParams = {
|
|
207
|
+
'volumeGroupExtId': volumeGroupExtId
|
|
208
|
+
};
|
|
209
|
+
var queryParams = {};
|
|
210
|
+
var headersToInclude = {};
|
|
211
|
+
Object.keys(argMap).forEach(function (header) {
|
|
212
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this3).has(header.toLowerCase())) {
|
|
213
|
+
headersToInclude[header] = argMap[header];
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
217
|
+
var formParams = {};
|
|
218
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
219
|
+
var authNames = ['basicAuthScheme'];
|
|
220
|
+
var contentTypes = ['application/json'];
|
|
221
|
+
var accepts = ['application/json'];
|
|
222
|
+
var returnType = _CreateVolumeDiskApiResponse["default"];
|
|
223
|
+
return this.apiClient.callApi('/api/volumes/v4.0.b1/config/volume-groups/{volumeGroupExtId}/disks', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Creates a new Volume Group.
|
|
228
|
+
* Creates a new Volume Group.
|
|
229
|
+
* @param { Partial<VolumeGroup> } body specification
|
|
230
|
+
* @param {Object} args Additional Arguments
|
|
231
|
+
* @return {Promise<CreateVolumeGroupApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateVolumeGroupApiResponse } and HTTP response
|
|
232
|
+
*/
|
|
233
|
+
}, {
|
|
234
|
+
key: "createVolumeGroup",
|
|
235
|
+
value: function createVolumeGroup(body) {
|
|
236
|
+
var _this4 = this;
|
|
237
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
238
|
+
var postBody = null;
|
|
239
|
+
if (body instanceof _VolumeGroup["default"] && typeof body.toJson === 'function') {
|
|
240
|
+
postBody = body.toJson();
|
|
241
|
+
} else {
|
|
242
|
+
postBody = body;
|
|
243
|
+
}
|
|
244
|
+
// verify the required parameter 'body' is set
|
|
245
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
246
|
+
throw new Error("Invalid body when calling createVolumeGroup");
|
|
247
|
+
}
|
|
248
|
+
var pathParams = {};
|
|
249
|
+
var queryParams = {};
|
|
250
|
+
var headersToInclude = {};
|
|
251
|
+
Object.keys(argMap).forEach(function (header) {
|
|
252
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this4).has(header.toLowerCase())) {
|
|
253
|
+
headersToInclude[header] = argMap[header];
|
|
254
|
+
}
|
|
255
|
+
});
|
|
256
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
257
|
+
var formParams = {};
|
|
258
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
259
|
+
var authNames = ['basicAuthScheme'];
|
|
260
|
+
var contentTypes = ['application/json'];
|
|
261
|
+
var accepts = ['application/json'];
|
|
262
|
+
var returnType = _CreateVolumeGroupApiResponse["default"];
|
|
263
|
+
return this.apiClient.callApi('/api/volumes/v4.0.b1/config/volume-groups', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Delete a Volume Disk.
|
|
268
|
+
* Deletes a Volume Disk identified by {extId} in the Volume Group identified by {volumeGroupExtId}.
|
|
269
|
+
* @param { String } volumeGroupExtId The external identifier of the Volume Group.
|
|
270
|
+
* @param { String } extId The external identifier of the Volume Disk.
|
|
271
|
+
* @param {Object} args Additional Arguments
|
|
272
|
+
* @return {Promise<DeleteVolumeDiskApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteVolumeDiskApiResponse } and HTTP response
|
|
273
|
+
*/
|
|
274
|
+
}, {
|
|
275
|
+
key: "deleteVolumeDiskById",
|
|
276
|
+
value: function deleteVolumeDiskById(volumeGroupExtId, extId) {
|
|
277
|
+
var _this5 = this;
|
|
278
|
+
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
279
|
+
var postBody = null;
|
|
280
|
+
// verify the required parameter 'volumeGroupExtId' is set
|
|
281
|
+
if (typeof volumeGroupExtId === 'undefined' || volumeGroupExtId === null) {
|
|
282
|
+
throw new Error("Missing the required parameter 'volumeGroupExtId' when calling deleteVolumeDiskById");
|
|
283
|
+
}
|
|
284
|
+
// verify the required parameter 'extId' is set
|
|
285
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
286
|
+
throw new Error("Missing the required parameter 'extId' when calling deleteVolumeDiskById");
|
|
287
|
+
}
|
|
288
|
+
var pathParams = {
|
|
289
|
+
'volumeGroupExtId': volumeGroupExtId,
|
|
290
|
+
'extId': extId
|
|
291
|
+
};
|
|
292
|
+
var queryParams = {};
|
|
293
|
+
var headersToInclude = {};
|
|
294
|
+
Object.keys(argMap).forEach(function (header) {
|
|
295
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this5).has(header.toLowerCase())) {
|
|
296
|
+
headersToInclude[header] = argMap[header];
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
300
|
+
var formParams = {};
|
|
301
|
+
var authNames = ['basicAuthScheme'];
|
|
302
|
+
var contentTypes = [];
|
|
303
|
+
var accepts = ['application/json'];
|
|
304
|
+
var returnType = _DeleteVolumeDiskApiResponse["default"];
|
|
305
|
+
return this.apiClient.callApi('/api/volumes/v4.0.b1/config/volume-groups/{volumeGroupExtId}/disks/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Delete the Volume Group.
|
|
310
|
+
* Delete the Volume Group identified by {extId}.
|
|
311
|
+
* @param { String } extId The external identifier of the Volume Group.
|
|
312
|
+
* @param {Object} args Additional Arguments
|
|
313
|
+
* @return {Promise<DeleteVolumeGroupApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteVolumeGroupApiResponse } and HTTP response
|
|
314
|
+
*/
|
|
315
|
+
}, {
|
|
316
|
+
key: "deleteVolumeGroupById",
|
|
317
|
+
value: function deleteVolumeGroupById(extId) {
|
|
318
|
+
var _this6 = this;
|
|
319
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
320
|
+
var postBody = null;
|
|
321
|
+
// verify the required parameter 'extId' is set
|
|
322
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
323
|
+
throw new Error("Missing the required parameter 'extId' when calling deleteVolumeGroupById");
|
|
324
|
+
}
|
|
325
|
+
var pathParams = {
|
|
326
|
+
'extId': extId
|
|
327
|
+
};
|
|
328
|
+
var queryParams = {};
|
|
329
|
+
var headersToInclude = {};
|
|
330
|
+
Object.keys(argMap).forEach(function (header) {
|
|
331
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this6).has(header.toLowerCase())) {
|
|
332
|
+
headersToInclude[header] = argMap[header];
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
336
|
+
var formParams = {};
|
|
337
|
+
var authNames = ['basicAuthScheme'];
|
|
338
|
+
var contentTypes = [];
|
|
339
|
+
var accepts = ['application/json'];
|
|
340
|
+
var returnType = _DeleteVolumeGroupApiResponse["default"];
|
|
341
|
+
return this.apiClient.callApi('/api/volumes/v4.0.b1/config/volume-groups/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Detach an iSCSi client from the given Volume Group.
|
|
346
|
+
* Detaches iSCSI initiator identified by {extId} from a Volume Group identified by {volumeGroupExtId}.
|
|
347
|
+
* @param { Partial<IscsiClientAttachment> } body specification
|
|
348
|
+
* @param { String } extId The external identifier of the Volume Group.
|
|
349
|
+
* @param {Object} args Additional Arguments
|
|
350
|
+
* @return {Promise<DetachIscsiClientApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DetachIscsiClientApiResponse } and HTTP response
|
|
351
|
+
*/
|
|
352
|
+
}, {
|
|
353
|
+
key: "detachIscsiClient",
|
|
354
|
+
value: function detachIscsiClient(extId, body) {
|
|
355
|
+
var _this7 = this;
|
|
356
|
+
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
357
|
+
var postBody = null;
|
|
358
|
+
if (body instanceof _IscsiClientAttachment["default"] && typeof body.toJson === 'function') {
|
|
359
|
+
postBody = body.toJson();
|
|
360
|
+
} else {
|
|
361
|
+
postBody = body;
|
|
362
|
+
}
|
|
363
|
+
// verify the required parameter 'extId' is set
|
|
364
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
365
|
+
throw new Error("Missing the required parameter 'extId' when calling detachIscsiClient");
|
|
366
|
+
}
|
|
367
|
+
// verify the required parameter 'body' is set
|
|
368
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
369
|
+
throw new Error("Invalid body when calling detachIscsiClient");
|
|
370
|
+
}
|
|
371
|
+
var pathParams = {
|
|
372
|
+
'extId': extId
|
|
373
|
+
};
|
|
374
|
+
var queryParams = {};
|
|
375
|
+
var headersToInclude = {};
|
|
376
|
+
Object.keys(argMap).forEach(function (header) {
|
|
377
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this7).has(header.toLowerCase())) {
|
|
378
|
+
headersToInclude[header] = argMap[header];
|
|
379
|
+
}
|
|
380
|
+
});
|
|
381
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
382
|
+
var formParams = {};
|
|
383
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
384
|
+
var authNames = ['basicAuthScheme'];
|
|
385
|
+
var contentTypes = ['application/json'];
|
|
386
|
+
var accepts = ['application/json'];
|
|
387
|
+
var returnType = _DetachIscsiClientApiResponse["default"];
|
|
388
|
+
return this.apiClient.callApi('/api/volumes/v4.0.b1/config/volume-groups/{extId}/$actions/detach-iscsi-client', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Detach an AHV VM from the given Volume Group.
|
|
393
|
+
* Detaches VM identified by {extId} from a Volume Group identified by {volumeGroupExtId}.
|
|
394
|
+
* @param { Partial<VmAttachment> } body specification
|
|
395
|
+
* @param { String } extId The external identifier of the Volume Group.
|
|
396
|
+
* @param {Object} args Additional Arguments
|
|
397
|
+
* @return {Promise<DetachVmApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DetachVmApiResponse } and HTTP response
|
|
398
|
+
*/
|
|
399
|
+
}, {
|
|
400
|
+
key: "detachVm",
|
|
401
|
+
value: function detachVm(extId, body) {
|
|
402
|
+
var _this8 = this;
|
|
403
|
+
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
404
|
+
var postBody = null;
|
|
405
|
+
if (body instanceof _VmAttachment["default"] && typeof body.toJson === 'function') {
|
|
406
|
+
postBody = body.toJson();
|
|
407
|
+
} else {
|
|
408
|
+
postBody = body;
|
|
409
|
+
}
|
|
410
|
+
// verify the required parameter 'extId' is set
|
|
411
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
412
|
+
throw new Error("Missing the required parameter 'extId' when calling detachVm");
|
|
413
|
+
}
|
|
414
|
+
// verify the required parameter 'body' is set
|
|
415
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
416
|
+
throw new Error("Invalid body when calling detachVm");
|
|
417
|
+
}
|
|
418
|
+
var pathParams = {
|
|
419
|
+
'extId': extId
|
|
420
|
+
};
|
|
421
|
+
var queryParams = {};
|
|
422
|
+
var headersToInclude = {};
|
|
423
|
+
Object.keys(argMap).forEach(function (header) {
|
|
424
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this8).has(header.toLowerCase())) {
|
|
425
|
+
headersToInclude[header] = argMap[header];
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
429
|
+
var formParams = {};
|
|
430
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
431
|
+
var authNames = ['basicAuthScheme'];
|
|
432
|
+
var contentTypes = ['application/json'];
|
|
433
|
+
var accepts = ['application/json'];
|
|
434
|
+
var returnType = _DetachVmApiResponse["default"];
|
|
435
|
+
return this.apiClient.callApi('/api/volumes/v4.0.b1/config/volume-groups/{extId}/$actions/detach-vm', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Get the details of a Volume Disk.
|
|
440
|
+
* Query the Volume Disk identified by {extId} in the Volume Group identified by {volumeGroupExtId}.
|
|
441
|
+
* @param { String } volumeGroupExtId The external identifier of the Volume Group.
|
|
442
|
+
* @param { String } extId The external identifier of the Volume Disk.
|
|
443
|
+
* @param {Object} args Additional Arguments
|
|
444
|
+
* @return {Promise<GetVolumeDiskApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetVolumeDiskApiResponse } and HTTP response
|
|
445
|
+
*/
|
|
446
|
+
}, {
|
|
447
|
+
key: "getVolumeDiskById",
|
|
448
|
+
value: function getVolumeDiskById(volumeGroupExtId, extId) {
|
|
449
|
+
var _this9 = this;
|
|
450
|
+
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
451
|
+
var postBody = null;
|
|
452
|
+
// verify the required parameter 'volumeGroupExtId' is set
|
|
453
|
+
if (typeof volumeGroupExtId === 'undefined' || volumeGroupExtId === null) {
|
|
454
|
+
throw new Error("Missing the required parameter 'volumeGroupExtId' when calling getVolumeDiskById");
|
|
455
|
+
}
|
|
456
|
+
// verify the required parameter 'extId' is set
|
|
457
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
458
|
+
throw new Error("Missing the required parameter 'extId' when calling getVolumeDiskById");
|
|
459
|
+
}
|
|
460
|
+
var pathParams = {
|
|
461
|
+
'volumeGroupExtId': volumeGroupExtId,
|
|
462
|
+
'extId': extId
|
|
463
|
+
};
|
|
464
|
+
var queryParams = {};
|
|
465
|
+
var headersToInclude = {};
|
|
466
|
+
Object.keys(argMap).forEach(function (header) {
|
|
467
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this9).has(header.toLowerCase())) {
|
|
468
|
+
headersToInclude[header] = argMap[header];
|
|
469
|
+
}
|
|
470
|
+
});
|
|
471
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
472
|
+
var formParams = {};
|
|
473
|
+
var authNames = ['basicAuthScheme'];
|
|
474
|
+
var contentTypes = [];
|
|
475
|
+
var accepts = ['application/json'];
|
|
476
|
+
var returnType = _GetVolumeDiskApiResponse["default"];
|
|
477
|
+
return this.apiClient.callApi('/api/volumes/v4.0.b1/config/volume-groups/{volumeGroupExtId}/disks/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* Get statistics for a Volume Disk.
|
|
482
|
+
* Query the Volume Disk stats identified by {diskExtId}.
|
|
483
|
+
* @param { String } volumeGroupExtId The external identifier of the Volume Group.
|
|
484
|
+
* @param { String } extId The external identifier of the Volume Disk.
|
|
485
|
+
* @param { String } $startTime The start time of the period for which stats should be reported. The value should be in extended ISO-8601 format. For example, start time of 2022-04-23T01:23:45.678+09:00 would consider all stats starting at 1:23:45.678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html
|
|
486
|
+
* @param { String } $endTime The end time of the period for which stats should be reported. The value should be in extended ISO-8601 format. For example, end time of 2022-04-23T013:23:45.678+09:00 would consider all stats till 13:23:45 .678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html
|
|
487
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
488
|
+
* @param { Number } opts.$samplingInterval The sampling interval in seconds at which statistical data should be collected. For example, if you want performance statistics every 30 seconds, then provide the value as 30.
|
|
489
|
+
* @param { DownSamplingOperator } opts.$statType
|
|
490
|
+
* @param {Object} args Additional Arguments
|
|
491
|
+
* @return {Promise<GetVolumeDiskStatsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetVolumeDiskStatsApiResponse } and HTTP response
|
|
492
|
+
*/
|
|
493
|
+
}, {
|
|
494
|
+
key: "getVolumeDiskStats",
|
|
495
|
+
value: function getVolumeDiskStats(volumeGroupExtId, extId, $startTime, $endTime, opts) {
|
|
496
|
+
var _this10 = this;
|
|
497
|
+
var argMap = (arguments.length <= 5 ? 0 : arguments.length - 5) > 0 ? arguments.length <= 5 ? undefined : arguments[5] : {};
|
|
498
|
+
opts = opts || {};
|
|
499
|
+
var postBody = null;
|
|
500
|
+
// verify the required parameter 'volumeGroupExtId' is set
|
|
501
|
+
if (typeof volumeGroupExtId === 'undefined' || volumeGroupExtId === null) {
|
|
502
|
+
throw new Error("Missing the required parameter 'volumeGroupExtId' when calling getVolumeDiskStats");
|
|
503
|
+
}
|
|
504
|
+
// verify the required parameter 'extId' is set
|
|
505
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
506
|
+
throw new Error("Missing the required parameter 'extId' when calling getVolumeDiskStats");
|
|
507
|
+
}
|
|
508
|
+
// verify the required parameter '$startTime' is set
|
|
509
|
+
if (typeof $startTime === 'undefined' || $startTime === null) {
|
|
510
|
+
throw new Error("Missing the required parameter '$startTime' when calling getVolumeDiskStats");
|
|
511
|
+
}
|
|
512
|
+
// verify the required parameter '$endTime' is set
|
|
513
|
+
if (typeof $endTime === 'undefined' || $endTime === null) {
|
|
514
|
+
throw new Error("Missing the required parameter '$endTime' when calling getVolumeDiskStats");
|
|
515
|
+
}
|
|
516
|
+
var pathParams = {
|
|
517
|
+
'volumeGroupExtId': volumeGroupExtId,
|
|
518
|
+
'extId': extId
|
|
519
|
+
};
|
|
520
|
+
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, {
|
|
521
|
+
'$startTime': $startTime
|
|
522
|
+
}), {
|
|
523
|
+
'$endTime': $endTime
|
|
524
|
+
}), opts.hasOwnProperty('$samplingInterval') ? {
|
|
525
|
+
'$samplingInterval': opts['$samplingInterval']
|
|
526
|
+
} : {}), opts.hasOwnProperty('$statType') ? {
|
|
527
|
+
'$statType': opts['$statType']
|
|
528
|
+
} : {});
|
|
529
|
+
var headersToInclude = {};
|
|
530
|
+
Object.keys(argMap).forEach(function (header) {
|
|
531
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this10).has(header.toLowerCase())) {
|
|
532
|
+
headersToInclude[header] = argMap[header];
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
536
|
+
var formParams = {};
|
|
537
|
+
var authNames = ['basicAuthScheme'];
|
|
538
|
+
var contentTypes = [];
|
|
539
|
+
var accepts = ['application/json'];
|
|
540
|
+
var returnType = _GetVolumeDiskStatsApiResponse["default"];
|
|
541
|
+
return this.apiClient.callApi('/api/volumes/v4.0.b1/stats/volume-groups/{volumeGroupExtId}/disks/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Get a Volume Group.
|
|
546
|
+
* Query the Volume Group identified by {extId}.
|
|
547
|
+
* @param { String } extId The external identifier of the Volume Group.
|
|
548
|
+
* @param {Object} args Additional Arguments
|
|
549
|
+
* @return {Promise<GetVolumeGroupApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetVolumeGroupApiResponse } and HTTP response
|
|
550
|
+
*/
|
|
551
|
+
}, {
|
|
552
|
+
key: "getVolumeGroupById",
|
|
553
|
+
value: function getVolumeGroupById(extId) {
|
|
554
|
+
var _this11 = this;
|
|
555
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
556
|
+
var postBody = null;
|
|
557
|
+
// verify the required parameter 'extId' is set
|
|
558
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
559
|
+
throw new Error("Missing the required parameter 'extId' when calling getVolumeGroupById");
|
|
560
|
+
}
|
|
561
|
+
var pathParams = {
|
|
562
|
+
'extId': extId
|
|
563
|
+
};
|
|
564
|
+
var queryParams = {};
|
|
565
|
+
var headersToInclude = {};
|
|
566
|
+
Object.keys(argMap).forEach(function (header) {
|
|
567
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this11).has(header.toLowerCase())) {
|
|
568
|
+
headersToInclude[header] = argMap[header];
|
|
569
|
+
}
|
|
570
|
+
});
|
|
571
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
572
|
+
var formParams = {};
|
|
573
|
+
var authNames = ['basicAuthScheme'];
|
|
574
|
+
var contentTypes = [];
|
|
575
|
+
var accepts = ['application/json'];
|
|
576
|
+
var returnType = _GetVolumeGroupApiResponse["default"];
|
|
577
|
+
return this.apiClient.callApi('/api/volumes/v4.0.b1/config/volume-groups/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* Fetch metadata information associated with a Volume Group.
|
|
582
|
+
* Query for metadata information which is associated with the Volume Group identified by {extId}.
|
|
583
|
+
* @param { String } extId The external identifier of the Volume Group.
|
|
584
|
+
* @param {Object} args Additional Arguments
|
|
585
|
+
* @return {Promise<GetVolumeGroupMetadataApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetVolumeGroupMetadataApiResponse } and HTTP response
|
|
586
|
+
*/
|
|
587
|
+
}, {
|
|
588
|
+
key: "getVolumeGroupMetadataById",
|
|
589
|
+
value: function getVolumeGroupMetadataById(extId) {
|
|
590
|
+
var _this12 = this;
|
|
591
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
592
|
+
var postBody = null;
|
|
593
|
+
// verify the required parameter 'extId' is set
|
|
594
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
595
|
+
throw new Error("Missing the required parameter 'extId' when calling getVolumeGroupMetadataById");
|
|
596
|
+
}
|
|
597
|
+
var pathParams = {
|
|
598
|
+
'extId': extId
|
|
599
|
+
};
|
|
600
|
+
var queryParams = {};
|
|
601
|
+
var headersToInclude = {};
|
|
602
|
+
Object.keys(argMap).forEach(function (header) {
|
|
603
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this12).has(header.toLowerCase())) {
|
|
604
|
+
headersToInclude[header] = argMap[header];
|
|
605
|
+
}
|
|
606
|
+
});
|
|
607
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
608
|
+
var formParams = {};
|
|
609
|
+
var authNames = ['basicAuthScheme'];
|
|
610
|
+
var contentTypes = [];
|
|
611
|
+
var accepts = ['application/json'];
|
|
612
|
+
var returnType = _GetVolumeGroupMetadataApiResponse["default"];
|
|
613
|
+
return this.apiClient.callApi('/api/volumes/v4.0.b1/config/volume-groups/{extId}/metadata', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* Get statistics for a Volume Group.
|
|
618
|
+
* Query the Volume Group stats identified by {extId}.
|
|
619
|
+
* @param { String } extId The external identifier of the Volume Group.
|
|
620
|
+
* @param { String } $startTime The start time of the period for which stats should be reported. The value should be in extended ISO-8601 format. For example, start time of 2022-04-23T01:23:45.678+09:00 would consider all stats starting at 1:23:45.678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html
|
|
621
|
+
* @param { String } $endTime The end time of the period for which stats should be reported. The value should be in extended ISO-8601 format. For example, end time of 2022-04-23T013:23:45.678+09:00 would consider all stats till 13:23:45 .678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html
|
|
622
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
623
|
+
* @param { Number } opts.$samplingInterval The sampling interval in seconds at which statistical data should be collected. For example, if you want performance statistics every 30 seconds, then provide the value as 30.
|
|
624
|
+
* @param { DownSamplingOperator } opts.$statType
|
|
625
|
+
* @param {Object} args Additional Arguments
|
|
626
|
+
* @return {Promise<GetVolumeGroupStatsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetVolumeGroupStatsApiResponse } and HTTP response
|
|
627
|
+
*/
|
|
628
|
+
}, {
|
|
629
|
+
key: "getVolumeGroupStats",
|
|
630
|
+
value: function getVolumeGroupStats(extId, $startTime, $endTime, opts) {
|
|
631
|
+
var _this13 = this;
|
|
632
|
+
var argMap = (arguments.length <= 4 ? 0 : arguments.length - 4) > 0 ? arguments.length <= 4 ? undefined : arguments[4] : {};
|
|
633
|
+
opts = opts || {};
|
|
634
|
+
var postBody = null;
|
|
635
|
+
// verify the required parameter 'extId' is set
|
|
636
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
637
|
+
throw new Error("Missing the required parameter 'extId' when calling getVolumeGroupStats");
|
|
638
|
+
}
|
|
639
|
+
// verify the required parameter '$startTime' is set
|
|
640
|
+
if (typeof $startTime === 'undefined' || $startTime === null) {
|
|
641
|
+
throw new Error("Missing the required parameter '$startTime' when calling getVolumeGroupStats");
|
|
642
|
+
}
|
|
643
|
+
// verify the required parameter '$endTime' is set
|
|
644
|
+
if (typeof $endTime === 'undefined' || $endTime === null) {
|
|
645
|
+
throw new Error("Missing the required parameter '$endTime' when calling getVolumeGroupStats");
|
|
646
|
+
}
|
|
647
|
+
var pathParams = {
|
|
648
|
+
'extId': extId
|
|
649
|
+
};
|
|
650
|
+
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, {
|
|
651
|
+
'$startTime': $startTime
|
|
652
|
+
}), {
|
|
653
|
+
'$endTime': $endTime
|
|
654
|
+
}), opts.hasOwnProperty('$samplingInterval') ? {
|
|
655
|
+
'$samplingInterval': opts['$samplingInterval']
|
|
656
|
+
} : {}), opts.hasOwnProperty('$statType') ? {
|
|
657
|
+
'$statType': opts['$statType']
|
|
658
|
+
} : {});
|
|
659
|
+
var headersToInclude = {};
|
|
660
|
+
Object.keys(argMap).forEach(function (header) {
|
|
661
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this13).has(header.toLowerCase())) {
|
|
662
|
+
headersToInclude[header] = argMap[header];
|
|
663
|
+
}
|
|
664
|
+
});
|
|
665
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
666
|
+
var formParams = {};
|
|
667
|
+
var authNames = ['basicAuthScheme'];
|
|
668
|
+
var contentTypes = [];
|
|
669
|
+
var accepts = ['application/json'];
|
|
670
|
+
var returnType = _GetVolumeGroupStatsApiResponse["default"];
|
|
671
|
+
return this.apiClient.callApi('/api/volumes/v4.0.b1/stats/volume-groups/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* List all the category details that are associated with the Volume Group.
|
|
676
|
+
* Query the category details that are associated with the Volume Group identified by {volumeGroupExtId}.
|
|
677
|
+
* @param { String } extId The external identifier of the Volume Group.
|
|
678
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
679
|
+
* @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
|
|
680
|
+
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
681
|
+
* @param {Object} args Additional Arguments
|
|
682
|
+
* @return {Promise<ListCategoryAssociationsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListCategoryAssociationsApiResponse } and HTTP response
|
|
683
|
+
*/
|
|
684
|
+
}, {
|
|
685
|
+
key: "listCategoryAssociationsByVolumeGroupId",
|
|
686
|
+
value: function listCategoryAssociationsByVolumeGroupId(extId, opts) {
|
|
687
|
+
var _this14 = this;
|
|
688
|
+
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
689
|
+
opts = opts || {};
|
|
690
|
+
var postBody = null;
|
|
691
|
+
// verify the required parameter 'extId' is set
|
|
692
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
693
|
+
throw new Error("Missing the required parameter 'extId' when calling listCategoryAssociationsByVolumeGroupId");
|
|
694
|
+
}
|
|
695
|
+
var pathParams = {
|
|
696
|
+
'extId': extId
|
|
697
|
+
};
|
|
698
|
+
var queryParams = _objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
699
|
+
'$page': opts['$page']
|
|
700
|
+
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
701
|
+
'$limit': opts['$limit']
|
|
702
|
+
} : {});
|
|
703
|
+
var headersToInclude = {};
|
|
704
|
+
Object.keys(argMap).forEach(function (header) {
|
|
705
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this14).has(header.toLowerCase())) {
|
|
706
|
+
headersToInclude[header] = argMap[header];
|
|
707
|
+
}
|
|
708
|
+
});
|
|
709
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
710
|
+
var formParams = {};
|
|
711
|
+
var authNames = ['basicAuthScheme'];
|
|
712
|
+
var contentTypes = [];
|
|
713
|
+
var accepts = ['application/json'];
|
|
714
|
+
var returnType = _ListCategoryAssociationsApiResponse["default"];
|
|
715
|
+
return this.apiClient.callApi('/api/volumes/v4.0.b1/config/volume-groups/{extId}/category-associations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* List all the iSCSI attachments associated with the given Volume Group.
|
|
720
|
+
* Query the list of external iSCSI attachments for a Volume Group identified by {extId}.
|
|
721
|
+
* @param { String } extId The external identifier of the Volume Group.
|
|
722
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
723
|
+
* @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
|
|
724
|
+
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
725
|
+
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
726
|
+
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>
|
|
727
|
+
* The filter can be applied to the following fields:<br>
|
|
728
|
+
* - clusterReference<br>
|
|
729
|
+
* - extId
|
|
730
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>
|
|
731
|
+
* The orderby can be applied to the following fields:<br>
|
|
732
|
+
* - clusterReference<br>
|
|
733
|
+
* - createdTime<br>
|
|
734
|
+
* - extId
|
|
735
|
+
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported.
|
|
736
|
+
- iscsiClient
|
|
737
|
+
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
738
|
+
- clusterReference
|
|
739
|
+
- extId
|
|
740
|
+
* @param {Object} args Additional Arguments
|
|
741
|
+
* @return {Promise<ListExternalIscsiAttachmentsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListExternalIscsiAttachmentsApiResponse } and HTTP response
|
|
742
|
+
*/
|
|
743
|
+
}, {
|
|
744
|
+
key: "listExternalIscsiAttachmentsByVolumeGroupId",
|
|
745
|
+
value: function listExternalIscsiAttachmentsByVolumeGroupId(extId, opts) {
|
|
746
|
+
var _this15 = this;
|
|
747
|
+
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
748
|
+
opts = opts || {};
|
|
749
|
+
var postBody = null;
|
|
750
|
+
// verify the required parameter 'extId' is set
|
|
751
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
752
|
+
throw new Error("Missing the required parameter 'extId' when calling listExternalIscsiAttachmentsByVolumeGroupId");
|
|
753
|
+
}
|
|
754
|
+
var pathParams = {
|
|
755
|
+
'extId': extId
|
|
756
|
+
};
|
|
757
|
+
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
758
|
+
'$page': opts['$page']
|
|
759
|
+
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
760
|
+
'$limit': opts['$limit']
|
|
761
|
+
} : {}), opts.hasOwnProperty('$filter') ? {
|
|
762
|
+
'$filter': opts['$filter']
|
|
763
|
+
} : {}), opts.hasOwnProperty('$orderby') ? {
|
|
764
|
+
'$orderby': opts['$orderby']
|
|
765
|
+
} : {}), opts.hasOwnProperty('$expand') ? {
|
|
766
|
+
'$expand': opts['$expand']
|
|
767
|
+
} : {}), opts.hasOwnProperty('$select') ? {
|
|
768
|
+
'$select': opts['$select']
|
|
769
|
+
} : {});
|
|
770
|
+
var headersToInclude = {};
|
|
771
|
+
Object.keys(argMap).forEach(function (header) {
|
|
772
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this15).has(header.toLowerCase())) {
|
|
773
|
+
headersToInclude[header] = argMap[header];
|
|
774
|
+
}
|
|
775
|
+
});
|
|
776
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
777
|
+
var formParams = {};
|
|
778
|
+
var authNames = ['basicAuthScheme'];
|
|
779
|
+
var contentTypes = [];
|
|
780
|
+
var accepts = ['application/json'];
|
|
781
|
+
var returnType = _ListExternalIscsiAttachmentsApiResponse["default"];
|
|
782
|
+
return this.apiClient.callApi('/api/volumes/v4.0.b1/config/volume-groups/{extId}/external-iscsi-attachments', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* List all the VM attachments for a Volume Group.
|
|
787
|
+
* Query the list of VM attachments for a Volume Group identified by {extId}.
|
|
788
|
+
* @param { String } extId The external identifier of the Volume Group.
|
|
789
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
790
|
+
* @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
|
|
791
|
+
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
792
|
+
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
793
|
+
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>
|
|
794
|
+
* The filter can be applied to the following fields:<br>
|
|
795
|
+
* - extId
|
|
796
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>
|
|
797
|
+
* The orderby can be applied to the following fields:<br>
|
|
798
|
+
* - createdTime<br>
|
|
799
|
+
* - extId
|
|
800
|
+
* @param {Object} args Additional Arguments
|
|
801
|
+
* @return {Promise<ListVmAttachmentsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListVmAttachmentsApiResponse } and HTTP response
|
|
802
|
+
*/
|
|
803
|
+
}, {
|
|
804
|
+
key: "listVmAttachmentsByVolumeGroupId",
|
|
805
|
+
value: function listVmAttachmentsByVolumeGroupId(extId, opts) {
|
|
806
|
+
var _this16 = this;
|
|
807
|
+
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
808
|
+
opts = opts || {};
|
|
809
|
+
var postBody = null;
|
|
810
|
+
// verify the required parameter 'extId' is set
|
|
811
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
812
|
+
throw new Error("Missing the required parameter 'extId' when calling listVmAttachmentsByVolumeGroupId");
|
|
813
|
+
}
|
|
814
|
+
var pathParams = {
|
|
815
|
+
'extId': extId
|
|
816
|
+
};
|
|
817
|
+
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
818
|
+
'$page': opts['$page']
|
|
819
|
+
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
820
|
+
'$limit': opts['$limit']
|
|
821
|
+
} : {}), opts.hasOwnProperty('$filter') ? {
|
|
822
|
+
'$filter': opts['$filter']
|
|
823
|
+
} : {}), opts.hasOwnProperty('$orderby') ? {
|
|
824
|
+
'$orderby': opts['$orderby']
|
|
825
|
+
} : {});
|
|
826
|
+
var headersToInclude = {};
|
|
827
|
+
Object.keys(argMap).forEach(function (header) {
|
|
828
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this16).has(header.toLowerCase())) {
|
|
829
|
+
headersToInclude[header] = argMap[header];
|
|
830
|
+
}
|
|
831
|
+
});
|
|
832
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
833
|
+
var formParams = {};
|
|
834
|
+
var authNames = ['basicAuthScheme'];
|
|
835
|
+
var contentTypes = [];
|
|
836
|
+
var accepts = ['application/json'];
|
|
837
|
+
var returnType = _ListVmAttachmentsApiResponse["default"];
|
|
838
|
+
return this.apiClient.callApi('/api/volumes/v4.0.b1/config/volume-groups/{extId}/vm-attachments', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* List all the Volume Disks attached to the Volume Group.
|
|
843
|
+
* Query the list of disks corresponding to a Volume Group identified by {volumeGroupExtId}.
|
|
844
|
+
* @param { String } volumeGroupExtId The external identifier of the Volume Group.
|
|
845
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
846
|
+
* @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
|
|
847
|
+
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
848
|
+
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
849
|
+
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>
|
|
850
|
+
* The filter can be applied to the following fields:<br>
|
|
851
|
+
* - storageContainerId
|
|
852
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>
|
|
853
|
+
* The orderby can be applied to the following fields:<br>
|
|
854
|
+
* - createdTime<br>
|
|
855
|
+
* - diskSizeBytes
|
|
856
|
+
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
857
|
+
- extId
|
|
858
|
+
- storageContainerId
|
|
859
|
+
* @param {Object} args Additional Arguments
|
|
860
|
+
* @return {Promise<ListVolumeDisksApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListVolumeDisksApiResponse } and HTTP response
|
|
861
|
+
*/
|
|
862
|
+
}, {
|
|
863
|
+
key: "listVolumeDisksByVolumeGroupId",
|
|
864
|
+
value: function listVolumeDisksByVolumeGroupId(volumeGroupExtId, opts) {
|
|
865
|
+
var _this17 = this;
|
|
866
|
+
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
867
|
+
opts = opts || {};
|
|
868
|
+
var postBody = null;
|
|
869
|
+
// verify the required parameter 'volumeGroupExtId' is set
|
|
870
|
+
if (typeof volumeGroupExtId === 'undefined' || volumeGroupExtId === null) {
|
|
871
|
+
throw new Error("Missing the required parameter 'volumeGroupExtId' when calling listVolumeDisksByVolumeGroupId");
|
|
872
|
+
}
|
|
873
|
+
var pathParams = {
|
|
874
|
+
'volumeGroupExtId': volumeGroupExtId
|
|
875
|
+
};
|
|
876
|
+
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
877
|
+
'$page': opts['$page']
|
|
878
|
+
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
879
|
+
'$limit': opts['$limit']
|
|
880
|
+
} : {}), opts.hasOwnProperty('$filter') ? {
|
|
881
|
+
'$filter': opts['$filter']
|
|
882
|
+
} : {}), opts.hasOwnProperty('$orderby') ? {
|
|
883
|
+
'$orderby': opts['$orderby']
|
|
884
|
+
} : {}), opts.hasOwnProperty('$select') ? {
|
|
885
|
+
'$select': opts['$select']
|
|
886
|
+
} : {});
|
|
887
|
+
var headersToInclude = {};
|
|
888
|
+
Object.keys(argMap).forEach(function (header) {
|
|
889
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this17).has(header.toLowerCase())) {
|
|
890
|
+
headersToInclude[header] = argMap[header];
|
|
891
|
+
}
|
|
892
|
+
});
|
|
893
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
894
|
+
var formParams = {};
|
|
895
|
+
var authNames = ['basicAuthScheme'];
|
|
896
|
+
var contentTypes = [];
|
|
897
|
+
var accepts = ['application/json'];
|
|
898
|
+
var returnType = _ListVolumeDisksApiResponse["default"];
|
|
899
|
+
return this.apiClient.callApi('/api/volumes/v4.0.b1/config/volume-groups/{volumeGroupExtId}/disks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
/**
|
|
903
|
+
* List all the Volume Groups.
|
|
904
|
+
* Query the list of Volume Groups.
|
|
905
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
906
|
+
* @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
|
|
907
|
+
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
908
|
+
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
909
|
+
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>
|
|
910
|
+
* The filter can be applied to the following fields:<br>
|
|
911
|
+
* - clusterReference<br>
|
|
912
|
+
* - extId<br>
|
|
913
|
+
* - name
|
|
914
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>
|
|
915
|
+
* The orderby can be applied to the following fields:<br>
|
|
916
|
+
* - clusterReference<br>
|
|
917
|
+
* - createdTime<br>
|
|
918
|
+
* - extId<br>
|
|
919
|
+
* - name
|
|
920
|
+
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported.
|
|
921
|
+
- cluster
|
|
922
|
+
- metadata
|
|
923
|
+
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
924
|
+
- clusterReference
|
|
925
|
+
- extId
|
|
926
|
+
- name
|
|
927
|
+
* @param {Object} args Additional Arguments
|
|
928
|
+
* @return {Promise<ListVolumeGroupsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListVolumeGroupsApiResponse } and HTTP response
|
|
929
|
+
*/
|
|
930
|
+
}, {
|
|
931
|
+
key: "listVolumeGroups",
|
|
932
|
+
value: function listVolumeGroups(opts) {
|
|
933
|
+
var _this18 = this;
|
|
934
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
935
|
+
opts = opts || {};
|
|
936
|
+
var postBody = null;
|
|
937
|
+
var pathParams = {};
|
|
938
|
+
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
939
|
+
'$page': opts['$page']
|
|
940
|
+
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
941
|
+
'$limit': opts['$limit']
|
|
942
|
+
} : {}), opts.hasOwnProperty('$filter') ? {
|
|
943
|
+
'$filter': opts['$filter']
|
|
944
|
+
} : {}), opts.hasOwnProperty('$orderby') ? {
|
|
945
|
+
'$orderby': opts['$orderby']
|
|
946
|
+
} : {}), opts.hasOwnProperty('$expand') ? {
|
|
947
|
+
'$expand': opts['$expand']
|
|
948
|
+
} : {}), opts.hasOwnProperty('$select') ? {
|
|
949
|
+
'$select': opts['$select']
|
|
950
|
+
} : {});
|
|
951
|
+
var headersToInclude = {};
|
|
952
|
+
Object.keys(argMap).forEach(function (header) {
|
|
953
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this18).has(header.toLowerCase())) {
|
|
954
|
+
headersToInclude[header] = argMap[header];
|
|
955
|
+
}
|
|
956
|
+
});
|
|
957
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
958
|
+
var formParams = {};
|
|
959
|
+
var authNames = ['basicAuthScheme'];
|
|
960
|
+
var contentTypes = [];
|
|
961
|
+
var accepts = ['application/json'];
|
|
962
|
+
var returnType = _ListVolumeGroupsApiResponse["default"];
|
|
963
|
+
return this.apiClient.callApi('/api/volumes/v4.0.b1/config/volume-groups', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
/**
|
|
967
|
+
* Revert a Volume Group.
|
|
968
|
+
* Reverts a Volume Group identified by {volumeGroupExtId}. This API will perform an in-place restore from a specified Volume Group recovery point.
|
|
969
|
+
* @param { Required<Pick<RevertSpec, 'volumeGroupRecoveryPointExtId'>> & Partial<RevertSpec> } body specification
|
|
970
|
+
* @param { String } extId The external identifier of the Volume Group.
|
|
971
|
+
* @param {Object} args Additional Arguments
|
|
972
|
+
* @return {Promise<RevertVolumeGroupApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link RevertVolumeGroupApiResponse } and HTTP response
|
|
973
|
+
*/
|
|
974
|
+
}, {
|
|
975
|
+
key: "revertVolumeGroup",
|
|
976
|
+
value: function revertVolumeGroup(extId, body) {
|
|
977
|
+
var _this19 = this;
|
|
978
|
+
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
979
|
+
var postBody = null;
|
|
980
|
+
if (body instanceof _RevertSpec["default"] && typeof body.toJson === 'function') {
|
|
981
|
+
postBody = body.toJson();
|
|
982
|
+
} else {
|
|
983
|
+
postBody = body;
|
|
984
|
+
}
|
|
985
|
+
// verify the required parameter 'extId' is set
|
|
986
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
987
|
+
throw new Error("Missing the required parameter 'extId' when calling revertVolumeGroup");
|
|
988
|
+
}
|
|
989
|
+
// verify the required parameter 'body' is set
|
|
990
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
991
|
+
throw new Error("Invalid body when calling revertVolumeGroup");
|
|
992
|
+
}
|
|
993
|
+
var pathParams = {
|
|
994
|
+
'extId': extId
|
|
995
|
+
};
|
|
996
|
+
var queryParams = {};
|
|
997
|
+
var headersToInclude = {};
|
|
998
|
+
Object.keys(argMap).forEach(function (header) {
|
|
999
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this19).has(header.toLowerCase())) {
|
|
1000
|
+
headersToInclude[header] = argMap[header];
|
|
1001
|
+
}
|
|
1002
|
+
});
|
|
1003
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
1004
|
+
var formParams = {};
|
|
1005
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
1006
|
+
var authNames = ['basicAuthScheme'];
|
|
1007
|
+
var contentTypes = ['application/json'];
|
|
1008
|
+
var accepts = ['application/json'];
|
|
1009
|
+
var returnType = _RevertVolumeGroupApiResponse["default"];
|
|
1010
|
+
return this.apiClient.callApi('/api/volumes/v4.0.b1/config/volume-groups/{extId}/$actions/revert', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
1011
|
+
}
|
|
1012
|
+
}], [{
|
|
1013
|
+
key: "ApiClient",
|
|
1014
|
+
get:
|
|
1015
|
+
/**
|
|
1016
|
+
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
1017
|
+
* their own fetch methods into the SDK
|
|
1018
|
+
*/
|
|
1019
|
+
function get() {
|
|
1020
|
+
return _ApiClient.ApiClient;
|
|
1021
|
+
}
|
|
1022
|
+
}]);
|
|
1023
|
+
}();
|