@nutanix-scratch/volumes-js-client 4.0.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (385) hide show
  1. package/LICENSE.txt +49 -0
  2. package/README.md +195 -0
  3. package/dist/Ntnx-Volumes-js-client-prod.js +1 -0
  4. package/dist/Ntnx-Volumes-js-client.js +1389 -0
  5. package/dist/es/ApiClient.d.ts +159 -0
  6. package/dist/es/ApiClient.js +1211 -0
  7. package/dist/es/Paginable.d.ts +95 -0
  8. package/dist/es/Paginable.js +287 -0
  9. package/dist/es/apis/iscsiclients-endpoints.d.ts +69 -0
  10. package/dist/es/apis/iscsiclients-endpoints.js +167 -0
  11. package/dist/es/apis/volumegroups-endpoints.d.ts +342 -0
  12. package/dist/es/apis/volumegroups-endpoints.js +1023 -0
  13. package/dist/es/index.d.ts +184 -0
  14. package/dist/es/index.js +732 -0
  15. package/dist/es/models/common/v1/config/EntityReference.d.ts +78 -0
  16. package/dist/es/models/common/v1/config/EntityReference.js +352 -0
  17. package/dist/es/models/common/v1/config/EntityType.d.ts +19 -0
  18. package/dist/es/models/common/v1/config/EntityType.js +205 -0
  19. package/dist/es/models/common/v1/config/FQDN.d.ts +48 -0
  20. package/dist/es/models/common/v1/config/FQDN.js +242 -0
  21. package/dist/es/models/common/v1/config/Flag.d.ts +58 -0
  22. package/dist/es/models/common/v1/config/Flag.js +275 -0
  23. package/dist/es/models/common/v1/config/IPAddressOrFQDN.d.ts +72 -0
  24. package/dist/es/models/common/v1/config/IPAddressOrFQDN.js +332 -0
  25. package/dist/es/models/common/v1/config/IPv4Address.d.ts +62 -0
  26. package/dist/es/models/common/v1/config/IPv4Address.js +288 -0
  27. package/dist/es/models/common/v1/config/IPv6Address.d.ts +62 -0
  28. package/dist/es/models/common/v1/config/IPv6Address.js +288 -0
  29. package/dist/es/models/common/v1/config/KVPair.d.ts +62 -0
  30. package/dist/es/models/common/v1/config/KVPair.js +332 -0
  31. package/dist/es/models/common/v1/config/Message.d.ts +84 -0
  32. package/dist/es/models/common/v1/config/Message.js +354 -0
  33. package/dist/es/models/common/v1/config/MessageSeverity.d.ts +19 -0
  34. package/dist/es/models/common/v1/config/MessageSeverity.js +91 -0
  35. package/dist/es/models/common/v1/config/Metadata.d.ts +98 -0
  36. package/dist/es/models/common/v1/config/Metadata.js +413 -0
  37. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +50 -0
  38. package/dist/es/models/common/v1/config/TenantAwareModel.js +243 -0
  39. package/dist/es/models/common/v1/response/ApiLink.d.ts +62 -0
  40. package/dist/es/models/common/v1/response/ApiLink.js +280 -0
  41. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +98 -0
  42. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +438 -0
  43. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +42 -0
  44. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +270 -0
  45. package/dist/es/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
  46. package/dist/es/models/common/v1/stats/DownSamplingOperator.js +109 -0
  47. package/dist/es/models/prism/v4/config/TaskReference.d.ts +50 -0
  48. package/dist/es/models/prism/v4/config/TaskReference.js +260 -0
  49. package/dist/es/models/validation/ValidationError.d.ts +13 -0
  50. package/dist/es/models/validation/ValidationError.js +60 -0
  51. package/dist/es/models/validation/ValidationScopes.d.ts +9 -0
  52. package/dist/es/models/validation/ValidationScopes.js +38 -0
  53. package/dist/es/models/volumes/v4/config/AssociateCategoryApiResponse.d.ts +59 -0
  54. package/dist/es/models/volumes/v4/config/AssociateCategoryApiResponse.js +313 -0
  55. package/dist/es/models/volumes/v4/config/AttachIscsiClientApiResponse.d.ts +59 -0
  56. package/dist/es/models/volumes/v4/config/AttachIscsiClientApiResponse.js +311 -0
  57. package/dist/es/models/volumes/v4/config/AttachVmApiResponse.d.ts +59 -0
  58. package/dist/es/models/volumes/v4/config/AttachVmApiResponse.js +311 -0
  59. package/dist/es/models/volumes/v4/config/AuthenticationType.d.ts +19 -0
  60. package/dist/es/models/volumes/v4/config/AuthenticationType.js +85 -0
  61. package/dist/es/models/volumes/v4/config/CategoryDetails.d.ts +9 -0
  62. package/dist/es/models/volumes/v4/config/CategoryDetails.js +131 -0
  63. package/dist/es/models/volumes/v4/config/CategoryEntityReferences.d.ts +48 -0
  64. package/dist/es/models/volumes/v4/config/CategoryEntityReferences.js +256 -0
  65. package/dist/es/models/volumes/v4/config/Cluster.d.ts +62 -0
  66. package/dist/es/models/volumes/v4/config/Cluster.js +279 -0
  67. package/dist/es/models/volumes/v4/config/ClusterProjection.d.ts +9 -0
  68. package/dist/es/models/volumes/v4/config/ClusterProjection.js +129 -0
  69. package/dist/es/models/volumes/v4/config/CreateVolumeDiskApiResponse.d.ts +59 -0
  70. package/dist/es/models/volumes/v4/config/CreateVolumeDiskApiResponse.js +311 -0
  71. package/dist/es/models/volumes/v4/config/CreateVolumeGroupApiResponse.d.ts +59 -0
  72. package/dist/es/models/volumes/v4/config/CreateVolumeGroupApiResponse.js +311 -0
  73. package/dist/es/models/volumes/v4/config/DeleteVolumeDiskApiResponse.d.ts +59 -0
  74. package/dist/es/models/volumes/v4/config/DeleteVolumeDiskApiResponse.js +311 -0
  75. package/dist/es/models/volumes/v4/config/DeleteVolumeGroupApiResponse.d.ts +59 -0
  76. package/dist/es/models/volumes/v4/config/DeleteVolumeGroupApiResponse.js +311 -0
  77. package/dist/es/models/volumes/v4/config/DetachIscsiClientApiResponse.d.ts +59 -0
  78. package/dist/es/models/volumes/v4/config/DetachIscsiClientApiResponse.js +311 -0
  79. package/dist/es/models/volumes/v4/config/DetachVmApiResponse.d.ts +59 -0
  80. package/dist/es/models/volumes/v4/config/DetachVmApiResponse.js +311 -0
  81. package/dist/es/models/volumes/v4/config/DisassociateCategoryApiResponse.d.ts +59 -0
  82. package/dist/es/models/volumes/v4/config/DisassociateCategoryApiResponse.js +313 -0
  83. package/dist/es/models/volumes/v4/config/DiskStorageFeatures.d.ts +48 -0
  84. package/dist/es/models/volumes/v4/config/DiskStorageFeatures.js +240 -0
  85. package/dist/es/models/volumes/v4/config/FlashMode.d.ts +48 -0
  86. package/dist/es/models/volumes/v4/config/FlashMode.js +239 -0
  87. package/dist/es/models/volumes/v4/config/GetIscsiClientApiResponse.d.ts +59 -0
  88. package/dist/es/models/volumes/v4/config/GetIscsiClientApiResponse.js +311 -0
  89. package/dist/es/models/volumes/v4/config/GetVolumeDiskApiResponse.d.ts +59 -0
  90. package/dist/es/models/volumes/v4/config/GetVolumeDiskApiResponse.js +311 -0
  91. package/dist/es/models/volumes/v4/config/GetVolumeGroupApiResponse.d.ts +59 -0
  92. package/dist/es/models/volumes/v4/config/GetVolumeGroupApiResponse.js +311 -0
  93. package/dist/es/models/volumes/v4/config/GetVolumeGroupMetadataApiResponse.d.ts +59 -0
  94. package/dist/es/models/volumes/v4/config/GetVolumeGroupMetadataApiResponse.js +311 -0
  95. package/dist/es/models/volumes/v4/config/IscsiClient.d.ts +113 -0
  96. package/dist/es/models/volumes/v4/config/IscsiClient.js +495 -0
  97. package/dist/es/models/volumes/v4/config/IscsiClientAttachment.d.ts +32 -0
  98. package/dist/es/models/volumes/v4/config/IscsiClientAttachment.js +226 -0
  99. package/dist/es/models/volumes/v4/config/IscsiClientAttachmentProjection.d.ts +31 -0
  100. package/dist/es/models/volumes/v4/config/IscsiClientAttachmentProjection.js +223 -0
  101. package/dist/es/models/volumes/v4/config/IscsiClientProjection.d.ts +38 -0
  102. package/dist/es/models/volumes/v4/config/IscsiClientProjection.js +255 -0
  103. package/dist/es/models/volumes/v4/config/IscsiFeatures.d.ts +60 -0
  104. package/dist/es/models/volumes/v4/config/IscsiFeatures.js +278 -0
  105. package/dist/es/models/volumes/v4/config/ListCategoryAssociationsApiResponse.d.ts +59 -0
  106. package/dist/es/models/volumes/v4/config/ListCategoryAssociationsApiResponse.js +333 -0
  107. package/dist/es/models/volumes/v4/config/ListExternalIscsiAttachmentsApiResponse.d.ts +59 -0
  108. package/dist/es/models/volumes/v4/config/ListExternalIscsiAttachmentsApiResponse.js +338 -0
  109. package/dist/es/models/volumes/v4/config/ListIscsiClientsApiResponse.d.ts +59 -0
  110. package/dist/es/models/volumes/v4/config/ListIscsiClientsApiResponse.js +338 -0
  111. package/dist/es/models/volumes/v4/config/ListVmAttachmentsApiResponse.d.ts +59 -0
  112. package/dist/es/models/volumes/v4/config/ListVmAttachmentsApiResponse.js +338 -0
  113. package/dist/es/models/volumes/v4/config/ListVolumeDisksApiResponse.d.ts +59 -0
  114. package/dist/es/models/volumes/v4/config/ListVolumeDisksApiResponse.js +338 -0
  115. package/dist/es/models/volumes/v4/config/ListVolumeGroupsApiResponse.d.ts +59 -0
  116. package/dist/es/models/volumes/v4/config/ListVolumeGroupsApiResponse.js +338 -0
  117. package/dist/es/models/volumes/v4/config/MigrateVolumeGroupApiResponse.d.ts +59 -0
  118. package/dist/es/models/volumes/v4/config/MigrateVolumeGroupApiResponse.js +311 -0
  119. package/dist/es/models/volumes/v4/config/NvmfClient.d.ts +56 -0
  120. package/dist/es/models/volumes/v4/config/NvmfClient.js +308 -0
  121. package/dist/es/models/volumes/v4/config/NvmfClientAttachment.d.ts +32 -0
  122. package/dist/es/models/volumes/v4/config/NvmfClientAttachment.js +228 -0
  123. package/dist/es/models/volumes/v4/config/NvmfClientAttachmentProjection.d.ts +31 -0
  124. package/dist/es/models/volumes/v4/config/NvmfClientAttachmentProjection.js +225 -0
  125. package/dist/es/models/volumes/v4/config/NvmfClientProjection.d.ts +33 -0
  126. package/dist/es/models/volumes/v4/config/NvmfClientProjection.js +229 -0
  127. package/dist/es/models/volumes/v4/config/PauseVolumeGroupSynchronousReplicationApiResponse.d.ts +59 -0
  128. package/dist/es/models/volumes/v4/config/PauseVolumeGroupSynchronousReplicationApiResponse.js +311 -0
  129. package/dist/es/models/volumes/v4/config/ResumeVolumeGroupSynchronousReplicationApiResponse.d.ts +59 -0
  130. package/dist/es/models/volumes/v4/config/ResumeVolumeGroupSynchronousReplicationApiResponse.js +313 -0
  131. package/dist/es/models/volumes/v4/config/RevertSpec.d.ts +60 -0
  132. package/dist/es/models/volumes/v4/config/RevertSpec.js +250 -0
  133. package/dist/es/models/volumes/v4/config/RevertVolumeGroupApiResponse.d.ts +59 -0
  134. package/dist/es/models/volumes/v4/config/RevertVolumeGroupApiResponse.js +311 -0
  135. package/dist/es/models/volumes/v4/config/SharingStatus.d.ts +19 -0
  136. package/dist/es/models/volumes/v4/config/SharingStatus.js +85 -0
  137. package/dist/es/models/volumes/v4/config/StorageFeatures.d.ts +48 -0
  138. package/dist/es/models/volumes/v4/config/StorageFeatures.js +240 -0
  139. package/dist/es/models/volumes/v4/config/TargetParam.d.ts +64 -0
  140. package/dist/es/models/volumes/v4/config/TargetParam.js +284 -0
  141. package/dist/es/models/volumes/v4/config/Task.d.ts +50 -0
  142. package/dist/es/models/volumes/v4/config/Task.js +245 -0
  143. package/dist/es/models/volumes/v4/config/UpdateIscsiClientApiResponse.d.ts +59 -0
  144. package/dist/es/models/volumes/v4/config/UpdateIscsiClientApiResponse.js +311 -0
  145. package/dist/es/models/volumes/v4/config/UpdateVolumeDiskApiResponse.d.ts +59 -0
  146. package/dist/es/models/volumes/v4/config/UpdateVolumeDiskApiResponse.js +311 -0
  147. package/dist/es/models/volumes/v4/config/UpdateVolumeGroupApiResponse.d.ts +59 -0
  148. package/dist/es/models/volumes/v4/config/UpdateVolumeGroupApiResponse.js +311 -0
  149. package/dist/es/models/volumes/v4/config/UpdateVolumeGroupMetadataApiResponse.d.ts +59 -0
  150. package/dist/es/models/volumes/v4/config/UpdateVolumeGroupMetadataApiResponse.js +313 -0
  151. package/dist/es/models/volumes/v4/config/UpdateVolumeGroupMetadataInfoApiResponse.d.ts +59 -0
  152. package/dist/es/models/volumes/v4/config/UpdateVolumeGroupMetadataInfoApiResponse.js +313 -0
  153. package/dist/es/models/volumes/v4/config/UsageType.d.ts +19 -0
  154. package/dist/es/models/volumes/v4/config/UsageType.js +97 -0
  155. package/dist/es/models/volumes/v4/config/VmAttachment.d.ts +32 -0
  156. package/dist/es/models/volumes/v4/config/VmAttachment.js +225 -0
  157. package/dist/es/models/volumes/v4/config/VmAttachmentProjection.d.ts +9 -0
  158. package/dist/es/models/volumes/v4/config/VmAttachmentProjection.js +129 -0
  159. package/dist/es/models/volumes/v4/config/VolumeDisk.d.ts +92 -0
  160. package/dist/es/models/volumes/v4/config/VolumeDisk.js +433 -0
  161. package/dist/es/models/volumes/v4/config/VolumeDiskProjection.d.ts +9 -0
  162. package/dist/es/models/volumes/v4/config/VolumeDiskProjection.js +131 -0
  163. package/dist/es/models/volumes/v4/config/VolumeGroup.d.ts +166 -0
  164. package/dist/es/models/volumes/v4/config/VolumeGroup.js +697 -0
  165. package/dist/es/models/volumes/v4/config/VolumeGroupAttachmentSite.d.ts +19 -0
  166. package/dist/es/models/volumes/v4/config/VolumeGroupAttachmentSite.js +85 -0
  167. package/dist/es/models/volumes/v4/config/VolumeGroupMetadata.d.ts +62 -0
  168. package/dist/es/models/volumes/v4/config/VolumeGroupMetadata.js +284 -0
  169. package/dist/es/models/volumes/v4/config/VolumeGroupMetadataProjection.d.ts +9 -0
  170. package/dist/es/models/volumes/v4/config/VolumeGroupMetadataProjection.js +129 -0
  171. package/dist/es/models/volumes/v4/config/VolumeGroupProjection.d.ts +53 -0
  172. package/dist/es/models/volumes/v4/config/VolumeGroupProjection.js +314 -0
  173. package/dist/es/models/volumes/v4/error/AppMessage.d.ts +108 -0
  174. package/dist/es/models/volumes/v4/error/AppMessage.js +432 -0
  175. package/dist/es/models/volumes/v4/error/ErrorResponse.d.ts +48 -0
  176. package/dist/es/models/volumes/v4/error/ErrorResponse.js +314 -0
  177. package/dist/es/models/volumes/v4/error/SchemaValidationError.d.ts +98 -0
  178. package/dist/es/models/volumes/v4/error/SchemaValidationError.js +407 -0
  179. package/dist/es/models/volumes/v4/error/SchemaValidationErrorMessage.d.ts +74 -0
  180. package/dist/es/models/volumes/v4/error/SchemaValidationErrorMessage.js +318 -0
  181. package/dist/es/models/volumes/v4/stats/GetVolumeDiskStatsApiResponse.d.ts +59 -0
  182. package/dist/es/models/volumes/v4/stats/GetVolumeDiskStatsApiResponse.js +311 -0
  183. package/dist/es/models/volumes/v4/stats/GetVolumeGroupStatsApiResponse.d.ts +59 -0
  184. package/dist/es/models/volumes/v4/stats/GetVolumeGroupStatsApiResponse.js +311 -0
  185. package/dist/es/models/volumes/v4/stats/TimeValuePair.d.ts +62 -0
  186. package/dist/es/models/volumes/v4/stats/TimeValuePair.js +279 -0
  187. package/dist/es/models/volumes/v4/stats/VolumeDiskStats.d.ts +170 -0
  188. package/dist/es/models/volumes/v4/stats/VolumeDiskStats.js +728 -0
  189. package/dist/es/models/volumes/v4/stats/VolumeGroupStats.d.ts +170 -0
  190. package/dist/es/models/volumes/v4/stats/VolumeGroupStats.js +728 -0
  191. package/dist/es/models/volumes/v4/stats/VolumeGroupStatsProjection.d.ts +9 -0
  192. package/dist/es/models/volumes/v4/stats/VolumeGroupStatsProjection.js +130 -0
  193. package/dist/es/utils/ValidationUtils.d.ts +13 -0
  194. package/dist/es/utils/ValidationUtils.js +85 -0
  195. package/dist/lib/ApiClient.d.ts +159 -0
  196. package/dist/lib/ApiClient.js +1211 -0
  197. package/dist/lib/Paginable.d.ts +95 -0
  198. package/dist/lib/Paginable.js +287 -0
  199. package/dist/lib/apis/iscsiclients-endpoints.d.ts +69 -0
  200. package/dist/lib/apis/iscsiclients-endpoints.js +167 -0
  201. package/dist/lib/apis/volumegroups-endpoints.d.ts +342 -0
  202. package/dist/lib/apis/volumegroups-endpoints.js +1023 -0
  203. package/dist/lib/index.d.ts +184 -0
  204. package/dist/lib/index.js +732 -0
  205. package/dist/lib/models/common/v1/config/EntityReference.d.ts +78 -0
  206. package/dist/lib/models/common/v1/config/EntityReference.js +352 -0
  207. package/dist/lib/models/common/v1/config/EntityType.d.ts +19 -0
  208. package/dist/lib/models/common/v1/config/EntityType.js +205 -0
  209. package/dist/lib/models/common/v1/config/FQDN.d.ts +48 -0
  210. package/dist/lib/models/common/v1/config/FQDN.js +242 -0
  211. package/dist/lib/models/common/v1/config/Flag.d.ts +58 -0
  212. package/dist/lib/models/common/v1/config/Flag.js +275 -0
  213. package/dist/lib/models/common/v1/config/IPAddressOrFQDN.d.ts +72 -0
  214. package/dist/lib/models/common/v1/config/IPAddressOrFQDN.js +332 -0
  215. package/dist/lib/models/common/v1/config/IPv4Address.d.ts +62 -0
  216. package/dist/lib/models/common/v1/config/IPv4Address.js +288 -0
  217. package/dist/lib/models/common/v1/config/IPv6Address.d.ts +62 -0
  218. package/dist/lib/models/common/v1/config/IPv6Address.js +288 -0
  219. package/dist/lib/models/common/v1/config/KVPair.d.ts +62 -0
  220. package/dist/lib/models/common/v1/config/KVPair.js +332 -0
  221. package/dist/lib/models/common/v1/config/Message.d.ts +84 -0
  222. package/dist/lib/models/common/v1/config/Message.js +354 -0
  223. package/dist/lib/models/common/v1/config/MessageSeverity.d.ts +19 -0
  224. package/dist/lib/models/common/v1/config/MessageSeverity.js +91 -0
  225. package/dist/lib/models/common/v1/config/Metadata.d.ts +98 -0
  226. package/dist/lib/models/common/v1/config/Metadata.js +413 -0
  227. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +50 -0
  228. package/dist/lib/models/common/v1/config/TenantAwareModel.js +243 -0
  229. package/dist/lib/models/common/v1/response/ApiLink.d.ts +62 -0
  230. package/dist/lib/models/common/v1/response/ApiLink.js +280 -0
  231. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +98 -0
  232. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +438 -0
  233. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +42 -0
  234. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +270 -0
  235. package/dist/lib/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
  236. package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +109 -0
  237. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +50 -0
  238. package/dist/lib/models/prism/v4/config/TaskReference.js +260 -0
  239. package/dist/lib/models/validation/ValidationError.d.ts +13 -0
  240. package/dist/lib/models/validation/ValidationError.js +60 -0
  241. package/dist/lib/models/validation/ValidationScopes.d.ts +9 -0
  242. package/dist/lib/models/validation/ValidationScopes.js +38 -0
  243. package/dist/lib/models/volumes/v4/config/AssociateCategoryApiResponse.d.ts +59 -0
  244. package/dist/lib/models/volumes/v4/config/AssociateCategoryApiResponse.js +313 -0
  245. package/dist/lib/models/volumes/v4/config/AttachIscsiClientApiResponse.d.ts +59 -0
  246. package/dist/lib/models/volumes/v4/config/AttachIscsiClientApiResponse.js +311 -0
  247. package/dist/lib/models/volumes/v4/config/AttachVmApiResponse.d.ts +59 -0
  248. package/dist/lib/models/volumes/v4/config/AttachVmApiResponse.js +311 -0
  249. package/dist/lib/models/volumes/v4/config/AuthenticationType.d.ts +19 -0
  250. package/dist/lib/models/volumes/v4/config/AuthenticationType.js +85 -0
  251. package/dist/lib/models/volumes/v4/config/CategoryDetails.d.ts +9 -0
  252. package/dist/lib/models/volumes/v4/config/CategoryDetails.js +131 -0
  253. package/dist/lib/models/volumes/v4/config/CategoryEntityReferences.d.ts +48 -0
  254. package/dist/lib/models/volumes/v4/config/CategoryEntityReferences.js +256 -0
  255. package/dist/lib/models/volumes/v4/config/Cluster.d.ts +62 -0
  256. package/dist/lib/models/volumes/v4/config/Cluster.js +279 -0
  257. package/dist/lib/models/volumes/v4/config/ClusterProjection.d.ts +9 -0
  258. package/dist/lib/models/volumes/v4/config/ClusterProjection.js +129 -0
  259. package/dist/lib/models/volumes/v4/config/CreateVolumeDiskApiResponse.d.ts +59 -0
  260. package/dist/lib/models/volumes/v4/config/CreateVolumeDiskApiResponse.js +311 -0
  261. package/dist/lib/models/volumes/v4/config/CreateVolumeGroupApiResponse.d.ts +59 -0
  262. package/dist/lib/models/volumes/v4/config/CreateVolumeGroupApiResponse.js +311 -0
  263. package/dist/lib/models/volumes/v4/config/DeleteVolumeDiskApiResponse.d.ts +59 -0
  264. package/dist/lib/models/volumes/v4/config/DeleteVolumeDiskApiResponse.js +311 -0
  265. package/dist/lib/models/volumes/v4/config/DeleteVolumeGroupApiResponse.d.ts +59 -0
  266. package/dist/lib/models/volumes/v4/config/DeleteVolumeGroupApiResponse.js +311 -0
  267. package/dist/lib/models/volumes/v4/config/DetachIscsiClientApiResponse.d.ts +59 -0
  268. package/dist/lib/models/volumes/v4/config/DetachIscsiClientApiResponse.js +311 -0
  269. package/dist/lib/models/volumes/v4/config/DetachVmApiResponse.d.ts +59 -0
  270. package/dist/lib/models/volumes/v4/config/DetachVmApiResponse.js +311 -0
  271. package/dist/lib/models/volumes/v4/config/DisassociateCategoryApiResponse.d.ts +59 -0
  272. package/dist/lib/models/volumes/v4/config/DisassociateCategoryApiResponse.js +313 -0
  273. package/dist/lib/models/volumes/v4/config/DiskStorageFeatures.d.ts +48 -0
  274. package/dist/lib/models/volumes/v4/config/DiskStorageFeatures.js +240 -0
  275. package/dist/lib/models/volumes/v4/config/FlashMode.d.ts +48 -0
  276. package/dist/lib/models/volumes/v4/config/FlashMode.js +239 -0
  277. package/dist/lib/models/volumes/v4/config/GetIscsiClientApiResponse.d.ts +59 -0
  278. package/dist/lib/models/volumes/v4/config/GetIscsiClientApiResponse.js +311 -0
  279. package/dist/lib/models/volumes/v4/config/GetVolumeDiskApiResponse.d.ts +59 -0
  280. package/dist/lib/models/volumes/v4/config/GetVolumeDiskApiResponse.js +311 -0
  281. package/dist/lib/models/volumes/v4/config/GetVolumeGroupApiResponse.d.ts +59 -0
  282. package/dist/lib/models/volumes/v4/config/GetVolumeGroupApiResponse.js +311 -0
  283. package/dist/lib/models/volumes/v4/config/GetVolumeGroupMetadataApiResponse.d.ts +59 -0
  284. package/dist/lib/models/volumes/v4/config/GetVolumeGroupMetadataApiResponse.js +311 -0
  285. package/dist/lib/models/volumes/v4/config/IscsiClient.d.ts +113 -0
  286. package/dist/lib/models/volumes/v4/config/IscsiClient.js +495 -0
  287. package/dist/lib/models/volumes/v4/config/IscsiClientAttachment.d.ts +32 -0
  288. package/dist/lib/models/volumes/v4/config/IscsiClientAttachment.js +226 -0
  289. package/dist/lib/models/volumes/v4/config/IscsiClientAttachmentProjection.d.ts +31 -0
  290. package/dist/lib/models/volumes/v4/config/IscsiClientAttachmentProjection.js +223 -0
  291. package/dist/lib/models/volumes/v4/config/IscsiClientProjection.d.ts +38 -0
  292. package/dist/lib/models/volumes/v4/config/IscsiClientProjection.js +255 -0
  293. package/dist/lib/models/volumes/v4/config/IscsiFeatures.d.ts +60 -0
  294. package/dist/lib/models/volumes/v4/config/IscsiFeatures.js +278 -0
  295. package/dist/lib/models/volumes/v4/config/ListCategoryAssociationsApiResponse.d.ts +59 -0
  296. package/dist/lib/models/volumes/v4/config/ListCategoryAssociationsApiResponse.js +333 -0
  297. package/dist/lib/models/volumes/v4/config/ListExternalIscsiAttachmentsApiResponse.d.ts +59 -0
  298. package/dist/lib/models/volumes/v4/config/ListExternalIscsiAttachmentsApiResponse.js +338 -0
  299. package/dist/lib/models/volumes/v4/config/ListIscsiClientsApiResponse.d.ts +59 -0
  300. package/dist/lib/models/volumes/v4/config/ListIscsiClientsApiResponse.js +338 -0
  301. package/dist/lib/models/volumes/v4/config/ListVmAttachmentsApiResponse.d.ts +59 -0
  302. package/dist/lib/models/volumes/v4/config/ListVmAttachmentsApiResponse.js +338 -0
  303. package/dist/lib/models/volumes/v4/config/ListVolumeDisksApiResponse.d.ts +59 -0
  304. package/dist/lib/models/volumes/v4/config/ListVolumeDisksApiResponse.js +338 -0
  305. package/dist/lib/models/volumes/v4/config/ListVolumeGroupsApiResponse.d.ts +59 -0
  306. package/dist/lib/models/volumes/v4/config/ListVolumeGroupsApiResponse.js +338 -0
  307. package/dist/lib/models/volumes/v4/config/MigrateVolumeGroupApiResponse.d.ts +59 -0
  308. package/dist/lib/models/volumes/v4/config/MigrateVolumeGroupApiResponse.js +311 -0
  309. package/dist/lib/models/volumes/v4/config/NvmfClient.d.ts +56 -0
  310. package/dist/lib/models/volumes/v4/config/NvmfClient.js +308 -0
  311. package/dist/lib/models/volumes/v4/config/NvmfClientAttachment.d.ts +32 -0
  312. package/dist/lib/models/volumes/v4/config/NvmfClientAttachment.js +228 -0
  313. package/dist/lib/models/volumes/v4/config/NvmfClientAttachmentProjection.d.ts +31 -0
  314. package/dist/lib/models/volumes/v4/config/NvmfClientAttachmentProjection.js +225 -0
  315. package/dist/lib/models/volumes/v4/config/NvmfClientProjection.d.ts +33 -0
  316. package/dist/lib/models/volumes/v4/config/NvmfClientProjection.js +229 -0
  317. package/dist/lib/models/volumes/v4/config/PauseVolumeGroupSynchronousReplicationApiResponse.d.ts +59 -0
  318. package/dist/lib/models/volumes/v4/config/PauseVolumeGroupSynchronousReplicationApiResponse.js +311 -0
  319. package/dist/lib/models/volumes/v4/config/ResumeVolumeGroupSynchronousReplicationApiResponse.d.ts +59 -0
  320. package/dist/lib/models/volumes/v4/config/ResumeVolumeGroupSynchronousReplicationApiResponse.js +313 -0
  321. package/dist/lib/models/volumes/v4/config/RevertSpec.d.ts +60 -0
  322. package/dist/lib/models/volumes/v4/config/RevertSpec.js +250 -0
  323. package/dist/lib/models/volumes/v4/config/RevertVolumeGroupApiResponse.d.ts +59 -0
  324. package/dist/lib/models/volumes/v4/config/RevertVolumeGroupApiResponse.js +311 -0
  325. package/dist/lib/models/volumes/v4/config/SharingStatus.d.ts +19 -0
  326. package/dist/lib/models/volumes/v4/config/SharingStatus.js +85 -0
  327. package/dist/lib/models/volumes/v4/config/StorageFeatures.d.ts +48 -0
  328. package/dist/lib/models/volumes/v4/config/StorageFeatures.js +240 -0
  329. package/dist/lib/models/volumes/v4/config/TargetParam.d.ts +64 -0
  330. package/dist/lib/models/volumes/v4/config/TargetParam.js +284 -0
  331. package/dist/lib/models/volumes/v4/config/Task.d.ts +50 -0
  332. package/dist/lib/models/volumes/v4/config/Task.js +245 -0
  333. package/dist/lib/models/volumes/v4/config/UpdateIscsiClientApiResponse.d.ts +59 -0
  334. package/dist/lib/models/volumes/v4/config/UpdateIscsiClientApiResponse.js +311 -0
  335. package/dist/lib/models/volumes/v4/config/UpdateVolumeDiskApiResponse.d.ts +59 -0
  336. package/dist/lib/models/volumes/v4/config/UpdateVolumeDiskApiResponse.js +311 -0
  337. package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupApiResponse.d.ts +59 -0
  338. package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupApiResponse.js +311 -0
  339. package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupMetadataApiResponse.d.ts +59 -0
  340. package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupMetadataApiResponse.js +313 -0
  341. package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupMetadataInfoApiResponse.d.ts +59 -0
  342. package/dist/lib/models/volumes/v4/config/UpdateVolumeGroupMetadataInfoApiResponse.js +313 -0
  343. package/dist/lib/models/volumes/v4/config/UsageType.d.ts +19 -0
  344. package/dist/lib/models/volumes/v4/config/UsageType.js +97 -0
  345. package/dist/lib/models/volumes/v4/config/VmAttachment.d.ts +32 -0
  346. package/dist/lib/models/volumes/v4/config/VmAttachment.js +225 -0
  347. package/dist/lib/models/volumes/v4/config/VmAttachmentProjection.d.ts +9 -0
  348. package/dist/lib/models/volumes/v4/config/VmAttachmentProjection.js +129 -0
  349. package/dist/lib/models/volumes/v4/config/VolumeDisk.d.ts +92 -0
  350. package/dist/lib/models/volumes/v4/config/VolumeDisk.js +433 -0
  351. package/dist/lib/models/volumes/v4/config/VolumeDiskProjection.d.ts +9 -0
  352. package/dist/lib/models/volumes/v4/config/VolumeDiskProjection.js +131 -0
  353. package/dist/lib/models/volumes/v4/config/VolumeGroup.d.ts +166 -0
  354. package/dist/lib/models/volumes/v4/config/VolumeGroup.js +697 -0
  355. package/dist/lib/models/volumes/v4/config/VolumeGroupAttachmentSite.d.ts +19 -0
  356. package/dist/lib/models/volumes/v4/config/VolumeGroupAttachmentSite.js +85 -0
  357. package/dist/lib/models/volumes/v4/config/VolumeGroupMetadata.d.ts +62 -0
  358. package/dist/lib/models/volumes/v4/config/VolumeGroupMetadata.js +284 -0
  359. package/dist/lib/models/volumes/v4/config/VolumeGroupMetadataProjection.d.ts +9 -0
  360. package/dist/lib/models/volumes/v4/config/VolumeGroupMetadataProjection.js +129 -0
  361. package/dist/lib/models/volumes/v4/config/VolumeGroupProjection.d.ts +53 -0
  362. package/dist/lib/models/volumes/v4/config/VolumeGroupProjection.js +314 -0
  363. package/dist/lib/models/volumes/v4/error/AppMessage.d.ts +108 -0
  364. package/dist/lib/models/volumes/v4/error/AppMessage.js +432 -0
  365. package/dist/lib/models/volumes/v4/error/ErrorResponse.d.ts +48 -0
  366. package/dist/lib/models/volumes/v4/error/ErrorResponse.js +314 -0
  367. package/dist/lib/models/volumes/v4/error/SchemaValidationError.d.ts +98 -0
  368. package/dist/lib/models/volumes/v4/error/SchemaValidationError.js +407 -0
  369. package/dist/lib/models/volumes/v4/error/SchemaValidationErrorMessage.d.ts +74 -0
  370. package/dist/lib/models/volumes/v4/error/SchemaValidationErrorMessage.js +318 -0
  371. package/dist/lib/models/volumes/v4/stats/GetVolumeDiskStatsApiResponse.d.ts +59 -0
  372. package/dist/lib/models/volumes/v4/stats/GetVolumeDiskStatsApiResponse.js +311 -0
  373. package/dist/lib/models/volumes/v4/stats/GetVolumeGroupStatsApiResponse.d.ts +59 -0
  374. package/dist/lib/models/volumes/v4/stats/GetVolumeGroupStatsApiResponse.js +311 -0
  375. package/dist/lib/models/volumes/v4/stats/TimeValuePair.d.ts +62 -0
  376. package/dist/lib/models/volumes/v4/stats/TimeValuePair.js +279 -0
  377. package/dist/lib/models/volumes/v4/stats/VolumeDiskStats.d.ts +170 -0
  378. package/dist/lib/models/volumes/v4/stats/VolumeDiskStats.js +728 -0
  379. package/dist/lib/models/volumes/v4/stats/VolumeGroupStats.d.ts +170 -0
  380. package/dist/lib/models/volumes/v4/stats/VolumeGroupStats.js +728 -0
  381. package/dist/lib/models/volumes/v4/stats/VolumeGroupStatsProjection.d.ts +9 -0
  382. package/dist/lib/models/volumes/v4/stats/VolumeGroupStatsProjection.js +130 -0
  383. package/dist/lib/utils/ValidationUtils.d.ts +13 -0
  384. package/dist/lib/utils/ValidationUtils.js +85 -0
  385. package/package.json +53 -0
@@ -0,0 +1,728 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _TimeValuePair = _interopRequireDefault(require("./TimeValuePair"));
8
+ var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
9
+ var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
10
+ var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
13
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
14
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
15
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
16
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
17
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
18
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
19
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
21
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
22
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
24
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
26
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
27
+ function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
28
+ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
29
+ * Nutanix Volumes Versioned APIs
30
+ *
31
+ * OpenAPI spec version: 4.0.1-beta-1
32
+ *
33
+ * NOTE: This class is auto generated by the Open API Dev Platform.
34
+ *
35
+ * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
36
+ *
37
+ * Do not edit the class manually.
38
+ *
39
+ */
40
+ /**
41
+ * The VolumeDiskStats model module.
42
+ * @module Ntnx/VolumeDiskStats
43
+ * @version 4.0.1-beta-1
44
+ * @class VolumeDiskStats
45
+ */
46
+ var _VolumeDiskStats_brand = /*#__PURE__*/new WeakSet();
47
+ var VolumeDiskStats = exports["default"] = /*#__PURE__*/function () {
48
+ /**
49
+ * Constructs a new <code>VolumeDiskStats</code>.
50
+ * A model that stores the Volume disk stats.
51
+ * @alias module:Ntnx/VolumeDiskStats
52
+ */
53
+ function VolumeDiskStats() {
54
+ _classCallCheck(this, VolumeDiskStats);
55
+ /*
56
+ * toJson method for a map type which supports map with primitive keys and values of object types
57
+ * @param {Object} obj
58
+ * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
59
+ * Otherwise, just returns the input object.
60
+ */
61
+ _classPrivateMethodInitSpec(this, _VolumeDiskStats_brand);
62
+ this.$objectType = "volumes.v4.stats.VolumeDiskStats";
63
+ this.$reserved = {
64
+ '$fv': "v4.r0.b1"
65
+ };
66
+ this.$unknownFields = {};
67
+ }
68
+
69
+ /**
70
+ * Constructs a <code>VolumeDiskStats</code> from a plain JavaScript object, optionally creating a new instance.
71
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
72
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
73
+ * @param {module:Ntnx/VolumeDiskStats} obj Optional instance to populate.
74
+ * @param callFromChild {Boolean} Flag to recognise calling instance
75
+ * @return {module:Ntnx/VolumeDiskStats} The populated <code>VolumeDiskStats</code> instance.
76
+ */
77
+ return _createClass(VolumeDiskStats, [{
78
+ key: "getVolumeDiskExtId",
79
+ value:
80
+ /**
81
+ * Returns Uuid of the Volume Disk.
82
+ * @return {}
83
+ */
84
+ function getVolumeDiskExtId() {
85
+ return this.volumeDiskExtId;
86
+ }
87
+
88
+ /**
89
+ * Sets Uuid of the Volume Disk.
90
+ * @param {} volumeDiskExtId Uuid of the Volume Disk.
91
+ */
92
+ }, {
93
+ key: "setVolumeDiskExtId",
94
+ value: function setVolumeDiskExtId(volumeDiskExtId) {
95
+ this.volumeDiskExtId = volumeDiskExtId;
96
+ }
97
+
98
+ /**
99
+ * Returns Controller user bytes.
100
+ * @return {}
101
+ */
102
+ }, {
103
+ key: "getControllerUserBytes",
104
+ value: function getControllerUserBytes() {
105
+ return this.controllerUserBytes;
106
+ }
107
+
108
+ /**
109
+ * Sets Controller user bytes.
110
+ * @param {} controllerUserBytes Controller user bytes.
111
+ */
112
+ }, {
113
+ key: "setControllerUserBytes",
114
+ value: function setControllerUserBytes(controllerUserBytes) {
115
+ this.controllerUserBytes = controllerUserBytes;
116
+ }
117
+
118
+ /**
119
+ * Returns Controller I/O rate measured in iops.
120
+ * @return {}
121
+ */
122
+ }, {
123
+ key: "getControllerNumIOPS",
124
+ value: function getControllerNumIOPS() {
125
+ return this.controllerNumIOPS;
126
+ }
127
+
128
+ /**
129
+ * Sets Controller I/O rate measured in iops.
130
+ * @param {} controllerNumIOPS Controller I/O rate measured in iops.
131
+ */
132
+ }, {
133
+ key: "setControllerNumIOPS",
134
+ value: function setControllerNumIOPS(controllerNumIOPS) {
135
+ this.controllerNumIOPS = controllerNumIOPS;
136
+ }
137
+
138
+ /**
139
+ * Returns Controller read I/O measured in iops.
140
+ * @return {}
141
+ */
142
+ }, {
143
+ key: "getControllerNumReadIOPS",
144
+ value: function getControllerNumReadIOPS() {
145
+ return this.controllerNumReadIOPS;
146
+ }
147
+
148
+ /**
149
+ * Sets Controller read I/O measured in iops.
150
+ * @param {} controllerNumReadIOPS Controller read I/O measured in iops.
151
+ */
152
+ }, {
153
+ key: "setControllerNumReadIOPS",
154
+ value: function setControllerNumReadIOPS(controllerNumReadIOPS) {
155
+ this.controllerNumReadIOPS = controllerNumReadIOPS;
156
+ }
157
+
158
+ /**
159
+ * Returns Controller write I/O measured in iops.
160
+ * @return {}
161
+ */
162
+ }, {
163
+ key: "getControllerNumWriteIOPS",
164
+ value: function getControllerNumWriteIOPS() {
165
+ return this.controllerNumWriteIOPS;
166
+ }
167
+
168
+ /**
169
+ * Sets Controller write I/O measured in iops.
170
+ * @param {} controllerNumWriteIOPS Controller write I/O measured in iops.
171
+ */
172
+ }, {
173
+ key: "setControllerNumWriteIOPS",
174
+ value: function setControllerNumWriteIOPS(controllerNumWriteIOPS) {
175
+ this.controllerNumWriteIOPS = controllerNumWriteIOPS;
176
+ }
177
+
178
+ /**
179
+ * Returns Controller I/O bandwidth measured in Kbps.
180
+ * @return {}
181
+ */
182
+ }, {
183
+ key: "getControllerIOBandwidthKBps",
184
+ value: function getControllerIOBandwidthKBps() {
185
+ return this.controllerIOBandwidthKBps;
186
+ }
187
+
188
+ /**
189
+ * Sets Controller I/O bandwidth measured in Kbps.
190
+ * @param {} controllerIOBandwidthKBps Controller I/O bandwidth measured in Kbps.
191
+ */
192
+ }, {
193
+ key: "setControllerIOBandwidthKBps",
194
+ value: function setControllerIOBandwidthKBps(controllerIOBandwidthKBps) {
195
+ this.controllerIOBandwidthKBps = controllerIOBandwidthKBps;
196
+ }
197
+
198
+ /**
199
+ * Returns Controller read I/O bandwidth measured in Kbps.
200
+ * @return {}
201
+ */
202
+ }, {
203
+ key: "getControllerReadIOBandwidthKBps",
204
+ value: function getControllerReadIOBandwidthKBps() {
205
+ return this.controllerReadIOBandwidthKBps;
206
+ }
207
+
208
+ /**
209
+ * Sets Controller read I/O bandwidth measured in Kbps.
210
+ * @param {} controllerReadIOBandwidthKBps Controller read I/O bandwidth measured in Kbps.
211
+ */
212
+ }, {
213
+ key: "setControllerReadIOBandwidthKBps",
214
+ value: function setControllerReadIOBandwidthKBps(controllerReadIOBandwidthKBps) {
215
+ this.controllerReadIOBandwidthKBps = controllerReadIOBandwidthKBps;
216
+ }
217
+
218
+ /**
219
+ * Returns Controller write I/O bandwidth measured in Kbps.
220
+ * @return {}
221
+ */
222
+ }, {
223
+ key: "getControllerWriteIOBandwidthKBps",
224
+ value: function getControllerWriteIOBandwidthKBps() {
225
+ return this.controllerWriteIOBandwidthKBps;
226
+ }
227
+
228
+ /**
229
+ * Sets Controller write I/O bandwidth measured in Kbps.
230
+ * @param {} controllerWriteIOBandwidthKBps Controller write I/O bandwidth measured in Kbps.
231
+ */
232
+ }, {
233
+ key: "setControllerWriteIOBandwidthKBps",
234
+ value: function setControllerWriteIOBandwidthKBps(controllerWriteIOBandwidthKBps) {
235
+ this.controllerWriteIOBandwidthKBps = controllerWriteIOBandwidthKBps;
236
+ }
237
+
238
+ /**
239
+ * Returns Controller average I/O latency measured in microseconds.
240
+ * @return {}
241
+ */
242
+ }, {
243
+ key: "getControllerAvgIOLatencyUsecs",
244
+ value: function getControllerAvgIOLatencyUsecs() {
245
+ return this.controllerAvgIOLatencyUsecs;
246
+ }
247
+
248
+ /**
249
+ * Sets Controller average I/O latency measured in microseconds.
250
+ * @param {} controllerAvgIOLatencyUsecs Controller average I/O latency measured in microseconds.
251
+ */
252
+ }, {
253
+ key: "setControllerAvgIOLatencyUsecs",
254
+ value: function setControllerAvgIOLatencyUsecs(controllerAvgIOLatencyUsecs) {
255
+ this.controllerAvgIOLatencyUsecs = controllerAvgIOLatencyUsecs;
256
+ }
257
+
258
+ /**
259
+ * Returns Controller average read I/O latency measured in microseconds.
260
+ * @return {}
261
+ */
262
+ }, {
263
+ key: "getControllerAvgReadIOLatencyUsecs",
264
+ value: function getControllerAvgReadIOLatencyUsecs() {
265
+ return this.controllerAvgReadIOLatencyUsecs;
266
+ }
267
+
268
+ /**
269
+ * Sets Controller average read I/O latency measured in microseconds.
270
+ * @param {} controllerAvgReadIOLatencyUsecs Controller average read I/O latency measured in microseconds.
271
+ */
272
+ }, {
273
+ key: "setControllerAvgReadIOLatencyUsecs",
274
+ value: function setControllerAvgReadIOLatencyUsecs(controllerAvgReadIOLatencyUsecs) {
275
+ this.controllerAvgReadIOLatencyUsecs = controllerAvgReadIOLatencyUsecs;
276
+ }
277
+
278
+ /**
279
+ * Returns Controller average write I/O latency measured in microseconds.
280
+ * @return {}
281
+ */
282
+ }, {
283
+ key: "getControllerAvgWriteIOLatencyUsecs",
284
+ value: function getControllerAvgWriteIOLatencyUsecs() {
285
+ return this.controllerAvgWriteIOLatencyUsecs;
286
+ }
287
+
288
+ /**
289
+ * Sets Controller average write I/O latency measured in microseconds.
290
+ * @param {} controllerAvgWriteIOLatencyUsecs Controller average write I/O latency measured in microseconds.
291
+ */
292
+ }, {
293
+ key: "setControllerAvgWriteIOLatencyUsecs",
294
+ value: function setControllerAvgWriteIOLatencyUsecs(controllerAvgWriteIOLatencyUsecs) {
295
+ this.controllerAvgWriteIOLatencyUsecs = controllerAvgWriteIOLatencyUsecs;
296
+ }
297
+ }, {
298
+ key: "get$Reserved",
299
+ value: function get$Reserved() {
300
+ return this.$reserved;
301
+ }
302
+ }, {
303
+ key: "get$ObjectType",
304
+ value: function get$ObjectType() {
305
+ return this.$objectType;
306
+ }
307
+ }, {
308
+ key: "get$UnknownFields",
309
+ value: function get$UnknownFields() {
310
+ return this.$unknownFields;
311
+ }
312
+ }, {
313
+ key: "toJson",
314
+ value: function toJson(forMutation) {
315
+ if (forMutation === false) {
316
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getVolumeDiskExtId() !== 'undefined' && this.getVolumeDiskExtId() !== null ? {
317
+ 'volumeDiskExtId': this.getVolumeDiskExtId()
318
+ } : {}), typeof this.getControllerUserBytes() !== 'undefined' && this.getControllerUserBytes() !== null ? {
319
+ 'controllerUserBytes': this.getControllerUserBytes().map(function (item) {
320
+ return item.toJson(false);
321
+ })
322
+ } : {}), typeof this.getControllerNumIOPS() !== 'undefined' && this.getControllerNumIOPS() !== null ? {
323
+ 'controllerNumIOPS': this.getControllerNumIOPS().map(function (item) {
324
+ return item.toJson(false);
325
+ })
326
+ } : {}), typeof this.getControllerNumReadIOPS() !== 'undefined' && this.getControllerNumReadIOPS() !== null ? {
327
+ 'controllerNumReadIOPS': this.getControllerNumReadIOPS().map(function (item) {
328
+ return item.toJson(false);
329
+ })
330
+ } : {}), typeof this.getControllerNumWriteIOPS() !== 'undefined' && this.getControllerNumWriteIOPS() !== null ? {
331
+ 'controllerNumWriteIOPS': this.getControllerNumWriteIOPS().map(function (item) {
332
+ return item.toJson(false);
333
+ })
334
+ } : {}), typeof this.getControllerIOBandwidthKBps() !== 'undefined' && this.getControllerIOBandwidthKBps() !== null ? {
335
+ 'controllerIOBandwidthKBps': this.getControllerIOBandwidthKBps().map(function (item) {
336
+ return item.toJson(false);
337
+ })
338
+ } : {}), typeof this.getControllerReadIOBandwidthKBps() !== 'undefined' && this.getControllerReadIOBandwidthKBps() !== null ? {
339
+ 'controllerReadIOBandwidthKBps': this.getControllerReadIOBandwidthKBps().map(function (item) {
340
+ return item.toJson(false);
341
+ })
342
+ } : {}), typeof this.getControllerWriteIOBandwidthKBps() !== 'undefined' && this.getControllerWriteIOBandwidthKBps() !== null ? {
343
+ 'controllerWriteIOBandwidthKBps': this.getControllerWriteIOBandwidthKBps().map(function (item) {
344
+ return item.toJson(false);
345
+ })
346
+ } : {}), typeof this.getControllerAvgIOLatencyUsecs() !== 'undefined' && this.getControllerAvgIOLatencyUsecs() !== null ? {
347
+ 'controllerAvgIOLatencyUsecs': this.getControllerAvgIOLatencyUsecs().map(function (item) {
348
+ return item.toJson(false);
349
+ })
350
+ } : {}), typeof this.getControllerAvgReadIOLatencyUsecs() !== 'undefined' && this.getControllerAvgReadIOLatencyUsecs() !== null ? {
351
+ 'controllerAvgReadIOLatencyUsecs': this.getControllerAvgReadIOLatencyUsecs().map(function (item) {
352
+ return item.toJson(false);
353
+ })
354
+ } : {}), typeof this.getControllerAvgWriteIOLatencyUsecs() !== 'undefined' && this.getControllerAvgWriteIOLatencyUsecs() !== null ? {
355
+ 'controllerAvgWriteIOLatencyUsecs': this.getControllerAvgWriteIOLatencyUsecs().map(function (item) {
356
+ return item.toJson(false);
357
+ })
358
+ } : {}), {}, {
359
+ '$reserved': this.get$Reserved(),
360
+ '$objectType': this.get$ObjectType(),
361
+ '$unknownFields': this.get$UnknownFields()
362
+ });
363
+ }
364
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getVolumeDiskExtId() !== 'undefined' && this.getVolumeDiskExtId() !== null ? {
365
+ 'volumeDiskExtId': this.getVolumeDiskExtId()
366
+ } : {}), typeof this.getControllerUserBytes() !== 'undefined' && this.getControllerUserBytes() !== null ? {
367
+ 'controllerUserBytes': this.getControllerUserBytes().map(function (item) {
368
+ return item.toJson(false);
369
+ })
370
+ } : {}), typeof this.getControllerNumIOPS() !== 'undefined' && this.getControllerNumIOPS() !== null ? {
371
+ 'controllerNumIOPS': this.getControllerNumIOPS().map(function (item) {
372
+ return item.toJson(false);
373
+ })
374
+ } : {}), typeof this.getControllerNumReadIOPS() !== 'undefined' && this.getControllerNumReadIOPS() !== null ? {
375
+ 'controllerNumReadIOPS': this.getControllerNumReadIOPS().map(function (item) {
376
+ return item.toJson(false);
377
+ })
378
+ } : {}), typeof this.getControllerNumWriteIOPS() !== 'undefined' && this.getControllerNumWriteIOPS() !== null ? {
379
+ 'controllerNumWriteIOPS': this.getControllerNumWriteIOPS().map(function (item) {
380
+ return item.toJson(false);
381
+ })
382
+ } : {}), typeof this.getControllerIOBandwidthKBps() !== 'undefined' && this.getControllerIOBandwidthKBps() !== null ? {
383
+ 'controllerIOBandwidthKBps': this.getControllerIOBandwidthKBps().map(function (item) {
384
+ return item.toJson(false);
385
+ })
386
+ } : {}), typeof this.getControllerReadIOBandwidthKBps() !== 'undefined' && this.getControllerReadIOBandwidthKBps() !== null ? {
387
+ 'controllerReadIOBandwidthKBps': this.getControllerReadIOBandwidthKBps().map(function (item) {
388
+ return item.toJson(false);
389
+ })
390
+ } : {}), typeof this.getControllerWriteIOBandwidthKBps() !== 'undefined' && this.getControllerWriteIOBandwidthKBps() !== null ? {
391
+ 'controllerWriteIOBandwidthKBps': this.getControllerWriteIOBandwidthKBps().map(function (item) {
392
+ return item.toJson(false);
393
+ })
394
+ } : {}), typeof this.getControllerAvgIOLatencyUsecs() !== 'undefined' && this.getControllerAvgIOLatencyUsecs() !== null ? {
395
+ 'controllerAvgIOLatencyUsecs': this.getControllerAvgIOLatencyUsecs().map(function (item) {
396
+ return item.toJson(false);
397
+ })
398
+ } : {}), typeof this.getControllerAvgReadIOLatencyUsecs() !== 'undefined' && this.getControllerAvgReadIOLatencyUsecs() !== null ? {
399
+ 'controllerAvgReadIOLatencyUsecs': this.getControllerAvgReadIOLatencyUsecs().map(function (item) {
400
+ return item.toJson(false);
401
+ })
402
+ } : {}), typeof this.getControllerAvgWriteIOLatencyUsecs() !== 'undefined' && this.getControllerAvgWriteIOLatencyUsecs() !== null ? {
403
+ 'controllerAvgWriteIOLatencyUsecs': this.getControllerAvgWriteIOLatencyUsecs().map(function (item) {
404
+ return item.toJson(false);
405
+ })
406
+ } : {}), {}, {
407
+ '$reserved': this.get$Reserved(),
408
+ '$objectType': this.get$ObjectType(),
409
+ '$unknownFields': this.get$UnknownFields()
410
+ });
411
+ }
412
+ }, {
413
+ key: "validate",
414
+ value: function validate(scope, properties) {
415
+ var _this = this;
416
+ var propList = [];
417
+ if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
418
+ //cases validate() and validate(scope)
419
+ propList = [];
420
+ } else if (arguments.length === 1) {
421
+ //case validate(properties)
422
+ propList = arguments[0];
423
+ scope = null;
424
+ } else {
425
+ //case validate(scope, properties)
426
+ propList = arguments[1];
427
+ }
428
+ var res = [];
429
+ var err = null;
430
+ propList.forEach(function (property) {
431
+ err = _this.validateProperty(property, scope);
432
+ if (err) {
433
+ res.push(err);
434
+ }
435
+ });
436
+ return new Promise(function (resolve, reject) {
437
+ if (res.length !== 0) {
438
+ reject(err);
439
+ } else {
440
+ resolve();
441
+ }
442
+ });
443
+ }
444
+ }, {
445
+ key: "validateProperty",
446
+ value: function validateProperty(scope, property) {
447
+ if (property === "volumeDiskExtId") {
448
+ if (typeof this.volumeDiskExtId === 'undefined' || this.volumeDiskExtId === null) {
449
+ return new _ValidationError["default"]("volumeDiskExtId", "undefined or null");
450
+ }
451
+ if (!_ValidationUtils["default"].validatePattern(this.volumeDiskExtId, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
452
+ return new _ValidationError["default"]("volumeDiskExtId", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
453
+ }
454
+ }
455
+ if (property === "controllerUserBytes") {
456
+ if (typeof this.controllerUserBytes === 'undefined' || this.controllerUserBytes === null) {
457
+ return new _ValidationError["default"]("controllerUserBytes", "undefined or null");
458
+ }
459
+ }
460
+ if (property === "controllerNumIOPS") {
461
+ if (typeof this.controllerNumIOPS === 'undefined' || this.controllerNumIOPS === null) {
462
+ return new _ValidationError["default"]("controllerNumIOPS", "undefined or null");
463
+ }
464
+ }
465
+ if (property === "controllerNumReadIOPS") {
466
+ if (typeof this.controllerNumReadIOPS === 'undefined' || this.controllerNumReadIOPS === null) {
467
+ return new _ValidationError["default"]("controllerNumReadIOPS", "undefined or null");
468
+ }
469
+ }
470
+ if (property === "controllerNumWriteIOPS") {
471
+ if (typeof this.controllerNumWriteIOPS === 'undefined' || this.controllerNumWriteIOPS === null) {
472
+ return new _ValidationError["default"]("controllerNumWriteIOPS", "undefined or null");
473
+ }
474
+ }
475
+ if (property === "controllerIOBandwidthKBps") {
476
+ if (typeof this.controllerIOBandwidthKBps === 'undefined' || this.controllerIOBandwidthKBps === null) {
477
+ return new _ValidationError["default"]("controllerIOBandwidthKBps", "undefined or null");
478
+ }
479
+ }
480
+ if (property === "controllerReadIOBandwidthKBps") {
481
+ if (typeof this.controllerReadIOBandwidthKBps === 'undefined' || this.controllerReadIOBandwidthKBps === null) {
482
+ return new _ValidationError["default"]("controllerReadIOBandwidthKBps", "undefined or null");
483
+ }
484
+ }
485
+ if (property === "controllerWriteIOBandwidthKBps") {
486
+ if (typeof this.controllerWriteIOBandwidthKBps === 'undefined' || this.controllerWriteIOBandwidthKBps === null) {
487
+ return new _ValidationError["default"]("controllerWriteIOBandwidthKBps", "undefined or null");
488
+ }
489
+ }
490
+ if (property === "controllerAvgIOLatencyUsecs") {
491
+ if (typeof this.controllerAvgIOLatencyUsecs === 'undefined' || this.controllerAvgIOLatencyUsecs === null) {
492
+ return new _ValidationError["default"]("controllerAvgIOLatencyUsecs", "undefined or null");
493
+ }
494
+ }
495
+ if (property === "controllerAvgReadIOLatencyUsecs") {
496
+ if (typeof this.controllerAvgReadIOLatencyUsecs === 'undefined' || this.controllerAvgReadIOLatencyUsecs === null) {
497
+ return new _ValidationError["default"]("controllerAvgReadIOLatencyUsecs", "undefined or null");
498
+ }
499
+ }
500
+ if (property === "controllerAvgWriteIOLatencyUsecs") {
501
+ if (typeof this.controllerAvgWriteIOLatencyUsecs === 'undefined' || this.controllerAvgWriteIOLatencyUsecs === null) {
502
+ return new _ValidationError["default"]("controllerAvgWriteIOLatencyUsecs", "undefined or null");
503
+ }
504
+ }
505
+ if (property === "$reserved") {
506
+ if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
507
+ return new _ValidationError["default"]("$reserved", "undefined or null");
508
+ }
509
+ }
510
+ if (property === "$objectType") {
511
+ if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
512
+ return new _ValidationError["default"]("$objectType", "undefined or null");
513
+ }
514
+ }
515
+ if (property === "$unknownFields") {
516
+ if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
517
+ return new _ValidationError["default"]("$unknownFields", "undefined or null");
518
+ }
519
+ }
520
+ return new _ValidationError["default"](property, "no such property exists");
521
+ }
522
+ }], [{
523
+ key: "constructFromObject",
524
+ value: function constructFromObject(data, obj) {
525
+ var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
526
+ var items, item, i, itemArr, discriminator;
527
+ if (data) {
528
+ obj = obj || new VolumeDiskStats();
529
+ if (data.hasOwnProperty('volumeDiskExtId') && data.volumeDiskExtId !== null && data.volumeDiskExtId !== undefined) {
530
+ obj.setVolumeDiskExtId(data['volumeDiskExtId']);
531
+ }
532
+ if (data.hasOwnProperty('controllerUserBytes') && data.controllerUserBytes !== null && data.controllerUserBytes !== undefined) {
533
+ itemArr = [];
534
+ items = data.controllerUserBytes;
535
+ for (i = 0; i < items.length; i++) {
536
+ item = _TimeValuePair["default"].constructFromObject(items[i], undefined);
537
+ itemArr.push(item);
538
+ }
539
+ obj.setControllerUserBytes(itemArr);
540
+ }
541
+ if (data.hasOwnProperty('controllerNumIOPS') && data.controllerNumIOPS !== null && data.controllerNumIOPS !== undefined) {
542
+ itemArr = [];
543
+ items = data.controllerNumIOPS;
544
+ for (i = 0; i < items.length; i++) {
545
+ item = _TimeValuePair["default"].constructFromObject(items[i], undefined);
546
+ itemArr.push(item);
547
+ }
548
+ obj.setControllerNumIOPS(itemArr);
549
+ }
550
+ if (data.hasOwnProperty('controllerNumReadIOPS') && data.controllerNumReadIOPS !== null && data.controllerNumReadIOPS !== undefined) {
551
+ itemArr = [];
552
+ items = data.controllerNumReadIOPS;
553
+ for (i = 0; i < items.length; i++) {
554
+ item = _TimeValuePair["default"].constructFromObject(items[i], undefined);
555
+ itemArr.push(item);
556
+ }
557
+ obj.setControllerNumReadIOPS(itemArr);
558
+ }
559
+ if (data.hasOwnProperty('controllerNumWriteIOPS') && data.controllerNumWriteIOPS !== null && data.controllerNumWriteIOPS !== undefined) {
560
+ itemArr = [];
561
+ items = data.controllerNumWriteIOPS;
562
+ for (i = 0; i < items.length; i++) {
563
+ item = _TimeValuePair["default"].constructFromObject(items[i], undefined);
564
+ itemArr.push(item);
565
+ }
566
+ obj.setControllerNumWriteIOPS(itemArr);
567
+ }
568
+ if (data.hasOwnProperty('controllerIOBandwidthKBps') && data.controllerIOBandwidthKBps !== null && data.controllerIOBandwidthKBps !== undefined) {
569
+ itemArr = [];
570
+ items = data.controllerIOBandwidthKBps;
571
+ for (i = 0; i < items.length; i++) {
572
+ item = _TimeValuePair["default"].constructFromObject(items[i], undefined);
573
+ itemArr.push(item);
574
+ }
575
+ obj.setControllerIOBandwidthKBps(itemArr);
576
+ }
577
+ if (data.hasOwnProperty('controllerReadIOBandwidthKBps') && data.controllerReadIOBandwidthKBps !== null && data.controllerReadIOBandwidthKBps !== undefined) {
578
+ itemArr = [];
579
+ items = data.controllerReadIOBandwidthKBps;
580
+ for (i = 0; i < items.length; i++) {
581
+ item = _TimeValuePair["default"].constructFromObject(items[i], undefined);
582
+ itemArr.push(item);
583
+ }
584
+ obj.setControllerReadIOBandwidthKBps(itemArr);
585
+ }
586
+ if (data.hasOwnProperty('controllerWriteIOBandwidthKBps') && data.controllerWriteIOBandwidthKBps !== null && data.controllerWriteIOBandwidthKBps !== undefined) {
587
+ itemArr = [];
588
+ items = data.controllerWriteIOBandwidthKBps;
589
+ for (i = 0; i < items.length; i++) {
590
+ item = _TimeValuePair["default"].constructFromObject(items[i], undefined);
591
+ itemArr.push(item);
592
+ }
593
+ obj.setControllerWriteIOBandwidthKBps(itemArr);
594
+ }
595
+ if (data.hasOwnProperty('controllerAvgIOLatencyUsecs') && data.controllerAvgIOLatencyUsecs !== null && data.controllerAvgIOLatencyUsecs !== undefined) {
596
+ itemArr = [];
597
+ items = data.controllerAvgIOLatencyUsecs;
598
+ for (i = 0; i < items.length; i++) {
599
+ item = _TimeValuePair["default"].constructFromObject(items[i], undefined);
600
+ itemArr.push(item);
601
+ }
602
+ obj.setControllerAvgIOLatencyUsecs(itemArr);
603
+ }
604
+ if (data.hasOwnProperty('controllerAvgReadIOLatencyUsecs') && data.controllerAvgReadIOLatencyUsecs !== null && data.controllerAvgReadIOLatencyUsecs !== undefined) {
605
+ itemArr = [];
606
+ items = data.controllerAvgReadIOLatencyUsecs;
607
+ for (i = 0; i < items.length; i++) {
608
+ item = _TimeValuePair["default"].constructFromObject(items[i], undefined);
609
+ itemArr.push(item);
610
+ }
611
+ obj.setControllerAvgReadIOLatencyUsecs(itemArr);
612
+ }
613
+ if (data.hasOwnProperty('controllerAvgWriteIOLatencyUsecs') && data.controllerAvgWriteIOLatencyUsecs !== null && data.controllerAvgWriteIOLatencyUsecs !== undefined) {
614
+ itemArr = [];
615
+ items = data.controllerAvgWriteIOLatencyUsecs;
616
+ for (i = 0; i < items.length; i++) {
617
+ item = _TimeValuePair["default"].constructFromObject(items[i], undefined);
618
+ itemArr.push(item);
619
+ }
620
+ obj.setControllerAvgWriteIOLatencyUsecs(itemArr);
621
+ }
622
+ if (data.hasOwnProperty('$reserved')) {
623
+ obj.$reserved = data['$reserved'];
624
+ }
625
+ if (data.hasOwnProperty('$objectType')) {
626
+ obj.$objectType = data['$objectType'];
627
+ }
628
+ if (data.hasOwnProperty('$unknownFields')) {
629
+ obj.$unknownFields = data['$unknownFields'];
630
+ }
631
+ if (!callFromChild) {
632
+ obj.$unknownFields = _objectSpread({}, data.$unknownFields);
633
+ for (var property in data) {
634
+ if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
635
+ obj.$unknownFields[property] = data[property];
636
+ }
637
+ }
638
+ }
639
+ }
640
+ return obj;
641
+ }
642
+ }]);
643
+ }();
644
+ /**
645
+ * Uuid of the Volume Disk.
646
+ * @memberof VolumeDiskStats
647
+ */
648
+ function _toJsonMapType(obj, forMutation) {
649
+ if (obj instanceof Map) {
650
+ return Object.fromEntries(Array.from(obj, function (_ref) {
651
+ var _ref2 = _slicedToArray(_ref, 2),
652
+ k = _ref2[0],
653
+ v = _ref2[1];
654
+ return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
655
+ }));
656
+ } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
657
+ return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
658
+ return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
659
+ }));
660
+ }
661
+ return obj;
662
+ }
663
+ VolumeDiskStats.prototype.volumeDiskExtId = undefined;
664
+
665
+ /**
666
+ * Controller user bytes.
667
+ * @memberof VolumeDiskStats
668
+ */
669
+ VolumeDiskStats.prototype.controllerUserBytes = undefined;
670
+
671
+ /**
672
+ * Controller I/O rate measured in iops.
673
+ * @memberof VolumeDiskStats
674
+ */
675
+ VolumeDiskStats.prototype.controllerNumIOPS = undefined;
676
+
677
+ /**
678
+ * Controller read I/O measured in iops.
679
+ * @memberof VolumeDiskStats
680
+ */
681
+ VolumeDiskStats.prototype.controllerNumReadIOPS = undefined;
682
+
683
+ /**
684
+ * Controller write I/O measured in iops.
685
+ * @memberof VolumeDiskStats
686
+ */
687
+ VolumeDiskStats.prototype.controllerNumWriteIOPS = undefined;
688
+
689
+ /**
690
+ * Controller I/O bandwidth measured in Kbps.
691
+ * @memberof VolumeDiskStats
692
+ */
693
+ VolumeDiskStats.prototype.controllerIOBandwidthKBps = undefined;
694
+
695
+ /**
696
+ * Controller read I/O bandwidth measured in Kbps.
697
+ * @memberof VolumeDiskStats
698
+ */
699
+ VolumeDiskStats.prototype.controllerReadIOBandwidthKBps = undefined;
700
+
701
+ /**
702
+ * Controller write I/O bandwidth measured in Kbps.
703
+ * @memberof VolumeDiskStats
704
+ */
705
+ VolumeDiskStats.prototype.controllerWriteIOBandwidthKBps = undefined;
706
+
707
+ /**
708
+ * Controller average I/O latency measured in microseconds.
709
+ * @memberof VolumeDiskStats
710
+ */
711
+ VolumeDiskStats.prototype.controllerAvgIOLatencyUsecs = undefined;
712
+
713
+ /**
714
+ * Controller average read I/O latency measured in microseconds.
715
+ * @memberof VolumeDiskStats
716
+ */
717
+ VolumeDiskStats.prototype.controllerAvgReadIOLatencyUsecs = undefined;
718
+
719
+ /**
720
+ * Controller average write I/O latency measured in microseconds.
721
+ * @memberof VolumeDiskStats
722
+ */
723
+ VolumeDiskStats.prototype.controllerAvgWriteIOLatencyUsecs = undefined;
724
+ VolumeDiskStats.prototype.$reserved = undefined;
725
+ VolumeDiskStats.prototype.$objectType = undefined;
726
+ VolumeDiskStats.prototype.$unknownFields = undefined;
727
+
728
+ // Implement OneOfvolumes.v4.stats.GetVolumeDiskStatsApiResponsedata interface: