@nutanix-scratch/volumes-js-client 4.1.1 → 4.2.2
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 +17 -5
- package/dist/Ntnx-Volumes-js-client-prod.js +1 -1
- package/dist/Ntnx-Volumes-js-client.js +528 -522
- package/dist/es/ApiClient.d.ts +29 -7
- package/dist/es/ApiClient.js +854 -667
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +144 -183
- package/dist/es/apis/iscsiclients-endpoints.d.ts +2 -2
- package/dist/es/apis/iscsiclients-endpoints.js +143 -154
- package/dist/es/apis/nvmfclients-endpoints.d.ts +2 -2
- package/dist/es/apis/nvmfclients-endpoints.js +100 -110
- package/dist/es/apis/volumegroups-endpoints.d.ts +14 -35
- package/dist/es/apis/volumegroups-endpoints.js +1151 -1203
- package/dist/es/index.d.ts +3 -3
- package/dist/es/index.js +300 -300
- package/dist/es/models/common/v1/config/EntityReference.d.ts +2 -10
- package/dist/es/models/common/v1/config/EntityReference.js +225 -270
- 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 +2 -7
- package/dist/es/models/common/v1/config/TenantAwareModel.js +137 -177
- 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 +154 -202
- package/dist/es/models/common/v1/stats/DownSamplingOperator.js +7 -9
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +2 -7
- package/dist/es/models/prism/v4/config/TaskReference.js +142 -181
- 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 +2 -7
- package/dist/es/models/volumes/v4/config/AccessToken.js +140 -179
- 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 +7 -9
- 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.js +7 -9
- 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 +2 -7
- package/dist/es/models/volumes/v4/config/ClusterScope.js +142 -181
- package/dist/es/models/volumes/v4/config/ClusterScopeProjection.d.ts +1 -1
- package/dist/es/models/volumes/v4/config/ClusterScopeProjection.js +74 -103
- 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 +2 -43
- package/dist/es/models/volumes/v4/config/GetNvmfClientApiResponse.js +187 -242
- 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 +304 -364
- package/dist/es/models/volumes/v4/config/IscsiClientAttachment.d.ts +2 -8
- package/dist/es/models/volumes/v4/config/IscsiClientAttachment.js +168 -210
- 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 +164 -194
- 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 +2 -43
- package/dist/es/models/volumes/v4/config/ListNvmfClientsApiResponse.js +213 -268
- 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 +1 -18
- package/dist/es/models/volumes/v4/config/NvmfClient.js +185 -233
- package/dist/es/models/volumes/v4/config/NvmfClientAttachment.d.ts +1 -16
- package/dist/es/models/volumes/v4/config/NvmfClientAttachment.js +125 -168
- package/dist/es/models/volumes/v4/config/NvmfClientAttachmentProjection.d.ts +1 -40
- package/dist/es/models/volumes/v4/config/NvmfClientAttachmentProjection.js +129 -170
- package/dist/es/models/volumes/v4/config/NvmfClientProjection.d.ts +1 -25
- package/dist/es/models/volumes/v4/config/NvmfClientProjection.js +138 -176
- package/dist/es/models/volumes/v4/config/Protocol.js +7 -9
- 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 +2 -7
- package/dist/es/models/volumes/v4/config/VGAttachment.js +156 -199
- package/dist/es/models/volumes/v4/config/VmAttachment.d.ts +2 -8
- package/dist/es/models/volumes/v4/config/VmAttachment.js +168 -209
- 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 +266 -319
- 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 +11 -90
- package/dist/es/models/volumes/v4/config/VolumeGroup.js +593 -640
- package/dist/es/models/volumes/v4/config/VolumeGroupAttachmentSite.js +7 -9
- package/dist/es/models/volumes/v4/config/VolumeGroupDelegateAccessSpec.d.ts +2 -13
- package/dist/es/models/volumes/v4/config/VolumeGroupDelegateAccessSpec.js +162 -203
- 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 -106
- package/dist/es/models/volumes/v4/config/VolumeGroupProjection.js +246 -252
- package/dist/es/models/volumes/v4/error/AppMessage.d.ts +2 -12
- package/dist/es/models/volumes/v4/error/AppMessage.js +264 -313
- package/dist/es/models/volumes/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/es/models/volumes/v4/error/ErrorResponse.js +175 -219
- 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 +458 -550
- 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 +500 -550
- 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 +29 -7
- package/dist/lib/ApiClient.js +854 -667
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +144 -183
- package/dist/lib/apis/iscsiclients-endpoints.d.ts +2 -2
- package/dist/lib/apis/iscsiclients-endpoints.js +143 -154
- package/dist/lib/apis/nvmfclients-endpoints.d.ts +2 -2
- package/dist/lib/apis/nvmfclients-endpoints.js +100 -110
- package/dist/lib/apis/volumegroups-endpoints.d.ts +14 -35
- package/dist/lib/apis/volumegroups-endpoints.js +1151 -1203
- package/dist/lib/index.d.ts +3 -3
- package/dist/lib/index.js +300 -300
- package/dist/lib/models/common/v1/config/EntityReference.d.ts +2 -10
- package/dist/lib/models/common/v1/config/EntityReference.js +225 -270
- 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 +2 -7
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +137 -177
- 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 +154 -202
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +7 -9
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +2 -7
- package/dist/lib/models/prism/v4/config/TaskReference.js +142 -181
- 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 +2 -7
- package/dist/lib/models/volumes/v4/config/AccessToken.js +140 -179
- 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 +7 -9
- 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.js +7 -9
- 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 +2 -7
- package/dist/lib/models/volumes/v4/config/ClusterScope.js +142 -181
- package/dist/lib/models/volumes/v4/config/ClusterScopeProjection.d.ts +1 -1
- package/dist/lib/models/volumes/v4/config/ClusterScopeProjection.js +74 -103
- 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 +2 -43
- package/dist/lib/models/volumes/v4/config/GetNvmfClientApiResponse.js +187 -242
- 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 +304 -364
- package/dist/lib/models/volumes/v4/config/IscsiClientAttachment.d.ts +2 -8
- package/dist/lib/models/volumes/v4/config/IscsiClientAttachment.js +168 -210
- 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 +164 -194
- 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 +2 -43
- package/dist/lib/models/volumes/v4/config/ListNvmfClientsApiResponse.js +213 -268
- 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 +1 -18
- package/dist/lib/models/volumes/v4/config/NvmfClient.js +185 -233
- package/dist/lib/models/volumes/v4/config/NvmfClientAttachment.d.ts +1 -16
- package/dist/lib/models/volumes/v4/config/NvmfClientAttachment.js +125 -168
- package/dist/lib/models/volumes/v4/config/NvmfClientAttachmentProjection.d.ts +1 -40
- package/dist/lib/models/volumes/v4/config/NvmfClientAttachmentProjection.js +129 -170
- package/dist/lib/models/volumes/v4/config/NvmfClientProjection.d.ts +1 -25
- package/dist/lib/models/volumes/v4/config/NvmfClientProjection.js +138 -176
- package/dist/lib/models/volumes/v4/config/Protocol.js +7 -9
- 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 +2 -7
- package/dist/lib/models/volumes/v4/config/VGAttachment.js +156 -199
- package/dist/lib/models/volumes/v4/config/VmAttachment.d.ts +2 -8
- package/dist/lib/models/volumes/v4/config/VmAttachment.js +168 -209
- 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 +266 -319
- 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 +11 -90
- package/dist/lib/models/volumes/v4/config/VolumeGroup.js +593 -640
- package/dist/lib/models/volumes/v4/config/VolumeGroupAttachmentSite.js +7 -9
- package/dist/lib/models/volumes/v4/config/VolumeGroupDelegateAccessSpec.d.ts +2 -13
- package/dist/lib/models/volumes/v4/config/VolumeGroupDelegateAccessSpec.js +162 -203
- 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 -106
- package/dist/lib/models/volumes/v4/config/VolumeGroupProjection.js +246 -252
- package/dist/lib/models/volumes/v4/error/AppMessage.d.ts +2 -12
- package/dist/lib/models/volumes/v4/error/AppMessage.js +264 -313
- package/dist/lib/models/volumes/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/lib/models/volumes/v4/error/ErrorResponse.js +175 -219
- 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 +458 -550
- 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 +500 -550
- 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 +1 -1
- package/dist/es/models/volumes/v4/config/ListExternalNvmfAttachmentsApiResponse.d.ts +0 -100
- package/dist/es/models/volumes/v4/config/ListExternalNvmfAttachmentsApiResponse.js +0 -370
- package/dist/lib/models/volumes/v4/config/ListExternalNvmfAttachmentsApiResponse.d.ts +0 -100
- package/dist/lib/models/volumes/v4/config/ListExternalNvmfAttachmentsApiResponse.js +0 -370
|
@@ -1,6 +1,5 @@
|
|
|
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
|
});
|
|
@@ -10,38 +9,36 @@ var _UpdateIscsiClientApiResponse = _interopRequireDefault(require("../models/vo
|
|
|
10
9
|
var _ListIscsiClientsApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/ListIscsiClientsApiResponse"));
|
|
11
10
|
var _GetIscsiClientApiResponse = _interopRequireDefault(require("../models/volumes/v4/config/GetIscsiClientApiResponse"));
|
|
12
11
|
var _IscsiClient = _interopRequireDefault(require("../models/volumes/v4/config/IscsiClient"));
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : {
|
|
14
|
-
|
|
15
|
-
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; }
|
|
16
|
-
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; }
|
|
17
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
18
|
-
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); } }
|
|
19
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
20
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
21
|
-
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); }
|
|
22
|
-
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
23
|
-
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
24
|
-
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
25
|
-
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
26
|
-
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"); } /*
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
/*
|
|
27
14
|
* Nutanix Volumes APIs
|
|
28
15
|
*
|
|
29
|
-
* OpenAPI spec version: 4.
|
|
16
|
+
* OpenAPI spec version: 4.2.2
|
|
30
17
|
*
|
|
31
18
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
32
19
|
*
|
|
33
|
-
* Open API Dev Platform Codegen version: 17.
|
|
20
|
+
* Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
|
|
34
21
|
*
|
|
35
22
|
* Do not edit the class manually.
|
|
36
23
|
*
|
|
37
24
|
*/
|
|
25
|
+
|
|
38
26
|
/**
|
|
39
27
|
* IscsiClients service.
|
|
40
|
-
* @version 4.
|
|
28
|
+
* @version 4.2.2
|
|
41
29
|
* @class IscsiClientsApi
|
|
42
30
|
*/
|
|
43
|
-
|
|
44
|
-
|
|
31
|
+
class IscsiClientsApi {
|
|
32
|
+
#headersToSkip;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
36
|
+
* their own fetch methods into the SDK
|
|
37
|
+
*/
|
|
38
|
+
static get ApiClient() {
|
|
39
|
+
return _ApiClient.ApiClient;
|
|
40
|
+
}
|
|
41
|
+
|
|
45
42
|
/**
|
|
46
43
|
* Constructs a new IscsiClientsApi.
|
|
47
44
|
* @alias module:api/IscsiClientsApi
|
|
@@ -49,15 +46,13 @@ var IscsiClientsApi = exports.IscsiClientsApi = /*#__PURE__*/function () {
|
|
|
49
46
|
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
50
47
|
* default to {@link module:ApiClient#instance} if unspecified.
|
|
51
48
|
*/
|
|
52
|
-
|
|
53
|
-
_classCallCheck(this, IscsiClientsApi);
|
|
54
|
-
_classPrivateFieldInitSpec(this, _headersToSkip, void 0);
|
|
49
|
+
constructor(apiClient) {
|
|
55
50
|
this.apiClient = apiClient || _ApiClient.ApiClient.instance;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
51
|
+
this.#headersToSkip = new Set();
|
|
52
|
+
this.#headersToSkip.add('authorization');
|
|
53
|
+
this.#headersToSkip.add('cookie');
|
|
54
|
+
this.#headersToSkip.add('host');
|
|
55
|
+
this.#headersToSkip.add('user-agent');
|
|
61
56
|
}
|
|
62
57
|
|
|
63
58
|
/**
|
|
@@ -67,140 +62,134 @@ var IscsiClientsApi = exports.IscsiClientsApi = /*#__PURE__*/function () {
|
|
|
67
62
|
* @param {Object} args Additional Arguments
|
|
68
63
|
* @return {Promise<GetIscsiClientApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetIscsiClientApiResponse } and HTTP response
|
|
69
64
|
*/
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
// verify the required parameter 'extId' is set
|
|
77
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
78
|
-
throw new Error("Missing the required parameter 'extId' when calling getIscsiClientById");
|
|
79
|
-
}
|
|
80
|
-
var pathParams = {
|
|
81
|
-
'extId': extId
|
|
82
|
-
};
|
|
83
|
-
var queryParams = {};
|
|
84
|
-
var headersToInclude = {};
|
|
85
|
-
Object.keys(argMap).forEach(function (header) {
|
|
86
|
-
if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {
|
|
87
|
-
headersToInclude[header] = argMap[header];
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
91
|
-
var formParams = {};
|
|
92
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
93
|
-
var contentTypes = [];
|
|
94
|
-
var accepts = ['application/json'];
|
|
95
|
-
var returnType = _GetIscsiClientApiResponse["default"];
|
|
96
|
-
return this.apiClient.callApi('/api/volumes/v4.1/config/iscsi-clients/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
65
|
+
getIscsiClientById(extId, ...args) {
|
|
66
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
67
|
+
const postBody = null;
|
|
68
|
+
// verify the required parameter 'extId' is set
|
|
69
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
70
|
+
throw new Error("Missing the required parameter 'extId' when calling getIscsiClientById");
|
|
97
71
|
}
|
|
72
|
+
const pathParams = {
|
|
73
|
+
'extId': extId
|
|
74
|
+
};
|
|
75
|
+
const queryParams = {};
|
|
76
|
+
let headersToInclude = {};
|
|
77
|
+
Object.keys(argMap).forEach(header => {
|
|
78
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
79
|
+
headersToInclude[header] = argMap[header];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
const headerParams = {
|
|
83
|
+
...headersToInclude
|
|
84
|
+
};
|
|
85
|
+
const formParams = {};
|
|
86
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
87
|
+
const contentTypes = [];
|
|
88
|
+
const accepts = ['application/json'];
|
|
89
|
+
const returnType = _GetIscsiClientApiResponse.default;
|
|
90
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/iscsi-clients/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
91
|
+
}
|
|
98
92
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
var pathParams = {};
|
|
121
|
-
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
93
|
+
/**
|
|
94
|
+
* List all the iSCSI clients
|
|
95
|
+
* Fetches the list of iSCSI clients.
|
|
96
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
97
|
+
* @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.
|
|
98
|
+
* @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.
|
|
99
|
+
* @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>
|
|
100
|
+
* 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'.
|
|
101
|
+
* @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.
|
|
102
|
+
* @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.
|
|
103
|
+
* @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.
|
|
104
|
+
* @param {Object} args Additional Arguments
|
|
105
|
+
* @return {Promise<ListIscsiClientsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListIscsiClientsApiResponse } and HTTP response
|
|
106
|
+
*/
|
|
107
|
+
listIscsiClients(opts, ...args) {
|
|
108
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
109
|
+
opts = opts || {};
|
|
110
|
+
const postBody = null;
|
|
111
|
+
const pathParams = {};
|
|
112
|
+
const queryParams = {
|
|
113
|
+
...(opts.hasOwnProperty('$page') ? {
|
|
122
114
|
'$page': opts['$page']
|
|
123
|
-
} : {}),
|
|
115
|
+
} : {}),
|
|
116
|
+
...(opts.hasOwnProperty('$limit') ? {
|
|
124
117
|
'$limit': opts['$limit']
|
|
125
|
-
} : {}),
|
|
118
|
+
} : {}),
|
|
119
|
+
...(opts.hasOwnProperty('$filter') ? {
|
|
126
120
|
'$filter': opts['$filter']
|
|
127
|
-
} : {}),
|
|
121
|
+
} : {}),
|
|
122
|
+
...(opts.hasOwnProperty('$orderby') ? {
|
|
128
123
|
'$orderby': opts['$orderby']
|
|
129
|
-
} : {}),
|
|
124
|
+
} : {}),
|
|
125
|
+
...(opts.hasOwnProperty('$expand') ? {
|
|
130
126
|
'$expand': opts['$expand']
|
|
131
|
-
} : {}),
|
|
127
|
+
} : {}),
|
|
128
|
+
...(opts.hasOwnProperty('$select') ? {
|
|
132
129
|
'$select': opts['$select']
|
|
133
|
-
} : {})
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
});
|
|
140
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
141
|
-
var formParams = {};
|
|
142
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
143
|
-
var contentTypes = [];
|
|
144
|
-
var accepts = ['application/json'];
|
|
145
|
-
var returnType = _ListIscsiClientsApiResponse["default"];
|
|
146
|
-
return this.apiClient.callApi('/api/volumes/v4.1/config/iscsi-clients', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Update an iSCSI client
|
|
151
|
-
* Modifies the details of an existing iSCSI client configuration identified by {extId}.
|
|
152
|
-
* @param { Partial<IscsiClient> } body specification
|
|
153
|
-
* @param { String } extId The external identifier of an iSCSI client.
|
|
154
|
-
* @param {Object} args Additional Arguments
|
|
155
|
-
* @return {Promise<UpdateIscsiClientApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateIscsiClientApiResponse } and HTTP response
|
|
156
|
-
*/
|
|
157
|
-
}, {
|
|
158
|
-
key: "updateIscsiClientById",
|
|
159
|
-
value: function updateIscsiClientById(extId, body) {
|
|
160
|
-
var _this3 = this;
|
|
161
|
-
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
162
|
-
var postBody = null;
|
|
163
|
-
if (body instanceof _IscsiClient["default"] && typeof body.toJson === 'function') {
|
|
164
|
-
postBody = body.toJson();
|
|
165
|
-
} else {
|
|
166
|
-
postBody = body;
|
|
167
|
-
}
|
|
168
|
-
// verify the required parameter 'extId' is set
|
|
169
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
170
|
-
throw new Error("Missing the required parameter 'extId' when calling updateIscsiClientById");
|
|
171
|
-
}
|
|
172
|
-
// verify the required parameter 'body' is set
|
|
173
|
-
if (typeof postBody === 'undefined' || postBody === null) {
|
|
174
|
-
throw new Error("Invalid body when calling updateIscsiClientById");
|
|
130
|
+
} : {})
|
|
131
|
+
};
|
|
132
|
+
let headersToInclude = {};
|
|
133
|
+
Object.keys(argMap).forEach(header => {
|
|
134
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
135
|
+
headersToInclude[header] = argMap[header];
|
|
175
136
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
137
|
+
});
|
|
138
|
+
const headerParams = {
|
|
139
|
+
...headersToInclude
|
|
140
|
+
};
|
|
141
|
+
const formParams = {};
|
|
142
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
143
|
+
const contentTypes = [];
|
|
144
|
+
const accepts = ['application/json'];
|
|
145
|
+
const returnType = _ListIscsiClientsApiResponse.default;
|
|
146
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/iscsi-clients', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Update an iSCSI client
|
|
151
|
+
* Modifies the details of an existing iSCSI client configuration identified by {extId}.
|
|
152
|
+
* @param { Partial<IscsiClient> } body specification
|
|
153
|
+
* @param { String } extId The external identifier of an iSCSI client.
|
|
154
|
+
* @param {Object} args Additional Arguments
|
|
155
|
+
* @return {Promise<UpdateIscsiClientApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateIscsiClientApiResponse } and HTTP response
|
|
156
|
+
*/
|
|
157
|
+
updateIscsiClientById(extId, body, ...args) {
|
|
158
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
159
|
+
let postBody = null;
|
|
160
|
+
if (body instanceof _IscsiClient.default && typeof body.toJson === 'function') {
|
|
161
|
+
postBody = body.toJson();
|
|
162
|
+
} else {
|
|
163
|
+
postBody = body;
|
|
194
164
|
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
200
|
-
* their own fetch methods into the SDK
|
|
201
|
-
*/
|
|
202
|
-
function get() {
|
|
203
|
-
return _ApiClient.ApiClient;
|
|
165
|
+
// verify the required parameter 'extId' is set
|
|
166
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
167
|
+
throw new Error("Missing the required parameter 'extId' when calling updateIscsiClientById");
|
|
204
168
|
}
|
|
205
|
-
|
|
206
|
-
|
|
169
|
+
// verify the required parameter 'body' is set
|
|
170
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
171
|
+
throw new Error("Invalid body when calling updateIscsiClientById");
|
|
172
|
+
}
|
|
173
|
+
const pathParams = {
|
|
174
|
+
'extId': extId
|
|
175
|
+
};
|
|
176
|
+
const queryParams = {};
|
|
177
|
+
let headersToInclude = {};
|
|
178
|
+
Object.keys(argMap).forEach(header => {
|
|
179
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
180
|
+
headersToInclude[header] = argMap[header];
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
const headerParams = {
|
|
184
|
+
...headersToInclude
|
|
185
|
+
};
|
|
186
|
+
const formParams = {};
|
|
187
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
188
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
189
|
+
const contentTypes = ['application/json'];
|
|
190
|
+
const accepts = ['application/json'];
|
|
191
|
+
const returnType = _UpdateIscsiClientApiResponse.default;
|
|
192
|
+
return this.apiClient.callApi('/api/volumes/v4.2/config/iscsi-clients/{extId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
exports.IscsiClientsApi = IscsiClientsApi;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NvmfClients service.
|
|
3
|
-
* @version 4.
|
|
3
|
+
* @version 4.2.2
|
|
4
4
|
* @class NvmfClientsApi
|
|
5
5
|
*/
|
|
6
6
|
export class NvmfClientsApi {
|
|
@@ -35,7 +35,7 @@ export class NvmfClientsApi {
|
|
|
35
35
|
* @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.
|
|
36
36
|
|
|
37
37
|
* @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>
|
|
38
|
-
* For example, filter
|
|
38
|
+
* 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'.
|
|
39
39
|
* @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.
|
|
40
40
|
* @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.
|
|
41
41
|
* @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.
|