@nutanix-scratch/volumes-js-client 4.0.1 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (432) hide show
  1. package/README.md +33 -20
  2. package/dist/Ntnx-Volumes-js-client-prod.js +1 -1
  3. package/dist/Ntnx-Volumes-js-client.js +590 -562
  4. package/dist/es/ApiClient.d.ts +35 -7
  5. package/dist/es/ApiClient.js +862 -684
  6. package/dist/es/Paginable.d.ts +1 -1
  7. package/dist/es/Paginable.js +144 -183
  8. package/dist/es/apis/iscsiclients-endpoints.d.ts +4 -16
  9. package/dist/es/apis/iscsiclients-endpoints.js +143 -164
  10. package/dist/es/apis/nvmfclients-endpoints.d.ts +57 -0
  11. package/dist/es/apis/nvmfclients-endpoints.js +147 -0
  12. package/dist/es/apis/volumegroups-endpoints.d.ts +37 -75
  13. package/dist/es/apis/volumegroups-endpoints.js +1157 -1109
  14. package/dist/es/index.d.ts +21 -17
  15. package/dist/es/index.js +342 -326
  16. package/dist/es/models/common/v1/config/EntityReference.d.ts +8 -16
  17. package/dist/es/models/common/v1/config/EntityReference.js +228 -272
  18. package/dist/es/models/common/v1/config/EntityType.js +9 -11
  19. package/dist/es/models/common/v1/config/FQDN.d.ts +2 -7
  20. package/dist/es/models/common/v1/config/FQDN.js +141 -180
  21. package/dist/es/models/common/v1/config/Flag.d.ts +2 -8
  22. package/dist/es/models/common/v1/config/Flag.js +170 -211
  23. package/dist/es/models/common/v1/config/IPAddressOrFQDN.d.ts +2 -26
  24. package/dist/es/models/common/v1/config/IPAddressOrFQDN.js +196 -247
  25. package/dist/es/models/common/v1/config/IPv4Address.d.ts +2 -8
  26. package/dist/es/models/common/v1/config/IPv4Address.js +174 -215
  27. package/dist/es/models/common/v1/config/IPv6Address.d.ts +2 -8
  28. package/dist/es/models/common/v1/config/IPv6Address.js +174 -215
  29. package/dist/es/models/common/v1/config/KVPair.d.ts +2 -8
  30. package/dist/es/models/common/v1/config/KVPair.js +225 -270
  31. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  32. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +139 -178
  33. package/dist/es/models/common/v1/config/Message.d.ts +2 -10
  34. package/dist/es/models/common/v1/config/Message.js +213 -258
  35. package/dist/es/models/common/v1/config/MessageSeverity.js +7 -9
  36. package/dist/es/models/common/v1/config/Metadata.d.ts +2 -11
  37. package/dist/es/models/common/v1/config/Metadata.js +261 -308
  38. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +5 -10
  39. package/dist/es/models/common/v1/config/TenantAwareModel.js +138 -178
  40. package/dist/es/models/common/v1/response/ApiLink.d.ts +2 -8
  41. package/dist/es/models/common/v1/response/ApiLink.js +165 -206
  42. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  43. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +281 -344
  44. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  45. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +155 -203
  46. package/dist/es/models/common/v1/stats/DownSamplingOperator.js +7 -9
  47. package/dist/es/models/prism/v4/config/TaskReference.d.ts +5 -10
  48. package/dist/es/models/prism/v4/config/TaskReference.js +144 -188
  49. package/dist/es/models/validation/ValidationError.js +26 -42
  50. package/dist/es/models/validation/ValidationScopes.js +3 -3
  51. package/dist/es/models/volumes/v4/config/AccessToken.d.ts +47 -0
  52. package/dist/es/models/volumes/v4/config/AccessToken.js +235 -0
  53. package/dist/es/models/volumes/v4/config/AssociateCategoryApiResponse.d.ts +2 -43
  54. package/dist/es/models/volumes/v4/config/AssociateCategoryApiResponse.js +187 -242
  55. package/dist/es/models/volumes/v4/config/AttachIscsiClientApiResponse.d.ts +2 -43
  56. package/dist/es/models/volumes/v4/config/AttachIscsiClientApiResponse.js +187 -242
  57. package/dist/es/models/volumes/v4/config/AttachNvmfClientApiResponse.d.ts +2 -43
  58. package/dist/es/models/volumes/v4/config/AttachNvmfClientApiResponse.js +187 -242
  59. package/dist/es/models/volumes/v4/config/AttachVmApiResponse.d.ts +2 -43
  60. package/dist/es/models/volumes/v4/config/AttachVmApiResponse.js +187 -242
  61. package/dist/es/models/volumes/v4/config/AttachmentType.js +8 -10
  62. package/dist/es/models/volumes/v4/config/AuthenticationType.js +7 -9
  63. package/dist/es/models/volumes/v4/config/CategoryDetails.d.ts +1 -1
  64. package/dist/es/models/volumes/v4/config/CategoryDetails.js +74 -103
  65. package/dist/es/models/volumes/v4/config/CategoryEntityReferences.d.ts +2 -15
  66. package/dist/es/models/volumes/v4/config/CategoryEntityReferences.js +152 -195
  67. package/dist/es/models/volumes/v4/config/ClientAccess.d.ts +19 -0
  68. package/dist/es/models/volumes/v4/config/ClientAccess.js +89 -0
  69. package/dist/es/models/volumes/v4/config/Cluster.d.ts +2 -8
  70. package/dist/es/models/volumes/v4/config/Cluster.js +164 -207
  71. package/dist/es/models/volumes/v4/config/ClusterProjection.d.ts +1 -1
  72. package/dist/es/models/volumes/v4/config/ClusterProjection.js +74 -103
  73. package/dist/es/models/volumes/v4/config/ClusterScope.d.ts +57 -0
  74. package/dist/es/models/volumes/v4/config/ClusterScope.js +243 -0
  75. package/dist/es/models/volumes/v4/config/ClusterScopeProjection.d.ts +12 -0
  76. package/dist/es/models/volumes/v4/config/ClusterScopeProjection.js +125 -0
  77. package/dist/es/models/volumes/v4/config/CreateVolumeDiskApiResponse.d.ts +2 -43
  78. package/dist/es/models/volumes/v4/config/CreateVolumeDiskApiResponse.js +187 -242
  79. package/dist/es/models/volumes/v4/config/CreateVolumeGroupApiResponse.d.ts +2 -43
  80. package/dist/es/models/volumes/v4/config/CreateVolumeGroupApiResponse.js +187 -242
  81. package/dist/es/models/volumes/v4/config/DeleteVolumeDiskApiResponse.d.ts +2 -43
  82. package/dist/es/models/volumes/v4/config/DeleteVolumeDiskApiResponse.js +187 -242
  83. package/dist/es/models/volumes/v4/config/DeleteVolumeGroupApiResponse.d.ts +2 -43
  84. package/dist/es/models/volumes/v4/config/DeleteVolumeGroupApiResponse.js +187 -242
  85. package/dist/es/models/volumes/v4/config/DetachIscsiClientApiResponse.d.ts +2 -43
  86. package/dist/es/models/volumes/v4/config/DetachIscsiClientApiResponse.js +187 -242
  87. package/dist/es/models/volumes/v4/config/DetachNvmfClientApiResponse.d.ts +2 -43
  88. package/dist/es/models/volumes/v4/config/DetachNvmfClientApiResponse.js +187 -242
  89. package/dist/es/models/volumes/v4/config/DetachVmApiResponse.d.ts +2 -43
  90. package/dist/es/models/volumes/v4/config/DetachVmApiResponse.js +187 -242
  91. package/dist/es/models/volumes/v4/config/DisassociateCategoryApiResponse.d.ts +2 -43
  92. package/dist/es/models/volumes/v4/config/DisassociateCategoryApiResponse.js +187 -242
  93. package/dist/es/models/volumes/v4/config/DiskStorageFeatures.d.ts +2 -12
  94. package/dist/es/models/volumes/v4/config/DiskStorageFeatures.js +138 -177
  95. package/dist/es/models/volumes/v4/config/FlashMode.d.ts +2 -7
  96. package/dist/es/models/volumes/v4/config/FlashMode.js +140 -179
  97. package/dist/es/models/volumes/v4/config/GetIscsiClientApiResponse.d.ts +2 -45
  98. package/dist/es/models/volumes/v4/config/GetIscsiClientApiResponse.js +187 -242
  99. package/dist/es/models/volumes/v4/config/GetNvmfClientApiResponse.d.ts +58 -0
  100. package/dist/es/models/volumes/v4/config/GetNvmfClientApiResponse.js +288 -0
  101. package/dist/es/models/volumes/v4/config/GetVolumeDiskApiResponse.d.ts +2 -43
  102. package/dist/es/models/volumes/v4/config/GetVolumeDiskApiResponse.js +187 -242
  103. package/dist/es/models/volumes/v4/config/GetVolumeGroupApiResponse.d.ts +2 -45
  104. package/dist/es/models/volumes/v4/config/GetVolumeGroupApiResponse.js +187 -242
  105. package/dist/es/models/volumes/v4/config/GetVolumeGroupMetadataApiResponse.d.ts +2 -43
  106. package/dist/es/models/volumes/v4/config/GetVolumeGroupMetadataApiResponse.js +187 -242
  107. package/dist/es/models/volumes/v4/config/HydrationStatus.d.ts +19 -0
  108. package/dist/es/models/volumes/v4/config/HydrationStatus.js +89 -0
  109. package/dist/es/models/volumes/v4/config/IscsiClient.d.ts +1 -53
  110. package/dist/es/models/volumes/v4/config/IscsiClient.js +305 -365
  111. package/dist/es/models/volumes/v4/config/IscsiClientAttachment.d.ts +2 -8
  112. package/dist/es/models/volumes/v4/config/IscsiClientAttachment.js +171 -211
  113. package/dist/es/models/volumes/v4/config/IscsiClientAttachmentProjection.d.ts +1 -67
  114. package/dist/es/models/volumes/v4/config/IscsiClientAttachmentProjection.js +124 -164
  115. package/dist/es/models/volumes/v4/config/IscsiClientProjection.d.ts +1 -60
  116. package/dist/es/models/volumes/v4/config/IscsiClientProjection.js +165 -195
  117. package/dist/es/models/volumes/v4/config/IscsiFeatures.d.ts +2 -8
  118. package/dist/es/models/volumes/v4/config/IscsiFeatures.js +164 -205
  119. package/dist/es/models/volumes/v4/config/ListCategoryAssociationsApiResponse.d.ts +2 -43
  120. package/dist/es/models/volumes/v4/config/ListCategoryAssociationsApiResponse.js +209 -264
  121. package/dist/es/models/volumes/v4/config/ListExternalIscsiAttachmentsApiResponse.d.ts +2 -43
  122. package/dist/es/models/volumes/v4/config/ListExternalIscsiAttachmentsApiResponse.js +213 -268
  123. package/dist/es/models/volumes/v4/config/ListIscsiClientsApiResponse.d.ts +2 -43
  124. package/dist/es/models/volumes/v4/config/ListIscsiClientsApiResponse.js +213 -268
  125. package/dist/es/models/volumes/v4/config/ListNvmfClientsApiResponse.d.ts +59 -0
  126. package/dist/es/models/volumes/v4/config/ListNvmfClientsApiResponse.js +315 -0
  127. package/dist/es/models/volumes/v4/config/ListVmAttachmentsApiResponse.d.ts +2 -43
  128. package/dist/es/models/volumes/v4/config/ListVmAttachmentsApiResponse.js +213 -268
  129. package/dist/es/models/volumes/v4/config/ListVolumeDisksApiResponse.d.ts +2 -43
  130. package/dist/es/models/volumes/v4/config/ListVolumeDisksApiResponse.js +213 -268
  131. package/dist/es/models/volumes/v4/config/ListVolumeGroupsApiResponse.d.ts +2 -43
  132. package/dist/es/models/volumes/v4/config/ListVolumeGroupsApiResponse.js +213 -268
  133. package/dist/es/models/volumes/v4/config/NvmfClient.d.ts +10 -27
  134. package/dist/es/models/volumes/v4/config/NvmfClient.js +191 -238
  135. package/dist/es/models/volumes/v4/config/NvmfClientAttachment.d.ts +4 -19
  136. package/dist/es/models/volumes/v4/config/NvmfClientAttachment.js +129 -171
  137. package/dist/es/models/volumes/v4/config/NvmfClientAttachmentProjection.d.ts +1 -40
  138. package/dist/es/models/volumes/v4/config/NvmfClientAttachmentProjection.js +131 -172
  139. package/dist/es/models/volumes/v4/config/NvmfClientProjection.d.ts +1 -25
  140. package/dist/es/models/volumes/v4/config/NvmfClientProjection.js +142 -180
  141. package/dist/es/models/volumes/v4/config/Protocol.js +8 -10
  142. package/dist/es/models/volumes/v4/config/RevertSpec.d.ts +2 -7
  143. package/dist/es/models/volumes/v4/config/RevertSpec.js +142 -181
  144. package/dist/es/models/volumes/v4/config/RevertVolumeGroupApiResponse.d.ts +2 -43
  145. package/dist/es/models/volumes/v4/config/RevertVolumeGroupApiResponse.js +187 -242
  146. package/dist/es/models/volumes/v4/config/SharingStatus.js +7 -9
  147. package/dist/es/models/volumes/v4/config/StorageFeatures.d.ts +2 -12
  148. package/dist/es/models/volumes/v4/config/StorageFeatures.js +138 -177
  149. package/dist/es/models/volumes/v4/config/TargetParam.d.ts +2 -8
  150. package/dist/es/models/volumes/v4/config/TargetParam.js +169 -212
  151. package/dist/es/models/volumes/v4/config/UpdateIscsiClientApiResponse.d.ts +2 -43
  152. package/dist/es/models/volumes/v4/config/UpdateIscsiClientApiResponse.js +187 -242
  153. package/dist/es/models/volumes/v4/config/UpdateVolumeDiskApiResponse.d.ts +2 -43
  154. package/dist/es/models/volumes/v4/config/UpdateVolumeDiskApiResponse.js +187 -242
  155. package/dist/es/models/volumes/v4/config/UpdateVolumeGroupApiResponse.d.ts +2 -43
  156. package/dist/es/models/volumes/v4/config/UpdateVolumeGroupApiResponse.js +187 -242
  157. package/dist/es/models/volumes/v4/config/UsageType.js +7 -9
  158. package/dist/es/models/volumes/v4/config/VGAttachment.d.ts +48 -0
  159. package/dist/es/models/volumes/v4/config/VGAttachment.js +253 -0
  160. package/dist/es/models/volumes/v4/config/VmAttachment.d.ts +2 -8
  161. package/dist/es/models/volumes/v4/config/VmAttachment.js +171 -210
  162. package/dist/es/models/volumes/v4/config/VmAttachmentProjection.d.ts +1 -1
  163. package/dist/es/models/volumes/v4/config/VmAttachmentProjection.js +74 -103
  164. package/dist/es/models/volumes/v4/config/VolumeDisk.d.ts +1 -39
  165. package/dist/es/models/volumes/v4/config/VolumeDisk.js +267 -320
  166. package/dist/es/models/volumes/v4/config/VolumeDiskProjection.d.ts +1 -1
  167. package/dist/es/models/volumes/v4/config/VolumeDiskProjection.js +74 -103
  168. package/dist/es/models/volumes/v4/config/VolumeGroup.d.ts +23 -84
  169. package/dist/es/models/volumes/v4/config/VolumeGroup.js +604 -603
  170. package/dist/es/models/volumes/v4/config/VolumeGroupAttachmentSite.js +7 -9
  171. package/dist/es/models/volumes/v4/config/VolumeGroupDelegateAccessSpec.d.ts +56 -0
  172. package/dist/es/models/volumes/v4/config/VolumeGroupDelegateAccessSpec.js +267 -0
  173. package/dist/es/models/volumes/v4/config/VolumeGroupMetadata.d.ts +2 -8
  174. package/dist/es/models/volumes/v4/config/VolumeGroupMetadata.js +166 -209
  175. package/dist/es/models/volumes/v4/config/VolumeGroupMetadataProjection.d.ts +1 -1
  176. package/dist/es/models/volumes/v4/config/VolumeGroupMetadataProjection.js +74 -103
  177. package/dist/es/models/volumes/v4/config/VolumeGroupProjection.d.ts +1 -98
  178. package/dist/es/models/volumes/v4/config/VolumeGroupProjection.js +252 -248
  179. package/dist/es/models/volumes/v4/error/AppMessage.d.ts +5 -15
  180. package/dist/es/models/volumes/v4/error/AppMessage.js +265 -314
  181. package/dist/es/models/volumes/v4/error/ErrorResponse.d.ts +2 -7
  182. package/dist/es/models/volumes/v4/error/ErrorResponse.js +178 -227
  183. package/dist/es/models/volumes/v4/error/SchemaValidationError.d.ts +2 -18
  184. package/dist/es/models/volumes/v4/error/SchemaValidationError.js +249 -300
  185. package/dist/es/models/volumes/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  186. package/dist/es/models/volumes/v4/error/SchemaValidationErrorMessage.js +191 -234
  187. package/dist/es/models/volumes/v4/stats/GetVolumeDiskStatsApiResponse.d.ts +2 -45
  188. package/dist/es/models/volumes/v4/stats/GetVolumeDiskStatsApiResponse.js +187 -242
  189. package/dist/es/models/volumes/v4/stats/GetVolumeGroupStatsApiResponse.d.ts +2 -43
  190. package/dist/es/models/volumes/v4/stats/GetVolumeGroupStatsApiResponse.js +187 -242
  191. package/dist/es/models/volumes/v4/stats/TimeValuePair.d.ts +2 -8
  192. package/dist/es/models/volumes/v4/stats/TimeValuePair.js +166 -207
  193. package/dist/es/models/volumes/v4/stats/VolumeDiskStats.d.ts +1 -86
  194. package/dist/es/models/volumes/v4/stats/VolumeDiskStats.js +459 -551
  195. package/dist/es/models/volumes/v4/stats/VolumeDiskStatsProjection.d.ts +1 -1
  196. package/dist/es/models/volumes/v4/stats/VolumeDiskStatsProjection.js +74 -103
  197. package/dist/es/models/volumes/v4/stats/VolumeGroupStats.d.ts +12 -86
  198. package/dist/es/models/volumes/v4/stats/VolumeGroupStats.js +501 -551
  199. package/dist/es/models/volumes/v4/stats/VolumeGroupStatsProjection.d.ts +1 -1
  200. package/dist/es/models/volumes/v4/stats/VolumeGroupStatsProjection.js +74 -103
  201. package/dist/es/utils/ValidationUtils.js +39 -69
  202. package/dist/lib/ApiClient.d.ts +35 -7
  203. package/dist/lib/ApiClient.js +862 -684
  204. package/dist/lib/Paginable.d.ts +1 -1
  205. package/dist/lib/Paginable.js +144 -183
  206. package/dist/lib/apis/iscsiclients-endpoints.d.ts +4 -16
  207. package/dist/lib/apis/iscsiclients-endpoints.js +143 -164
  208. package/dist/lib/apis/nvmfclients-endpoints.d.ts +57 -0
  209. package/dist/lib/apis/nvmfclients-endpoints.js +147 -0
  210. package/dist/lib/apis/volumegroups-endpoints.d.ts +37 -75
  211. package/dist/lib/apis/volumegroups-endpoints.js +1157 -1109
  212. package/dist/lib/index.d.ts +21 -17
  213. package/dist/lib/index.js +342 -326
  214. package/dist/lib/models/common/v1/config/EntityReference.d.ts +8 -16
  215. package/dist/lib/models/common/v1/config/EntityReference.js +228 -272
  216. package/dist/lib/models/common/v1/config/EntityType.js +9 -11
  217. package/dist/lib/models/common/v1/config/FQDN.d.ts +2 -7
  218. package/dist/lib/models/common/v1/config/FQDN.js +141 -180
  219. package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
  220. package/dist/lib/models/common/v1/config/Flag.js +170 -211
  221. package/dist/lib/models/common/v1/config/IPAddressOrFQDN.d.ts +2 -26
  222. package/dist/lib/models/common/v1/config/IPAddressOrFQDN.js +196 -247
  223. package/dist/lib/models/common/v1/config/IPv4Address.d.ts +2 -8
  224. package/dist/lib/models/common/v1/config/IPv4Address.js +174 -215
  225. package/dist/lib/models/common/v1/config/IPv6Address.d.ts +2 -8
  226. package/dist/lib/models/common/v1/config/IPv6Address.js +174 -215
  227. package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
  228. package/dist/lib/models/common/v1/config/KVPair.js +225 -270
  229. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  230. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
  231. package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
  232. package/dist/lib/models/common/v1/config/Message.js +213 -258
  233. package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
  234. package/dist/lib/models/common/v1/config/Metadata.d.ts +2 -11
  235. package/dist/lib/models/common/v1/config/Metadata.js +261 -308
  236. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +5 -10
  237. package/dist/lib/models/common/v1/config/TenantAwareModel.js +138 -178
  238. package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
  239. package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
  240. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  241. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
  242. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  243. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +155 -203
  244. package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +7 -9
  245. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +5 -10
  246. package/dist/lib/models/prism/v4/config/TaskReference.js +144 -188
  247. package/dist/lib/models/validation/ValidationError.js +26 -42
  248. package/dist/lib/models/validation/ValidationScopes.js +3 -3
  249. package/dist/lib/models/volumes/v4/config/AccessToken.d.ts +47 -0
  250. package/dist/lib/models/volumes/v4/config/AccessToken.js +235 -0
  251. package/dist/lib/models/volumes/v4/config/AssociateCategoryApiResponse.d.ts +2 -43
  252. package/dist/lib/models/volumes/v4/config/AssociateCategoryApiResponse.js +187 -242
  253. package/dist/lib/models/volumes/v4/config/AttachIscsiClientApiResponse.d.ts +2 -43
  254. package/dist/lib/models/volumes/v4/config/AttachIscsiClientApiResponse.js +187 -242
  255. package/dist/lib/models/volumes/v4/config/AttachNvmfClientApiResponse.d.ts +2 -43
  256. package/dist/lib/models/volumes/v4/config/AttachNvmfClientApiResponse.js +187 -242
  257. package/dist/lib/models/volumes/v4/config/AttachVmApiResponse.d.ts +2 -43
  258. package/dist/lib/models/volumes/v4/config/AttachVmApiResponse.js +187 -242
  259. package/dist/lib/models/volumes/v4/config/AttachmentType.js +8 -10
  260. package/dist/lib/models/volumes/v4/config/AuthenticationType.js +7 -9
  261. package/dist/lib/models/volumes/v4/config/CategoryDetails.d.ts +1 -1
  262. package/dist/lib/models/volumes/v4/config/CategoryDetails.js +74 -103
  263. package/dist/lib/models/volumes/v4/config/CategoryEntityReferences.d.ts +2 -15
  264. package/dist/lib/models/volumes/v4/config/CategoryEntityReferences.js +152 -195
  265. package/dist/lib/models/volumes/v4/config/ClientAccess.d.ts +19 -0
  266. package/dist/lib/models/volumes/v4/config/ClientAccess.js +89 -0
  267. package/dist/lib/models/volumes/v4/config/Cluster.d.ts +2 -8
  268. package/dist/lib/models/volumes/v4/config/Cluster.js +164 -207
  269. package/dist/lib/models/volumes/v4/config/ClusterProjection.d.ts +1 -1
  270. package/dist/lib/models/volumes/v4/config/ClusterProjection.js +74 -103
  271. package/dist/lib/models/volumes/v4/config/ClusterScope.d.ts +57 -0
  272. package/dist/lib/models/volumes/v4/config/ClusterScope.js +243 -0
  273. package/dist/lib/models/volumes/v4/config/ClusterScopeProjection.d.ts +12 -0
  274. package/dist/lib/models/volumes/v4/config/ClusterScopeProjection.js +125 -0
  275. package/dist/lib/models/volumes/v4/config/CreateVolumeDiskApiResponse.d.ts +2 -43
  276. package/dist/lib/models/volumes/v4/config/CreateVolumeDiskApiResponse.js +187 -242
  277. package/dist/lib/models/volumes/v4/config/CreateVolumeGroupApiResponse.d.ts +2 -43
  278. package/dist/lib/models/volumes/v4/config/CreateVolumeGroupApiResponse.js +187 -242
  279. package/dist/lib/models/volumes/v4/config/DeleteVolumeDiskApiResponse.d.ts +2 -43
  280. package/dist/lib/models/volumes/v4/config/DeleteVolumeDiskApiResponse.js +187 -242
  281. package/dist/lib/models/volumes/v4/config/DeleteVolumeGroupApiResponse.d.ts +2 -43
  282. package/dist/lib/models/volumes/v4/config/DeleteVolumeGroupApiResponse.js +187 -242
  283. package/dist/lib/models/volumes/v4/config/DetachIscsiClientApiResponse.d.ts +2 -43
  284. package/dist/lib/models/volumes/v4/config/DetachIscsiClientApiResponse.js +187 -242
  285. package/dist/lib/models/volumes/v4/config/DetachNvmfClientApiResponse.d.ts +2 -43
  286. package/dist/lib/models/volumes/v4/config/DetachNvmfClientApiResponse.js +187 -242
  287. package/dist/lib/models/volumes/v4/config/DetachVmApiResponse.d.ts +2 -43
  288. package/dist/lib/models/volumes/v4/config/DetachVmApiResponse.js +187 -242
  289. package/dist/lib/models/volumes/v4/config/DisassociateCategoryApiResponse.d.ts +2 -43
  290. package/dist/lib/models/volumes/v4/config/DisassociateCategoryApiResponse.js +187 -242
  291. package/dist/lib/models/volumes/v4/config/DiskStorageFeatures.d.ts +2 -12
  292. package/dist/lib/models/volumes/v4/config/DiskStorageFeatures.js +138 -177
  293. package/dist/lib/models/volumes/v4/config/FlashMode.d.ts +2 -7
  294. package/dist/lib/models/volumes/v4/config/FlashMode.js +140 -179
  295. package/dist/lib/models/volumes/v4/config/GetIscsiClientApiResponse.d.ts +2 -45
  296. package/dist/lib/models/volumes/v4/config/GetIscsiClientApiResponse.js +187 -242
  297. package/dist/lib/models/volumes/v4/config/GetNvmfClientApiResponse.d.ts +58 -0
  298. package/dist/lib/models/volumes/v4/config/GetNvmfClientApiResponse.js +288 -0
  299. package/dist/lib/models/volumes/v4/config/GetVolumeDiskApiResponse.d.ts +2 -43
  300. package/dist/lib/models/volumes/v4/config/GetVolumeDiskApiResponse.js +187 -242
  301. package/dist/lib/models/volumes/v4/config/GetVolumeGroupApiResponse.d.ts +2 -45
  302. package/dist/lib/models/volumes/v4/config/GetVolumeGroupApiResponse.js +187 -242
  303. package/dist/lib/models/volumes/v4/config/GetVolumeGroupMetadataApiResponse.d.ts +2 -43
  304. package/dist/lib/models/volumes/v4/config/GetVolumeGroupMetadataApiResponse.js +187 -242
  305. package/dist/lib/models/volumes/v4/config/HydrationStatus.d.ts +19 -0
  306. package/dist/lib/models/volumes/v4/config/HydrationStatus.js +89 -0
  307. package/dist/lib/models/volumes/v4/config/IscsiClient.d.ts +1 -53
  308. package/dist/lib/models/volumes/v4/config/IscsiClient.js +305 -365
  309. package/dist/lib/models/volumes/v4/config/IscsiClientAttachment.d.ts +2 -8
  310. package/dist/lib/models/volumes/v4/config/IscsiClientAttachment.js +171 -211
  311. package/dist/lib/models/volumes/v4/config/IscsiClientAttachmentProjection.d.ts +1 -67
  312. package/dist/lib/models/volumes/v4/config/IscsiClientAttachmentProjection.js +124 -164
  313. package/dist/lib/models/volumes/v4/config/IscsiClientProjection.d.ts +1 -60
  314. package/dist/lib/models/volumes/v4/config/IscsiClientProjection.js +165 -195
  315. package/dist/lib/models/volumes/v4/config/IscsiFeatures.d.ts +2 -8
  316. package/dist/lib/models/volumes/v4/config/IscsiFeatures.js +164 -205
  317. package/dist/lib/models/volumes/v4/config/ListCategoryAssociationsApiResponse.d.ts +2 -43
  318. package/dist/lib/models/volumes/v4/config/ListCategoryAssociationsApiResponse.js +209 -264
  319. package/dist/lib/models/volumes/v4/config/ListExternalIscsiAttachmentsApiResponse.d.ts +2 -43
  320. package/dist/lib/models/volumes/v4/config/ListExternalIscsiAttachmentsApiResponse.js +213 -268
  321. package/dist/lib/models/volumes/v4/config/ListIscsiClientsApiResponse.d.ts +2 -43
  322. package/dist/lib/models/volumes/v4/config/ListIscsiClientsApiResponse.js +213 -268
  323. package/dist/lib/models/volumes/v4/config/ListNvmfClientsApiResponse.d.ts +59 -0
  324. package/dist/lib/models/volumes/v4/config/ListNvmfClientsApiResponse.js +315 -0
  325. package/dist/lib/models/volumes/v4/config/ListVmAttachmentsApiResponse.d.ts +2 -43
  326. package/dist/lib/models/volumes/v4/config/ListVmAttachmentsApiResponse.js +213 -268
  327. package/dist/lib/models/volumes/v4/config/ListVolumeDisksApiResponse.d.ts +2 -43
  328. package/dist/lib/models/volumes/v4/config/ListVolumeDisksApiResponse.js +213 -268
  329. package/dist/lib/models/volumes/v4/config/ListVolumeGroupsApiResponse.d.ts +2 -43
  330. package/dist/lib/models/volumes/v4/config/ListVolumeGroupsApiResponse.js +213 -268
  331. package/dist/lib/models/volumes/v4/config/NvmfClient.d.ts +10 -27
  332. package/dist/lib/models/volumes/v4/config/NvmfClient.js +191 -238
  333. package/dist/lib/models/volumes/v4/config/NvmfClientAttachment.d.ts +4 -19
  334. package/dist/lib/models/volumes/v4/config/NvmfClientAttachment.js +129 -171
  335. package/dist/lib/models/volumes/v4/config/NvmfClientAttachmentProjection.d.ts +1 -40
  336. package/dist/lib/models/volumes/v4/config/NvmfClientAttachmentProjection.js +131 -172
  337. package/dist/lib/models/volumes/v4/config/NvmfClientProjection.d.ts +1 -25
  338. package/dist/lib/models/volumes/v4/config/NvmfClientProjection.js +142 -180
  339. package/dist/lib/models/volumes/v4/config/Protocol.js +8 -10
  340. package/dist/lib/models/volumes/v4/config/RevertSpec.d.ts +2 -7
  341. package/dist/lib/models/volumes/v4/config/RevertSpec.js +142 -181
  342. package/dist/lib/models/volumes/v4/config/RevertVolumeGroupApiResponse.d.ts +2 -43
  343. package/dist/lib/models/volumes/v4/config/RevertVolumeGroupApiResponse.js +187 -242
  344. package/dist/lib/models/volumes/v4/config/SharingStatus.js +7 -9
  345. package/dist/lib/models/volumes/v4/config/StorageFeatures.d.ts +2 -12
  346. package/dist/lib/models/volumes/v4/config/StorageFeatures.js +138 -177
  347. package/dist/lib/models/volumes/v4/config/TargetParam.d.ts +2 -8
  348. package/dist/lib/models/volumes/v4/config/TargetParam.js +169 -212
  349. package/dist/lib/models/volumes/v4/config/UpdateIscsiClientApiResponse.d.ts +2 -43
  350. package/dist/lib/models/volumes/v4/config/UpdateIscsiClientApiResponse.js +187 -242
  351. package/dist/lib/models/volumes/v4/config/UpdateVolumeDiskApiResponse.d.ts +2 -43
  352. package/dist/lib/models/volumes/v4/config/UpdateVolumeDiskApiResponse.js +187 -242
  353. package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupApiResponse.d.ts +2 -43
  354. package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupApiResponse.js +187 -242
  355. package/dist/lib/models/volumes/v4/config/UsageType.js +7 -9
  356. package/dist/lib/models/volumes/v4/config/VGAttachment.d.ts +48 -0
  357. package/dist/lib/models/volumes/v4/config/VGAttachment.js +253 -0
  358. package/dist/lib/models/volumes/v4/config/VmAttachment.d.ts +2 -8
  359. package/dist/lib/models/volumes/v4/config/VmAttachment.js +171 -210
  360. package/dist/lib/models/volumes/v4/config/VmAttachmentProjection.d.ts +1 -1
  361. package/dist/lib/models/volumes/v4/config/VmAttachmentProjection.js +74 -103
  362. package/dist/lib/models/volumes/v4/config/VolumeDisk.d.ts +1 -39
  363. package/dist/lib/models/volumes/v4/config/VolumeDisk.js +267 -320
  364. package/dist/lib/models/volumes/v4/config/VolumeDiskProjection.d.ts +1 -1
  365. package/dist/lib/models/volumes/v4/config/VolumeDiskProjection.js +74 -103
  366. package/dist/lib/models/volumes/v4/config/VolumeGroup.d.ts +23 -84
  367. package/dist/lib/models/volumes/v4/config/VolumeGroup.js +604 -603
  368. package/dist/lib/models/volumes/v4/config/VolumeGroupAttachmentSite.js +7 -9
  369. package/dist/lib/models/volumes/v4/config/VolumeGroupDelegateAccessSpec.d.ts +56 -0
  370. package/dist/lib/models/volumes/v4/config/VolumeGroupDelegateAccessSpec.js +267 -0
  371. package/dist/lib/models/volumes/v4/config/VolumeGroupMetadata.d.ts +2 -8
  372. package/dist/lib/models/volumes/v4/config/VolumeGroupMetadata.js +166 -209
  373. package/dist/lib/models/volumes/v4/config/VolumeGroupMetadataProjection.d.ts +1 -1
  374. package/dist/lib/models/volumes/v4/config/VolumeGroupMetadataProjection.js +74 -103
  375. package/dist/lib/models/volumes/v4/config/VolumeGroupProjection.d.ts +1 -98
  376. package/dist/lib/models/volumes/v4/config/VolumeGroupProjection.js +252 -248
  377. package/dist/lib/models/volumes/v4/error/AppMessage.d.ts +5 -15
  378. package/dist/lib/models/volumes/v4/error/AppMessage.js +265 -314
  379. package/dist/lib/models/volumes/v4/error/ErrorResponse.d.ts +2 -7
  380. package/dist/lib/models/volumes/v4/error/ErrorResponse.js +178 -227
  381. package/dist/lib/models/volumes/v4/error/SchemaValidationError.d.ts +2 -18
  382. package/dist/lib/models/volumes/v4/error/SchemaValidationError.js +249 -300
  383. package/dist/lib/models/volumes/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  384. package/dist/lib/models/volumes/v4/error/SchemaValidationErrorMessage.js +191 -234
  385. package/dist/lib/models/volumes/v4/stats/GetVolumeDiskStatsApiResponse.d.ts +2 -45
  386. package/dist/lib/models/volumes/v4/stats/GetVolumeDiskStatsApiResponse.js +187 -242
  387. package/dist/lib/models/volumes/v4/stats/GetVolumeGroupStatsApiResponse.d.ts +2 -43
  388. package/dist/lib/models/volumes/v4/stats/GetVolumeGroupStatsApiResponse.js +187 -242
  389. package/dist/lib/models/volumes/v4/stats/TimeValuePair.d.ts +2 -8
  390. package/dist/lib/models/volumes/v4/stats/TimeValuePair.js +166 -207
  391. package/dist/lib/models/volumes/v4/stats/VolumeDiskStats.d.ts +1 -86
  392. package/dist/lib/models/volumes/v4/stats/VolumeDiskStats.js +459 -551
  393. package/dist/lib/models/volumes/v4/stats/VolumeDiskStatsProjection.d.ts +1 -1
  394. package/dist/lib/models/volumes/v4/stats/VolumeDiskStatsProjection.js +74 -103
  395. package/dist/lib/models/volumes/v4/stats/VolumeGroupStats.d.ts +12 -86
  396. package/dist/lib/models/volumes/v4/stats/VolumeGroupStats.js +501 -551
  397. package/dist/lib/models/volumes/v4/stats/VolumeGroupStatsProjection.d.ts +1 -1
  398. package/dist/lib/models/volumes/v4/stats/VolumeGroupStatsProjection.js +74 -103
  399. package/dist/lib/utils/ValidationUtils.js +39 -69
  400. package/package.json +2 -2
  401. package/dist/es/models/volumes/v4/config/MigrateVolumeGroupApiResponse.d.ts +0 -99
  402. package/dist/es/models/volumes/v4/config/MigrateVolumeGroupApiResponse.js +0 -343
  403. package/dist/es/models/volumes/v4/config/PauseVolumeGroupSynchronousReplicationApiResponse.d.ts +0 -99
  404. package/dist/es/models/volumes/v4/config/PauseVolumeGroupSynchronousReplicationApiResponse.js +0 -343
  405. package/dist/es/models/volumes/v4/config/ResumeVolumeGroupSynchronousReplicationApiResponse.d.ts +0 -98
  406. package/dist/es/models/volumes/v4/config/ResumeVolumeGroupSynchronousReplicationApiResponse.js +0 -345
  407. package/dist/es/models/volumes/v4/config/UpdateIscsiClientByIdApiResponse.d.ts +0 -99
  408. package/dist/es/models/volumes/v4/config/UpdateIscsiClientByIdApiResponse.js +0 -343
  409. package/dist/es/models/volumes/v4/config/UpdateVolumeDiskByIdApiResponse.d.ts +0 -99
  410. package/dist/es/models/volumes/v4/config/UpdateVolumeDiskByIdApiResponse.js +0 -343
  411. package/dist/es/models/volumes/v4/config/UpdateVolumeGroupByIdApiResponse.d.ts +0 -99
  412. package/dist/es/models/volumes/v4/config/UpdateVolumeGroupByIdApiResponse.js +0 -343
  413. package/dist/es/models/volumes/v4/config/UpdateVolumeGroupMetadataApiResponse.d.ts +0 -98
  414. package/dist/es/models/volumes/v4/config/UpdateVolumeGroupMetadataApiResponse.js +0 -345
  415. package/dist/es/models/volumes/v4/config/UpdateVolumeGroupMetadataInfoApiResponse.d.ts +0 -98
  416. package/dist/es/models/volumes/v4/config/UpdateVolumeGroupMetadataInfoApiResponse.js +0 -345
  417. package/dist/lib/models/volumes/v4/config/MigrateVolumeGroupApiResponse.d.ts +0 -99
  418. package/dist/lib/models/volumes/v4/config/MigrateVolumeGroupApiResponse.js +0 -343
  419. package/dist/lib/models/volumes/v4/config/PauseVolumeGroupSynchronousReplicationApiResponse.d.ts +0 -99
  420. package/dist/lib/models/volumes/v4/config/PauseVolumeGroupSynchronousReplicationApiResponse.js +0 -343
  421. package/dist/lib/models/volumes/v4/config/ResumeVolumeGroupSynchronousReplicationApiResponse.d.ts +0 -98
  422. package/dist/lib/models/volumes/v4/config/ResumeVolumeGroupSynchronousReplicationApiResponse.js +0 -345
  423. package/dist/lib/models/volumes/v4/config/UpdateIscsiClientByIdApiResponse.d.ts +0 -99
  424. package/dist/lib/models/volumes/v4/config/UpdateIscsiClientByIdApiResponse.js +0 -343
  425. package/dist/lib/models/volumes/v4/config/UpdateVolumeDiskByIdApiResponse.d.ts +0 -99
  426. package/dist/lib/models/volumes/v4/config/UpdateVolumeDiskByIdApiResponse.js +0 -343
  427. package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupByIdApiResponse.d.ts +0 -99
  428. package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupByIdApiResponse.js +0 -343
  429. package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupMetadataApiResponse.d.ts +0 -98
  430. package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupMetadataApiResponse.js +0 -345
  431. package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupMetadataInfoApiResponse.d.ts +0 -98
  432. package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupMetadataInfoApiResponse.js +0 -345
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = void 0;
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 : { "default": 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.0.1
22
+ * OpenAPI spec version: 4.2.1
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: 16.9.0.8546-RELEASE
26
+ * Open API Dev Platform Codegen version: 17.5.0.10128-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.0.1
34
+ * @version 4.2.1
57
35
  * @class IscsiClient
58
36
  * @extends ExternalizableAbstractModel
59
37
  */
60
38
  var _IscsiClient_brand = /*#__PURE__*/new WeakSet();
61
- var IscsiClient = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
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
- function IscsiClient() {
69
- var _this;
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(_this, _IscsiClient_brand);
79
- _this.$objectType = "volumes.v4.config.IscsiClient";
54
+ _classPrivateMethodInitSpec(this, _IscsiClient_brand);
55
+ this.$objectType = "volumes.v4.config.IscsiClient";
80
56
  /** @type {object<string, any>} */
81
- _this.$reserved = {
82
- '$fv': "v4.r0"
57
+ this.$reserved = {
58
+ '$fv': "v4.r2"
83
59
  };
84
60
  /** @type {object<string, any>} */
85
- _this.$unknownFields = {};
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
- _inherits(IscsiClient, _ExternalizableAbstra);
98
- return _createClass(IscsiClient, [{
99
- key: "getIscsiInitiatorName",
100
- value:
101
- /**
102
- * Returns iSCSI initiator name. Exactly one of iscsiInitiatorName and iscsiInitiatorNetworkId must be specified during the attach operation. This field is immutable.
103
- * @return {string}
104
- */
105
- function getIscsiInitiatorName() {
106
- return this.iscsiInitiatorName;
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
- * Sets iSCSI initiator name. Exactly one of iscsiInitiatorName and iscsiInitiatorNetworkId must be specified during the attach operation. This field is immutable.
111
- * @param {string} iscsiInitiatorName iSCSI initiator name. Exactly one of iscsiInitiatorName and iscsiInitiatorNetworkId must be specified during the attach operation. This field is immutable.
112
- */
113
- }, {
114
- key: "setIscsiInitiatorName",
115
- value: function setIscsiInitiatorName(iscsiInitiatorName) {
116
- this.iscsiInitiatorName = iscsiInitiatorName;
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
- * @return {IPAddressOrFQDN}
121
- */
122
- }, {
123
- key: "getIscsiInitiatorNetworkId",
124
- value: function getIscsiInitiatorNetworkId() {
125
- return this.iscsiInitiatorNetworkId;
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
- * @param {IPAddressOrFQDN} iscsiInitiatorNetworkId
130
- */
131
- }, {
132
- key: "setIscsiInitiatorNetworkId",
133
- value: function setIscsiInitiatorNetworkId(iscsiInitiatorNetworkId) {
134
- this.iscsiInitiatorNetworkId = iscsiInitiatorNetworkId;
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
- * 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.
139
- * @return {String}
140
- */
141
- }, {
142
- key: "getClientSecret",
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
- * 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.
149
- * @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.
150
- */
151
- }, {
152
- key: "setClientSecret",
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
- * @return {AuthenticationType}
159
- */
160
- }, {
161
- key: "getEnabledAuthentications",
162
- value: function getEnabledAuthentications() {
163
- return this.enabledAuthentications;
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
- * @param {AuthenticationType} enabledAuthentications
168
- */
169
- }, {
170
- key: "setEnabledAuthentications",
171
- value: function setEnabledAuthentications(enabledAuthentications) {
172
- this.enabledAuthentications = enabledAuthentications;
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
- * @return {TargetParam[]}
177
- */
178
- }, {
179
- key: "getAttachedTargets",
180
- value: function getAttachedTargets() {
181
- return this.attachedTargets;
182
- }
180
+ /**
181
+ * @return {AuthenticationType}
182
+ */
183
+ getEnabledAuthentications() {
184
+ return this.enabledAuthentications;
185
+ }
183
186
 
184
- /**
185
- * @param {TargetParam[]} attachedTargets
186
- */
187
- }, {
188
- key: "setAttachedTargets",
189
- value: function setAttachedTargets(attachedTargets) {
190
- this.attachedTargets = attachedTargets;
191
- }
187
+ /**
188
+ * @param {AuthenticationType} enabledAuthentications
189
+ */
190
+ setEnabledAuthentications(enabledAuthentications) {
191
+ this.enabledAuthentications = enabledAuthentications;
192
+ }
192
193
 
193
- /**
194
- * Returns Number of virtual targets generated for the iSCSI target. This field is immutable.
195
- * @return {Number}
196
- */
197
- }, {
198
- key: "getNumVirtualTargets",
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
- * Sets Number of virtual targets generated for the iSCSI target. This field is immutable.
205
- * @param {Number} numVirtualTargets Number of virtual targets generated for the iSCSI target. This field is immutable.
206
- */
207
- }, {
208
- key: "setNumVirtualTargets",
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
- * Returns The UUID of the cluster that will host the iSCSI client. This field is read-only.
215
- * @return {string}
216
- */
217
- }, {
218
- key: "getClusterReference",
219
- value: function getClusterReference() {
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
- * Sets The UUID of the cluster that will host the iSCSI client. This field is read-only.
225
- * @param {string} clusterReference The UUID of the cluster that will host the iSCSI client. This field is read-only.
226
- */
227
- }, {
228
- key: "setClusterReference",
229
- value: function setClusterReference(clusterReference) {
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
- * @return {VolumeGroupAttachmentSite}
235
- */
236
- }, {
237
- key: "getAttachmentSite",
238
- value: function getAttachmentSite() {
239
- return this.attachmentSite;
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
- * @param {VolumeGroupAttachmentSite} attachmentSite
244
- */
245
- }, {
246
- key: "setAttachmentSite",
247
- value: function setAttachmentSite(attachmentSite) {
248
- this.attachmentSite = attachmentSite;
249
- }
250
- }, {
251
- key: "toJson",
252
- value: function toJson(forMutation) {
253
- if (forMutation === false) {
254
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getIscsiInitiatorName() !== 'undefined' && this.getIscsiInitiatorName() !== null ? {
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
- } : {}), typeof this.getIscsiInitiatorNetworkId() !== 'undefined' && this.getIscsiInitiatorNetworkId() !== null ? {
258
+ } : {}),
259
+ ...(typeof this.getIscsiInitiatorNetworkId() !== 'undefined' && this.getIscsiInitiatorNetworkId() !== null ? {
257
260
  'iscsiInitiatorNetworkId': this.getIscsiInitiatorNetworkId().toJson(false)
258
- } : {}), typeof this.getClientSecret() !== 'undefined' && this.getClientSecret() !== null ? {
261
+ } : {}),
262
+ ...(typeof this.getClientSecret() !== 'undefined' && this.getClientSecret() !== null ? {
259
263
  'clientSecret': this.getClientSecret()
260
- } : {}), typeof this.getEnabledAuthentications() !== 'undefined' && this.getEnabledAuthentications() !== null ? {
264
+ } : {}),
265
+ ...(typeof this.getEnabledAuthentications() !== 'undefined' && this.getEnabledAuthentications() !== null ? {
261
266
  'enabledAuthentications': this.getEnabledAuthentications()
262
- } : {}), typeof this.getAttachedTargets() !== 'undefined' && this.getAttachedTargets() !== null ? {
263
- 'attachedTargets': this.getAttachedTargets().map(function (item) {
264
- return item.toJson(false);
265
- })
266
- } : {}), typeof this.getNumVirtualTargets() !== 'undefined' && this.getNumVirtualTargets() !== null ? {
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
- } : {}), typeof this.getClusterReference() !== 'undefined' && this.getClusterReference() !== null ? {
273
+ } : {}),
274
+ ...(typeof this.getClusterReference() !== 'undefined' && this.getClusterReference() !== null ? {
269
275
  'clusterReference': this.getClusterReference()
270
- } : {}), typeof this.getAttachmentSite() !== 'undefined' && this.getAttachmentSite() !== null ? {
276
+ } : {}),
277
+ ...(typeof this.getAttachmentSite() !== 'undefined' && this.getAttachmentSite() !== null ? {
271
278
  'attachmentSite': this.getAttachmentSite()
272
- } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
279
+ } : {}),
280
+ ...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
273
281
  'extId': this.getExtId()
274
- } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
275
- 'links': this.getLinks().map(function (item) {
276
- return item.toJson(false);
277
- })
278
- } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
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
- '$reserved': this.get$Reserved(),
282
- '$objectType': this.get$ObjectType(),
283
- '$unknownFields': this.get$UnknownFields()
284
- });
285
- }
286
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getIscsiInitiatorName() !== 'undefined' && this.getIscsiInitiatorName() !== null ? {
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
- } : {}), typeof this.getIscsiInitiatorNetworkId() !== 'undefined' && this.getIscsiInitiatorNetworkId() !== null ? {
298
+ } : {}),
299
+ ...(typeof this.getIscsiInitiatorNetworkId() !== 'undefined' && this.getIscsiInitiatorNetworkId() !== null ? {
289
300
  'iscsiInitiatorNetworkId': this.getIscsiInitiatorNetworkId().toJson(false)
290
- } : {}), typeof this.getClientSecret() !== 'undefined' && this.getClientSecret() !== null ? {
301
+ } : {}),
302
+ ...(typeof this.getClientSecret() !== 'undefined' && this.getClientSecret() !== null ? {
291
303
  'clientSecret': this.getClientSecret()
292
- } : {}), typeof this.getEnabledAuthentications() !== 'undefined' && this.getEnabledAuthentications() !== null ? {
304
+ } : {}),
305
+ ...(typeof this.getEnabledAuthentications() !== 'undefined' && this.getEnabledAuthentications() !== null ? {
293
306
  'enabledAuthentications': this.getEnabledAuthentications()
294
- } : {}), typeof this.getNumVirtualTargets() !== 'undefined' && this.getNumVirtualTargets() !== null ? {
307
+ } : {}),
308
+ ...(typeof this.getNumVirtualTargets() !== 'undefined' && this.getNumVirtualTargets() !== null ? {
295
309
  'numVirtualTargets': this.getNumVirtualTargets()
296
- } : {}), typeof this.getAttachmentSite() !== 'undefined' && this.getAttachmentSite() !== null ? {
310
+ } : {}),
311
+ ...(typeof this.getAttachmentSite() !== 'undefined' && this.getAttachmentSite() !== null ? {
297
312
  'attachmentSite': this.getAttachmentSite()
298
- } : {}), {}, {
299
- '$reserved': this.get$Reserved(),
300
- '$objectType': this.get$ObjectType(),
301
- '$unknownFields': this.get$UnknownFields()
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
- key: "validate",
306
- value: function validate(scope, properties) {
307
- var _this2 = this;
308
- var propList = [];
309
- if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
310
- //cases validate() and validate(scope)
311
- propList = [];
312
- } else if (arguments.length === 1) {
313
- //case validate(properties)
314
- propList = arguments[0];
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
- //case validate(scope, properties)
318
- propList = arguments[1];
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
- key: "validateProperty",
338
- value: function validateProperty(scope, property) {
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
- if (property === "iscsiInitiatorNetworkId") {
348
- if (typeof this.iscsiInitiatorNetworkId === 'undefined' || this.iscsiInitiatorNetworkId === null) {
349
- return new _ValidationError["default"]("iscsiInitiatorNetworkId", "undefined or null");
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
- if (property === "clientSecret") {
353
- if (typeof this.clientSecret === 'undefined' || this.clientSecret === null) {
354
- return new _ValidationError["default"]("clientSecret", "undefined or null");
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
- if (property === "enabledAuthentications") {
358
- if (typeof this.enabledAuthentications === 'undefined' || this.enabledAuthentications === null) {
359
- return new _ValidationError["default"]("enabledAuthentications", "undefined or null");
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 (property === "attachedTargets") {
363
- if (typeof this.attachedTargets === 'undefined' || this.attachedTargets === null) {
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
- if (property === "numVirtualTargets") {
371
- if (typeof this.numVirtualTargets === 'undefined' || this.numVirtualTargets === null) {
372
- return new _ValidationError["default"]("numVirtualTargets", "undefined or null");
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
- if (property === "clusterReference") {
376
- if (typeof this.clusterReference === 'undefined' || this.clusterReference === null) {
377
- return new _ValidationError["default"]("clusterReference", "undefined or null");
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 (property === "attachmentSite") {
384
- if (typeof this.attachmentSite === 'undefined' || this.attachmentSite === null) {
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
- key: "constructFromObject",
392
- value: function constructFromObject(data) {
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, function (_ref) {
466
- var _ref2 = _slicedToArray(_ref, 2),
467
- k = _ref2[0],
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["default"].prototype.extId = undefined;
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["default"].prototype.links = undefined;
479
+ _ExternalizableAbstractModel.default.prototype.links = undefined;
540
480
  /**
541
- * 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).
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["default"].prototype.tenantId = undefined;
484
+ _TenantAwareModel.default.prototype.tenantId = undefined;
545
485
  // Implement OneOfvolumes.v4.config.GetIscsiClientApiResponsedata interface: