@nutanix-scratch/volumes-js-client 4.0.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +49 -0
- package/README.md +195 -0
- package/dist/Ntnx-Volumes-js-client-prod.js +1 -0
- package/dist/Ntnx-Volumes-js-client.js +1389 -0
- package/dist/es/ApiClient.d.ts +159 -0
- package/dist/es/ApiClient.js +1211 -0
- package/dist/es/Paginable.d.ts +95 -0
- package/dist/es/Paginable.js +287 -0
- package/dist/es/apis/iscsiclients-endpoints.d.ts +69 -0
- package/dist/es/apis/iscsiclients-endpoints.js +167 -0
- package/dist/es/apis/volumegroups-endpoints.d.ts +342 -0
- package/dist/es/apis/volumegroups-endpoints.js +1023 -0
- package/dist/es/index.d.ts +184 -0
- package/dist/es/index.js +732 -0
- package/dist/es/models/common/v1/config/EntityReference.d.ts +78 -0
- package/dist/es/models/common/v1/config/EntityReference.js +352 -0
- package/dist/es/models/common/v1/config/EntityType.d.ts +19 -0
- package/dist/es/models/common/v1/config/EntityType.js +205 -0
- package/dist/es/models/common/v1/config/FQDN.d.ts +48 -0
- package/dist/es/models/common/v1/config/FQDN.js +242 -0
- package/dist/es/models/common/v1/config/Flag.d.ts +58 -0
- package/dist/es/models/common/v1/config/Flag.js +275 -0
- package/dist/es/models/common/v1/config/IPAddressOrFQDN.d.ts +72 -0
- package/dist/es/models/common/v1/config/IPAddressOrFQDN.js +332 -0
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +62 -0
- package/dist/es/models/common/v1/config/IPv4Address.js +288 -0
- package/dist/es/models/common/v1/config/IPv6Address.d.ts +62 -0
- package/dist/es/models/common/v1/config/IPv6Address.js +288 -0
- package/dist/es/models/common/v1/config/KVPair.d.ts +62 -0
- package/dist/es/models/common/v1/config/KVPair.js +332 -0
- package/dist/es/models/common/v1/config/Message.d.ts +84 -0
- package/dist/es/models/common/v1/config/Message.js +354 -0
- package/dist/es/models/common/v1/config/MessageSeverity.d.ts +19 -0
- package/dist/es/models/common/v1/config/MessageSeverity.js +91 -0
- package/dist/es/models/common/v1/config/Metadata.d.ts +98 -0
- package/dist/es/models/common/v1/config/Metadata.js +413 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +50 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.js +243 -0
- package/dist/es/models/common/v1/response/ApiLink.d.ts +62 -0
- package/dist/es/models/common/v1/response/ApiLink.js +280 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +98 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +438 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +42 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +270 -0
- package/dist/es/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
- package/dist/es/models/common/v1/stats/DownSamplingOperator.js +109 -0
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +50 -0
- package/dist/es/models/prism/v4/config/TaskReference.js +260 -0
- package/dist/es/models/validation/ValidationError.d.ts +13 -0
- package/dist/es/models/validation/ValidationError.js +60 -0
- package/dist/es/models/validation/ValidationScopes.d.ts +9 -0
- package/dist/es/models/validation/ValidationScopes.js +38 -0
- package/dist/es/models/volumes/v4/config/AssociateCategoryApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/AssociateCategoryApiResponse.js +313 -0
- package/dist/es/models/volumes/v4/config/AttachIscsiClientApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/AttachIscsiClientApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/AttachVmApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/AttachVmApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/AuthenticationType.d.ts +19 -0
- package/dist/es/models/volumes/v4/config/AuthenticationType.js +85 -0
- package/dist/es/models/volumes/v4/config/CategoryDetails.d.ts +9 -0
- package/dist/es/models/volumes/v4/config/CategoryDetails.js +131 -0
- package/dist/es/models/volumes/v4/config/CategoryEntityReferences.d.ts +48 -0
- package/dist/es/models/volumes/v4/config/CategoryEntityReferences.js +256 -0
- package/dist/es/models/volumes/v4/config/Cluster.d.ts +62 -0
- package/dist/es/models/volumes/v4/config/Cluster.js +279 -0
- package/dist/es/models/volumes/v4/config/ClusterProjection.d.ts +9 -0
- package/dist/es/models/volumes/v4/config/ClusterProjection.js +129 -0
- package/dist/es/models/volumes/v4/config/CreateVolumeDiskApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/CreateVolumeDiskApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/CreateVolumeGroupApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/CreateVolumeGroupApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/DeleteVolumeDiskApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/DeleteVolumeDiskApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/DeleteVolumeGroupApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/DeleteVolumeGroupApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/DetachIscsiClientApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/DetachIscsiClientApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/DetachVmApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/DetachVmApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/DisassociateCategoryApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/DisassociateCategoryApiResponse.js +313 -0
- package/dist/es/models/volumes/v4/config/DiskStorageFeatures.d.ts +48 -0
- package/dist/es/models/volumes/v4/config/DiskStorageFeatures.js +240 -0
- package/dist/es/models/volumes/v4/config/FlashMode.d.ts +48 -0
- package/dist/es/models/volumes/v4/config/FlashMode.js +239 -0
- package/dist/es/models/volumes/v4/config/GetIscsiClientApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/GetIscsiClientApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/GetVolumeDiskApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/GetVolumeDiskApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/GetVolumeGroupApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/GetVolumeGroupApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/GetVolumeGroupMetadataApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/GetVolumeGroupMetadataApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/IscsiClient.d.ts +113 -0
- package/dist/es/models/volumes/v4/config/IscsiClient.js +495 -0
- package/dist/es/models/volumes/v4/config/IscsiClientAttachment.d.ts +32 -0
- package/dist/es/models/volumes/v4/config/IscsiClientAttachment.js +226 -0
- package/dist/es/models/volumes/v4/config/IscsiClientAttachmentProjection.d.ts +31 -0
- package/dist/es/models/volumes/v4/config/IscsiClientAttachmentProjection.js +223 -0
- package/dist/es/models/volumes/v4/config/IscsiClientProjection.d.ts +38 -0
- package/dist/es/models/volumes/v4/config/IscsiClientProjection.js +255 -0
- package/dist/es/models/volumes/v4/config/IscsiFeatures.d.ts +60 -0
- package/dist/es/models/volumes/v4/config/IscsiFeatures.js +278 -0
- package/dist/es/models/volumes/v4/config/ListCategoryAssociationsApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/ListCategoryAssociationsApiResponse.js +333 -0
- package/dist/es/models/volumes/v4/config/ListExternalIscsiAttachmentsApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/ListExternalIscsiAttachmentsApiResponse.js +338 -0
- package/dist/es/models/volumes/v4/config/ListIscsiClientsApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/ListIscsiClientsApiResponse.js +338 -0
- package/dist/es/models/volumes/v4/config/ListVmAttachmentsApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/ListVmAttachmentsApiResponse.js +338 -0
- package/dist/es/models/volumes/v4/config/ListVolumeDisksApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/ListVolumeDisksApiResponse.js +338 -0
- package/dist/es/models/volumes/v4/config/ListVolumeGroupsApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/ListVolumeGroupsApiResponse.js +338 -0
- package/dist/es/models/volumes/v4/config/MigrateVolumeGroupApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/MigrateVolumeGroupApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/NvmfClient.d.ts +56 -0
- package/dist/es/models/volumes/v4/config/NvmfClient.js +308 -0
- package/dist/es/models/volumes/v4/config/NvmfClientAttachment.d.ts +32 -0
- package/dist/es/models/volumes/v4/config/NvmfClientAttachment.js +228 -0
- package/dist/es/models/volumes/v4/config/NvmfClientAttachmentProjection.d.ts +31 -0
- package/dist/es/models/volumes/v4/config/NvmfClientAttachmentProjection.js +225 -0
- package/dist/es/models/volumes/v4/config/NvmfClientProjection.d.ts +33 -0
- package/dist/es/models/volumes/v4/config/NvmfClientProjection.js +229 -0
- package/dist/es/models/volumes/v4/config/PauseVolumeGroupSynchronousReplicationApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/PauseVolumeGroupSynchronousReplicationApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/ResumeVolumeGroupSynchronousReplicationApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/ResumeVolumeGroupSynchronousReplicationApiResponse.js +313 -0
- package/dist/es/models/volumes/v4/config/RevertSpec.d.ts +60 -0
- package/dist/es/models/volumes/v4/config/RevertSpec.js +250 -0
- package/dist/es/models/volumes/v4/config/RevertVolumeGroupApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/RevertVolumeGroupApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/SharingStatus.d.ts +19 -0
- package/dist/es/models/volumes/v4/config/SharingStatus.js +85 -0
- package/dist/es/models/volumes/v4/config/StorageFeatures.d.ts +48 -0
- package/dist/es/models/volumes/v4/config/StorageFeatures.js +240 -0
- package/dist/es/models/volumes/v4/config/TargetParam.d.ts +64 -0
- package/dist/es/models/volumes/v4/config/TargetParam.js +284 -0
- package/dist/es/models/volumes/v4/config/Task.d.ts +50 -0
- package/dist/es/models/volumes/v4/config/Task.js +245 -0
- package/dist/es/models/volumes/v4/config/UpdateIscsiClientApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/UpdateIscsiClientApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/UpdateVolumeDiskApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/UpdateVolumeDiskApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/UpdateVolumeGroupApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/UpdateVolumeGroupApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/config/UpdateVolumeGroupMetadataApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/UpdateVolumeGroupMetadataApiResponse.js +313 -0
- package/dist/es/models/volumes/v4/config/UpdateVolumeGroupMetadataInfoApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/config/UpdateVolumeGroupMetadataInfoApiResponse.js +313 -0
- package/dist/es/models/volumes/v4/config/UsageType.d.ts +19 -0
- package/dist/es/models/volumes/v4/config/UsageType.js +97 -0
- package/dist/es/models/volumes/v4/config/VmAttachment.d.ts +32 -0
- package/dist/es/models/volumes/v4/config/VmAttachment.js +225 -0
- package/dist/es/models/volumes/v4/config/VmAttachmentProjection.d.ts +9 -0
- package/dist/es/models/volumes/v4/config/VmAttachmentProjection.js +129 -0
- package/dist/es/models/volumes/v4/config/VolumeDisk.d.ts +92 -0
- package/dist/es/models/volumes/v4/config/VolumeDisk.js +433 -0
- package/dist/es/models/volumes/v4/config/VolumeDiskProjection.d.ts +9 -0
- package/dist/es/models/volumes/v4/config/VolumeDiskProjection.js +131 -0
- package/dist/es/models/volumes/v4/config/VolumeGroup.d.ts +166 -0
- package/dist/es/models/volumes/v4/config/VolumeGroup.js +697 -0
- package/dist/es/models/volumes/v4/config/VolumeGroupAttachmentSite.d.ts +19 -0
- package/dist/es/models/volumes/v4/config/VolumeGroupAttachmentSite.js +85 -0
- package/dist/es/models/volumes/v4/config/VolumeGroupMetadata.d.ts +62 -0
- package/dist/es/models/volumes/v4/config/VolumeGroupMetadata.js +284 -0
- package/dist/es/models/volumes/v4/config/VolumeGroupMetadataProjection.d.ts +9 -0
- package/dist/es/models/volumes/v4/config/VolumeGroupMetadataProjection.js +129 -0
- package/dist/es/models/volumes/v4/config/VolumeGroupProjection.d.ts +53 -0
- package/dist/es/models/volumes/v4/config/VolumeGroupProjection.js +314 -0
- package/dist/es/models/volumes/v4/error/AppMessage.d.ts +108 -0
- package/dist/es/models/volumes/v4/error/AppMessage.js +432 -0
- package/dist/es/models/volumes/v4/error/ErrorResponse.d.ts +48 -0
- package/dist/es/models/volumes/v4/error/ErrorResponse.js +314 -0
- package/dist/es/models/volumes/v4/error/SchemaValidationError.d.ts +98 -0
- package/dist/es/models/volumes/v4/error/SchemaValidationError.js +407 -0
- package/dist/es/models/volumes/v4/error/SchemaValidationErrorMessage.d.ts +74 -0
- package/dist/es/models/volumes/v4/error/SchemaValidationErrorMessage.js +318 -0
- package/dist/es/models/volumes/v4/stats/GetVolumeDiskStatsApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/stats/GetVolumeDiskStatsApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/stats/GetVolumeGroupStatsApiResponse.d.ts +59 -0
- package/dist/es/models/volumes/v4/stats/GetVolumeGroupStatsApiResponse.js +311 -0
- package/dist/es/models/volumes/v4/stats/TimeValuePair.d.ts +62 -0
- package/dist/es/models/volumes/v4/stats/TimeValuePair.js +279 -0
- package/dist/es/models/volumes/v4/stats/VolumeDiskStats.d.ts +170 -0
- package/dist/es/models/volumes/v4/stats/VolumeDiskStats.js +728 -0
- package/dist/es/models/volumes/v4/stats/VolumeGroupStats.d.ts +170 -0
- package/dist/es/models/volumes/v4/stats/VolumeGroupStats.js +728 -0
- package/dist/es/models/volumes/v4/stats/VolumeGroupStatsProjection.d.ts +9 -0
- package/dist/es/models/volumes/v4/stats/VolumeGroupStatsProjection.js +130 -0
- package/dist/es/utils/ValidationUtils.d.ts +13 -0
- package/dist/es/utils/ValidationUtils.js +85 -0
- package/dist/lib/ApiClient.d.ts +159 -0
- package/dist/lib/ApiClient.js +1211 -0
- package/dist/lib/Paginable.d.ts +95 -0
- package/dist/lib/Paginable.js +287 -0
- package/dist/lib/apis/iscsiclients-endpoints.d.ts +69 -0
- package/dist/lib/apis/iscsiclients-endpoints.js +167 -0
- package/dist/lib/apis/volumegroups-endpoints.d.ts +342 -0
- package/dist/lib/apis/volumegroups-endpoints.js +1023 -0
- package/dist/lib/index.d.ts +184 -0
- package/dist/lib/index.js +732 -0
- package/dist/lib/models/common/v1/config/EntityReference.d.ts +78 -0
- package/dist/lib/models/common/v1/config/EntityReference.js +352 -0
- package/dist/lib/models/common/v1/config/EntityType.d.ts +19 -0
- package/dist/lib/models/common/v1/config/EntityType.js +205 -0
- package/dist/lib/models/common/v1/config/FQDN.d.ts +48 -0
- package/dist/lib/models/common/v1/config/FQDN.js +242 -0
- package/dist/lib/models/common/v1/config/Flag.d.ts +58 -0
- package/dist/lib/models/common/v1/config/Flag.js +275 -0
- package/dist/lib/models/common/v1/config/IPAddressOrFQDN.d.ts +72 -0
- package/dist/lib/models/common/v1/config/IPAddressOrFQDN.js +332 -0
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +62 -0
- package/dist/lib/models/common/v1/config/IPv4Address.js +288 -0
- package/dist/lib/models/common/v1/config/IPv6Address.d.ts +62 -0
- package/dist/lib/models/common/v1/config/IPv6Address.js +288 -0
- package/dist/lib/models/common/v1/config/KVPair.d.ts +62 -0
- package/dist/lib/models/common/v1/config/KVPair.js +332 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +84 -0
- package/dist/lib/models/common/v1/config/Message.js +354 -0
- package/dist/lib/models/common/v1/config/MessageSeverity.d.ts +19 -0
- package/dist/lib/models/common/v1/config/MessageSeverity.js +91 -0
- package/dist/lib/models/common/v1/config/Metadata.d.ts +98 -0
- package/dist/lib/models/common/v1/config/Metadata.js +413 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +50 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +243 -0
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +62 -0
- package/dist/lib/models/common/v1/response/ApiLink.js +280 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +98 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +438 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +42 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +270 -0
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +109 -0
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +50 -0
- package/dist/lib/models/prism/v4/config/TaskReference.js +260 -0
- package/dist/lib/models/validation/ValidationError.d.ts +13 -0
- package/dist/lib/models/validation/ValidationError.js +60 -0
- package/dist/lib/models/validation/ValidationScopes.d.ts +9 -0
- package/dist/lib/models/validation/ValidationScopes.js +38 -0
- package/dist/lib/models/volumes/v4/config/AssociateCategoryApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/AssociateCategoryApiResponse.js +313 -0
- package/dist/lib/models/volumes/v4/config/AttachIscsiClientApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/AttachIscsiClientApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/AttachVmApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/AttachVmApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/AuthenticationType.d.ts +19 -0
- package/dist/lib/models/volumes/v4/config/AuthenticationType.js +85 -0
- package/dist/lib/models/volumes/v4/config/CategoryDetails.d.ts +9 -0
- package/dist/lib/models/volumes/v4/config/CategoryDetails.js +131 -0
- package/dist/lib/models/volumes/v4/config/CategoryEntityReferences.d.ts +48 -0
- package/dist/lib/models/volumes/v4/config/CategoryEntityReferences.js +256 -0
- package/dist/lib/models/volumes/v4/config/Cluster.d.ts +62 -0
- package/dist/lib/models/volumes/v4/config/Cluster.js +279 -0
- package/dist/lib/models/volumes/v4/config/ClusterProjection.d.ts +9 -0
- package/dist/lib/models/volumes/v4/config/ClusterProjection.js +129 -0
- package/dist/lib/models/volumes/v4/config/CreateVolumeDiskApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/CreateVolumeDiskApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/CreateVolumeGroupApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/CreateVolumeGroupApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/DeleteVolumeDiskApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/DeleteVolumeDiskApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/DeleteVolumeGroupApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/DeleteVolumeGroupApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/DetachIscsiClientApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/DetachIscsiClientApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/DetachVmApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/DetachVmApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/DisassociateCategoryApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/DisassociateCategoryApiResponse.js +313 -0
- package/dist/lib/models/volumes/v4/config/DiskStorageFeatures.d.ts +48 -0
- package/dist/lib/models/volumes/v4/config/DiskStorageFeatures.js +240 -0
- package/dist/lib/models/volumes/v4/config/FlashMode.d.ts +48 -0
- package/dist/lib/models/volumes/v4/config/FlashMode.js +239 -0
- package/dist/lib/models/volumes/v4/config/GetIscsiClientApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/GetIscsiClientApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/GetVolumeDiskApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/GetVolumeDiskApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/GetVolumeGroupApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/GetVolumeGroupApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/GetVolumeGroupMetadataApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/GetVolumeGroupMetadataApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/IscsiClient.d.ts +113 -0
- package/dist/lib/models/volumes/v4/config/IscsiClient.js +495 -0
- package/dist/lib/models/volumes/v4/config/IscsiClientAttachment.d.ts +32 -0
- package/dist/lib/models/volumes/v4/config/IscsiClientAttachment.js +226 -0
- package/dist/lib/models/volumes/v4/config/IscsiClientAttachmentProjection.d.ts +31 -0
- package/dist/lib/models/volumes/v4/config/IscsiClientAttachmentProjection.js +223 -0
- package/dist/lib/models/volumes/v4/config/IscsiClientProjection.d.ts +38 -0
- package/dist/lib/models/volumes/v4/config/IscsiClientProjection.js +255 -0
- package/dist/lib/models/volumes/v4/config/IscsiFeatures.d.ts +60 -0
- package/dist/lib/models/volumes/v4/config/IscsiFeatures.js +278 -0
- package/dist/lib/models/volumes/v4/config/ListCategoryAssociationsApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/ListCategoryAssociationsApiResponse.js +333 -0
- package/dist/lib/models/volumes/v4/config/ListExternalIscsiAttachmentsApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/ListExternalIscsiAttachmentsApiResponse.js +338 -0
- package/dist/lib/models/volumes/v4/config/ListIscsiClientsApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/ListIscsiClientsApiResponse.js +338 -0
- package/dist/lib/models/volumes/v4/config/ListVmAttachmentsApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/ListVmAttachmentsApiResponse.js +338 -0
- package/dist/lib/models/volumes/v4/config/ListVolumeDisksApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/ListVolumeDisksApiResponse.js +338 -0
- package/dist/lib/models/volumes/v4/config/ListVolumeGroupsApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/ListVolumeGroupsApiResponse.js +338 -0
- package/dist/lib/models/volumes/v4/config/MigrateVolumeGroupApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/MigrateVolumeGroupApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/NvmfClient.d.ts +56 -0
- package/dist/lib/models/volumes/v4/config/NvmfClient.js +308 -0
- package/dist/lib/models/volumes/v4/config/NvmfClientAttachment.d.ts +32 -0
- package/dist/lib/models/volumes/v4/config/NvmfClientAttachment.js +228 -0
- package/dist/lib/models/volumes/v4/config/NvmfClientAttachmentProjection.d.ts +31 -0
- package/dist/lib/models/volumes/v4/config/NvmfClientAttachmentProjection.js +225 -0
- package/dist/lib/models/volumes/v4/config/NvmfClientProjection.d.ts +33 -0
- package/dist/lib/models/volumes/v4/config/NvmfClientProjection.js +229 -0
- package/dist/lib/models/volumes/v4/config/PauseVolumeGroupSynchronousReplicationApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/PauseVolumeGroupSynchronousReplicationApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/ResumeVolumeGroupSynchronousReplicationApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/ResumeVolumeGroupSynchronousReplicationApiResponse.js +313 -0
- package/dist/lib/models/volumes/v4/config/RevertSpec.d.ts +60 -0
- package/dist/lib/models/volumes/v4/config/RevertSpec.js +250 -0
- package/dist/lib/models/volumes/v4/config/RevertVolumeGroupApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/RevertVolumeGroupApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/SharingStatus.d.ts +19 -0
- package/dist/lib/models/volumes/v4/config/SharingStatus.js +85 -0
- package/dist/lib/models/volumes/v4/config/StorageFeatures.d.ts +48 -0
- package/dist/lib/models/volumes/v4/config/StorageFeatures.js +240 -0
- package/dist/lib/models/volumes/v4/config/TargetParam.d.ts +64 -0
- package/dist/lib/models/volumes/v4/config/TargetParam.js +284 -0
- package/dist/lib/models/volumes/v4/config/Task.d.ts +50 -0
- package/dist/lib/models/volumes/v4/config/Task.js +245 -0
- package/dist/lib/models/volumes/v4/config/UpdateIscsiClientApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/UpdateIscsiClientApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/UpdateVolumeDiskApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/UpdateVolumeDiskApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupMetadataApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupMetadataApiResponse.js +313 -0
- package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupMetadataInfoApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupMetadataInfoApiResponse.js +313 -0
- package/dist/lib/models/volumes/v4/config/UsageType.d.ts +19 -0
- package/dist/lib/models/volumes/v4/config/UsageType.js +97 -0
- package/dist/lib/models/volumes/v4/config/VmAttachment.d.ts +32 -0
- package/dist/lib/models/volumes/v4/config/VmAttachment.js +225 -0
- package/dist/lib/models/volumes/v4/config/VmAttachmentProjection.d.ts +9 -0
- package/dist/lib/models/volumes/v4/config/VmAttachmentProjection.js +129 -0
- package/dist/lib/models/volumes/v4/config/VolumeDisk.d.ts +92 -0
- package/dist/lib/models/volumes/v4/config/VolumeDisk.js +433 -0
- package/dist/lib/models/volumes/v4/config/VolumeDiskProjection.d.ts +9 -0
- package/dist/lib/models/volumes/v4/config/VolumeDiskProjection.js +131 -0
- package/dist/lib/models/volumes/v4/config/VolumeGroup.d.ts +166 -0
- package/dist/lib/models/volumes/v4/config/VolumeGroup.js +697 -0
- package/dist/lib/models/volumes/v4/config/VolumeGroupAttachmentSite.d.ts +19 -0
- package/dist/lib/models/volumes/v4/config/VolumeGroupAttachmentSite.js +85 -0
- package/dist/lib/models/volumes/v4/config/VolumeGroupMetadata.d.ts +62 -0
- package/dist/lib/models/volumes/v4/config/VolumeGroupMetadata.js +284 -0
- package/dist/lib/models/volumes/v4/config/VolumeGroupMetadataProjection.d.ts +9 -0
- package/dist/lib/models/volumes/v4/config/VolumeGroupMetadataProjection.js +129 -0
- package/dist/lib/models/volumes/v4/config/VolumeGroupProjection.d.ts +53 -0
- package/dist/lib/models/volumes/v4/config/VolumeGroupProjection.js +314 -0
- package/dist/lib/models/volumes/v4/error/AppMessage.d.ts +108 -0
- package/dist/lib/models/volumes/v4/error/AppMessage.js +432 -0
- package/dist/lib/models/volumes/v4/error/ErrorResponse.d.ts +48 -0
- package/dist/lib/models/volumes/v4/error/ErrorResponse.js +314 -0
- package/dist/lib/models/volumes/v4/error/SchemaValidationError.d.ts +98 -0
- package/dist/lib/models/volumes/v4/error/SchemaValidationError.js +407 -0
- package/dist/lib/models/volumes/v4/error/SchemaValidationErrorMessage.d.ts +74 -0
- package/dist/lib/models/volumes/v4/error/SchemaValidationErrorMessage.js +318 -0
- package/dist/lib/models/volumes/v4/stats/GetVolumeDiskStatsApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/stats/GetVolumeDiskStatsApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/stats/GetVolumeGroupStatsApiResponse.d.ts +59 -0
- package/dist/lib/models/volumes/v4/stats/GetVolumeGroupStatsApiResponse.js +311 -0
- package/dist/lib/models/volumes/v4/stats/TimeValuePair.d.ts +62 -0
- package/dist/lib/models/volumes/v4/stats/TimeValuePair.js +279 -0
- package/dist/lib/models/volumes/v4/stats/VolumeDiskStats.d.ts +170 -0
- package/dist/lib/models/volumes/v4/stats/VolumeDiskStats.js +728 -0
- package/dist/lib/models/volumes/v4/stats/VolumeGroupStats.d.ts +170 -0
- package/dist/lib/models/volumes/v4/stats/VolumeGroupStats.js +728 -0
- package/dist/lib/models/volumes/v4/stats/VolumeGroupStatsProjection.d.ts +9 -0
- package/dist/lib/models/volumes/v4/stats/VolumeGroupStatsProjection.js +130 -0
- package/dist/lib/utils/ValidationUtils.d.ts +13 -0
- package/dist/lib/utils/ValidationUtils.js +85 -0
- package/package.json +53 -0
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _EntityReference = _interopRequireDefault(require("../../../common/v1/config/EntityReference"));
|
|
8
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
9
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
10
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
+
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); }
|
|
13
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
14
|
+
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."); }
|
|
15
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
16
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
17
|
+
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; } }
|
|
18
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
19
|
+
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; }
|
|
20
|
+
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; }
|
|
21
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
22
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
24
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
25
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
26
|
+
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); }
|
|
27
|
+
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
|
28
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
|
|
29
|
+
* Nutanix Volumes Versioned APIs
|
|
30
|
+
*
|
|
31
|
+
* OpenAPI spec version: 4.0.1-beta-1
|
|
32
|
+
*
|
|
33
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
34
|
+
*
|
|
35
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
36
|
+
*
|
|
37
|
+
* Do not edit the class manually.
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
/**
|
|
41
|
+
* The CategoryEntityReferences model module.
|
|
42
|
+
* @module Ntnx/CategoryEntityReferences
|
|
43
|
+
* @version 4.0.1-beta-1
|
|
44
|
+
* @class CategoryEntityReferences
|
|
45
|
+
*/
|
|
46
|
+
var _CategoryEntityReferences_brand = /*#__PURE__*/new WeakSet();
|
|
47
|
+
var CategoryEntityReferences = exports["default"] = /*#__PURE__*/function () {
|
|
48
|
+
/**
|
|
49
|
+
* Constructs a new <code>CategoryEntityReferences</code>.
|
|
50
|
+
* The list of categories to be associated/disassociated with the Volume Group. This is a mandatory field.
|
|
51
|
+
* @alias module:Ntnx/CategoryEntityReferences
|
|
52
|
+
*/
|
|
53
|
+
function CategoryEntityReferences() {
|
|
54
|
+
_classCallCheck(this, CategoryEntityReferences);
|
|
55
|
+
/*
|
|
56
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
57
|
+
* @param {Object} obj
|
|
58
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
59
|
+
* Otherwise, just returns the input object.
|
|
60
|
+
*/
|
|
61
|
+
_classPrivateMethodInitSpec(this, _CategoryEntityReferences_brand);
|
|
62
|
+
this.$objectType = "volumes.v4.config.CategoryEntityReferences";
|
|
63
|
+
this.$reserved = {
|
|
64
|
+
'$fv': "v4.r0.b1"
|
|
65
|
+
};
|
|
66
|
+
this.$unknownFields = {};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Constructs a <code>CategoryEntityReferences</code> from a plain JavaScript object, optionally creating a new instance.
|
|
71
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
72
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
73
|
+
* @param {module:Ntnx/CategoryEntityReferences} obj Optional instance to populate.
|
|
74
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
75
|
+
* @return {module:Ntnx/CategoryEntityReferences} The populated <code>CategoryEntityReferences</code> instance.
|
|
76
|
+
*/
|
|
77
|
+
return _createClass(CategoryEntityReferences, [{
|
|
78
|
+
key: "getCategories",
|
|
79
|
+
value:
|
|
80
|
+
/**
|
|
81
|
+
* @return {}
|
|
82
|
+
*/
|
|
83
|
+
function getCategories() {
|
|
84
|
+
return this.categories;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @param {} categories
|
|
89
|
+
*/
|
|
90
|
+
}, {
|
|
91
|
+
key: "setCategories",
|
|
92
|
+
value: function setCategories(categories) {
|
|
93
|
+
this.categories = categories;
|
|
94
|
+
}
|
|
95
|
+
}, {
|
|
96
|
+
key: "get$Reserved",
|
|
97
|
+
value: function get$Reserved() {
|
|
98
|
+
return this.$reserved;
|
|
99
|
+
}
|
|
100
|
+
}, {
|
|
101
|
+
key: "get$ObjectType",
|
|
102
|
+
value: function get$ObjectType() {
|
|
103
|
+
return this.$objectType;
|
|
104
|
+
}
|
|
105
|
+
}, {
|
|
106
|
+
key: "get$UnknownFields",
|
|
107
|
+
value: function get$UnknownFields() {
|
|
108
|
+
return this.$unknownFields;
|
|
109
|
+
}
|
|
110
|
+
}, {
|
|
111
|
+
key: "toJson",
|
|
112
|
+
value: function toJson(forMutation) {
|
|
113
|
+
if (forMutation === false) {
|
|
114
|
+
return _objectSpread(_objectSpread({}, typeof this.getCategories() !== 'undefined' && this.getCategories() !== null ? {
|
|
115
|
+
'categories': this.getCategories().map(function (item) {
|
|
116
|
+
return item.toJson(false);
|
|
117
|
+
})
|
|
118
|
+
} : {}), {}, {
|
|
119
|
+
'$reserved': this.get$Reserved(),
|
|
120
|
+
'$objectType': this.get$ObjectType(),
|
|
121
|
+
'$unknownFields': this.get$UnknownFields()
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
return _objectSpread(_objectSpread({}, typeof this.getCategories() !== 'undefined' && this.getCategories() !== null ? {
|
|
125
|
+
'categories': this.getCategories().map(function (item) {
|
|
126
|
+
return item.toJson(false);
|
|
127
|
+
})
|
|
128
|
+
} : {}), {}, {
|
|
129
|
+
'$reserved': this.get$Reserved(),
|
|
130
|
+
'$objectType': this.get$ObjectType(),
|
|
131
|
+
'$unknownFields': this.get$UnknownFields()
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
}, {
|
|
135
|
+
key: "validate",
|
|
136
|
+
value: function validate(scope, properties) {
|
|
137
|
+
var _this = this;
|
|
138
|
+
var propList = [];
|
|
139
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
140
|
+
//cases validate() and validate(scope)
|
|
141
|
+
propList = [];
|
|
142
|
+
} else if (arguments.length === 1) {
|
|
143
|
+
//case validate(properties)
|
|
144
|
+
propList = arguments[0];
|
|
145
|
+
scope = null;
|
|
146
|
+
} else {
|
|
147
|
+
//case validate(scope, properties)
|
|
148
|
+
propList = arguments[1];
|
|
149
|
+
}
|
|
150
|
+
var res = [];
|
|
151
|
+
var err = null;
|
|
152
|
+
propList.forEach(function (property) {
|
|
153
|
+
err = _this.validateProperty(property, scope);
|
|
154
|
+
if (err) {
|
|
155
|
+
res.push(err);
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
return new Promise(function (resolve, reject) {
|
|
159
|
+
if (res.length !== 0) {
|
|
160
|
+
reject(err);
|
|
161
|
+
} else {
|
|
162
|
+
resolve();
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
}, {
|
|
167
|
+
key: "validateProperty",
|
|
168
|
+
value: function validateProperty(scope, property) {
|
|
169
|
+
if (property === "categories") {
|
|
170
|
+
if (typeof this.categories === 'undefined' || this.categories === null) {
|
|
171
|
+
return new _ValidationError["default"]("categories", "undefined or null");
|
|
172
|
+
}
|
|
173
|
+
if (!_ValidationUtils["default"].validateMaxItems(this.categories, 20)) {
|
|
174
|
+
return new _ValidationError["default"]("categories", "does not satisfy required maxItems constraint: 20");
|
|
175
|
+
}
|
|
176
|
+
if (!_ValidationUtils["default"].validateMinItems(this.categories, 1)) {
|
|
177
|
+
return new _ValidationError["default"]("categories", "does not satisfy required minItems constraint: 1");
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
if (property === "$reserved") {
|
|
181
|
+
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
182
|
+
return new _ValidationError["default"]("$reserved", "undefined or null");
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
if (property === "$objectType") {
|
|
186
|
+
if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
|
|
187
|
+
return new _ValidationError["default"]("$objectType", "undefined or null");
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
if (property === "$unknownFields") {
|
|
191
|
+
if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
|
|
192
|
+
return new _ValidationError["default"]("$unknownFields", "undefined or null");
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
196
|
+
}
|
|
197
|
+
}], [{
|
|
198
|
+
key: "constructFromObject",
|
|
199
|
+
value: function constructFromObject(data, obj) {
|
|
200
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
201
|
+
var items, item, i, itemArr, discriminator;
|
|
202
|
+
if (data) {
|
|
203
|
+
obj = obj || new CategoryEntityReferences();
|
|
204
|
+
if (data.hasOwnProperty('categories') && data.categories !== null && data.categories !== undefined) {
|
|
205
|
+
itemArr = [];
|
|
206
|
+
items = data.categories;
|
|
207
|
+
for (i = 0; i < items.length; i++) {
|
|
208
|
+
item = _EntityReference["default"].constructFromObject(items[i], undefined);
|
|
209
|
+
itemArr.push(item);
|
|
210
|
+
}
|
|
211
|
+
obj.setCategories(itemArr);
|
|
212
|
+
}
|
|
213
|
+
if (data.hasOwnProperty('$reserved')) {
|
|
214
|
+
obj.$reserved = data['$reserved'];
|
|
215
|
+
}
|
|
216
|
+
if (data.hasOwnProperty('$objectType')) {
|
|
217
|
+
obj.$objectType = data['$objectType'];
|
|
218
|
+
}
|
|
219
|
+
if (data.hasOwnProperty('$unknownFields')) {
|
|
220
|
+
obj.$unknownFields = data['$unknownFields'];
|
|
221
|
+
}
|
|
222
|
+
if (!callFromChild) {
|
|
223
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
224
|
+
for (var property in data) {
|
|
225
|
+
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
226
|
+
obj.$unknownFields[property] = data[property];
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
return obj;
|
|
232
|
+
}
|
|
233
|
+
}]);
|
|
234
|
+
}();
|
|
235
|
+
/**
|
|
236
|
+
* @memberof CategoryEntityReferences
|
|
237
|
+
*/
|
|
238
|
+
function _toJsonMapType(obj, forMutation) {
|
|
239
|
+
if (obj instanceof Map) {
|
|
240
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
241
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
242
|
+
k = _ref2[0],
|
|
243
|
+
v = _ref2[1];
|
|
244
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
245
|
+
}));
|
|
246
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
247
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
248
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
249
|
+
}));
|
|
250
|
+
}
|
|
251
|
+
return obj;
|
|
252
|
+
}
|
|
253
|
+
CategoryEntityReferences.prototype.categories = undefined;
|
|
254
|
+
CategoryEntityReferences.prototype.$reserved = undefined;
|
|
255
|
+
CategoryEntityReferences.prototype.$objectType = undefined;
|
|
256
|
+
CategoryEntityReferences.prototype.$unknownFields = undefined;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Cluster model module.
|
|
3
|
+
* @module Ntnx/Cluster
|
|
4
|
+
* @version 4.0.1-beta-1
|
|
5
|
+
* @class Cluster
|
|
6
|
+
*/
|
|
7
|
+
export default class Cluster {
|
|
8
|
+
/**
|
|
9
|
+
* Constructs a <code>Cluster</code> from a plain JavaScript object, optionally creating a new instance.
|
|
10
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
11
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
12
|
+
* @param {module:Ntnx/Cluster} obj Optional instance to populate.
|
|
13
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
14
|
+
* @return {module:Ntnx/Cluster} The populated <code>Cluster</code> instance.
|
|
15
|
+
*/
|
|
16
|
+
static constructFromObject(data: any, obj: any, callFromChild?: boolean): any;
|
|
17
|
+
$objectType: string;
|
|
18
|
+
$reserved: {
|
|
19
|
+
$fv: string;
|
|
20
|
+
};
|
|
21
|
+
$unknownFields: {};
|
|
22
|
+
/**
|
|
23
|
+
* Returns Cluster Uuid.
|
|
24
|
+
* @return {}
|
|
25
|
+
*/
|
|
26
|
+
getClusterExtId(): any;
|
|
27
|
+
/**
|
|
28
|
+
* Sets Cluster Uuid.
|
|
29
|
+
* @param {} clusterExtId Cluster Uuid.
|
|
30
|
+
*/
|
|
31
|
+
setClusterExtId(clusterExtId: any): void;
|
|
32
|
+
clusterExtId: any;
|
|
33
|
+
/**
|
|
34
|
+
* Returns Name of the Cluster.
|
|
35
|
+
* @return {}
|
|
36
|
+
*/
|
|
37
|
+
getClusterName(): any;
|
|
38
|
+
/**
|
|
39
|
+
* Sets Name of the Cluster.
|
|
40
|
+
* @param {} clusterName Name of the Cluster.
|
|
41
|
+
*/
|
|
42
|
+
setClusterName(clusterName: any): void;
|
|
43
|
+
clusterName: any;
|
|
44
|
+
get$Reserved(): {
|
|
45
|
+
$fv: string;
|
|
46
|
+
};
|
|
47
|
+
get$ObjectType(): string;
|
|
48
|
+
get$UnknownFields(): {};
|
|
49
|
+
toJson(forMutation: any): {
|
|
50
|
+
$reserved: {
|
|
51
|
+
$fv: string;
|
|
52
|
+
};
|
|
53
|
+
$objectType: string;
|
|
54
|
+
$unknownFields: {};
|
|
55
|
+
clusterName?: any;
|
|
56
|
+
clusterExtId?: any;
|
|
57
|
+
};
|
|
58
|
+
validate(scope: any, properties: any, ...args: any[]): Promise<any>;
|
|
59
|
+
validateProperty(scope: any, property: any): ValidationError;
|
|
60
|
+
#private;
|
|
61
|
+
}
|
|
62
|
+
import ValidationError from "../../../validation/ValidationError";
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
8
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
9
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
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); }
|
|
12
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
13
|
+
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."); }
|
|
14
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
15
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
16
|
+
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; } }
|
|
17
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
18
|
+
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; }
|
|
19
|
+
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; }
|
|
20
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
22
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
23
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
24
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
25
|
+
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); }
|
|
26
|
+
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
|
27
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
|
|
28
|
+
* Nutanix Volumes Versioned APIs
|
|
29
|
+
*
|
|
30
|
+
* OpenAPI spec version: 4.0.1-beta-1
|
|
31
|
+
*
|
|
32
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
33
|
+
*
|
|
34
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
35
|
+
*
|
|
36
|
+
* Do not edit the class manually.
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* The Cluster model module.
|
|
41
|
+
* @module Ntnx/Cluster
|
|
42
|
+
* @version 4.0.1-beta-1
|
|
43
|
+
* @class Cluster
|
|
44
|
+
*/
|
|
45
|
+
var _Cluster_brand = /*#__PURE__*/new WeakSet();
|
|
46
|
+
var Cluster = exports["default"] = /*#__PURE__*/function () {
|
|
47
|
+
/**
|
|
48
|
+
* Constructs a new <code>Cluster</code>.
|
|
49
|
+
* @alias module:Ntnx/Cluster
|
|
50
|
+
*/
|
|
51
|
+
function Cluster() {
|
|
52
|
+
_classCallCheck(this, Cluster);
|
|
53
|
+
/*
|
|
54
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
55
|
+
* @param {Object} obj
|
|
56
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
57
|
+
* Otherwise, just returns the input object.
|
|
58
|
+
*/
|
|
59
|
+
_classPrivateMethodInitSpec(this, _Cluster_brand);
|
|
60
|
+
this.$objectType = "volumes.v4.config.Cluster";
|
|
61
|
+
this.$reserved = {
|
|
62
|
+
'$fv': "v4.r0.b1"
|
|
63
|
+
};
|
|
64
|
+
this.$unknownFields = {};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Constructs a <code>Cluster</code> from a plain JavaScript object, optionally creating a new instance.
|
|
69
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
70
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
71
|
+
* @param {module:Ntnx/Cluster} obj Optional instance to populate.
|
|
72
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
73
|
+
* @return {module:Ntnx/Cluster} The populated <code>Cluster</code> instance.
|
|
74
|
+
*/
|
|
75
|
+
return _createClass(Cluster, [{
|
|
76
|
+
key: "getClusterExtId",
|
|
77
|
+
value:
|
|
78
|
+
/**
|
|
79
|
+
* Returns Cluster Uuid.
|
|
80
|
+
* @return {}
|
|
81
|
+
*/
|
|
82
|
+
function getClusterExtId() {
|
|
83
|
+
return this.clusterExtId;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Sets Cluster Uuid.
|
|
88
|
+
* @param {} clusterExtId Cluster Uuid.
|
|
89
|
+
*/
|
|
90
|
+
}, {
|
|
91
|
+
key: "setClusterExtId",
|
|
92
|
+
value: function setClusterExtId(clusterExtId) {
|
|
93
|
+
this.clusterExtId = clusterExtId;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Returns Name of the Cluster.
|
|
98
|
+
* @return {}
|
|
99
|
+
*/
|
|
100
|
+
}, {
|
|
101
|
+
key: "getClusterName",
|
|
102
|
+
value: function getClusterName() {
|
|
103
|
+
return this.clusterName;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Sets Name of the Cluster.
|
|
108
|
+
* @param {} clusterName Name of the Cluster.
|
|
109
|
+
*/
|
|
110
|
+
}, {
|
|
111
|
+
key: "setClusterName",
|
|
112
|
+
value: function setClusterName(clusterName) {
|
|
113
|
+
this.clusterName = clusterName;
|
|
114
|
+
}
|
|
115
|
+
}, {
|
|
116
|
+
key: "get$Reserved",
|
|
117
|
+
value: function get$Reserved() {
|
|
118
|
+
return this.$reserved;
|
|
119
|
+
}
|
|
120
|
+
}, {
|
|
121
|
+
key: "get$ObjectType",
|
|
122
|
+
value: function get$ObjectType() {
|
|
123
|
+
return this.$objectType;
|
|
124
|
+
}
|
|
125
|
+
}, {
|
|
126
|
+
key: "get$UnknownFields",
|
|
127
|
+
value: function get$UnknownFields() {
|
|
128
|
+
return this.$unknownFields;
|
|
129
|
+
}
|
|
130
|
+
}, {
|
|
131
|
+
key: "toJson",
|
|
132
|
+
value: function toJson(forMutation) {
|
|
133
|
+
if (forMutation === false) {
|
|
134
|
+
return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {
|
|
135
|
+
'clusterExtId': this.getClusterExtId()
|
|
136
|
+
} : {}), typeof this.getClusterName() !== 'undefined' && this.getClusterName() !== null ? {
|
|
137
|
+
'clusterName': this.getClusterName()
|
|
138
|
+
} : {}), {}, {
|
|
139
|
+
'$reserved': this.get$Reserved(),
|
|
140
|
+
'$objectType': this.get$ObjectType(),
|
|
141
|
+
'$unknownFields': this.get$UnknownFields()
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {
|
|
145
|
+
'clusterExtId': this.getClusterExtId()
|
|
146
|
+
} : {}), typeof this.getClusterName() !== 'undefined' && this.getClusterName() !== null ? {
|
|
147
|
+
'clusterName': this.getClusterName()
|
|
148
|
+
} : {}), {}, {
|
|
149
|
+
'$reserved': this.get$Reserved(),
|
|
150
|
+
'$objectType': this.get$ObjectType(),
|
|
151
|
+
'$unknownFields': this.get$UnknownFields()
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
}, {
|
|
155
|
+
key: "validate",
|
|
156
|
+
value: function validate(scope, properties) {
|
|
157
|
+
var _this = this;
|
|
158
|
+
var propList = [];
|
|
159
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
160
|
+
//cases validate() and validate(scope)
|
|
161
|
+
propList = [];
|
|
162
|
+
} else if (arguments.length === 1) {
|
|
163
|
+
//case validate(properties)
|
|
164
|
+
propList = arguments[0];
|
|
165
|
+
scope = null;
|
|
166
|
+
} else {
|
|
167
|
+
//case validate(scope, properties)
|
|
168
|
+
propList = arguments[1];
|
|
169
|
+
}
|
|
170
|
+
var res = [];
|
|
171
|
+
var err = null;
|
|
172
|
+
propList.forEach(function (property) {
|
|
173
|
+
err = _this.validateProperty(property, scope);
|
|
174
|
+
if (err) {
|
|
175
|
+
res.push(err);
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
return new Promise(function (resolve, reject) {
|
|
179
|
+
if (res.length !== 0) {
|
|
180
|
+
reject(err);
|
|
181
|
+
} else {
|
|
182
|
+
resolve();
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
}, {
|
|
187
|
+
key: "validateProperty",
|
|
188
|
+
value: function validateProperty(scope, property) {
|
|
189
|
+
if (property === "clusterExtId") {
|
|
190
|
+
if (typeof this.clusterExtId === 'undefined' || this.clusterExtId === null) {
|
|
191
|
+
return new _ValidationError["default"]("clusterExtId", "undefined or null");
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
if (property === "clusterName") {
|
|
195
|
+
if (typeof this.clusterName === 'undefined' || this.clusterName === null) {
|
|
196
|
+
return new _ValidationError["default"]("clusterName", "undefined or null");
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
if (property === "$reserved") {
|
|
200
|
+
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
201
|
+
return new _ValidationError["default"]("$reserved", "undefined or null");
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
if (property === "$objectType") {
|
|
205
|
+
if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
|
|
206
|
+
return new _ValidationError["default"]("$objectType", "undefined or null");
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
if (property === "$unknownFields") {
|
|
210
|
+
if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
|
|
211
|
+
return new _ValidationError["default"]("$unknownFields", "undefined or null");
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
215
|
+
}
|
|
216
|
+
}], [{
|
|
217
|
+
key: "constructFromObject",
|
|
218
|
+
value: function constructFromObject(data, obj) {
|
|
219
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
220
|
+
var items, item, i, itemArr, discriminator;
|
|
221
|
+
if (data) {
|
|
222
|
+
obj = obj || new Cluster();
|
|
223
|
+
if (data.hasOwnProperty('clusterExtId') && data.clusterExtId !== null && data.clusterExtId !== undefined) {
|
|
224
|
+
obj.setClusterExtId(data['clusterExtId']);
|
|
225
|
+
}
|
|
226
|
+
if (data.hasOwnProperty('clusterName') && data.clusterName !== null && data.clusterName !== undefined) {
|
|
227
|
+
obj.setClusterName(data['clusterName']);
|
|
228
|
+
}
|
|
229
|
+
if (data.hasOwnProperty('$reserved')) {
|
|
230
|
+
obj.$reserved = data['$reserved'];
|
|
231
|
+
}
|
|
232
|
+
if (data.hasOwnProperty('$objectType')) {
|
|
233
|
+
obj.$objectType = data['$objectType'];
|
|
234
|
+
}
|
|
235
|
+
if (data.hasOwnProperty('$unknownFields')) {
|
|
236
|
+
obj.$unknownFields = data['$unknownFields'];
|
|
237
|
+
}
|
|
238
|
+
if (!callFromChild) {
|
|
239
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
240
|
+
for (var property in data) {
|
|
241
|
+
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
242
|
+
obj.$unknownFields[property] = data[property];
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
return obj;
|
|
248
|
+
}
|
|
249
|
+
}]);
|
|
250
|
+
}();
|
|
251
|
+
/**
|
|
252
|
+
* Cluster Uuid.
|
|
253
|
+
* @memberof Cluster
|
|
254
|
+
*/
|
|
255
|
+
function _toJsonMapType(obj, forMutation) {
|
|
256
|
+
if (obj instanceof Map) {
|
|
257
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
258
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
259
|
+
k = _ref2[0],
|
|
260
|
+
v = _ref2[1];
|
|
261
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
262
|
+
}));
|
|
263
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
264
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
265
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
266
|
+
}));
|
|
267
|
+
}
|
|
268
|
+
return obj;
|
|
269
|
+
}
|
|
270
|
+
Cluster.prototype.clusterExtId = undefined;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Name of the Cluster.
|
|
274
|
+
* @memberof Cluster
|
|
275
|
+
*/
|
|
276
|
+
Cluster.prototype.clusterName = undefined;
|
|
277
|
+
Cluster.prototype.$reserved = undefined;
|
|
278
|
+
Cluster.prototype.$objectType = undefined;
|
|
279
|
+
Cluster.prototype.$unknownFields = undefined;
|