@nutanix-scratch/volumes-js-client 4.1.1 → 4.2.2

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