@nutanix-scratch/volumes-js-client 4.0.1 → 4.2.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/README.md +33 -20
- package/dist/Ntnx-Volumes-js-client-prod.js +1 -1
- package/dist/Ntnx-Volumes-js-client.js +590 -562
- package/dist/es/ApiClient.d.ts +35 -7
- package/dist/es/ApiClient.js +862 -684
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +144 -183
- package/dist/es/apis/iscsiclients-endpoints.d.ts +4 -16
- package/dist/es/apis/iscsiclients-endpoints.js +143 -164
- package/dist/es/apis/nvmfclients-endpoints.d.ts +57 -0
- package/dist/es/apis/nvmfclients-endpoints.js +147 -0
- package/dist/es/apis/volumegroups-endpoints.d.ts +37 -75
- package/dist/es/apis/volumegroups-endpoints.js +1157 -1109
- package/dist/es/index.d.ts +21 -17
- package/dist/es/index.js +342 -326
- package/dist/es/models/common/v1/config/EntityReference.d.ts +8 -16
- package/dist/es/models/common/v1/config/EntityReference.js +228 -272
- package/dist/es/models/common/v1/config/EntityType.js +9 -11
- package/dist/es/models/common/v1/config/FQDN.d.ts +2 -7
- package/dist/es/models/common/v1/config/FQDN.js +141 -180
- package/dist/es/models/common/v1/config/Flag.d.ts +2 -8
- package/dist/es/models/common/v1/config/Flag.js +170 -211
- package/dist/es/models/common/v1/config/IPAddressOrFQDN.d.ts +2 -26
- package/dist/es/models/common/v1/config/IPAddressOrFQDN.js +196 -247
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +2 -8
- package/dist/es/models/common/v1/config/IPv4Address.js +174 -215
- package/dist/es/models/common/v1/config/IPv6Address.d.ts +2 -8
- package/dist/es/models/common/v1/config/IPv6Address.js +174 -215
- package/dist/es/models/common/v1/config/KVPair.d.ts +2 -8
- package/dist/es/models/common/v1/config/KVPair.js +225 -270
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +139 -178
- package/dist/es/models/common/v1/config/Message.d.ts +2 -10
- package/dist/es/models/common/v1/config/Message.js +213 -258
- package/dist/es/models/common/v1/config/MessageSeverity.js +7 -9
- package/dist/es/models/common/v1/config/Metadata.d.ts +2 -11
- package/dist/es/models/common/v1/config/Metadata.js +261 -308
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +5 -10
- package/dist/es/models/common/v1/config/TenantAwareModel.js +138 -178
- package/dist/es/models/common/v1/response/ApiLink.d.ts +2 -8
- package/dist/es/models/common/v1/response/ApiLink.js +165 -206
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +281 -344
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +155 -203
- package/dist/es/models/common/v1/stats/DownSamplingOperator.js +7 -9
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +5 -10
- package/dist/es/models/prism/v4/config/TaskReference.js +144 -188
- package/dist/es/models/validation/ValidationError.js +26 -42
- package/dist/es/models/validation/ValidationScopes.js +3 -3
- package/dist/es/models/volumes/v4/config/AccessToken.d.ts +47 -0
- package/dist/es/models/volumes/v4/config/AccessToken.js +235 -0
- package/dist/es/models/volumes/v4/config/AssociateCategoryApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/config/AssociateCategoryApiResponse.js +187 -242
- package/dist/es/models/volumes/v4/config/AttachIscsiClientApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/config/AttachIscsiClientApiResponse.js +187 -242
- package/dist/es/models/volumes/v4/config/AttachNvmfClientApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/config/AttachNvmfClientApiResponse.js +187 -242
- package/dist/es/models/volumes/v4/config/AttachVmApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/config/AttachVmApiResponse.js +187 -242
- package/dist/es/models/volumes/v4/config/AttachmentType.js +8 -10
- package/dist/es/models/volumes/v4/config/AuthenticationType.js +7 -9
- package/dist/es/models/volumes/v4/config/CategoryDetails.d.ts +1 -1
- package/dist/es/models/volumes/v4/config/CategoryDetails.js +74 -103
- package/dist/es/models/volumes/v4/config/CategoryEntityReferences.d.ts +2 -15
- package/dist/es/models/volumes/v4/config/CategoryEntityReferences.js +152 -195
- package/dist/es/models/volumes/v4/config/ClientAccess.d.ts +19 -0
- package/dist/es/models/volumes/v4/config/ClientAccess.js +89 -0
- package/dist/es/models/volumes/v4/config/Cluster.d.ts +2 -8
- package/dist/es/models/volumes/v4/config/Cluster.js +164 -207
- package/dist/es/models/volumes/v4/config/ClusterProjection.d.ts +1 -1
- package/dist/es/models/volumes/v4/config/ClusterProjection.js +74 -103
- package/dist/es/models/volumes/v4/config/ClusterScope.d.ts +57 -0
- package/dist/es/models/volumes/v4/config/ClusterScope.js +243 -0
- package/dist/es/models/volumes/v4/config/ClusterScopeProjection.d.ts +12 -0
- package/dist/es/models/volumes/v4/config/ClusterScopeProjection.js +125 -0
- package/dist/es/models/volumes/v4/config/CreateVolumeDiskApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/config/CreateVolumeDiskApiResponse.js +187 -242
- package/dist/es/models/volumes/v4/config/CreateVolumeGroupApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/config/CreateVolumeGroupApiResponse.js +187 -242
- package/dist/es/models/volumes/v4/config/DeleteVolumeDiskApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/config/DeleteVolumeDiskApiResponse.js +187 -242
- package/dist/es/models/volumes/v4/config/DeleteVolumeGroupApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/config/DeleteVolumeGroupApiResponse.js +187 -242
- package/dist/es/models/volumes/v4/config/DetachIscsiClientApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/config/DetachIscsiClientApiResponse.js +187 -242
- package/dist/es/models/volumes/v4/config/DetachNvmfClientApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/config/DetachNvmfClientApiResponse.js +187 -242
- package/dist/es/models/volumes/v4/config/DetachVmApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/config/DetachVmApiResponse.js +187 -242
- package/dist/es/models/volumes/v4/config/DisassociateCategoryApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/config/DisassociateCategoryApiResponse.js +187 -242
- package/dist/es/models/volumes/v4/config/DiskStorageFeatures.d.ts +2 -12
- package/dist/es/models/volumes/v4/config/DiskStorageFeatures.js +138 -177
- package/dist/es/models/volumes/v4/config/FlashMode.d.ts +2 -7
- package/dist/es/models/volumes/v4/config/FlashMode.js +140 -179
- package/dist/es/models/volumes/v4/config/GetIscsiClientApiResponse.d.ts +2 -45
- package/dist/es/models/volumes/v4/config/GetIscsiClientApiResponse.js +187 -242
- package/dist/es/models/volumes/v4/config/GetNvmfClientApiResponse.d.ts +58 -0
- package/dist/es/models/volumes/v4/config/GetNvmfClientApiResponse.js +288 -0
- package/dist/es/models/volumes/v4/config/GetVolumeDiskApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/config/GetVolumeDiskApiResponse.js +187 -242
- package/dist/es/models/volumes/v4/config/GetVolumeGroupApiResponse.d.ts +2 -45
- package/dist/es/models/volumes/v4/config/GetVolumeGroupApiResponse.js +187 -242
- package/dist/es/models/volumes/v4/config/GetVolumeGroupMetadataApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/config/GetVolumeGroupMetadataApiResponse.js +187 -242
- package/dist/es/models/volumes/v4/config/HydrationStatus.d.ts +19 -0
- package/dist/es/models/volumes/v4/config/HydrationStatus.js +89 -0
- package/dist/es/models/volumes/v4/config/IscsiClient.d.ts +1 -53
- package/dist/es/models/volumes/v4/config/IscsiClient.js +305 -365
- package/dist/es/models/volumes/v4/config/IscsiClientAttachment.d.ts +2 -8
- package/dist/es/models/volumes/v4/config/IscsiClientAttachment.js +171 -211
- package/dist/es/models/volumes/v4/config/IscsiClientAttachmentProjection.d.ts +1 -67
- package/dist/es/models/volumes/v4/config/IscsiClientAttachmentProjection.js +124 -164
- package/dist/es/models/volumes/v4/config/IscsiClientProjection.d.ts +1 -60
- package/dist/es/models/volumes/v4/config/IscsiClientProjection.js +165 -195
- package/dist/es/models/volumes/v4/config/IscsiFeatures.d.ts +2 -8
- package/dist/es/models/volumes/v4/config/IscsiFeatures.js +164 -205
- package/dist/es/models/volumes/v4/config/ListCategoryAssociationsApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/config/ListCategoryAssociationsApiResponse.js +209 -264
- package/dist/es/models/volumes/v4/config/ListExternalIscsiAttachmentsApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/config/ListExternalIscsiAttachmentsApiResponse.js +213 -268
- package/dist/es/models/volumes/v4/config/ListIscsiClientsApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/config/ListIscsiClientsApiResponse.js +213 -268
- package/dist/es/models/volumes/v4/config/ListNvmfClientsApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/ListNvmfClientsApiResponse.js +315 -0
- package/dist/es/models/volumes/v4/config/ListVmAttachmentsApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/config/ListVmAttachmentsApiResponse.js +213 -268
- package/dist/es/models/volumes/v4/config/ListVolumeDisksApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/config/ListVolumeDisksApiResponse.js +213 -268
- package/dist/es/models/volumes/v4/config/ListVolumeGroupsApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/config/ListVolumeGroupsApiResponse.js +213 -268
- package/dist/es/models/volumes/v4/config/NvmfClient.d.ts +10 -27
- package/dist/es/models/volumes/v4/config/NvmfClient.js +191 -238
- package/dist/es/models/volumes/v4/config/NvmfClientAttachment.d.ts +4 -19
- package/dist/es/models/volumes/v4/config/NvmfClientAttachment.js +129 -171
- package/dist/es/models/volumes/v4/config/NvmfClientAttachmentProjection.d.ts +1 -40
- package/dist/es/models/volumes/v4/config/NvmfClientAttachmentProjection.js +131 -172
- package/dist/es/models/volumes/v4/config/NvmfClientProjection.d.ts +1 -25
- package/dist/es/models/volumes/v4/config/NvmfClientProjection.js +142 -180
- package/dist/es/models/volumes/v4/config/Protocol.js +8 -10
- package/dist/es/models/volumes/v4/config/RevertSpec.d.ts +2 -7
- package/dist/es/models/volumes/v4/config/RevertSpec.js +142 -181
- package/dist/es/models/volumes/v4/config/RevertVolumeGroupApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/config/RevertVolumeGroupApiResponse.js +187 -242
- package/dist/es/models/volumes/v4/config/SharingStatus.js +7 -9
- package/dist/es/models/volumes/v4/config/StorageFeatures.d.ts +2 -12
- package/dist/es/models/volumes/v4/config/StorageFeatures.js +138 -177
- package/dist/es/models/volumes/v4/config/TargetParam.d.ts +2 -8
- package/dist/es/models/volumes/v4/config/TargetParam.js +169 -212
- package/dist/es/models/volumes/v4/config/UpdateIscsiClientApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/config/UpdateIscsiClientApiResponse.js +187 -242
- package/dist/es/models/volumes/v4/config/UpdateVolumeDiskApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/config/UpdateVolumeDiskApiResponse.js +187 -242
- package/dist/es/models/volumes/v4/config/UpdateVolumeGroupApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/config/UpdateVolumeGroupApiResponse.js +187 -242
- package/dist/es/models/volumes/v4/config/UsageType.js +7 -9
- package/dist/es/models/volumes/v4/config/VGAttachment.d.ts +48 -0
- package/dist/es/models/volumes/v4/config/VGAttachment.js +253 -0
- package/dist/es/models/volumes/v4/config/VmAttachment.d.ts +2 -8
- package/dist/es/models/volumes/v4/config/VmAttachment.js +171 -210
- package/dist/es/models/volumes/v4/config/VmAttachmentProjection.d.ts +1 -1
- package/dist/es/models/volumes/v4/config/VmAttachmentProjection.js +74 -103
- package/dist/es/models/volumes/v4/config/VolumeDisk.d.ts +1 -39
- package/dist/es/models/volumes/v4/config/VolumeDisk.js +267 -320
- package/dist/es/models/volumes/v4/config/VolumeDiskProjection.d.ts +1 -1
- package/dist/es/models/volumes/v4/config/VolumeDiskProjection.js +74 -103
- package/dist/es/models/volumes/v4/config/VolumeGroup.d.ts +23 -84
- package/dist/es/models/volumes/v4/config/VolumeGroup.js +604 -603
- package/dist/es/models/volumes/v4/config/VolumeGroupAttachmentSite.js +7 -9
- package/dist/es/models/volumes/v4/config/VolumeGroupDelegateAccessSpec.d.ts +56 -0
- package/dist/es/models/volumes/v4/config/VolumeGroupDelegateAccessSpec.js +267 -0
- package/dist/es/models/volumes/v4/config/VolumeGroupMetadata.d.ts +2 -8
- package/dist/es/models/volumes/v4/config/VolumeGroupMetadata.js +166 -209
- package/dist/es/models/volumes/v4/config/VolumeGroupMetadataProjection.d.ts +1 -1
- package/dist/es/models/volumes/v4/config/VolumeGroupMetadataProjection.js +74 -103
- package/dist/es/models/volumes/v4/config/VolumeGroupProjection.d.ts +1 -98
- package/dist/es/models/volumes/v4/config/VolumeGroupProjection.js +252 -248
- package/dist/es/models/volumes/v4/error/AppMessage.d.ts +5 -15
- package/dist/es/models/volumes/v4/error/AppMessage.js +265 -314
- package/dist/es/models/volumes/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/es/models/volumes/v4/error/ErrorResponse.js +178 -227
- package/dist/es/models/volumes/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/es/models/volumes/v4/error/SchemaValidationError.js +249 -300
- package/dist/es/models/volumes/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/es/models/volumes/v4/error/SchemaValidationErrorMessage.js +191 -234
- package/dist/es/models/volumes/v4/stats/GetVolumeDiskStatsApiResponse.d.ts +2 -45
- package/dist/es/models/volumes/v4/stats/GetVolumeDiskStatsApiResponse.js +187 -242
- package/dist/es/models/volumes/v4/stats/GetVolumeGroupStatsApiResponse.d.ts +2 -43
- package/dist/es/models/volumes/v4/stats/GetVolumeGroupStatsApiResponse.js +187 -242
- package/dist/es/models/volumes/v4/stats/TimeValuePair.d.ts +2 -8
- package/dist/es/models/volumes/v4/stats/TimeValuePair.js +166 -207
- package/dist/es/models/volumes/v4/stats/VolumeDiskStats.d.ts +1 -86
- package/dist/es/models/volumes/v4/stats/VolumeDiskStats.js +459 -551
- package/dist/es/models/volumes/v4/stats/VolumeDiskStatsProjection.d.ts +1 -1
- package/dist/es/models/volumes/v4/stats/VolumeDiskStatsProjection.js +74 -103
- package/dist/es/models/volumes/v4/stats/VolumeGroupStats.d.ts +12 -86
- package/dist/es/models/volumes/v4/stats/VolumeGroupStats.js +501 -551
- package/dist/es/models/volumes/v4/stats/VolumeGroupStatsProjection.d.ts +1 -1
- package/dist/es/models/volumes/v4/stats/VolumeGroupStatsProjection.js +74 -103
- package/dist/es/utils/ValidationUtils.js +39 -69
- package/dist/lib/ApiClient.d.ts +35 -7
- package/dist/lib/ApiClient.js +862 -684
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +144 -183
- package/dist/lib/apis/iscsiclients-endpoints.d.ts +4 -16
- package/dist/lib/apis/iscsiclients-endpoints.js +143 -164
- package/dist/lib/apis/nvmfclients-endpoints.d.ts +57 -0
- package/dist/lib/apis/nvmfclients-endpoints.js +147 -0
- package/dist/lib/apis/volumegroups-endpoints.d.ts +37 -75
- package/dist/lib/apis/volumegroups-endpoints.js +1157 -1109
- package/dist/lib/index.d.ts +21 -17
- package/dist/lib/index.js +342 -326
- package/dist/lib/models/common/v1/config/EntityReference.d.ts +8 -16
- package/dist/lib/models/common/v1/config/EntityReference.js +228 -272
- package/dist/lib/models/common/v1/config/EntityType.js +9 -11
- package/dist/lib/models/common/v1/config/FQDN.d.ts +2 -7
- package/dist/lib/models/common/v1/config/FQDN.js +141 -180
- package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
- package/dist/lib/models/common/v1/config/Flag.js +170 -211
- package/dist/lib/models/common/v1/config/IPAddressOrFQDN.d.ts +2 -26
- package/dist/lib/models/common/v1/config/IPAddressOrFQDN.js +196 -247
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +2 -8
- package/dist/lib/models/common/v1/config/IPv4Address.js +174 -215
- package/dist/lib/models/common/v1/config/IPv6Address.d.ts +2 -8
- package/dist/lib/models/common/v1/config/IPv6Address.js +174 -215
- package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
- package/dist/lib/models/common/v1/config/KVPair.js +225 -270
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
- package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
- package/dist/lib/models/common/v1/config/Message.js +213 -258
- package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
- package/dist/lib/models/common/v1/config/Metadata.d.ts +2 -11
- package/dist/lib/models/common/v1/config/Metadata.js +261 -308
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +5 -10
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +138 -178
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
- package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +155 -203
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +7 -9
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +5 -10
- package/dist/lib/models/prism/v4/config/TaskReference.js +144 -188
- package/dist/lib/models/validation/ValidationError.js +26 -42
- package/dist/lib/models/validation/ValidationScopes.js +3 -3
- package/dist/lib/models/volumes/v4/config/AccessToken.d.ts +47 -0
- package/dist/lib/models/volumes/v4/config/AccessToken.js +235 -0
- package/dist/lib/models/volumes/v4/config/AssociateCategoryApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/config/AssociateCategoryApiResponse.js +187 -242
- package/dist/lib/models/volumes/v4/config/AttachIscsiClientApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/config/AttachIscsiClientApiResponse.js +187 -242
- package/dist/lib/models/volumes/v4/config/AttachNvmfClientApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/config/AttachNvmfClientApiResponse.js +187 -242
- package/dist/lib/models/volumes/v4/config/AttachVmApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/config/AttachVmApiResponse.js +187 -242
- package/dist/lib/models/volumes/v4/config/AttachmentType.js +8 -10
- package/dist/lib/models/volumes/v4/config/AuthenticationType.js +7 -9
- package/dist/lib/models/volumes/v4/config/CategoryDetails.d.ts +1 -1
- package/dist/lib/models/volumes/v4/config/CategoryDetails.js +74 -103
- package/dist/lib/models/volumes/v4/config/CategoryEntityReferences.d.ts +2 -15
- package/dist/lib/models/volumes/v4/config/CategoryEntityReferences.js +152 -195
- package/dist/lib/models/volumes/v4/config/ClientAccess.d.ts +19 -0
- package/dist/lib/models/volumes/v4/config/ClientAccess.js +89 -0
- package/dist/lib/models/volumes/v4/config/Cluster.d.ts +2 -8
- package/dist/lib/models/volumes/v4/config/Cluster.js +164 -207
- package/dist/lib/models/volumes/v4/config/ClusterProjection.d.ts +1 -1
- package/dist/lib/models/volumes/v4/config/ClusterProjection.js +74 -103
- package/dist/lib/models/volumes/v4/config/ClusterScope.d.ts +57 -0
- package/dist/lib/models/volumes/v4/config/ClusterScope.js +243 -0
- package/dist/lib/models/volumes/v4/config/ClusterScopeProjection.d.ts +12 -0
- package/dist/lib/models/volumes/v4/config/ClusterScopeProjection.js +125 -0
- package/dist/lib/models/volumes/v4/config/CreateVolumeDiskApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/config/CreateVolumeDiskApiResponse.js +187 -242
- package/dist/lib/models/volumes/v4/config/CreateVolumeGroupApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/config/CreateVolumeGroupApiResponse.js +187 -242
- package/dist/lib/models/volumes/v4/config/DeleteVolumeDiskApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/config/DeleteVolumeDiskApiResponse.js +187 -242
- package/dist/lib/models/volumes/v4/config/DeleteVolumeGroupApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/config/DeleteVolumeGroupApiResponse.js +187 -242
- package/dist/lib/models/volumes/v4/config/DetachIscsiClientApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/config/DetachIscsiClientApiResponse.js +187 -242
- package/dist/lib/models/volumes/v4/config/DetachNvmfClientApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/config/DetachNvmfClientApiResponse.js +187 -242
- package/dist/lib/models/volumes/v4/config/DetachVmApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/config/DetachVmApiResponse.js +187 -242
- package/dist/lib/models/volumes/v4/config/DisassociateCategoryApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/config/DisassociateCategoryApiResponse.js +187 -242
- package/dist/lib/models/volumes/v4/config/DiskStorageFeatures.d.ts +2 -12
- package/dist/lib/models/volumes/v4/config/DiskStorageFeatures.js +138 -177
- package/dist/lib/models/volumes/v4/config/FlashMode.d.ts +2 -7
- package/dist/lib/models/volumes/v4/config/FlashMode.js +140 -179
- package/dist/lib/models/volumes/v4/config/GetIscsiClientApiResponse.d.ts +2 -45
- package/dist/lib/models/volumes/v4/config/GetIscsiClientApiResponse.js +187 -242
- package/dist/lib/models/volumes/v4/config/GetNvmfClientApiResponse.d.ts +58 -0
- package/dist/lib/models/volumes/v4/config/GetNvmfClientApiResponse.js +288 -0
- package/dist/lib/models/volumes/v4/config/GetVolumeDiskApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/config/GetVolumeDiskApiResponse.js +187 -242
- package/dist/lib/models/volumes/v4/config/GetVolumeGroupApiResponse.d.ts +2 -45
- package/dist/lib/models/volumes/v4/config/GetVolumeGroupApiResponse.js +187 -242
- package/dist/lib/models/volumes/v4/config/GetVolumeGroupMetadataApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/config/GetVolumeGroupMetadataApiResponse.js +187 -242
- package/dist/lib/models/volumes/v4/config/HydrationStatus.d.ts +19 -0
- package/dist/lib/models/volumes/v4/config/HydrationStatus.js +89 -0
- package/dist/lib/models/volumes/v4/config/IscsiClient.d.ts +1 -53
- package/dist/lib/models/volumes/v4/config/IscsiClient.js +305 -365
- package/dist/lib/models/volumes/v4/config/IscsiClientAttachment.d.ts +2 -8
- package/dist/lib/models/volumes/v4/config/IscsiClientAttachment.js +171 -211
- package/dist/lib/models/volumes/v4/config/IscsiClientAttachmentProjection.d.ts +1 -67
- package/dist/lib/models/volumes/v4/config/IscsiClientAttachmentProjection.js +124 -164
- package/dist/lib/models/volumes/v4/config/IscsiClientProjection.d.ts +1 -60
- package/dist/lib/models/volumes/v4/config/IscsiClientProjection.js +165 -195
- package/dist/lib/models/volumes/v4/config/IscsiFeatures.d.ts +2 -8
- package/dist/lib/models/volumes/v4/config/IscsiFeatures.js +164 -205
- package/dist/lib/models/volumes/v4/config/ListCategoryAssociationsApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/config/ListCategoryAssociationsApiResponse.js +209 -264
- package/dist/lib/models/volumes/v4/config/ListExternalIscsiAttachmentsApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/config/ListExternalIscsiAttachmentsApiResponse.js +213 -268
- package/dist/lib/models/volumes/v4/config/ListIscsiClientsApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/config/ListIscsiClientsApiResponse.js +213 -268
- package/dist/lib/models/volumes/v4/config/ListNvmfClientsApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/ListNvmfClientsApiResponse.js +315 -0
- package/dist/lib/models/volumes/v4/config/ListVmAttachmentsApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/config/ListVmAttachmentsApiResponse.js +213 -268
- package/dist/lib/models/volumes/v4/config/ListVolumeDisksApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/config/ListVolumeDisksApiResponse.js +213 -268
- package/dist/lib/models/volumes/v4/config/ListVolumeGroupsApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/config/ListVolumeGroupsApiResponse.js +213 -268
- package/dist/lib/models/volumes/v4/config/NvmfClient.d.ts +10 -27
- package/dist/lib/models/volumes/v4/config/NvmfClient.js +191 -238
- package/dist/lib/models/volumes/v4/config/NvmfClientAttachment.d.ts +4 -19
- package/dist/lib/models/volumes/v4/config/NvmfClientAttachment.js +129 -171
- package/dist/lib/models/volumes/v4/config/NvmfClientAttachmentProjection.d.ts +1 -40
- package/dist/lib/models/volumes/v4/config/NvmfClientAttachmentProjection.js +131 -172
- package/dist/lib/models/volumes/v4/config/NvmfClientProjection.d.ts +1 -25
- package/dist/lib/models/volumes/v4/config/NvmfClientProjection.js +142 -180
- package/dist/lib/models/volumes/v4/config/Protocol.js +8 -10
- package/dist/lib/models/volumes/v4/config/RevertSpec.d.ts +2 -7
- package/dist/lib/models/volumes/v4/config/RevertSpec.js +142 -181
- package/dist/lib/models/volumes/v4/config/RevertVolumeGroupApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/config/RevertVolumeGroupApiResponse.js +187 -242
- package/dist/lib/models/volumes/v4/config/SharingStatus.js +7 -9
- package/dist/lib/models/volumes/v4/config/StorageFeatures.d.ts +2 -12
- package/dist/lib/models/volumes/v4/config/StorageFeatures.js +138 -177
- package/dist/lib/models/volumes/v4/config/TargetParam.d.ts +2 -8
- package/dist/lib/models/volumes/v4/config/TargetParam.js +169 -212
- package/dist/lib/models/volumes/v4/config/UpdateIscsiClientApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/config/UpdateIscsiClientApiResponse.js +187 -242
- package/dist/lib/models/volumes/v4/config/UpdateVolumeDiskApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/config/UpdateVolumeDiskApiResponse.js +187 -242
- package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupApiResponse.js +187 -242
- package/dist/lib/models/volumes/v4/config/UsageType.js +7 -9
- package/dist/lib/models/volumes/v4/config/VGAttachment.d.ts +48 -0
- package/dist/lib/models/volumes/v4/config/VGAttachment.js +253 -0
- package/dist/lib/models/volumes/v4/config/VmAttachment.d.ts +2 -8
- package/dist/lib/models/volumes/v4/config/VmAttachment.js +171 -210
- package/dist/lib/models/volumes/v4/config/VmAttachmentProjection.d.ts +1 -1
- package/dist/lib/models/volumes/v4/config/VmAttachmentProjection.js +74 -103
- package/dist/lib/models/volumes/v4/config/VolumeDisk.d.ts +1 -39
- package/dist/lib/models/volumes/v4/config/VolumeDisk.js +267 -320
- package/dist/lib/models/volumes/v4/config/VolumeDiskProjection.d.ts +1 -1
- package/dist/lib/models/volumes/v4/config/VolumeDiskProjection.js +74 -103
- package/dist/lib/models/volumes/v4/config/VolumeGroup.d.ts +23 -84
- package/dist/lib/models/volumes/v4/config/VolumeGroup.js +604 -603
- package/dist/lib/models/volumes/v4/config/VolumeGroupAttachmentSite.js +7 -9
- package/dist/lib/models/volumes/v4/config/VolumeGroupDelegateAccessSpec.d.ts +56 -0
- package/dist/lib/models/volumes/v4/config/VolumeGroupDelegateAccessSpec.js +267 -0
- package/dist/lib/models/volumes/v4/config/VolumeGroupMetadata.d.ts +2 -8
- package/dist/lib/models/volumes/v4/config/VolumeGroupMetadata.js +166 -209
- package/dist/lib/models/volumes/v4/config/VolumeGroupMetadataProjection.d.ts +1 -1
- package/dist/lib/models/volumes/v4/config/VolumeGroupMetadataProjection.js +74 -103
- package/dist/lib/models/volumes/v4/config/VolumeGroupProjection.d.ts +1 -98
- package/dist/lib/models/volumes/v4/config/VolumeGroupProjection.js +252 -248
- package/dist/lib/models/volumes/v4/error/AppMessage.d.ts +5 -15
- package/dist/lib/models/volumes/v4/error/AppMessage.js +265 -314
- package/dist/lib/models/volumes/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/lib/models/volumes/v4/error/ErrorResponse.js +178 -227
- package/dist/lib/models/volumes/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/lib/models/volumes/v4/error/SchemaValidationError.js +249 -300
- package/dist/lib/models/volumes/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/lib/models/volumes/v4/error/SchemaValidationErrorMessage.js +191 -234
- package/dist/lib/models/volumes/v4/stats/GetVolumeDiskStatsApiResponse.d.ts +2 -45
- package/dist/lib/models/volumes/v4/stats/GetVolumeDiskStatsApiResponse.js +187 -242
- package/dist/lib/models/volumes/v4/stats/GetVolumeGroupStatsApiResponse.d.ts +2 -43
- package/dist/lib/models/volumes/v4/stats/GetVolumeGroupStatsApiResponse.js +187 -242
- package/dist/lib/models/volumes/v4/stats/TimeValuePair.d.ts +2 -8
- package/dist/lib/models/volumes/v4/stats/TimeValuePair.js +166 -207
- package/dist/lib/models/volumes/v4/stats/VolumeDiskStats.d.ts +1 -86
- package/dist/lib/models/volumes/v4/stats/VolumeDiskStats.js +459 -551
- package/dist/lib/models/volumes/v4/stats/VolumeDiskStatsProjection.d.ts +1 -1
- package/dist/lib/models/volumes/v4/stats/VolumeDiskStatsProjection.js +74 -103
- package/dist/lib/models/volumes/v4/stats/VolumeGroupStats.d.ts +12 -86
- package/dist/lib/models/volumes/v4/stats/VolumeGroupStats.js +501 -551
- package/dist/lib/models/volumes/v4/stats/VolumeGroupStatsProjection.d.ts +1 -1
- package/dist/lib/models/volumes/v4/stats/VolumeGroupStatsProjection.js +74 -103
- package/dist/lib/utils/ValidationUtils.js +39 -69
- package/package.json +2 -2
- package/dist/es/models/volumes/v4/config/MigrateVolumeGroupApiResponse.d.ts +0 -99
- package/dist/es/models/volumes/v4/config/MigrateVolumeGroupApiResponse.js +0 -343
- package/dist/es/models/volumes/v4/config/PauseVolumeGroupSynchronousReplicationApiResponse.d.ts +0 -99
- package/dist/es/models/volumes/v4/config/PauseVolumeGroupSynchronousReplicationApiResponse.js +0 -343
- package/dist/es/models/volumes/v4/config/ResumeVolumeGroupSynchronousReplicationApiResponse.d.ts +0 -98
- package/dist/es/models/volumes/v4/config/ResumeVolumeGroupSynchronousReplicationApiResponse.js +0 -345
- package/dist/es/models/volumes/v4/config/UpdateIscsiClientByIdApiResponse.d.ts +0 -99
- package/dist/es/models/volumes/v4/config/UpdateIscsiClientByIdApiResponse.js +0 -343
- package/dist/es/models/volumes/v4/config/UpdateVolumeDiskByIdApiResponse.d.ts +0 -99
- package/dist/es/models/volumes/v4/config/UpdateVolumeDiskByIdApiResponse.js +0 -343
- package/dist/es/models/volumes/v4/config/UpdateVolumeGroupByIdApiResponse.d.ts +0 -99
- package/dist/es/models/volumes/v4/config/UpdateVolumeGroupByIdApiResponse.js +0 -343
- package/dist/es/models/volumes/v4/config/UpdateVolumeGroupMetadataApiResponse.d.ts +0 -98
- package/dist/es/models/volumes/v4/config/UpdateVolumeGroupMetadataApiResponse.js +0 -345
- package/dist/es/models/volumes/v4/config/UpdateVolumeGroupMetadataInfoApiResponse.d.ts +0 -98
- package/dist/es/models/volumes/v4/config/UpdateVolumeGroupMetadataInfoApiResponse.js +0 -345
- package/dist/lib/models/volumes/v4/config/MigrateVolumeGroupApiResponse.d.ts +0 -99
- package/dist/lib/models/volumes/v4/config/MigrateVolumeGroupApiResponse.js +0 -343
- package/dist/lib/models/volumes/v4/config/PauseVolumeGroupSynchronousReplicationApiResponse.d.ts +0 -99
- package/dist/lib/models/volumes/v4/config/PauseVolumeGroupSynchronousReplicationApiResponse.js +0 -343
- package/dist/lib/models/volumes/v4/config/ResumeVolumeGroupSynchronousReplicationApiResponse.d.ts +0 -98
- package/dist/lib/models/volumes/v4/config/ResumeVolumeGroupSynchronousReplicationApiResponse.js +0 -345
- package/dist/lib/models/volumes/v4/config/UpdateIscsiClientByIdApiResponse.d.ts +0 -99
- package/dist/lib/models/volumes/v4/config/UpdateIscsiClientByIdApiResponse.js +0 -343
- package/dist/lib/models/volumes/v4/config/UpdateVolumeDiskByIdApiResponse.d.ts +0 -99
- package/dist/lib/models/volumes/v4/config/UpdateVolumeDiskByIdApiResponse.js +0 -343
- package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupByIdApiResponse.d.ts +0 -99
- package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupByIdApiResponse.js +0 -343
- package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupMetadataApiResponse.d.ts +0 -98
- package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupMetadataApiResponse.js +0 -345
- package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupMetadataInfoApiResponse.d.ts +0 -98
- package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupMetadataInfoApiResponse.js +0 -345
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
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
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.VolumeGroupsApi = void 0;
|
|
8
7
|
var _ApiClient = require("../ApiClient");
|
|
8
|
+
var _NvmfClient = _interopRequireDefault(require("../models/volumes/v4/config/NvmfClient"));
|
|
9
9
|
var _GetVolumeGroupApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/GetVolumeGroupApiResponse"));
|
|
10
10
|
var _ListVolumeGroupsApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/ListVolumeGroupsApiResponse"));
|
|
11
11
|
var _CreateVolumeGroupApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/CreateVolumeGroupApiResponse"));
|
|
@@ -20,6 +20,7 @@ var _ListCategoryAssociationsApiResponse = _interopRequireDefault(require("../mo
|
|
|
20
20
|
var _ListExternalIscsiAttachmentsApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/ListExternalIscsiAttachmentsApiResponse"));
|
|
21
21
|
var _DeleteVolumeGroupApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/DeleteVolumeGroupApiResponse"));
|
|
22
22
|
var _VmAttachment = _interopRequireDefault(require("../models/volumes/v4/config/VmAttachment"));
|
|
23
|
+
var _AttachNvmfClientApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/AttachNvmfClientApiResponse"));
|
|
23
24
|
var _RevertVolumeGroupApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/RevertVolumeGroupApiResponse"));
|
|
24
25
|
var _CreateVolumeDiskApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/CreateVolumeDiskApiResponse"));
|
|
25
26
|
var _DeleteVolumeDiskApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/DeleteVolumeDiskApiResponse"));
|
|
@@ -36,39 +37,38 @@ var _UpdateVolumeDiskApiResponse = _interopRequireDefault(require("../models/vol
|
|
|
36
37
|
var _DetachVmApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/DetachVmApiResponse"));
|
|
37
38
|
var _VolumeDisk = _interopRequireDefault(require("../models/volumes/v4/config/VolumeDisk"));
|
|
38
39
|
var _AssociateCategoryApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/AssociateCategoryApiResponse"));
|
|
40
|
+
var _DetachNvmfClientApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/DetachNvmfClientApiResponse"));
|
|
39
41
|
var _IscsiClient = _interopRequireDefault(require("../models/volumes/v4/config/IscsiClient"));
|
|
40
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : {
|
|
41
|
-
|
|
42
|
-
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; }
|
|
43
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
44
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
45
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
46
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
47
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
48
|
-
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); }
|
|
49
|
-
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
50
|
-
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
51
|
-
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
52
|
-
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
53
|
-
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"); } /*
|
|
42
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
43
|
+
/*
|
|
54
44
|
* Nutanix Volumes APIs
|
|
55
45
|
*
|
|
56
|
-
* OpenAPI spec version: 4.
|
|
46
|
+
* OpenAPI spec version: 4.2.1
|
|
57
47
|
*
|
|
58
48
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
59
49
|
*
|
|
60
|
-
* Open API Dev Platform Codegen version:
|
|
50
|
+
* Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
|
|
61
51
|
*
|
|
62
52
|
* Do not edit the class manually.
|
|
63
53
|
*
|
|
64
54
|
*/
|
|
55
|
+
|
|
65
56
|
/**
|
|
66
57
|
* VolumeGroups service.
|
|
67
|
-
* @version 4.
|
|
58
|
+
* @version 4.2.1
|
|
68
59
|
* @class VolumeGroupsApi
|
|
69
60
|
*/
|
|
70
|
-
|
|
71
|
-
|
|
61
|
+
class VolumeGroupsApi {
|
|
62
|
+
#headersToSkip;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
66
|
+
* their own fetch methods into the SDK
|
|
67
|
+
*/
|
|
68
|
+
static get ApiClient() {
|
|
69
|
+
return _ApiClient.ApiClient;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
72
|
/**
|
|
73
73
|
* Constructs a new VolumeGroupsApi.
|
|
74
74
|
* @alias module:api/VolumeGroupsApi
|
|
@@ -76,15 +76,13 @@ var VolumeGroupsApi = exports.VolumeGroupsApi = /*#__PURE__*/function () {
|
|
|
76
76
|
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
77
77
|
* default to {@link module:ApiClient#instance} if unspecified.
|
|
78
78
|
*/
|
|
79
|
-
|
|
80
|
-
_classCallCheck(this, VolumeGroupsApi);
|
|
81
|
-
_classPrivateFieldInitSpec(this, _headersToSkip, void 0);
|
|
79
|
+
constructor(apiClient) {
|
|
82
80
|
this.apiClient = apiClient || _ApiClient.ApiClient.instance;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
81
|
+
this.#headersToSkip = new Set();
|
|
82
|
+
this.#headersToSkip.add('authorization');
|
|
83
|
+
this.#headersToSkip.add('cookie');
|
|
84
|
+
this.#headersToSkip.add('host');
|
|
85
|
+
this.#headersToSkip.add('user-agent');
|
|
88
86
|
}
|
|
89
87
|
|
|
90
88
|
/**
|
|
@@ -95,1158 +93,1208 @@ var VolumeGroupsApi = exports.VolumeGroupsApi = /*#__PURE__*/function () {
|
|
|
95
93
|
* @param {Object} args Additional Arguments
|
|
96
94
|
* @return {Promise<AssociateCategoryApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link AssociateCategoryApiResponse } and HTTP response
|
|
97
95
|
*/
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
postBody = body.toJson();
|
|
106
|
-
} else {
|
|
107
|
-
postBody = body;
|
|
108
|
-
}
|
|
109
|
-
// verify the required parameter 'extId' is set
|
|
110
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
111
|
-
throw new Error("Missing the required parameter 'extId' when calling associateCategory");
|
|
112
|
-
}
|
|
113
|
-
// verify the required parameter 'body' is set
|
|
114
|
-
if (typeof postBody === 'undefined' || postBody === null) {
|
|
115
|
-
throw new Error("Invalid body when calling associateCategory");
|
|
116
|
-
}
|
|
117
|
-
var pathParams = {
|
|
118
|
-
'extId': extId
|
|
119
|
-
};
|
|
120
|
-
var queryParams = {};
|
|
121
|
-
var headersToInclude = {};
|
|
122
|
-
Object.keys(argMap).forEach(function (header) {
|
|
123
|
-
if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {
|
|
124
|
-
headersToInclude[header] = argMap[header];
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
128
|
-
var formParams = {};
|
|
129
|
-
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
130
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
131
|
-
var contentTypes = ['application/json'];
|
|
132
|
-
var accepts = ['application/json'];
|
|
133
|
-
var returnType = _AssociateCategoryApiResponse["default"];
|
|
134
|
-
return this.apiClient.callApi('/api/volumes/v4.0/config/volume-groups/{extId}/$actions/associate-category', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
96
|
+
associateCategory(extId, body, ...args) {
|
|
97
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
98
|
+
let postBody = null;
|
|
99
|
+
if (body instanceof _CategoryEntityReferences.default && typeof body.toJson === 'function') {
|
|
100
|
+
postBody = body.toJson();
|
|
101
|
+
} else {
|
|
102
|
+
postBody = body;
|
|
135
103
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
* Attaches iSCSI initiator to a Volume Group identified by {extId}.
|
|
140
|
-
* @param { Partial<IscsiClient> } body specification
|
|
141
|
-
* @param { String } extId The external identifier of a Volume Group.
|
|
142
|
-
* @param {Object} args Additional Arguments
|
|
143
|
-
* @return {Promise<AttachIscsiClientApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link AttachIscsiClientApiResponse } and HTTP response
|
|
144
|
-
*/
|
|
145
|
-
}, {
|
|
146
|
-
key: "attachIscsiClient",
|
|
147
|
-
value: function attachIscsiClient(extId, body) {
|
|
148
|
-
var _this2 = this;
|
|
149
|
-
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
150
|
-
var postBody = null;
|
|
151
|
-
if (body instanceof _IscsiClient["default"] && typeof body.toJson === 'function') {
|
|
152
|
-
postBody = body.toJson();
|
|
153
|
-
} else {
|
|
154
|
-
postBody = body;
|
|
155
|
-
}
|
|
156
|
-
// verify the required parameter 'extId' is set
|
|
157
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
158
|
-
throw new Error("Missing the required parameter 'extId' when calling attachIscsiClient");
|
|
159
|
-
}
|
|
160
|
-
// verify the required parameter 'body' is set
|
|
161
|
-
if (typeof postBody === 'undefined' || postBody === null) {
|
|
162
|
-
throw new Error("Invalid body when calling attachIscsiClient");
|
|
163
|
-
}
|
|
164
|
-
var pathParams = {
|
|
165
|
-
'extId': extId
|
|
166
|
-
};
|
|
167
|
-
var queryParams = {};
|
|
168
|
-
var headersToInclude = {};
|
|
169
|
-
Object.keys(argMap).forEach(function (header) {
|
|
170
|
-
if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {
|
|
171
|
-
headersToInclude[header] = argMap[header];
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
175
|
-
var formParams = {};
|
|
176
|
-
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
177
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
178
|
-
var contentTypes = ['application/json'];
|
|
179
|
-
var accepts = ['application/json'];
|
|
180
|
-
var returnType = _AttachIscsiClientApiResponse["default"];
|
|
181
|
-
return this.apiClient.callApi('/api/volumes/v4.0/config/volume-groups/{extId}/$actions/attach-iscsi-client', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
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 associateCategory");
|
|
182
107
|
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
* Attaches VM to a Volume Group identified by {extId}.
|
|
187
|
-
* @param { Required<Pick<VmAttachment, 'extId'>> & Partial<VmAttachment> } body specification
|
|
188
|
-
* @param { String } extId The external identifier of a Volume Group.
|
|
189
|
-
* @param {Object} args Additional Arguments
|
|
190
|
-
* @return {Promise<AttachVmApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link AttachVmApiResponse } and HTTP response
|
|
191
|
-
*/
|
|
192
|
-
}, {
|
|
193
|
-
key: "attachVm",
|
|
194
|
-
value: function attachVm(extId, body) {
|
|
195
|
-
var _this3 = this;
|
|
196
|
-
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
197
|
-
var postBody = null;
|
|
198
|
-
if (body instanceof _VmAttachment["default"] && typeof body.toJson === 'function') {
|
|
199
|
-
postBody = body.toJson();
|
|
200
|
-
} else {
|
|
201
|
-
postBody = body;
|
|
202
|
-
}
|
|
203
|
-
// verify the required parameter 'extId' is set
|
|
204
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
205
|
-
throw new Error("Missing the required parameter 'extId' when calling attachVm");
|
|
206
|
-
}
|
|
207
|
-
// verify the required parameter 'body' is set
|
|
208
|
-
if (typeof postBody === 'undefined' || postBody === null) {
|
|
209
|
-
throw new Error("Invalid body when calling attachVm");
|
|
210
|
-
}
|
|
211
|
-
var pathParams = {
|
|
212
|
-
'extId': extId
|
|
213
|
-
};
|
|
214
|
-
var queryParams = {};
|
|
215
|
-
var headersToInclude = {};
|
|
216
|
-
Object.keys(argMap).forEach(function (header) {
|
|
217
|
-
if (!_classPrivateFieldGet(_headersToSkip, _this3).has(header.toLowerCase())) {
|
|
218
|
-
headersToInclude[header] = argMap[header];
|
|
219
|
-
}
|
|
220
|
-
});
|
|
221
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
222
|
-
var formParams = {};
|
|
223
|
-
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
224
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
225
|
-
var contentTypes = ['application/json'];
|
|
226
|
-
var accepts = ['application/json'];
|
|
227
|
-
var returnType = _AttachVmApiResponse["default"];
|
|
228
|
-
return this.apiClient.callApi('/api/volumes/v4.0/config/volume-groups/{extId}/$actions/attach-vm', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
108
|
+
// verify the required parameter 'body' is set
|
|
109
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
110
|
+
throw new Error("Invalid body when calling associateCategory");
|
|
229
111
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
*/
|
|
239
|
-
}, {
|
|
240
|
-
key: "createVolumeDisk",
|
|
241
|
-
value: function createVolumeDisk(volumeGroupExtId, body) {
|
|
242
|
-
var _this4 = this;
|
|
243
|
-
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
244
|
-
var postBody = null;
|
|
245
|
-
if (body instanceof _VolumeDisk["default"] && typeof body.toJson === 'function') {
|
|
246
|
-
postBody = body.toJson();
|
|
247
|
-
} else {
|
|
248
|
-
postBody = body;
|
|
249
|
-
}
|
|
250
|
-
// verify the required parameter 'volumeGroupExtId' is set
|
|
251
|
-
if (typeof volumeGroupExtId === 'undefined' || volumeGroupExtId === null) {
|
|
252
|
-
throw new Error("Missing the required parameter 'volumeGroupExtId' when calling createVolumeDisk");
|
|
253
|
-
}
|
|
254
|
-
// verify the required parameter 'body' is set
|
|
255
|
-
if (typeof postBody === 'undefined' || postBody === null) {
|
|
256
|
-
throw new Error("Invalid body when calling createVolumeDisk");
|
|
112
|
+
const pathParams = {
|
|
113
|
+
'extId': extId
|
|
114
|
+
};
|
|
115
|
+
const queryParams = {};
|
|
116
|
+
let headersToInclude = {};
|
|
117
|
+
Object.keys(argMap).forEach(header => {
|
|
118
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
119
|
+
headersToInclude[header] = argMap[header];
|
|
257
120
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
271
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
272
|
-
var contentTypes = ['application/json'];
|
|
273
|
-
var accepts = ['application/json'];
|
|
274
|
-
var returnType = _CreateVolumeDiskApiResponse["default"];
|
|
275
|
-
return this.apiClient.callApi('/api/volumes/v4.0/config/volume-groups/{volumeGroupExtId}/disks', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
276
|
-
}
|
|
121
|
+
});
|
|
122
|
+
const headerParams = {
|
|
123
|
+
...headersToInclude
|
|
124
|
+
};
|
|
125
|
+
const formParams = {};
|
|
126
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
127
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
128
|
+
const contentTypes = ['application/json'];
|
|
129
|
+
const accepts = ['application/json'];
|
|
130
|
+
const returnType = _AssociateCategoryApiResponse.default;
|
|
131
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/volume-groups/{extId}/$actions/associate-category', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
132
|
+
}
|
|
277
133
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
} else {
|
|
294
|
-
postBody = body;
|
|
295
|
-
}
|
|
296
|
-
// verify the required parameter 'body' is set
|
|
297
|
-
if (typeof postBody === 'undefined' || postBody === null) {
|
|
298
|
-
throw new Error("Invalid body when calling createVolumeGroup");
|
|
299
|
-
}
|
|
300
|
-
var pathParams = {};
|
|
301
|
-
var queryParams = {};
|
|
302
|
-
var headersToInclude = {};
|
|
303
|
-
Object.keys(argMap).forEach(function (header) {
|
|
304
|
-
if (!_classPrivateFieldGet(_headersToSkip, _this5).has(header.toLowerCase())) {
|
|
305
|
-
headersToInclude[header] = argMap[header];
|
|
306
|
-
}
|
|
307
|
-
});
|
|
308
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
309
|
-
var formParams = {};
|
|
310
|
-
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
311
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
312
|
-
var contentTypes = ['application/json'];
|
|
313
|
-
var accepts = ['application/json'];
|
|
314
|
-
var returnType = _CreateVolumeGroupApiResponse["default"];
|
|
315
|
-
return this.apiClient.callApi('/api/volumes/v4.0/config/volume-groups', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
134
|
+
/**
|
|
135
|
+
* Attach an iSCSI client to the given Volume Group
|
|
136
|
+
* Attaches iSCSI initiator to a Volume Group identified by {extId}.
|
|
137
|
+
* @param { Partial<IscsiClient> } body specification
|
|
138
|
+
* @param { String } extId The external identifier of a Volume Group.
|
|
139
|
+
* @param {Object} args Additional Arguments
|
|
140
|
+
* @return {Promise<AttachIscsiClientApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link AttachIscsiClientApiResponse } and HTTP response
|
|
141
|
+
*/
|
|
142
|
+
attachIscsiClient(extId, body, ...args) {
|
|
143
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
144
|
+
let postBody = null;
|
|
145
|
+
if (body instanceof _IscsiClient.default && typeof body.toJson === 'function') {
|
|
146
|
+
postBody = body.toJson();
|
|
147
|
+
} else {
|
|
148
|
+
postBody = body;
|
|
316
149
|
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
* Deletes a Volume Disk identified by {extId} in the Volume Group identified by {volumeGroupExtId}.
|
|
321
|
-
* @param { String } volumeGroupExtId The external identifier of a Volume Group.
|
|
322
|
-
* @param { String } extId The external identifier of a Volume Disk.
|
|
323
|
-
* @param {Object} args Additional Arguments
|
|
324
|
-
* @return {Promise<DeleteVolumeDiskApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteVolumeDiskApiResponse } and HTTP response
|
|
325
|
-
*/
|
|
326
|
-
}, {
|
|
327
|
-
key: "deleteVolumeDiskById",
|
|
328
|
-
value: function deleteVolumeDiskById(volumeGroupExtId, extId) {
|
|
329
|
-
var _this6 = this;
|
|
330
|
-
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
331
|
-
var postBody = null;
|
|
332
|
-
// verify the required parameter 'volumeGroupExtId' is set
|
|
333
|
-
if (typeof volumeGroupExtId === 'undefined' || volumeGroupExtId === null) {
|
|
334
|
-
throw new Error("Missing the required parameter 'volumeGroupExtId' when calling deleteVolumeDiskById");
|
|
335
|
-
}
|
|
336
|
-
// verify the required parameter 'extId' is set
|
|
337
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
338
|
-
throw new Error("Missing the required parameter 'extId' when calling deleteVolumeDiskById");
|
|
339
|
-
}
|
|
340
|
-
var pathParams = {
|
|
341
|
-
'volumeGroupExtId': volumeGroupExtId,
|
|
342
|
-
'extId': extId
|
|
343
|
-
};
|
|
344
|
-
var queryParams = {};
|
|
345
|
-
var headersToInclude = {};
|
|
346
|
-
Object.keys(argMap).forEach(function (header) {
|
|
347
|
-
if (!_classPrivateFieldGet(_headersToSkip, _this6).has(header.toLowerCase())) {
|
|
348
|
-
headersToInclude[header] = argMap[header];
|
|
349
|
-
}
|
|
350
|
-
});
|
|
351
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
352
|
-
var formParams = {};
|
|
353
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
354
|
-
var contentTypes = [];
|
|
355
|
-
var accepts = ['application/json'];
|
|
356
|
-
var returnType = _DeleteVolumeDiskApiResponse["default"];
|
|
357
|
-
return this.apiClient.callApi('/api/volumes/v4.0/config/volume-groups/{volumeGroupExtId}/disks/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
150
|
+
// verify the required parameter 'extId' is set
|
|
151
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
152
|
+
throw new Error("Missing the required parameter 'extId' when calling attachIscsiClient");
|
|
358
153
|
}
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
* Delete the Volume Group identified by {extId}.
|
|
363
|
-
* @param { String } extId The external identifier of a Volume Group.
|
|
364
|
-
* @param {Object} args Additional Arguments
|
|
365
|
-
* @return {Promise<DeleteVolumeGroupApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteVolumeGroupApiResponse } and HTTP response
|
|
366
|
-
*/
|
|
367
|
-
}, {
|
|
368
|
-
key: "deleteVolumeGroupById",
|
|
369
|
-
value: function deleteVolumeGroupById(extId) {
|
|
370
|
-
var _this7 = this;
|
|
371
|
-
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
372
|
-
var postBody = null;
|
|
373
|
-
// verify the required parameter 'extId' is set
|
|
374
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
375
|
-
throw new Error("Missing the required parameter 'extId' when calling deleteVolumeGroupById");
|
|
376
|
-
}
|
|
377
|
-
var pathParams = {
|
|
378
|
-
'extId': extId
|
|
379
|
-
};
|
|
380
|
-
var queryParams = {};
|
|
381
|
-
var headersToInclude = {};
|
|
382
|
-
Object.keys(argMap).forEach(function (header) {
|
|
383
|
-
if (!_classPrivateFieldGet(_headersToSkip, _this7).has(header.toLowerCase())) {
|
|
384
|
-
headersToInclude[header] = argMap[header];
|
|
385
|
-
}
|
|
386
|
-
});
|
|
387
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
388
|
-
var formParams = {};
|
|
389
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
390
|
-
var contentTypes = [];
|
|
391
|
-
var accepts = ['application/json'];
|
|
392
|
-
var returnType = _DeleteVolumeGroupApiResponse["default"];
|
|
393
|
-
return this.apiClient.callApi('/api/volumes/v4.0/config/volume-groups/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
154
|
+
// verify the required parameter 'body' is set
|
|
155
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
156
|
+
throw new Error("Invalid body when calling attachIscsiClient");
|
|
394
157
|
}
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
*/
|
|
404
|
-
}, {
|
|
405
|
-
key: "detachIscsiClient",
|
|
406
|
-
value: function detachIscsiClient(extId, body) {
|
|
407
|
-
var _this8 = this;
|
|
408
|
-
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
409
|
-
var postBody = null;
|
|
410
|
-
if (body instanceof _IscsiClientAttachment["default"] && typeof body.toJson === 'function') {
|
|
411
|
-
postBody = body.toJson();
|
|
412
|
-
} else {
|
|
413
|
-
postBody = body;
|
|
414
|
-
}
|
|
415
|
-
// verify the required parameter 'extId' is set
|
|
416
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
417
|
-
throw new Error("Missing the required parameter 'extId' when calling detachIscsiClient");
|
|
158
|
+
const pathParams = {
|
|
159
|
+
'extId': extId
|
|
160
|
+
};
|
|
161
|
+
const queryParams = {};
|
|
162
|
+
let headersToInclude = {};
|
|
163
|
+
Object.keys(argMap).forEach(header => {
|
|
164
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
165
|
+
headersToInclude[header] = argMap[header];
|
|
418
166
|
}
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
}
|
|
432
|
-
});
|
|
433
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
434
|
-
var formParams = {};
|
|
435
|
-
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
436
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
437
|
-
var contentTypes = ['application/json'];
|
|
438
|
-
var accepts = ['application/json'];
|
|
439
|
-
var returnType = _DetachIscsiClientApiResponse["default"];
|
|
440
|
-
return this.apiClient.callApi('/api/volumes/v4.0/config/volume-groups/{extId}/$actions/detach-iscsi-client', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
441
|
-
}
|
|
167
|
+
});
|
|
168
|
+
const headerParams = {
|
|
169
|
+
...headersToInclude
|
|
170
|
+
};
|
|
171
|
+
const formParams = {};
|
|
172
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
173
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
174
|
+
const contentTypes = ['application/json'];
|
|
175
|
+
const accepts = ['application/json'];
|
|
176
|
+
const returnType = _AttachIscsiClientApiResponse.default;
|
|
177
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/volume-groups/{extId}/$actions/attach-iscsi-client', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
178
|
+
}
|
|
442
179
|
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
postBody = body.toJson();
|
|
459
|
-
} else {
|
|
460
|
-
postBody = body;
|
|
461
|
-
}
|
|
462
|
-
// verify the required parameter 'extId' is set
|
|
463
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
464
|
-
throw new Error("Missing the required parameter 'extId' when calling detachVm");
|
|
465
|
-
}
|
|
466
|
-
// verify the required parameter 'body' is set
|
|
467
|
-
if (typeof postBody === 'undefined' || postBody === null) {
|
|
468
|
-
throw new Error("Invalid body when calling detachVm");
|
|
469
|
-
}
|
|
470
|
-
var pathParams = {
|
|
471
|
-
'extId': extId
|
|
472
|
-
};
|
|
473
|
-
var queryParams = {};
|
|
474
|
-
var headersToInclude = {};
|
|
475
|
-
Object.keys(argMap).forEach(function (header) {
|
|
476
|
-
if (!_classPrivateFieldGet(_headersToSkip, _this9).has(header.toLowerCase())) {
|
|
477
|
-
headersToInclude[header] = argMap[header];
|
|
478
|
-
}
|
|
479
|
-
});
|
|
480
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
481
|
-
var formParams = {};
|
|
482
|
-
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
483
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
484
|
-
var contentTypes = ['application/json'];
|
|
485
|
-
var accepts = ['application/json'];
|
|
486
|
-
var returnType = _DetachVmApiResponse["default"];
|
|
487
|
-
return this.apiClient.callApi('/api/volumes/v4.0/config/volume-groups/{extId}/$actions/detach-vm', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
180
|
+
/**
|
|
181
|
+
* Attach an NVMe-TCP client to the given Volume Group
|
|
182
|
+
* Attaches a NVMe-TCP client/initiator to a Volume Group identified by its external identifier.
|
|
183
|
+
* @param { Partial<NvmfClient> } body specification
|
|
184
|
+
* @param { String } extId The external identifier of a Volume Group.
|
|
185
|
+
* @param {Object} args Additional Arguments
|
|
186
|
+
* @return {Promise<AttachNvmfClientApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link AttachNvmfClientApiResponse } and HTTP response
|
|
187
|
+
*/
|
|
188
|
+
attachNvmfClient(extId, body, ...args) {
|
|
189
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
190
|
+
let postBody = null;
|
|
191
|
+
if (body instanceof _NvmfClient.default && typeof body.toJson === 'function') {
|
|
192
|
+
postBody = body.toJson();
|
|
193
|
+
} else {
|
|
194
|
+
postBody = body;
|
|
488
195
|
}
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
postBody = body.toJson();
|
|
506
|
-
} else {
|
|
507
|
-
postBody = body;
|
|
196
|
+
// verify the required parameter 'extId' is set
|
|
197
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
198
|
+
throw new Error("Missing the required parameter 'extId' when calling attachNvmfClient");
|
|
199
|
+
}
|
|
200
|
+
// verify the required parameter 'body' is set
|
|
201
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
202
|
+
throw new Error("Invalid body when calling attachNvmfClient");
|
|
203
|
+
}
|
|
204
|
+
const pathParams = {
|
|
205
|
+
'extId': extId
|
|
206
|
+
};
|
|
207
|
+
const queryParams = {};
|
|
208
|
+
let headersToInclude = {};
|
|
209
|
+
Object.keys(argMap).forEach(header => {
|
|
210
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
211
|
+
headersToInclude[header] = argMap[header];
|
|
508
212
|
}
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
213
|
+
});
|
|
214
|
+
const headerParams = {
|
|
215
|
+
...headersToInclude
|
|
216
|
+
};
|
|
217
|
+
const formParams = {};
|
|
218
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
219
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
220
|
+
const contentTypes = ['application/json'];
|
|
221
|
+
const accepts = ['application/json'];
|
|
222
|
+
const returnType = _AttachNvmfClientApiResponse.default;
|
|
223
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/volume-groups/{extId}/$actions/attach-nvmf-client', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Attach an AHV VM to the given Volume Group
|
|
228
|
+
* Attaches VM to a Volume Group identified by {extId}.
|
|
229
|
+
* @param { Required<Pick<VmAttachment, 'extId'>> & Partial<VmAttachment> } body specification
|
|
230
|
+
* @param { String } extId The external identifier of a Volume Group.
|
|
231
|
+
* @param {Object} args Additional Arguments
|
|
232
|
+
* @return {Promise<AttachVmApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link AttachVmApiResponse } and HTTP response
|
|
233
|
+
*/
|
|
234
|
+
attachVm(extId, body, ...args) {
|
|
235
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
236
|
+
let postBody = null;
|
|
237
|
+
if (body instanceof _VmAttachment.default && typeof body.toJson === 'function') {
|
|
238
|
+
postBody = body.toJson();
|
|
239
|
+
} else {
|
|
240
|
+
postBody = body;
|
|
241
|
+
}
|
|
242
|
+
// verify the required parameter 'extId' is set
|
|
243
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
244
|
+
throw new Error("Missing the required parameter 'extId' when calling attachVm");
|
|
245
|
+
}
|
|
246
|
+
// verify the required parameter 'body' is set
|
|
247
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
248
|
+
throw new Error("Invalid body when calling attachVm");
|
|
249
|
+
}
|
|
250
|
+
const pathParams = {
|
|
251
|
+
'extId': extId
|
|
252
|
+
};
|
|
253
|
+
const queryParams = {};
|
|
254
|
+
let headersToInclude = {};
|
|
255
|
+
Object.keys(argMap).forEach(header => {
|
|
256
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
257
|
+
headersToInclude[header] = argMap[header];
|
|
512
258
|
}
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
259
|
+
});
|
|
260
|
+
const headerParams = {
|
|
261
|
+
...headersToInclude
|
|
262
|
+
};
|
|
263
|
+
const formParams = {};
|
|
264
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
265
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
266
|
+
const contentTypes = ['application/json'];
|
|
267
|
+
const accepts = ['application/json'];
|
|
268
|
+
const returnType = _AttachVmApiResponse.default;
|
|
269
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/volume-groups/{extId}/$actions/attach-vm', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Creates a new Volume Disk
|
|
274
|
+
* Creates a new Volume Disk.
|
|
275
|
+
* @param { Partial<VolumeDisk> } body specification
|
|
276
|
+
* @param { String } volumeGroupExtId The external identifier of a Volume Group.
|
|
277
|
+
* @param {Object} args Additional Arguments
|
|
278
|
+
* @return {Promise<CreateVolumeDiskApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateVolumeDiskApiResponse } and HTTP response
|
|
279
|
+
*/
|
|
280
|
+
createVolumeDisk(volumeGroupExtId, body, ...args) {
|
|
281
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
282
|
+
let postBody = null;
|
|
283
|
+
if (body instanceof _VolumeDisk.default && typeof body.toJson === 'function') {
|
|
284
|
+
postBody = body.toJson();
|
|
285
|
+
} else {
|
|
286
|
+
postBody = body;
|
|
287
|
+
}
|
|
288
|
+
// verify the required parameter 'volumeGroupExtId' is set
|
|
289
|
+
if (typeof volumeGroupExtId === 'undefined' || volumeGroupExtId === null) {
|
|
290
|
+
throw new Error("Missing the required parameter 'volumeGroupExtId' when calling createVolumeDisk");
|
|
291
|
+
}
|
|
292
|
+
// verify the required parameter 'body' is set
|
|
293
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
294
|
+
throw new Error("Invalid body when calling createVolumeDisk");
|
|
295
|
+
}
|
|
296
|
+
const pathParams = {
|
|
297
|
+
'volumeGroupExtId': volumeGroupExtId
|
|
298
|
+
};
|
|
299
|
+
const queryParams = {};
|
|
300
|
+
let headersToInclude = {};
|
|
301
|
+
Object.keys(argMap).forEach(header => {
|
|
302
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
303
|
+
headersToInclude[header] = argMap[header];
|
|
516
304
|
}
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
305
|
+
});
|
|
306
|
+
const headerParams = {
|
|
307
|
+
...headersToInclude
|
|
308
|
+
};
|
|
309
|
+
const formParams = {};
|
|
310
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
311
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
312
|
+
const contentTypes = ['application/json'];
|
|
313
|
+
const accepts = ['application/json'];
|
|
314
|
+
const returnType = _CreateVolumeDiskApiResponse.default;
|
|
315
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/volume-groups/{volumeGroupExtId}/disks', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Creates a new Volume Group
|
|
320
|
+
* Creates a new Volume Group.
|
|
321
|
+
* @param { Partial<VolumeGroup> } body specification
|
|
322
|
+
* @param {Object} args Additional Arguments
|
|
323
|
+
* @return {Promise<CreateVolumeGroupApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateVolumeGroupApiResponse } and HTTP response
|
|
324
|
+
*/
|
|
325
|
+
createVolumeGroup(body, ...args) {
|
|
326
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
327
|
+
let postBody = null;
|
|
328
|
+
if (body instanceof _VolumeGroup.default && typeof body.toJson === 'function') {
|
|
329
|
+
postBody = body.toJson();
|
|
330
|
+
} else {
|
|
331
|
+
postBody = body;
|
|
535
332
|
}
|
|
333
|
+
// verify the required parameter 'body' is set
|
|
334
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
335
|
+
throw new Error("Invalid body when calling createVolumeGroup");
|
|
336
|
+
}
|
|
337
|
+
const pathParams = {};
|
|
338
|
+
const queryParams = {};
|
|
339
|
+
let headersToInclude = {};
|
|
340
|
+
Object.keys(argMap).forEach(header => {
|
|
341
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
342
|
+
headersToInclude[header] = argMap[header];
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
const headerParams = {
|
|
346
|
+
...headersToInclude
|
|
347
|
+
};
|
|
348
|
+
const formParams = {};
|
|
349
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
350
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
351
|
+
const contentTypes = ['application/json'];
|
|
352
|
+
const accepts = ['application/json'];
|
|
353
|
+
const returnType = _CreateVolumeGroupApiResponse.default;
|
|
354
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/volume-groups', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
355
|
+
}
|
|
536
356
|
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
357
|
+
/**
|
|
358
|
+
* Delete a Volume Disk
|
|
359
|
+
* Deletes a Volume Disk identified by {extId} in the Volume Group identified by {volumeGroupExtId}.
|
|
360
|
+
* @param { String } volumeGroupExtId The external identifier of a Volume Group.
|
|
361
|
+
* @param { String } extId The external identifier of a Volume Disk.
|
|
362
|
+
* @param {Object} args Additional Arguments
|
|
363
|
+
* @return {Promise<DeleteVolumeDiskApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteVolumeDiskApiResponse } and HTTP response
|
|
364
|
+
*/
|
|
365
|
+
deleteVolumeDiskById(volumeGroupExtId, extId, ...args) {
|
|
366
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
367
|
+
const postBody = null;
|
|
368
|
+
// verify the required parameter 'volumeGroupExtId' is set
|
|
369
|
+
if (typeof volumeGroupExtId === 'undefined' || volumeGroupExtId === null) {
|
|
370
|
+
throw new Error("Missing the required parameter 'volumeGroupExtId' when calling deleteVolumeDiskById");
|
|
371
|
+
}
|
|
372
|
+
// verify the required parameter 'extId' is set
|
|
373
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
374
|
+
throw new Error("Missing the required parameter 'extId' when calling deleteVolumeDiskById");
|
|
375
|
+
}
|
|
376
|
+
const pathParams = {
|
|
377
|
+
'volumeGroupExtId': volumeGroupExtId,
|
|
378
|
+
'extId': extId
|
|
379
|
+
};
|
|
380
|
+
const queryParams = {};
|
|
381
|
+
let headersToInclude = {};
|
|
382
|
+
Object.keys(argMap).forEach(header => {
|
|
383
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
384
|
+
headersToInclude[header] = argMap[header];
|
|
554
385
|
}
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
386
|
+
});
|
|
387
|
+
const headerParams = {
|
|
388
|
+
...headersToInclude
|
|
389
|
+
};
|
|
390
|
+
const formParams = {};
|
|
391
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
392
|
+
const contentTypes = [];
|
|
393
|
+
const accepts = ['application/json'];
|
|
394
|
+
const returnType = _DeleteVolumeDiskApiResponse.default;
|
|
395
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/volume-groups/{volumeGroupExtId}/disks/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Delete the Volume Group
|
|
400
|
+
* Delete the Volume Group identified by {extId}.
|
|
401
|
+
* @param { String } extId The external identifier of a Volume Group.
|
|
402
|
+
* @param {Object} args Additional Arguments
|
|
403
|
+
* @return {Promise<DeleteVolumeGroupApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteVolumeGroupApiResponse } and HTTP response
|
|
404
|
+
*/
|
|
405
|
+
deleteVolumeGroupById(extId, ...args) {
|
|
406
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
407
|
+
const postBody = null;
|
|
408
|
+
// verify the required parameter 'extId' is set
|
|
409
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
410
|
+
throw new Error("Missing the required parameter 'extId' when calling deleteVolumeGroupById");
|
|
411
|
+
}
|
|
412
|
+
const pathParams = {
|
|
413
|
+
'extId': extId
|
|
414
|
+
};
|
|
415
|
+
const queryParams = {};
|
|
416
|
+
let headersToInclude = {};
|
|
417
|
+
Object.keys(argMap).forEach(header => {
|
|
418
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
419
|
+
headersToInclude[header] = argMap[header];
|
|
558
420
|
}
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
421
|
+
});
|
|
422
|
+
const headerParams = {
|
|
423
|
+
...headersToInclude
|
|
424
|
+
};
|
|
425
|
+
const formParams = {};
|
|
426
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
427
|
+
const contentTypes = [];
|
|
428
|
+
const accepts = ['application/json'];
|
|
429
|
+
const returnType = _DeleteVolumeGroupApiResponse.default;
|
|
430
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/volume-groups/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Detach an iSCSi client from the given Volume Group
|
|
435
|
+
* Detaches iSCSI initiator identified by {extId} from a Volume Group identified by {volumeGroupExtId}.
|
|
436
|
+
* @param { Partial<IscsiClientAttachment> } body specification
|
|
437
|
+
* @param { String } extId The external identifier of a Volume Group.
|
|
438
|
+
* @param {Object} args Additional Arguments
|
|
439
|
+
* @return {Promise<DetachIscsiClientApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DetachIscsiClientApiResponse } and HTTP response
|
|
440
|
+
*/
|
|
441
|
+
detachIscsiClient(extId, body, ...args) {
|
|
442
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
443
|
+
let postBody = null;
|
|
444
|
+
if (body instanceof _IscsiClientAttachment.default && typeof body.toJson === 'function') {
|
|
445
|
+
postBody = body.toJson();
|
|
446
|
+
} else {
|
|
447
|
+
postBody = body;
|
|
448
|
+
}
|
|
449
|
+
// verify the required parameter 'extId' is set
|
|
450
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
451
|
+
throw new Error("Missing the required parameter 'extId' when calling detachIscsiClient");
|
|
577
452
|
}
|
|
453
|
+
// verify the required parameter 'body' is set
|
|
454
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
455
|
+
throw new Error("Invalid body when calling detachIscsiClient");
|
|
456
|
+
}
|
|
457
|
+
const pathParams = {
|
|
458
|
+
'extId': extId
|
|
459
|
+
};
|
|
460
|
+
const queryParams = {};
|
|
461
|
+
let headersToInclude = {};
|
|
462
|
+
Object.keys(argMap).forEach(header => {
|
|
463
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
464
|
+
headersToInclude[header] = argMap[header];
|
|
465
|
+
}
|
|
466
|
+
});
|
|
467
|
+
const headerParams = {
|
|
468
|
+
...headersToInclude
|
|
469
|
+
};
|
|
470
|
+
const formParams = {};
|
|
471
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
472
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
473
|
+
const contentTypes = ['application/json'];
|
|
474
|
+
const accepts = ['application/json'];
|
|
475
|
+
const returnType = _DetachIscsiClientApiResponse.default;
|
|
476
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/volume-groups/{extId}/$actions/detach-iscsi-client', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
477
|
+
}
|
|
578
478
|
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
if (typeof volumeGroupExtId === 'undefined' || volumeGroupExtId === null) {
|
|
612
|
-
throw new Error("Missing the required parameter 'volumeGroupExtId' when calling getVolumeDiskStats");
|
|
479
|
+
/**
|
|
480
|
+
* Detach a NVMe-TCP client from the given Volume Group
|
|
481
|
+
* Detaches a NVMe-TCP client/initiator from a Volume Group identified by its external identifier.
|
|
482
|
+
* @param { Partial<NvmfClient> } body specification
|
|
483
|
+
* @param { String } extId The external identifier of a Volume Group.
|
|
484
|
+
* @param {Object} args Additional Arguments
|
|
485
|
+
* @return {Promise<DetachNvmfClientApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DetachNvmfClientApiResponse } and HTTP response
|
|
486
|
+
*/
|
|
487
|
+
detachNvmfClient(extId, body, ...args) {
|
|
488
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
489
|
+
let postBody = null;
|
|
490
|
+
if (body instanceof _NvmfClient.default && typeof body.toJson === 'function') {
|
|
491
|
+
postBody = body.toJson();
|
|
492
|
+
} else {
|
|
493
|
+
postBody = body;
|
|
494
|
+
}
|
|
495
|
+
// verify the required parameter 'extId' is set
|
|
496
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
497
|
+
throw new Error("Missing the required parameter 'extId' when calling detachNvmfClient");
|
|
498
|
+
}
|
|
499
|
+
// verify the required parameter 'body' is set
|
|
500
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
501
|
+
throw new Error("Invalid body when calling detachNvmfClient");
|
|
502
|
+
}
|
|
503
|
+
const pathParams = {
|
|
504
|
+
'extId': extId
|
|
505
|
+
};
|
|
506
|
+
const queryParams = {};
|
|
507
|
+
let headersToInclude = {};
|
|
508
|
+
Object.keys(argMap).forEach(header => {
|
|
509
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
510
|
+
headersToInclude[header] = argMap[header];
|
|
613
511
|
}
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
512
|
+
});
|
|
513
|
+
const headerParams = {
|
|
514
|
+
...headersToInclude
|
|
515
|
+
};
|
|
516
|
+
const formParams = {};
|
|
517
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
518
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
519
|
+
const contentTypes = ['application/json'];
|
|
520
|
+
const accepts = ['application/json'];
|
|
521
|
+
const returnType = _DetachNvmfClientApiResponse.default;
|
|
522
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/volume-groups/{extId}/$actions/detach-nvmf-client', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Detach an AHV VM from the given Volume Group
|
|
527
|
+
* Detaches VM identified by {extId} from a Volume Group identified by {volumeGroupExtId}.
|
|
528
|
+
* @param { Required<Pick<VmAttachment, 'extId'>> & Partial<VmAttachment> } body specification
|
|
529
|
+
* @param { String } extId The external identifier of a Volume Group.
|
|
530
|
+
* @param {Object} args Additional Arguments
|
|
531
|
+
* @return {Promise<DetachVmApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DetachVmApiResponse } and HTTP response
|
|
532
|
+
*/
|
|
533
|
+
detachVm(extId, body, ...args) {
|
|
534
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
535
|
+
let postBody = null;
|
|
536
|
+
if (body instanceof _VmAttachment.default && typeof body.toJson === 'function') {
|
|
537
|
+
postBody = body.toJson();
|
|
538
|
+
} else {
|
|
539
|
+
postBody = body;
|
|
540
|
+
}
|
|
541
|
+
// verify the required parameter 'extId' is set
|
|
542
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
543
|
+
throw new Error("Missing the required parameter 'extId' when calling detachVm");
|
|
544
|
+
}
|
|
545
|
+
// verify the required parameter 'body' is set
|
|
546
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
547
|
+
throw new Error("Invalid body when calling detachVm");
|
|
548
|
+
}
|
|
549
|
+
const pathParams = {
|
|
550
|
+
'extId': extId
|
|
551
|
+
};
|
|
552
|
+
const queryParams = {};
|
|
553
|
+
let headersToInclude = {};
|
|
554
|
+
Object.keys(argMap).forEach(header => {
|
|
555
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
556
|
+
headersToInclude[header] = argMap[header];
|
|
617
557
|
}
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
558
|
+
});
|
|
559
|
+
const headerParams = {
|
|
560
|
+
...headersToInclude
|
|
561
|
+
};
|
|
562
|
+
const formParams = {};
|
|
563
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
564
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
565
|
+
const contentTypes = ['application/json'];
|
|
566
|
+
const accepts = ['application/json'];
|
|
567
|
+
const returnType = _DetachVmApiResponse.default;
|
|
568
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/volume-groups/{extId}/$actions/detach-vm', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Disassociate category from a Volume Group
|
|
573
|
+
* Disassociates a category from a Volume Group identified by {extId}.
|
|
574
|
+
* @param { Partial<CategoryEntityReferences> } body specification
|
|
575
|
+
* @param { String } extId The external identifier of a Volume Group.
|
|
576
|
+
* @param {Object} args Additional Arguments
|
|
577
|
+
* @return {Promise<DisassociateCategoryApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DisassociateCategoryApiResponse } and HTTP response
|
|
578
|
+
*/
|
|
579
|
+
disassociateCategory(extId, body, ...args) {
|
|
580
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
581
|
+
let postBody = null;
|
|
582
|
+
if (body instanceof _CategoryEntityReferences.default && typeof body.toJson === 'function') {
|
|
583
|
+
postBody = body.toJson();
|
|
584
|
+
} else {
|
|
585
|
+
postBody = body;
|
|
586
|
+
}
|
|
587
|
+
// verify the required parameter 'extId' is set
|
|
588
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
589
|
+
throw new Error("Missing the required parameter 'extId' when calling disassociateCategory");
|
|
590
|
+
}
|
|
591
|
+
// verify the required parameter 'body' is set
|
|
592
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
593
|
+
throw new Error("Invalid body when calling disassociateCategory");
|
|
594
|
+
}
|
|
595
|
+
const pathParams = {
|
|
596
|
+
'extId': extId
|
|
597
|
+
};
|
|
598
|
+
const queryParams = {};
|
|
599
|
+
let headersToInclude = {};
|
|
600
|
+
Object.keys(argMap).forEach(header => {
|
|
601
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
602
|
+
headersToInclude[header] = argMap[header];
|
|
621
603
|
}
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
604
|
+
});
|
|
605
|
+
const headerParams = {
|
|
606
|
+
...headersToInclude
|
|
607
|
+
};
|
|
608
|
+
const formParams = {};
|
|
609
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
610
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
611
|
+
const contentTypes = ['application/json'];
|
|
612
|
+
const accepts = ['application/json'];
|
|
613
|
+
const returnType = _DisassociateCategoryApiResponse.default;
|
|
614
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/volume-groups/{extId}/$actions/disassociate-category', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* Get the details of a Volume Disk
|
|
619
|
+
* Query the Volume Disk identified by {extId} in the Volume Group identified by {volumeGroupExtId}.
|
|
620
|
+
* @param { String } volumeGroupExtId The external identifier of a Volume Group.
|
|
621
|
+
* @param { String } extId The external identifier of a Volume Disk.
|
|
622
|
+
* @param {Object} args Additional Arguments
|
|
623
|
+
* @return {Promise<GetVolumeDiskApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetVolumeDiskApiResponse } and HTTP response
|
|
624
|
+
*/
|
|
625
|
+
getVolumeDiskById(volumeGroupExtId, extId, ...args) {
|
|
626
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
627
|
+
const postBody = null;
|
|
628
|
+
// verify the required parameter 'volumeGroupExtId' is set
|
|
629
|
+
if (typeof volumeGroupExtId === 'undefined' || volumeGroupExtId === null) {
|
|
630
|
+
throw new Error("Missing the required parameter 'volumeGroupExtId' when calling getVolumeDiskById");
|
|
631
|
+
}
|
|
632
|
+
// verify the required parameter 'extId' is set
|
|
633
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
634
|
+
throw new Error("Missing the required parameter 'extId' when calling getVolumeDiskById");
|
|
635
|
+
}
|
|
636
|
+
const pathParams = {
|
|
637
|
+
'volumeGroupExtId': volumeGroupExtId,
|
|
638
|
+
'extId': extId
|
|
639
|
+
};
|
|
640
|
+
const queryParams = {};
|
|
641
|
+
let headersToInclude = {};
|
|
642
|
+
Object.keys(argMap).forEach(header => {
|
|
643
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
644
|
+
headersToInclude[header] = argMap[header];
|
|
625
645
|
}
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
646
|
+
});
|
|
647
|
+
const headerParams = {
|
|
648
|
+
...headersToInclude
|
|
649
|
+
};
|
|
650
|
+
const formParams = {};
|
|
651
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
652
|
+
const contentTypes = [];
|
|
653
|
+
const accepts = ['application/json'];
|
|
654
|
+
const returnType = _GetVolumeDiskApiResponse.default;
|
|
655
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/volume-groups/{volumeGroupExtId}/disks/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* Get statistics for a Volume Disk
|
|
660
|
+
* Query the Volume Disk stats identified by {diskExtId}.
|
|
661
|
+
* @param { String } volumeGroupExtId The external identifier of a Volume Group.
|
|
662
|
+
* @param { String } extId The external identifier of a Volume Disk.
|
|
663
|
+
* @param { Date } $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
|
|
664
|
+
* @param { Date } $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
|
|
665
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
666
|
+
* @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.
|
|
667
|
+
* @param { DownSamplingOperator } opts.$statType
|
|
668
|
+
* @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.
|
|
669
|
+
* @param {Object} args Additional Arguments
|
|
670
|
+
* @return {Promise<GetVolumeDiskStatsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetVolumeDiskStatsApiResponse } and HTTP response
|
|
671
|
+
*/
|
|
672
|
+
getVolumeDiskStats(volumeGroupExtId, extId, $startTime, $endTime, opts, ...args) {
|
|
673
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
674
|
+
opts = opts || {};
|
|
675
|
+
const postBody = null;
|
|
676
|
+
// verify the required parameter 'volumeGroupExtId' is set
|
|
677
|
+
if (typeof volumeGroupExtId === 'undefined' || volumeGroupExtId === null) {
|
|
678
|
+
throw new Error("Missing the required parameter 'volumeGroupExtId' when calling getVolumeDiskStats");
|
|
679
|
+
}
|
|
680
|
+
// verify the required parameter 'extId' is set
|
|
681
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
682
|
+
throw new Error("Missing the required parameter 'extId' when calling getVolumeDiskStats");
|
|
683
|
+
}
|
|
684
|
+
// verify the required parameter '$startTime' is set
|
|
685
|
+
if (typeof $startTime === 'undefined' || $startTime === null) {
|
|
686
|
+
throw new Error("Missing the required parameter '$startTime' when calling getVolumeDiskStats");
|
|
687
|
+
}
|
|
688
|
+
// verify the required parameter '$endTime' is set
|
|
689
|
+
if (typeof $endTime === 'undefined' || $endTime === null) {
|
|
690
|
+
throw new Error("Missing the required parameter '$endTime' when calling getVolumeDiskStats");
|
|
691
|
+
}
|
|
692
|
+
const pathParams = {
|
|
693
|
+
'volumeGroupExtId': volumeGroupExtId,
|
|
694
|
+
'extId': extId
|
|
695
|
+
};
|
|
696
|
+
const queryParams = {
|
|
697
|
+
...{
|
|
631
698
|
'$startTime': $startTime
|
|
632
|
-
}
|
|
699
|
+
},
|
|
700
|
+
...{
|
|
633
701
|
'$endTime': $endTime
|
|
634
|
-
}
|
|
702
|
+
},
|
|
703
|
+
...(opts.hasOwnProperty('$samplingInterval') ? {
|
|
635
704
|
'$samplingInterval': opts['$samplingInterval']
|
|
636
|
-
} : {}),
|
|
705
|
+
} : {}),
|
|
706
|
+
...(opts.hasOwnProperty('$statType') ? {
|
|
637
707
|
'$statType': opts['$statType']
|
|
638
|
-
} : {}),
|
|
708
|
+
} : {}),
|
|
709
|
+
...(opts.hasOwnProperty('$select') ? {
|
|
639
710
|
'$select': opts['$select']
|
|
640
|
-
} : {})
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
});
|
|
647
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
648
|
-
var formParams = {};
|
|
649
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
650
|
-
var contentTypes = [];
|
|
651
|
-
var accepts = ['application/json'];
|
|
652
|
-
var returnType = _GetVolumeDiskStatsApiResponse["default"];
|
|
653
|
-
return this.apiClient.callApi('/api/volumes/v4.0/stats/volume-groups/{volumeGroupExtId}/disks/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
/**
|
|
657
|
-
* Get a Volume Group
|
|
658
|
-
* Query the Volume Group identified by {extId}.
|
|
659
|
-
* @param { String } extId The external identifier of a Volume Group.
|
|
660
|
-
* @param {Object} args Additional Arguments
|
|
661
|
-
* @return {Promise<GetVolumeGroupApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetVolumeGroupApiResponse } and HTTP response
|
|
662
|
-
*/
|
|
663
|
-
}, {
|
|
664
|
-
key: "getVolumeGroupById",
|
|
665
|
-
value: function getVolumeGroupById(extId) {
|
|
666
|
-
var _this13 = this;
|
|
667
|
-
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
668
|
-
var postBody = null;
|
|
669
|
-
// verify the required parameter 'extId' is set
|
|
670
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
671
|
-
throw new Error("Missing the required parameter 'extId' when calling getVolumeGroupById");
|
|
711
|
+
} : {})
|
|
712
|
+
};
|
|
713
|
+
let headersToInclude = {};
|
|
714
|
+
Object.keys(argMap).forEach(header => {
|
|
715
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
716
|
+
headersToInclude[header] = argMap[header];
|
|
672
717
|
}
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
var formParams = {};
|
|
685
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
686
|
-
var contentTypes = [];
|
|
687
|
-
var accepts = ['application/json'];
|
|
688
|
-
var returnType = _GetVolumeGroupApiResponse["default"];
|
|
689
|
-
return this.apiClient.callApi('/api/volumes/v4.0/config/volume-groups/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
690
|
-
}
|
|
718
|
+
});
|
|
719
|
+
const headerParams = {
|
|
720
|
+
...headersToInclude
|
|
721
|
+
};
|
|
722
|
+
const formParams = {};
|
|
723
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
724
|
+
const contentTypes = [];
|
|
725
|
+
const accepts = ['application/json'];
|
|
726
|
+
const returnType = _GetVolumeDiskStatsApiResponse.default;
|
|
727
|
+
return this.apiClient.callApi('/api/volumes/v4.2/stats/volume-groups/{volumeGroupExtId}/disks/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
728
|
+
}
|
|
691
729
|
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
throw new Error("Missing the required parameter 'volumeGroupExtId' when calling getVolumeGroupMetadataById");
|
|
709
|
-
}
|
|
710
|
-
var pathParams = {
|
|
711
|
-
'volumeGroupExtId': volumeGroupExtId
|
|
712
|
-
};
|
|
713
|
-
var queryParams = {};
|
|
714
|
-
var headersToInclude = {};
|
|
715
|
-
Object.keys(argMap).forEach(function (header) {
|
|
716
|
-
if (!_classPrivateFieldGet(_headersToSkip, _this14).has(header.toLowerCase())) {
|
|
717
|
-
headersToInclude[header] = argMap[header];
|
|
718
|
-
}
|
|
719
|
-
});
|
|
720
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
721
|
-
var formParams = {};
|
|
722
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
723
|
-
var contentTypes = [];
|
|
724
|
-
var accepts = ['application/json'];
|
|
725
|
-
var returnType = _GetVolumeGroupMetadataApiResponse["default"];
|
|
726
|
-
return this.apiClient.callApi('/api/volumes/v4.0/config/volume-groups/{volumeGroupExtId}/metadata', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
730
|
+
/**
|
|
731
|
+
* Get a Volume Group
|
|
732
|
+
* Query the Volume Group identified by {extId}.
|
|
733
|
+
* @param { String } extId The external identifier of a Volume Group.
|
|
734
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
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.
|
|
736
|
+
* @param {Object} args Additional Arguments
|
|
737
|
+
* @return {Promise<GetVolumeGroupApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetVolumeGroupApiResponse } and HTTP response
|
|
738
|
+
*/
|
|
739
|
+
getVolumeGroupById(extId, opts, ...args) {
|
|
740
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
741
|
+
opts = opts || {};
|
|
742
|
+
const postBody = null;
|
|
743
|
+
// verify the required parameter 'extId' is set
|
|
744
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
745
|
+
throw new Error("Missing the required parameter 'extId' when calling getVolumeGroupById");
|
|
727
746
|
}
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
- controllerAvgReadIOLatencyUsecs
|
|
741
|
-
- controllerAvgWriteIOLatencyUsecs
|
|
742
|
-
- controllerIOBandwidthKBps
|
|
743
|
-
- controllerNumIOPS
|
|
744
|
-
- controllerNumReadIOPS
|
|
745
|
-
- controllerNumWriteIOPS
|
|
746
|
-
- controllerReadIOBandwidthKBps
|
|
747
|
-
- controllerUserBytes
|
|
748
|
-
- controllerWriteIOBandwidthKBps
|
|
749
|
-
* @param {Object} args Additional Arguments
|
|
750
|
-
* @return {Promise<GetVolumeGroupStatsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetVolumeGroupStatsApiResponse } and HTTP response
|
|
751
|
-
*/
|
|
752
|
-
}, {
|
|
753
|
-
key: "getVolumeGroupStats",
|
|
754
|
-
value: function getVolumeGroupStats(extId, $startTime, $endTime, opts) {
|
|
755
|
-
var _this15 = this;
|
|
756
|
-
var argMap = (arguments.length <= 4 ? 0 : arguments.length - 4) > 0 ? arguments.length <= 4 ? undefined : arguments[4] : {};
|
|
757
|
-
opts = opts || {};
|
|
758
|
-
var postBody = null;
|
|
759
|
-
// verify the required parameter 'extId' is set
|
|
760
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
761
|
-
throw new Error("Missing the required parameter 'extId' when calling getVolumeGroupStats");
|
|
762
|
-
}
|
|
763
|
-
// verify the required parameter '$startTime' is set
|
|
764
|
-
if (typeof $startTime === 'undefined' || $startTime === null) {
|
|
765
|
-
throw new Error("Missing the required parameter '$startTime' when calling getVolumeGroupStats");
|
|
747
|
+
const pathParams = {
|
|
748
|
+
'extId': extId
|
|
749
|
+
};
|
|
750
|
+
const queryParams = {
|
|
751
|
+
...(opts.hasOwnProperty('$expand') ? {
|
|
752
|
+
'$expand': opts['$expand']
|
|
753
|
+
} : {})
|
|
754
|
+
};
|
|
755
|
+
let headersToInclude = {};
|
|
756
|
+
Object.keys(argMap).forEach(header => {
|
|
757
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
758
|
+
headersToInclude[header] = argMap[header];
|
|
766
759
|
}
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
760
|
+
});
|
|
761
|
+
const headerParams = {
|
|
762
|
+
...headersToInclude
|
|
763
|
+
};
|
|
764
|
+
const formParams = {};
|
|
765
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
766
|
+
const contentTypes = [];
|
|
767
|
+
const accepts = ['application/json'];
|
|
768
|
+
const returnType = _GetVolumeGroupApiResponse.default;
|
|
769
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/volume-groups/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* Fetch metadata information associated with a Volume Group.
|
|
774
|
+
* Query for metadata information which is associated with the Volume Group identified by {extId}.
|
|
775
|
+
* @deprecated This API has been deprecated.
|
|
776
|
+
* @param { String } volumeGroupExtId The external identifier of a Volume Group.
|
|
777
|
+
* @param {Object} args Additional Arguments
|
|
778
|
+
* @return {Promise<GetVolumeGroupMetadataApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetVolumeGroupMetadataApiResponse } and HTTP response
|
|
779
|
+
*/
|
|
780
|
+
getVolumeGroupMetadataById(volumeGroupExtId, ...args) {
|
|
781
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
782
|
+
const postBody = null;
|
|
783
|
+
// verify the required parameter 'volumeGroupExtId' is set
|
|
784
|
+
if (typeof volumeGroupExtId === 'undefined' || volumeGroupExtId === null) {
|
|
785
|
+
throw new Error("Missing the required parameter 'volumeGroupExtId' when calling getVolumeGroupMetadataById");
|
|
786
|
+
}
|
|
787
|
+
const pathParams = {
|
|
788
|
+
'volumeGroupExtId': volumeGroupExtId
|
|
789
|
+
};
|
|
790
|
+
const queryParams = {};
|
|
791
|
+
let headersToInclude = {};
|
|
792
|
+
Object.keys(argMap).forEach(header => {
|
|
793
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
794
|
+
headersToInclude[header] = argMap[header];
|
|
770
795
|
}
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
796
|
+
});
|
|
797
|
+
const headerParams = {
|
|
798
|
+
...headersToInclude
|
|
799
|
+
};
|
|
800
|
+
const formParams = {};
|
|
801
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
802
|
+
const contentTypes = [];
|
|
803
|
+
const accepts = ['application/json'];
|
|
804
|
+
const returnType = _GetVolumeGroupMetadataApiResponse.default;
|
|
805
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/volume-groups/{volumeGroupExtId}/metadata', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* Get statistics for a Volume Group
|
|
810
|
+
* Query the Volume Group stats identified by {extId}.
|
|
811
|
+
* @param { String } extId The external identifier of a Volume Group.
|
|
812
|
+
* @param { Date } $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
|
|
813
|
+
* @param { Date } $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
|
|
814
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
815
|
+
* @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.
|
|
816
|
+
* @param { DownSamplingOperator } opts.$statType
|
|
817
|
+
* @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.
|
|
818
|
+
* @param {Object} args Additional Arguments
|
|
819
|
+
* @return {Promise<GetVolumeGroupStatsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetVolumeGroupStatsApiResponse } and HTTP response
|
|
820
|
+
*/
|
|
821
|
+
getVolumeGroupStats(extId, $startTime, $endTime, opts, ...args) {
|
|
822
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
823
|
+
opts = opts || {};
|
|
824
|
+
const postBody = null;
|
|
825
|
+
// verify the required parameter 'extId' is set
|
|
826
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
827
|
+
throw new Error("Missing the required parameter 'extId' when calling getVolumeGroupStats");
|
|
828
|
+
}
|
|
829
|
+
// verify the required parameter '$startTime' is set
|
|
830
|
+
if (typeof $startTime === 'undefined' || $startTime === null) {
|
|
831
|
+
throw new Error("Missing the required parameter '$startTime' when calling getVolumeGroupStats");
|
|
832
|
+
}
|
|
833
|
+
// verify the required parameter '$endTime' is set
|
|
834
|
+
if (typeof $endTime === 'undefined' || $endTime === null) {
|
|
835
|
+
throw new Error("Missing the required parameter '$endTime' when calling getVolumeGroupStats");
|
|
836
|
+
}
|
|
837
|
+
const pathParams = {
|
|
838
|
+
'extId': extId
|
|
839
|
+
};
|
|
840
|
+
const queryParams = {
|
|
841
|
+
...{
|
|
775
842
|
'$startTime': $startTime
|
|
776
|
-
}
|
|
843
|
+
},
|
|
844
|
+
...{
|
|
777
845
|
'$endTime': $endTime
|
|
778
|
-
}
|
|
846
|
+
},
|
|
847
|
+
...(opts.hasOwnProperty('$samplingInterval') ? {
|
|
779
848
|
'$samplingInterval': opts['$samplingInterval']
|
|
780
|
-
} : {}),
|
|
849
|
+
} : {}),
|
|
850
|
+
...(opts.hasOwnProperty('$statType') ? {
|
|
781
851
|
'$statType': opts['$statType']
|
|
782
|
-
} : {}),
|
|
852
|
+
} : {}),
|
|
853
|
+
...(opts.hasOwnProperty('$select') ? {
|
|
783
854
|
'$select': opts['$select']
|
|
784
|
-
} : {})
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
});
|
|
791
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
792
|
-
var formParams = {};
|
|
793
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
794
|
-
var contentTypes = [];
|
|
795
|
-
var accepts = ['application/json'];
|
|
796
|
-
var returnType = _GetVolumeGroupStatsApiResponse["default"];
|
|
797
|
-
return this.apiClient.callApi('/api/volumes/v4.0/stats/volume-groups/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
798
|
-
}
|
|
799
|
-
|
|
800
|
-
/**
|
|
801
|
-
* List all the category details that are associated with the Volume Group
|
|
802
|
-
* Query the category details that are associated with the Volume Group identified by {volumeGroupExtId}.
|
|
803
|
-
* @deprecated This API has been deprecated.
|
|
804
|
-
* @param { String } volumeGroupExtId The external identifier of a Volume Group.
|
|
805
|
-
* @param {Object} opts Optional parameters defined for the operation
|
|
806
|
-
* @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.
|
|
807
|
-
* @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.
|
|
808
|
-
* @param {Object} args Additional Arguments
|
|
809
|
-
* @return {Promise<ListCategoryAssociationsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListCategoryAssociationsApiResponse } and HTTP response
|
|
810
|
-
*/
|
|
811
|
-
}, {
|
|
812
|
-
key: "listCategoryAssociationsByVolumeGroupId",
|
|
813
|
-
value: function listCategoryAssociationsByVolumeGroupId(volumeGroupExtId, opts) {
|
|
814
|
-
var _this16 = this;
|
|
815
|
-
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
816
|
-
opts = opts || {};
|
|
817
|
-
var postBody = null;
|
|
818
|
-
// verify the required parameter 'volumeGroupExtId' is set
|
|
819
|
-
if (typeof volumeGroupExtId === 'undefined' || volumeGroupExtId === null) {
|
|
820
|
-
throw new Error("Missing the required parameter 'volumeGroupExtId' when calling listCategoryAssociationsByVolumeGroupId");
|
|
855
|
+
} : {})
|
|
856
|
+
};
|
|
857
|
+
let headersToInclude = {};
|
|
858
|
+
Object.keys(argMap).forEach(header => {
|
|
859
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
860
|
+
headersToInclude[header] = argMap[header];
|
|
821
861
|
}
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
862
|
+
});
|
|
863
|
+
const headerParams = {
|
|
864
|
+
...headersToInclude
|
|
865
|
+
};
|
|
866
|
+
const formParams = {};
|
|
867
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
868
|
+
const contentTypes = [];
|
|
869
|
+
const accepts = ['application/json'];
|
|
870
|
+
const returnType = _GetVolumeGroupStatsApiResponse.default;
|
|
871
|
+
return this.apiClient.callApi('/api/volumes/v4.2/stats/volume-groups/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* List all the category details that are associated with the Volume Group
|
|
876
|
+
* Query the category details that are associated with the Volume Group identified by {volumeGroupExtId}.
|
|
877
|
+
* @deprecated This API has been deprecated.
|
|
878
|
+
* @param { String } volumeGroupExtId The external identifier of a Volume Group.
|
|
879
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
880
|
+
* @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.
|
|
881
|
+
* @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.
|
|
882
|
+
* @param {Object} args Additional Arguments
|
|
883
|
+
* @return {Promise<ListCategoryAssociationsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListCategoryAssociationsApiResponse } and HTTP response
|
|
884
|
+
*/
|
|
885
|
+
listCategoryAssociationsByVolumeGroupId(volumeGroupExtId, opts, ...args) {
|
|
886
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
887
|
+
opts = opts || {};
|
|
888
|
+
const postBody = null;
|
|
889
|
+
// verify the required parameter 'volumeGroupExtId' is set
|
|
890
|
+
if (typeof volumeGroupExtId === 'undefined' || volumeGroupExtId === null) {
|
|
891
|
+
throw new Error("Missing the required parameter 'volumeGroupExtId' when calling listCategoryAssociationsByVolumeGroupId");
|
|
892
|
+
}
|
|
893
|
+
const pathParams = {
|
|
894
|
+
'volumeGroupExtId': volumeGroupExtId
|
|
895
|
+
};
|
|
896
|
+
const queryParams = {
|
|
897
|
+
...(opts.hasOwnProperty('$page') ? {
|
|
826
898
|
'$page': opts['$page']
|
|
827
|
-
} : {}),
|
|
899
|
+
} : {}),
|
|
900
|
+
...(opts.hasOwnProperty('$limit') ? {
|
|
828
901
|
'$limit': opts['$limit']
|
|
829
|
-
} : {})
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
});
|
|
836
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
837
|
-
var formParams = {};
|
|
838
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
839
|
-
var contentTypes = [];
|
|
840
|
-
var accepts = ['application/json'];
|
|
841
|
-
var returnType = _ListCategoryAssociationsApiResponse["default"];
|
|
842
|
-
return this.apiClient.callApi('/api/volumes/v4.0/config/volume-groups/{volumeGroupExtId}/category-associations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
/**
|
|
846
|
-
* List all the iSCSI attachments associated with the given Volume Group
|
|
847
|
-
* Query the list of external iSCSI attachments for a Volume Group identified by {extId}.
|
|
848
|
-
* @deprecated This API has been deprecated.
|
|
849
|
-
* @param { String } volumeGroupExtId The external identifier of a Volume Group.
|
|
850
|
-
* @param {Object} opts Optional parameters defined for the operation
|
|
851
|
-
* @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.
|
|
852
|
-
* @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.
|
|
853
|
-
* @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>
|
|
854
|
-
* 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>
|
|
855
|
-
* The filter can be applied to the following fields:<br>
|
|
856
|
-
* - clusterReference<br>
|
|
857
|
-
* - extId
|
|
858
|
-
* @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>
|
|
859
|
-
* The orderby can be applied to the following fields:<br>
|
|
860
|
-
* - clusterReference<br>
|
|
861
|
-
* - createdTime<br>
|
|
862
|
-
* - extId
|
|
863
|
-
* @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.
|
|
864
|
-
- iscsiClient
|
|
865
|
-
* @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.
|
|
866
|
-
- clusterReference
|
|
867
|
-
- extId
|
|
868
|
-
* @param {Object} args Additional Arguments
|
|
869
|
-
* @return {Promise<ListExternalIscsiAttachmentsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListExternalIscsiAttachmentsApiResponse } and HTTP response
|
|
870
|
-
*/
|
|
871
|
-
}, {
|
|
872
|
-
key: "listExternalIscsiAttachmentsByVolumeGroupId",
|
|
873
|
-
value: function listExternalIscsiAttachmentsByVolumeGroupId(volumeGroupExtId, opts) {
|
|
874
|
-
var _this17 = this;
|
|
875
|
-
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
876
|
-
opts = opts || {};
|
|
877
|
-
var postBody = null;
|
|
878
|
-
// verify the required parameter 'volumeGroupExtId' is set
|
|
879
|
-
if (typeof volumeGroupExtId === 'undefined' || volumeGroupExtId === null) {
|
|
880
|
-
throw new Error("Missing the required parameter 'volumeGroupExtId' when calling listExternalIscsiAttachmentsByVolumeGroupId");
|
|
902
|
+
} : {})
|
|
903
|
+
};
|
|
904
|
+
let headersToInclude = {};
|
|
905
|
+
Object.keys(argMap).forEach(header => {
|
|
906
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
907
|
+
headersToInclude[header] = argMap[header];
|
|
881
908
|
}
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
909
|
+
});
|
|
910
|
+
const headerParams = {
|
|
911
|
+
...headersToInclude
|
|
912
|
+
};
|
|
913
|
+
const formParams = {};
|
|
914
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
915
|
+
const contentTypes = [];
|
|
916
|
+
const accepts = ['application/json'];
|
|
917
|
+
const returnType = _ListCategoryAssociationsApiResponse.default;
|
|
918
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/volume-groups/{volumeGroupExtId}/category-associations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* List all the iSCSI attachments associated with the given Volume Group
|
|
923
|
+
* Query the list of external iSCSI attachments for a Volume Group identified by {extId}.
|
|
924
|
+
* @deprecated This API has been deprecated.
|
|
925
|
+
* @param { String } volumeGroupExtId The external identifier of a Volume Group.
|
|
926
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
927
|
+
* @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.
|
|
928
|
+
* @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.
|
|
929
|
+
* @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>
|
|
930
|
+
* 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'.
|
|
931
|
+
* @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.
|
|
932
|
+
* @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.
|
|
933
|
+
* @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.
|
|
934
|
+
* @param {Object} args Additional Arguments
|
|
935
|
+
* @return {Promise<ListExternalIscsiAttachmentsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListExternalIscsiAttachmentsApiResponse } and HTTP response
|
|
936
|
+
*/
|
|
937
|
+
listExternalIscsiAttachmentsByVolumeGroupId(volumeGroupExtId, opts, ...args) {
|
|
938
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
939
|
+
opts = opts || {};
|
|
940
|
+
const postBody = null;
|
|
941
|
+
// verify the required parameter 'volumeGroupExtId' is set
|
|
942
|
+
if (typeof volumeGroupExtId === 'undefined' || volumeGroupExtId === null) {
|
|
943
|
+
throw new Error("Missing the required parameter 'volumeGroupExtId' when calling listExternalIscsiAttachmentsByVolumeGroupId");
|
|
944
|
+
}
|
|
945
|
+
const pathParams = {
|
|
946
|
+
'volumeGroupExtId': volumeGroupExtId
|
|
947
|
+
};
|
|
948
|
+
const queryParams = {
|
|
949
|
+
...(opts.hasOwnProperty('$page') ? {
|
|
886
950
|
'$page': opts['$page']
|
|
887
|
-
} : {}),
|
|
951
|
+
} : {}),
|
|
952
|
+
...(opts.hasOwnProperty('$limit') ? {
|
|
888
953
|
'$limit': opts['$limit']
|
|
889
|
-
} : {}),
|
|
954
|
+
} : {}),
|
|
955
|
+
...(opts.hasOwnProperty('$filter') ? {
|
|
890
956
|
'$filter': opts['$filter']
|
|
891
|
-
} : {}),
|
|
957
|
+
} : {}),
|
|
958
|
+
...(opts.hasOwnProperty('$orderby') ? {
|
|
892
959
|
'$orderby': opts['$orderby']
|
|
893
|
-
} : {}),
|
|
960
|
+
} : {}),
|
|
961
|
+
...(opts.hasOwnProperty('$expand') ? {
|
|
894
962
|
'$expand': opts['$expand']
|
|
895
|
-
} : {}),
|
|
963
|
+
} : {}),
|
|
964
|
+
...(opts.hasOwnProperty('$select') ? {
|
|
896
965
|
'$select': opts['$select']
|
|
897
|
-
} : {})
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
});
|
|
904
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
905
|
-
var formParams = {};
|
|
906
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
907
|
-
var contentTypes = [];
|
|
908
|
-
var accepts = ['application/json'];
|
|
909
|
-
var returnType = _ListExternalIscsiAttachmentsApiResponse["default"];
|
|
910
|
-
return this.apiClient.callApi('/api/volumes/v4.0/config/volume-groups/{volumeGroupExtId}/external-iscsi-attachments', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
/**
|
|
914
|
-
* List all the VM attachments for a Volume Group
|
|
915
|
-
* Query the list of VM attachments for a Volume Group identified by {extId}.
|
|
916
|
-
* @deprecated This API has been deprecated.
|
|
917
|
-
* @param { String } volumeGroupExtId The external identifier of a Volume Group.
|
|
918
|
-
* @param {Object} opts Optional parameters defined for the operation
|
|
919
|
-
* @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.
|
|
920
|
-
* @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.
|
|
921
|
-
* @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>
|
|
922
|
-
* 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>
|
|
923
|
-
* The filter can be applied to the following fields:<br>
|
|
924
|
-
* - extId
|
|
925
|
-
* @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>
|
|
926
|
-
* The orderby can be applied to the following fields:<br>
|
|
927
|
-
* - createdTime<br>
|
|
928
|
-
* - extId
|
|
929
|
-
* @param {Object} args Additional Arguments
|
|
930
|
-
* @return {Promise<ListVmAttachmentsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListVmAttachmentsApiResponse } and HTTP response
|
|
931
|
-
*/
|
|
932
|
-
}, {
|
|
933
|
-
key: "listVmAttachmentsByVolumeGroupId",
|
|
934
|
-
value: function listVmAttachmentsByVolumeGroupId(volumeGroupExtId, opts) {
|
|
935
|
-
var _this18 = this;
|
|
936
|
-
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
937
|
-
opts = opts || {};
|
|
938
|
-
var postBody = null;
|
|
939
|
-
// verify the required parameter 'volumeGroupExtId' is set
|
|
940
|
-
if (typeof volumeGroupExtId === 'undefined' || volumeGroupExtId === null) {
|
|
941
|
-
throw new Error("Missing the required parameter 'volumeGroupExtId' when calling listVmAttachmentsByVolumeGroupId");
|
|
966
|
+
} : {})
|
|
967
|
+
};
|
|
968
|
+
let headersToInclude = {};
|
|
969
|
+
Object.keys(argMap).forEach(header => {
|
|
970
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
971
|
+
headersToInclude[header] = argMap[header];
|
|
942
972
|
}
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
973
|
+
});
|
|
974
|
+
const headerParams = {
|
|
975
|
+
...headersToInclude
|
|
976
|
+
};
|
|
977
|
+
const formParams = {};
|
|
978
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
979
|
+
const contentTypes = [];
|
|
980
|
+
const accepts = ['application/json'];
|
|
981
|
+
const returnType = _ListExternalIscsiAttachmentsApiResponse.default;
|
|
982
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/volume-groups/{volumeGroupExtId}/external-iscsi-attachments', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* List all the VM attachments for a Volume Group
|
|
987
|
+
* Query the list of VM attachments for a Volume Group identified by {extId}.
|
|
988
|
+
* @deprecated This API has been deprecated.
|
|
989
|
+
* @param { String } volumeGroupExtId The external identifier of a Volume Group.
|
|
990
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
991
|
+
* @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.
|
|
992
|
+
* @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.
|
|
993
|
+
* @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>
|
|
994
|
+
* 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'.
|
|
995
|
+
* @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.
|
|
996
|
+
* @param {Object} args Additional Arguments
|
|
997
|
+
* @return {Promise<ListVmAttachmentsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListVmAttachmentsApiResponse } and HTTP response
|
|
998
|
+
*/
|
|
999
|
+
listVmAttachmentsByVolumeGroupId(volumeGroupExtId, opts, ...args) {
|
|
1000
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
1001
|
+
opts = opts || {};
|
|
1002
|
+
const postBody = null;
|
|
1003
|
+
// verify the required parameter 'volumeGroupExtId' is set
|
|
1004
|
+
if (typeof volumeGroupExtId === 'undefined' || volumeGroupExtId === null) {
|
|
1005
|
+
throw new Error("Missing the required parameter 'volumeGroupExtId' when calling listVmAttachmentsByVolumeGroupId");
|
|
1006
|
+
}
|
|
1007
|
+
const pathParams = {
|
|
1008
|
+
'volumeGroupExtId': volumeGroupExtId
|
|
1009
|
+
};
|
|
1010
|
+
const queryParams = {
|
|
1011
|
+
...(opts.hasOwnProperty('$page') ? {
|
|
947
1012
|
'$page': opts['$page']
|
|
948
|
-
} : {}),
|
|
1013
|
+
} : {}),
|
|
1014
|
+
...(opts.hasOwnProperty('$limit') ? {
|
|
949
1015
|
'$limit': opts['$limit']
|
|
950
|
-
} : {}),
|
|
1016
|
+
} : {}),
|
|
1017
|
+
...(opts.hasOwnProperty('$filter') ? {
|
|
951
1018
|
'$filter': opts['$filter']
|
|
952
|
-
} : {}),
|
|
1019
|
+
} : {}),
|
|
1020
|
+
...(opts.hasOwnProperty('$orderby') ? {
|
|
953
1021
|
'$orderby': opts['$orderby']
|
|
954
|
-
} : {})
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
});
|
|
961
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
962
|
-
var formParams = {};
|
|
963
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
964
|
-
var contentTypes = [];
|
|
965
|
-
var accepts = ['application/json'];
|
|
966
|
-
var returnType = _ListVmAttachmentsApiResponse["default"];
|
|
967
|
-
return this.apiClient.callApi('/api/volumes/v4.0/config/volume-groups/{volumeGroupExtId}/vm-attachments', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
968
|
-
}
|
|
969
|
-
|
|
970
|
-
/**
|
|
971
|
-
* List all the Volume Disks attached to the Volume Group
|
|
972
|
-
* Query the list of disks corresponding to a Volume Group identified by {volumeGroupExtId}.
|
|
973
|
-
* @param { String } volumeGroupExtId The external identifier of a Volume Group.
|
|
974
|
-
* @param {Object} opts Optional parameters defined for the operation
|
|
975
|
-
* @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.
|
|
976
|
-
* @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.
|
|
977
|
-
* @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>
|
|
978
|
-
* 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>
|
|
979
|
-
* The filter can be applied to the following fields:<br>
|
|
980
|
-
* - storageContainerId
|
|
981
|
-
* @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>
|
|
982
|
-
* The orderby can be applied to the following fields:<br>
|
|
983
|
-
* - createdTime<br>
|
|
984
|
-
* - diskSizeBytes
|
|
985
|
-
* @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.
|
|
986
|
-
- extId
|
|
987
|
-
- storageContainerId
|
|
988
|
-
* @param {Object} args Additional Arguments
|
|
989
|
-
* @return {Promise<ListVolumeDisksApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListVolumeDisksApiResponse } and HTTP response
|
|
990
|
-
*/
|
|
991
|
-
}, {
|
|
992
|
-
key: "listVolumeDisksByVolumeGroupId",
|
|
993
|
-
value: function listVolumeDisksByVolumeGroupId(volumeGroupExtId, opts) {
|
|
994
|
-
var _this19 = this;
|
|
995
|
-
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
996
|
-
opts = opts || {};
|
|
997
|
-
var postBody = null;
|
|
998
|
-
// verify the required parameter 'volumeGroupExtId' is set
|
|
999
|
-
if (typeof volumeGroupExtId === 'undefined' || volumeGroupExtId === null) {
|
|
1000
|
-
throw new Error("Missing the required parameter 'volumeGroupExtId' when calling listVolumeDisksByVolumeGroupId");
|
|
1022
|
+
} : {})
|
|
1023
|
+
};
|
|
1024
|
+
let headersToInclude = {};
|
|
1025
|
+
Object.keys(argMap).forEach(header => {
|
|
1026
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
1027
|
+
headersToInclude[header] = argMap[header];
|
|
1001
1028
|
}
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1029
|
+
});
|
|
1030
|
+
const headerParams = {
|
|
1031
|
+
...headersToInclude
|
|
1032
|
+
};
|
|
1033
|
+
const formParams = {};
|
|
1034
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
1035
|
+
const contentTypes = [];
|
|
1036
|
+
const accepts = ['application/json'];
|
|
1037
|
+
const returnType = _ListVmAttachmentsApiResponse.default;
|
|
1038
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/volume-groups/{volumeGroupExtId}/vm-attachments', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* List all the Volume Disks attached to the Volume Group
|
|
1043
|
+
* Query the list of disks corresponding to a Volume Group identified by {volumeGroupExtId}.
|
|
1044
|
+
* @param { String } volumeGroupExtId The external identifier of a Volume Group.
|
|
1045
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
1046
|
+
* @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.
|
|
1047
|
+
* @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.
|
|
1048
|
+
* @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>
|
|
1049
|
+
* 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'.
|
|
1050
|
+
* @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.
|
|
1051
|
+
* @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.
|
|
1052
|
+
* @param {Object} args Additional Arguments
|
|
1053
|
+
* @return {Promise<ListVolumeDisksApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListVolumeDisksApiResponse } and HTTP response
|
|
1054
|
+
*/
|
|
1055
|
+
listVolumeDisksByVolumeGroupId(volumeGroupExtId, opts, ...args) {
|
|
1056
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
1057
|
+
opts = opts || {};
|
|
1058
|
+
const postBody = null;
|
|
1059
|
+
// verify the required parameter 'volumeGroupExtId' is set
|
|
1060
|
+
if (typeof volumeGroupExtId === 'undefined' || volumeGroupExtId === null) {
|
|
1061
|
+
throw new Error("Missing the required parameter 'volumeGroupExtId' when calling listVolumeDisksByVolumeGroupId");
|
|
1062
|
+
}
|
|
1063
|
+
const pathParams = {
|
|
1064
|
+
'volumeGroupExtId': volumeGroupExtId
|
|
1065
|
+
};
|
|
1066
|
+
const queryParams = {
|
|
1067
|
+
...(opts.hasOwnProperty('$page') ? {
|
|
1006
1068
|
'$page': opts['$page']
|
|
1007
|
-
} : {}),
|
|
1069
|
+
} : {}),
|
|
1070
|
+
...(opts.hasOwnProperty('$limit') ? {
|
|
1008
1071
|
'$limit': opts['$limit']
|
|
1009
|
-
} : {}),
|
|
1072
|
+
} : {}),
|
|
1073
|
+
...(opts.hasOwnProperty('$filter') ? {
|
|
1010
1074
|
'$filter': opts['$filter']
|
|
1011
|
-
} : {}),
|
|
1075
|
+
} : {}),
|
|
1076
|
+
...(opts.hasOwnProperty('$orderby') ? {
|
|
1012
1077
|
'$orderby': opts['$orderby']
|
|
1013
|
-
} : {}),
|
|
1078
|
+
} : {}),
|
|
1079
|
+
...(opts.hasOwnProperty('$select') ? {
|
|
1014
1080
|
'$select': opts['$select']
|
|
1015
|
-
} : {})
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
}
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1081
|
+
} : {})
|
|
1082
|
+
};
|
|
1083
|
+
let headersToInclude = {};
|
|
1084
|
+
Object.keys(argMap).forEach(header => {
|
|
1085
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
1086
|
+
headersToInclude[header] = argMap[header];
|
|
1087
|
+
}
|
|
1088
|
+
});
|
|
1089
|
+
const headerParams = {
|
|
1090
|
+
...headersToInclude
|
|
1091
|
+
};
|
|
1092
|
+
const formParams = {};
|
|
1093
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
1094
|
+
const contentTypes = [];
|
|
1095
|
+
const accepts = ['application/json'];
|
|
1096
|
+
const returnType = _ListVolumeDisksApiResponse.default;
|
|
1097
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/volume-groups/{volumeGroupExtId}/disks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
1098
|
+
}
|
|
1030
1099
|
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
* @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.
|
|
1053
|
-
- clusterReference
|
|
1054
|
-
- extId
|
|
1055
|
-
- name
|
|
1056
|
-
* @param {Object} args Additional Arguments
|
|
1057
|
-
* @return {Promise<ListVolumeGroupsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListVolumeGroupsApiResponse } and HTTP response
|
|
1058
|
-
*/
|
|
1059
|
-
}, {
|
|
1060
|
-
key: "listVolumeGroups",
|
|
1061
|
-
value: function listVolumeGroups(opts) {
|
|
1062
|
-
var _this20 = this;
|
|
1063
|
-
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
1064
|
-
opts = opts || {};
|
|
1065
|
-
var postBody = null;
|
|
1066
|
-
var pathParams = {};
|
|
1067
|
-
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
1100
|
+
/**
|
|
1101
|
+
* List all the Volume Groups
|
|
1102
|
+
* Query the list of Volume Groups.
|
|
1103
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
1104
|
+
* @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.
|
|
1105
|
+
* @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.
|
|
1106
|
+
* @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>
|
|
1107
|
+
* 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'.
|
|
1108
|
+
* @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.
|
|
1109
|
+
* @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.
|
|
1110
|
+
* @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.
|
|
1111
|
+
* @param {Object} args Additional Arguments
|
|
1112
|
+
* @return {Promise<ListVolumeGroupsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListVolumeGroupsApiResponse } and HTTP response
|
|
1113
|
+
*/
|
|
1114
|
+
listVolumeGroups(opts, ...args) {
|
|
1115
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
1116
|
+
opts = opts || {};
|
|
1117
|
+
const postBody = null;
|
|
1118
|
+
const pathParams = {};
|
|
1119
|
+
const queryParams = {
|
|
1120
|
+
...(opts.hasOwnProperty('$page') ? {
|
|
1068
1121
|
'$page': opts['$page']
|
|
1069
|
-
} : {}),
|
|
1122
|
+
} : {}),
|
|
1123
|
+
...(opts.hasOwnProperty('$limit') ? {
|
|
1070
1124
|
'$limit': opts['$limit']
|
|
1071
|
-
} : {}),
|
|
1125
|
+
} : {}),
|
|
1126
|
+
...(opts.hasOwnProperty('$filter') ? {
|
|
1072
1127
|
'$filter': opts['$filter']
|
|
1073
|
-
} : {}),
|
|
1128
|
+
} : {}),
|
|
1129
|
+
...(opts.hasOwnProperty('$orderby') ? {
|
|
1074
1130
|
'$orderby': opts['$orderby']
|
|
1075
|
-
} : {}),
|
|
1131
|
+
} : {}),
|
|
1132
|
+
...(opts.hasOwnProperty('$expand') ? {
|
|
1076
1133
|
'$expand': opts['$expand']
|
|
1077
|
-
} : {}),
|
|
1134
|
+
} : {}),
|
|
1135
|
+
...(opts.hasOwnProperty('$select') ? {
|
|
1078
1136
|
'$select': opts['$select']
|
|
1079
|
-
} : {})
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
});
|
|
1086
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
1087
|
-
var formParams = {};
|
|
1088
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
1089
|
-
var contentTypes = [];
|
|
1090
|
-
var accepts = ['application/json'];
|
|
1091
|
-
var returnType = _ListVolumeGroupsApiResponse["default"];
|
|
1092
|
-
return this.apiClient.callApi('/api/volumes/v4.0/config/volume-groups', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
|
-
/**
|
|
1096
|
-
* Revert a Volume Group
|
|
1097
|
-
* Reverts a Volume Group identified by Volume Group external identifier. This API performs an in-place restore from a specified Volume Group recovery point.
|
|
1098
|
-
* @param { Required<Pick<RevertSpec, 'volumeGroupRecoveryPointExtId'>> & Partial<RevertSpec> } body specification
|
|
1099
|
-
* @param { String } extId The external identifier of a Volume Group.
|
|
1100
|
-
* @param {Object} args Additional Arguments
|
|
1101
|
-
* @return {Promise<RevertVolumeGroupApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link RevertVolumeGroupApiResponse } and HTTP response
|
|
1102
|
-
*/
|
|
1103
|
-
}, {
|
|
1104
|
-
key: "revertVolumeGroup",
|
|
1105
|
-
value: function revertVolumeGroup(extId, body) {
|
|
1106
|
-
var _this21 = this;
|
|
1107
|
-
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
1108
|
-
var postBody = null;
|
|
1109
|
-
if (body instanceof _RevertSpec["default"] && typeof body.toJson === 'function') {
|
|
1110
|
-
postBody = body.toJson();
|
|
1111
|
-
} else {
|
|
1112
|
-
postBody = body;
|
|
1113
|
-
}
|
|
1114
|
-
// verify the required parameter 'extId' is set
|
|
1115
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
1116
|
-
throw new Error("Missing the required parameter 'extId' when calling revertVolumeGroup");
|
|
1117
|
-
}
|
|
1118
|
-
// verify the required parameter 'body' is set
|
|
1119
|
-
if (typeof postBody === 'undefined' || postBody === null) {
|
|
1120
|
-
throw new Error("Invalid body when calling revertVolumeGroup");
|
|
1137
|
+
} : {})
|
|
1138
|
+
};
|
|
1139
|
+
let headersToInclude = {};
|
|
1140
|
+
Object.keys(argMap).forEach(header => {
|
|
1141
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
1142
|
+
headersToInclude[header] = argMap[header];
|
|
1121
1143
|
}
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
var formParams = {};
|
|
1134
|
-
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
1135
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
1136
|
-
var contentTypes = ['application/json'];
|
|
1137
|
-
var accepts = ['application/json'];
|
|
1138
|
-
var returnType = _RevertVolumeGroupApiResponse["default"];
|
|
1139
|
-
return this.apiClient.callApi('/api/volumes/v4.0/config/volume-groups/{extId}/$actions/revert', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
1140
|
-
}
|
|
1144
|
+
});
|
|
1145
|
+
const headerParams = {
|
|
1146
|
+
...headersToInclude
|
|
1147
|
+
};
|
|
1148
|
+
const formParams = {};
|
|
1149
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
1150
|
+
const contentTypes = [];
|
|
1151
|
+
const accepts = ['application/json'];
|
|
1152
|
+
const returnType = _ListVolumeGroupsApiResponse.default;
|
|
1153
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/volume-groups', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
1154
|
+
}
|
|
1141
1155
|
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
if (body instanceof _VolumeDisk["default"] && typeof body.toJson === 'function') {
|
|
1158
|
-
postBody = body.toJson();
|
|
1159
|
-
} else {
|
|
1160
|
-
postBody = body;
|
|
1161
|
-
}
|
|
1162
|
-
// verify the required parameter 'volumeGroupExtId' is set
|
|
1163
|
-
if (typeof volumeGroupExtId === 'undefined' || volumeGroupExtId === null) {
|
|
1164
|
-
throw new Error("Missing the required parameter 'volumeGroupExtId' when calling updateVolumeDiskById");
|
|
1165
|
-
}
|
|
1166
|
-
// verify the required parameter 'extId' is set
|
|
1167
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
1168
|
-
throw new Error("Missing the required parameter 'extId' when calling updateVolumeDiskById");
|
|
1169
|
-
}
|
|
1170
|
-
// verify the required parameter 'body' is set
|
|
1171
|
-
if (typeof postBody === 'undefined' || postBody === null) {
|
|
1172
|
-
throw new Error("Invalid body when calling updateVolumeDiskById");
|
|
1173
|
-
}
|
|
1174
|
-
var pathParams = {
|
|
1175
|
-
'volumeGroupExtId': volumeGroupExtId,
|
|
1176
|
-
'extId': extId
|
|
1177
|
-
};
|
|
1178
|
-
var queryParams = {};
|
|
1179
|
-
var headersToInclude = {};
|
|
1180
|
-
Object.keys(argMap).forEach(function (header) {
|
|
1181
|
-
if (!_classPrivateFieldGet(_headersToSkip, _this22).has(header.toLowerCase())) {
|
|
1182
|
-
headersToInclude[header] = argMap[header];
|
|
1183
|
-
}
|
|
1184
|
-
});
|
|
1185
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
1186
|
-
var formParams = {};
|
|
1187
|
-
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
1188
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
1189
|
-
var contentTypes = ['application/json'];
|
|
1190
|
-
var accepts = ['application/json'];
|
|
1191
|
-
var returnType = _UpdateVolumeDiskApiResponse["default"];
|
|
1192
|
-
return this.apiClient.callApi('/api/volumes/v4.0/config/volume-groups/{volumeGroupExtId}/disks/{extId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
1156
|
+
/**
|
|
1157
|
+
* Revert a Volume Group
|
|
1158
|
+
* Reverts a Volume Group identified by Volume Group external identifier. This API performs an in-place restore from a specified Volume Group recovery point.
|
|
1159
|
+
* @param { Required<Pick<RevertSpec, 'volumeGroupRecoveryPointExtId'>> & Partial<RevertSpec> } body specification
|
|
1160
|
+
* @param { String } extId The external identifier of a Volume Group.
|
|
1161
|
+
* @param {Object} args Additional Arguments
|
|
1162
|
+
* @return {Promise<RevertVolumeGroupApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link RevertVolumeGroupApiResponse } and HTTP response
|
|
1163
|
+
*/
|
|
1164
|
+
revertVolumeGroup(extId, body, ...args) {
|
|
1165
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
1166
|
+
let postBody = null;
|
|
1167
|
+
if (body instanceof _RevertSpec.default && typeof body.toJson === 'function') {
|
|
1168
|
+
postBody = body.toJson();
|
|
1169
|
+
} else {
|
|
1170
|
+
postBody = body;
|
|
1193
1171
|
}
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
postBody = body.toJson();
|
|
1211
|
-
} else {
|
|
1212
|
-
postBody = body;
|
|
1213
|
-
}
|
|
1214
|
-
// verify the required parameter 'extId' is set
|
|
1215
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
1216
|
-
throw new Error("Missing the required parameter 'extId' when calling updateVolumeGroupById");
|
|
1172
|
+
// verify the required parameter 'extId' is set
|
|
1173
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
1174
|
+
throw new Error("Missing the required parameter 'extId' when calling revertVolumeGroup");
|
|
1175
|
+
}
|
|
1176
|
+
// verify the required parameter 'body' is set
|
|
1177
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
1178
|
+
throw new Error("Invalid body when calling revertVolumeGroup");
|
|
1179
|
+
}
|
|
1180
|
+
const pathParams = {
|
|
1181
|
+
'extId': extId
|
|
1182
|
+
};
|
|
1183
|
+
const queryParams = {};
|
|
1184
|
+
let headersToInclude = {};
|
|
1185
|
+
Object.keys(argMap).forEach(header => {
|
|
1186
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
1187
|
+
headersToInclude[header] = argMap[header];
|
|
1217
1188
|
}
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1189
|
+
});
|
|
1190
|
+
const headerParams = {
|
|
1191
|
+
...headersToInclude
|
|
1192
|
+
};
|
|
1193
|
+
const formParams = {};
|
|
1194
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
1195
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
1196
|
+
const contentTypes = ['application/json'];
|
|
1197
|
+
const accepts = ['application/json'];
|
|
1198
|
+
const returnType = _RevertVolumeGroupApiResponse.default;
|
|
1199
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/volume-groups/{extId}/$actions/revert', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* Update a specified Volume Disk
|
|
1204
|
+
* Updates a specific Volume Disk identified by {extId}.
|
|
1205
|
+
* @param { Partial<VolumeDisk> } body specification
|
|
1206
|
+
* @param { String } volumeGroupExtId The external identifier of a Volume Group.
|
|
1207
|
+
* @param { String } extId The external identifier of a Volume Disk.
|
|
1208
|
+
* @param {Object} args Additional Arguments
|
|
1209
|
+
* @return {Promise<UpdateVolumeDiskApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateVolumeDiskApiResponse } and HTTP response
|
|
1210
|
+
*/
|
|
1211
|
+
updateVolumeDiskById(volumeGroupExtId, extId, body, ...args) {
|
|
1212
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
1213
|
+
let postBody = null;
|
|
1214
|
+
if (body instanceof _VolumeDisk.default && typeof body.toJson === 'function') {
|
|
1215
|
+
postBody = body.toJson();
|
|
1216
|
+
} else {
|
|
1217
|
+
postBody = body;
|
|
1218
|
+
}
|
|
1219
|
+
// verify the required parameter 'volumeGroupExtId' is set
|
|
1220
|
+
if (typeof volumeGroupExtId === 'undefined' || volumeGroupExtId === null) {
|
|
1221
|
+
throw new Error("Missing the required parameter 'volumeGroupExtId' when calling updateVolumeDiskById");
|
|
1222
|
+
}
|
|
1223
|
+
// verify the required parameter 'extId' is set
|
|
1224
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
1225
|
+
throw new Error("Missing the required parameter 'extId' when calling updateVolumeDiskById");
|
|
1226
|
+
}
|
|
1227
|
+
// verify the required parameter 'body' is set
|
|
1228
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
1229
|
+
throw new Error("Invalid body when calling updateVolumeDiskById");
|
|
1230
|
+
}
|
|
1231
|
+
const pathParams = {
|
|
1232
|
+
'volumeGroupExtId': volumeGroupExtId,
|
|
1233
|
+
'extId': extId
|
|
1234
|
+
};
|
|
1235
|
+
const queryParams = {};
|
|
1236
|
+
let headersToInclude = {};
|
|
1237
|
+
Object.keys(argMap).forEach(header => {
|
|
1238
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
1239
|
+
headersToInclude[header] = argMap[header];
|
|
1221
1240
|
}
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1241
|
+
});
|
|
1242
|
+
const headerParams = {
|
|
1243
|
+
...headersToInclude
|
|
1244
|
+
};
|
|
1245
|
+
const formParams = {};
|
|
1246
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
1247
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
1248
|
+
const contentTypes = ['application/json'];
|
|
1249
|
+
const accepts = ['application/json'];
|
|
1250
|
+
const returnType = _UpdateVolumeDiskApiResponse.default;
|
|
1251
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/volume-groups/{volumeGroupExtId}/disks/{extId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
/**
|
|
1255
|
+
* Update details of a specified Volume Group
|
|
1256
|
+
* Updates details of a specific Volume Group identified by {extId}.
|
|
1257
|
+
* @param { Partial<VolumeGroup> } body specification
|
|
1258
|
+
* @param { String } extId The external identifier of a Volume Group.
|
|
1259
|
+
* @param {Object} args Additional Arguments
|
|
1260
|
+
* @return {Promise<UpdateVolumeGroupApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateVolumeGroupApiResponse } and HTTP response
|
|
1261
|
+
*/
|
|
1262
|
+
updateVolumeGroupById(extId, body, ...args) {
|
|
1263
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
1264
|
+
let postBody = null;
|
|
1265
|
+
if (body instanceof _VolumeGroup.default && typeof body.toJson === 'function') {
|
|
1266
|
+
postBody = body.toJson();
|
|
1267
|
+
} else {
|
|
1268
|
+
postBody = body;
|
|
1240
1269
|
}
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
/**
|
|
1245
|
-
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
1246
|
-
* their own fetch methods into the SDK
|
|
1247
|
-
*/
|
|
1248
|
-
function get() {
|
|
1249
|
-
return _ApiClient.ApiClient;
|
|
1270
|
+
// verify the required parameter 'extId' is set
|
|
1271
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
1272
|
+
throw new Error("Missing the required parameter 'extId' when calling updateVolumeGroupById");
|
|
1250
1273
|
}
|
|
1251
|
-
|
|
1252
|
-
|
|
1274
|
+
// verify the required parameter 'body' is set
|
|
1275
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
1276
|
+
throw new Error("Invalid body when calling updateVolumeGroupById");
|
|
1277
|
+
}
|
|
1278
|
+
const pathParams = {
|
|
1279
|
+
'extId': extId
|
|
1280
|
+
};
|
|
1281
|
+
const queryParams = {};
|
|
1282
|
+
let headersToInclude = {};
|
|
1283
|
+
Object.keys(argMap).forEach(header => {
|
|
1284
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
1285
|
+
headersToInclude[header] = argMap[header];
|
|
1286
|
+
}
|
|
1287
|
+
});
|
|
1288
|
+
const headerParams = {
|
|
1289
|
+
...headersToInclude
|
|
1290
|
+
};
|
|
1291
|
+
const formParams = {};
|
|
1292
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
1293
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
1294
|
+
const contentTypes = ['application/json'];
|
|
1295
|
+
const accepts = ['application/json'];
|
|
1296
|
+
const returnType = _UpdateVolumeGroupApiResponse.default;
|
|
1297
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/volume-groups/{extId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
exports.VolumeGroupsApi = VolumeGroupsApi;
|