@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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _IPAddressOrFQDN = _interopRequireDefault(require("../../../common/v1/config/IPAddressOrFQDN"));
|
|
8
8
|
var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
|
|
9
9
|
var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
|
|
@@ -14,38 +14,16 @@ var _VolumeGroupAttachmentSite = _interopRequireDefault(require("./VolumeGroupAt
|
|
|
14
14
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
15
15
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
16
16
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
17
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : {
|
|
18
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
19
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
20
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
21
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
22
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
23
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
24
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
25
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27
|
-
function _defineProperty(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; }
|
|
28
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
29
|
-
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); } }
|
|
30
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
31
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
32
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
33
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
34
|
-
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
35
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
36
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
37
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
38
|
-
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
39
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
40
18
|
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
41
19
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
|
|
42
20
|
* Nutanix Volumes APIs
|
|
43
21
|
*
|
|
44
|
-
* OpenAPI spec version: 4.
|
|
22
|
+
* OpenAPI spec version: 4.2.2
|
|
45
23
|
*
|
|
46
24
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
47
25
|
*
|
|
48
|
-
* Open API Dev Platform Codegen version: 17.
|
|
26
|
+
* Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
|
|
49
27
|
*
|
|
50
28
|
* Do not edit the class manually.
|
|
51
29
|
*
|
|
@@ -53,37 +31,34 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
|
|
|
53
31
|
/**
|
|
54
32
|
* The IscsiClient model module.
|
|
55
33
|
* @module Ntnx/IscsiClient
|
|
56
|
-
* @version 4.
|
|
34
|
+
* @version 4.2.2
|
|
57
35
|
* @class IscsiClient
|
|
58
36
|
* @extends ExternalizableAbstractModel
|
|
59
37
|
*/
|
|
60
38
|
var _IscsiClient_brand = /*#__PURE__*/new WeakSet();
|
|
61
|
-
|
|
39
|
+
class IscsiClient extends _ExternalizableAbstractModel.default {
|
|
62
40
|
/**
|
|
63
41
|
* Constructs a new <code>IscsiClient</code>.
|
|
64
42
|
* A model that represents an iSCSI client that can be associated with a Volume Group as an external attachment.
|
|
65
43
|
* @alias module:Ntnx/IscsiClient
|
|
66
44
|
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
67
45
|
*/
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
_classCallCheck(this, IscsiClient);
|
|
71
|
-
_this = _callSuper(this, IscsiClient);
|
|
46
|
+
constructor() {
|
|
47
|
+
super();
|
|
72
48
|
/*
|
|
73
49
|
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
74
50
|
* @param {Object} obj
|
|
75
51
|
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
76
52
|
* Otherwise, just returns the input object.
|
|
77
53
|
*/
|
|
78
|
-
_classPrivateMethodInitSpec(
|
|
79
|
-
|
|
54
|
+
_classPrivateMethodInitSpec(this, _IscsiClient_brand);
|
|
55
|
+
this.$objectType = "volumes.v4.config.IscsiClient";
|
|
80
56
|
/** @type {object<string, any>} */
|
|
81
|
-
|
|
82
|
-
'$fv': "v4.
|
|
57
|
+
this.$reserved = {
|
|
58
|
+
'$fv': "v4.r2"
|
|
83
59
|
};
|
|
84
60
|
/** @type {object<string, any>} */
|
|
85
|
-
|
|
86
|
-
return _this;
|
|
61
|
+
this.$unknownFields = {};
|
|
87
62
|
}
|
|
88
63
|
|
|
89
64
|
/**
|
|
@@ -94,382 +69,347 @@ var IscsiClient = exports["default"] = /*#__PURE__*/function (_ExternalizableAbs
|
|
|
94
69
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
95
70
|
* @return {module:Ntnx/IscsiClient} The populated <code>IscsiClient</code> instance.
|
|
96
71
|
*/
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
72
|
+
static constructFromObject(data, obj = null, callFromChild = false) {
|
|
73
|
+
let items, item, i, itemArr, discriminator;
|
|
74
|
+
if (data) {
|
|
75
|
+
obj = obj || new IscsiClient();
|
|
76
|
+
_ExternalizableAbstractModel.default.constructFromObject(data, obj, true);
|
|
77
|
+
if (data.hasOwnProperty('iscsiInitiatorName') && data.iscsiInitiatorName !== null && data.iscsiInitiatorName !== undefined) {
|
|
78
|
+
obj.setIscsiInitiatorName(data['iscsiInitiatorName']);
|
|
79
|
+
}
|
|
80
|
+
if (data.hasOwnProperty('iscsiInitiatorNetworkId') && data.iscsiInitiatorNetworkId !== null && data.iscsiInitiatorNetworkId !== undefined) {
|
|
81
|
+
obj.setIscsiInitiatorNetworkId(_IPAddressOrFQDN.default.constructFromObject(data['iscsiInitiatorNetworkId']));
|
|
82
|
+
}
|
|
83
|
+
if (data.hasOwnProperty('clientSecret') && data.clientSecret !== null && data.clientSecret !== undefined) {
|
|
84
|
+
obj.setClientSecret(data['clientSecret']);
|
|
85
|
+
}
|
|
86
|
+
if (data.hasOwnProperty('enabledAuthentications') && data.enabledAuthentications !== null && data.enabledAuthentications !== undefined) {
|
|
87
|
+
obj.setEnabledAuthentications(_AuthenticationType.default.constructFromObject(data['enabledAuthentications']));
|
|
88
|
+
}
|
|
89
|
+
if (data.hasOwnProperty('attachedTargets') && data.attachedTargets !== null && data.attachedTargets !== undefined) {
|
|
90
|
+
itemArr = [];
|
|
91
|
+
items = data.attachedTargets;
|
|
92
|
+
for (i = 0; i < items.length; i++) {
|
|
93
|
+
item = _TargetParam.default.constructFromObject(items[i], undefined);
|
|
94
|
+
itemArr.push(item);
|
|
95
|
+
}
|
|
96
|
+
obj.setAttachedTargets(itemArr);
|
|
97
|
+
}
|
|
98
|
+
if (data.hasOwnProperty('numVirtualTargets') && data.numVirtualTargets !== null && data.numVirtualTargets !== undefined) {
|
|
99
|
+
obj.setNumVirtualTargets(data['numVirtualTargets']);
|
|
100
|
+
}
|
|
101
|
+
if (data.hasOwnProperty('clusterReference') && data.clusterReference !== null && data.clusterReference !== undefined) {
|
|
102
|
+
obj.setClusterReference(data['clusterReference']);
|
|
103
|
+
}
|
|
104
|
+
if (data.hasOwnProperty('attachmentSite') && data.attachmentSite !== null && data.attachmentSite !== undefined) {
|
|
105
|
+
obj.setAttachmentSite(_VolumeGroupAttachmentSite.default.constructFromObject(data['attachmentSite']));
|
|
106
|
+
}
|
|
107
|
+
if (!callFromChild) {
|
|
108
|
+
obj.$unknownFields = {
|
|
109
|
+
...data.$unknownFields
|
|
110
|
+
};
|
|
111
|
+
for (const property in data) {
|
|
112
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
113
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
114
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
115
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
116
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
117
|
+
obj.$unknownFields[property] = data[property];
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
107
121
|
}
|
|
122
|
+
return obj;
|
|
123
|
+
}
|
|
108
124
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
125
|
+
/**
|
|
126
|
+
* Converts a given snake_case string to camelCase.
|
|
127
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
128
|
+
* @returns {string} - The converted string in camelCase format.
|
|
129
|
+
*/
|
|
130
|
+
static snakeToCamel(snakeStr) {
|
|
131
|
+
return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
|
|
132
|
+
}
|
|
118
133
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
134
|
+
/**
|
|
135
|
+
* Returns iSCSI initiator name. Exactly one of iscsiInitiatorName and iscsiInitiatorNetworkId must be specified during the attach operation. This field is immutable.
|
|
136
|
+
* @return {string}
|
|
137
|
+
*/
|
|
138
|
+
getIscsiInitiatorName() {
|
|
139
|
+
return this.iscsiInitiatorName;
|
|
140
|
+
}
|
|
127
141
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
142
|
+
/**
|
|
143
|
+
* Sets iSCSI initiator name. Exactly one of iscsiInitiatorName and iscsiInitiatorNetworkId must be specified during the attach operation. This field is immutable.
|
|
144
|
+
* @param {string} iscsiInitiatorName iSCSI initiator name. Exactly one of iscsiInitiatorName and iscsiInitiatorNetworkId must be specified during the attach operation. This field is immutable.
|
|
145
|
+
*/
|
|
146
|
+
setIscsiInitiatorName(iscsiInitiatorName) {
|
|
147
|
+
this.iscsiInitiatorName = iscsiInitiatorName;
|
|
148
|
+
}
|
|
136
149
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
value: function getClientSecret() {
|
|
144
|
-
return this.clientSecret;
|
|
145
|
-
}
|
|
150
|
+
/**
|
|
151
|
+
* @return {IPAddressOrFQDN}
|
|
152
|
+
*/
|
|
153
|
+
getIscsiInitiatorNetworkId() {
|
|
154
|
+
return this.iscsiInitiatorNetworkId;
|
|
155
|
+
}
|
|
146
156
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
value: function setClientSecret(clientSecret) {
|
|
154
|
-
this.clientSecret = clientSecret;
|
|
155
|
-
}
|
|
157
|
+
/**
|
|
158
|
+
* @param {IPAddressOrFQDN} iscsiInitiatorNetworkId
|
|
159
|
+
*/
|
|
160
|
+
setIscsiInitiatorNetworkId(iscsiInitiatorNetworkId) {
|
|
161
|
+
this.iscsiInitiatorNetworkId = iscsiInitiatorNetworkId;
|
|
162
|
+
}
|
|
156
163
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}
|
|
164
|
+
/**
|
|
165
|
+
* Returns iSCSI initiator client secret in case of CHAP authentication. This field should not be provided if the authentication type is not set to CHAP.
|
|
166
|
+
* @return {String}
|
|
167
|
+
*/
|
|
168
|
+
getClientSecret() {
|
|
169
|
+
return this.clientSecret;
|
|
170
|
+
}
|
|
165
171
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
172
|
+
/**
|
|
173
|
+
* Sets iSCSI initiator client secret in case of CHAP authentication. This field should not be provided if the authentication type is not set to CHAP.
|
|
174
|
+
* @param {String} clientSecret iSCSI initiator client secret in case of CHAP authentication. This field should not be provided if the authentication type is not set to CHAP.
|
|
175
|
+
*/
|
|
176
|
+
setClientSecret(clientSecret) {
|
|
177
|
+
this.clientSecret = clientSecret;
|
|
178
|
+
}
|
|
174
179
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
return this.attachedTargets;
|
|
182
|
-
}
|
|
180
|
+
/**
|
|
181
|
+
* @return {AuthenticationType}
|
|
182
|
+
*/
|
|
183
|
+
getEnabledAuthentications() {
|
|
184
|
+
return this.enabledAuthentications;
|
|
185
|
+
}
|
|
183
186
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
this.attachedTargets = attachedTargets;
|
|
191
|
-
}
|
|
187
|
+
/**
|
|
188
|
+
* @param {AuthenticationType} enabledAuthentications
|
|
189
|
+
*/
|
|
190
|
+
setEnabledAuthentications(enabledAuthentications) {
|
|
191
|
+
this.enabledAuthentications = enabledAuthentications;
|
|
192
|
+
}
|
|
192
193
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
value: function getNumVirtualTargets() {
|
|
200
|
-
return this.numVirtualTargets;
|
|
201
|
-
}
|
|
194
|
+
/**
|
|
195
|
+
* @return {TargetParam[]}
|
|
196
|
+
*/
|
|
197
|
+
getAttachedTargets() {
|
|
198
|
+
return this.attachedTargets;
|
|
199
|
+
}
|
|
202
200
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
value: function setNumVirtualTargets(numVirtualTargets) {
|
|
210
|
-
this.numVirtualTargets = numVirtualTargets;
|
|
211
|
-
}
|
|
201
|
+
/**
|
|
202
|
+
* @param {TargetParam[]} attachedTargets
|
|
203
|
+
*/
|
|
204
|
+
setAttachedTargets(attachedTargets) {
|
|
205
|
+
this.attachedTargets = attachedTargets;
|
|
206
|
+
}
|
|
212
207
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
return this.clusterReference;
|
|
221
|
-
}
|
|
208
|
+
/**
|
|
209
|
+
* Returns Number of virtual targets generated for the iSCSI target. This field is immutable.
|
|
210
|
+
* @return {Number}
|
|
211
|
+
*/
|
|
212
|
+
getNumVirtualTargets() {
|
|
213
|
+
return this.numVirtualTargets;
|
|
214
|
+
}
|
|
222
215
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
this.clusterReference = clusterReference;
|
|
231
|
-
}
|
|
216
|
+
/**
|
|
217
|
+
* Sets Number of virtual targets generated for the iSCSI target. This field is immutable.
|
|
218
|
+
* @param {Number} numVirtualTargets Number of virtual targets generated for the iSCSI target. This field is immutable.
|
|
219
|
+
*/
|
|
220
|
+
setNumVirtualTargets(numVirtualTargets) {
|
|
221
|
+
this.numVirtualTargets = numVirtualTargets;
|
|
222
|
+
}
|
|
232
223
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
}
|
|
224
|
+
/**
|
|
225
|
+
* Returns The UUID of the cluster that will host the iSCSI client. This field is read-only.
|
|
226
|
+
* @return {string}
|
|
227
|
+
*/
|
|
228
|
+
getClusterReference() {
|
|
229
|
+
return this.clusterReference;
|
|
230
|
+
}
|
|
241
231
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
232
|
+
/**
|
|
233
|
+
* Sets The UUID of the cluster that will host the iSCSI client. This field is read-only.
|
|
234
|
+
* @param {string} clusterReference The UUID of the cluster that will host the iSCSI client. This field is read-only.
|
|
235
|
+
*/
|
|
236
|
+
setClusterReference(clusterReference) {
|
|
237
|
+
this.clusterReference = clusterReference;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* @return {VolumeGroupAttachmentSite}
|
|
242
|
+
*/
|
|
243
|
+
getAttachmentSite() {
|
|
244
|
+
return this.attachmentSite;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @param {VolumeGroupAttachmentSite} attachmentSite
|
|
249
|
+
*/
|
|
250
|
+
setAttachmentSite(attachmentSite) {
|
|
251
|
+
this.attachmentSite = attachmentSite;
|
|
252
|
+
}
|
|
253
|
+
toJson(forMutation) {
|
|
254
|
+
if (forMutation === false) {
|
|
255
|
+
return {
|
|
256
|
+
...(typeof this.getIscsiInitiatorName() !== 'undefined' && this.getIscsiInitiatorName() !== null ? {
|
|
255
257
|
'iscsiInitiatorName': this.getIscsiInitiatorName()
|
|
256
|
-
} : {}),
|
|
258
|
+
} : {}),
|
|
259
|
+
...(typeof this.getIscsiInitiatorNetworkId() !== 'undefined' && this.getIscsiInitiatorNetworkId() !== null ? {
|
|
257
260
|
'iscsiInitiatorNetworkId': this.getIscsiInitiatorNetworkId().toJson(false)
|
|
258
|
-
} : {}),
|
|
261
|
+
} : {}),
|
|
262
|
+
...(typeof this.getClientSecret() !== 'undefined' && this.getClientSecret() !== null ? {
|
|
259
263
|
'clientSecret': this.getClientSecret()
|
|
260
|
-
} : {}),
|
|
264
|
+
} : {}),
|
|
265
|
+
...(typeof this.getEnabledAuthentications() !== 'undefined' && this.getEnabledAuthentications() !== null ? {
|
|
261
266
|
'enabledAuthentications': this.getEnabledAuthentications()
|
|
262
|
-
} : {}),
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
+
} : {}),
|
|
268
|
+
...(typeof this.getAttachedTargets() !== 'undefined' && this.getAttachedTargets() !== null ? {
|
|
269
|
+
'attachedTargets': this.getAttachedTargets().map(item => item.toJson(false))
|
|
270
|
+
} : {}),
|
|
271
|
+
...(typeof this.getNumVirtualTargets() !== 'undefined' && this.getNumVirtualTargets() !== null ? {
|
|
267
272
|
'numVirtualTargets': this.getNumVirtualTargets()
|
|
268
|
-
} : {}),
|
|
273
|
+
} : {}),
|
|
274
|
+
...(typeof this.getClusterReference() !== 'undefined' && this.getClusterReference() !== null ? {
|
|
269
275
|
'clusterReference': this.getClusterReference()
|
|
270
|
-
} : {}),
|
|
276
|
+
} : {}),
|
|
277
|
+
...(typeof this.getAttachmentSite() !== 'undefined' && this.getAttachmentSite() !== null ? {
|
|
271
278
|
'attachmentSite': this.getAttachmentSite()
|
|
272
|
-
} : {}),
|
|
279
|
+
} : {}),
|
|
280
|
+
...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
273
281
|
'extId': this.getExtId()
|
|
274
|
-
} : {}),
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
282
|
+
} : {}),
|
|
283
|
+
...(typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
284
|
+
'links': this.getLinks().map(item => item.toJson(false))
|
|
285
|
+
} : {}),
|
|
286
|
+
...(typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
279
287
|
'tenantId': this.getTenantId()
|
|
280
|
-
} : {}),
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
|
|
288
|
+
} : {}),
|
|
289
|
+
'$reserved': this.get$Reserved(),
|
|
290
|
+
'$objectType': this.get$ObjectType(),
|
|
291
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
292
|
+
'$unknownFields': {}
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
return {
|
|
296
|
+
...(typeof this.getIscsiInitiatorName() !== 'undefined' && this.getIscsiInitiatorName() !== null ? {
|
|
287
297
|
'iscsiInitiatorName': this.getIscsiInitiatorName()
|
|
288
|
-
} : {}),
|
|
298
|
+
} : {}),
|
|
299
|
+
...(typeof this.getIscsiInitiatorNetworkId() !== 'undefined' && this.getIscsiInitiatorNetworkId() !== null ? {
|
|
289
300
|
'iscsiInitiatorNetworkId': this.getIscsiInitiatorNetworkId().toJson(false)
|
|
290
|
-
} : {}),
|
|
301
|
+
} : {}),
|
|
302
|
+
...(typeof this.getClientSecret() !== 'undefined' && this.getClientSecret() !== null ? {
|
|
291
303
|
'clientSecret': this.getClientSecret()
|
|
292
|
-
} : {}),
|
|
304
|
+
} : {}),
|
|
305
|
+
...(typeof this.getEnabledAuthentications() !== 'undefined' && this.getEnabledAuthentications() !== null ? {
|
|
293
306
|
'enabledAuthentications': this.getEnabledAuthentications()
|
|
294
|
-
} : {}),
|
|
307
|
+
} : {}),
|
|
308
|
+
...(typeof this.getNumVirtualTargets() !== 'undefined' && this.getNumVirtualTargets() !== null ? {
|
|
295
309
|
'numVirtualTargets': this.getNumVirtualTargets()
|
|
296
|
-
} : {}),
|
|
310
|
+
} : {}),
|
|
311
|
+
...(typeof this.getAttachmentSite() !== 'undefined' && this.getAttachmentSite() !== null ? {
|
|
297
312
|
'attachmentSite': this.getAttachmentSite()
|
|
298
|
-
} : {}),
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
}
|
|
313
|
+
} : {}),
|
|
314
|
+
'$reserved': this.get$Reserved(),
|
|
315
|
+
'$objectType': this.get$ObjectType(),
|
|
316
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
317
|
+
'$unknownFields': {}
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
validate(scope, properties) {
|
|
321
|
+
let propList = [];
|
|
322
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
|
|
323
|
+
//cases validate() and validate(scope)
|
|
324
|
+
propList = [];
|
|
325
|
+
} else if (arguments.length === 1) {
|
|
326
|
+
//case validate(properties)
|
|
327
|
+
propList = arguments[0];
|
|
328
|
+
scope = null;
|
|
329
|
+
} else {
|
|
330
|
+
//case validate(scope, properties)
|
|
331
|
+
propList = arguments[1];
|
|
303
332
|
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
scope = null;
|
|
333
|
+
let res = [];
|
|
334
|
+
let err = null;
|
|
335
|
+
propList.forEach(property => {
|
|
336
|
+
err = this.validateProperty(property, scope);
|
|
337
|
+
if (err) {
|
|
338
|
+
res.push(err);
|
|
339
|
+
}
|
|
340
|
+
});
|
|
341
|
+
return new Promise(function (resolve, reject) {
|
|
342
|
+
if (res.length !== 0) {
|
|
343
|
+
reject(err);
|
|
316
344
|
} else {
|
|
317
|
-
|
|
318
|
-
|
|
345
|
+
resolve();
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
validateProperty(scope, property) {
|
|
350
|
+
if (property === "iscsiInitiatorName") {
|
|
351
|
+
if (typeof this.iscsiInitiatorName === 'undefined' || this.iscsiInitiatorName === null) {
|
|
352
|
+
return new _ValidationError.default("iscsiInitiatorName", "undefined or null");
|
|
353
|
+
}
|
|
354
|
+
if (!_ValidationUtils.default.validateMaxLength(this.iscsiInitiatorName, 64)) {
|
|
355
|
+
return new _ValidationError.default("iscsiInitiatorName", "does not satisfy required maxLength constraint: 64");
|
|
319
356
|
}
|
|
320
|
-
var res = [];
|
|
321
|
-
var err = null;
|
|
322
|
-
propList.forEach(function (property) {
|
|
323
|
-
err = _this2.validateProperty(property, scope);
|
|
324
|
-
if (err) {
|
|
325
|
-
res.push(err);
|
|
326
|
-
}
|
|
327
|
-
});
|
|
328
|
-
return new Promise(function (resolve, reject) {
|
|
329
|
-
if (res.length !== 0) {
|
|
330
|
-
reject(err);
|
|
331
|
-
} else {
|
|
332
|
-
resolve();
|
|
333
|
-
}
|
|
334
|
-
});
|
|
335
357
|
}
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
if (property === "iscsiInitiatorName") {
|
|
340
|
-
if (typeof this.iscsiInitiatorName === 'undefined' || this.iscsiInitiatorName === null) {
|
|
341
|
-
return new _ValidationError["default"]("iscsiInitiatorName", "undefined or null");
|
|
342
|
-
}
|
|
343
|
-
if (!_ValidationUtils["default"].validateMaxLength(this.iscsiInitiatorName, 64)) {
|
|
344
|
-
return new _ValidationError["default"]("iscsiInitiatorName", "does not satisfy required maxLength constraint: 64");
|
|
345
|
-
}
|
|
358
|
+
if (property === "iscsiInitiatorNetworkId") {
|
|
359
|
+
if (typeof this.iscsiInitiatorNetworkId === 'undefined' || this.iscsiInitiatorNetworkId === null) {
|
|
360
|
+
return new _ValidationError.default("iscsiInitiatorNetworkId", "undefined or null");
|
|
346
361
|
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
362
|
+
}
|
|
363
|
+
if (property === "clientSecret") {
|
|
364
|
+
if (typeof this.clientSecret === 'undefined' || this.clientSecret === null) {
|
|
365
|
+
return new _ValidationError.default("clientSecret", "undefined or null");
|
|
351
366
|
}
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
367
|
+
}
|
|
368
|
+
if (property === "enabledAuthentications") {
|
|
369
|
+
if (typeof this.enabledAuthentications === 'undefined' || this.enabledAuthentications === null) {
|
|
370
|
+
return new _ValidationError.default("enabledAuthentications", "undefined or null");
|
|
356
371
|
}
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
372
|
+
}
|
|
373
|
+
if (property === "attachedTargets") {
|
|
374
|
+
if (typeof this.attachedTargets === 'undefined' || this.attachedTargets === null) {
|
|
375
|
+
return new _ValidationError.default("attachedTargets", "undefined or null");
|
|
361
376
|
}
|
|
362
|
-
if (
|
|
363
|
-
|
|
364
|
-
return new _ValidationError["default"]("attachedTargets", "undefined or null");
|
|
365
|
-
}
|
|
366
|
-
if (!_ValidationUtils["default"].validateMaxItems(this.attachedTargets, 128)) {
|
|
367
|
-
return new _ValidationError["default"]("attachedTargets", "does not satisfy required maxItems constraint: 128");
|
|
368
|
-
}
|
|
377
|
+
if (!_ValidationUtils.default.validateMaxItems(this.attachedTargets, 128)) {
|
|
378
|
+
return new _ValidationError.default("attachedTargets", "does not satisfy required maxItems constraint: 128");
|
|
369
379
|
}
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
380
|
+
}
|
|
381
|
+
if (property === "numVirtualTargets") {
|
|
382
|
+
if (typeof this.numVirtualTargets === 'undefined' || this.numVirtualTargets === null) {
|
|
383
|
+
return new _ValidationError.default("numVirtualTargets", "undefined or null");
|
|
374
384
|
}
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
if (!_ValidationUtils["default"].validatePattern(this.clusterReference, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
|
|
380
|
-
return new _ValidationError["default"]("clusterReference", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
|
|
381
|
-
}
|
|
385
|
+
}
|
|
386
|
+
if (property === "clusterReference") {
|
|
387
|
+
if (typeof this.clusterReference === 'undefined' || this.clusterReference === null) {
|
|
388
|
+
return new _ValidationError.default("clusterReference", "undefined or null");
|
|
382
389
|
}
|
|
383
|
-
if (
|
|
384
|
-
|
|
385
|
-
return new _ValidationError["default"]("attachmentSite", "undefined or null");
|
|
386
|
-
}
|
|
390
|
+
if (!_ValidationUtils.default.validatePattern(this.clusterReference, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
|
|
391
|
+
return new _ValidationError.default("clusterReference", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
|
|
387
392
|
}
|
|
388
|
-
return new _ValidationError["default"](property, "no such property exists");
|
|
389
393
|
}
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
394
|
-
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
395
|
-
var items, item, i, itemArr, discriminator;
|
|
396
|
-
if (data) {
|
|
397
|
-
obj = obj || new IscsiClient();
|
|
398
|
-
_ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
|
|
399
|
-
if (data.hasOwnProperty('iscsiInitiatorName') && data.iscsiInitiatorName !== null && data.iscsiInitiatorName !== undefined) {
|
|
400
|
-
obj.setIscsiInitiatorName(data['iscsiInitiatorName']);
|
|
401
|
-
}
|
|
402
|
-
if (data.hasOwnProperty('iscsiInitiatorNetworkId') && data.iscsiInitiatorNetworkId !== null && data.iscsiInitiatorNetworkId !== undefined) {
|
|
403
|
-
obj.setIscsiInitiatorNetworkId(_IPAddressOrFQDN["default"].constructFromObject(data['iscsiInitiatorNetworkId']));
|
|
404
|
-
}
|
|
405
|
-
if (data.hasOwnProperty('clientSecret') && data.clientSecret !== null && data.clientSecret !== undefined) {
|
|
406
|
-
obj.setClientSecret(data['clientSecret']);
|
|
407
|
-
}
|
|
408
|
-
if (data.hasOwnProperty('enabledAuthentications') && data.enabledAuthentications !== null && data.enabledAuthentications !== undefined) {
|
|
409
|
-
obj.setEnabledAuthentications(_AuthenticationType["default"].constructFromObject(data['enabledAuthentications']));
|
|
410
|
-
}
|
|
411
|
-
if (data.hasOwnProperty('attachedTargets') && data.attachedTargets !== null && data.attachedTargets !== undefined) {
|
|
412
|
-
itemArr = [];
|
|
413
|
-
items = data.attachedTargets;
|
|
414
|
-
for (i = 0; i < items.length; i++) {
|
|
415
|
-
item = _TargetParam["default"].constructFromObject(items[i], undefined);
|
|
416
|
-
itemArr.push(item);
|
|
417
|
-
}
|
|
418
|
-
obj.setAttachedTargets(itemArr);
|
|
419
|
-
}
|
|
420
|
-
if (data.hasOwnProperty('numVirtualTargets') && data.numVirtualTargets !== null && data.numVirtualTargets !== undefined) {
|
|
421
|
-
obj.setNumVirtualTargets(data['numVirtualTargets']);
|
|
422
|
-
}
|
|
423
|
-
if (data.hasOwnProperty('clusterReference') && data.clusterReference !== null && data.clusterReference !== undefined) {
|
|
424
|
-
obj.setClusterReference(data['clusterReference']);
|
|
425
|
-
}
|
|
426
|
-
if (data.hasOwnProperty('attachmentSite') && data.attachmentSite !== null && data.attachmentSite !== undefined) {
|
|
427
|
-
obj.setAttachmentSite(_VolumeGroupAttachmentSite["default"].constructFromObject(data['attachmentSite']));
|
|
428
|
-
}
|
|
429
|
-
if (!callFromChild) {
|
|
430
|
-
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
431
|
-
for (var property in data) {
|
|
432
|
-
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
433
|
-
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
434
|
-
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
435
|
-
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
436
|
-
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
437
|
-
obj.$unknownFields[property] = data[property];
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
}
|
|
394
|
+
if (property === "attachmentSite") {
|
|
395
|
+
if (typeof this.attachmentSite === 'undefined' || this.attachmentSite === null) {
|
|
396
|
+
return new _ValidationError.default("attachmentSite", "undefined or null");
|
|
441
397
|
}
|
|
442
|
-
return obj;
|
|
443
398
|
}
|
|
399
|
+
return new _ValidationError.default(property, "no such property exists");
|
|
400
|
+
}
|
|
401
|
+
}
|
|
444
402
|
|
|
445
|
-
/**
|
|
446
|
-
* Converts a given snake_case string to camelCase.
|
|
447
|
-
* @param {string} snakeStr - The input string in snake_case format.
|
|
448
|
-
* @returns {string} - The converted string in camelCase format.
|
|
449
|
-
*/
|
|
450
|
-
}, {
|
|
451
|
-
key: "snakeToCamel",
|
|
452
|
-
value: function snakeToCamel(snakeStr) {
|
|
453
|
-
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
454
|
-
return match[1].toUpperCase();
|
|
455
|
-
});
|
|
456
|
-
}
|
|
457
|
-
}]);
|
|
458
|
-
}(_ExternalizableAbstractModel["default"]);
|
|
459
403
|
/**
|
|
460
404
|
* iSCSI initiator name. Exactly one of iscsiInitiatorName and iscsiInitiatorNetworkId must be specified during the attach operation. This field is immutable.
|
|
461
405
|
* @memberof IscsiClient
|
|
462
406
|
*/
|
|
407
|
+
exports.default = IscsiClient;
|
|
463
408
|
function _toJsonMapType(obj, forMutation) {
|
|
464
409
|
if (obj instanceof Map) {
|
|
465
|
-
return Object.fromEntries(Array.from(obj,
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
v = _ref2[1];
|
|
469
|
-
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
470
|
-
}));
|
|
471
|
-
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
472
|
-
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
410
|
+
return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
|
|
411
|
+
} else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
|
|
412
|
+
return Object.fromEntries(Array.from(Object.entries(obj), entry => {
|
|
473
413
|
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
474
414
|
}));
|
|
475
415
|
}
|
|
@@ -531,15 +471,15 @@ IscsiClient.prototype.attachmentSite = undefined;
|
|
|
531
471
|
* A globally unique identifier of an instance that is suitable for external consumption.
|
|
532
472
|
* @memberof IscsiClient
|
|
533
473
|
*/
|
|
534
|
-
_ExternalizableAbstractModel
|
|
474
|
+
_ExternalizableAbstractModel.default.prototype.extId = undefined;
|
|
535
475
|
/**
|
|
536
476
|
* A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
|
|
537
477
|
* @memberof IscsiClient
|
|
538
478
|
*/
|
|
539
|
-
_ExternalizableAbstractModel
|
|
479
|
+
_ExternalizableAbstractModel.default.prototype.links = undefined;
|
|
540
480
|
/**
|
|
541
481
|
* A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this ID to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
|
|
542
482
|
* @memberof IscsiClient
|
|
543
483
|
*/
|
|
544
|
-
_TenantAwareModel
|
|
484
|
+
_TenantAwareModel.default.prototype.tenantId = undefined;
|
|
545
485
|
// Implement OneOfvolumes.v4.config.GetIscsiClientApiResponsedata interface:
|