@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 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Ntnx=t():(e.Ntnx=e.Ntnx||{},e.Ntnx.Volumes=t())}("undefined"==typeof self?this:self,()=>(()=>{var e={19:(e,t,n)=>{"use strict";var r=n(897);function o(e){if(e)return function(e){for(var t in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,t)&&(e[t]=o.prototype[t]);return e}(e)}e.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(this[o]=n[o]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},98:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return e&&"object"===t(e)&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},340:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=s,s.default=s,s.stable=f,s.stableStringify=f;var n="[...]",r="[Circular]",o=[],i=[];function a(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(e,t,n,r){var s;void 0===r&&(r=a()),l(e,"",0,[],void 0,0,r);try{s=0===i.length?JSON.stringify(e,t,n):JSON.stringify(e,p(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var u=o.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return s}function u(e,t,n,r){var a=Object.getOwnPropertyDescriptor(r,n);void 0!==a.get?a.configurable?(Object.defineProperty(r,n,{value:e}),o.push([r,n,t,a])):i.push([t,n,e]):(r[n]=e,o.push([r,n,t]))}function l(e,o,i,a,s,c,f){var d;if(c+=1,"object"===t(e)&&null!==e){for(d=0;d<a.length;d++)if(a[d]===e)return void u(r,e,o,s);if(void 0!==f.depthLimit&&c>f.depthLimit)return void u(n,e,o,s);if(void 0!==f.edgesLimit&&i+1>f.edgesLimit)return void u(n,e,o,s);if(a.push(e),Array.isArray(e))for(d=0;d<e.length;d++)l(e[d],d,d,a,e,c,f);else{var p=Object.keys(e);for(d=0;d<p.length;d++){var y=p[d];l(e[y],y,d,a,e,c,f)}}a.pop()}}function c(e,t){return e<t?-1:e>t?1:0}function f(e,t,n,r){void 0===r&&(r=a());var s,u=d(e,"",0,[],void 0,0,r)||e;try{s=0===i.length?JSON.stringify(u,t,n):JSON.stringify(u,p(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var l=o.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return s}function d(e,i,a,s,l,f,p){var y;if(f+=1,"object"===t(e)&&null!==e){for(y=0;y<s.length;y++)if(s[y]===e)return void u(r,e,i,l);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==p.depthLimit&&f>p.depthLimit)return void u(n,e,i,l);if(void 0!==p.edgesLimit&&a+1>p.edgesLimit)return void u(n,e,i,l);if(s.push(e),Array.isArray(e))for(y=0;y<e.length;y++)d(e[y],y,y,s,e,f,p);else{var h={},v=Object.keys(e).sort(c);for(y=0;y<v.length;y++){var b=v[y];d(e[b],b,y,s,e,f,p),h[b]=e[b]}if(void 0===l)return h;o.push([l,i,e]),l[i]=h}s.pop()}}function p(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(i.length>0)for(var r=0;r<i.length;r++){var o=i[r];if(o[1]===t&&o[0]===n){n=o[2],i.splice(r,1);break}}return e.call(this,t,n)}}},388:e=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return null!==e&&"object"===t(e)}},540:e=>{function t(e,t){if(this._maxRetries&&this._retries++<this._maxRetries&&function(e,t,n,r){if(r)return r(e,t);if(e&&e.code&&~["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT","ENOTFOUND","ECONNREFUSED"].indexOf(e.code))return!0;if(t&&t.status){var o=t.status;if(o>=500)return!0;if((o>=400||o<200)&&-1===n.indexOf(o))return!0}return!(!e||!("timeout"in e)||"ECONNABORTED"!==e.code)||e&&"crossDomain"in e}(e,t,this._allowedStatuses,this._retryCallback)){var n;n=this._retries?this._retryDelays[this._retries-1]:0;var r=this;return setTimeout(function(){return r._retry()},n)}var o=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),o(e,t)}function n(e,t,n,r){0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),"number"==typeof t&&(t=[t]);var o=t.length,i=e-o;if(0!==i){if(i<0)throw new Error("Cannot have more delays than retries");for(var a=t[o-1],s=0;s<i+1;s++)t.push(a)}return this._maxRetries=e,this._retries=0,this._retryDelays=t||[0],this._allowedStatuses=n||[],this._retryCallback=r,this}e.exports=function(e){var r=e.Request;return r.prototype.oldRetry=r.prototype.retry,r.prototype.retry=n,r.prototype.callback=t,e}},545:()=>{},548:()=>{},585:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o;"undefined"!=typeof window?o=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),o=void 0):o=self;var i=n(960),a=n(340),s=n(695),u=n(388),l=n(19),c=n(619);function f(){}e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};var d=t=e.exports;t.Request=g,d.getXHR=function(){if(o.XMLHttpRequest&&(!o.location||"file:"!==o.location.protocol||!o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function y(e){if(!u(e))return e;var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&h(t,n,e[n]);return t.join("&")}function h(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach(function(n){h(e,t,n)});else if(u(n))for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&h(e,"".concat(t,"[").concat(r,"]"),n[r]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function v(e){for(var t,n,r={},o=e.split("&"),i=0,a=o.length;i<a;++i)-1===(n=(t=o[i]).indexOf("="))?r[decodeURIComponent(t)]="":r[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return r}function b(e){return/[/+]json($|[^-\w])/.test(e)}function m(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,n,r,o,i=e.split(/\r?\n/),a={},s=0,u=i.length;s<u;++s)-1!==(t=(n=i[s]).indexOf(":"))&&(r=n.slice(0,t).toLowerCase(),o=p(n.slice(t+1)),a[r]=o);return a}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function g(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",function(){var e,t=null,r=null;try{r=new m(n)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",r);try{n._isResponseOK(r)||(e=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=r,e.status=r.status,n.callback(e,r)):n.callback(null,r)})}function w(e,t,n){var r=d("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}d.serializeObject=y,d.parseString=v,d.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},d.serialize={"application/x-www-form-urlencoded":y,"application/json":a},d.parse={"application/x-www-form-urlencoded":v,"application/json":JSON.parse},l(m.prototype),m.prototype._parseBody=function(e){var t=d.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&b(this.type)&&(t=d.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},m.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),o=new Error(r);return o.status=this.status,o.method=t,o.url=n,o},d.Response=m,i(g.prototype),s(g.prototype),g.prototype.type=function(e){return this.set("Content-Type",d.types[e]||e),this},g.prototype.accept=function(e){return this.set("Accept",d.types[e]||e),this},g.prototype.auth=function(e,t,n){return 1===arguments.length&&(t=""),"object"===r(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"}),this._auth(e,t,n,function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")})},g.prototype.query=function(e){return"string"!=typeof e&&(e=y(e)),e&&this._query.push(e),this},g.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},g.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},g.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},g.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},g.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},g.prototype.ca=g.prototype.agent,g.prototype.buffer=g.prototype.ca,g.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},g.prototype.pipe=g.prototype.write,g.prototype._isHost=function(e){return e&&"object"===r(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},g.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||f,this._finalizeQueryString(),this._end()},g.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},g.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=d.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||d.serialize[o?o.split(";")[0]:""];!i&&b(o)&&(i=d.serialize["application/json"]),i&&(n=i(n))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&t.setRequestHeader(a,this.header[a]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},d.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){c.prototype[e.toLowerCase()]=function(t,n){var r=new d.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}}),c.prototype.del=c.prototype.delete,d.get=function(e,t,n){var r=d("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},d.head=function(e,t,n){var r=d("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},d.options=function(e,t,n){var r=d("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.del=w,d.delete=w,d.patch=function(e,t,n){var r=d("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.post=function(e,t,n){var r=d("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},d.put=function(e,t,n){var r=d("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},597:e=>{"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},619:e=>{"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach(function(e){n.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this}}),n.prototype._setDefaults=function(e){this._defaults.forEach(function(n){var r;e[n.fn].apply(e,function(e){if(Array.isArray(e))return t(e)}(r=n.args)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())})},e.exports=n},695:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(388);function i(e){if(e)return function(e){for(var t in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,t)&&(e[t]=i.prototype[t]);return e}(e)}e.exports=i,i.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},i.prototype.parse=function(e){return this._parser=e,this},i.prototype.responseType=function(e){return this._responseType=e,this},i.prototype.serialize=function(e){return this._serializer=e,this},i.prototype.timeout=function(e){if(!e||"object"!==r(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},i.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var a=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];i.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!==t.status)return!0;if(e){if(e.code&&a.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},i.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){r.on("abort",function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}}),r.end(function(n,r){n?t(n):e(r)})})}return this._fullfilledPromise.then(e,t)},i.prototype.catch=function(e){return this.then(void 0,e)},i.prototype.use=function(e){return e(this),this},i.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},i.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},i.prototype.get=function(e){return this._header[e.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(e,t){if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},i.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},i.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(e,t[r]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},i.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},i.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},i.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},i.prototype.redirects=function(e){return this._maxRedirects=e,this},i.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(e){var t=o(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&o(this._data))for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._data[r]=e[r]);else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},i.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},i.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},i.prototype._appendQueryString=function(){console.warn("Unsupported")},i.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},i.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},784:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o="win32"===process.platform,i=n(818);function a(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];o&&"."!==o&&(".."===o?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(o))}return n}function s(e){for(var t=e.length-1,n=0;n<=t&&!e[n];n++);for(var r=t;r>=0&&!e[r];r--);return 0===n&&r===t?e:n>r?[]:e.slice(n,r+1)}var u=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,l=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,c={};function f(e){var t=u.exec(e),n=(t[1]||"")+(t[2]||""),r=t[3]||"",o=l.exec(r);return[n,o[1],o[2],o[3]]}function d(e){var t=u.exec(e),n=t[1]||"",r=!!n&&":"!==n[1];return{device:n,isUnc:r,isAbsolute:r||!!t[2],tail:t[3]}}function p(e){return"\\\\"+e.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}c.resolve=function(){for(var e="",t="",n=!1,r=arguments.length-1;r>=-1;r--){var o;if(r>=0?o=arguments[r]:e?(o=process.env["="+e])&&o.substr(0,3).toLowerCase()===e.toLowerCase()+"\\"||(o=e+"\\"):o=process.cwd(),!i.isString(o))throw new TypeError("Arguments to path.resolve must be strings");if(o){var s=d(o),u=s.device,l=s.isUnc,c=s.isAbsolute,f=s.tail;if((!u||!e||u.toLowerCase()===e.toLowerCase())&&(e||(e=u),n||(t=f+"\\"+t,n=c),e&&n))break}}return l&&(e=p(e)),e+(n?"\\":"")+(t=a(t.split(/[\\\/]+/),!n).join("\\"))||"."},c.normalize=function(e){var t=d(e),n=t.device,r=t.isUnc,o=t.isAbsolute,i=t.tail,s=/[\\\/]$/.test(i);return(i=a(i.split(/[\\\/]+/),!o).join("\\"))||o||(i="."),i&&s&&(i+="\\"),r&&(n=p(n)),n+(o?"\\":"")+i},c.isAbsolute=function(e){return d(e).isAbsolute},c.join=function(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(!i.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&e.push(n)}var r=e.join("\\");return/^[\\\/]{2}[^\\\/]/.test(e[0])||(r=r.replace(/^[\\\/]{2,}/,"\\")),c.normalize(r)},c.relative=function(e,t){e=c.resolve(e),t=c.resolve(t);for(var n=e.toLowerCase(),r=t.toLowerCase(),o=s(t.split("\\")),i=s(n.split("\\")),a=s(r.split("\\")),u=Math.min(i.length,a.length),l=u,f=0;f<u;f++)if(i[f]!==a[f]){l=f;break}if(0==l)return t;var d=[];for(f=l;f<i.length;f++)d.push("..");return(d=d.concat(o.slice(l))).join("\\")},c._makeLong=function(e){if(!i.isString(e))return e;if(!e)return"";var t=c.resolve(e);return/^[a-zA-Z]\:\\/.test(t)?"\\\\?\\"+t:/^\\\\[^?.]/.test(t)?"\\\\?\\UNC\\"+t.substring(2):e},c.dirname=function(e){var t=f(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},c.basename=function(e,t){var n=f(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},c.extname=function(e){return f(e)[3]},c.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+r(e.root));var n=e.dir,o=e.base||"";return n?n[n.length-1]===c.sep?n+o:n+c.sep+o:o},c.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+r(e));var t=f(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},c.sep="\\",c.delimiter=";";var y=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,h={};function v(e){return y.exec(e).slice(1)}h.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:process.cwd();if(!i.isString(r))throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r[0])}return(t?"/":"")+(e=a(e.split("/"),!t).join("/"))||"."},h.normalize=function(e){var t=h.isAbsolute(e),n=e&&"/"===e[e.length-1];return(e=a(e.split("/"),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},h.isAbsolute=function(e){return"/"===e.charAt(0)},h.join=function(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];if(!i.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&(e+=e?"/"+n:n)}return h.normalize(e)},h.relative=function(e,t){e=h.resolve(e).substr(1),t=h.resolve(t).substr(1);for(var n=s(e.split("/")),r=s(t.split("/")),o=Math.min(n.length,r.length),i=o,a=0;a<o;a++)if(n[a]!==r[a]){i=a;break}var u=[];for(a=i;a<n.length;a++)u.push("..");return(u=u.concat(r.slice(i))).join("/")},h._makeLong=function(e){return e},h.dirname=function(e){var t=v(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},h.basename=function(e,t){var n=v(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},h.extname=function(e){return v(e)[3]},h.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+r(e.root));return(e.dir?e.dir+h.sep:"")+(e.base||"")},h.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+r(e));var t=v(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return t[1]=t[1]||"",t[2]=t[2]||"",t[3]=t[3]||"",{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},h.sep="/",h.delimiter=":",e.exports=o?c:h,e.exports.posix=h,e.exports.win32=c},799:()=>{},818:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),u=r[n];n<i;u=r[++n])h(u)||!w(u)?a+=" "+u:a+=" "+s(u);return a},t.deprecate=function(e,r){if(m(n.g.process))return function(){return t.deprecate(e,r).apply(this,arguments)};if(!0===process.noDeprecation)return e;var o=!1;return function(){if(!o){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),o=!0}return e.apply(this,arguments)}};var i,a={};function s(e,n){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),m(r.showHidden)&&(r.showHidden=!1),m(r.depth)&&(r.depth=2),m(r.colors)&&(r.colors=!1),m(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),c(r,e,r.depth)}function u(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function l(e,t){return e}function c(e,n,r){if(e.customInspect&&n&&$(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return b(o)||(o=c(e,o,r)),o}var i=function(e,t){if(m(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return v(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):h(t)?e.stylize("null","null"):void 0}(e,n);if(i)return i;var a=Object.keys(n),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),j(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if($(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(g(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return e.stylize(Date.prototype.toString.call(n),"date");if(j(n))return f(n)}var l,w="",k=!1,P=["{","}"];return p(n)&&(k=!0,P=["[","]"]),$(n)&&(w=" [Function"+(n.name?": "+n.name:"")+"]"),g(n)&&(w=" "+RegExp.prototype.toString.call(n)),O(n)&&(w=" "+Date.prototype.toUTCString.call(n)),j(n)&&(w=" "+f(n)),0!==a.length||k&&0!=n.length?r<0?g(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=k?function(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)S(t,String(a))?i.push(d(e,t,n,r,String(a),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(d(e,t,n,r,o,!0))}),i}(e,n,r,s,a):a.map(function(t){return d(e,n,r,s,t,k)}),e.seen.pop(),function(e,t,n){return e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(l,w,P)):P[0]+w+P[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,o,i){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),S(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(u.value)<0?(s=h(n)?c(e,u.value,null):c(e,u.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),m(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function h(e){return null===e}function v(e){return"number"==typeof e}function b(e){return"string"==typeof e}function m(e){return void 0===e}function g(e){return w(e)&&"[object RegExp]"===k(e)}function w(e){return"object"===r(e)&&null!==e}function O(e){return w(e)&&"[object Date]"===k(e)}function j(e){return w(e)&&("[object Error]"===k(e)||e instanceof Error)}function $(e){return"function"==typeof e}function k(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(m(i)&&(i=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var n=process.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=function(){};return a[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=y,t.isNull=h,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=b,t.isSymbol=function(e){return"symbol"===r(e)},t.isUndefined=m,t.isRegExp=g,t.isObject=w,t.isDate=O,t.isError=j,t.isFunction=$,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===r(e)||void 0===e},t.isBuffer=n(98);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[P((e=new Date).getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":"),[e.getDate(),T[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(597),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}},897:(e,t)=>{"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce(function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e},{})},t.parseLinks=function(e){return e.split(/ *, */).reduce(function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,e},{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},960:e=>{function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},965:()=>{}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{"use strict";n.d(r,{default:()=>Gm});var e=n(585),t=n.n(e);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}var u,l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,n=[{key:"getFirstPage",value:function(){return this.isFirstPage()?Promise.reject("Cannot navigate to first page : already on first page"):null===this.linkFirst?Promise.reject("No link to first page provided in previous API response"):this._getLink(this.linkFirst)}},{key:"getPrevPage",value:function(){return this.isFirstPage()?Promise.reject("Cannot navigate to previous page : already on first page"):null===this.linkPrev?Promise.reject("No link to previous page provided in previous API response"):this._getLink(this.linkPrev)}},{key:"getNextPage",value:function(){return this.isLastPage()?Promise.reject("Cannot navigate to next page : already on last page"):null===this.linkNext?Promise.reject("No link to next page provided in previous API response"):this._getLink(this.linkNext)}},{key:"getLastPage",value:function(){return this.isLastPage()?Promise.reject("Cannot navigate to last page : already on last page"):null===this.linkLast?Promise.reject("No link to last page provided in previous API response"):this._getLink(this.linkLast)}},{key:"currentPage",value:function(){return null===this.page?0:this.page}},{key:"countPages",value:function(){return null===this.resultsPerPage||null===this.resultsTotal||0===this.resultsPerPage?1:Math.ceil(this.resultsTotal/this.resultsPerPage)}},{key:"isFirstPage",value:function(){return 0===this.currentPage()}},{key:"isLastPage",value:function(){return this.currentPage()===this.countPages()-1}},{key:"populatePaginationMetadata",value:function(e,t,n){this.apiClient=e,this.page=t,this.resultsPerPage=n}},{key:"_getLink",value:function(e){null===this.apiClient&&(this.apiClient=lt.instance);var t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}],r=[{key:"constructFromObject",value:function(t,n){if(t){if(n=n||new e,t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){var r,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(t.links);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a.hasOwnProperty("rel")&&a.hasOwnProperty("href"))switch(a.rel){case"first":n.linkFirst=a.href;break;case"prev":n.linkPrev=a.href;break;case"next":n.linkNext=a.href;break;case"last":n.linkLast=a.href}}}catch(e){o.e(e)}finally{o.f()}}t.hasOwnProperty("totalAvailableResults")&&(n.resultsTotal=t.totalAvailableResults)}return n}}],n&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();l.prototype.linkFirst=null,l.prototype.linkPrev=null,l.prototype.linkNext=null,l.prototype.linkLast=null,l.prototype.apiClient=null,l.prototype.page=null,l.prototype.resultsPerPage=null,l.prototype.resultsTotal=null;var c=new Uint8Array(16);function f(){if(!u&&!(u="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return u(c)}const d=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var p=[],y=0;y<256;++y)p.push((y+256).toString(16).substr(1));const h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(p[e[t+0]]+p[e[t+1]]+p[e[t+2]]+p[e[t+3]]+"-"+p[e[t+4]]+p[e[t+5]]+"-"+p[e[t+6]]+p[e[t+7]]+"-"+p[e[t+8]]+p[e[t+9]]+"-"+p[e[t+10]]+p[e[t+11]]+p[e[t+12]]+p[e[t+13]]+p[e[t+14]]+p[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&d.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},v=function(e,t,n){var r=(e=e||{}).random||(e.rng||f)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return h(r)};var b=n(540),m=n.n(b),g=n(545),w=n.n(g),O=n(799),j=n.n(O),$=n(784),k=n.n($),P=n(548),T={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return T[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e){if(e===T.DEFAULT)return;throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(T);const S=T;function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,I(r.key),r)}}function I(e){var t=function(e){if("object"!=F(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=F(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==F(t)?t:t+""}var A=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"validateMaximum",value:function(e,t){return!(null===t||e>t)}},{key:"validateMinimum",value:function(e,t){return!(null===t||e<t)}},{key:"validateExclusiveMaximum",value:function(e,t){return!(null===t||e>t)}},{key:"validateExclusiveMinimum",value:function(e,t){return!(null===t||e>t)}},{key:"validateMultipleOf",value:function(e,t){return!(null===t||e%t===0)}},{key:"validateMaxLength",value:function(e,t){return!(null===t||e.length>t)}},{key:"validateMinLength",value:function(e,t){return!(null===t||e.length<t)}},{key:"validatePattern",value:function(e,t){return!(null===t||null===e.match(t))}},{key:"validateMaxItems",value:function(e,t){return!(null===t||e.length>t)}},{key:"validateMinItems",value:function(e,t){return!(null===t||e.length<t)}},{key:"validateUniqueItems",value:function(e,t){return!(null===t||!t||e.length!==new Set(e).size)}}],null&&E(e.prototype,null),t&&E(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,R(r.key),r)}}function R(e){var t=function(e){if("object"!=D(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==D(t)?t:t+""}var x=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.message=n},(t=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"toJson",value:function(){return{name:this.getName(),message:this.getMessage()}}}])&&C(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){J(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function J(e,t,n){return(t=B(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,B(r.key),r)}}function B(e){var t=function(e){if("object"!=N(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==N(t)?t:t+""}var L=new WeakSet,V=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,L),this.$objectType="common.v1.config.Flag",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return U(U(U({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new x("name","undefined or null");if(!A.validateMaxLength(this.name,128))return new x("name","does not satisfy required maxLength constraint: 128");if(!A.validateMinLength(this.name,3))return new x("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("value","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=U({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&M(t.prototype,n),r&&M(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function W(e){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W(e)}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach(function(t){z(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function z(e,t,n){return(t=Y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Y(r.key),r)}}function Y(e){var t=function(e){if("object"!=W(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=W(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==W(t)?t:t+""}function X(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")}V.prototype.name=void 0,V.prototype.value=!1,V.prototype.$reserved=void 0,V.prototype.$objectType=void 0,V.prototype.$unknownFields=void 0;var Z=new WeakSet,Q=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Z),this.$objectType="common.v1.config.MapOfStringWrapper",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getMap",value:function(){return this.map}},{key:"setMap",value:function(e){this.map=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return q(q({},!1===e?void 0!==this.getMap()&&null!==this.getMap()?{map:X(Z,this,ee).call(this,this.getMap(),!1)}:{}:void 0!==this.getMap()&&null!==this.getMap()?{map:X(Z,this,ee).call(this,this.getMap())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"map"!==t||void 0!==this.map&&null!==this.map?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("map","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("map")&&null!==t.map&&void 0!==t.map&&n.setMap(t.map),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=q({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&H(t.prototype,n),r&&H(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ee(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return G(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===W(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ne(e){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(e)}function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach(function(t){ie(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ie(e,t,n){return(t=se(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,se(r.key),r)}}function se(e){var t=function(e){if("object"!=ne(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ne(t)?t:t+""}function ue(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")}Q.prototype.map=void 0,Q.prototype.$reserved=void 0,Q.prototype.$objectType=void 0,Q.prototype.$unknownFields=void 0;var le=new WeakSet,ce=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,le),this.$objectType="common.v1.config.KVPair",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return oe(oe(oe({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),!1===e?void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson(!1):Array.isArray(this.getValue())?this.getValue().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):ue(le,this,fe).call(this,this.getValue(),!1)}:{}:void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map(function(e){return void 0!==e.toJson?e.toJson():e}):ue(le,this,fe).call(this,this.getValue())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new x("name","undefined or null");if(!A.validateMaxLength(this.name,128))return new x("name","does not satisfy required maxLength constraint: 128");if(!A.validateMinLength(this.name,3))return new x("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("value","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&s.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value)if(Array.isArray(t.value))if(0===t.value.length)s.setValue([]);else{for(i=[],a=(n=t.value)[0].hasOwnProperty("$objectType")?n[0].$objectType:ne(n[0]),o=0;o<n.length;o++)switch(a){case"string":case"integer":case"number":i.push(n[o]);break;case"common.v1.config.MapOfStringWrapper":r=Q.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+a+" in data"}s.setValue(i)}else switch(a=t.value.hasOwnProperty("$objectType")?t.value.$objectType:ne(t.value)){case"string":case"boolean":case"number":s.setValue(t.value);break;case"object":s.setValue(new Map(Object.entries(t.value)));break;default:throw"Unknown datatype "+a+" in data"}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!u)for(var l in s.$unknownFields=oe({},t.$unknownFields),t)Object.keys(s).includes(l)||Object.keys(s).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(s.$unknownFields[l]=t[l])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&ae(t.prototype,n),r&&ae(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function fe(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===ne(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}ce.prototype.name=void 0,ce.prototype.value=void 0,ce.prototype.$reserved=void 0,ce.prototype.$objectType=void 0,ce.prototype.$unknownFields=void 0;var de={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(de).find(function(t){return de[t]===e});return null==t?de.$UNKNOWN:de[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case de.$UNKNOWN:case de.$REDACTED:case de.INFO:case de.WARNING:case de.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(de);const pe=de;function ye(e){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ye(e)}function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach(function(t){be(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function be(e,t,n){return(t=ge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ge(r.key),r)}}function ge(e){var t=function(e){if("object"!=ye(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ye(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ye(t)?t:t+""}var we=new WeakSet,Oe=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,we),this.$objectType="common.v1.config.Message",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ve(ve(ve(ve(ve({},void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"code"!==t||void 0!==this.code&&null!==this.code?"message"!==t||void 0!==this.message&&null!==this.message?"locale"!==t||void 0!==this.locale&&null!==this.locale?"severity"!==t||void 0!==this.severity&&null!==this.severity?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("severity","undefined or null"):new x("locale","undefined or null"):new x("message","undefined or null"):new x("code","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(pe.constructFromObject(t.severity)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ve({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&me(t.prototype,n),r&&me(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function je(e){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(e)}function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach(function(t){Pe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pe(e,t,n){return(t=Se(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Se(r.key),r)}}function Se(e){var t=function(e){if("object"!=je(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=je(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==je(t)?t:t+""}Oe.prototype.code=void 0,Oe.prototype.message=void 0,Oe.prototype.locale="en_US",Oe.prototype.severity=void 0,Oe.prototype.$reserved=void 0,Oe.prototype.$objectType=void 0,Oe.prototype.$unknownFields=void 0;var Fe=new WeakSet,Ee=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Fe),this.$objectType="common.v1.response.ApiLink",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getHref",value:function(){return this.href}},{key:"setHref",value:function(e){this.href=e}},{key:"getRel",value:function(){return this.rel}},{key:"setRel",value:function(e){this.rel=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ke(ke(ke({},void 0!==this.getHref()&&null!==this.getHref()?{href:this.getHref()}:{}),void 0!==this.getRel()&&null!==this.getRel()?{rel:this.getRel()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"href"!==t||void 0!==this.href&&null!==this.href?"rel"!==t||void 0!==this.rel&&null!==this.rel?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("rel","undefined or null"):new x("href","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("href")&&null!==t.href&&void 0!==t.href&&n.setHref(t.href),t.hasOwnProperty("rel")&&null!==t.rel&&void 0!==t.rel&&n.setRel(t.rel),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ke({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Te(t.prototype,n),r&&Te(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ie(e){return Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ie(e)}function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach(function(t){Ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ce(e,t,n){return(t=xe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xe(r.key),r)}}function xe(e){var t=function(e){if("object"!=Ie(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ie(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ie(t)?t:t+""}Ee.prototype.href=void 0,Ee.prototype.rel=void 0,Ee.prototype.$reserved=void 0,Ee.prototype.$objectType=void 0,Ee.prototype.$unknownFields=void 0;var Ne,_e=new WeakSet,Ue=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,_e),this.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getFlags",value:function(){return this.flags}},{key:"setFlags",value:function(e){this.flags=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"getTotalAvailableResults",value:function(){return this.totalAvailableResults}},{key:"setTotalAvailableResults",value:function(e){this.totalAvailableResults=e}},{key:"getMessages",value:function(){return this.messages}},{key:"setMessages",value:function(e){this.messages=e}},{key:"getExtraInfo",value:function(){return this.extraInfo}},{key:"setExtraInfo",value:function(e){this.extraInfo=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return De(De(De(De(De(De({},void 0!==this.getFlags()&&null!==this.getFlags()?{flags:this.getFlags().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTotalAvailableResults()&&null!==this.getTotalAvailableResults()?{totalAvailableResults:this.getTotalAvailableResults()}:{}),void 0!==this.getMessages()&&null!==this.getMessages()?{messages:this.getMessages().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getExtraInfo()&&null!==this.getExtraInfo()?{extraInfo:this.getExtraInfo().map(function(e){return e.toJson(!1)})}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("flags"===t){if(void 0===this.flags||null===this.flags)return new x("flags","undefined or null");if(!A.validateMaxItems(this.flags,20))return new x("flags","does not satisfy required maxItems constraint: 20")}if("links"===t){if(void 0===this.links||null===this.links)return new x("links","undefined or null");if(!A.validateMaxItems(this.links,20))return new x("links","does not satisfy required maxItems constraint: 20")}if("totalAvailableResults"===t&&(void 0===this.totalAvailableResults||null===this.totalAvailableResults))return new x("totalAvailableResults","undefined or null");if("messages"===t){if(void 0===this.messages||null===this.messages)return new x("messages","undefined or null");if(!A.validateMaxItems(this.messages,20))return new x("messages","does not satisfy required maxItems constraint: 20")}if("extraInfo"===t){if(void 0===this.extraInfo||null===this.extraInfo)return new x("extraInfo","undefined or null");if(!A.validateMaxItems(this.extraInfo,20))return new x("extraInfo","does not satisfy required maxItems constraint: 20")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("flags")&&null!==t.flags&&void 0!==t.flags){for(i=[],n=t.flags,o=0;o<n.length;o++)r=V.constructFromObject(n[o],void 0),i.push(r);a.setFlags(i)}if(t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){for(i=[],n=t.links,o=0;o<n.length;o++)r=Ee.constructFromObject(n[o],void 0),i.push(r);a.setLinks(i)}if(t.hasOwnProperty("totalAvailableResults")&&null!==t.totalAvailableResults&&void 0!==t.totalAvailableResults&&a.setTotalAvailableResults(t.totalAvailableResults),t.hasOwnProperty("messages")&&null!==t.messages&&void 0!==t.messages){for(i=[],n=t.messages,o=0;o<n.length;o++)r=Oe.constructFromObject(n[o],void 0),i.push(r);a.setMessages(i)}if(t.hasOwnProperty("extraInfo")&&null!==t.extraInfo&&void 0!==t.extraInfo){for(i=[],n=t.extraInfo,o=0;o<n.length;o++)r=ce.constructFromObject(n[o],void 0),i.push(r);a.setExtraInfo(i)}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=De({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Re(t.prototype,n),r&&Re(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Je(){Je=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var i=RegExp(e,r);return t.set(i,o||t.get(e)),Me(i,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce(function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;t[n]=e[o[i]]}return t},Object.create(null))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Me(e,t)}(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var i=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)(>|$)/g,function(e,t,n){if(""===n)return e;var r=i[t];return Array.isArray(r)?"$"+r.join("$"):"number"==typeof r?"$"+r:""}))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,n,function(){var e=arguments;return"object"!=We(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)})}return e[Symbol.replace].call(this,n,o)},Je.apply(this,arguments)}function Me(e,t){return Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Me(e,t)}function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach(function(t){Ve(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ve(e,t,n){return(t=ze(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function We(e){return We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},We(e)}function Ge(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ke(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ke(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ze(r.key),r)}}function ze(e){var t=function(e){if("object"!=We(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=We(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==We(t)?t:t+""}function He(e,t,n){Ye(e,t),t.set(e,n)}function Ye(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xe(e,t){return e.get(Qe(e,t))}function Ze(e,t,n){return e.set(Qe(e,t),n),n}function Qe(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")}Ue.prototype.flags=void 0,Ue.prototype.links=void 0,Ue.prototype.totalAvailableResults=void 0,Ue.prototype.messages=void 0,Ue.prototype.extraInfo=void 0,Ue.prototype.$reserved=void 0,Ue.prototype.$objectType=void 0,Ue.prototype.$unknownFields=void 0,m()(t());var et=new WeakMap,tt=new WeakMap,nt=new WeakMap,rt=new WeakMap,ot=new WeakMap,it=new WeakMap,at=new WeakMap,st=new WeakMap,ut=new WeakSet,lt=function(){function e(){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ye(this,n=ut),n.add(this),He(this,et,void 0),He(this,tt,void 0),He(this,nt,void 0),He(this,rt,void 0),He(this,ot,void 0),He(this,it,void 0),He(this,at,void 0),He(this,st,void 0),Ze(st,this,Object.freeze({DEBUG:{key:"DEBUG",value:Symbol(0)},INFO:{key:"INFO",value:Symbol(1)},WARN:{key:"WARN",value:Symbol(2)},ERROR:{key:"ERROR",value:Symbol(3)}})),this.scheme="https",this.host="undefined"==typeof self?"localhost":self.location.hostname,this.port="undefined"==typeof self?"9440":self.location.port,this.authentications={apiKeyAuthScheme:{type:"apiKey",in:"header",name:"X-ntnx-api-key"},basicAuthScheme:{type:"basic"}},this.defaultHeaders={},Ze(ot,this,3e4),Ze(it,this,3e4),Ze(at,this,108e5),this.readTimeout=Xe(it,this),this.connectTimeout=Xe(ot,this),this.cache=!0,Ze(tt,this,null),this.maxRedirects=1,this.maxRetryAttempts=5,this.retryInterval=3e3,this.withCredentials=!1,"undefined"==typeof self&&(this.agent=new(t().agent)),this.requestAgent=null,this.debug=!1,Ze(nt,this,null),this.username=null,this.password=null,Ze(rt,this,!0),this.downloadDestination=null,this.loggerFile=null}return r=e,o=[{key:"verifySsl",get:function(){return Xe(rt,this)},set:function(e){this.requestAgent=e?null:new(w().Agent)({rejectUnauthorized:!1}),Ze(rt,this,e)}},{key:"loggerFile",set:function(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=j().createWriteStream(e,{flags:"a"})),Ze(nt,this,new console.Console({stdout:e,stderr:e})))}},{key:"addDefaultHeader",value:function(e,t){"Authorization"===e&&Ze(tt,this,null),this.defaultHeaders[e]=t}},{key:"paramToString",value:function(e){return null==e||null==e?"":e instanceof Date?e.toJSON():e.toString()}},{key:"buildUrl",value:function(e,t){var n=this;e.match(/^\//)||(e="/"+e),Ze(et,this,"undefined"==typeof self?this.scheme+":":self.location.protocol);var r="";""!==Xe(et,this)&&""!==this.host&&""!==this.port?r=Xe(et,this)+"//"+this.host+":"+this.port:"undefined"!=typeof self&&(r=self.origin);var o=r+e;return o.replace(/\{([\w-]+)\}/g,function(e,r){var o;return o=t.hasOwnProperty(r)?n.paramToString(t[r]):e,encodeURIComponent(o)})}},{key:"buildCollectionParam",value:function(e,t){if(null==e)return null;switch(t){case"csv":return e.map(this.paramToString).join(",");case"ssv":return e.map(this.paramToString).join(" ");case"tsv":return e.map(this.paramToString).join("\t");case"pipes":return e.map(this.paramToString).join("|");case"multi":return e.map(this.paramToString);default:throw new Error("Unknown collection format: "+t)}}},{key:"setApiKey",value:function(e){this.authentications.apiKeyAuthScheme.apiKey=null==e||"string"==typeof e||e instanceof String?e:void 0}},{key:"addEtagToReservedMap",value:function(e,t){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("etag")){var n=e.headers.etag;if(void 0!==t.getData())if(Array.isArray(t.getData())&&t.getData().length>0){var r,o=Ge(t.getData());try{for(o.s();!(r=o.n()).done;){var i=r.value;i.hasOwnProperty("$reserved")&&void 0!==i.get$Reserved()&&(i.get$Reserved().ETag=n)}}catch(e){o.e(e)}finally{o.f()}}else t.getData().hasOwnProperty("$reserved")&&void 0!==t.getData().get$Reserved()&&(t.getData().get$Reserved().ETag=n)}return t}},{key:"callApi",value:function(e,r,o,i,a,s,u,l,c,f,d){var p=this,y=this.buildUrl(e,o),h=t()(r,y);if(h.oldCallback=h.callback,h.callback=function(e,t){if(t&&t.status){var n=t.status;if(n>=400&&401!==n&&408!==n&&429!==n&&503!==n&&504!==n&&(this._maxRetries=0),401===t.status&&(this.unset("Cookie"),this._maxRetries=1),429===n){var r=t.headers["retry-after"];if(r){var o=1e3*parseInt(r,10);this._retryDelays[this._retries]=o}}}this.oldCallback(e,t)},Qe(ut,this,yt).call(this,h,l),"GET"===r.toUpperCase()&&!1===this.cache&&(i._=(new Date).getTime()),h.query(Qe(ut,this,pt).call(this,i)),h.set(this.defaultHeaders).set(Qe(ut,this,pt).call(this,a)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==a["NTNX-Request-Id"]&&void 0!==a["NTNX-Request-Id"])){var b=v();h.set(Qe(ut,this,pt).call(this,{"NTNX-Request-Id":b}))}var m="undefined"!=typeof window&&void 0!==window.document;m||(this.downloadDestination=".",h.set(Qe(ut,this,pt).call(this,{"User-Agent":"Nutanix-volumes-js-client/4.1.1"}))),this.requestAgent&&h.agent(this.requestAgent);var g={};g.response=Qe(ut,this,mt).call(this,this.connectTimeout,Xe(ot,this)),g.deadline=Qe(ut,this,mt).call(this,this.readTimeout,Xe(it,this)),h.timeout(g);var w=a.hasOwnProperty("Content-Type")?a["Content-Type"]:Qe(ut,this,ft).call(this,c);if(w?"multipart/form-data"!=w&&h.type(w):h.header["Content-Type"]||h.type("application/json"),Qe(ut,this,Ot).call(this,Xe(st,this).INFO,null,"Request URL :",r,y),Qe(ut,this,Ot).call(this,Xe(st,this).DEBUG,Qe(ut,this,$t),"Request Headers :",void 0===h.header?"":h.header),"application/x-www-form-urlencoded"===w)h.send(Qe(ut,this,pt).call(this,s));else if("multipart/form-data"==w){var O=Qe(ut,this,pt).call(this,s);for(var $ in O)O.hasOwnProperty($)&&(Qe(ut,this,dt).call(this,O[$])?h.attach($,O[$]):h.field($,O[$]))}else{if("application/octet-stream"===w&&null!=u&&"function"==typeof u.pipe){if(Qe(ut,this,Ot).call(this,Xe(st,this).INFO,null,"Piping octet-stream request"),"function"==typeof u.pipe)u.pipe(h);else{var k;try{k=n(965)}catch(e){Qe(ut,this,Ot).call(this,Xe(st,this).ERROR,null,"Error fetching steam/web")}u instanceof k.ReadableStream?u.pipeTo(new k.WritableStream({write:function(e){h.write(e)},close:function(){Qe(ut,this,Ot).call(this,Xe(st,this).INFO,null,"READABLE STREAM CLOSED")},abort:function(e){Qe(ut,this,Ot).call(this,Xe(st,this).ERROR,null,"READABLE STREAM ABORTED")}})):h.send(u)}return new Promise(function(t,n){h.on("error",function(e){Qe(ut,p,Ot).call(p,Xe(st,p).DEBUG,null,"Caught the following error :",e),n(e)}).on("response",function(r){Qe(ut,p,kt).call(p,r,e,i,d,t,n)})})}u&&h.send(u)}"Blob"==typeof d?h.responseType("blob"):"String"===d&&h.responseType("string"),Qe(ut,this,wt).call(this,h),Qe(ut,this,Ot).call(this,Xe(st,this).DEBUG,null,"Request Body :",void 0===h._data?"":h._data);var P=a.hasOwnProperty("Accept")&&null!=a.Accept?a.Accept:f.join(", "),T=["application/octet-stream","application/pdf","application/zip"];return P&&h.accept(P),new Promise(function(o,a){h.buffer(!1).redirects(0).retry(p.maxRetryAttempts,p.retryInterval,[]).withCredentials(p.withCredentials).on("error",function(e){Qe(ut,p,Ot).call(p,Xe(st,p).DEBUG,null,"Caught the following error :",e)}).end(function(s,u){if(s)Qe(ut,p,Ot).call(p,Xe(st,p).DEBUG,null,"Caught error during the request!"),Qe(ut,p,Ot).call(p,Xe(st,p).ERROR,null,s),null!==s.response&&void 0!==s.response?s.data=Qe(ut,p,vt).call(p,s.response,d):s.data=Qe(ut,p,ht).call(p,s),a(s);else{Qe(ut,p,Ot).call(p,Xe(st,p).INFO,null,"Response Status :",u.status),Qe(ut,p,Ot).call(p,Xe(st,p).DEBUG,Qe(ut,p,$t),"Response Headers :",u.headers);var l="";if(u.headers.hasOwnProperty("content-type")&&(l=u.headers["content-type"]),T.includes(l))if(m){var c;try{c=n(965)}catch(e){Qe(ut,p,Ot).call(p,Xe(st,p).ERROR,null,"Error fetching steam/web")}if(p.downloadDestination instanceof c.WritableStream){var f=p.downloadDestination.getWriter();try{u.on("data",function(e){f.write(e)})}catch(e){Qe(ut,p,Ot).call(p,Xe(st,p).ERROR,null,"Issue while downloading file",e)}u.on("end",function(){Qe(ut,p,Ot).call(p,Xe(st,p).INFO,null,"Finished streaming response"),f.close();var e=Qe(ut,p,vt).call(p,u,d);o({data:e,response:u})}).on("error",function(e){Qe(ut,p,Ot).call(p,Xe(st,p).ERROR,null,"Caught the following error :",e),e.data=Qe(ut,p,ht).call(p,e),a(e)})}else{var y="Incompatible downloadDestination for Browser Environment, must be WritableStream";Qe(ut,p,Ot).call(p,Xe(st,p).ERROR,null,y),a(y)}}else{var v=p.downloadDestination+"/downloaded_file_"+Date.now()+".txt",b=j().createWriteStream(v);Qe(ut,p,Pt).call(p,u,b,v,o,a,d)}else if(302==u.status){var g=p.downloadDestination+"/downloaded_file_"+Date.now()+".txt",w=p;Qe(ut,p,Ot).call(p,Xe(st,p).INFO,null,"Redirecting to :",u.headers.location);var O=t()(r,u.headers.location);O.set(h.header),u.headers.hasOwnProperty("x-redirect-token")&&(Qe(ut,p,Ot).call(p,Xe(st,p).INFO,null,"Writing X-Redirect-Token into Cookie"),O.set("Cookie",u.headers["x-redirect-token"])),O.redirects(0),O.withCredentials(p.withCredentials),O.buffer(!1);var $=j().createWriteStream(g);O.pipe($),O.on("response",function(e){Qe(ut,w,Ot).call(w,Xe(st,w).INFO,null,"Received response after redirection :",e.status),Qe(ut,w,Pt).call(w,e,$,g,o,a,d)})}else Qe(ut,p,kt).call(p,u,e,i,d,o,a)}})})}}],i=[{key:"getEtag",value:function(e){var t=null;return void 0!==e&&(e.hasOwnProperty("$reserved")&&void 0!==e.get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.get$Reserved(),"ETag")),null==t&&e.hasOwnProperty("data")&&e.getData().hasOwnProperty("$reserved")&&void 0!==e.getData().get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.getData().get$Reserved(),"ETag"))),t}},{key:"getValueForCaseInsensitiveKeyMatch",value:function(e,t){if(e&&t){var n=t.toLowerCase(),r=Object.keys(e).find(function(e){return e.toLowerCase()===n});return r?e[r]:null}return null}},{key:"addEtagReferenceToHeader",value:function(e,t){if(null!=e&&e.hasOwnProperty("$reserved")&&e.$reserved.hasOwnProperty("ETag")){var n=e.$reserved.ETag;null!=n&&""!==n&&(t["If-Match"]=n)}}},{key:"parseDate",value:function(e){return new Date(e)}},{key:"parseQueryParam",value:function(e,t,n,r){var o=null;if(void 0!==t&&t.hasOwnProperty(n)&&(o=t[n]),null===o&&("string"==typeof e||e instanceof String)){var i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=e.match(new RegExp("".concat(i,"=([0-9]+)")));a&&(o=a[1])}return null===o&&(o=r),o}},{key:"convertToType",value:function(t,n){if(null==t)return t;switch(n){case"Boolean":return Boolean(t);case"Integer":return parseInt(t,10);case"Number":return parseFloat(t);case"String":return String(t);case"Date":return e.parseDate(String(t));case"Blob":return t;default:if(n===Object)return t;if("function"==typeof n)return n.constructFromObject(t);if(Array.isArray(n)){var r=n[0];return t.map(function(t){return e.convertToType(t,r)})}if("object"===We(n)){var o,i;for(var a in n)if(n.hasOwnProperty(a)){o=a,i=n[a];break}var s={};for(var a in t)if(t.hasOwnProperty(a)){var u=e.convertToType(a,o),l=e.convertToType(t[a],i);s[u]=l}return s}return t}}},{key:"constructFromObject",value:function(t,n,r){if(Array.isArray(t))for(var o=0;o<t.length;o++)t.hasOwnProperty(o)&&(n[o]=e.convertToType(t[o],r));else for(var i in t)t.hasOwnProperty(i)&&(n[i]=e.convertToType(t[i],r))}}],o&&qe(r.prototype,o),i&&qe(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}();function ct(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function ft(e){for(var t=0;t<e.length;t++)if(Qe(ut,this,ct).call(this,e[t]))return e[t];return e[0]}function dt(e){var t;try{t=n(799)}catch(e){}return!!(t&&t.ReadStream&&e instanceof t.ReadStream)||"function"==typeof Buffer&&e instanceof Buffer||"function"==typeof P.Blob&&e instanceof P.Blob||"function"==typeof File&&e instanceof File}function pt(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n]&&null!=e[n]){var r=e[n];Qe(ut,this,dt).call(this,r)||Array.isArray(r)?t[n]=r:t[n]=this.paramToString(r)}return t}function yt(e,t){var n=this;t.forEach(function(t){var r=n.authentications[t];switch(r.type){case"basic":r.username||r.password?e.auth(r.username||"",r.password||""):(n.username||n.password)&&e.auth(n.username||"",n.password||""),Qe(ut,n,Ot).call(n,Xe(st,n).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(r.apiKey){var o={};r.apiKeyPrefix?o[r.name]=r.apiKeyPrefix+" "+r.apiKey:o[r.name]=r.apiKey,"header"===r.in?e.set(o):e.query(o)}Qe(ut,n,Ot).call(n,Xe(st,n).DEBUG,null,"apiKey applied to request");break;case"oauth2":r.accessToken&&e.set({Authorization:"Bearer "+r.accessToken}),Qe(ut,n,Ot).call(n,Xe(st,n).DEBUG,null,"oauth2 applied to request");break;default:throw Qe(ut,n,Ot).call(n,Xe(st,n).ERROR,null,"Unknown authentication type:",r.type),new Error("Unknown authentication type: "+r.type)}})}function ht(e){var t={data:{},metadata:{}};t.data.status=e.status,t.data.message=e.message}function vt(e,t){if(null==e||null==t||204==e.status)return null;if(e.headers&&["text/event-stream","text/html","text/xml","text/csv","text/javascript","text/markdown","text/vcard"].includes(e.headers["content-type"])){(i=new t).data=new P.Blob([e.text],{type:e.headers["content-type"]});var n=new V;n.name="hasError",n.value=!1;var r=[n],o=new Ue;return o.flags=r,i.metadata=o,i}var i;return(null==(i=e.body)||"object"===We(i)&&void 0===i.length&&!Object.keys(i).length)&&(i=e.text),Ne.convertToType(i,t)}function bt(e,t,n){if(e instanceof l){var r=parseInt(this.constructor.parseQueryParam(t,n,"$page","0"),10),o=parseInt(this.constructor.parseQueryParam(t,n,"$limit","50"),10);e.populatePaginationMetadata(this,r,o)}}function mt(e,t){return e<=0?e=t:e>Xe(at,this)&&(e=Xe(at,this)),e}function gt(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){var t="",n=e.headers["set-cookie"];if(n.length>0){var r,o=Ge(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;(i=i.split(";")[0]).includes("=")&&(i.trim(),t=t.concat(i).concat(";"))}}catch(e){o.e(e)}finally{o.f()}""!==t&&(t=t.substr(0,t.length-1))}Ze(tt,this,t),Qe(ut,this,Ot).call(this,Xe(st,this).DEBUG,null,"Retained cookie :",t)}else Ze(tt,this,null)}function wt(e){null!=Xe(tt,this)&&e.set(Qe(ut,this,pt).call(this,{Cookie:Xe(tt,this)}))}function Ot(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if("object"===We(e)&&"key"in e&&"value"in e&&"symbol"===We(e.value)||(e=Xe(st,this).INFO),!Qe(ut,this,jt).call(this,e)){r=r.map(function(e){return"string"==typeof e?e:t?t(e):JSON.stringify(e)});var i=r.join(" ");i=(new Date).toISOString()+" "+e.key+" - "+i,void 0!==Xe(nt,this)&&null!==Xe(nt,this)&&"function"==typeof Xe(nt,this).log?Xe(nt,this).log(i):console.log(i)}}function jt(e){return!this.debug&&e===Xe(st,this).DEBUG}function $t(e){if("object"!==We(e))return e;var t="\n";return e&&Object.keys(e).forEach(function(n){t+=n+"=["+e[n]+"]\n"}),"\n"===t?e:t}function kt(e,t,n,r,o,i){try{var a=Qe(ut,this,vt).call(this,e,r);Qe(ut,this,Ot).call(this,Xe(st,this).INFO,null,"Response Status :",e.status),Qe(ut,this,Ot).call(this,Xe(st,this).DEBUG,Qe(ut,this,$t),"Response Headers :",e.headers),Qe(ut,this,gt).call(this,e||{}),Qe(ut,this,Ot).call(this,Xe(st,this).DEBUG,null,"Response Body :",a),204==e.status&&null==a?o({data:a,response:e}):e.ok&&null!=a?(this.addEtagToReservedMap(e,a),Qe(ut,this,bt).call(this,a,t,n),o({data:a,response:e})):(Qe(ut,this,Ot).call(this,Xe(st,this).ERROR,null,a),i(Le(Le({},e.error),{},{data:a})))}catch(e){Qe(ut,this,Ot).call(this,Xe(st,this).DEBUG,null,"Caught error while processing response!"),Qe(ut,this,Ot).call(this,Xe(st,this).ERROR,null,e),e.data=Qe(ut,this,ht).call(this,e),i(e)}}function Pt(e,t,n,r,o,i){var a=this;Qe(ut,this,Ot).call(this,Xe(st,this).INFO,null,"Streaming response to : ",n);try{e.on("data",function(e){t.write(e)})}catch(e){Qe(ut,this,Ot).call(this,Xe(st,this).ERROR,null,"Issue while downloading file",e)}var s=new i,u="";if(void 0!==e.headers["content-disposition"]&&null!==e.headers["content-disposition"]){var l=e.headers["content-disposition"].match(Je(/.*filename="(.*)".*/,{filename:1})),c=k().parse(l.groups.filename);u=this.downloadDestination+"/"+c.name+"_"+Date.now()+c.ext,s.data={path:k().parse(u),$objectType:"Path"};var f=new V;f.name="hasError",f.value=!1;var d=[f],p=new Ue;p.flags=d,s.metadata=p}e.on("end",function(){Qe(ut,a,Ot).call(a,Xe(st,a).INFO,null,"Finished streaming response"),0!==u.length?(Qe(ut,a,Ot).call(a,Xe(st,a).INFO,null,"Content-Disposition header found [",u,"] is final filename"),t.close(),j().renameSync(n,u),r({data:s,response:e})):(Qe(ut,a,Ot).call(a,Xe(st,a).ERROR,null,"Content-Disposition header not found [",n,"] is final filename"),r({data:s,response:e}))}),e.on("error",function(e){Qe(ut,a,Ot).call(a,Xe(st,a).ERROR,null,"Caught the following error :",e),error.data=Qe(ut,a,ht).call(a,error),o(e)})}function Tt(e){return Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tt(e)}function St(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?St(Object(n),!0).forEach(function(t){Et(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):St(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Et(e,t,n){return(t=At(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function It(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,At(r.key),r)}}function At(e){var t=function(e){if("object"!=Tt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Tt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Tt(t)?t:t+""}Ne=lt,lt.instance=new lt;var Dt=new WeakSet,Ct=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Dt),this.$objectType="prism.v4.config.TaskReference",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ft(Ft({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new x("extId","undefined or null");if(!A.validatePattern(this.extId,/^[a-zA-Z0-9\/+]*={0,2}:[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}/))return new x("extId","does not satisfy required pattern: /^[a-zA-Z0-9/+]*={0,2}:[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}/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Ft({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&It(t.prototype,n),r&&It(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Rt(e){return Rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rt(e)}function xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nt(Object(n),!0).forEach(function(t){Ut(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ut(e,t,n){return(t=Mt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mt(r.key),r)}}function Mt(e){var t=function(e){if("object"!=Rt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Rt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rt(t)?t:t+""}function Bt(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")}Ct.prototype.extId=void 0,Ct.prototype.$reserved=void 0,Ct.prototype.$objectType=void 0,Ct.prototype.$unknownFields=void 0;var Lt=new WeakSet,Vt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Lt),this.$objectType="volumes.v4.error.AppMessage",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getErrorGroup",value:function(){return this.errorGroup}},{key:"setErrorGroup",value:function(e){this.errorGroup=e}},{key:"getArgumentsMap",value:function(){return this.argumentsMap}},{key:"setArgumentsMap",value:function(e){this.argumentsMap=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return _t(_t(_t(_t(_t(_t(_t({},void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getErrorGroup()&&null!==this.getErrorGroup()?{errorGroup:this.getErrorGroup()}:{}),!1===e?void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Bt(Lt,this,Wt).call(this,this.getArgumentsMap(),!1)}:{}:void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Bt(Lt,this,Wt).call(this,this.getArgumentsMap())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"message"!==t||void 0!==this.message&&null!==this.message?"severity"!==t||void 0!==this.severity&&null!==this.severity?"code"!==t||void 0!==this.code&&null!==this.code?"locale"!==t||void 0!==this.locale&&null!==this.locale?"errorGroup"!==t||void 0!==this.errorGroup&&null!==this.errorGroup?"argumentsMap"!==t||void 0!==this.argumentsMap&&null!==this.argumentsMap?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("argumentsMap","undefined or null"):new x("errorGroup","undefined or null"):new x("locale","undefined or null"):new x("code","undefined or null"):new x("severity","undefined or null"):new x("message","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(pe.constructFromObject(t.severity)),t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("errorGroup")&&null!==t.errorGroup&&void 0!==t.errorGroup&&n.setErrorGroup(t.errorGroup),t.hasOwnProperty("argumentsMap")&&null!==t.argumentsMap&&void 0!==t.argumentsMap&&n.setArgumentsMap(t.argumentsMap),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=_t({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Jt(t.prototype,n),r&&Jt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Wt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return xt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xt(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Rt(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function Gt(e){return Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gt(e)}function Kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kt(Object(n),!0).forEach(function(t){zt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zt(e,t,n){return(t=Yt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yt(r.key),r)}}function Yt(e){var t=function(e){if("object"!=Gt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Gt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gt(t)?t:t+""}Vt.prototype.message=void 0,Vt.prototype.severity=void 0,Vt.prototype.code=void 0,Vt.prototype.locale="en_US",Vt.prototype.errorGroup=void 0,Vt.prototype.argumentsMap=void 0,Vt.prototype.$reserved=void 0,Vt.prototype.$objectType=void 0,Vt.prototype.$unknownFields=void 0;var Xt=new WeakSet,Zt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Xt),this.$objectType="volumes.v4.error.SchemaValidationErrorMessage",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getLocation",value:function(){return this.location}},{key:"setLocation",value:function(e){this.location=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getAttributePath",value:function(){return this.attributePath}},{key:"setAttributePath",value:function(e){this.attributePath=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return qt(qt(qt(qt({},void 0!==this.getLocation()&&null!==this.getLocation()?{location:this.getLocation()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getAttributePath()&&null!==this.getAttributePath()?{attributePath:this.getAttributePath()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"location"!==t||void 0!==this.location&&null!==this.location?"message"!==t||void 0!==this.message&&null!==this.message?"attributePath"!==t||void 0!==this.attributePath&&null!==this.attributePath?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("attributePath","undefined or null"):new x("message","undefined or null"):new x("location","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("location")&&null!==t.location&&void 0!==t.location&&n.setLocation(t.location),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("attributePath")&&null!==t.attributePath&&void 0!==t.attributePath&&n.setAttributePath(t.attributePath),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=qt({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Ht(t.prototype,n),r&&Ht(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Qt(e){return Qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qt(e)}function en(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?en(Object(n),!0).forEach(function(t){nn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):en(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nn(e,t,n){return(t=on(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,on(r.key),r)}}function on(e){var t=function(e){if("object"!=Qt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qt(t)?t:t+""}function an(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")}Zt.prototype.location=void 0,Zt.prototype.message=void 0,Zt.prototype.attributePath=void 0,Zt.prototype.$reserved=void 0,Zt.prototype.$objectType=void 0,Zt.prototype.$unknownFields=void 0;var sn=new WeakSet,un=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,sn),this.$objectType="volumes.v4.error.SchemaValidationError",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getTimestamp",value:function(){return this.timestamp}},{key:"setTimestamp",value:function(e){this.timestamp=e}},{key:"getStatusCode",value:function(){return this.statusCode}},{key:"setStatusCode",value:function(e){this.statusCode=e}},{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"getPath",value:function(){return this.path}},{key:"setPath",value:function(e){this.path=e}},{key:"getValidationErrorMessages",value:function(){return this.validationErrorMessages}},{key:"setValidationErrorMessages",value:function(e){this.validationErrorMessages=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return tn(tn(tn(tn(tn(tn({},void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:an(sn,this,ln).call(this,this.getTimestamp(),!1)}:{}),void 0!==this.getStatusCode()&&null!==this.getStatusCode()?{statusCode:this.getStatusCode()}:{}),void 0!==this.getError()&&null!==this.getError()?{error:this.getError()}:{}),void 0!==this.getPath()&&null!==this.getPath()?{path:this.getPath()}:{}),void 0!==this.getValidationErrorMessages()&&null!==this.getValidationErrorMessages()?{validationErrorMessages:this.getValidationErrorMessages().map(function(e){return e.toJson(!1)})}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"statusCode"!==t||void 0!==this.statusCode&&null!==this.statusCode?"error"!==t||void 0!==this.error&&null!==this.error?"path"!==t||void 0!==this.path&&null!==this.path?"validationErrorMessages"!==t||void 0!==this.validationErrorMessages&&null!==this.validationErrorMessages?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("validationErrorMessages","undefined or null"):new x("path","undefined or null"):new x("error","undefined or null"):new x("statusCode","undefined or null"):new x("timestamp","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&a.setTimestamp(t.timestamp),t.hasOwnProperty("statusCode")&&null!==t.statusCode&&void 0!==t.statusCode&&a.setStatusCode(t.statusCode),t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error&&a.setError(t.error),t.hasOwnProperty("path")&&null!==t.path&&void 0!==t.path&&a.setPath(t.path),t.hasOwnProperty("validationErrorMessages")&&null!==t.validationErrorMessages&&void 0!==t.validationErrorMessages){for(i=[],n=t.validationErrorMessages,o=0;o<n.length;o++)r=Zt.constructFromObject(n[o],void 0),i.push(r);a.setValidationErrorMessages(i)}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=tn({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&rn(t.prototype,n),r&&rn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ln(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function cn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function fn(e){return fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fn(e)}function dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dn(Object(n),!0).forEach(function(t){yn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yn(e,t,n){return(t=vn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vn(r.key),r)}}function vn(e){var t=function(e){if("object"!=fn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fn(t)?t:t+""}function bn(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")}un.prototype.timestamp=void 0,un.prototype.statusCode=void 0,un.prototype.error=void 0,un.prototype.path=void 0,un.prototype.validationErrorMessages=void 0,un.prototype.$reserved=void 0,un.prototype.$objectType=void 0,un.prototype.$unknownFields=void 0;var mn=new WeakSet,gn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,mn),this.$objectType="volumes.v4.error.ErrorResponse",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return pn(pn({},!1===e?void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson(!1):Array.isArray(this.getError())?this.getError().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):bn(mn,this,wn).call(this,this.getError(),!1)}:{}:void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson():Array.isArray(this.getError())?this.getError().map(function(e){return void 0!==e.toJson?e.toJson():e}):bn(mn,this,wn).call(this,this.getError())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"error"!==t||void 0!==this.error&&null!==this.error?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("error","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error)if(Array.isArray(t.error))if(0===t.error.length)s.setError([]);else{for(i=[],a=(n=t.error)[0].hasOwnProperty("$objectType")?n[0].$objectType:fn(n[0]),o=0;o<n.length;o++){if("volumes.v4.error.AppMessage"!==a)throw"Unknown list of type "+a+" in data";r=Vt.constructFromObject(n[o],void 0),i.push(r)}s.setError(i)}else{if("volumes.v4.error.SchemaValidationError"!==(a=t.error.hasOwnProperty("$objectType")?t.error.$objectType:fn(t.error)))throw"Unknown datatype "+a+" in data";s.setError(un.constructFromObject(t.error,void 0))}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!u)for(var l in s.$unknownFields=pn({},t.$unknownFields),t)Object.keys(s).includes(l)||Object.keys(s).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(s.$unknownFields[l]=t[l])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&hn(t.prototype,n),r&&hn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function wn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return cn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cn(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===fn(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function On(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jn(e){return jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jn(e)}function $n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$n(Object(n),!0).forEach(function(t){Pn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$n(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pn(e,t,n){return(t=Sn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sn(r.key),r)}}function Sn(e){var t=function(e){if("object"!=jn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=jn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jn(t)?t:t+""}function Fn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Fn=function(){return!!e})()}function En(e){return En=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},En(e)}function In(e,t){return In=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},In(e,t)}function An(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")}gn.prototype.error=void 0,gn.prototype.$reserved=void 0,gn.prototype.$objectType=void 0,gn.prototype.$unknownFields=void 0;var Dn=new WeakSet,Cn=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=En(t),function(e,t){if(t&&("object"==jn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Fn()?Reflect.construct(t,n||[],En(e).constructor):t.apply(e,n))}(this,t),Dn),e.$objectType="volumes.v4.config.UpdateIscsiClientApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&In(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return kn(kn(kn({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):An(Dn,this,Rn).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):An(Dn,this,Rn).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:jn(e.data)){case"prism.v4.config.TaskReference":r.setData(Ct.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":r.setData(gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=kn({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Tn(n.prototype,r),o&&Tn(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Rn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return On(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?On(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===jn(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function xn(e){return xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xn(e)}function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nn(Object(n),!0).forEach(function(t){Un(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Un(e,t,n){return(t=Mn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mn(r.key),r)}}function Mn(e){var t=function(e){if("object"!=xn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xn(t)?t:t+""}Cn.prototype.metadata=void 0,Cn.prototype.data=void 0,Cn.prototype.$reserved=void 0,Cn.prototype.$objectType=void 0,Cn.prototype.$unknownFields=void 0;var Bn=new WeakSet,Ln=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Bn),this.$objectType="common.v1.config.FQDN",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return _n(_n({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new x("value","undefined or null");if(!A.validatePattern(this.value,/^([a-zA-Z0-9À-ÿ]+(?:-[a-zA-Z0-9À-ÿ]+)*\\.)+[a-zA-ZÀ-ÿ]{2,63}$/))return new x("value","does not satisfy required pattern: /^([a-zA-Z0-9À-ÿ]+(?:-[a-zA-Z0-9À-ÿ]+)*\\.)+[a-zA-ZÀ-ÿ]{2,63}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=_n({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Jn(t.prototype,n),r&&Jn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Vn(e){return Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vn(e)}function Wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wn(Object(n),!0).forEach(function(t){Kn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Kn(e,t,n){return(t=zn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zn(r.key),r)}}function zn(e){var t=function(e){if("object"!=Vn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Vn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Vn(t)?t:t+""}Ln.prototype.value=void 0,Ln.prototype.$reserved=void 0,Ln.prototype.$objectType=void 0,Ln.prototype.$unknownFields=void 0;var Hn=new WeakSet,Yn=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Hn),this.value=t,this.$objectType="common.v1.config.IPv4Address",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Gn(Gn(Gn({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=["value"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new x("value","undefined or null");if(!A.validatePattern(this.value,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/))return new x("value","does not satisfy required pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new x("prefixLength","undefined or null");if(!A.validateMaximum(this.prefixLength,32))return new x("prefixLength","does not satisfy required maximum constraint: 32");if(!A.validateMinimum(this.prefixLength,0))return new x("prefixLength","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Gn({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&qn(t.prototype,n),r&&qn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Xn(e){return Xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xn(e)}function Zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zn(Object(n),!0).forEach(function(t){er(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function er(e,t,n){return(t=nr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nr(r.key),r)}}function nr(e){var t=function(e){if("object"!=Xn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xn(t)?t:t+""}Yn.prototype.value=void 0,Yn.prototype.prefixLength=32,Yn.prototype.$reserved=void 0,Yn.prototype.$objectType=void 0,Yn.prototype.$unknownFields=void 0;var rr=new WeakSet,or=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,rr),this.value=t,this.$objectType="common.v1.config.IPv6Address",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Qn(Qn(Qn({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=["value"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new x("value","undefined or null");if(!A.validatePattern(this.value,/^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/))return new x("value","does not satisfy required pattern: /^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new x("prefixLength","undefined or null");if(!A.validateMaximum(this.prefixLength,128))return new x("prefixLength","does not satisfy required maximum constraint: 128");if(!A.validateMinimum(this.prefixLength,0))return new x("prefixLength","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Qn({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&tr(t.prototype,n),r&&tr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ir(e){return ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ir(e)}function ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(n),!0).forEach(function(t){ur(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ur(e,t,n){return(t=cr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cr(r.key),r)}}function cr(e){var t=function(e){if("object"!=ir(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ir(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ir(t)?t:t+""}or.prototype.value=void 0,or.prototype.prefixLength=128,or.prototype.$reserved=void 0,or.prototype.$objectType=void 0,or.prototype.$unknownFields=void 0;var fr=new WeakSet,dr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,fr),this.$objectType="common.v1.config.IPAddressOrFQDN",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getIpv4",value:function(){return this.ipv4}},{key:"setIpv4",value:function(e){this.ipv4=e}},{key:"getIpv6",value:function(){return this.ipv6}},{key:"setIpv6",value:function(e){this.ipv6=e}},{key:"getFqdn",value:function(){return this.fqdn}},{key:"setFqdn",value:function(e){this.fqdn=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"hasIpv4",value:function(){return!(void 0===this.ipv4||null===this.ipv4)}},{key:"hasIpv6",value:function(){return!(void 0===this.ipv6||null===this.ipv6)}},{key:"hasFqdn",value:function(){return!(void 0===this.fqdn||null===this.fqdn)}},{key:"isValid",value:function(){return this.hasIpv4()||this.hasIpv6()||this.hasFqdn()}},{key:"toJson",value:function(e){return sr(sr(sr(sr({},void 0!==this.getIpv4()&&null!==this.getIpv4()?{ipv4:this.getIpv4().toJson(!1)}:{}),void 0!==this.getIpv6()&&null!==this.getIpv6()?{ipv6:this.getIpv6().toJson(!1)}:{}),void 0!==this.getFqdn()&&null!==this.getFqdn()?{fqdn:this.getFqdn().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"ipv4"!==t||void 0!==this.ipv4&&null!==this.ipv4?"ipv6"!==t||void 0!==this.ipv6&&null!==this.ipv6?"fqdn"!==t||void 0!==this.fqdn&&null!==this.fqdn?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("fqdn","undefined or null"):new x("ipv6","undefined or null"):new x("ipv4","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("ipv4")&&null!==t.ipv4&&void 0!==t.ipv4&&n.setIpv4(Yn.constructFromObject(t.ipv4)),t.hasOwnProperty("ipv6")&&null!==t.ipv6&&void 0!==t.ipv6&&n.setIpv6(or.constructFromObject(t.ipv6)),t.hasOwnProperty("fqdn")&&null!==t.fqdn&&void 0!==t.fqdn&&n.setFqdn(Ln.constructFromObject(t.fqdn)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=sr({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&lr(t.prototype,n),r&&lr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function pr(e){return pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pr(e)}function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yr(Object(n),!0).forEach(function(t){vr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vr(e,t,n){return(t=mr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function br(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mr(r.key),r)}}function mr(e){var t=function(e){if("object"!=pr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pr(t)?t:t+""}dr.prototype.ipv4=void 0,dr.prototype.ipv6=void 0,dr.prototype.fqdn=void 0,dr.prototype.$reserved=void 0,dr.prototype.$objectType=void 0,dr.prototype.$unknownFields=void 0;var gr=new WeakSet,wr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,gr),this.$objectType="common.v1.config.TenantAwareModel",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getTenantId",value:function(){return this.tenantId}},{key:"setTenantId",value:function(e){this.tenantId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return!1===e?hr(hr({},void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new x("tenantId","undefined or null");if(!A.validatePattern(this.tenantId,/^[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}$/))return new x("tenantId","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}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("tenantId")&&null!==t.tenantId&&void 0!==t.tenantId&&n.setTenantId(t.tenantId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=hr({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&br(t.prototype,n),r&&br(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Or(e){return Or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Or(e)}function jr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jr(Object(n),!0).forEach(function(t){kr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kr(e,t,n){return(t=Tr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tr(r.key),r)}}function Tr(e){var t=function(e){if("object"!=Or(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Or(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Or(t)?t:t+""}function Sr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Sr=function(){return!!e})()}function Fr(e){return Fr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fr(e)}function Er(e,t){return Er=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Er(e,t)}wr.prototype.tenantId=void 0,wr.prototype.$reserved=void 0,wr.prototype.$objectType=void 0,wr.prototype.$unknownFields=void 0;var Ir=new WeakSet,Ar=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Fr(t),function(e,t){if(t&&("object"==Or(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Sr()?Reflect.construct(t,n||[],Fr(e).constructor):t.apply(e,n))}(this,t),Ir),e.$objectType="common.v1.response.ExternalizableAbstractModel",e.$reserved={$fv:"v1.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Er(e,t)}(t,e),n=t,r=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"toJson",value:function(e){return!1===e?$r($r($r($r({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new x("extId","undefined or null");if(null==e){if(!A.validatePattern(this.extId,/^[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}$/))return new x("extId","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}$/")}else if(e===S.update&&!A.validatePattern(this.extId,/^[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}$/))return new x("extId","does not satisfy 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}$/")}if("links"===t){if(void 0===this.links||null===this.links)return new x("links","undefined or null");if(!A.validateMaxItems(this.links,20))return new x("links","does not satisfy required maxItems constraint: 20")}return new x(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,wr.constructFromObject(e,a,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&a.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(i=[],n=e.links,o=0;o<n.length;o++)r=Ee.constructFromObject(n[o],void 0),i.push(r);a.setLinks(i)}if(!s)for(var u in a.$unknownFields=$r({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Pr(n.prototype,r),o&&Pr(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(wr);Ar.prototype.extId=void 0,Ar.prototype.links=void 0,wr.prototype.tenantId=void 0;var Dr={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CHAP:"CHAP",NONE:"NONE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Dr).find(function(t){return Dr[t]===e});return null==t?Dr.$UNKNOWN:Dr[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Dr.$UNKNOWN:case Dr.$REDACTED:case Dr.CHAP:case Dr.NONE:return;default:throw new Error("Invalid : must be AuthenticationType.{ $UNKNOWN|$REDACTED|CHAP|NONE }")}}};Object.freeze(Dr);const Cr=Dr;function Rr(e){return Rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rr(e)}function xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xr(Object(n),!0).forEach(function(t){_r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _r(e,t,n){return(t=Jr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ur(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jr(r.key),r)}}function Jr(e){var t=function(e){if("object"!=Rr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Rr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rr(t)?t:t+""}var Mr=new WeakSet,Br=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Mr),this.$objectType="volumes.v4.config.TargetParam",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getNumVirtualTargets",value:function(){return this.numVirtualTargets}},{key:"setNumVirtualTargets",value:function(e){this.numVirtualTargets=e}},{key:"getIscsiTargetName",value:function(){return this.iscsiTargetName}},{key:"setIscsiTargetName",value:function(e){this.iscsiTargetName=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return!1===e?Nr(Nr(Nr({},void 0!==this.getNumVirtualTargets()&&null!==this.getNumVirtualTargets()?{numVirtualTargets:this.getNumVirtualTargets()}:{}),void 0!==this.getIscsiTargetName()&&null!==this.getIscsiTargetName()?{iscsiTargetName:this.getIscsiTargetName()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("numVirtualTargets"===t){if(void 0===this.numVirtualTargets||null===this.numVirtualTargets)return new x("numVirtualTargets","undefined or null");if(!A.validateMaximum(this.numVirtualTargets,32))return new x("numVirtualTargets","does not satisfy required maximum constraint: 32");if(!A.validateMinimum(this.numVirtualTargets,1))return new x("numVirtualTargets","does not satisfy required minimum constraint: 1")}if("iscsiTargetName"===t){if(void 0===this.iscsiTargetName||null===this.iscsiTargetName)return new x("iscsiTargetName","undefined or null");if(!A.validateMaxLength(this.iscsiTargetName,512))return new x("iscsiTargetName","does not satisfy required maxLength constraint: 512")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("numVirtualTargets")&&null!==t.numVirtualTargets&&void 0!==t.numVirtualTargets&&n.setNumVirtualTargets(t.numVirtualTargets),t.hasOwnProperty("iscsiTargetName")&&null!==t.iscsiTargetName&&void 0!==t.iscsiTargetName&&n.setIscsiTargetName(t.iscsiTargetName),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Nr({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Ur(t.prototype,n),r&&Ur(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Br.prototype.numVirtualTargets=void 0,Br.prototype.iscsiTargetName=void 0,Br.prototype.$reserved=void 0,Br.prototype.$objectType=void 0,Br.prototype.$unknownFields=void 0;var Lr={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PRIMARY:"PRIMARY",SECONDARY:"SECONDARY",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Lr).find(function(t){return Lr[t]===e});return null==t?Lr.$UNKNOWN:Lr[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Lr.$UNKNOWN:case Lr.$REDACTED:case Lr.PRIMARY:case Lr.SECONDARY:return;default:throw new Error("Invalid : must be VolumeGroupAttachmentSite.{ $UNKNOWN|$REDACTED|PRIMARY|SECONDARY }")}}};Object.freeze(Lr);const Vr=Lr;function Wr(e){return Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wr(e)}function Gr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gr(Object(n),!0).forEach(function(t){qr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qr(e,t,n){return(t=Hr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hr(r.key),r)}}function Hr(e){var t=function(e){if("object"!=Wr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wr(t)?t:t+""}function Yr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Yr=function(){return!!e})()}function Xr(e){return Xr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xr(e)}function Zr(e,t){return Zr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zr(e,t)}var Qr=new WeakSet,eo=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Xr(t),function(e,t){if(t&&("object"==Wr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Yr()?Reflect.construct(t,n||[],Xr(e).constructor):t.apply(e,n))}(this,t),Qr),e.$objectType="volumes.v4.config.IscsiClient",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zr(e,t)}(t,e),n=t,r=[{key:"getIscsiInitiatorName",value:function(){return this.iscsiInitiatorName}},{key:"setIscsiInitiatorName",value:function(e){this.iscsiInitiatorName=e}},{key:"getIscsiInitiatorNetworkId",value:function(){return this.iscsiInitiatorNetworkId}},{key:"setIscsiInitiatorNetworkId",value:function(e){this.iscsiInitiatorNetworkId=e}},{key:"getClientSecret",value:function(){return this.clientSecret}},{key:"setClientSecret",value:function(e){this.clientSecret=e}},{key:"getEnabledAuthentications",value:function(){return this.enabledAuthentications}},{key:"setEnabledAuthentications",value:function(e){this.enabledAuthentications=e}},{key:"getAttachedTargets",value:function(){return this.attachedTargets}},{key:"setAttachedTargets",value:function(e){this.attachedTargets=e}},{key:"getNumVirtualTargets",value:function(){return this.numVirtualTargets}},{key:"setNumVirtualTargets",value:function(e){this.numVirtualTargets=e}},{key:"getClusterReference",value:function(){return this.clusterReference}},{key:"setClusterReference",value:function(e){this.clusterReference=e}},{key:"getAttachmentSite",value:function(){return this.attachmentSite}},{key:"setAttachmentSite",value:function(e){this.attachmentSite=e}},{key:"toJson",value:function(e){return Kr(!1===e?Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr(Kr({},void 0!==this.getIscsiInitiatorName()&&null!==this.getIscsiInitiatorName()?{iscsiInitiatorName:this.getIscsiInitiatorName()}:{}),void 0!==this.getIscsiInitiatorNetworkId()&&null!==this.getIscsiInitiatorNetworkId()?{iscsiInitiatorNetworkId:this.getIscsiInitiatorNetworkId().toJson(!1)}:{}),void 0!==this.getClientSecret()&&null!==this.getClientSecret()?{clientSecret:this.getClientSecret()}:{}),void 0!==this.getEnabledAuthentications()&&null!==this.getEnabledAuthentications()?{enabledAuthentications:this.getEnabledAuthentications()}:{}),void 0!==this.getAttachedTargets()&&null!==this.getAttachedTargets()?{attachedTargets:this.getAttachedTargets().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getNumVirtualTargets()&&null!==this.getNumVirtualTargets()?{numVirtualTargets:this.getNumVirtualTargets()}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{}),void 0!==this.getAttachmentSite()&&null!==this.getAttachmentSite()?{attachmentSite:this.getAttachmentSite()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Kr(Kr(Kr(Kr(Kr(Kr({},void 0!==this.getIscsiInitiatorName()&&null!==this.getIscsiInitiatorName()?{iscsiInitiatorName:this.getIscsiInitiatorName()}:{}),void 0!==this.getIscsiInitiatorNetworkId()&&null!==this.getIscsiInitiatorNetworkId()?{iscsiInitiatorNetworkId:this.getIscsiInitiatorNetworkId().toJson(!1)}:{}),void 0!==this.getClientSecret()&&null!==this.getClientSecret()?{clientSecret:this.getClientSecret()}:{}),void 0!==this.getEnabledAuthentications()&&null!==this.getEnabledAuthentications()?{enabledAuthentications:this.getEnabledAuthentications()}:{}),void 0!==this.getNumVirtualTargets()&&null!==this.getNumVirtualTargets()?{numVirtualTargets:this.getNumVirtualTargets()}:{}),void 0!==this.getAttachmentSite()&&null!==this.getAttachmentSite()?{attachmentSite:this.getAttachmentSite()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("iscsiInitiatorName"===t){if(void 0===this.iscsiInitiatorName||null===this.iscsiInitiatorName)return new x("iscsiInitiatorName","undefined or null");if(!A.validateMaxLength(this.iscsiInitiatorName,64))return new x("iscsiInitiatorName","does not satisfy required maxLength constraint: 64")}if("iscsiInitiatorNetworkId"===t&&(void 0===this.iscsiInitiatorNetworkId||null===this.iscsiInitiatorNetworkId))return new x("iscsiInitiatorNetworkId","undefined or null");if("clientSecret"===t&&(void 0===this.clientSecret||null===this.clientSecret))return new x("clientSecret","undefined or null");if("enabledAuthentications"===t&&(void 0===this.enabledAuthentications||null===this.enabledAuthentications))return new x("enabledAuthentications","undefined or null");if("attachedTargets"===t){if(void 0===this.attachedTargets||null===this.attachedTargets)return new x("attachedTargets","undefined or null");if(!A.validateMaxItems(this.attachedTargets,128))return new x("attachedTargets","does not satisfy required maxItems constraint: 128")}if("numVirtualTargets"===t&&(void 0===this.numVirtualTargets||null===this.numVirtualTargets))return new x("numVirtualTargets","undefined or null");if("clusterReference"===t){if(void 0===this.clusterReference||null===this.clusterReference)return new x("clusterReference","undefined or null");if(!A.validatePattern(this.clusterReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new x("clusterReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"attachmentSite"!==t||void 0!==this.attachmentSite&&null!==this.attachmentSite?new x(t,"no such property exists"):new x("attachmentSite","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,Ar.constructFromObject(e,a,!0),e.hasOwnProperty("iscsiInitiatorName")&&null!==e.iscsiInitiatorName&&void 0!==e.iscsiInitiatorName&&a.setIscsiInitiatorName(e.iscsiInitiatorName),e.hasOwnProperty("iscsiInitiatorNetworkId")&&null!==e.iscsiInitiatorNetworkId&&void 0!==e.iscsiInitiatorNetworkId&&a.setIscsiInitiatorNetworkId(dr.constructFromObject(e.iscsiInitiatorNetworkId)),e.hasOwnProperty("clientSecret")&&null!==e.clientSecret&&void 0!==e.clientSecret&&a.setClientSecret(e.clientSecret),e.hasOwnProperty("enabledAuthentications")&&null!==e.enabledAuthentications&&void 0!==e.enabledAuthentications&&a.setEnabledAuthentications(Cr.constructFromObject(e.enabledAuthentications)),e.hasOwnProperty("attachedTargets")&&null!==e.attachedTargets&&void 0!==e.attachedTargets){for(i=[],n=e.attachedTargets,o=0;o<n.length;o++)r=Br.constructFromObject(n[o],void 0),i.push(r);a.setAttachedTargets(i)}if(e.hasOwnProperty("numVirtualTargets")&&null!==e.numVirtualTargets&&void 0!==e.numVirtualTargets&&a.setNumVirtualTargets(e.numVirtualTargets),e.hasOwnProperty("clusterReference")&&null!==e.clusterReference&&void 0!==e.clusterReference&&a.setClusterReference(e.clusterReference),e.hasOwnProperty("attachmentSite")&&null!==e.attachmentSite&&void 0!==e.attachmentSite&&a.setAttachmentSite(Vr.constructFromObject(e.attachmentSite)),!s)for(var u in a.$unknownFields=Kr({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&zr(n.prototype,r),o&&zr(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ar);function to(e){return to="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},to(e)}function no(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ro(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?no(Object(n),!0).forEach(function(t){oo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):no(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oo(e,t,n){return(t=ao(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function io(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ao(r.key),r)}}function ao(e){var t=function(e){if("object"!=to(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=to(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==to(t)?t:t+""}eo.prototype.iscsiInitiatorName=void 0,eo.prototype.iscsiInitiatorNetworkId=void 0,eo.prototype.clientSecret=void 0,eo.prototype.enabledAuthentications=void 0,eo.prototype.attachedTargets=void 0,eo.prototype.numVirtualTargets=void 0,eo.prototype.clusterReference=void 0,eo.prototype.attachmentSite=void 0,Ar.prototype.extId=void 0,Ar.prototype.links=void 0,wr.prototype.tenantId=void 0;var so=new WeakSet,uo=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,so),this.$objectType="volumes.v4.config.Cluster",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getClusterName",value:function(){return this.clusterName}},{key:"setClusterName",value:function(e){this.clusterName=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return!1===e?ro(ro(ro({},void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getClusterName()&&null!==this.getClusterName()?{clusterName:this.getClusterName()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new x("clusterExtId","undefined or null");if(!A.validatePattern(this.clusterExtId,/^[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}$/))return new x("clusterExtId","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}$/")}if("clusterName"===t){if(void 0===this.clusterName||null===this.clusterName)return new x("clusterName","undefined or null");if(!A.validateMaxLength(this.clusterName,75))return new x("clusterName","does not satisfy required maxLength constraint: 75")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("clusterExtId")&&null!==t.clusterExtId&&void 0!==t.clusterExtId&&n.setClusterExtId(t.clusterExtId),t.hasOwnProperty("clusterName")&&null!==t.clusterName&&void 0!==t.clusterName&&n.setClusterName(t.clusterName),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ro({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&io(t.prototype,n),r&&io(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function lo(e){return lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lo(e)}function co(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fo(e,t,n){return(t=yo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function po(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yo(r.key),r)}}function yo(e){var t=function(e){if("object"!=lo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=lo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==lo(t)?t:t+""}function ho(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ho=function(){return!!e})()}function vo(e){return vo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vo(e)}function bo(e,t){return bo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bo(e,t)}uo.prototype.clusterExtId=void 0,uo.prototype.clusterName=void 0,uo.prototype.$reserved=void 0,uo.prototype.$objectType=void 0,uo.prototype.$unknownFields=void 0;var mo=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=vo(t),function(e,t){if(t&&("object"==lo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ho()?Reflect.construct(t,n||[],vo(e).constructor):t.apply(e,n))}(this,t)).$objectType="volumes.v4.config.ClusterProjection",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bo(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return new x(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,uo.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?co(Object(n),!0).forEach(function(t){fo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):co(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&po(n.prototype,r),o&&po(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(uo);function go(e){return go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},go(e)}function wo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Oo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wo(Object(n),!0).forEach(function(t){jo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jo(e,t,n){return(t=ko(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ko(r.key),r)}}function ko(e){var t=function(e){if("object"!=go(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=go(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==go(t)?t:t+""}function Po(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Po=function(){return!!e})()}function To(e){return To=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},To(e)}function So(e,t){return So=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},So(e,t)}var Fo=new WeakSet,Eo=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=To(t),function(e,t){if(t&&("object"==go(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Po()?Reflect.construct(t,n||[],To(e).constructor):t.apply(e,n))}(this,t),Fo),e.$objectType="volumes.v4.config.IscsiClientProjection",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&So(e,t)}(t,e),n=t,r=[{key:"getClusterProjection",value:function(){return this.clusterProjection}},{key:"setClusterProjection",value:function(e){this.clusterProjection=e}},{key:"toJson",value:function(e){return Oo(!1===e?Oo(Oo(Oo(Oo(Oo(Oo(Oo(Oo(Oo(Oo(Oo(Oo({},void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{}),void 0!==this.getIscsiInitiatorName()&&null!==this.getIscsiInitiatorName()?{iscsiInitiatorName:this.getIscsiInitiatorName()}:{}),void 0!==this.getIscsiInitiatorNetworkId()&&null!==this.getIscsiInitiatorNetworkId()?{iscsiInitiatorNetworkId:this.getIscsiInitiatorNetworkId().toJson(!1)}:{}),void 0!==this.getClientSecret()&&null!==this.getClientSecret()?{clientSecret:this.getClientSecret()}:{}),void 0!==this.getEnabledAuthentications()&&null!==this.getEnabledAuthentications()?{enabledAuthentications:this.getEnabledAuthentications()}:{}),void 0!==this.getAttachedTargets()&&null!==this.getAttachedTargets()?{attachedTargets:this.getAttachedTargets().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getNumVirtualTargets()&&null!==this.getNumVirtualTargets()?{numVirtualTargets:this.getNumVirtualTargets()}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{}),void 0!==this.getAttachmentSite()&&null!==this.getAttachmentSite()?{attachmentSite:this.getAttachmentSite()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Oo(Oo(Oo(Oo(Oo(Oo(Oo({},void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{}),void 0!==this.getIscsiInitiatorName()&&null!==this.getIscsiInitiatorName()?{iscsiInitiatorName:this.getIscsiInitiatorName()}:{}),void 0!==this.getIscsiInitiatorNetworkId()&&null!==this.getIscsiInitiatorNetworkId()?{iscsiInitiatorNetworkId:this.getIscsiInitiatorNetworkId().toJson(!1)}:{}),void 0!==this.getClientSecret()&&null!==this.getClientSecret()?{clientSecret:this.getClientSecret()}:{}),void 0!==this.getEnabledAuthentications()&&null!==this.getEnabledAuthentications()?{enabledAuthentications:this.getEnabledAuthentications()}:{}),void 0!==this.getNumVirtualTargets()&&null!==this.getNumVirtualTargets()?{numVirtualTargets:this.getNumVirtualTargets()}:{}),void 0!==this.getAttachmentSite()&&null!==this.getAttachmentSite()?{attachmentSite:this.getAttachmentSite()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"clusterProjection"!==t||void 0!==this.clusterProjection&&null!==this.clusterProjection?new x(t,"no such property exists"):new x("clusterProjection","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,eo.constructFromObject(e,n,!0),e.hasOwnProperty("clusterProjection")&&null!==e.clusterProjection&&void 0!==e.clusterProjection&&n.setClusterProjection(mo.constructFromObject(e.clusterProjection)),!r))for(var o in n.$unknownFields=Oo({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&$o(n.prototype,r),o&&$o(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(eo);function Io(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ao(e){return Ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ao(e)}function Do(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Co(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Do(Object(n),!0).forEach(function(t){Ro(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Do(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ro(e,t,n){return(t=No(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,No(r.key),r)}}function No(e){var t=function(e){if("object"!=Ao(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ao(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ao(t)?t:t+""}function _o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_o=function(){return!!e})()}function Uo(e){return Uo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Uo(e)}function Jo(e,t){return Jo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jo(e,t)}function Mo(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")}Eo.prototype.clusterProjection=void 0,eo.prototype.iscsiInitiatorName=void 0,eo.prototype.iscsiInitiatorNetworkId=void 0,eo.prototype.clientSecret=void 0,eo.prototype.enabledAuthentications=void 0,eo.prototype.attachedTargets=void 0,eo.prototype.numVirtualTargets=void 0,eo.prototype.clusterReference=void 0,eo.prototype.attachmentSite=void 0,Ar.prototype.extId=void 0,Ar.prototype.links=void 0,wr.prototype.tenantId=void 0;var Bo=new WeakSet,Lo=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Uo(t),function(e,t){if(t&&("object"==Ao(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_o()?Reflect.construct(t,n||[],Uo(e).constructor):t.apply(e,n))}(this,t),Bo),e.$objectType="volumes.v4.config.ListIscsiClientsApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jo(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Co(Co(Co({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Mo(Bo,this,Vo).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):Mo(Bo,this,Vo).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Ao(n[0]),o=0;o<n.length;o++)switch(a){case"volumes.v4.config.IscsiClient":r=eo.constructFromObject(n[o],void 0),i.push(r);break;case"volumes.v4.config.IscsiClientProjection":r=Eo.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+a+" in data"}s.setData(i)}else{if("volumes.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ao(e.data)))throw"Unknown datatype "+a+" in data";s.setData(gn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var c in s.$unknownFields=Co({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&xo(n.prototype,r),o&&xo(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Vo(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Io(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Io(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Ao(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function Wo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Go(e){return Go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Go(e)}function Ko(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ko(Object(n),!0).forEach(function(t){zo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ko(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zo(e,t,n){return(t=Yo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ho(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yo(r.key),r)}}function Yo(e){var t=function(e){if("object"!=Go(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Go(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Go(t)?t:t+""}function Xo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Xo=function(){return!!e})()}function Zo(e){return Zo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Zo(e)}function Qo(e,t){return Qo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qo(e,t)}function ei(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")}Lo.prototype.metadata=void 0,Lo.prototype.data=void 0,Lo.prototype.$reserved=void 0,Lo.prototype.$objectType=void 0,Lo.prototype.$unknownFields=void 0;var ti=new WeakSet,ni=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Zo(t),function(e,t){if(t&&("object"==Go(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Xo()?Reflect.construct(t,n||[],Zo(e).constructor):t.apply(e,n))}(this,t),ti),e.$objectType="volumes.v4.config.GetIscsiClientApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qo(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return qo(qo(qo({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):ei(ti,this,ri).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):ei(ti,this,ri).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Go(e.data)){case"volumes.v4.config.IscsiClient":r.setData(eo.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":r.setData(gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=qo({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Ho(n.prototype,r),o&&Ho(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function ri(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Wo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wo(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Go(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function oi(e){return oi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oi(e)}function ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ii(Object(n),!0).forEach(function(t){si(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ii(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function si(e,t,n){return(t=li(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ui(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,li(r.key),r)}}function li(e){var t=function(e){if("object"!=oi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=oi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oi(t)?t:t+""}function ci(e,t){return e.get(fi(e,t))}function fi(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")}ni.prototype.metadata=void 0,ni.prototype.data=void 0,ni.prototype.$reserved=void 0,ni.prototype.$objectType=void 0,ni.prototype.$unknownFields=void 0;var di=new WeakMap,pi=function(){return e=function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,di,void 0),this.apiClient=t||lt.instance,n=di,r=new Set,n.set(fi(n,this),r),ci(di,this).add("authorization"),ci(di,this).add("cookie"),ci(di,this).add("host"),ci(di,this).add("user-agent")},t=[{key:"getIscsiClientById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getIscsiClientById");var r={extId:e},o={};Object.keys(n).forEach(function(e){ci(di,t).has(e.toLowerCase())||(o[e]=n[e])});var i=ai({},o),a=ni;return this.apiClient.callApi("/api/volumes/v4.1/config/iscsi-clients/{extId}","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"listIscsiClients",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=ai(ai(ai(ai(ai(ai({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{}),e.hasOwnProperty("$expand")?{$expand:e.$expand}:{}),e.hasOwnProperty("$select")?{$select:e.$select}:{}),o={};Object.keys(n).forEach(function(e){ci(di,t).has(e.toLowerCase())||(o[e]=n[e])});var i=ai({},o),a=Lo;return this.apiClient.callApi("/api/volumes/v4.1/config/iscsi-clients","GET",{},r,i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"updateIscsiClientById",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof eo&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateIscsiClientById");if(null==n)throw new Error("Invalid body when calling updateIscsiClientById");var i={extId:e},a={};Object.keys(o).forEach(function(e){ci(di,r).has(e.toLowerCase())||(a[e]=o[e])});var s=ai({},a);lt.addEtagReferenceToHeader(t,s);var u=Cn;return this.apiClient.callApi("/api/volumes/v4.1/config/iscsi-clients/{extId}","PUT",i,{},s,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&ui(e.prototype,t),n&&ui(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function yi(e){return yi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yi(e)}function hi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hi(Object(n),!0).forEach(function(t){bi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bi(e,t,n){return(t=gi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gi(r.key),r)}}function gi(e){var t=function(e){if("object"!=yi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yi(t)?t:t+""}function wi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(wi=function(){return!!e})()}function Oi(e){return Oi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Oi(e)}function ji(e,t){return ji=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ji(e,t)}var $i=new WeakSet,ki=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Oi(t),function(e,t){if(t&&("object"==yi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,wi()?Reflect.construct(t,n||[],Oi(e).constructor):t.apply(e,n))}(this,t),$i),e.$objectType="volumes.v4.config.NvmfClient",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ji(e,t)}(t,e),n=t,r=[{key:"getNvmfInitiatorName",value:function(){return this.nvmfInitiatorName}},{key:"setNvmfInitiatorName",value:function(e){this.nvmfInitiatorName=e}},{key:"getAttachedTargets",value:function(){return this.attachedTargets}},{key:"setAttachedTargets",value:function(e){this.attachedTargets=e}},{key:"getClusterReference",value:function(){return this.clusterReference}},{key:"setClusterReference",value:function(e){this.clusterReference=e}},{key:"toJson",value:function(e){return vi(!1===e?vi(vi(vi(vi(vi(vi({},void 0!==this.getNvmfInitiatorName()&&null!==this.getNvmfInitiatorName()?{nvmfInitiatorName:this.getNvmfInitiatorName()}:{}),void 0!==this.getAttachedTargets()&&null!==this.getAttachedTargets()?{attachedTargets:this.getAttachedTargets()}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):vi({},void 0!==this.getNvmfInitiatorName()&&null!==this.getNvmfInitiatorName()?{nvmfInitiatorName:this.getNvmfInitiatorName()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("nvmfInitiatorName"===t){if(void 0===this.nvmfInitiatorName||null===this.nvmfInitiatorName)return new x("nvmfInitiatorName","undefined or null");if(!A.validateMaxLength(this.nvmfInitiatorName,68))return new x("nvmfInitiatorName","does not satisfy required maxLength constraint: 68")}if("attachedTargets"===t){if(void 0===this.attachedTargets||null===this.attachedTargets)return new x("attachedTargets","undefined or null");if(!A.validateMaxItems(this.attachedTargets,20))return new x("attachedTargets","does not satisfy required maxItems constraint: 20")}if("clusterReference"===t){if(void 0===this.clusterReference||null===this.clusterReference)return new x("clusterReference","undefined or null");if(!A.validatePattern(this.clusterReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new x("clusterReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return new x(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(i=i||new t,Ar.constructFromObject(e,i,!0),e.hasOwnProperty("nvmfInitiatorName")&&null!==e.nvmfInitiatorName&&void 0!==e.nvmfInitiatorName&&i.setNvmfInitiatorName(e.nvmfInitiatorName),e.hasOwnProperty("attachedTargets")&&null!==e.attachedTargets&&void 0!==e.attachedTargets){for(o=[],n=e.attachedTargets,r=0;r<n.length;r++)o.push(n[r]);i.setAttachedTargets(o)}if(e.hasOwnProperty("clusterReference")&&null!==e.clusterReference&&void 0!==e.clusterReference&&i.setClusterReference(e.clusterReference),!a)for(var s in i.$unknownFields=vi({},e.$unknownFields),e)Object.keys(i).includes(s)||Object.keys(i).includes(this.snakeToCamel(s))||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(i.$unknownFields[s]=e[s])}return i}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&mi(n.prototype,r),o&&mi(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ar);function Pi(e){return Pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pi(e)}function Ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Si(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ti(Object(n),!0).forEach(function(t){Fi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ti(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fi(e,t,n){return(t=Ii(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ei(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ii(r.key),r)}}function Ii(e){var t=function(e){if("object"!=Pi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Pi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pi(t)?t:t+""}function Ai(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ai=function(){return!!e})()}function Di(e){return Di=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Di(e)}function Ci(e,t){return Ci=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ci(e,t)}ki.prototype.nvmfInitiatorName=void 0,ki.prototype.attachedTargets=void 0,ki.prototype.clusterReference=void 0,Ar.prototype.extId=void 0,Ar.prototype.links=void 0,wr.prototype.tenantId=void 0;var Ri=new WeakSet,xi=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Di(t),function(e,t){if(t&&("object"==Pi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ai()?Reflect.construct(t,n||[],Di(e).constructor):t.apply(e,n))}(this,t),Ri),e.$objectType="volumes.v4.config.NvmfClientProjection",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ci(e,t)}(t,e),n=t,r=[{key:"getClusterProjection",value:function(){return this.clusterProjection}},{key:"setClusterProjection",value:function(e){this.clusterProjection=e}},{key:"toJson",value:function(e){return Si(!1===e?Si(Si(Si(Si(Si(Si(Si({},void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{}),void 0!==this.getNvmfInitiatorName()&&null!==this.getNvmfInitiatorName()?{nvmfInitiatorName:this.getNvmfInitiatorName()}:{}),void 0!==this.getAttachedTargets()&&null!==this.getAttachedTargets()?{attachedTargets:this.getAttachedTargets()}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Si(Si({},void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{}),void 0!==this.getNvmfInitiatorName()&&null!==this.getNvmfInitiatorName()?{nvmfInitiatorName:this.getNvmfInitiatorName()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"clusterProjection"!==t||void 0!==this.clusterProjection&&null!==this.clusterProjection?new x(t,"no such property exists"):new x("clusterProjection","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,ki.constructFromObject(e,n,!0),e.hasOwnProperty("clusterProjection")&&null!==e.clusterProjection&&void 0!==e.clusterProjection&&n.setClusterProjection(mo.constructFromObject(e.clusterProjection)),!r))for(var o in n.$unknownFields=Si({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Ei(n.prototype,r),o&&Ei(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(ki);function Ni(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _i(e){return _i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_i(e)}function Ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ji(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ui(Object(n),!0).forEach(function(t){Mi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ui(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mi(e,t,n){return(t=Li(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Li(r.key),r)}}function Li(e){var t=function(e){if("object"!=_i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_i(t)?t:t+""}function Vi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Vi=function(){return!!e})()}function Wi(e){return Wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wi(e)}function Gi(e,t){return Gi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gi(e,t)}function Ki(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")}xi.prototype.clusterProjection=void 0,ki.prototype.nvmfInitiatorName=void 0,ki.prototype.attachedTargets=void 0,ki.prototype.clusterReference=void 0,Ar.prototype.extId=void 0,Ar.prototype.links=void 0,wr.prototype.tenantId=void 0;var qi=new WeakSet,zi=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Wi(t),function(e,t){if(t&&("object"==_i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Vi()?Reflect.construct(t,n||[],Wi(e).constructor):t.apply(e,n))}(this,t),qi),e.$objectType="volumes.v4.config.ListNvmfClientsApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gi(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ji(Ji(Ji({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Ki(qi,this,Hi).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):Ki(qi,this,Hi).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:_i(n[0]),o=0;o<n.length;o++)switch(a){case"volumes.v4.config.NvmfClient":r=ki.constructFromObject(n[o],void 0),i.push(r);break;case"volumes.v4.config.NvmfClientProjection":r=xi.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+a+" in data"}s.setData(i)}else{if("volumes.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:_i(e.data)))throw"Unknown datatype "+a+" in data";s.setData(gn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var c in s.$unknownFields=Ji({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Bi(n.prototype,r),o&&Bi(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Hi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ni(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ni(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===_i(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function Yi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Xi(e){return Xi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xi(e)}function Zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zi(Object(n),!0).forEach(function(t){ea(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ea(e,t,n){return(t=na(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ta(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,na(r.key),r)}}function na(e){var t=function(e){if("object"!=Xi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xi(t)?t:t+""}function ra(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ra=function(){return!!e})()}function oa(e){return oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oa(e)}function ia(e,t){return ia=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ia(e,t)}function aa(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")}zi.prototype.metadata=void 0,zi.prototype.data=void 0,zi.prototype.$reserved=void 0,zi.prototype.$objectType=void 0,zi.prototype.$unknownFields=void 0;var sa=new WeakSet,ua=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=oa(t),function(e,t){if(t&&("object"==Xi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ra()?Reflect.construct(t,n||[],oa(e).constructor):t.apply(e,n))}(this,t),sa),e.$objectType="volumes.v4.config.GetNvmfClientApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ia(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Qi(Qi(Qi({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):aa(sa,this,la).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):aa(sa,this,la).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Xi(e.data)){case"volumes.v4.config.NvmfClient":r.setData(ki.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":r.setData(gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Qi({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&ta(n.prototype,r),o&&ta(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function la(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Yi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yi(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Xi(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function ca(e){return ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ca(e)}function fa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function da(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fa(Object(n),!0).forEach(function(t){pa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pa(e,t,n){return(t=ha(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ya(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ha(r.key),r)}}function ha(e){var t=function(e){if("object"!=ca(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ca(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ca(t)?t:t+""}function va(e,t){return e.get(ba(e,t))}function ba(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")}ua.prototype.metadata=void 0,ua.prototype.data=void 0,ua.prototype.$reserved=void 0,ua.prototype.$objectType=void 0,ua.prototype.$unknownFields=void 0;var ma=new WeakMap,ga=function(){return e=function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,ma,void 0),this.apiClient=t||lt.instance,n=ma,r=new Set,n.set(ba(n,this),r),va(ma,this).add("authorization"),va(ma,this).add("cookie"),va(ma,this).add("host"),va(ma,this).add("user-agent")},t=[{key:"getNvmfClientById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getNvmfClientById");var r={extId:e},o={};Object.keys(n).forEach(function(e){va(ma,t).has(e.toLowerCase())||(o[e]=n[e])});var i=da({},o),a=ua;return this.apiClient.callApi("/api/volumes/v4.1/config/nvmf-clients/{extId}","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"listNvmfClients",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=da(da(da(da(da(da({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{}),e.hasOwnProperty("$expand")?{$expand:e.$expand}:{}),e.hasOwnProperty("$select")?{$select:e.$select}:{}),o={};Object.keys(n).forEach(function(e){va(ma,t).has(e.toLowerCase())||(o[e]=n[e])});var i=da({},o),a=zi;return this.apiClient.callApi("/api/volumes/v4.1/config/nvmf-clients","GET",{},r,i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&ya(e.prototype,t),n&&ya(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),wa={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",NONE:"NONE",DIRECT:"DIRECT",EXTERNAL:"EXTERNAL",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(wa).find(function(t){return wa[t]===e});return null==t?wa.$UNKNOWN:wa[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case wa.$UNKNOWN:case wa.$REDACTED:case wa.NONE:case wa.DIRECT:case wa.EXTERNAL:return;default:throw new Error("Invalid : must be AttachmentType.{ $UNKNOWN|$REDACTED|NONE|DIRECT|EXTERNAL }")}}};Object.freeze(wa);const Oa=wa;function ja(e){return ja="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ja(e)}function $a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ka(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$a(Object(n),!0).forEach(function(t){Pa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pa(e,t,n){return(t=Sa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ta(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sa(r.key),r)}}function Sa(e){var t=function(e){if("object"!=ja(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ja(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ja(t)?t:t+""}var Fa=new WeakSet,Ea=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Fa),this.$objectType="volumes.v4.config.IscsiFeatures",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getTargetSecret",value:function(){return this.targetSecret}},{key:"setTargetSecret",value:function(e){this.targetSecret=e}},{key:"getEnabledAuthentications",value:function(){return this.enabledAuthentications}},{key:"setEnabledAuthentications",value:function(e){this.enabledAuthentications=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ka(ka(ka({},void 0!==this.getTargetSecret()&&null!==this.getTargetSecret()?{targetSecret:this.getTargetSecret()}:{}),void 0!==this.getEnabledAuthentications()&&null!==this.getEnabledAuthentications()?{enabledAuthentications:this.getEnabledAuthentications()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"targetSecret"!==t||void 0!==this.targetSecret&&null!==this.targetSecret?"enabledAuthentications"!==t||void 0!==this.enabledAuthentications&&null!==this.enabledAuthentications?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("enabledAuthentications","undefined or null"):new x("targetSecret","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("targetSecret")&&null!==t.targetSecret&&void 0!==t.targetSecret&&n.setTargetSecret(t.targetSecret),t.hasOwnProperty("enabledAuthentications")&&null!==t.enabledAuthentications&&void 0!==t.enabledAuthentications&&n.setEnabledAuthentications(Cr.constructFromObject(t.enabledAuthentications)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ka({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Ta(t.prototype,n),r&&Ta(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Ea.prototype.targetSecret=void 0,Ea.prototype.enabledAuthentications=void 0,Ea.prototype.$reserved=void 0,Ea.prototype.$objectType=void 0,Ea.prototype.$unknownFields=void 0;var Ia={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",NOT_ASSIGNED:"NOT_ASSIGNED",ISCSI:"ISCSI",NVMF:"NVMF",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Ia).find(function(t){return Ia[t]===e});return null==t?Ia.$UNKNOWN:Ia[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ia.$UNKNOWN:case Ia.$REDACTED:case Ia.NOT_ASSIGNED:case Ia.ISCSI:case Ia.NVMF:return;default:throw new Error("Invalid : must be Protocol.{ $UNKNOWN|$REDACTED|NOT_ASSIGNED|ISCSI|NVMF }")}}};Object.freeze(Ia);const Aa=Ia;var Da={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SHARED:"SHARED",NOT_SHARED:"NOT_SHARED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Da).find(function(t){return Da[t]===e});return null==t?Da.$UNKNOWN:Da[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Da.$UNKNOWN:case Da.$REDACTED:case Da.SHARED:case Da.NOT_SHARED:return;default:throw new Error("Invalid : must be SharingStatus.{ $UNKNOWN|$REDACTED|SHARED|NOT_SHARED }")}}};Object.freeze(Da);const Ca=Da;function Ra(e){return Ra="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ra(e)}function xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Na(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xa(Object(n),!0).forEach(function(t){_a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _a(e,t,n){return(t=Ja(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ua(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ja(r.key),r)}}function Ja(e){var t=function(e){if("object"!=Ra(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ra(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ra(t)?t:t+""}var Ma=new WeakSet,Ba=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Ma),this.$objectType="volumes.v4.config.FlashMode",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getIsEnabled",value:function(){return this.isEnabled}},{key:"setIsEnabled",value:function(e){this.isEnabled=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Na(Na({},void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"isEnabled"!==t||void 0!==this.isEnabled&&null!==this.isEnabled?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("isEnabled","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("isEnabled")&&null!==t.isEnabled&&void 0!==t.isEnabled&&n.setIsEnabled(t.isEnabled),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Na({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Ua(t.prototype,n),r&&Ua(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function La(e){return La="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},La(e)}function Va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Va(Object(n),!0).forEach(function(t){Ga(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Va(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ga(e,t,n){return(t=qa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ka(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qa(r.key),r)}}function qa(e){var t=function(e){if("object"!=La(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=La(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==La(t)?t:t+""}Ba.prototype.isEnabled=!1,Ba.prototype.$reserved=void 0,Ba.prototype.$objectType=void 0,Ba.prototype.$unknownFields=void 0;var za=new WeakSet,Ha=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,za),this.$objectType="volumes.v4.config.StorageFeatures",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getFlashMode",value:function(){return this.flashMode}},{key:"setFlashMode",value:function(e){this.flashMode=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Wa(Wa({},void 0!==this.getFlashMode()&&null!==this.getFlashMode()?{flashMode:this.getFlashMode().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"flashMode"!==t||void 0!==this.flashMode&&null!==this.flashMode?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("flashMode","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("flashMode")&&null!==t.flashMode&&void 0!==t.flashMode&&n.setFlashMode(Ba.constructFromObject(t.flashMode)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Wa({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Ka(t.prototype,n),r&&Ka(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Ha.prototype.flashMode=void 0,Ha.prototype.$reserved=void 0,Ha.prototype.$objectType=void 0,Ha.prototype.$unknownFields=void 0;var Ya={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",USER:"USER",INTERNAL:"INTERNAL",TEMPORARY:"TEMPORARY",BACKUP_TARGET:"BACKUP_TARGET",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Ya).find(function(t){return Ya[t]===e});return null==t?Ya.$UNKNOWN:Ya[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ya.$UNKNOWN:case Ya.$REDACTED:case Ya.USER:case Ya.INTERNAL:case Ya.TEMPORARY:case Ya.BACKUP_TARGET:return;default:throw new Error("Invalid : must be UsageType.{ $UNKNOWN|$REDACTED|USER|INTERNAL|TEMPORARY|BACKUP_TARGET }")}}};Object.freeze(Ya);const Xa=Ya;function Za(e){return Za="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Za(e)}function Qa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qa(Object(n),!0).forEach(function(t){ts(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ts(e,t,n){return(t=rs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ns(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rs(r.key),r)}}function rs(e){var t=function(e){if("object"!=Za(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Za(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Za(t)?t:t+""}var os=new WeakSet,is=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,os),this.$objectType="volumes.v4.config.IscsiClientAttachment",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getClusterReference",value:function(){return this.clusterReference}},{key:"setClusterReference",value:function(e){this.clusterReference=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return es(!1===e?es(es({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{}):es({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new x("extId","undefined or null");if(!A.validatePattern(this.extId,/^[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}$/))return new x("extId","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}$/")}if("clusterReference"===t){if(void 0===this.clusterReference||null===this.clusterReference)return new x("clusterReference","undefined or null");if(!A.validatePattern(this.clusterReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new x("clusterReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("clusterReference")&&null!==t.clusterReference&&void 0!==t.clusterReference&&n.setClusterReference(t.clusterReference),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=es({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&ns(t.prototype,n),r&&ns(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function as(e){return as="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},as(e)}function ss(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function us(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ss(Object(n),!0).forEach(function(t){ls(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ss(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ls(e,t,n){return(t=fs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fs(r.key),r)}}function fs(e){var t=function(e){if("object"!=as(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=as(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==as(t)?t:t+""}function ds(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ds=function(){return!!e})()}function ps(e){return ps=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ps(e)}function ys(e,t){return ys=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ys(e,t)}is.prototype.extId=void 0,is.prototype.clusterReference=void 0,is.prototype.$reserved=void 0,is.prototype.$objectType=void 0,is.prototype.$unknownFields=void 0;var hs=new WeakSet,vs=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=ps(t),function(e,t){if(t&&("object"==as(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ds()?Reflect.construct(t,n||[],ps(e).constructor):t.apply(e,n))}(this,t),hs),e.$objectType="volumes.v4.config.NvmfClientAttachment",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ys(e,t)}(t,e),n=t,r=[{key:"getClusterReference",value:function(){return this.clusterReference}},{key:"setClusterReference",value:function(e){this.clusterReference=e}},{key:"toJson",value:function(e){return!1===e?us(us(us(us(us({},void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("clusterReference"===t){if(void 0===this.clusterReference||null===this.clusterReference)return new x("clusterReference","undefined or null");if(!A.validatePattern(this.clusterReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new x("clusterReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return new x(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Ar.constructFromObject(e,n,!0),e.hasOwnProperty("clusterReference")&&null!==e.clusterReference&&void 0!==e.clusterReference&&n.setClusterReference(e.clusterReference),!r))for(var o in n.$unknownFields=us({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&cs(n.prototype,r),o&&cs(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ar);function bs(e){return bs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bs(e)}function ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(n),!0).forEach(function(t){ws(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ws(e,t,n){return(t=js(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Os(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,js(r.key),r)}}function js(e){var t=function(e){if("object"!=bs(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bs(t)?t:t+""}vs.prototype.clusterReference=void 0,Ar.prototype.extId=void 0,Ar.prototype.links=void 0,wr.prototype.tenantId=void 0;var $s=new WeakSet,ks=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,$s),this.extId=t,this.$objectType="volumes.v4.config.VmAttachment",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getIndex",value:function(){return this.index}},{key:"setIndex",value:function(e){this.index=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return gs(gs(gs({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getIndex()&&null!==this.getIndex()?{index:this.getIndex()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=["extId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new x("extId","undefined or null");if(!A.validatePattern(this.extId,/^[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}$/))return new x("extId","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}$/")}return"index"!==t||void 0!==this.index&&null!==this.index?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("index","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("index")&&null!==t.index&&void 0!==t.index&&n.setIndex(t.index),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=gs({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Os(t.prototype,n),r&&Os(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ps(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ts(e){return Ts="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ts(e)}function Ss(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ss(Object(n),!0).forEach(function(t){Es(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ss(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Es(e,t,n){return(t=As(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Is(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,As(r.key),r)}}function As(e){var t=function(e){if("object"!=Ts(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ts(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ts(t)?t:t+""}function Ds(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")}ks.prototype.extId=void 0,ks.prototype.index=void 0,ks.prototype.$reserved=void 0,ks.prototype.$objectType=void 0,ks.prototype.$unknownFields=void 0;var Cs=new WeakSet,Rs=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Cs),this.$objectType="volumes.v4.config.VGAttachment",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getAttachment",value:function(){return this.attachment}},{key:"setAttachment",value:function(e){this.attachment=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Fs(Fs({},!1===e?void 0!==this.getAttachment()&&null!==this.getAttachment()?{attachment:void 0!==this.getAttachment().toJson?this.getAttachment().toJson(!1):Array.isArray(this.getAttachment())?this.getAttachment().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Ds(Cs,this,xs).call(this,this.getAttachment(),!1)}:{}:void 0!==this.getAttachment()&&null!==this.getAttachment()?{attachment:void 0!==this.getAttachment().toJson?this.getAttachment().toJson():Array.isArray(this.getAttachment())?this.getAttachment().map(function(e){return void 0!==e.toJson?e.toJson():e}):Ds(Cs,this,xs).call(this,this.getAttachment())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"attachment"!==t||void 0!==this.attachment&&null!==this.attachment?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("attachment","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("attachment")&&null!==t.attachment&&void 0!==t.attachment)switch(n=t.attachment.hasOwnProperty("$objectType")?t.attachment.$objectType:Ts(t.attachment)){case"volumes.v4.config.VmAttachment":r.setAttachment(ks.constructFromObject(t.attachment,void 0));break;case"volumes.v4.config.IscsiClientAttachment":r.setAttachment(is.constructFromObject(t.attachment,void 0));break;case"volumes.v4.config.NvmfClientAttachment":r.setAttachment(vs.constructFromObject(t.attachment,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!o)for(var i in r.$unknownFields=Fs({},t.$unknownFields),t)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=t[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Is(t.prototype,n),r&&Is(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function xs(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ps(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ps(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Ts(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}Rs.prototype.attachment=void 0,Rs.prototype.$reserved=void 0,Rs.prototype.$objectType=void 0,Rs.prototype.$unknownFields=void 0;var Ns={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CLUSTER:"CLUSTER",VM:"VM",STORAGE_CONTAINER:"STORAGE_CONTAINER",VOLUME_GROUP:"VOLUME_GROUP",TASK:"TASK",IMAGE:"IMAGE",CATEGORY:"CATEGORY",NODE:"NODE",VPC:"VPC",SUBNET:"SUBNET",ROUTING_POLICY:"ROUTING_POLICY",FLOATING_IP:"FLOATING_IP",VPN_GATEWAY:"VPN_GATEWAY",VPN_CONNECTION:"VPN_CONNECTION",DIRECT_CONNECT:"DIRECT_CONNECT",DIRECT_CONNECT_VIF:"DIRECT_CONNECT_VIF",VIRTUAL_NIC:"VIRTUAL_NIC",VIRTUAL_SWITCH:"VIRTUAL_SWITCH",VM_DISK:"VM_DISK",VOLUME_DISK:"VOLUME_DISK",DISK_RECOVERY_POINT:"DISK_RECOVERY_POINT",VTEP_GATEWAY:"VTEP_GATEWAY",RECOVERY_PLAN:"RECOVERY_PLAN",RECOVERY_PLAN_JOB:"RECOVERY_PLAN_JOB",AVAILABILITY_ZONE:"AVAILABILITY_ZONE",VIRTUAL_NETWORK:"VIRTUAL_NETWORK",CONSISTENCY_GROUP:"CONSISTENCY_GROUP",SUBNET_EXTENSION:"SUBNET_EXTENSION",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Ns).find(function(t){return Ns[t]===e});return null==t?Ns.$UNKNOWN:Ns[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ns.$UNKNOWN:case Ns.$REDACTED:case Ns.CLUSTER:case Ns.VM:case Ns.STORAGE_CONTAINER:case Ns.VOLUME_GROUP:case Ns.TASK:case Ns.IMAGE:case Ns.CATEGORY:case Ns.NODE:case Ns.VPC:case Ns.SUBNET:case Ns.ROUTING_POLICY:case Ns.FLOATING_IP:case Ns.VPN_GATEWAY:case Ns.VPN_CONNECTION:case Ns.DIRECT_CONNECT:case Ns.DIRECT_CONNECT_VIF:case Ns.VIRTUAL_NIC:case Ns.VIRTUAL_SWITCH:case Ns.VM_DISK:case Ns.VOLUME_DISK:case Ns.DISK_RECOVERY_POINT:case Ns.VTEP_GATEWAY:case Ns.RECOVERY_PLAN:case Ns.RECOVERY_PLAN_JOB:case Ns.AVAILABILITY_ZONE:case Ns.VIRTUAL_NETWORK:case Ns.CONSISTENCY_GROUP:case Ns.SUBNET_EXTENSION:return;default:throw new Error("Invalid : must be EntityType.{ $UNKNOWN|$REDACTED|CLUSTER|VM|STORAGE_CONTAINER|VOLUME_GROUP|TASK|IMAGE|CATEGORY|NODE|VPC|SUBNET|ROUTING_POLICY|FLOATING_IP|VPN_GATEWAY|VPN_CONNECTION|DIRECT_CONNECT|DIRECT_CONNECT_VIF|VIRTUAL_NIC|VIRTUAL_SWITCH|VM_DISK|VOLUME_DISK|DISK_RECOVERY_POINT|VTEP_GATEWAY|RECOVERY_PLAN|RECOVERY_PLAN_JOB|AVAILABILITY_ZONE|VIRTUAL_NETWORK|CONSISTENCY_GROUP|SUBNET_EXTENSION }")}}};Object.freeze(Ns);const _s=Ns;function Us(e){return Us="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Us(e)}function Js(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ms(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Js(Object(n),!0).forEach(function(t){Bs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Js(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bs(e,t,n){return(t=Vs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ls(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vs(r.key),r)}}function Vs(e){var t=function(e){if("object"!=Us(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Us(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Us(t)?t:t+""}var Ws=new WeakSet,Gs=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Ws),this.$objectType="common.v1.config.EntityReference",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getUris",value:function(){return this.uris}},{key:"setUris",value:function(e){this.uris=e}},{key:"getEntityType",value:function(){return this.entityType}},{key:"setEntityType",value:function(e){this.entityType=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ms(Ms(Ms(Ms(Ms({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getUris()&&null!==this.getUris()?{uris:this.getUris()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new x("extId","undefined or null");if(!A.validatePattern(this.extId,/^[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}$/))return new x("extId","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}$/")}if("name"===t){if(void 0===this.name||null===this.name)return new x("name","undefined or null");if(!A.validateMaxLength(this.name,256))return new x("name","does not satisfy required maxLength constraint: 256")}if("uris"===t){if(void 0===this.uris||null===this.uris)return new x("uris","undefined or null");if(!A.validateMaxItems(this.uris,100))return new x("uris","does not satisfy required maxItems constraint: 100")}return"entityType"!==t||void 0!==this.entityType&&null!==this.entityType?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("entityType","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(i=i||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&i.setExtId(t.extId),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&i.setName(t.name),t.hasOwnProperty("uris")&&null!==t.uris&&void 0!==t.uris){for(o=[],n=t.uris,r=0;r<n.length;r++)o.push(n[r]);i.setUris(o)}if(t.hasOwnProperty("entityType")&&null!==t.entityType&&void 0!==t.entityType&&i.setEntityType(_s.constructFromObject(t.entityType)),t.hasOwnProperty("$reserved")&&(i.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(i.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(i.$unknownFields=t.$unknownFields),!a)for(var s in i.$unknownFields=Ms({},t.$unknownFields),t)Object.keys(i).includes(s)||Object.keys(i).includes(this.snakeToCamel(s))||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(i.$unknownFields[s]=t[s])}return i}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Ls(t.prototype,n),r&&Ls(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ks(e){return Ks="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ks(e)}function qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qs(Object(n),!0).forEach(function(t){Hs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hs(e,t,n){return(t=Xs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ys(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xs(r.key),r)}}function Xs(e){var t=function(e){if("object"!=Ks(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ks(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ks(t)?t:t+""}Gs.prototype.extId=void 0,Gs.prototype.name=void 0,Gs.prototype.uris=void 0,Gs.prototype.entityType=void 0,Gs.prototype.$reserved=void 0,Gs.prototype.$objectType=void 0,Gs.prototype.$unknownFields=void 0;var Zs=new WeakSet,Qs=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Zs),this.$objectType="volumes.v4.config.DiskStorageFeatures",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getFlashMode",value:function(){return this.flashMode}},{key:"setFlashMode",value:function(e){this.flashMode=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return zs(zs({},void 0!==this.getFlashMode()&&null!==this.getFlashMode()?{flashMode:this.getFlashMode().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"flashMode"!==t||void 0!==this.flashMode&&null!==this.flashMode?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("flashMode","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("flashMode")&&null!==t.flashMode&&void 0!==t.flashMode&&n.setFlashMode(Ba.constructFromObject(t.flashMode)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=zs({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Ys(t.prototype,n),r&&Ys(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function eu(e){return eu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eu(e)}function tu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tu(Object(n),!0).forEach(function(t){ru(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ru(e,t,n){return(t=iu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ou(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iu(r.key),r)}}function iu(e){var t=function(e){if("object"!=eu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=eu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==eu(t)?t:t+""}function au(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(au=function(){return!!e})()}function su(e){return su=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},su(e)}function uu(e,t){return uu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uu(e,t)}Qs.prototype.flashMode=void 0,Qs.prototype.$reserved=void 0,Qs.prototype.$objectType=void 0,Qs.prototype.$unknownFields=void 0;var lu=new WeakSet,cu=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=su(t),function(e,t){if(t&&("object"==eu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,au()?Reflect.construct(t,n||[],su(e).constructor):t.apply(e,n))}(this,t),lu),e.$objectType="volumes.v4.config.VolumeDisk",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uu(e,t)}(t,e),n=t,r=[{key:"getIndex",value:function(){return this.index}},{key:"setIndex",value:function(e){this.index=e}},{key:"getDiskSizeBytes",value:function(){return this.diskSizeBytes}},{key:"setDiskSizeBytes",value:function(e){this.diskSizeBytes=e}},{key:"getStorageContainerId",value:function(){return this.storageContainerId}},{key:"setStorageContainerId",value:function(e){this.storageContainerId=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getDiskDataSourceReference",value:function(){return this.diskDataSourceReference}},{key:"setDiskDataSourceReference",value:function(e){this.diskDataSourceReference=e}},{key:"getDiskStorageFeatures",value:function(){return this.diskStorageFeatures}},{key:"setDiskStorageFeatures",value:function(e){this.diskStorageFeatures=e}},{key:"toJson",value:function(e){return nu(!1===e?nu(nu(nu(nu(nu(nu(nu(nu(nu({},void 0!==this.getIndex()&&null!==this.getIndex()?{index:this.getIndex()}:{}),void 0!==this.getDiskSizeBytes()&&null!==this.getDiskSizeBytes()?{diskSizeBytes:this.getDiskSizeBytes()}:{}),void 0!==this.getStorageContainerId()&&null!==this.getStorageContainerId()?{storageContainerId:this.getStorageContainerId()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getDiskDataSourceReference()&&null!==this.getDiskDataSourceReference()?{diskDataSourceReference:this.getDiskDataSourceReference().toJson(!1)}:{}),void 0!==this.getDiskStorageFeatures()&&null!==this.getDiskStorageFeatures()?{diskStorageFeatures:this.getDiskStorageFeatures().toJson(!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):nu(nu(nu(nu(nu({},void 0!==this.getIndex()&&null!==this.getIndex()?{index:this.getIndex()}:{}),void 0!==this.getDiskSizeBytes()&&null!==this.getDiskSizeBytes()?{diskSizeBytes:this.getDiskSizeBytes()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getDiskDataSourceReference()&&null!==this.getDiskDataSourceReference()?{diskDataSourceReference:this.getDiskDataSourceReference().toJson(!1)}:{}),void 0!==this.getDiskStorageFeatures()&&null!==this.getDiskStorageFeatures()?{diskStorageFeatures:this.getDiskStorageFeatures().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("index"===t){if(void 0===this.index||null===this.index)return new x("index","undefined or null");if(!A.validateMaximum(this.index,16383))return new x("index","does not satisfy required maximum constraint: 16383");if(!A.validateMinimum(this.index,0))return new x("index","does not satisfy required minimum constraint: 0")}if("diskSizeBytes"===t){if(void 0===this.diskSizeBytes||null===this.diskSizeBytes)return new x("diskSizeBytes","undefined or null");if(!A.validateMaximum(this.diskSizeBytes,0xc80000000000))return new x("diskSizeBytes","does not satisfy required maximum constraint: 219902325555200");if(!A.validateMinimum(this.diskSizeBytes,524288))return new x("diskSizeBytes","does not satisfy required minimum constraint: 524288")}if("storageContainerId"===t){if(void 0===this.storageContainerId||null===this.storageContainerId)return new x("storageContainerId","undefined or null");if(!A.validatePattern(this.storageContainerId,/^[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}$/))return new x("storageContainerId","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}$/")}if("description"===t){if(void 0===this.description||null===this.description)return new x("description","undefined or null");if(!A.validateMaxLength(this.description,1e3))return new x("description","does not satisfy required maxLength constraint: 1000")}return"diskDataSourceReference"!==t||void 0!==this.diskDataSourceReference&&null!==this.diskDataSourceReference?"diskStorageFeatures"!==t||void 0!==this.diskStorageFeatures&&null!==this.diskStorageFeatures?new x(t,"no such property exists"):new x("diskStorageFeatures","undefined or null"):new x("diskDataSourceReference","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Ar.constructFromObject(e,n,!0),e.hasOwnProperty("index")&&null!==e.index&&void 0!==e.index&&n.setIndex(e.index),e.hasOwnProperty("diskSizeBytes")&&null!==e.diskSizeBytes&&void 0!==e.diskSizeBytes&&n.setDiskSizeBytes(e.diskSizeBytes),e.hasOwnProperty("storageContainerId")&&null!==e.storageContainerId&&void 0!==e.storageContainerId&&n.setStorageContainerId(e.storageContainerId),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&n.setDescription(e.description),e.hasOwnProperty("diskDataSourceReference")&&null!==e.diskDataSourceReference&&void 0!==e.diskDataSourceReference&&n.setDiskDataSourceReference(Gs.constructFromObject(e.diskDataSourceReference)),e.hasOwnProperty("diskStorageFeatures")&&null!==e.diskStorageFeatures&&void 0!==e.diskStorageFeatures&&n.setDiskStorageFeatures(Qs.constructFromObject(e.diskStorageFeatures)),!r))for(var o in n.$unknownFields=nu({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&ou(n.prototype,r),o&&ou(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ar);function fu(e){return fu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fu(e)}function du(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?du(Object(n),!0).forEach(function(t){yu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):du(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yu(e,t,n){return(t=vu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vu(r.key),r)}}function vu(e){var t=function(e){if("object"!=fu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fu(t)?t:t+""}function bu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bu=function(){return!!e})()}function mu(e){return mu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mu(e)}function gu(e,t){return gu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gu(e,t)}cu.prototype.index=void 0,cu.prototype.diskSizeBytes=void 0,cu.prototype.storageContainerId=void 0,cu.prototype.description=void 0,cu.prototype.diskDataSourceReference=void 0,cu.prototype.diskStorageFeatures=void 0,Ar.prototype.extId=void 0,Ar.prototype.links=void 0,wr.prototype.tenantId=void 0;var wu=new WeakSet,Ou=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=mu(t),function(e,t){if(t&&("object"==fu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,bu()?Reflect.construct(t,n||[],mu(e).constructor):t.apply(e,n))}(this,t),wu),e.$objectType="volumes.v4.config.VolumeGroup",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gu(e,t)}(t,e),n=t,r=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getShouldLoadBalanceVmAttachments",value:function(){return this.shouldLoadBalanceVmAttachments}},{key:"setShouldLoadBalanceVmAttachments",value:function(e){this.shouldLoadBalanceVmAttachments=e}},{key:"getSharingStatus",value:function(){return this.sharingStatus}},{key:"setSharingStatus",value:function(e){this.sharingStatus=e}},{key:"getTargetPrefix",value:function(){return this.targetPrefix}},{key:"setTargetPrefix",value:function(e){this.targetPrefix=e}},{key:"getTargetName",value:function(){return this.targetName}},{key:"setTargetName",value:function(e){this.targetName=e}},{key:"getEnabledAuthentications",value:function(){return this.enabledAuthentications}},{key:"setEnabledAuthentications",value:function(e){this.enabledAuthentications=e}},{key:"getIscsiFeatures",value:function(){return this.iscsiFeatures}},{key:"setIscsiFeatures",value:function(e){this.iscsiFeatures=e}},{key:"getCreatedBy",value:function(){return this.createdBy}},{key:"setCreatedBy",value:function(e){this.createdBy=e}},{key:"getClusterReference",value:function(){return this.clusterReference}},{key:"setClusterReference",value:function(e){this.clusterReference=e}},{key:"getStorageFeatures",value:function(){return this.storageFeatures}},{key:"setStorageFeatures",value:function(e){this.storageFeatures=e}},{key:"getUsageType",value:function(){return this.usageType}},{key:"setUsageType",value:function(e){this.usageType=e}},{key:"getAttachmentType",value:function(){return this.attachmentType}},{key:"setAttachmentType",value:function(e){this.attachmentType=e}},{key:"getProtocol",value:function(){return this.protocol}},{key:"setProtocol",value:function(e){this.protocol=e}},{key:"getIsHidden",value:function(){return this.isHidden}},{key:"setIsHidden",value:function(e){this.isHidden=e}},{key:"getDisks",value:function(){return this.disks}},{key:"setDisks",value:function(e){this.disks=e}},{key:"getAttachments",value:function(){return this.attachments}},{key:"setAttachments",value:function(e){this.attachments=e}},{key:"toJson",value:function(e){return pu(!1===e?pu(pu(pu(pu(pu(pu(pu(pu(pu(pu(pu(pu(pu(pu(pu(pu(pu(pu(pu(pu({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getShouldLoadBalanceVmAttachments()&&null!==this.getShouldLoadBalanceVmAttachments()?{shouldLoadBalanceVmAttachments:this.getShouldLoadBalanceVmAttachments()}:{}),void 0!==this.getSharingStatus()&&null!==this.getSharingStatus()?{sharingStatus:this.getSharingStatus()}:{}),void 0!==this.getTargetPrefix()&&null!==this.getTargetPrefix()?{targetPrefix:this.getTargetPrefix()}:{}),void 0!==this.getTargetName()&&null!==this.getTargetName()?{targetName:this.getTargetName()}:{}),void 0!==this.getEnabledAuthentications()&&null!==this.getEnabledAuthentications()?{enabledAuthentications:this.getEnabledAuthentications()}:{}),void 0!==this.getIscsiFeatures()&&null!==this.getIscsiFeatures()?{iscsiFeatures:this.getIscsiFeatures().toJson(!1)}:{}),void 0!==this.getCreatedBy()&&null!==this.getCreatedBy()?{createdBy:this.getCreatedBy()}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{}),void 0!==this.getStorageFeatures()&&null!==this.getStorageFeatures()?{storageFeatures:this.getStorageFeatures().toJson(!1)}:{}),void 0!==this.getUsageType()&&null!==this.getUsageType()?{usageType:this.getUsageType()}:{}),void 0!==this.getAttachmentType()&&null!==this.getAttachmentType()?{attachmentType:this.getAttachmentType()}:{}),void 0!==this.getProtocol()&&null!==this.getProtocol()?{protocol:this.getProtocol()}:{}),void 0!==this.getIsHidden()&&null!==this.getIsHidden()?{isHidden:this.getIsHidden()}:{}),void 0!==this.getDisks()&&null!==this.getDisks()?{disks:this.getDisks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getAttachments()&&null!==this.getAttachments()?{attachments:this.getAttachments().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):pu(pu(pu(pu(pu(pu(pu(pu(pu(pu(pu(pu(pu(pu(pu(pu({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getShouldLoadBalanceVmAttachments()&&null!==this.getShouldLoadBalanceVmAttachments()?{shouldLoadBalanceVmAttachments:this.getShouldLoadBalanceVmAttachments()}:{}),void 0!==this.getSharingStatus()&&null!==this.getSharingStatus()?{sharingStatus:this.getSharingStatus()}:{}),void 0!==this.getTargetPrefix()&&null!==this.getTargetPrefix()?{targetPrefix:this.getTargetPrefix()}:{}),void 0!==this.getTargetName()&&null!==this.getTargetName()?{targetName:this.getTargetName()}:{}),void 0!==this.getEnabledAuthentications()&&null!==this.getEnabledAuthentications()?{enabledAuthentications:this.getEnabledAuthentications()}:{}),void 0!==this.getIscsiFeatures()&&null!==this.getIscsiFeatures()?{iscsiFeatures:this.getIscsiFeatures().toJson(!1)}:{}),void 0!==this.getCreatedBy()&&null!==this.getCreatedBy()?{createdBy:this.getCreatedBy()}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{}),void 0!==this.getStorageFeatures()&&null!==this.getStorageFeatures()?{storageFeatures:this.getStorageFeatures().toJson(!1)}:{}),void 0!==this.getUsageType()&&null!==this.getUsageType()?{usageType:this.getUsageType()}:{}),void 0!==this.getAttachmentType()&&null!==this.getAttachmentType()?{attachmentType:this.getAttachmentType()}:{}),void 0!==this.getProtocol()&&null!==this.getProtocol()?{protocol:this.getProtocol()}:{}),void 0!==this.getIsHidden()&&null!==this.getIsHidden()?{isHidden:this.getIsHidden()}:{}),void 0!==this.getDisks()&&null!==this.getDisks()?{disks:this.getDisks().map(function(e){return e.toJson(!1)})}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new x("name","undefined or null");if(!A.validateMaxLength(this.name,256))return new x("name","does not satisfy required maxLength constraint: 256")}if("description"===t){if(void 0===this.description||null===this.description)return new x("description","undefined or null");if(!A.validateMaxLength(this.description,1e3))return new x("description","does not satisfy required maxLength constraint: 1000")}if("shouldLoadBalanceVmAttachments"===t&&(void 0===this.shouldLoadBalanceVmAttachments||null===this.shouldLoadBalanceVmAttachments))return new x("shouldLoadBalanceVmAttachments","undefined or null");if("sharingStatus"===t&&(void 0===this.sharingStatus||null===this.sharingStatus))return new x("sharingStatus","undefined or null");if("targetPrefix"===t){if(void 0===this.targetPrefix||null===this.targetPrefix)return new x("targetPrefix","undefined or null");if(!A.validateMaxLength(this.targetPrefix,512))return new x("targetPrefix","does not satisfy required maxLength constraint: 512");if(!A.validatePattern(this.targetPrefix,/^[\\da-zA-Z:\\.\\-]+$/))return new x("targetPrefix","does not satisfy required pattern: /^[\\da-zA-Z:\\.\\-]+$/")}if("targetName"===t){if(void 0===this.targetName||null===this.targetName)return new x("targetName","undefined or null");if(!A.validateMaxLength(this.targetName,512))return new x("targetName","does not satisfy required maxLength constraint: 512");if(!A.validateMinLength(this.targetName,12))return new x("targetName","does not satisfy required minLength constraint: 12")}if("enabledAuthentications"===t&&(void 0===this.enabledAuthentications||null===this.enabledAuthentications))return new x("enabledAuthentications","undefined or null");if("iscsiFeatures"===t&&(void 0===this.iscsiFeatures||null===this.iscsiFeatures))return new x("iscsiFeatures","undefined or null");if("createdBy"===t){if(void 0===this.createdBy||null===this.createdBy)return new x("createdBy","undefined or null");if(!A.validateMaxLength(this.createdBy,512))return new x("createdBy","does not satisfy required maxLength constraint: 512")}if("clusterReference"===t){if(void 0===this.clusterReference||null===this.clusterReference)return new x("clusterReference","undefined or null");if(!A.validatePattern(this.clusterReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new x("clusterReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("storageFeatures"===t&&(void 0===this.storageFeatures||null===this.storageFeatures))return new x("storageFeatures","undefined or null");if("usageType"===t&&(void 0===this.usageType||null===this.usageType))return new x("usageType","undefined or null");if("attachmentType"===t&&(void 0===this.attachmentType||null===this.attachmentType))return new x("attachmentType","undefined or null");if("protocol"===t&&(void 0===this.protocol||null===this.protocol))return new x("protocol","undefined or null");if("isHidden"===t&&(void 0===this.isHidden||null===this.isHidden))return new x("isHidden","undefined or null");if("disks"===t){if(void 0===this.disks||null===this.disks)return new x("disks","undefined or null");if(!A.validateMaxItems(this.disks,10))return new x("disks","does not satisfy required maxItems constraint: 10");if(!A.validateMinItems(this.disks,1))return new x("disks","does not satisfy required minItems constraint: 1")}if("attachments"===t){if(void 0===this.attachments||null===this.attachments)return new x("attachments","undefined or null");if(!A.validateMaxItems(this.attachments,128))return new x("attachments","does not satisfy required maxItems constraint: 128")}return new x(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,Ar.constructFromObject(e,a,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&a.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&a.setDescription(e.description),e.hasOwnProperty("shouldLoadBalanceVmAttachments")&&null!==e.shouldLoadBalanceVmAttachments&&void 0!==e.shouldLoadBalanceVmAttachments&&a.setShouldLoadBalanceVmAttachments(e.shouldLoadBalanceVmAttachments),e.hasOwnProperty("sharingStatus")&&null!==e.sharingStatus&&void 0!==e.sharingStatus&&a.setSharingStatus(Ca.constructFromObject(e.sharingStatus)),e.hasOwnProperty("targetPrefix")&&null!==e.targetPrefix&&void 0!==e.targetPrefix&&a.setTargetPrefix(e.targetPrefix),e.hasOwnProperty("targetName")&&null!==e.targetName&&void 0!==e.targetName&&a.setTargetName(e.targetName),e.hasOwnProperty("enabledAuthentications")&&null!==e.enabledAuthentications&&void 0!==e.enabledAuthentications&&a.setEnabledAuthentications(Cr.constructFromObject(e.enabledAuthentications)),e.hasOwnProperty("iscsiFeatures")&&null!==e.iscsiFeatures&&void 0!==e.iscsiFeatures&&a.setIscsiFeatures(Ea.constructFromObject(e.iscsiFeatures)),e.hasOwnProperty("createdBy")&&null!==e.createdBy&&void 0!==e.createdBy&&a.setCreatedBy(e.createdBy),e.hasOwnProperty("clusterReference")&&null!==e.clusterReference&&void 0!==e.clusterReference&&a.setClusterReference(e.clusterReference),e.hasOwnProperty("storageFeatures")&&null!==e.storageFeatures&&void 0!==e.storageFeatures&&a.setStorageFeatures(Ha.constructFromObject(e.storageFeatures)),e.hasOwnProperty("usageType")&&null!==e.usageType&&void 0!==e.usageType&&a.setUsageType(Xa.constructFromObject(e.usageType)),e.hasOwnProperty("attachmentType")&&null!==e.attachmentType&&void 0!==e.attachmentType&&a.setAttachmentType(Oa.constructFromObject(e.attachmentType)),e.hasOwnProperty("protocol")&&null!==e.protocol&&void 0!==e.protocol&&a.setProtocol(Aa.constructFromObject(e.protocol)),e.hasOwnProperty("isHidden")&&null!==e.isHidden&&void 0!==e.isHidden&&a.setIsHidden(e.isHidden),e.hasOwnProperty("disks")&&null!==e.disks&&void 0!==e.disks){for(i=[],n=e.disks,o=0;o<n.length;o++)r=cu.constructFromObject(n[o],void 0),i.push(r);a.setDisks(i)}if(e.hasOwnProperty("attachments")&&null!==e.attachments&&void 0!==e.attachments){for(i=[],n=e.attachments,o=0;o<n.length;o++)r=Rs.constructFromObject(n[o],void 0),i.push(r);a.setAttachments(i)}if(!s)for(var u in a.$unknownFields=pu({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&hu(n.prototype,r),o&&hu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ar);function ju(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $u(e){return $u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$u(e)}function ku(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ku(Object(n),!0).forEach(function(t){Tu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ku(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Tu(e,t,n){return(t=Fu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Su(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fu(r.key),r)}}function Fu(e){var t=function(e){if("object"!=$u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$u(t)?t:t+""}function Eu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Eu=function(){return!!e})()}function Iu(e){return Iu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Iu(e)}function Au(e,t){return Au=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Au(e,t)}function Du(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")}Ou.prototype.name=void 0,Ou.prototype.description=void 0,Ou.prototype.shouldLoadBalanceVmAttachments=!1,Ou.prototype.sharingStatus=void 0,Ou.prototype.targetPrefix=void 0,Ou.prototype.targetName=void 0,Ou.prototype.enabledAuthentications=void 0,Ou.prototype.iscsiFeatures=void 0,Ou.prototype.createdBy=void 0,Ou.prototype.clusterReference=void 0,Ou.prototype.storageFeatures=void 0,Ou.prototype.usageType=void 0,Ou.prototype.attachmentType=void 0,Ou.prototype.protocol=void 0,Ou.prototype.isHidden=!1,Ou.prototype.disks=void 0,Ou.prototype.attachments=void 0,Ar.prototype.extId=void 0,Ar.prototype.links=void 0,wr.prototype.tenantId=void 0;var Cu=new WeakSet,Ru=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Iu(t),function(e,t){if(t&&("object"==$u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Eu()?Reflect.construct(t,n||[],Iu(e).constructor):t.apply(e,n))}(this,t),Cu),e.$objectType="volumes.v4.config.GetVolumeGroupApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Au(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Pu(Pu(Pu({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Du(Cu,this,xu).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):Du(Cu,this,xu).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:$u(e.data)){case"volumes.v4.config.VolumeGroup":r.setData(Ou.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":r.setData(gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Pu({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Su(n.prototype,r),o&&Su(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function xu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ju(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ju(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===$u(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function Nu(e){return Nu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nu(e)}function _u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Uu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_u(Object(n),!0).forEach(function(t){Ju(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ju(e,t,n){return(t=Bu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bu(r.key),r)}}function Bu(e){var t=function(e){if("object"!=Nu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Nu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nu(t)?t:t+""}Ru.prototype.metadata=void 0,Ru.prototype.data=void 0,Ru.prototype.$reserved=void 0,Ru.prototype.$objectType=void 0,Ru.prototype.$unknownFields=void 0;var Lu=new WeakSet,Vu=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Lu),this.$objectType="volumes.v4.config.VolumeGroupMetadata",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getOwnerReference",value:function(){return this.ownerReference}},{key:"setOwnerReference",value:function(e){this.ownerReference=e}},{key:"getCategoryIds",value:function(){return this.categoryIds}},{key:"setCategoryIds",value:function(e){this.categoryIds=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return!1===e?Uu(Uu(Uu({},void 0!==this.getOwnerReference()&&null!==this.getOwnerReference()?{ownerReference:this.getOwnerReference()}:{}),void 0!==this.getCategoryIds()&&null!==this.getCategoryIds()?{categoryIds:this.getCategoryIds()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("ownerReference"===t&&(void 0===this.ownerReference||null===this.ownerReference))return new x("ownerReference","undefined or null");if("categoryIds"===t){if(void 0===this.categoryIds||null===this.categoryIds)return new x("categoryIds","undefined or null");if(!A.validateMaxItems(this.categoryIds,20))return new x("categoryIds","does not satisfy required maxItems constraint: 20")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(i=i||new e,t.hasOwnProperty("ownerReference")&&null!==t.ownerReference&&void 0!==t.ownerReference&&i.setOwnerReference(t.ownerReference),t.hasOwnProperty("categoryIds")&&null!==t.categoryIds&&void 0!==t.categoryIds){for(o=[],n=t.categoryIds,r=0;r<n.length;r++)o.push(n[r]);i.setCategoryIds(o)}if(t.hasOwnProperty("$reserved")&&(i.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(i.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(i.$unknownFields=t.$unknownFields),!a)for(var s in i.$unknownFields=Uu({},t.$unknownFields),t)Object.keys(i).includes(s)||Object.keys(i).includes(this.snakeToCamel(s))||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(i.$unknownFields[s]=t[s])}return i}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Mu(t.prototype,n),r&&Mu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Wu(e){return Wu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wu(e)}function Gu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ku(e,t,n){return(t=zu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zu(r.key),r)}}function zu(e){var t=function(e){if("object"!=Wu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wu(t)?t:t+""}function Hu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Hu=function(){return!!e})()}function Yu(e){return Yu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Yu(e)}function Xu(e,t){return Xu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xu(e,t)}Vu.prototype.ownerReference=void 0,Vu.prototype.categoryIds=void 0,Vu.prototype.$reserved=void 0,Vu.prototype.$objectType=void 0,Vu.prototype.$unknownFields=void 0;var Zu=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Yu(t),function(e,t){if(t&&("object"==Wu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Hu()?Reflect.construct(t,n||[],Yu(e).constructor):t.apply(e,n))}(this,t)).$objectType="volumes.v4.config.VolumeGroupMetadataProjection",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xu(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return new x(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Vu.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gu(Object(n),!0).forEach(function(t){Ku(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&qu(n.prototype,r),o&&qu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Vu);function Qu(e){return Qu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qu(e)}function el(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?el(Object(n),!0).forEach(function(t){nl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):el(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nl(e,t,n){return(t=ol(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ol(r.key),r)}}function ol(e){var t=function(e){if("object"!=Qu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qu(t)?t:t+""}function il(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(il=function(){return!!e})()}function al(e){return al=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},al(e)}function sl(e,t){return sl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sl(e,t)}var ul=new WeakSet,ll=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=al(t),function(e,t){if(t&&("object"==Qu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,il()?Reflect.construct(t,n||[],al(e).constructor):t.apply(e,n))}(this,t),ul),e.$objectType="volumes.v4.config.VolumeGroupProjection",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sl(e,t)}(t,e),n=t,r=[{key:"getClusterProjection",value:function(){return this.clusterProjection}},{key:"setClusterProjection",value:function(e){this.clusterProjection=e}},{key:"getVolumeGroupMetadataProjection",value:function(){return this.volumeGroupMetadataProjection}},{key:"setVolumeGroupMetadataProjection",value:function(e){this.volumeGroupMetadataProjection=e}},{key:"toJson",value:function(e){return tl(!1===e?tl(tl(tl(tl(tl(tl(tl(tl(tl(tl(tl(tl(tl(tl(tl(tl(tl(tl(tl(tl(tl(tl({},void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{}),void 0!==this.getVolumeGroupMetadataProjection()&&null!==this.getVolumeGroupMetadataProjection()?{volumeGroupMetadataProjection:this.getVolumeGroupMetadataProjection().toJson(!1)}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getShouldLoadBalanceVmAttachments()&&null!==this.getShouldLoadBalanceVmAttachments()?{shouldLoadBalanceVmAttachments:this.getShouldLoadBalanceVmAttachments()}:{}),void 0!==this.getSharingStatus()&&null!==this.getSharingStatus()?{sharingStatus:this.getSharingStatus()}:{}),void 0!==this.getTargetPrefix()&&null!==this.getTargetPrefix()?{targetPrefix:this.getTargetPrefix()}:{}),void 0!==this.getTargetName()&&null!==this.getTargetName()?{targetName:this.getTargetName()}:{}),void 0!==this.getEnabledAuthentications()&&null!==this.getEnabledAuthentications()?{enabledAuthentications:this.getEnabledAuthentications()}:{}),void 0!==this.getIscsiFeatures()&&null!==this.getIscsiFeatures()?{iscsiFeatures:this.getIscsiFeatures().toJson(!1)}:{}),void 0!==this.getCreatedBy()&&null!==this.getCreatedBy()?{createdBy:this.getCreatedBy()}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{}),void 0!==this.getStorageFeatures()&&null!==this.getStorageFeatures()?{storageFeatures:this.getStorageFeatures().toJson(!1)}:{}),void 0!==this.getUsageType()&&null!==this.getUsageType()?{usageType:this.getUsageType()}:{}),void 0!==this.getAttachmentType()&&null!==this.getAttachmentType()?{attachmentType:this.getAttachmentType()}:{}),void 0!==this.getProtocol()&&null!==this.getProtocol()?{protocol:this.getProtocol()}:{}),void 0!==this.getIsHidden()&&null!==this.getIsHidden()?{isHidden:this.getIsHidden()}:{}),void 0!==this.getDisks()&&null!==this.getDisks()?{disks:this.getDisks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getAttachments()&&null!==this.getAttachments()?{attachments:this.getAttachments().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):tl(tl(tl(tl(tl(tl(tl(tl(tl(tl(tl(tl(tl(tl(tl(tl(tl(tl({},void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{}),void 0!==this.getVolumeGroupMetadataProjection()&&null!==this.getVolumeGroupMetadataProjection()?{volumeGroupMetadataProjection:this.getVolumeGroupMetadataProjection().toJson(!1)}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getShouldLoadBalanceVmAttachments()&&null!==this.getShouldLoadBalanceVmAttachments()?{shouldLoadBalanceVmAttachments:this.getShouldLoadBalanceVmAttachments()}:{}),void 0!==this.getSharingStatus()&&null!==this.getSharingStatus()?{sharingStatus:this.getSharingStatus()}:{}),void 0!==this.getTargetPrefix()&&null!==this.getTargetPrefix()?{targetPrefix:this.getTargetPrefix()}:{}),void 0!==this.getTargetName()&&null!==this.getTargetName()?{targetName:this.getTargetName()}:{}),void 0!==this.getEnabledAuthentications()&&null!==this.getEnabledAuthentications()?{enabledAuthentications:this.getEnabledAuthentications()}:{}),void 0!==this.getIscsiFeatures()&&null!==this.getIscsiFeatures()?{iscsiFeatures:this.getIscsiFeatures().toJson(!1)}:{}),void 0!==this.getCreatedBy()&&null!==this.getCreatedBy()?{createdBy:this.getCreatedBy()}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{}),void 0!==this.getStorageFeatures()&&null!==this.getStorageFeatures()?{storageFeatures:this.getStorageFeatures().toJson(!1)}:{}),void 0!==this.getUsageType()&&null!==this.getUsageType()?{usageType:this.getUsageType()}:{}),void 0!==this.getAttachmentType()&&null!==this.getAttachmentType()?{attachmentType:this.getAttachmentType()}:{}),void 0!==this.getProtocol()&&null!==this.getProtocol()?{protocol:this.getProtocol()}:{}),void 0!==this.getIsHidden()&&null!==this.getIsHidden()?{isHidden:this.getIsHidden()}:{}),void 0!==this.getDisks()&&null!==this.getDisks()?{disks:this.getDisks().map(function(e){return e.toJson(!1)})}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"clusterProjection"!==t||void 0!==this.clusterProjection&&null!==this.clusterProjection?"volumeGroupMetadataProjection"!==t||void 0!==this.volumeGroupMetadataProjection&&null!==this.volumeGroupMetadataProjection?new x(t,"no such property exists"):new x("volumeGroupMetadataProjection","undefined or null"):new x("clusterProjection","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Ou.constructFromObject(e,n,!0),e.hasOwnProperty("clusterProjection")&&null!==e.clusterProjection&&void 0!==e.clusterProjection&&n.setClusterProjection(mo.constructFromObject(e.clusterProjection)),e.hasOwnProperty("volumeGroupMetadataProjection")&&null!==e.volumeGroupMetadataProjection&&void 0!==e.volumeGroupMetadataProjection&&n.setVolumeGroupMetadataProjection(Zu.constructFromObject(e.volumeGroupMetadataProjection)),!r))for(var o in n.$unknownFields=tl({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&rl(n.prototype,r),o&&rl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ou);function cl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function fl(e){return fl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fl(e)}function dl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dl(Object(n),!0).forEach(function(t){yl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yl(e,t,n){return(t=vl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vl(r.key),r)}}function vl(e){var t=function(e){if("object"!=fl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fl(t)?t:t+""}function bl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bl=function(){return!!e})()}function ml(e){return ml=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ml(e)}function gl(e,t){return gl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gl(e,t)}function wl(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")}ll.prototype.clusterProjection=void 0,ll.prototype.volumeGroupMetadataProjection=void 0,Ou.prototype.name=void 0,Ou.prototype.description=void 0,Ou.prototype.shouldLoadBalanceVmAttachments=!1,Ou.prototype.sharingStatus=void 0,Ou.prototype.targetPrefix=void 0,Ou.prototype.targetName=void 0,Ou.prototype.enabledAuthentications=void 0,Ou.prototype.iscsiFeatures=void 0,Ou.prototype.createdBy=void 0,Ou.prototype.clusterReference=void 0,Ou.prototype.storageFeatures=void 0,Ou.prototype.usageType=void 0,Ou.prototype.attachmentType=void 0,Ou.prototype.protocol=void 0,Ou.prototype.isHidden=!1,Ou.prototype.disks=void 0,Ou.prototype.attachments=void 0,Ar.prototype.extId=void 0,Ar.prototype.links=void 0,wr.prototype.tenantId=void 0;var Ol=new WeakSet,jl=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=ml(t),function(e,t){if(t&&("object"==fl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,bl()?Reflect.construct(t,n||[],ml(e).constructor):t.apply(e,n))}(this,t),Ol),e.$objectType="volumes.v4.config.ListVolumeGroupsApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gl(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return pl(pl(pl({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):wl(Ol,this,$l).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):wl(Ol,this,$l).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:fl(n[0]),o=0;o<n.length;o++)switch(a){case"volumes.v4.config.VolumeGroup":r=Ou.constructFromObject(n[o],void 0),i.push(r);break;case"volumes.v4.config.VolumeGroupProjection":r=ll.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+a+" in data"}s.setData(i)}else{if("volumes.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:fl(e.data)))throw"Unknown datatype "+a+" in data";s.setData(gn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var c in s.$unknownFields=pl({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&hl(n.prototype,r),o&&hl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function $l(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return cl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cl(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===fl(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function kl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pl(e){return Pl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pl(e)}function Tl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tl(Object(n),!0).forEach(function(t){Fl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fl(e,t,n){return(t=Il(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function El(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Il(r.key),r)}}function Il(e){var t=function(e){if("object"!=Pl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Pl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pl(t)?t:t+""}function Al(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Al=function(){return!!e})()}function Dl(e){return Dl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dl(e)}function Cl(e,t){return Cl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cl(e,t)}function Rl(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")}jl.prototype.metadata=void 0,jl.prototype.data=void 0,jl.prototype.$reserved=void 0,jl.prototype.$objectType=void 0,jl.prototype.$unknownFields=void 0;var xl=new WeakSet,Nl=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Dl(t),function(e,t){if(t&&("object"==Pl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Al()?Reflect.construct(t,n||[],Dl(e).constructor):t.apply(e,n))}(this,t),xl),e.$objectType="volumes.v4.config.CreateVolumeGroupApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cl(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Sl(Sl(Sl({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Rl(xl,this,_l).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):Rl(xl,this,_l).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Pl(e.data)){case"prism.v4.config.TaskReference":r.setData(Ct.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":r.setData(gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Sl({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&El(n.prototype,r),o&&El(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function _l(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return kl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kl(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Pl(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function Ul(e){return Ul="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ul(e)}function Jl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ml(e,t,n){return(t=Ll(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ll(r.key),r)}}function Ll(e){var t=function(e){if("object"!=Ul(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ul(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ul(t)?t:t+""}function Vl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Vl=function(){return!!e})()}function Wl(e){return Wl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wl(e)}function Gl(e,t){return Gl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gl(e,t)}Nl.prototype.metadata=void 0,Nl.prototype.data=void 0,Nl.prototype.$reserved=void 0,Nl.prototype.$objectType=void 0,Nl.prototype.$unknownFields=void 0;var Kl=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Wl(t),function(e,t){if(t&&("object"==Ul(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Vl()?Reflect.construct(t,n||[],Wl(e).constructor):t.apply(e,n))}(this,t)).$objectType="volumes.v4.config.VolumeDiskProjection",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gl(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return new x(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,cu.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jl(Object(n),!0).forEach(function(t){Ml(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Bl(n.prototype,r),o&&Bl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(cu);function ql(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function zl(e){return zl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zl(e)}function Hl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Yl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hl(Object(n),!0).forEach(function(t){Xl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xl(e,t,n){return(t=Ql(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ql(r.key),r)}}function Ql(e){var t=function(e){if("object"!=zl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zl(t)?t:t+""}function ec(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ec=function(){return!!e})()}function tc(e){return tc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tc(e)}function nc(e,t){return nc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nc(e,t)}function rc(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")}var oc=new WeakSet,ic=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=tc(t),function(e,t){if(t&&("object"==zl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ec()?Reflect.construct(t,n||[],tc(e).constructor):t.apply(e,n))}(this,t),oc),e.$objectType="volumes.v4.config.ListVolumeDisksApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nc(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Yl(Yl(Yl({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):rc(oc,this,ac).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):rc(oc,this,ac).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:zl(n[0]),o=0;o<n.length;o++)switch(a){case"volumes.v4.config.VolumeDisk":r=cu.constructFromObject(n[o],void 0),i.push(r);break;case"volumes.v4.config.VolumeDiskProjection":r=Kl.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+a+" in data"}s.setData(i)}else{if("volumes.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:zl(e.data)))throw"Unknown datatype "+a+" in data";s.setData(gn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var c in s.$unknownFields=Yl({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Zl(n.prototype,r),o&&Zl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function ac(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ql(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ql(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===zl(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function sc(e){return sc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sc(e)}function uc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uc(Object(n),!0).forEach(function(t){cc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cc(e,t,n){return(t=dc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dc(r.key),r)}}function dc(e){var t=function(e){if("object"!=sc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=sc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==sc(t)?t:t+""}ic.prototype.metadata=void 0,ic.prototype.data=void 0,ic.prototype.$reserved=void 0,ic.prototype.$objectType=void 0,ic.prototype.$unknownFields=void 0;var pc=new WeakSet,yc=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,pc),this.volumeGroupRecoveryPointExtId=t,this.$objectType="volumes.v4.config.RevertSpec",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getVolumeGroupRecoveryPointExtId",value:function(){return this.volumeGroupRecoveryPointExtId}},{key:"setVolumeGroupRecoveryPointExtId",value:function(e){this.volumeGroupRecoveryPointExtId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return lc(lc({},void 0!==this.getVolumeGroupRecoveryPointExtId()&&null!==this.getVolumeGroupRecoveryPointExtId()?{volumeGroupRecoveryPointExtId:this.getVolumeGroupRecoveryPointExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=["volumeGroupRecoveryPointExtId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("volumeGroupRecoveryPointExtId"===t){if(void 0===this.volumeGroupRecoveryPointExtId||null===this.volumeGroupRecoveryPointExtId)return new x("volumeGroupRecoveryPointExtId","undefined or null");if(!A.validatePattern(this.volumeGroupRecoveryPointExtId,/^[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}$/))return new x("volumeGroupRecoveryPointExtId","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}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("volumeGroupRecoveryPointExtId")&&null!==t.volumeGroupRecoveryPointExtId&&void 0!==t.volumeGroupRecoveryPointExtId&&n.setVolumeGroupRecoveryPointExtId(t.volumeGroupRecoveryPointExtId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=lc({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&fc(t.prototype,n),r&&fc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function hc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vc(e){return vc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vc(e)}function bc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bc(Object(n),!0).forEach(function(t){gc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gc(e,t,n){return(t=Oc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Oc(r.key),r)}}function Oc(e){var t=function(e){if("object"!=vc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vc(t)?t:t+""}function jc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(jc=function(){return!!e})()}function $c(e){return $c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$c(e)}function kc(e,t){return kc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kc(e,t)}function Pc(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")}yc.prototype.volumeGroupRecoveryPointExtId=void 0,yc.prototype.$reserved=void 0,yc.prototype.$objectType=void 0,yc.prototype.$unknownFields=void 0;var Tc=new WeakSet,Sc=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=$c(t),function(e,t){if(t&&("object"==vc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,jc()?Reflect.construct(t,n||[],$c(e).constructor):t.apply(e,n))}(this,t),Tc),e.$objectType="volumes.v4.config.DetachIscsiClientApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kc(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return mc(mc(mc({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Pc(Tc,this,Fc).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):Pc(Tc,this,Fc).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:vc(e.data)){case"prism.v4.config.TaskReference":r.setData(Ct.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":r.setData(gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=mc({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&wc(n.prototype,r),o&&wc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Fc(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return hc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hc(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===vc(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}Sc.prototype.metadata=void 0,Sc.prototype.data=void 0,Sc.prototype.$reserved=void 0,Sc.prototype.$objectType=void 0,Sc.prototype.$unknownFields=void 0;var Ec={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SUM:"SUM",MIN:"MIN",MAX:"MAX",AVG:"AVG",COUNT:"COUNT",LAST:"LAST",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Ec).find(function(t){return Ec[t]===e});return null==t?Ec.$UNKNOWN:Ec[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ec.$UNKNOWN:case Ec.$REDACTED:case Ec.SUM:case Ec.MIN:case Ec.MAX:case Ec.AVG:case Ec.COUNT:case Ec.LAST:return;default:throw new Error("Invalid : must be DownSamplingOperator.{ $UNKNOWN|$REDACTED|SUM|MIN|MAX|AVG|COUNT|LAST }")}}};Object.freeze(Ec);const Ic=Ec;function Ac(e){return Ac="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ac(e)}function Dc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Cc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dc(Object(n),!0).forEach(function(t){Rc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rc(e,t,n){return(t=Nc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Nc(r.key),r)}}function Nc(e){var t=function(e){if("object"!=Ac(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ac(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ac(t)?t:t+""}var _c=new WeakSet,Uc=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,_c),this.$objectType="common.v1.config.Metadata",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getOwnerReferenceId",value:function(){return this.ownerReferenceId}},{key:"setOwnerReferenceId",value:function(e){this.ownerReferenceId=e}},{key:"getOwnerUserName",value:function(){return this.ownerUserName}},{key:"setOwnerUserName",value:function(e){this.ownerUserName=e}},{key:"getProjectReferenceId",value:function(){return this.projectReferenceId}},{key:"setProjectReferenceId",value:function(e){this.projectReferenceId=e}},{key:"getProjectName",value:function(){return this.projectName}},{key:"setProjectName",value:function(e){this.projectName=e}},{key:"getCategoryIds",value:function(){return this.categoryIds}},{key:"setCategoryIds",value:function(e){this.categoryIds=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Cc(Cc(Cc(Cc(Cc(Cc({},void 0!==this.getOwnerReferenceId()&&null!==this.getOwnerReferenceId()?{ownerReferenceId:this.getOwnerReferenceId()}:{}),void 0!==this.getOwnerUserName()&&null!==this.getOwnerUserName()?{ownerUserName:this.getOwnerUserName()}:{}),void 0!==this.getProjectReferenceId()&&null!==this.getProjectReferenceId()?{projectReferenceId:this.getProjectReferenceId()}:{}),void 0!==this.getProjectName()&&null!==this.getProjectName()?{projectName:this.getProjectName()}:{}),void 0!==this.getCategoryIds()&&null!==this.getCategoryIds()?{categoryIds:this.getCategoryIds()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("ownerReferenceId"===t){if(void 0===this.ownerReferenceId||null===this.ownerReferenceId)return new x("ownerReferenceId","undefined or null");if(!A.validatePattern(this.ownerReferenceId,/^[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}$/))return new x("ownerReferenceId","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}$/")}if("ownerUserName"===t){if(void 0===this.ownerUserName||null===this.ownerUserName)return new x("ownerUserName","undefined or null");if(!A.validateMaxLength(this.ownerUserName,128))return new x("ownerUserName","does not satisfy required maxLength constraint: 128")}if("projectReferenceId"===t){if(void 0===this.projectReferenceId||null===this.projectReferenceId)return new x("projectReferenceId","undefined or null");if(!A.validatePattern(this.projectReferenceId,/^[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}$/))return new x("projectReferenceId","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}$/")}if("projectName"===t){if(void 0===this.projectName||null===this.projectName)return new x("projectName","undefined or null");if(!A.validateMaxLength(this.projectName,128))return new x("projectName","does not satisfy required maxLength constraint: 128")}if("categoryIds"===t){if(void 0===this.categoryIds||null===this.categoryIds)return new x("categoryIds","undefined or null");if(!A.validateMaxItems(this.categoryIds,256))return new x("categoryIds","does not satisfy required maxItems constraint: 256");if(!A.validateMinItems(this.categoryIds,1))return new x("categoryIds","does not satisfy required minItems constraint: 1")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(i=i||new e,t.hasOwnProperty("ownerReferenceId")&&null!==t.ownerReferenceId&&void 0!==t.ownerReferenceId&&i.setOwnerReferenceId(t.ownerReferenceId),t.hasOwnProperty("ownerUserName")&&null!==t.ownerUserName&&void 0!==t.ownerUserName&&i.setOwnerUserName(t.ownerUserName),t.hasOwnProperty("projectReferenceId")&&null!==t.projectReferenceId&&void 0!==t.projectReferenceId&&i.setProjectReferenceId(t.projectReferenceId),t.hasOwnProperty("projectName")&&null!==t.projectName&&void 0!==t.projectName&&i.setProjectName(t.projectName),t.hasOwnProperty("categoryIds")&&null!==t.categoryIds&&void 0!==t.categoryIds){for(o=[],n=t.categoryIds,r=0;r<n.length;r++)o.push(n[r]);i.setCategoryIds(o)}if(t.hasOwnProperty("$reserved")&&(i.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(i.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(i.$unknownFields=t.$unknownFields),!a)for(var s in i.$unknownFields=Cc({},t.$unknownFields),t)Object.keys(i).includes(s)||Object.keys(i).includes(this.snakeToCamel(s))||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(i.$unknownFields[s]=t[s])}return i}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&xc(t.prototype,n),r&&xc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Jc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Mc(e){return Mc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mc(e)}function Bc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Lc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bc(Object(n),!0).forEach(function(t){Vc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vc(e,t,n){return(t=Gc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gc(r.key),r)}}function Gc(e){var t=function(e){if("object"!=Mc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Mc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mc(t)?t:t+""}function Kc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Kc=function(){return!!e})()}function qc(e){return qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qc(e)}function zc(e,t){return zc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zc(e,t)}function Hc(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")}Uc.prototype.ownerReferenceId=void 0,Uc.prototype.ownerUserName=void 0,Uc.prototype.projectReferenceId=void 0,Uc.prototype.projectName=void 0,Uc.prototype.categoryIds=void 0,Uc.prototype.$reserved=void 0,Uc.prototype.$objectType=void 0,Uc.prototype.$unknownFields=void 0;var Yc=new WeakSet,Xc=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=qc(t),function(e,t){if(t&&("object"==Mc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Kc()?Reflect.construct(t,n||[],qc(e).constructor):t.apply(e,n))}(this,t),Yc),e.$objectType="volumes.v4.config.GetVolumeGroupMetadataApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zc(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Lc(Lc(Lc({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Hc(Yc,this,Zc).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):Hc(Yc,this,Zc).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Mc(e.data)){case"common.v1.config.Metadata":r.setData(Uc.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":r.setData(gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Lc({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Wc(n.prototype,r),o&&Wc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Zc(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Jc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jc(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Mc(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function Qc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ef(e){return ef="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ef(e)}function tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tf(Object(n),!0).forEach(function(t){rf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rf(e,t,n){return(t=af(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function of(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,af(r.key),r)}}function af(e){var t=function(e){if("object"!=ef(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ef(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ef(t)?t:t+""}function sf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(sf=function(){return!!e})()}function uf(e){return uf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uf(e)}function lf(e,t){return lf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lf(e,t)}function cf(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")}Xc.prototype.metadata=void 0,Xc.prototype.data=void 0,Xc.prototype.$reserved=void 0,Xc.prototype.$objectType=void 0,Xc.prototype.$unknownFields=void 0;var ff=new WeakSet,df=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=uf(t),function(e,t){if(t&&("object"==ef(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,sf()?Reflect.construct(t,n||[],uf(e).constructor):t.apply(e,n))}(this,t),ff),e.$objectType="volumes.v4.config.AttachVmApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lf(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return nf(nf(nf({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):cf(ff,this,pf).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):cf(ff,this,pf).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ef(e.data)){case"prism.v4.config.TaskReference":r.setData(Ct.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":r.setData(gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=nf({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&of(n.prototype,r),o&&of(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function pf(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Qc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qc(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===ef(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function yf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hf(e){return hf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hf(e)}function vf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vf(Object(n),!0).forEach(function(t){mf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mf(e,t,n){return(t=wf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wf(r.key),r)}}function wf(e){var t=function(e){if("object"!=hf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hf(t)?t:t+""}function Of(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Of=function(){return!!e})()}function jf(e){return jf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jf(e)}function $f(e,t){return $f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$f(e,t)}function kf(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")}df.prototype.metadata=void 0,df.prototype.data=void 0,df.prototype.$reserved=void 0,df.prototype.$objectType=void 0,df.prototype.$unknownFields=void 0;var Pf=new WeakSet,Tf=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=jf(t),function(e,t){if(t&&("object"==hf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Of()?Reflect.construct(t,n||[],jf(e).constructor):t.apply(e,n))}(this,t),Pf),e.$objectType="volumes.v4.config.GetVolumeDiskApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$f(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return bf(bf(bf({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):kf(Pf,this,Sf).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):kf(Pf,this,Sf).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:hf(e.data)){case"volumes.v4.config.VolumeDisk":r.setData(cu.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":r.setData(gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=bf({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&gf(n.prototype,r),o&&gf(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Sf(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return yf(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yf(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===hf(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function Ff(e){return Ff="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ff(e)}function Ef(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function If(e,t,n){return(t=Df(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Af(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Df(r.key),r)}}function Df(e){var t=function(e){if("object"!=Ff(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ff(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ff(t)?t:t+""}function Cf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Cf=function(){return!!e})()}function Rf(e){return Rf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rf(e)}function xf(e,t){return xf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xf(e,t)}Tf.prototype.metadata=void 0,Tf.prototype.data=void 0,Tf.prototype.$reserved=void 0,Tf.prototype.$objectType=void 0,Tf.prototype.$unknownFields=void 0;var Nf=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Rf(t),function(e,t){if(t&&("object"==Ff(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Cf()?Reflect.construct(t,n||[],Rf(e).constructor):t.apply(e,n))}(this,t)).$objectType="volumes.v4.config.CategoryDetails",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xf(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return new x(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Gs.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ef(Object(n),!0).forEach(function(t){If(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ef(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Af(n.prototype,r),o&&Af(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Gs);function _f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Uf(e){return Uf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uf(e)}function Jf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Mf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jf(Object(n),!0).forEach(function(t){Bf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bf(e,t,n){return(t=Vf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vf(r.key),r)}}function Vf(e){var t=function(e){if("object"!=Uf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Uf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Uf(t)?t:t+""}function Wf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Wf=function(){return!!e})()}function Gf(e){return Gf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gf(e)}function Kf(e,t){return Kf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kf(e,t)}function qf(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")}var zf=new WeakSet,Hf=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Gf(t),function(e,t){if(t&&("object"==Uf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Wf()?Reflect.construct(t,n||[],Gf(e).constructor):t.apply(e,n))}(this,t),zf),e.$objectType="volumes.v4.config.ListCategoryAssociationsApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kf(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Mf(Mf(Mf({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):qf(zf,this,Yf).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):qf(zf,this,Yf).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Uf(n[0]),o=0;o<n.length;o++){if("volumes.v4.config.CategoryDetails"!==a)throw"Unknown list of type "+a+" in data";r=Nf.constructFromObject(n[o],void 0),i.push(r)}s.setData(i)}else{if("volumes.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Uf(e.data)))throw"Unknown datatype "+a+" in data";s.setData(gn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var c in s.$unknownFields=Mf({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Lf(n.prototype,r),o&&Lf(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Yf(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return _f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_f(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Uf(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function Xf(e){return Xf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xf(e)}function Zf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zf(Object(n),!0).forEach(function(t){ed(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ed(e,t,n){return(t=nd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function td(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nd(r.key),r)}}function nd(e){var t=function(e){if("object"!=Xf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xf(t)?t:t+""}function rd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(rd=function(){return!!e})()}function od(e){return od=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},od(e)}function id(e,t){return id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},id(e,t)}Hf.prototype.metadata=void 0,Hf.prototype.data=void 0,Hf.prototype.$reserved=void 0,Hf.prototype.$objectType=void 0,Hf.prototype.$unknownFields=void 0;var ad=new WeakSet,sd=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=od(t),function(e,t){if(t&&("object"==Xf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,rd()?Reflect.construct(t,n||[],od(e).constructor):t.apply(e,n))}(this,t),ad),e.$objectType="volumes.v4.config.IscsiClientAttachmentProjection",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&id(e,t)}(t,e),n=t,r=[{key:"getIscsiClientProjection",value:function(){return this.iscsiClientProjection}},{key:"setIscsiClientProjection",value:function(e){this.iscsiClientProjection=e}},{key:"toJson",value:function(e){return Qf(!1===e?Qf(Qf(Qf({},void 0!==this.getIscsiClientProjection()&&null!==this.getIscsiClientProjection()?{iscsiClientProjection:this.getIscsiClientProjection().toJson(!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{}):Qf(Qf({},void 0!==this.getIscsiClientProjection()&&null!==this.getIscsiClientProjection()?{iscsiClientProjection:this.getIscsiClientProjection().toJson(!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"iscsiClientProjection"!==t||void 0!==this.iscsiClientProjection&&null!==this.iscsiClientProjection?new x(t,"no such property exists"):new x("iscsiClientProjection","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,is.constructFromObject(e,n,!0),e.hasOwnProperty("iscsiClientProjection")&&null!==e.iscsiClientProjection&&void 0!==e.iscsiClientProjection&&n.setIscsiClientProjection(Eo.constructFromObject(e.iscsiClientProjection)),!r))for(var o in n.$unknownFields=Qf({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&td(n.prototype,r),o&&td(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(is);function ud(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ld(e){return ld="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ld(e)}function cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cd(Object(n),!0).forEach(function(t){dd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dd(e,t,n){return(t=yd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yd(r.key),r)}}function yd(e){var t=function(e){if("object"!=ld(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ld(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ld(t)?t:t+""}function hd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(hd=function(){return!!e})()}function vd(e){return vd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vd(e)}function bd(e,t){return bd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bd(e,t)}function md(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")}sd.prototype.iscsiClientProjection=void 0,is.prototype.extId=void 0,is.prototype.clusterReference=void 0;var gd=new WeakSet,wd=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=vd(t),function(e,t){if(t&&("object"==ld(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,hd()?Reflect.construct(t,n||[],vd(e).constructor):t.apply(e,n))}(this,t),gd),e.$objectType="volumes.v4.config.ListExternalIscsiAttachmentsApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bd(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return fd(fd(fd({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):md(gd,this,Od).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):md(gd,this,Od).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:ld(n[0]),o=0;o<n.length;o++)switch(a){case"volumes.v4.config.IscsiClientAttachment":r=is.constructFromObject(n[o],void 0),i.push(r);break;case"volumes.v4.config.IscsiClientAttachmentProjection":r=sd.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+a+" in data"}s.setData(i)}else{if("volumes.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ld(e.data)))throw"Unknown datatype "+a+" in data";s.setData(gn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var c in s.$unknownFields=fd({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&pd(n.prototype,r),o&&pd(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Od(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ud(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ud(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===ld(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function jd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $d(e){return $d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$d(e)}function kd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kd(Object(n),!0).forEach(function(t){Td(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Td(e,t,n){return(t=Fd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fd(r.key),r)}}function Fd(e){var t=function(e){if("object"!=$d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$d(t)?t:t+""}function Ed(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ed=function(){return!!e})()}function Id(e){return Id=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Id(e)}function Ad(e,t){return Ad=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ad(e,t)}function Dd(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")}wd.prototype.metadata=void 0,wd.prototype.data=void 0,wd.prototype.$reserved=void 0,wd.prototype.$objectType=void 0,wd.prototype.$unknownFields=void 0;var Cd=new WeakSet,Rd=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Id(t),function(e,t){if(t&&("object"==$d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ed()?Reflect.construct(t,n||[],Id(e).constructor):t.apply(e,n))}(this,t),Cd),e.$objectType="volumes.v4.config.DeleteVolumeGroupApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ad(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Pd(Pd(Pd({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Dd(Cd,this,xd).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):Dd(Cd,this,xd).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:$d(e.data)){case"prism.v4.config.TaskReference":r.setData(Ct.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":r.setData(gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Pd({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Sd(n.prototype,r),o&&Sd(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function xd(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return jd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jd(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===$d(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function Nd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _d(e){return _d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_d(e)}function Ud(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ud(Object(n),!0).forEach(function(t){Md(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ud(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Md(e,t,n){return(t=Ld(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ld(r.key),r)}}function Ld(e){var t=function(e){if("object"!=_d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_d(t)?t:t+""}function Vd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Vd=function(){return!!e})()}function Wd(e){return Wd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wd(e)}function Gd(e,t){return Gd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gd(e,t)}function Kd(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")}Rd.prototype.metadata=void 0,Rd.prototype.data=void 0,Rd.prototype.$reserved=void 0,Rd.prototype.$objectType=void 0,Rd.prototype.$unknownFields=void 0;var qd=new WeakSet,zd=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Wd(t),function(e,t){if(t&&("object"==_d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Vd()?Reflect.construct(t,n||[],Wd(e).constructor):t.apply(e,n))}(this,t),qd),e.$objectType="volumes.v4.config.AttachNvmfClientApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gd(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Jd(Jd(Jd({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Kd(qd,this,Hd).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):Kd(qd,this,Hd).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:_d(e.data)){case"prism.v4.config.TaskReference":r.setData(Ct.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":r.setData(gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Jd({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Bd(n.prototype,r),o&&Bd(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Hd(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Nd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nd(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===_d(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function Yd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Xd(e){return Xd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xd(e)}function Zd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zd(Object(n),!0).forEach(function(t){ep(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ep(e,t,n){return(t=np(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,np(r.key),r)}}function np(e){var t=function(e){if("object"!=Xd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xd(t)?t:t+""}function rp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(rp=function(){return!!e})()}function op(e){return op=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},op(e)}function ip(e,t){return ip=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ip(e,t)}function ap(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")}zd.prototype.metadata=void 0,zd.prototype.data=void 0,zd.prototype.$reserved=void 0,zd.prototype.$objectType=void 0,zd.prototype.$unknownFields=void 0;var sp=new WeakSet,up=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=op(t),function(e,t){if(t&&("object"==Xd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,rp()?Reflect.construct(t,n||[],op(e).constructor):t.apply(e,n))}(this,t),sp),e.$objectType="volumes.v4.config.RevertVolumeGroupApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ip(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Qd(Qd(Qd({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):ap(sp,this,lp).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):ap(sp,this,lp).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Xd(e.data)){case"prism.v4.config.TaskReference":r.setData(Ct.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":r.setData(gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Qd({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&tp(n.prototype,r),o&&tp(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function lp(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Yd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yd(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Xd(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function cp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function fp(e){return fp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fp(e)}function dp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dp(Object(n),!0).forEach(function(t){yp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yp(e,t,n){return(t=vp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vp(r.key),r)}}function vp(e){var t=function(e){if("object"!=fp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fp(t)?t:t+""}function bp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bp=function(){return!!e})()}function mp(e){return mp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mp(e)}function gp(e,t){return gp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gp(e,t)}function wp(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")}up.prototype.metadata=void 0,up.prototype.data=void 0,up.prototype.$reserved=void 0,up.prototype.$objectType=void 0,up.prototype.$unknownFields=void 0;var Op=new WeakSet,jp=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=mp(t),function(e,t){if(t&&("object"==fp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,bp()?Reflect.construct(t,n||[],mp(e).constructor):t.apply(e,n))}(this,t),Op),e.$objectType="volumes.v4.config.CreateVolumeDiskApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gp(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return pp(pp(pp({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):wp(Op,this,$p).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):wp(Op,this,$p).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:fp(e.data)){case"prism.v4.config.TaskReference":r.setData(Ct.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":r.setData(gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=pp({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&hp(n.prototype,r),o&&hp(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function $p(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return cp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cp(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===fp(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function kp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Pp(e){return Pp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pp(e)}function Tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tp(Object(n),!0).forEach(function(t){Fp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fp(e,t,n){return(t=Ip(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ep(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ip(r.key),r)}}function Ip(e){var t=function(e){if("object"!=Pp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Pp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pp(t)?t:t+""}function Ap(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ap=function(){return!!e})()}function Dp(e){return Dp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dp(e)}function Cp(e,t){return Cp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cp(e,t)}function Rp(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")}jp.prototype.metadata=void 0,jp.prototype.data=void 0,jp.prototype.$reserved=void 0,jp.prototype.$objectType=void 0,jp.prototype.$unknownFields=void 0;var xp=new WeakSet,Np=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Dp(t),function(e,t){if(t&&("object"==Pp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ap()?Reflect.construct(t,n||[],Dp(e).constructor):t.apply(e,n))}(this,t),xp),e.$objectType="volumes.v4.config.DeleteVolumeDiskApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cp(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Sp(Sp(Sp({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Rp(xp,this,_p).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):Rp(xp,this,_p).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Pp(e.data)){case"prism.v4.config.TaskReference":r.setData(Ct.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":r.setData(gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Sp({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Ep(n.prototype,r),o&&Ep(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function _p(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return kp(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kp(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Pp(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function Up(e){return Up="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Up(e)}function Jp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Mp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jp(Object(n),!0).forEach(function(t){Bp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bp(e,t,n){return(t=Vp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vp(r.key),r)}}function Vp(e){var t=function(e){if("object"!=Up(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Up(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Up(t)?t:t+""}function Wp(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")}Np.prototype.metadata=void 0,Np.prototype.data=void 0,Np.prototype.$reserved=void 0,Np.prototype.$objectType=void 0,Np.prototype.$unknownFields=void 0;var Gp=new WeakSet,Kp=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Gp),this.$objectType="volumes.v4.stats.TimeValuePair",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getTimestamp",value:function(){return this.timestamp}},{key:"setTimestamp",value:function(e){this.timestamp=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Mp(Mp(Mp({},void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:Wp(Gp,this,qp).call(this,this.getTimestamp(),!1)}:{}),void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("value","undefined or null"):new x("timestamp","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&n.setTimestamp(t.timestamp),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Mp({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Lp(t.prototype,n),r&&Lp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function qp(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function zp(e){return zp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zp(e)}function Hp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Yp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hp(Object(n),!0).forEach(function(t){Xp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xp(e,t,n){return(t=Qp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qp(r.key),r)}}function Qp(e){var t=function(e){if("object"!=zp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zp(t)?t:t+""}function ey(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ey=function(){return!!e})()}function ty(e){return ty=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ty(e)}function ny(e,t){return ny=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ny(e,t)}Kp.prototype.timestamp=void 0,Kp.prototype.value=void 0,Kp.prototype.$reserved=void 0,Kp.prototype.$objectType=void 0,Kp.prototype.$unknownFields=void 0;var ry=new WeakSet,oy=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=ty(t),function(e,t){if(t&&("object"==zp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ey()?Reflect.construct(t,n||[],ty(e).constructor):t.apply(e,n))}(this,t),ry),e.$objectType="volumes.v4.stats.VolumeGroupStats",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ny(e,t)}(t,e),n=t,r=[{key:"getVolumeGroupExtId",value:function(){return this.volumeGroupExtId}},{key:"setVolumeGroupExtId",value:function(e){this.volumeGroupExtId=e}},{key:"getControllerUserBytes",value:function(){return this.controllerUserBytes}},{key:"setControllerUserBytes",value:function(e){this.controllerUserBytes=e}},{key:"getControllerNumIOPS",value:function(){return this.controllerNumIOPS}},{key:"setControllerNumIOPS",value:function(e){this.controllerNumIOPS=e}},{key:"getControllerNumReadIOPS",value:function(){return this.controllerNumReadIOPS}},{key:"setControllerNumReadIOPS",value:function(e){this.controllerNumReadIOPS=e}},{key:"getControllerNumWriteIOPS",value:function(){return this.controllerNumWriteIOPS}},{key:"setControllerNumWriteIOPS",value:function(e){this.controllerNumWriteIOPS=e}},{key:"getControllerIOBandwidthKBps",value:function(){return this.controllerIOBandwidthKBps}},{key:"setControllerIOBandwidthKBps",value:function(e){this.controllerIOBandwidthKBps=e}},{key:"getControllerReadIOBandwidthKBps",value:function(){return this.controllerReadIOBandwidthKBps}},{key:"setControllerReadIOBandwidthKBps",value:function(e){this.controllerReadIOBandwidthKBps=e}},{key:"getControllerWriteIOBandwidthKBps",value:function(){return this.controllerWriteIOBandwidthKBps}},{key:"setControllerWriteIOBandwidthKBps",value:function(e){this.controllerWriteIOBandwidthKBps=e}},{key:"getControllerAvgIOLatencyUsecs",value:function(){return this.controllerAvgIOLatencyUsecs}},{key:"setControllerAvgIOLatencyUsecs",value:function(e){this.controllerAvgIOLatencyUsecs=e}},{key:"getControllerAvgReadIOLatencyUsecs",value:function(){return this.controllerAvgReadIOLatencyUsecs}},{key:"setControllerAvgReadIOLatencyUsecs",value:function(e){this.controllerAvgReadIOLatencyUsecs=e}},{key:"getControllerAvgWriteIOLatencyUsecs",value:function(){return this.controllerAvgWriteIOLatencyUsecs}},{key:"setControllerAvgWriteIOLatencyUsecs",value:function(e){this.controllerAvgWriteIOLatencyUsecs=e}},{key:"toJson",value:function(e){return Yp(!1===e?Yp(Yp(Yp(Yp(Yp(Yp(Yp(Yp(Yp(Yp(Yp(Yp(Yp(Yp({},void 0!==this.getVolumeGroupExtId()&&null!==this.getVolumeGroupExtId()?{volumeGroupExtId:this.getVolumeGroupExtId()}:{}),void 0!==this.getControllerUserBytes()&&null!==this.getControllerUserBytes()?{controllerUserBytes:this.getControllerUserBytes().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getControllerNumIOPS()&&null!==this.getControllerNumIOPS()?{controllerNumIOPS:this.getControllerNumIOPS().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getControllerNumReadIOPS()&&null!==this.getControllerNumReadIOPS()?{controllerNumReadIOPS:this.getControllerNumReadIOPS().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getControllerNumWriteIOPS()&&null!==this.getControllerNumWriteIOPS()?{controllerNumWriteIOPS:this.getControllerNumWriteIOPS().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getControllerIOBandwidthKBps()&&null!==this.getControllerIOBandwidthKBps()?{controllerIOBandwidthKBps:this.getControllerIOBandwidthKBps().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getControllerReadIOBandwidthKBps()&&null!==this.getControllerReadIOBandwidthKBps()?{controllerReadIOBandwidthKBps:this.getControllerReadIOBandwidthKBps().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getControllerWriteIOBandwidthKBps()&&null!==this.getControllerWriteIOBandwidthKBps()?{controllerWriteIOBandwidthKBps:this.getControllerWriteIOBandwidthKBps().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getControllerAvgIOLatencyUsecs()&&null!==this.getControllerAvgIOLatencyUsecs()?{controllerAvgIOLatencyUsecs:this.getControllerAvgIOLatencyUsecs().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getControllerAvgReadIOLatencyUsecs()&&null!==this.getControllerAvgReadIOLatencyUsecs()?{controllerAvgReadIOLatencyUsecs:this.getControllerAvgReadIOLatencyUsecs().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getControllerAvgWriteIOLatencyUsecs()&&null!==this.getControllerAvgWriteIOLatencyUsecs()?{controllerAvgWriteIOLatencyUsecs:this.getControllerAvgWriteIOLatencyUsecs().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Yp({},void 0!==this.getVolumeGroupExtId()&&null!==this.getVolumeGroupExtId()?{volumeGroupExtId:this.getVolumeGroupExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("volumeGroupExtId"===t){if(void 0===this.volumeGroupExtId||null===this.volumeGroupExtId)return new x("volumeGroupExtId","undefined or null");if(!A.validatePattern(this.volumeGroupExtId,/^[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}$/))return new x("volumeGroupExtId","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}$/")}if("controllerUserBytes"===t){if(void 0===this.controllerUserBytes||null===this.controllerUserBytes)return new x("controllerUserBytes","undefined or null");if(!A.validateMaxItems(this.controllerUserBytes,100))return new x("controllerUserBytes","does not satisfy required maxItems constraint: 100")}if("controllerNumIOPS"===t){if(void 0===this.controllerNumIOPS||null===this.controllerNumIOPS)return new x("controllerNumIOPS","undefined or null");if(!A.validateMaxItems(this.controllerNumIOPS,100))return new x("controllerNumIOPS","does not satisfy required maxItems constraint: 100")}if("controllerNumReadIOPS"===t){if(void 0===this.controllerNumReadIOPS||null===this.controllerNumReadIOPS)return new x("controllerNumReadIOPS","undefined or null");if(!A.validateMaxItems(this.controllerNumReadIOPS,100))return new x("controllerNumReadIOPS","does not satisfy required maxItems constraint: 100")}if("controllerNumWriteIOPS"===t){if(void 0===this.controllerNumWriteIOPS||null===this.controllerNumWriteIOPS)return new x("controllerNumWriteIOPS","undefined or null");if(!A.validateMaxItems(this.controllerNumWriteIOPS,100))return new x("controllerNumWriteIOPS","does not satisfy required maxItems constraint: 100")}if("controllerIOBandwidthKBps"===t){if(void 0===this.controllerIOBandwidthKBps||null===this.controllerIOBandwidthKBps)return new x("controllerIOBandwidthKBps","undefined or null");if(!A.validateMaxItems(this.controllerIOBandwidthKBps,100))return new x("controllerIOBandwidthKBps","does not satisfy required maxItems constraint: 100")}if("controllerReadIOBandwidthKBps"===t){if(void 0===this.controllerReadIOBandwidthKBps||null===this.controllerReadIOBandwidthKBps)return new x("controllerReadIOBandwidthKBps","undefined or null");if(!A.validateMaxItems(this.controllerReadIOBandwidthKBps,100))return new x("controllerReadIOBandwidthKBps","does not satisfy required maxItems constraint: 100")}if("controllerWriteIOBandwidthKBps"===t){if(void 0===this.controllerWriteIOBandwidthKBps||null===this.controllerWriteIOBandwidthKBps)return new x("controllerWriteIOBandwidthKBps","undefined or null");if(!A.validateMaxItems(this.controllerWriteIOBandwidthKBps,100))return new x("controllerWriteIOBandwidthKBps","does not satisfy required maxItems constraint: 100")}if("controllerAvgIOLatencyUsecs"===t){if(void 0===this.controllerAvgIOLatencyUsecs||null===this.controllerAvgIOLatencyUsecs)return new x("controllerAvgIOLatencyUsecs","undefined or null");if(!A.validateMaxItems(this.controllerAvgIOLatencyUsecs,100))return new x("controllerAvgIOLatencyUsecs","does not satisfy required maxItems constraint: 100")}if("controllerAvgReadIOLatencyUsecs"===t){if(void 0===this.controllerAvgReadIOLatencyUsecs||null===this.controllerAvgReadIOLatencyUsecs)return new x("controllerAvgReadIOLatencyUsecs","undefined or null");if(!A.validateMaxItems(this.controllerAvgReadIOLatencyUsecs,100))return new x("controllerAvgReadIOLatencyUsecs","does not satisfy required maxItems constraint: 100")}if("controllerAvgWriteIOLatencyUsecs"===t){if(void 0===this.controllerAvgWriteIOLatencyUsecs||null===this.controllerAvgWriteIOLatencyUsecs)return new x("controllerAvgWriteIOLatencyUsecs","undefined or null");if(!A.validateMaxItems(this.controllerAvgWriteIOLatencyUsecs,100))return new x("controllerAvgWriteIOLatencyUsecs","does not satisfy required maxItems constraint: 100")}return new x(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,Ar.constructFromObject(e,a,!0),e.hasOwnProperty("volumeGroupExtId")&&null!==e.volumeGroupExtId&&void 0!==e.volumeGroupExtId&&a.setVolumeGroupExtId(e.volumeGroupExtId),e.hasOwnProperty("controllerUserBytes")&&null!==e.controllerUserBytes&&void 0!==e.controllerUserBytes){for(i=[],n=e.controllerUserBytes,o=0;o<n.length;o++)r=Kp.constructFromObject(n[o],void 0),i.push(r);a.setControllerUserBytes(i)}if(e.hasOwnProperty("controllerNumIOPS")&&null!==e.controllerNumIOPS&&void 0!==e.controllerNumIOPS){for(i=[],n=e.controllerNumIOPS,o=0;o<n.length;o++)r=Kp.constructFromObject(n[o],void 0),i.push(r);a.setControllerNumIOPS(i)}if(e.hasOwnProperty("controllerNumReadIOPS")&&null!==e.controllerNumReadIOPS&&void 0!==e.controllerNumReadIOPS){for(i=[],n=e.controllerNumReadIOPS,o=0;o<n.length;o++)r=Kp.constructFromObject(n[o],void 0),i.push(r);a.setControllerNumReadIOPS(i)}if(e.hasOwnProperty("controllerNumWriteIOPS")&&null!==e.controllerNumWriteIOPS&&void 0!==e.controllerNumWriteIOPS){for(i=[],n=e.controllerNumWriteIOPS,o=0;o<n.length;o++)r=Kp.constructFromObject(n[o],void 0),i.push(r);a.setControllerNumWriteIOPS(i)}if(e.hasOwnProperty("controllerIOBandwidthKBps")&&null!==e.controllerIOBandwidthKBps&&void 0!==e.controllerIOBandwidthKBps){for(i=[],n=e.controllerIOBandwidthKBps,o=0;o<n.length;o++)r=Kp.constructFromObject(n[o],void 0),i.push(r);a.setControllerIOBandwidthKBps(i)}if(e.hasOwnProperty("controllerReadIOBandwidthKBps")&&null!==e.controllerReadIOBandwidthKBps&&void 0!==e.controllerReadIOBandwidthKBps){for(i=[],n=e.controllerReadIOBandwidthKBps,o=0;o<n.length;o++)r=Kp.constructFromObject(n[o],void 0),i.push(r);a.setControllerReadIOBandwidthKBps(i)}if(e.hasOwnProperty("controllerWriteIOBandwidthKBps")&&null!==e.controllerWriteIOBandwidthKBps&&void 0!==e.controllerWriteIOBandwidthKBps){for(i=[],n=e.controllerWriteIOBandwidthKBps,o=0;o<n.length;o++)r=Kp.constructFromObject(n[o],void 0),i.push(r);a.setControllerWriteIOBandwidthKBps(i)}if(e.hasOwnProperty("controllerAvgIOLatencyUsecs")&&null!==e.controllerAvgIOLatencyUsecs&&void 0!==e.controllerAvgIOLatencyUsecs){for(i=[],n=e.controllerAvgIOLatencyUsecs,o=0;o<n.length;o++)r=Kp.constructFromObject(n[o],void 0),i.push(r);a.setControllerAvgIOLatencyUsecs(i)}if(e.hasOwnProperty("controllerAvgReadIOLatencyUsecs")&&null!==e.controllerAvgReadIOLatencyUsecs&&void 0!==e.controllerAvgReadIOLatencyUsecs){for(i=[],n=e.controllerAvgReadIOLatencyUsecs,o=0;o<n.length;o++)r=Kp.constructFromObject(n[o],void 0),i.push(r);a.setControllerAvgReadIOLatencyUsecs(i)}if(e.hasOwnProperty("controllerAvgWriteIOLatencyUsecs")&&null!==e.controllerAvgWriteIOLatencyUsecs&&void 0!==e.controllerAvgWriteIOLatencyUsecs){for(i=[],n=e.controllerAvgWriteIOLatencyUsecs,o=0;o<n.length;o++)r=Kp.constructFromObject(n[o],void 0),i.push(r);a.setControllerAvgWriteIOLatencyUsecs(i)}if(!s)for(var u in a.$unknownFields=Yp({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Zp(n.prototype,r),o&&Zp(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ar);function iy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ay(e){return ay="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ay(e)}function sy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sy(Object(n),!0).forEach(function(t){ly(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ly(e,t,n){return(t=fy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fy(r.key),r)}}function fy(e){var t=function(e){if("object"!=ay(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ay(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ay(t)?t:t+""}function dy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(dy=function(){return!!e})()}function py(e){return py=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},py(e)}function yy(e,t){return yy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yy(e,t)}function hy(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")}oy.prototype.volumeGroupExtId=void 0,oy.prototype.controllerUserBytes=void 0,oy.prototype.controllerNumIOPS=void 0,oy.prototype.controllerNumReadIOPS=void 0,oy.prototype.controllerNumWriteIOPS=void 0,oy.prototype.controllerIOBandwidthKBps=void 0,oy.prototype.controllerReadIOBandwidthKBps=void 0,oy.prototype.controllerWriteIOBandwidthKBps=void 0,oy.prototype.controllerAvgIOLatencyUsecs=void 0,oy.prototype.controllerAvgReadIOLatencyUsecs=void 0,oy.prototype.controllerAvgWriteIOLatencyUsecs=void 0,Ar.prototype.extId=void 0,Ar.prototype.links=void 0,wr.prototype.tenantId=void 0;var vy=new WeakSet,by=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=py(t),function(e,t){if(t&&("object"==ay(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,dy()?Reflect.construct(t,n||[],py(e).constructor):t.apply(e,n))}(this,t),vy),e.$objectType="volumes.v4.stats.GetVolumeGroupStatsApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yy(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return uy(uy(uy({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):hy(vy,this,my).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):hy(vy,this,my).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ay(e.data)){case"volumes.v4.stats.VolumeGroupStats":r.setData(oy.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":r.setData(gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=uy({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&cy(n.prototype,r),o&&cy(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function my(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return iy(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iy(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===ay(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function gy(e){return gy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gy(e)}function wy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Oy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wy(Object(n),!0).forEach(function(t){jy(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jy(e,t,n){return(t=ky(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ky(r.key),r)}}function ky(e){var t=function(e){if("object"!=gy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gy(t)?t:t+""}function Py(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Py=function(){return!!e})()}function Ty(e){return Ty=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ty(e)}function Sy(e,t){return Sy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sy(e,t)}by.prototype.metadata=void 0,by.prototype.data=void 0,by.prototype.$reserved=void 0,by.prototype.$objectType=void 0,by.prototype.$unknownFields=void 0;var Fy=new WeakSet,Ey=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Ty(t),function(e,t){if(t&&("object"==gy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Py()?Reflect.construct(t,n||[],Ty(e).constructor):t.apply(e,n))}(this,t),Fy),e.$objectType="volumes.v4.config.NvmfClientAttachmentProjection",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sy(e,t)}(t,e),n=t,r=[{key:"getNvmfClientProjection",value:function(){return this.nvmfClientProjection}},{key:"setNvmfClientProjection",value:function(e){this.nvmfClientProjection=e}},{key:"toJson",value:function(e){return Oy(!1===e?Oy(Oy(Oy(Oy(Oy({},void 0!==this.getNvmfClientProjection()&&null!==this.getNvmfClientProjection()?{nvmfClientProjection:this.getNvmfClientProjection().toJson(!1)}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Oy({},void 0!==this.getNvmfClientProjection()&&null!==this.getNvmfClientProjection()?{nvmfClientProjection:this.getNvmfClientProjection().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"nvmfClientProjection"!==t||void 0!==this.nvmfClientProjection&&null!==this.nvmfClientProjection?new x(t,"no such property exists"):new x("nvmfClientProjection","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,vs.constructFromObject(e,n,!0),e.hasOwnProperty("nvmfClientProjection")&&null!==e.nvmfClientProjection&&void 0!==e.nvmfClientProjection&&n.setNvmfClientProjection(xi.constructFromObject(e.nvmfClientProjection)),!r))for(var o in n.$unknownFields=Oy({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&$y(n.prototype,r),o&&$y(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(vs);function Iy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ay(e){return Ay="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ay(e)}function Dy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Cy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dy(Object(n),!0).forEach(function(t){Ry(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ry(e,t,n){return(t=Ny(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ny(r.key),r)}}function Ny(e){var t=function(e){if("object"!=Ay(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ay(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ay(t)?t:t+""}function _y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_y=function(){return!!e})()}function Uy(e){return Uy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Uy(e)}function Jy(e,t){return Jy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jy(e,t)}function My(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")}Ey.prototype.nvmfClientProjection=void 0,vs.prototype.clusterReference=void 0,Ar.prototype.extId=void 0,Ar.prototype.links=void 0,wr.prototype.tenantId=void 0;var By=new WeakSet,Ly=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Uy(t),function(e,t){if(t&&("object"==Ay(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_y()?Reflect.construct(t,n||[],Uy(e).constructor):t.apply(e,n))}(this,t),By),e.$objectType="volumes.v4.config.ListExternalNvmfAttachmentsApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jy(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Cy(Cy(Cy({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):My(By,this,Vy).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):My(By,this,Vy).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Ay(n[0]),o=0;o<n.length;o++)switch(a){case"volumes.v4.config.NvmfClientAttachment":r=vs.constructFromObject(n[o],void 0),i.push(r);break;case"volumes.v4.config.NvmfClientAttachmentProjection":r=Ey.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+a+" in data"}s.setData(i)}else{if("volumes.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ay(e.data)))throw"Unknown datatype "+a+" in data";s.setData(gn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var c in s.$unknownFields=Cy({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&xy(n.prototype,r),o&&xy(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Vy(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Iy(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Iy(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Ay(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function Wy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Gy(e){return Gy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gy(e)}function Ky(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ky(Object(n),!0).forEach(function(t){zy(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ky(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zy(e,t,n){return(t=Yy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yy(r.key),r)}}function Yy(e){var t=function(e){if("object"!=Gy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Gy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gy(t)?t:t+""}function Xy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Xy=function(){return!!e})()}function Zy(e){return Zy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Zy(e)}function Qy(e,t){return Qy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qy(e,t)}function eh(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")}Ly.prototype.metadata=void 0,Ly.prototype.data=void 0,Ly.prototype.$reserved=void 0,Ly.prototype.$objectType=void 0,Ly.prototype.$unknownFields=void 0;var th=new WeakSet,nh=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Zy(t),function(e,t){if(t&&("object"==Gy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Xy()?Reflect.construct(t,n||[],Zy(e).constructor):t.apply(e,n))}(this,t),th),e.$objectType="volumes.v4.config.UpdateVolumeGroupApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qy(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return qy(qy(qy({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):eh(th,this,rh).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):eh(th,this,rh).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Gy(e.data)){case"prism.v4.config.TaskReference":r.setData(Ct.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":r.setData(gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=qy({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Hy(n.prototype,r),o&&Hy(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function rh(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Wy(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wy(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Gy(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function oh(e){return oh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oh(e)}function ih(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ah(e,t,n){return(t=uh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uh(r.key),r)}}function uh(e){var t=function(e){if("object"!=oh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=oh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oh(t)?t:t+""}function lh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(lh=function(){return!!e})()}function ch(e){return ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ch(e)}function fh(e,t){return fh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fh(e,t)}nh.prototype.metadata=void 0,nh.prototype.data=void 0,nh.prototype.$reserved=void 0,nh.prototype.$objectType=void 0,nh.prototype.$unknownFields=void 0;var dh=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=ch(t),function(e,t){if(t&&("object"==oh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,lh()?Reflect.construct(t,n||[],ch(e).constructor):t.apply(e,n))}(this,t,[e])).$objectType="volumes.v4.config.VmAttachmentProjection",n.$reserved={$fv:"v4.r1"},n.$unknownFields={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fh(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=["extId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return new x(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,ks.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ih(Object(n),!0).forEach(function(t){ah(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ih(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&sh(n.prototype,r),o&&sh(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(ks);function ph(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yh(e){return yh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yh(e)}function hh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hh(Object(n),!0).forEach(function(t){bh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bh(e,t,n){return(t=gh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gh(r.key),r)}}function gh(e){var t=function(e){if("object"!=yh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yh(t)?t:t+""}function wh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(wh=function(){return!!e})()}function Oh(e){return Oh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Oh(e)}function jh(e,t){return jh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jh(e,t)}function $h(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")}var kh=new WeakSet,Ph=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Oh(t),function(e,t){if(t&&("object"==yh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,wh()?Reflect.construct(t,n||[],Oh(e).constructor):t.apply(e,n))}(this,t),kh),e.$objectType="volumes.v4.config.ListVmAttachmentsApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jh(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return vh(vh(vh({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):$h(kh,this,Th).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):$h(kh,this,Th).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:yh(n[0]),o=0;o<n.length;o++)switch(a){case"volumes.v4.config.VmAttachment":r=ks.constructFromObject(n[o],void 0),i.push(r);break;case"volumes.v4.config.VmAttachmentProjection":r=dh.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+a+" in data"}s.setData(i)}else{if("volumes.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:yh(e.data)))throw"Unknown datatype "+a+" in data";s.setData(gn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var c in s.$unknownFields=vh({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&mh(n.prototype,r),o&&mh(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Th(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ph(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ph(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===yh(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function Sh(e){return Sh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sh(e)}function Fh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Eh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fh(Object(n),!0).forEach(function(t){Ih(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ih(e,t,n){return(t=Dh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ah(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Dh(r.key),r)}}function Dh(e){var t=function(e){if("object"!=Sh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sh(t)?t:t+""}Ph.prototype.metadata=void 0,Ph.prototype.data=void 0,Ph.prototype.$reserved=void 0,Ph.prototype.$objectType=void 0,Ph.prototype.$unknownFields=void 0;var Ch=new WeakSet,Rh=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Ch),this.$objectType="volumes.v4.config.CategoryEntityReferences",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getCategories",value:function(){return this.categories}},{key:"setCategories",value:function(e){this.categories=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Eh(Eh({},void 0!==this.getCategories()&&null!==this.getCategories()?{categories:this.getCategories().map(function(e){return e.toJson(!1)})}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("categories"===t){if(void 0===this.categories||null===this.categories)return new x("categories","undefined or null");if(!A.validateMaxItems(this.categories,20))return new x("categories","does not satisfy required maxItems constraint: 20");if(!A.validateMinItems(this.categories,1))return new x("categories","does not satisfy required minItems constraint: 1")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("categories")&&null!==t.categories&&void 0!==t.categories){for(i=[],n=t.categories,o=0;o<n.length;o++)r=Gs.constructFromObject(n[o],void 0),i.push(r);a.setCategories(i)}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=Eh({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Ah(t.prototype,n),r&&Ah(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function xh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Nh(e){return Nh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nh(e)}function _h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Uh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_h(Object(n),!0).forEach(function(t){Jh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jh(e,t,n){return(t=Bh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bh(r.key),r)}}function Bh(e){var t=function(e){if("object"!=Nh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Nh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nh(t)?t:t+""}function Lh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Lh=function(){return!!e})()}function Vh(e){return Vh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vh(e)}function Wh(e,t){return Wh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wh(e,t)}function Gh(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")}Rh.prototype.categories=void 0,Rh.prototype.$reserved=void 0,Rh.prototype.$objectType=void 0,Rh.prototype.$unknownFields=void 0;var Kh=new WeakSet,qh=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Vh(t),function(e,t){if(t&&("object"==Nh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Lh()?Reflect.construct(t,n||[],Vh(e).constructor):t.apply(e,n))}(this,t),Kh),e.$objectType="volumes.v4.config.DisassociateCategoryApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wh(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Uh(Uh(Uh({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Gh(Kh,this,zh).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):Gh(Kh,this,zh).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Nh(e.data)){case"prism.v4.config.TaskReference":r.setData(Ct.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":r.setData(gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Uh({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Mh(n.prototype,r),o&&Mh(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function zh(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return xh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xh(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Nh(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function Hh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Yh(e){return Yh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yh(e)}function Xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xh(Object(n),!0).forEach(function(t){Qh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qh(e,t,n){return(t=tv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ev(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tv(r.key),r)}}function tv(e){var t=function(e){if("object"!=Yh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yh(t)?t:t+""}function nv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(nv=function(){return!!e})()}function rv(e){return rv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rv(e)}function ov(e,t){return ov=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ov(e,t)}function iv(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")}qh.prototype.metadata=void 0,qh.prototype.data=void 0,qh.prototype.$reserved=void 0,qh.prototype.$objectType=void 0,qh.prototype.$unknownFields=void 0;var av=new WeakSet,sv=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=rv(t),function(e,t){if(t&&("object"==Yh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,nv()?Reflect.construct(t,n||[],rv(e).constructor):t.apply(e,n))}(this,t),av),e.$objectType="volumes.v4.config.AttachIscsiClientApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ov(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Zh(Zh(Zh({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):iv(av,this,uv).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):iv(av,this,uv).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Yh(e.data)){case"prism.v4.config.TaskReference":r.setData(Ct.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":r.setData(gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Zh({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&ev(n.prototype,r),o&&ev(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function uv(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Hh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hh(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Yh(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function lv(e){return lv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lv(e)}function cv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cv(Object(n),!0).forEach(function(t){dv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dv(e,t,n){return(t=yv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yv(r.key),r)}}function yv(e){var t=function(e){if("object"!=lv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=lv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==lv(t)?t:t+""}function hv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(hv=function(){return!!e})()}function vv(e){return vv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vv(e)}function bv(e,t){return bv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bv(e,t)}sv.prototype.metadata=void 0,sv.prototype.data=void 0,sv.prototype.$reserved=void 0,sv.prototype.$objectType=void 0,sv.prototype.$unknownFields=void 0;var mv=new WeakSet,gv=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=vv(t),function(e,t){if(t&&("object"==lv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,hv()?Reflect.construct(t,n||[],vv(e).constructor):t.apply(e,n))}(this,t),mv),e.$objectType="volumes.v4.stats.VolumeDiskStats",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bv(e,t)}(t,e),n=t,r=[{key:"getVolumeDiskExtId",value:function(){return this.volumeDiskExtId}},{key:"setVolumeDiskExtId",value:function(e){this.volumeDiskExtId=e}},{key:"getControllerUserBytes",value:function(){return this.controllerUserBytes}},{key:"setControllerUserBytes",value:function(e){this.controllerUserBytes=e}},{key:"getControllerNumIOPS",value:function(){return this.controllerNumIOPS}},{key:"setControllerNumIOPS",value:function(e){this.controllerNumIOPS=e}},{key:"getControllerNumReadIOPS",value:function(){return this.controllerNumReadIOPS}},{key:"setControllerNumReadIOPS",value:function(e){this.controllerNumReadIOPS=e}},{key:"getControllerNumWriteIOPS",value:function(){return this.controllerNumWriteIOPS}},{key:"setControllerNumWriteIOPS",value:function(e){this.controllerNumWriteIOPS=e}},{key:"getControllerIOBandwidthKBps",value:function(){return this.controllerIOBandwidthKBps}},{key:"setControllerIOBandwidthKBps",value:function(e){this.controllerIOBandwidthKBps=e}},{key:"getControllerReadIOBandwidthKBps",value:function(){return this.controllerReadIOBandwidthKBps}},{key:"setControllerReadIOBandwidthKBps",value:function(e){this.controllerReadIOBandwidthKBps=e}},{key:"getControllerWriteIOBandwidthKBps",value:function(){return this.controllerWriteIOBandwidthKBps}},{key:"setControllerWriteIOBandwidthKBps",value:function(e){this.controllerWriteIOBandwidthKBps=e}},{key:"getControllerAvgIOLatencyUsecs",value:function(){return this.controllerAvgIOLatencyUsecs}},{key:"setControllerAvgIOLatencyUsecs",value:function(e){this.controllerAvgIOLatencyUsecs=e}},{key:"getControllerAvgReadIOLatencyUsecs",value:function(){return this.controllerAvgReadIOLatencyUsecs}},{key:"setControllerAvgReadIOLatencyUsecs",value:function(e){this.controllerAvgReadIOLatencyUsecs=e}},{key:"getControllerAvgWriteIOLatencyUsecs",value:function(){return this.controllerAvgWriteIOLatencyUsecs}},{key:"setControllerAvgWriteIOLatencyUsecs",value:function(e){this.controllerAvgWriteIOLatencyUsecs=e}},{key:"toJson",value:function(e){return fv(!1===e?fv(fv(fv(fv(fv(fv(fv(fv(fv(fv(fv(fv(fv(fv({},void 0!==this.getVolumeDiskExtId()&&null!==this.getVolumeDiskExtId()?{volumeDiskExtId:this.getVolumeDiskExtId()}:{}),void 0!==this.getControllerUserBytes()&&null!==this.getControllerUserBytes()?{controllerUserBytes:this.getControllerUserBytes().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getControllerNumIOPS()&&null!==this.getControllerNumIOPS()?{controllerNumIOPS:this.getControllerNumIOPS().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getControllerNumReadIOPS()&&null!==this.getControllerNumReadIOPS()?{controllerNumReadIOPS:this.getControllerNumReadIOPS().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getControllerNumWriteIOPS()&&null!==this.getControllerNumWriteIOPS()?{controllerNumWriteIOPS:this.getControllerNumWriteIOPS().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getControllerIOBandwidthKBps()&&null!==this.getControllerIOBandwidthKBps()?{controllerIOBandwidthKBps:this.getControllerIOBandwidthKBps().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getControllerReadIOBandwidthKBps()&&null!==this.getControllerReadIOBandwidthKBps()?{controllerReadIOBandwidthKBps:this.getControllerReadIOBandwidthKBps().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getControllerWriteIOBandwidthKBps()&&null!==this.getControllerWriteIOBandwidthKBps()?{controllerWriteIOBandwidthKBps:this.getControllerWriteIOBandwidthKBps().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getControllerAvgIOLatencyUsecs()&&null!==this.getControllerAvgIOLatencyUsecs()?{controllerAvgIOLatencyUsecs:this.getControllerAvgIOLatencyUsecs().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getControllerAvgReadIOLatencyUsecs()&&null!==this.getControllerAvgReadIOLatencyUsecs()?{controllerAvgReadIOLatencyUsecs:this.getControllerAvgReadIOLatencyUsecs().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getControllerAvgWriteIOLatencyUsecs()&&null!==this.getControllerAvgWriteIOLatencyUsecs()?{controllerAvgWriteIOLatencyUsecs:this.getControllerAvgWriteIOLatencyUsecs().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):fv({},void 0!==this.getVolumeDiskExtId()&&null!==this.getVolumeDiskExtId()?{volumeDiskExtId:this.getVolumeDiskExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("volumeDiskExtId"===t){if(void 0===this.volumeDiskExtId||null===this.volumeDiskExtId)return new x("volumeDiskExtId","undefined or null");if(!A.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}$/))return new x("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}$/")}if("controllerUserBytes"===t){if(void 0===this.controllerUserBytes||null===this.controllerUserBytes)return new x("controllerUserBytes","undefined or null");if(!A.validateMaxItems(this.controllerUserBytes,100))return new x("controllerUserBytes","does not satisfy required maxItems constraint: 100")}if("controllerNumIOPS"===t){if(void 0===this.controllerNumIOPS||null===this.controllerNumIOPS)return new x("controllerNumIOPS","undefined or null");if(!A.validateMaxItems(this.controllerNumIOPS,100))return new x("controllerNumIOPS","does not satisfy required maxItems constraint: 100")}if("controllerNumReadIOPS"===t){if(void 0===this.controllerNumReadIOPS||null===this.controllerNumReadIOPS)return new x("controllerNumReadIOPS","undefined or null");if(!A.validateMaxItems(this.controllerNumReadIOPS,100))return new x("controllerNumReadIOPS","does not satisfy required maxItems constraint: 100")}if("controllerNumWriteIOPS"===t){if(void 0===this.controllerNumWriteIOPS||null===this.controllerNumWriteIOPS)return new x("controllerNumWriteIOPS","undefined or null");if(!A.validateMaxItems(this.controllerNumWriteIOPS,100))return new x("controllerNumWriteIOPS","does not satisfy required maxItems constraint: 100")}if("controllerIOBandwidthKBps"===t){if(void 0===this.controllerIOBandwidthKBps||null===this.controllerIOBandwidthKBps)return new x("controllerIOBandwidthKBps","undefined or null");if(!A.validateMaxItems(this.controllerIOBandwidthKBps,100))return new x("controllerIOBandwidthKBps","does not satisfy required maxItems constraint: 100")}if("controllerReadIOBandwidthKBps"===t){if(void 0===this.controllerReadIOBandwidthKBps||null===this.controllerReadIOBandwidthKBps)return new x("controllerReadIOBandwidthKBps","undefined or null");if(!A.validateMaxItems(this.controllerReadIOBandwidthKBps,100))return new x("controllerReadIOBandwidthKBps","does not satisfy required maxItems constraint: 100")}if("controllerWriteIOBandwidthKBps"===t){if(void 0===this.controllerWriteIOBandwidthKBps||null===this.controllerWriteIOBandwidthKBps)return new x("controllerWriteIOBandwidthKBps","undefined or null");if(!A.validateMaxItems(this.controllerWriteIOBandwidthKBps,100))return new x("controllerWriteIOBandwidthKBps","does not satisfy required maxItems constraint: 100")}if("controllerAvgIOLatencyUsecs"===t){if(void 0===this.controllerAvgIOLatencyUsecs||null===this.controllerAvgIOLatencyUsecs)return new x("controllerAvgIOLatencyUsecs","undefined or null");if(!A.validateMaxItems(this.controllerAvgIOLatencyUsecs,100))return new x("controllerAvgIOLatencyUsecs","does not satisfy required maxItems constraint: 100")}if("controllerAvgReadIOLatencyUsecs"===t){if(void 0===this.controllerAvgReadIOLatencyUsecs||null===this.controllerAvgReadIOLatencyUsecs)return new x("controllerAvgReadIOLatencyUsecs","undefined or null");if(!A.validateMaxItems(this.controllerAvgReadIOLatencyUsecs,100))return new x("controllerAvgReadIOLatencyUsecs","does not satisfy required maxItems constraint: 100")}if("controllerAvgWriteIOLatencyUsecs"===t){if(void 0===this.controllerAvgWriteIOLatencyUsecs||null===this.controllerAvgWriteIOLatencyUsecs)return new x("controllerAvgWriteIOLatencyUsecs","undefined or null");if(!A.validateMaxItems(this.controllerAvgWriteIOLatencyUsecs,100))return new x("controllerAvgWriteIOLatencyUsecs","does not satisfy required maxItems constraint: 100")}return new x(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,Ar.constructFromObject(e,a,!0),e.hasOwnProperty("volumeDiskExtId")&&null!==e.volumeDiskExtId&&void 0!==e.volumeDiskExtId&&a.setVolumeDiskExtId(e.volumeDiskExtId),e.hasOwnProperty("controllerUserBytes")&&null!==e.controllerUserBytes&&void 0!==e.controllerUserBytes){for(i=[],n=e.controllerUserBytes,o=0;o<n.length;o++)r=Kp.constructFromObject(n[o],void 0),i.push(r);a.setControllerUserBytes(i)}if(e.hasOwnProperty("controllerNumIOPS")&&null!==e.controllerNumIOPS&&void 0!==e.controllerNumIOPS){for(i=[],n=e.controllerNumIOPS,o=0;o<n.length;o++)r=Kp.constructFromObject(n[o],void 0),i.push(r);a.setControllerNumIOPS(i)}if(e.hasOwnProperty("controllerNumReadIOPS")&&null!==e.controllerNumReadIOPS&&void 0!==e.controllerNumReadIOPS){for(i=[],n=e.controllerNumReadIOPS,o=0;o<n.length;o++)r=Kp.constructFromObject(n[o],void 0),i.push(r);a.setControllerNumReadIOPS(i)}if(e.hasOwnProperty("controllerNumWriteIOPS")&&null!==e.controllerNumWriteIOPS&&void 0!==e.controllerNumWriteIOPS){for(i=[],n=e.controllerNumWriteIOPS,o=0;o<n.length;o++)r=Kp.constructFromObject(n[o],void 0),i.push(r);a.setControllerNumWriteIOPS(i)}if(e.hasOwnProperty("controllerIOBandwidthKBps")&&null!==e.controllerIOBandwidthKBps&&void 0!==e.controllerIOBandwidthKBps){for(i=[],n=e.controllerIOBandwidthKBps,o=0;o<n.length;o++)r=Kp.constructFromObject(n[o],void 0),i.push(r);a.setControllerIOBandwidthKBps(i)}if(e.hasOwnProperty("controllerReadIOBandwidthKBps")&&null!==e.controllerReadIOBandwidthKBps&&void 0!==e.controllerReadIOBandwidthKBps){for(i=[],n=e.controllerReadIOBandwidthKBps,o=0;o<n.length;o++)r=Kp.constructFromObject(n[o],void 0),i.push(r);a.setControllerReadIOBandwidthKBps(i)}if(e.hasOwnProperty("controllerWriteIOBandwidthKBps")&&null!==e.controllerWriteIOBandwidthKBps&&void 0!==e.controllerWriteIOBandwidthKBps){for(i=[],n=e.controllerWriteIOBandwidthKBps,o=0;o<n.length;o++)r=Kp.constructFromObject(n[o],void 0),i.push(r);a.setControllerWriteIOBandwidthKBps(i)}if(e.hasOwnProperty("controllerAvgIOLatencyUsecs")&&null!==e.controllerAvgIOLatencyUsecs&&void 0!==e.controllerAvgIOLatencyUsecs){for(i=[],n=e.controllerAvgIOLatencyUsecs,o=0;o<n.length;o++)r=Kp.constructFromObject(n[o],void 0),i.push(r);a.setControllerAvgIOLatencyUsecs(i)}if(e.hasOwnProperty("controllerAvgReadIOLatencyUsecs")&&null!==e.controllerAvgReadIOLatencyUsecs&&void 0!==e.controllerAvgReadIOLatencyUsecs){for(i=[],n=e.controllerAvgReadIOLatencyUsecs,o=0;o<n.length;o++)r=Kp.constructFromObject(n[o],void 0),i.push(r);a.setControllerAvgReadIOLatencyUsecs(i)}if(e.hasOwnProperty("controllerAvgWriteIOLatencyUsecs")&&null!==e.controllerAvgWriteIOLatencyUsecs&&void 0!==e.controllerAvgWriteIOLatencyUsecs){for(i=[],n=e.controllerAvgWriteIOLatencyUsecs,o=0;o<n.length;o++)r=Kp.constructFromObject(n[o],void 0),i.push(r);a.setControllerAvgWriteIOLatencyUsecs(i)}if(!s)for(var u in a.$unknownFields=fv({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&pv(n.prototype,r),o&&pv(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ar);function wv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ov(e){return Ov="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ov(e)}function jv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jv(Object(n),!0).forEach(function(t){kv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kv(e,t,n){return(t=Tv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tv(r.key),r)}}function Tv(e){var t=function(e){if("object"!=Ov(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ov(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ov(t)?t:t+""}function Sv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Sv=function(){return!!e})()}function Fv(e){return Fv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fv(e)}function Ev(e,t){return Ev=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ev(e,t)}function Iv(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")}gv.prototype.volumeDiskExtId=void 0,gv.prototype.controllerUserBytes=void 0,gv.prototype.controllerNumIOPS=void 0,gv.prototype.controllerNumReadIOPS=void 0,gv.prototype.controllerNumWriteIOPS=void 0,gv.prototype.controllerIOBandwidthKBps=void 0,gv.prototype.controllerReadIOBandwidthKBps=void 0,gv.prototype.controllerWriteIOBandwidthKBps=void 0,gv.prototype.controllerAvgIOLatencyUsecs=void 0,gv.prototype.controllerAvgReadIOLatencyUsecs=void 0,gv.prototype.controllerAvgWriteIOLatencyUsecs=void 0,Ar.prototype.extId=void 0,Ar.prototype.links=void 0,wr.prototype.tenantId=void 0;var Av=new WeakSet,Dv=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Fv(t),function(e,t){if(t&&("object"==Ov(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Sv()?Reflect.construct(t,n||[],Fv(e).constructor):t.apply(e,n))}(this,t),Av),e.$objectType="volumes.v4.stats.GetVolumeDiskStatsApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ev(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return $v($v($v({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Iv(Av,this,Cv).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):Iv(Av,this,Cv).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ov(e.data)){case"volumes.v4.stats.VolumeDiskStats":r.setData(gv.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":r.setData(gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=$v({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Pv(n.prototype,r),o&&Pv(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Cv(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return wv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wv(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Ov(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function Rv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xv(e){return xv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xv(e)}function Nv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nv(Object(n),!0).forEach(function(t){Uv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Uv(e,t,n){return(t=Mv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mv(r.key),r)}}function Mv(e){var t=function(e){if("object"!=xv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xv(t)?t:t+""}function Bv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Bv=function(){return!!e})()}function Lv(e){return Lv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lv(e)}function Vv(e,t){return Vv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vv(e,t)}function Wv(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")}Dv.prototype.metadata=void 0,Dv.prototype.data=void 0,Dv.prototype.$reserved=void 0,Dv.prototype.$objectType=void 0,Dv.prototype.$unknownFields=void 0;var Gv=new WeakSet,Kv=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Lv(t),function(e,t){if(t&&("object"==xv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Bv()?Reflect.construct(t,n||[],Lv(e).constructor):t.apply(e,n))}(this,t),Gv),e.$objectType="volumes.v4.config.UpdateVolumeDiskApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vv(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return _v(_v(_v({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Wv(Gv,this,qv).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):Wv(Gv,this,qv).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:xv(e.data)){case"prism.v4.config.TaskReference":r.setData(Ct.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":r.setData(gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=_v({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Jv(n.prototype,r),o&&Jv(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function qv(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Rv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rv(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===xv(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function zv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Hv(e){return Hv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hv(e)}function Yv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yv(Object(n),!0).forEach(function(t){Zv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zv(e,t,n){return(t=eb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eb(r.key),r)}}function eb(e){var t=function(e){if("object"!=Hv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Hv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hv(t)?t:t+""}function tb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(tb=function(){return!!e})()}function nb(e){return nb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nb(e)}function rb(e,t){return rb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rb(e,t)}function ob(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")}Kv.prototype.metadata=void 0,Kv.prototype.data=void 0,Kv.prototype.$reserved=void 0,Kv.prototype.$objectType=void 0,Kv.prototype.$unknownFields=void 0;var ib=new WeakSet,ab=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=nb(t),function(e,t){if(t&&("object"==Hv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,tb()?Reflect.construct(t,n||[],nb(e).constructor):t.apply(e,n))}(this,t),ib),e.$objectType="volumes.v4.config.DetachVmApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rb(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Xv(Xv(Xv({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):ob(ib,this,sb).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):ob(ib,this,sb).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Hv(e.data)){case"prism.v4.config.TaskReference":r.setData(Ct.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":r.setData(gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Xv({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Qv(n.prototype,r),o&&Qv(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function sb(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return zv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zv(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Hv(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function ub(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lb(e){return lb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lb(e)}function cb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cb(Object(n),!0).forEach(function(t){db(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function db(e,t,n){return(t=yb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yb(r.key),r)}}function yb(e){var t=function(e){if("object"!=lb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=lb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==lb(t)?t:t+""}function hb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(hb=function(){return!!e})()}function vb(e){return vb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vb(e)}function bb(e,t){return bb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bb(e,t)}function mb(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")}ab.prototype.metadata=void 0,ab.prototype.data=void 0,ab.prototype.$reserved=void 0,ab.prototype.$objectType=void 0,ab.prototype.$unknownFields=void 0;var gb=new WeakSet,wb=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=vb(t),function(e,t){if(t&&("object"==lb(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,hb()?Reflect.construct(t,n||[],vb(e).constructor):t.apply(e,n))}(this,t),gb),e.$objectType="volumes.v4.config.AssociateCategoryApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bb(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return fb(fb(fb({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):mb(gb,this,Ob).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):mb(gb,this,Ob).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:lb(e.data)){case"prism.v4.config.TaskReference":r.setData(Ct.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":r.setData(gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=fb({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&pb(n.prototype,r),o&&pb(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Ob(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ub(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ub(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===lb(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function jb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $b(e){return $b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$b(e)}function kb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kb(Object(n),!0).forEach(function(t){Tb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Tb(e,t,n){return(t=Fb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fb(r.key),r)}}function Fb(e){var t=function(e){if("object"!=$b(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$b(t)?t:t+""}function Eb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Eb=function(){return!!e})()}function Ib(e){return Ib=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ib(e)}function Ab(e,t){return Ab=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ab(e,t)}function Db(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")}wb.prototype.metadata=void 0,wb.prototype.data=void 0,wb.prototype.$reserved=void 0,wb.prototype.$objectType=void 0,wb.prototype.$unknownFields=void 0;var Cb=new WeakSet,Rb=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Ib(t),function(e,t){if(t&&("object"==$b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Eb()?Reflect.construct(t,n||[],Ib(e).constructor):t.apply(e,n))}(this,t),Cb),e.$objectType="volumes.v4.config.DetachNvmfClientApiResponse",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ab(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Pb(Pb(Pb({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Db(Cb,this,xb).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):Db(Cb,this,xb).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("data","undefined or null"):new x("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:$b(e.data)){case"prism.v4.config.TaskReference":r.setData(Ct.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":r.setData(gn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Pb({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Sb(n.prototype,r),o&&Sb(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function xb(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return jb(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jb(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===$b(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function Nb(e){return Nb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nb(e)}function _b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ub(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_b(Object(n),!0).forEach(function(t){Jb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jb(e,t,n){return(t=Bb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bb(r.key),r)}}function Bb(e){var t=function(e){if("object"!=Nb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Nb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nb(t)?t:t+""}function Lb(e,t){return e.get(Vb(e,t))}function Vb(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")}Rb.prototype.metadata=void 0,Rb.prototype.data=void 0,Rb.prototype.$reserved=void 0,Rb.prototype.$objectType=void 0,Rb.prototype.$unknownFields=void 0;var Wb=new WeakMap,Gb=function(){return e=function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,Wb,void 0),this.apiClient=t||lt.instance,n=Wb,r=new Set,n.set(Vb(n,this),r),Lb(Wb,this).add("authorization"),Lb(Wb,this).add("cookie"),Lb(Wb,this).add("host"),Lb(Wb,this).add("user-agent")},t=[{key:"associateCategory",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof Rh&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling associateCategory");if(null==n)throw new Error("Invalid body when calling associateCategory");var i={extId:e},a={};Object.keys(o).forEach(function(e){Lb(Wb,r).has(e.toLowerCase())||(a[e]=o[e])});var s=Ub({},a);lt.addEtagReferenceToHeader(t,s);var u=wb;return this.apiClient.callApi("/api/volumes/v4.1/config/volume-groups/{extId}/$actions/associate-category","POST",i,{},s,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}},{key:"attachIscsiClient",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof eo&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling attachIscsiClient");if(null==n)throw new Error("Invalid body when calling attachIscsiClient");var i={extId:e},a={};Object.keys(o).forEach(function(e){Lb(Wb,r).has(e.toLowerCase())||(a[e]=o[e])});var s=Ub({},a);lt.addEtagReferenceToHeader(t,s);var u=sv;return this.apiClient.callApi("/api/volumes/v4.1/config/volume-groups/{extId}/$actions/attach-iscsi-client","POST",i,{},s,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}},{key:"attachNvmfClient",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof ki&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling attachNvmfClient");if(null==n)throw new Error("Invalid body when calling attachNvmfClient");var i={extId:e},a={};Object.keys(o).forEach(function(e){Lb(Wb,r).has(e.toLowerCase())||(a[e]=o[e])});var s=Ub({},a);lt.addEtagReferenceToHeader(t,s);var u=zd;return this.apiClient.callApi("/api/volumes/v4.1/config/volume-groups/{extId}/$actions/attach-nvmf-client","POST",i,{},s,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}},{key:"attachVm",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof ks&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling attachVm");if(null==n)throw new Error("Invalid body when calling attachVm");var i={extId:e},a={};Object.keys(o).forEach(function(e){Lb(Wb,r).has(e.toLowerCase())||(a[e]=o[e])});var s=Ub({},a);lt.addEtagReferenceToHeader(t,s);var u=df;return this.apiClient.callApi("/api/volumes/v4.1/config/volume-groups/{extId}/$actions/attach-vm","POST",i,{},s,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}},{key:"createVolumeDisk",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof cu&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'volumeGroupExtId' when calling createVolumeDisk");if(null==n)throw new Error("Invalid body when calling createVolumeDisk");var i={volumeGroupExtId:e},a={};Object.keys(o).forEach(function(e){Lb(Wb,r).has(e.toLowerCase())||(a[e]=o[e])});var s=Ub({},a);lt.addEtagReferenceToHeader(t,s);var u=jp;return this.apiClient.callApi("/api/volumes/v4.1/config/volume-groups/{volumeGroupExtId}/disks","POST",i,{},s,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}},{key:"createVolumeGroup",value:function(e){var t,n=this,r=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==(t=e instanceof Ou&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createVolumeGroup");var o={};Object.keys(r).forEach(function(e){Lb(Wb,n).has(e.toLowerCase())||(o[e]=r[e])});var i=Ub({},o);lt.addEtagReferenceToHeader(e,i);var a=Nl;return this.apiClient.callApi("/api/volumes/v4.1/config/volume-groups","POST",{},{},i,{},t,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],a)}},{key:"deleteVolumeDiskById",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(null==e)throw new Error("Missing the required parameter 'volumeGroupExtId' when calling deleteVolumeDiskById");if(null==t)throw new Error("Missing the required parameter 'extId' when calling deleteVolumeDiskById");var o={volumeGroupExtId:e,extId:t},i={};Object.keys(r).forEach(function(e){Lb(Wb,n).has(e.toLowerCase())||(i[e]=r[e])});var a=Ub({},i),s=Np;return this.apiClient.callApi("/api/volumes/v4.1/config/volume-groups/{volumeGroupExtId}/disks/{extId}","DELETE",o,{},a,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"deleteVolumeGroupById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteVolumeGroupById");var r={extId:e},o={};Object.keys(n).forEach(function(e){Lb(Wb,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Ub({},o),a=Rd;return this.apiClient.callApi("/api/volumes/v4.1/config/volume-groups/{extId}","DELETE",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"detachIscsiClient",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof is&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling detachIscsiClient");if(null==n)throw new Error("Invalid body when calling detachIscsiClient");var i={extId:e},a={};Object.keys(o).forEach(function(e){Lb(Wb,r).has(e.toLowerCase())||(a[e]=o[e])});var s=Ub({},a);lt.addEtagReferenceToHeader(t,s);var u=Sc;return this.apiClient.callApi("/api/volumes/v4.1/config/volume-groups/{extId}/$actions/detach-iscsi-client","POST",i,{},s,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}},{key:"detachNvmfClient",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof ki&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling detachNvmfClient");if(null==n)throw new Error("Invalid body when calling detachNvmfClient");var i={extId:e},a={};Object.keys(o).forEach(function(e){Lb(Wb,r).has(e.toLowerCase())||(a[e]=o[e])});var s=Ub({},a);lt.addEtagReferenceToHeader(t,s);var u=Rb;return this.apiClient.callApi("/api/volumes/v4.1/config/volume-groups/{extId}/$actions/detach-nvmf-client","POST",i,{},s,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}},{key:"detachVm",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof ks&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling detachVm");if(null==n)throw new Error("Invalid body when calling detachVm");var i={extId:e},a={};Object.keys(o).forEach(function(e){Lb(Wb,r).has(e.toLowerCase())||(a[e]=o[e])});var s=Ub({},a);lt.addEtagReferenceToHeader(t,s);var u=ab;return this.apiClient.callApi("/api/volumes/v4.1/config/volume-groups/{extId}/$actions/detach-vm","POST",i,{},s,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}},{key:"disassociateCategory",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof Rh&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling disassociateCategory");if(null==n)throw new Error("Invalid body when calling disassociateCategory");var i={extId:e},a={};Object.keys(o).forEach(function(e){Lb(Wb,r).has(e.toLowerCase())||(a[e]=o[e])});var s=Ub({},a);lt.addEtagReferenceToHeader(t,s);var u=qh;return this.apiClient.callApi("/api/volumes/v4.1/config/volume-groups/{extId}/$actions/disassociate-category","POST",i,{},s,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}},{key:"getVolumeDiskById",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(null==e)throw new Error("Missing the required parameter 'volumeGroupExtId' when calling getVolumeDiskById");if(null==t)throw new Error("Missing the required parameter 'extId' when calling getVolumeDiskById");var o={volumeGroupExtId:e,extId:t},i={};Object.keys(r).forEach(function(e){Lb(Wb,n).has(e.toLowerCase())||(i[e]=r[e])});var a=Ub({},i),s=Tf;return this.apiClient.callApi("/api/volumes/v4.1/config/volume-groups/{volumeGroupExtId}/disks/{extId}","GET",o,{},a,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"getVolumeDiskStats",value:function(e,t,n,r,o){var i=this,a=(arguments.length<=5?0:arguments.length-5)>0?arguments.length<=5?void 0:arguments[5]:{};if(o=o||{},null==e)throw new Error("Missing the required parameter 'volumeGroupExtId' when calling getVolumeDiskStats");if(null==t)throw new Error("Missing the required parameter 'extId' when calling getVolumeDiskStats");if(null==n)throw new Error("Missing the required parameter '$startTime' when calling getVolumeDiskStats");if(null==r)throw new Error("Missing the required parameter '$endTime' when calling getVolumeDiskStats");var s={volumeGroupExtId:e,extId:t},u=Ub(Ub(Ub(Ub(Ub({},{$startTime:n}),{$endTime:r}),o.hasOwnProperty("$samplingInterval")?{$samplingInterval:o.$samplingInterval}:{}),o.hasOwnProperty("$statType")?{$statType:o.$statType}:{}),o.hasOwnProperty("$select")?{$select:o.$select}:{}),l={};Object.keys(a).forEach(function(e){Lb(Wb,i).has(e.toLowerCase())||(l[e]=a[e])});var c=Ub({},l),f=Dv;return this.apiClient.callApi("/api/volumes/v4.1/stats/volume-groups/{volumeGroupExtId}/disks/{extId}","GET",s,u,c,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],f)}},{key:"getVolumeGroupById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getVolumeGroupById");var r={extId:e},o={};Object.keys(n).forEach(function(e){Lb(Wb,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Ub({},o),a=Ru;return this.apiClient.callApi("/api/volumes/v4.1/config/volume-groups/{extId}","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"getVolumeGroupMetadataById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'volumeGroupExtId' when calling getVolumeGroupMetadataById");var r={volumeGroupExtId:e},o={};Object.keys(n).forEach(function(e){Lb(Wb,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Ub({},o),a=Xc;return this.apiClient.callApi("/api/volumes/v4.1/config/volume-groups/{volumeGroupExtId}/metadata","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"getVolumeGroupStats",value:function(e,t,n,r){var o=this,i=(arguments.length<=4?0:arguments.length-4)>0?arguments.length<=4?void 0:arguments[4]:{};if(r=r||{},null==e)throw new Error("Missing the required parameter 'extId' when calling getVolumeGroupStats");if(null==t)throw new Error("Missing the required parameter '$startTime' when calling getVolumeGroupStats");if(null==n)throw new Error("Missing the required parameter '$endTime' when calling getVolumeGroupStats");var a={extId:e},s=Ub(Ub(Ub(Ub(Ub({},{$startTime:t}),{$endTime:n}),r.hasOwnProperty("$samplingInterval")?{$samplingInterval:r.$samplingInterval}:{}),r.hasOwnProperty("$statType")?{$statType:r.$statType}:{}),r.hasOwnProperty("$select")?{$select:r.$select}:{}),u={};Object.keys(i).forEach(function(e){Lb(Wb,o).has(e.toLowerCase())||(u[e]=i[e])});var l=Ub({},u),c=by;return this.apiClient.callApi("/api/volumes/v4.1/stats/volume-groups/{extId}","GET",a,s,l,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],c)}},{key:"listCategoryAssociationsByVolumeGroupId",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'volumeGroupExtId' when calling listCategoryAssociationsByVolumeGroupId");var o={volumeGroupExtId:e},i=Ub(Ub({},t.hasOwnProperty("$page")?{$page:t.$page}:{}),t.hasOwnProperty("$limit")?{$limit:t.$limit}:{}),a={};Object.keys(r).forEach(function(e){Lb(Wb,n).has(e.toLowerCase())||(a[e]=r[e])});var s=Ub({},a),u=Hf;return this.apiClient.callApi("/api/volumes/v4.1/config/volume-groups/{volumeGroupExtId}/category-associations","GET",o,i,s,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],u)}},{key:"listExternalIscsiAttachmentsByVolumeGroupId",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'volumeGroupExtId' when calling listExternalIscsiAttachmentsByVolumeGroupId");var o={volumeGroupExtId:e},i=Ub(Ub(Ub(Ub(Ub(Ub({},t.hasOwnProperty("$page")?{$page:t.$page}:{}),t.hasOwnProperty("$limit")?{$limit:t.$limit}:{}),t.hasOwnProperty("$filter")?{$filter:t.$filter}:{}),t.hasOwnProperty("$orderby")?{$orderby:t.$orderby}:{}),t.hasOwnProperty("$expand")?{$expand:t.$expand}:{}),t.hasOwnProperty("$select")?{$select:t.$select}:{}),a={};Object.keys(r).forEach(function(e){Lb(Wb,n).has(e.toLowerCase())||(a[e]=r[e])});var s=Ub({},a),u=wd;return this.apiClient.callApi("/api/volumes/v4.1/config/volume-groups/{volumeGroupExtId}/external-iscsi-attachments","GET",o,i,s,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],u)}},{key:"listExternalNvmfAttachmentsByVolumeGroupId",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'volumeGroupExtId' when calling listExternalNvmfAttachmentsByVolumeGroupId");var o={volumeGroupExtId:e},i=Ub(Ub(Ub(Ub(Ub(Ub({},t.hasOwnProperty("$page")?{$page:t.$page}:{}),t.hasOwnProperty("$limit")?{$limit:t.$limit}:{}),t.hasOwnProperty("$filter")?{$filter:t.$filter}:{}),t.hasOwnProperty("$orderby")?{$orderby:t.$orderby}:{}),t.hasOwnProperty("$expand")?{$expand:t.$expand}:{}),t.hasOwnProperty("$select")?{$select:t.$select}:{}),a={};Object.keys(r).forEach(function(e){Lb(Wb,n).has(e.toLowerCase())||(a[e]=r[e])});var s=Ub({},a),u=Ly;return this.apiClient.callApi("/api/volumes/v4.1/config/volume-groups/{volumeGroupExtId}/external-nvmf-attachments","GET",o,i,s,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],u)}},{key:"listVmAttachmentsByVolumeGroupId",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'volumeGroupExtId' when calling listVmAttachmentsByVolumeGroupId");var o={volumeGroupExtId:e},i=Ub(Ub(Ub(Ub({},t.hasOwnProperty("$page")?{$page:t.$page}:{}),t.hasOwnProperty("$limit")?{$limit:t.$limit}:{}),t.hasOwnProperty("$filter")?{$filter:t.$filter}:{}),t.hasOwnProperty("$orderby")?{$orderby:t.$orderby}:{}),a={};Object.keys(r).forEach(function(e){Lb(Wb,n).has(e.toLowerCase())||(a[e]=r[e])});var s=Ub({},a),u=Ph;return this.apiClient.callApi("/api/volumes/v4.1/config/volume-groups/{volumeGroupExtId}/vm-attachments","GET",o,i,s,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],u)}},{key:"listVolumeDisksByVolumeGroupId",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'volumeGroupExtId' when calling listVolumeDisksByVolumeGroupId");var o={volumeGroupExtId:e},i=Ub(Ub(Ub(Ub(Ub({},t.hasOwnProperty("$page")?{$page:t.$page}:{}),t.hasOwnProperty("$limit")?{$limit:t.$limit}:{}),t.hasOwnProperty("$filter")?{$filter:t.$filter}:{}),t.hasOwnProperty("$orderby")?{$orderby:t.$orderby}:{}),t.hasOwnProperty("$select")?{$select:t.$select}:{}),a={};Object.keys(r).forEach(function(e){Lb(Wb,n).has(e.toLowerCase())||(a[e]=r[e])});var s=Ub({},a),u=ic;return this.apiClient.callApi("/api/volumes/v4.1/config/volume-groups/{volumeGroupExtId}/disks","GET",o,i,s,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],u)}},{key:"listVolumeGroups",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=Ub(Ub(Ub(Ub(Ub(Ub({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{}),e.hasOwnProperty("$expand")?{$expand:e.$expand}:{}),e.hasOwnProperty("$select")?{$select:e.$select}:{}),o={};Object.keys(n).forEach(function(e){Lb(Wb,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Ub({},o),a=jl;return this.apiClient.callApi("/api/volumes/v4.1/config/volume-groups","GET",{},r,i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"revertVolumeGroup",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof yc&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling revertVolumeGroup");if(null==n)throw new Error("Invalid body when calling revertVolumeGroup");var i={extId:e},a={};Object.keys(o).forEach(function(e){Lb(Wb,r).has(e.toLowerCase())||(a[e]=o[e])});var s=Ub({},a);lt.addEtagReferenceToHeader(t,s);var u=up;return this.apiClient.callApi("/api/volumes/v4.1/config/volume-groups/{extId}/$actions/revert","POST",i,{},s,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}},{key:"updateVolumeDiskById",value:function(e,t,n){var r,o=this,i=(arguments.length<=3?0:arguments.length-3)>0?arguments.length<=3?void 0:arguments[3]:{};if(r=n instanceof cu&&"function"==typeof n.toJson?n.toJson():n,null==e)throw new Error("Missing the required parameter 'volumeGroupExtId' when calling updateVolumeDiskById");if(null==t)throw new Error("Missing the required parameter 'extId' when calling updateVolumeDiskById");if(null==r)throw new Error("Invalid body when calling updateVolumeDiskById");var a={volumeGroupExtId:e,extId:t},s={};Object.keys(i).forEach(function(e){Lb(Wb,o).has(e.toLowerCase())||(s[e]=i[e])});var u=Ub({},s);lt.addEtagReferenceToHeader(n,u);var l=Kv;return this.apiClient.callApi("/api/volumes/v4.1/config/volume-groups/{volumeGroupExtId}/disks/{extId}","PUT",a,{},u,{},r,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}},{key:"updateVolumeGroupById",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof Ou&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateVolumeGroupById");if(null==n)throw new Error("Invalid body when calling updateVolumeGroupById");var i={extId:e},a={};Object.keys(o).forEach(function(e){Lb(Wb,r).has(e.toLowerCase())||(a[e]=o[e])});var s=Ub({},a);lt.addEtagReferenceToHeader(t,s);var u=nh;return this.apiClient.callApi("/api/volumes/v4.1/config/volume-groups/{extId}","PUT",i,{},s,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&Mb(e.prototype,t),n&&Mb(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Kb(e){return Kb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kb(e)}function qb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qb(Object(n),!0).forEach(function(t){Hb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hb(e,t,n){return(t=Xb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xb(r.key),r)}}function Xb(e){var t=function(e){if("object"!=Kb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Kb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Kb(t)?t:t+""}var Zb=new WeakSet,Qb=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Zb),this.$objectType="volumes.v4.config.AccessToken",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getJwtToken",value:function(){return this.jwtToken}},{key:"setJwtToken",value:function(e){this.jwtToken=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return zb(zb({},void 0!==this.getJwtToken()&&null!==this.getJwtToken()?{jwtToken:this.getJwtToken()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"jwtToken"!==t||void 0!==this.jwtToken&&null!==this.jwtToken?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("jwtToken","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("jwtToken")&&null!==t.jwtToken&&void 0!==t.jwtToken&&n.setJwtToken(t.jwtToken),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=zb({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Yb(t.prototype,n),r&&Yb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Qb.prototype.jwtToken=void 0,Qb.prototype.$reserved=void 0,Qb.prototype.$objectType=void 0,Qb.prototype.$unknownFields=void 0;var em={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",NONE:"NONE",ISCSI_CLIENT:"ISCSI_CLIENT",VM_CLIENT:"VM_CLIENT",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(em).find(function(t){return em[t]===e});return null==t?em.$UNKNOWN:em[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case em.$UNKNOWN:case em.$REDACTED:case em.NONE:case em.ISCSI_CLIENT:case em.VM_CLIENT:return;default:throw new Error("Invalid : must be ClientAccess.{ $UNKNOWN|$REDACTED|NONE|ISCSI_CLIENT|VM_CLIENT }")}}};Object.freeze(em);const tm=em;function nm(e){return nm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nm(e)}function rm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function om(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rm(Object(n),!0).forEach(function(t){im(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function im(e,t,n){return(t=sm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function am(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sm(r.key),r)}}function sm(e){var t=function(e){if("object"!=nm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nm(t)?t:t+""}var um=new WeakSet,lm=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,um),this.clusterExtId=t,this.$objectType="volumes.v4.config.ClusterScope",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return om(om({},void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=["clusterExtId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new x("clusterExtId","undefined or null");if(!A.validatePattern(this.clusterExtId,/^[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}$/))return new x("clusterExtId","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}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("clusterExtId")&&null!==t.clusterExtId&&void 0!==t.clusterExtId&&n.setClusterExtId(t.clusterExtId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=om({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&am(t.prototype,n),r&&am(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function cm(e){return cm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cm(e)}function fm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dm(e,t,n){return(t=ym(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ym(r.key),r)}}function ym(e){var t=function(e){if("object"!=cm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cm(t)?t:t+""}function hm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(hm=function(){return!!e})()}function vm(e){return vm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vm(e)}function bm(e,t){return bm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bm(e,t)}lm.prototype.clusterExtId=void 0,lm.prototype.$reserved=void 0,lm.prototype.$objectType=void 0,lm.prototype.$unknownFields=void 0;var mm=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=vm(t),function(e,t){if(t&&("object"==cm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,hm()?Reflect.construct(t,n||[],vm(e).constructor):t.apply(e,n))}(this,t,[e])).$objectType="volumes.v4.config.ClusterScopeProjection",n.$reserved={$fv:"v4.r1"},n.$unknownFields={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bm(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=["clusterExtId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return new x(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,lm.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fm(Object(n),!0).forEach(function(t){dm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&pm(n.prototype,r),o&&pm(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(lm);function gm(e){return gm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gm(e)}function wm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Om(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wm(Object(n),!0).forEach(function(t){jm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jm(e,t,n){return(t=km(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,km(r.key),r)}}function km(e){var t=function(e){if("object"!=gm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gm(t)?t:t+""}var Pm=new WeakSet,Tm=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Pm),this.$objectType="volumes.v4.config.VolumeGroupDelegateAccessSpec",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getClientAccess",value:function(){return this.clientAccess}},{key:"setClientAccess",value:function(e){this.clientAccess=e}},{key:"getCluster",value:function(){return this.cluster}},{key:"setCluster",value:function(e){this.cluster=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Om(Om(Om({},void 0!==this.getClientAccess()&&null!==this.getClientAccess()?{clientAccess:this.getClientAccess()}:{}),void 0!==this.getCluster()&&null!==this.getCluster()?{cluster:this.getCluster().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"clientAccess"!==t||void 0!==this.clientAccess&&null!==this.clientAccess?"cluster"!==t||void 0!==this.cluster&&null!==this.cluster?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new x(t,"no such property exists"):new x("$unknownFields","undefined or null"):new x("$objectType","undefined or null"):new x("$reserved","undefined or null"):new x("cluster","undefined or null"):new x("clientAccess","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("clientAccess")&&null!==t.clientAccess&&void 0!==t.clientAccess&&n.setClientAccess(tm.constructFromObject(t.clientAccess)),t.hasOwnProperty("cluster")&&null!==t.cluster&&void 0!==t.cluster&&n.setCluster(lm.constructFromObject(t.cluster)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Om({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&$m(t.prototype,n),r&&$m(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Sm(e){return Sm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sm(e)}function Fm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Em(e,t,n){return(t=Am(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Im(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Am(r.key),r)}}function Am(e){var t=function(e){if("object"!=Sm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sm(t)?t:t+""}function Dm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Dm=function(){return!!e})()}function Cm(e){return Cm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cm(e)}function Rm(e,t){return Rm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rm(e,t)}Tm.prototype.clientAccess=void 0,Tm.prototype.cluster=void 0,Tm.prototype.$reserved=void 0,Tm.prototype.$objectType=void 0,Tm.prototype.$unknownFields=void 0;var xm=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Cm(t),function(e,t){if(t&&("object"==Sm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Dm()?Reflect.construct(t,n||[],Cm(e).constructor):t.apply(e,n))}(this,t)).$objectType="volumes.v4.stats.VolumeDiskStatsProjection",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rm(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return new x(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,gv.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fm(Object(n),!0).forEach(function(t){Em(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Im(n.prototype,r),o&&Im(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(gv);function Nm(e){return Nm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nm(e)}function _m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Um(e,t,n){return(t=Mm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mm(r.key),r)}}function Mm(e){var t=function(e){if("object"!=Nm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Nm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nm(t)?t:t+""}function Bm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Bm=function(){return!!e})()}function Lm(e){return Lm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lm(e)}function Vm(e,t){return Vm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vm(e,t)}var Wm=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Lm(t),function(e,t){if(t&&("object"==Nm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Bm()?Reflect.construct(t,n||[],Lm(e).constructor):t.apply(e,n))}(this,t)).$objectType="volumes.v4.stats.VolumeGroupStatsProjection",e.$reserved={$fv:"v4.r1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vm(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return new x(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,oy.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_m(Object(n),!0).forEach(function(t){Um(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Jm(n.prototype,r),o&&Jm(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(oy);const Gm={ApiClient:lt,IscsiClientsApi:pi,NvmfClientsApi:ga,VolumeGroupsApi:Gb,EntityReference:Gs,EntityType:_s,FQDN:Ln,Flag:V,IPAddressOrFQDN:dr,IPv4Address:Yn,IPv6Address:or,KVPair:ce,MapOfStringWrapper:Q,Message:Oe,MessageSeverity:pe,Metadata:Uc,TenantAwareModel:wr,ApiLink:Ee,ApiResponseMetadata:Ue,ExternalizableAbstractModel:Ar,DownSamplingOperator:Ic,TaskReference:Ct,AccessToken:Qb,AssociateCategoryApiResponse:wb,AttachIscsiClientApiResponse:sv,AttachNvmfClientApiResponse:zd,AttachVmApiResponse:df,AttachmentType:Oa,AuthenticationType:Cr,CategoryDetails:Nf,CategoryEntityReferences:Rh,ClientAccess:tm,Cluster:uo,ClusterProjection:mo,ClusterScope:lm,ClusterScopeProjection:mm,CreateVolumeDiskApiResponse:jp,CreateVolumeGroupApiResponse:Nl,DeleteVolumeDiskApiResponse:Np,DeleteVolumeGroupApiResponse:Rd,DetachIscsiClientApiResponse:Sc,DetachNvmfClientApiResponse:Rb,DetachVmApiResponse:ab,DisassociateCategoryApiResponse:qh,DiskStorageFeatures:Qs,FlashMode:Ba,GetIscsiClientApiResponse:ni,GetNvmfClientApiResponse:ua,GetVolumeDiskApiResponse:Tf,GetVolumeGroupApiResponse:Ru,GetVolumeGroupMetadataApiResponse:Xc,IscsiClient:eo,IscsiClientAttachment:is,IscsiClientAttachmentProjection:sd,IscsiClientProjection:Eo,IscsiFeatures:Ea,ListCategoryAssociationsApiResponse:Hf,ListExternalIscsiAttachmentsApiResponse:wd,ListExternalNvmfAttachmentsApiResponse:Ly,ListIscsiClientsApiResponse:Lo,ListNvmfClientsApiResponse:zi,ListVmAttachmentsApiResponse:Ph,ListVolumeDisksApiResponse:ic,ListVolumeGroupsApiResponse:jl,NvmfClient:ki,NvmfClientAttachment:vs,NvmfClientAttachmentProjection:Ey,NvmfClientProjection:xi,Protocol:Aa,RevertSpec:yc,RevertVolumeGroupApiResponse:up,SharingStatus:Ca,StorageFeatures:Ha,TargetParam:Br,UpdateIscsiClientApiResponse:Cn,UpdateVolumeDiskApiResponse:Kv,UpdateVolumeGroupApiResponse:nh,UsageType:Xa,VGAttachment:Rs,VmAttachment:ks,VmAttachmentProjection:dh,VolumeDisk:cu,VolumeDiskProjection:Kl,VolumeGroup:Ou,VolumeGroupAttachmentSite:Vr,VolumeGroupDelegateAccessSpec:Tm,VolumeGroupMetadata:Vu,VolumeGroupMetadataProjection:Zu,VolumeGroupProjection:ll,AppMessage:Vt,ErrorResponse:gn,SchemaValidationError:un,SchemaValidationErrorMessage:Zt,GetVolumeDiskStatsApiResponse:Dv,GetVolumeGroupStatsApiResponse:by,TimeValuePair:Kp,VolumeDiskStats:gv,VolumeDiskStatsProjection:xm,VolumeGroupStats:oy,VolumeGroupStatsProjection:Wm}})(),r.default})());
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Ntnx=t():(e.Ntnx=e.Ntnx||{},e.Ntnx.Volumes=t())}(Object("undefined"==typeof self?this:self),()=>(()=>{var e={960(e){function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,s=this._callbacks["$"+e];if(!s)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<s.length;i++)if((n=s[i])===t||n.fn===t){s.splice(i,1);break}return 0===s.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],s=1;s<arguments.length;s++)t[s-1]=arguments[s];if(n){s=0;for(var i=(n=n.slice(0)).length;s<i;++s)n[s].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},340(e){e.exports=o,o.default=o,o.stable=u,o.stableStringify=u;var t="[...]",n="[Circular]",s=[],i=[];function r(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function o(e,t,n,o){var a;void 0===o&&(o=r()),l(e,"",0,[],void 0,0,o);try{a=0===i.length?JSON.stringify(e,t,n):JSON.stringify(e,c(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==s.length;){var d=s.pop();4===d.length?Object.defineProperty(d[0],d[1],d[3]):d[0][d[1]]=d[2]}}return a}function a(e,t,n,r){var o=Object.getOwnPropertyDescriptor(r,n);void 0!==o.get?o.configurable?(Object.defineProperty(r,n,{value:e}),s.push([r,n,t,o])):i.push([t,n,e]):(r[n]=e,s.push([r,n,t]))}function l(e,s,i,r,o,d,u){var h;if(d+=1,"object"==typeof e&&null!==e){for(h=0;h<r.length;h++)if(r[h]===e)return void a(n,e,s,o);if(void 0!==u.depthLimit&&d>u.depthLimit)return void a(t,e,s,o);if(void 0!==u.edgesLimit&&i+1>u.edgesLimit)return void a(t,e,s,o);if(r.push(e),Array.isArray(e))for(h=0;h<e.length;h++)l(e[h],h,h,r,e,d,u);else{var c=Object.keys(e);for(h=0;h<c.length;h++){var p=c[h];l(e[p],p,h,r,e,d,u)}}r.pop()}}function d(e,t){return e<t?-1:e>t?1:0}function u(e,t,n,o){void 0===o&&(o=r());var a,l=h(e,"",0,[],void 0,0,o)||e;try{a=0===i.length?JSON.stringify(l,t,n):JSON.stringify(l,c(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==s.length;){var d=s.pop();4===d.length?Object.defineProperty(d[0],d[1],d[3]):d[0][d[1]]=d[2]}}return a}function h(e,i,r,o,l,u,c){var p;if(u+=1,"object"==typeof e&&null!==e){for(p=0;p<o.length;p++)if(o[p]===e)return void a(n,e,i,l);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==c.depthLimit&&u>c.depthLimit)return void a(t,e,i,l);if(void 0!==c.edgesLimit&&r+1>c.edgesLimit)return void a(t,e,i,l);if(o.push(e),Array.isArray(e))for(p=0;p<e.length;p++)h(e[p],p,p,o,e,u,c);else{var v={},g=Object.keys(e).sort(d);for(p=0;p<g.length;p++){var y=g[p];h(e[y],y,p,o,e,u,c),v[y]=e[y]}if(void 0===l)return v;s.push([l,i,e]),l[i]=v}o.pop()}}function c(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(i.length>0)for(var s=0;s<i.length;s++){var r=i[s];if(r[1]===t&&r[0]===n){n=r[2],i.splice(s,1);break}}return e.call(this,t,n)}}},784(e,t,n){"use strict";var s="win32"===process.platform,i=n(818);function r(e,t){for(var n=[],s=0;s<e.length;s++){var i=e[s];i&&"."!==i&&(".."===i?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(i))}return n}function o(e){for(var t=e.length-1,n=0;n<=t&&!e[n];n++);for(var s=t;s>=0&&!e[s];s--);return 0===n&&s===t?e:n>s?[]:e.slice(n,s+1)}var a=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,l=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,d={};function u(e){var t=a.exec(e),n=(t[1]||"")+(t[2]||""),s=t[3]||"",i=l.exec(s);return[n,i[1],i[2],i[3]]}function h(e){var t=a.exec(e),n=t[1]||"",s=!!n&&":"!==n[1];return{device:n,isUnc:s,isAbsolute:s||!!t[2],tail:t[3]}}function c(e){return"\\\\"+e.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}d.resolve=function(){for(var e="",t="",n=!1,s=arguments.length-1;s>=-1;s--){var o;if(s>=0?o=arguments[s]:e?(o=process.env["="+e])&&o.substr(0,3).toLowerCase()===e.toLowerCase()+"\\"||(o=e+"\\"):o=process.cwd(),!i.isString(o))throw new TypeError("Arguments to path.resolve must be strings");if(o){var a=h(o),l=a.device,d=a.isUnc,u=a.isAbsolute,p=a.tail;if((!l||!e||l.toLowerCase()===e.toLowerCase())&&(e||(e=l),n||(t=p+"\\"+t,n=u),e&&n))break}}return d&&(e=c(e)),e+(n?"\\":"")+(t=r(t.split(/[\\\/]+/),!n).join("\\"))||"."},d.normalize=function(e){var t=h(e),n=t.device,s=t.isUnc,i=t.isAbsolute,o=t.tail,a=/[\\\/]$/.test(o);return(o=r(o.split(/[\\\/]+/),!i).join("\\"))||i||(o="."),o&&a&&(o+="\\"),s&&(n=c(n)),n+(i?"\\":"")+o},d.isAbsolute=function(e){return h(e).isAbsolute},d.join=function(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(!i.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&e.push(n)}var s=e.join("\\");return/^[\\\/]{2}[^\\\/]/.test(e[0])||(s=s.replace(/^[\\\/]{2,}/,"\\")),d.normalize(s)},d.relative=function(e,t){e=d.resolve(e),t=d.resolve(t);for(var n=e.toLowerCase(),s=t.toLowerCase(),i=o(t.split("\\")),r=o(n.split("\\")),a=o(s.split("\\")),l=Math.min(r.length,a.length),u=l,h=0;h<l;h++)if(r[h]!==a[h]){u=h;break}if(0==u)return t;var c=[];for(h=u;h<r.length;h++)c.push("..");return(c=c.concat(i.slice(u))).join("\\")},d._makeLong=function(e){if(!i.isString(e))return e;if(!e)return"";var t=d.resolve(e);return/^[a-zA-Z]\:\\/.test(t)?"\\\\?\\"+t:/^\\\\[^?.]/.test(t)?"\\\\?\\UNC\\"+t.substring(2):e},d.dirname=function(e){var t=u(e),n=t[0],s=t[1];return n||s?(s&&(s=s.substr(0,s.length-1)),n+s):"."},d.basename=function(e,t){var n=u(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},d.extname=function(e){return u(e)[3]},d.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof e.root);var n=e.dir,s=e.base||"";return n?n[n.length-1]===d.sep?n+s:n+d.sep+s:s},d.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=u(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},d.sep="\\",d.delimiter=";";var p=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,v={};function g(e){return p.exec(e).slice(1)}v.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var s=n>=0?arguments[n]:process.cwd();if(!i.isString(s))throw new TypeError("Arguments to path.resolve must be strings");s&&(e=s+"/"+e,t="/"===s[0])}return(t?"/":"")+(e=r(e.split("/"),!t).join("/"))||"."},v.normalize=function(e){var t=v.isAbsolute(e),n=e&&"/"===e[e.length-1];return(e=r(e.split("/"),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},v.isAbsolute=function(e){return"/"===e.charAt(0)},v.join=function(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];if(!i.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&(e+=e?"/"+n:n)}return v.normalize(e)},v.relative=function(e,t){e=v.resolve(e).substr(1),t=v.resolve(t).substr(1);for(var n=o(e.split("/")),s=o(t.split("/")),i=Math.min(n.length,s.length),r=i,a=0;a<i;a++)if(n[a]!==s[a]){r=a;break}var l=[];for(a=r;a<n.length;a++)l.push("..");return(l=l.concat(s.slice(r))).join("/")},v._makeLong=function(e){return e},v.dirname=function(e){var t=g(e),n=t[0],s=t[1];return n||s?(s&&(s=s.substr(0,s.length-1)),n+s):"."},v.basename=function(e,t){var n=g(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},v.extname=function(e){return g(e)[3]},v.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof e.root);return(e.dir?e.dir+v.sep:"")+(e.base||"")},v.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=g(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return t[1]=t[1]||"",t[2]=t[2]||"",t[3]=t[3]||"",{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},v.sep="/",v.delimiter=":",e.exports=s?d:v,e.exports.posix=v,e.exports.win32=d},540(e){function t(e,t){if(this._maxRetries&&this._retries++<this._maxRetries&&function(e,t,n,s){if(s)return s(e,t);if(e&&e.code&&~["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT","ENOTFOUND","ECONNREFUSED"].indexOf(e.code))return!0;if(t&&t.status){const e=t.status;if(e>=500)return!0;if((e>=400||e<200)&&-1===n.indexOf(e))return!0}return!(!e||!("timeout"in e)||"ECONNABORTED"!==e.code)||e&&"crossDomain"in e}(e,t,this._allowedStatuses,this._retryCallback)){let e;e=this._retries?this._retryDelays[this._retries-1]:0;const t=this;return setTimeout(function(){return t._retry()},e)}const n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)}function n(e,t,n,s){0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),"number"==typeof t&&(t=[t]);const i=t.length,r=e-i;if(0!==r){if(r<0)throw new Error("Cannot have more delays than retries");{const e=t[i-1];for(let n=0;n<r+1;n++)t.push(e)}}return this._maxRetries=e,this._retries=0,this._retryDelays=t||[0],this._allowedStatuses=n||[],this._retryCallback=s,this}e.exports=function(e){const s=e.Request;return s.prototype.oldRetry=s.prototype.retry,s.prototype.retry=n,s.prototype.callback=t,e}},619(e){"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach(function(e){n.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return this._defaults.push({fn:e,args:n}),this}}),n.prototype._setDefaults=function(e){this._defaults.forEach(function(n){var s;e[n.fn].apply(e,function(e){if(Array.isArray(e))return t(e)}(s=n.args)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(s)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var s=Object.prototype.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?t(e,n):void 0}}(s)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())})},e.exports=n},585(e,t,n){"use strict";function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var i;"undefined"!=typeof window?i=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),i=void 0):i=self;var r=n(960),o=n(340),a=n(695),l=n(388),d=n(19),u=n(619);function h(){}e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};var c=t=e.exports;t.Request=$,c.getXHR=function(){if(i.XMLHttpRequest&&(!i.location||"file:"!==i.location.protocol||!i.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function v(e){if(!l(e))return e;var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&g(t,n,e[n]);return t.join("&")}function g(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach(function(n){g(e,t,n)});else if(l(n))for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&g(e,"".concat(t,"[").concat(s,"]"),n[s]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function y(e){for(var t,n,s={},i=e.split("&"),r=0,o=i.length;r<o;++r)-1===(n=(t=i[r]).indexOf("="))?s[decodeURIComponent(t)]="":s[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return s}function w(e){return/[/+]json($|[^-\w])/.test(e)}function f(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,n,s,i,r=e.split(/\r?\n/),o={},a=0,l=r.length;a<l;++a)-1!==(t=(n=r[a]).indexOf(":"))&&(s=n.slice(0,t).toLowerCase(),i=p(n.slice(t+1)),o[s]=i);return o}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function $(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",function(){var e,t=null,s=null;try{s=new f(n)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",s);try{n._isResponseOK(s)||(e=new Error(s.statusText||s.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=s,e.status=s.status,n.callback(e,s)):n.callback(null,s)})}function m(e,t,n){var s=c("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&s.send(t),n&&s.end(n),s}c.serializeObject=v,c.parseString=y,c.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},c.serialize={"application/x-www-form-urlencoded":v,"application/json":o},c.parse={"application/x-www-form-urlencoded":y,"application/json":JSON.parse},d(f.prototype),f.prototype._parseBody=function(e){var t=c.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&w(this.type)&&(t=c.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},f.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,s="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),i=new Error(s);return i.status=this.status,i.method=t,i.url=n,i},c.Response=f,r($.prototype),a($.prototype),$.prototype.type=function(e){return this.set("Content-Type",c.types[e]||e),this},$.prototype.accept=function(e){return this.set("Accept",c.types[e]||e),this},$.prototype.auth=function(e,t,n){return 1===arguments.length&&(t=""),"object"===s(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"}),this._auth(e,t,n,function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")})},$.prototype.query=function(e){return"string"!=typeof e&&(e=v(e)),e&&this._query.push(e),this},$.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},$.prototype._getFormData=function(){return this._formData||(this._formData=new i.FormData),this._formData},$.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},$.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},$.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},$.prototype.ca=$.prototype.agent,$.prototype.buffer=$.prototype.ca,$.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},$.prototype.pipe=$.prototype.write,$.prototype._isHost=function(e){return e&&"object"===s(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},$.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||h,this._finalizeQueryString(),this._end()},$.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},$.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=c.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var s;try{s=t.status}catch(e){s=0}if(!s){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var s=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",s.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",s.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var i=this._header["content-type"],r=this._serializer||c.serialize[i?i.split(";")[0]:""];!r&&w(i)&&(r=c.serialize["application/json"]),r&&(n=r(n))}for(var o in this.header)null!==this.header[o]&&Object.prototype.hasOwnProperty.call(this.header,o)&&t.setRequestHeader(o,this.header[o]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},c.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){u.prototype[e.toLowerCase()]=function(t,n){var s=new c.Request(e,t);return this._setDefaults(s),n&&s.end(n),s}}),u.prototype.del=u.prototype.delete,c.get=function(e,t,n){var s=c("GET",e);return"function"==typeof t&&(n=t,t=null),t&&s.query(t),n&&s.end(n),s},c.head=function(e,t,n){var s=c("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&s.query(t),n&&s.end(n),s},c.options=function(e,t,n){var s=c("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&s.send(t),n&&s.end(n),s},c.del=m,c.delete=m,c.patch=function(e,t,n){var s=c("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&s.send(t),n&&s.end(n),s},c.post=function(e,t,n){var s=c("POST",e);return"function"==typeof t&&(n=t,t=null),t&&s.send(t),n&&s.end(n),s},c.put=function(e,t,n){var s=c("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&s.send(t),n&&s.end(n),s}},388(e){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return null!==e&&"object"===t(e)}},695(e,t,n){"use strict";function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var i=n(388);function r(e){if(e)return function(e){for(var t in r.prototype)Object.prototype.hasOwnProperty.call(r.prototype,t)&&(e[t]=r.prototype[t]);return e}(e)}e.exports=r,r.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},r.prototype.parse=function(e){return this._parser=e,this},r.prototype.responseType=function(e){return this._responseType=e,this},r.prototype.serialize=function(e){return this._serializer=e,this},r.prototype.timeout=function(e){if(!e||"object"!==s(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},r.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var o=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];r.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!==t.status)return!0;if(e){if(e.code&&o.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},r.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},r.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var s=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){s.on("abort",function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}}),s.end(function(n,s){n?t(n):e(s)})})}return this._fullfilledPromise.then(e,t)},r.prototype.catch=function(e){return this.then(void 0,e)},r.prototype.use=function(e){return e(this),this},r.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},r.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},r.prototype.get=function(e){return this._header[e.toLowerCase()]},r.prototype.getHeader=r.prototype.get,r.prototype.set=function(e,t){if(i(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},r.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},r.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(i(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&this.field(e,t[s]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},r.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},r.prototype._auth=function(e,t,n,s){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(s("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},r.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},r.prototype.redirects=function(e){return this._maxRedirects=e,this},r.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},r.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},r.prototype.send=function(e){var t=i(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&i(this._data))for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(this._data[s]=e[s]);else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},r.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},r.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},r.prototype._appendQueryString=function(){console.warn("Unsupported")},r.prototype._timeoutError=function(e,t,n){if(!this._aborted){var s=new Error("".concat(e+t,"ms exceeded"));s.timeout=t,s.code="ECONNABORTED",s.errno=n,this.timedout=!0,this.timedoutError=s,this.abort(),this.callback(s)}},r.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},19(e,t,n){"use strict";var s=n(897);function i(e){if(e)return function(e){for(var t in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,t)&&(e[t]=i.prototype[t]);return e}(e)}e.exports=i,i.prototype.get=function(e){return this.header[e.toLowerCase()]},i.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=s.type(t);var n=s.params(t);for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(this[i]=n[i]);this.links={};try{e.link&&(this.links=s.parseLinks(e.link))}catch(e){}},i.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},897(e,t){"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce(function(e,t){var n=t.split(/ *= */),s=n.shift(),i=n.shift();return s&&i&&(e[s]=i),e},{})},t.parseLinks=function(e){return e.split(/ *, */).reduce(function(e,t){var n=t.split(/ *; */),s=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=s,e},{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},597(e){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},98(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},818(e,t,n){var s=/%[sdj%]/g;t.format=function(e){if(!y(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(o(arguments[n]));return t.join(" ")}n=1;for(var i=arguments,r=i.length,a=String(e).replace(s,function(e){if("%%"===e)return"%";if(n>=r)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return e}}),l=i[n];n<r;l=i[++n])v(l)||!$(l)?a+=" "+l:a+=" "+o(l);return a},t.deprecate=function(e,s){if(w(n.g.process))return function(){return t.deprecate(e,s).apply(this,arguments)};if(!0===process.noDeprecation)return e;var i=!1;return function(){if(!i){if(process.throwDeprecation)throw new Error(s);process.traceDeprecation?console.trace(s):console.error(s),i=!0}return e.apply(this,arguments)}};var i,r={};function o(e,n){var s={seen:[],stylize:l};return arguments.length>=3&&(s.depth=arguments[2]),arguments.length>=4&&(s.colors=arguments[3]),p(n)?s.showHidden=n:n&&t._extend(s,n),w(s.showHidden)&&(s.showHidden=!1),w(s.depth)&&(s.depth=2),w(s.colors)&&(s.colors=!1),w(s.customInspect)&&(s.customInspect=!0),s.colors&&(s.stylize=a),d(s,e,s.depth)}function a(e,t){var n=o.styles[t];return n?"["+o.colors[n][0]+"m"+e+"["+o.colors[n][1]+"m":e}function l(e,t){return e}function d(e,n,s){if(e.customInspect&&n&&b(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(s,e);return y(i)||(i=d(e,i,s)),i}var r=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(y(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):p(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}(e,n);if(r)return r;var o=Object.keys(n),a=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(n)),k(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return u(n);if(0===o.length){if(b(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(f(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(m(n))return e.stylize(Date.prototype.toString.call(n),"date");if(k(n))return u(n)}var $,j="",T=!1,F=["{","}"];return c(n)&&(T=!0,F=["[","]"]),b(n)&&(j=" [Function"+(n.name?": "+n.name:"")+"]"),f(n)&&(j=" "+RegExp.prototype.toString.call(n)),m(n)&&(j=" "+Date.prototype.toUTCString.call(n)),k(n)&&(j=" "+u(n)),0!==o.length||T&&0!=n.length?s<0?f(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),$=T?function(e,t,n,s,i){for(var r=[],o=0,a=t.length;o<a;++o)O(t,String(o))?r.push(h(e,t,n,s,String(o),!0)):r.push("");return i.forEach(function(i){i.match(/^\d+$/)||r.push(h(e,t,n,s,i,!0))}),r}(e,n,s,a,o):o.map(function(t){return h(e,n,s,a,t,T)}),e.seen.pop(),function(e,t,n){return e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}($,j,F)):F[0]+j+F[1]}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,s,i,r){var o,a,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),O(s,i)||(o="["+i+"]"),a||(e.seen.indexOf(l.value)<0?(a=v(n)?d(e,l.value,null):d(e,l.value,n-1)).indexOf("\n")>-1&&(a=r?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),w(o)){if(r&&i.match(/^\d+$/))return a;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+a}function c(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function v(e){return null===e}function g(e){return"number"==typeof e}function y(e){return"string"==typeof e}function w(e){return void 0===e}function f(e){return $(e)&&"[object RegExp]"===j(e)}function $(e){return"object"==typeof e&&null!==e}function m(e){return $(e)&&"[object Date]"===j(e)}function k(e){return $(e)&&("[object Error]"===j(e)||e instanceof Error)}function b(e){return"function"==typeof e}function j(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(w(i)&&(i=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!r[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var n=process.pid;r[e]=function(){var s=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,s)}}else r[e]=function(){};return r[e]},t.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=c,t.isBoolean=p,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=w,t.isRegExp=f,t.isObject=$,t.isDate=m,t.isError=k,t.isFunction=b,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(98);var F=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[T((e=new Date).getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":"),[e.getDate(),F[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(597),t._extend=function(e,t){if(!t||!$(t))return e;for(var n=Object.keys(t),s=n.length;s--;)e[n[s]]=t[n[s]];return e}},548(){},799(){},545(){},965(){}},t={};function n(s){var i=t[s];if(void 0!==i)return i.exports;var r=t[s]={exports:{}};return e[s](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var s={};return(()=>{"use strict";n.d(s,{default:()=>er});var e,t=n(585),i=n.n(t);class r{constructor(){}static constructFromObject(e,t){if(e){if(t=t||new r,e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links)for(const n of e.links)if(n.hasOwnProperty("rel")&&n.hasOwnProperty("href"))switch(n.rel){case"first":t.linkFirst=n.href;break;case"prev":t.linkPrev=n.href;break;case"next":t.linkNext=n.href;break;case"last":t.linkLast=n.href}e.hasOwnProperty("totalAvailableResults")&&(t.resultsTotal=e.totalAvailableResults)}return t}getFirstPage(){return this.isFirstPage()?Promise.reject("Cannot navigate to first page : already on first page"):null===this.linkFirst?Promise.reject("No link to first page provided in previous API response"):this._getLink(this.linkFirst)}getPrevPage(){return this.isFirstPage()?Promise.reject("Cannot navigate to previous page : already on first page"):null===this.linkPrev?Promise.reject("No link to previous page provided in previous API response"):this._getLink(this.linkPrev)}getNextPage(){return this.isLastPage()?Promise.reject("Cannot navigate to next page : already on last page"):null===this.linkNext?Promise.reject("No link to next page provided in previous API response"):this._getLink(this.linkNext)}getLastPage(){return this.isLastPage()?Promise.reject("Cannot navigate to last page : already on last page"):null===this.linkLast?Promise.reject("No link to last page provided in previous API response"):this._getLink(this.linkLast)}currentPage(){return null===this.page?0:this.page}countPages(){return null===this.resultsPerPage||null===this.resultsTotal||0===this.resultsPerPage?1:Math.ceil(this.resultsTotal/this.resultsPerPage)}isFirstPage(){return 0===this.currentPage()}isLastPage(){return this.currentPage()===this.countPages()-1}populatePaginationMetadata(e,t,n){this.apiClient=e,this.page=t,this.resultsPerPage=n}_getLink(e){null===this.apiClient&&(this.apiClient=le.instance);const t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}r.prototype.linkFirst=null,r.prototype.linkPrev=null,r.prototype.linkNext=null,r.prototype.linkLast=null,r.prototype.apiClient=null,r.prototype.page=null,r.prototype.resultsPerPage=null,r.prototype.resultsTotal=null;var o=new Uint8Array(16);function a(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(o)}const l=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var d=[],u=0;u<256;++u)d.push((u+256).toString(16).substr(1));const h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(d[e[t+0]]+d[e[t+1]]+d[e[t+2]]+d[e[t+3]]+"-"+d[e[t+4]]+d[e[t+5]]+"-"+d[e[t+6]]+d[e[t+7]]+"-"+d[e[t+8]]+d[e[t+9]]+"-"+d[e[t+10]]+d[e[t+11]]+d[e[t+12]]+d[e[t+13]]+d[e[t+14]]+d[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&l.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},c=function(e,t,n){var s=(e=e||{}).random||(e.rng||a)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=s[i];return t}return h(s)};var p=n(540),v=n.n(p),g=n(545),y=n.n(g),w=n(799),f=n.n(w),$=n(784),m=n.n($),k=n(548);const b={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return b[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e){if(e===b.DEFAULT)return;throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(b);const j=b;class T{static validateMaximum(e,t){return!(null===t||e>t)}static validateMinimum(e,t){return!(null===t||e<t)}static validateExclusiveMaximum(e,t){return!(null===t||e>t)}static validateExclusiveMinimum(e,t){return!(null===t||e>t)}static validateMultipleOf(e,t){return!(null===t||e%t===0)}static validateMaxLength(e,t){return!(null===t||e.length>t)}static validateMinLength(e,t){return!(null===t||e.length<t)}static validatePattern(e,t){return!(null===t||null===e.match(t))}static validateMaxItems(e,t){return!(null===t||e.length>t)}static validateMinItems(e,t){return!(null===t||e.length<t)}static validateUniqueItems(e,t){return!(null===t||!t||e.length!==new Set(e).size)}}class F{constructor(e,t){this.name=e,this.message=t}getName(){return this.name}setName(e){this.name=e}getMessage(){return this.message}setMessage(e){this.message=e}toJson(){return{name:this.getName(),message:this.getMessage()}}}var O=new WeakSet;class I{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=O),t.add(e),this.$objectType="common.v1.config.Flag",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new I,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value&&t.setValue(e.value),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getValue(){return this.value}setValue(e){this.value=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new F("name","undefined or null");if(!T.validateMaxLength(this.name,128))return new F("name","does not satisfy required maxLength constraint: 128");if(!T.validateMinLength(this.name,3))return new F("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("value","undefined or null")}}function P(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")}I.prototype.name=void 0,I.prototype.value=!1,I.prototype.$reserved=void 0,I.prototype.$objectType=void 0,I.prototype.$unknownFields=void 0;var A=new WeakSet;class E{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=A),t.add(e),this.$objectType="common.v1.config.MapOfStringWrapper",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new E,e.hasOwnProperty("map")&&null!==e.map&&void 0!==e.map&&t.setMap(e.map),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMap(){return this.map}setMap(e){this.map=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMap()&&null!==this.getMap()?{map:P(A,this,C).call(this,this.getMap(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMap()&&null!==this.getMap()?{map:P(A,this,C).call(this,this.getMap())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"map"!==t||void 0!==this.map&&null!==this.map?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("map","undefined or null")}}function C(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function R(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")}E.prototype.map=void 0,E.prototype.$reserved=void 0,E.prototype.$objectType=void 0,E.prototype.$unknownFields=void 0;var D=new WeakSet;class U{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=D),t.add(e),this.$objectType="common.v1.config.KVPair",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r,o,a;if(e){if(t=t||new U,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value)if(Array.isArray(e.value))if(0===e.value.length)t.setValue([]);else{for(o=[],s=e.value,a=s[0].hasOwnProperty("$objectType")?s[0].$objectType:typeof s[0],r=0;r<s.length;r++)switch(a){case"string":case"integer":case"number":o.push(s[r]);break;case"common.v1.config.MapOfStringWrapper":i=E.constructFromObject(s[r],void 0),o.push(i);break;default:throw"Unknown list of type "+a+" in data"}t.setValue(o)}else switch(a=e.value.hasOwnProperty("$objectType")?e.value.$objectType:typeof e.value,a){case"string":case"boolean":case"number":t.setValue(e.value);break;case"object":t.setValue(new Map(Object.entries(e.value)));break;default:throw"Unknown datatype "+a+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getValue(){return this.value}setValue(e){this.value=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson(!1):Array.isArray(this.getValue())?this.getValue().map(e=>void 0!==e.toJson?e.toJson(!1):e):R(D,this,x).call(this,this.getValue(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map(e=>void 0!==e.toJson?e.toJson():e):R(D,this,x).call(this,this.getValue())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new F("name","undefined or null");if(!T.validateMaxLength(this.name,128))return new F("name","does not satisfy required maxLength constraint: 128");if(!T.validateMinLength(this.name,3))return new F("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("value","undefined or null")}}function x(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}U.prototype.name=void 0,U.prototype.value=void 0,U.prototype.$reserved=void 0,U.prototype.$objectType=void 0,U.prototype.$unknownFields=void 0;const S={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(S).find(t=>S[t]===e);return null==t?S.$UNKNOWN:S[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case S.$UNKNOWN:case S.$REDACTED:case S.INFO:case S.WARNING:case S.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(S);const N=S;var M=new WeakSet;class J{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=M),t.add(e),this.$objectType="common.v1.config.Message",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new J,e.hasOwnProperty("code")&&null!==e.code&&void 0!==e.code&&t.setCode(e.code),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&t.setMessage(e.message),e.hasOwnProperty("locale")&&null!==e.locale&&void 0!==e.locale&&t.setLocale(e.locale),e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&t.setSeverity(N.constructFromObject(e.severity)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getCode(){return this.code}setCode(e){this.code=e}getMessage(){return this.message}setMessage(e){this.message=e}getLocale(){return this.locale}setLocale(e){this.locale=e}getSeverity(){return this.severity}setSeverity(e){this.severity=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{},...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{},...void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"code"!==t||void 0!==this.code&&null!==this.code?"message"!==t||void 0!==this.message&&null!==this.message?"locale"!==t||void 0!==this.locale&&null!==this.locale?"severity"!==t||void 0!==this.severity&&null!==this.severity?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("severity","undefined or null"):new F("locale","undefined or null"):new F("message","undefined or null"):new F("code","undefined or null")}}J.prototype.code=void 0,J.prototype.message=void 0,J.prototype.locale="en_US",J.prototype.severity=void 0,J.prototype.$reserved=void 0,J.prototype.$objectType=void 0,J.prototype.$unknownFields=void 0;var B=new WeakSet;class L{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=B),t.add(e),this.$objectType="common.v1.response.ApiLink",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new L,e.hasOwnProperty("href")&&null!==e.href&&void 0!==e.href&&t.setHref(e.href),e.hasOwnProperty("rel")&&null!==e.rel&&void 0!==e.rel&&t.setRel(e.rel),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getHref(){return this.href}setHref(e){this.href=e}getRel(){return this.rel}setRel(e){this.rel=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getHref()&&null!==this.getHref()?{href:this.getHref()}:{},...void 0!==this.getRel()&&null!==this.getRel()?{rel:this.getRel()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"href"!==t||void 0!==this.href&&null!==this.href?"rel"!==t||void 0!==this.rel&&null!==this.rel?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("rel","undefined or null"):new F("href","undefined or null")}}L.prototype.href=void 0,L.prototype.rel=void 0,L.prototype.$reserved=void 0,L.prototype.$objectType=void 0,L.prototype.$unknownFields=void 0;var _,V=new WeakSet;class W{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=V),t.add(e),this.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r,o;if(e){if(t=t||new W,e.hasOwnProperty("flags")&&null!==e.flags&&void 0!==e.flags){for(o=[],s=e.flags,r=0;r<s.length;r++)i=I.constructFromObject(s[r],void 0),o.push(i);t.setFlags(o)}if(e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(o=[],s=e.links,r=0;r<s.length;r++)i=L.constructFromObject(s[r],void 0),o.push(i);t.setLinks(o)}if(e.hasOwnProperty("totalAvailableResults")&&null!==e.totalAvailableResults&&void 0!==e.totalAvailableResults&&t.setTotalAvailableResults(e.totalAvailableResults),e.hasOwnProperty("messages")&&null!==e.messages&&void 0!==e.messages){for(o=[],s=e.messages,r=0;r<s.length;r++)i=J.constructFromObject(s[r],void 0),o.push(i);t.setMessages(o)}if(e.hasOwnProperty("extraInfo")&&null!==e.extraInfo&&void 0!==e.extraInfo){for(o=[],s=e.extraInfo,r=0;r<s.length;r++)i=U.constructFromObject(s[r],void 0),o.push(i);t.setExtraInfo(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getFlags(){return this.flags}setFlags(e){this.flags=e}getLinks(){return this.links}setLinks(e){this.links=e}getTotalAvailableResults(){return this.totalAvailableResults}setTotalAvailableResults(e){this.totalAvailableResults=e}getMessages(){return this.messages}setMessages(e){this.messages=e}getExtraInfo(){return this.extraInfo}setExtraInfo(e){this.extraInfo=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getFlags()&&null!==this.getFlags()?{flags:this.getFlags().map(e=>e.toJson(!1))}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTotalAvailableResults()&&null!==this.getTotalAvailableResults()?{totalAvailableResults:this.getTotalAvailableResults()}:{},...void 0!==this.getMessages()&&null!==this.getMessages()?{messages:this.getMessages().map(e=>e.toJson(!1))}:{},...void 0!==this.getExtraInfo()&&null!==this.getExtraInfo()?{extraInfo:this.getExtraInfo().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("flags"===t){if(void 0===this.flags||null===this.flags)return new F("flags","undefined or null");if(!T.validateMaxItems(this.flags,20))return new F("flags","does not satisfy required maxItems constraint: 20")}if("links"===t){if(void 0===this.links||null===this.links)return new F("links","undefined or null");if(!T.validateMaxItems(this.links,20))return new F("links","does not satisfy required maxItems constraint: 20")}if("totalAvailableResults"===t&&(void 0===this.totalAvailableResults||null===this.totalAvailableResults))return new F("totalAvailableResults","undefined or null");if("messages"===t){if(void 0===this.messages||null===this.messages)return new F("messages","undefined or null");if(!T.validateMaxItems(this.messages,20))return new F("messages","does not satisfy required maxItems constraint: 20")}if("extraInfo"===t){if(void 0===this.extraInfo||null===this.extraInfo)return new F("extraInfo","undefined or null");if(!T.validateMaxItems(this.extraInfo,20))return new F("extraInfo","does not satisfy required maxItems constraint: 20")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null")}}function G(e,t,n){K(e,t),t.set(e,n)}function K(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function q(e,t){return e.get(H(e,t))}function z(e,t,n){return e.set(H(e,t),n),n}function H(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")}W.prototype.flags=void 0,W.prototype.links=void 0,W.prototype.totalAvailableResults=void 0,W.prototype.messages=void 0,W.prototype.extraInfo=void 0,W.prototype.$reserved=void 0,W.prototype.$objectType=void 0,W.prototype.$unknownFields=void 0,v()(i());var Y=new WeakMap,X=new WeakMap,Z=new WeakMap,Q=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,se=new WeakMap,ie=new WeakMap,re=new WeakMap,oe=new WeakMap,ae=new WeakSet;class le{constructor(){var e;K(this,e=ae),e.add(this),G(this,Y,void 0),G(this,X,void 0),G(this,Z,void 0),G(this,Q,void 0),G(this,ee,void 0),G(this,te,void 0),G(this,ne,void 0),G(this,se,void 0),G(this,ie,void 0),G(this,re,void 0),G(this,oe,void 0),z(oe,this,Object.freeze({DEBUG:{key:"DEBUG",value:Symbol(0)},INFO:{key:"INFO",value:Symbol(1)},WARN:{key:"WARN",value:Symbol(2)},ERROR:{key:"ERROR",value:Symbol(3)}})),this.scheme="https",z(se,this,"undefined"==typeof self?"localhost":self.location.hostname),this.port="undefined"==typeof self?"9440":self.location.port,this.authentications={apiKeyAuthScheme:{type:"apiKey",in:"header",name:"X-ntnx-api-key"},basicAuthScheme:{type:"basic"}},this.defaultHeaders={},z(ee,this,3e4),z(te,this,3e4),z(ne,this,108e5),this.readTimeout=q(te,this),this.connectTimeout=q(ee,this),this.cache=!0,z(X,this,null),this.maxRedirects=1,this.maxRetryAttempts=5,this.retryInterval=3e3,this.withCredentials=!1,"undefined"==typeof self&&(this.agent=new(i().agent)),this.requestAgent=null,z(re,this,null),this.allowVersionNegotiation=!0,z(ie,this,!1),this.debug=!1,z(Z,this,null),this.username=null,this.password=null,z(Q,this,!0),this.downloadDestination=null,this.loggerFile=null}set verifySsl(e){this.requestAgent=e?null:new(y().Agent)({rejectUnauthorized:e}),z(Q,this,e)}get verifySsl(){return q(Q,this)}set host(e){z(se,this,e),z(ie,this,!1),z(re,this,null)}get host(){return q(se,this)}set loggerFile(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=f().createWriteStream(e,{flags:"a"})),z(Z,this,new console.Console({stdout:e,stderr:e})))}addDefaultHeader(e,t){"Authorization"===e&&z(X,this,null),this.defaultHeaders[e]=t}paramToString(e){return null==e||null==e?"":e instanceof Date?e.toJSON():e.toString()}buildUrl(e,t){if(e.match(/^\//)||(e="/"+e),void 0!==q(re,this)&&null!==q(re,this)&&null!==q(re,this).match(/v\d+\.\d+(\.[a|b]\d+)?/)&&"v4.2"!==q(re,this)){H(ae,this,je).call(this,q(oe,this).INFO,null,"Changing uri",e,"to negotiated version",q(re,this));var n=new RegExp("(?<=/[-\\w]+/)v\\d+\\.\\d+(\\.[a|b]\\d+)?(?=/.*)","i");e=e.replace(n,q(re,this))}z(Y,this,"undefined"==typeof self?this.scheme+":":self.location.protocol);let s="";""!==q(Y,this)&&""!==this.host&&""!==this.port?s=q(Y,this)+"//"+this.host+":"+this.port:"undefined"!=typeof self&&(s=self.origin);var i=s+e;return i.replace(/\{([\w-]+)\}/g,(e,n)=>{var s;return s=t.hasOwnProperty(n)?this.paramToString(t[n]):e,encodeURIComponent(s)})}buildCollectionParam(e,t){if(null==e)return null;switch(t){case"csv":return e.map(this.paramToString).join(",");case"ssv":return e.map(this.paramToString).join(" ");case"tsv":return e.map(this.paramToString).join("\t");case"pipes":return e.map(this.paramToString).join("|");case"multi":return e.map(this.paramToString);default:throw new Error("Unknown collection format: "+t)}}setApiKey(e){this.authentications.apiKeyAuthScheme.apiKey=null==e||"string"==typeof e||e instanceof String?e:void 0}addEtagToReservedMap(e,t){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("etag")){let s=e.headers.etag;if(void 0!==t.getData())if(Array.isArray(t.getData())&&t.getData().length>0)for(var n of t.getData())n.hasOwnProperty("$reserved")&&void 0!==n.get$Reserved()&&(n.get$Reserved().ETag=s);else t.getData().hasOwnProperty("$reserved")&&void 0!==t.getData().get$Reserved()&&(t.getData().get$Reserved().ETag=s)}return t}static getEtag(e){let t=null;return void 0!==e&&(e.hasOwnProperty("$reserved")&&void 0!==e.get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.get$Reserved(),"ETag")),null==t&&e.hasOwnProperty("data")&&e.getData().hasOwnProperty("$reserved")&&void 0!==e.getData().get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.getData().get$Reserved(),"ETag"))),t}static getValueForCaseInsensitiveKeyMatch(e,t){if(e&&t){const n=t.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===n);return s?e[s]:null}return null}getNegotiatedVersion(){return q(re,this)}negotiateVersion(e,t){return new Promise(n=>{!0===this.allowVersionNegotiation&&!1===q(ie,this)?this.callApiInternal("/api/volumes/unversioned/info","OPTIONS",{},{},{},{},null,t,[],["application/json"],Object).then(({data:t,response:s})=>{if(200===s.status&&t.hasOwnProperty("data")&&null!==t.data){const s=t.data,i="v4.2";if(H(ae,this,fe).call(this,H(ae,this,$e).call(this,s),H(ae,this,$e).call(this,i)))return H(ae,this,je).call(this,q(oe,this).WARN,null,"Server version",s,"is below minimum supported version",i,". Version negotiation will not be performed."),z(re,this,null),z(ie,this,!1),void n(e);z(re,this,H(ae,this,we).call(this,"v4.2",s)),z(ie,this,!0),H(ae,this,je).call(this,q(oe,this).INFO,null,"Negotiated Version with server :",q(re,this)),n(e)}else H(ae,this,je).call(this,q(oe,this).ERROR,null,"Could not fetch supported versions from server"),z(re,this,null),z(ie,this,!1),n(e)}).catch(t=>{H(ae,this,je).call(this,q(oe,this).ERROR,null,"Could not fetch supported versions from server"),z(re,this,null),z(ie,this,!1),n(e)}):n(e)})}callApi(e,t,n,s,i,r,o,a,l,d,u){return this.negotiateVersion(this,a).then(function(h){return h.callApiInternal(e,t,n,s,i,r,o,a,l,d,u)})}callApiInternal(e,t,s,r,o,a,l,d,u,h,p){var v=this.buildUrl(e,s);const g="undefined"!=typeof window&&void 0!==window.document;let y=["application/octet-stream","application/pdf","application/zip"];if(h&&h.length>0&&h.some(e=>y.includes(e))&&g&&this.downloadDestination)return new Promise((e,n)=>{const s=H(ae,this,Ie).call(this,v,t,r,o,l,d,u,h);fetch(s.url,s.options).then(t=>{if(!t.ok){const e=new Error(`HTTP error ${t.status}`);e.status=t.status,H(ae,this,je).call(this,q(oe,this).ERROR,null,"Error downloading file:",e),n(e)}if(!(this.downloadDestination instanceof WritableStream)){let e="Incompatible downloadDestination for Browser Environment, must be WritableStream";H(ae,this,je).call(this,q(oe,this).ERROR,null,e),n(e)}const s=t.body.getReader(),i=this.downloadDestination.getWriter(),r=()=>s.read().then(({done:n,value:s})=>(n&&(i.close(),H(ae,this,je).call(this,q(oe,this).INFO,null,"Finished streaming response"),e({data:{},response:t})),i.write(s).then(r)));return r()}).catch(e=>{H(ae,this,je).call(this,q(oe,this).ERROR,null,"Caught the following error :",e),n(e)})});var w=i()(t,v);if(w.oldCallback=w.callback,w.callback=function(e,t){if(t&&t.status){const e=t.status;if(e>=400&&408!==e&&429!==e&&503!==e&&504!==e&&(this._maxRetries=0),401===t.status&&this.header.Cookie&&(this.unset("Cookie"),this._maxRetries=1),429===e){let e=t.headers["retry-after"];if(e){let t=1e3*parseInt(e,10);this._retryDelays[this._retries]=t}}}this.oldCallback(e,t)},H(ae,this,pe).call(this,w,d),"GET"===t.toUpperCase()&&!1===this.cache&&(r._=(new Date).getTime()),w.query(H(ae,this,ce).call(this,r)),w.set(this.defaultHeaders).set(H(ae,this,ce).call(this,o)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==o["NTNX-Request-Id"]&&void 0!==o["NTNX-Request-Id"])){let e=c();w.set(H(ae,this,ce).call(this,{"NTNX-Request-Id":e}))}g||(this.downloadDestination=".",w.set(H(ae,this,ce).call(this,{"User-Agent":"Nutanix-volumes-js-client/4.2.2"}))),this.requestAgent&&w.agent(this.requestAgent);var $={};$.response=H(ae,this,me).call(this,this.connectTimeout,q(ee,this)),$.deadline=H(ae,this,me).call(this,this.readTimeout,q(te,this)),w.timeout($);var m=o.hasOwnProperty("Content-Type")?o["Content-Type"]:H(ae,this,ue).call(this,u);if(m?"multipart/form-data"!=m&&w.type(m):w.header["Content-Type"]||w.type("application/json"),H(ae,this,je).call(this,q(oe,this).INFO,null,"Request URL :",t,v),H(ae,this,je).call(this,q(oe,this).DEBUG,H(ae,this,Fe),"Request Headers :",void 0===w.header?"":w.header),"application/x-www-form-urlencoded"===m)w.send(H(ae,this,ce).call(this,a));else if("multipart/form-data"==m){var k=H(ae,this,ce).call(this,a);for(var b in k)k.hasOwnProperty(b)&&(H(ae,this,he).call(this,k[b])?w.attach(b,k[b]):w.field(b,k[b]))}else{if("application/octet-stream"===m&&null!=l&&"function"==typeof l.pipe){if(H(ae,this,je).call(this,q(oe,this).INFO,null,"Piping octet-stream request"),"function"==typeof l.pipe)l.pipe(w);else{let e;try{e=n(965)}catch(e){H(ae,this,je).call(this,q(oe,this).ERROR,null,"Error fetching steam/web")}l instanceof e.ReadableStream?l.pipeTo(new e.WritableStream({write(e){w.write(e)},close(){H(ae,this,je).call(this,q(oe,this).INFO,null,"READABLE STREAM CLOSED")},abort(e){H(ae,this,je).call(this,q(oe,this).ERROR,null,"READABLE STREAM ABORTED")}})):w.send(l)}return new Promise((t,n)=>{w.on("error",e=>{H(ae,this,je).call(this,q(oe,this).DEBUG,null,"Caught the following error :",e),n(e)}).on("response",s=>{H(ae,this,Oe).call(this,s,e,r,p,t,n)})})}["POST","PUT","PATCH"].includes(t.toUpperCase())&&l&&w.send(l)}"Blob"==typeof p?w.responseType("blob"):"String"===p&&w.responseType("string"),H(ae,this,be).call(this,w),H(ae,this,je).call(this,q(oe,this).DEBUG,null,"Request Body :",void 0===w._data?"":w._data);var j=o.hasOwnProperty("Accept")&&null!=o.Accept?o.Accept:h.join(", ");return j&&w.accept(j),new Promise((n,s)=>{w.buffer(!1).redirects(0).retry(this.maxRetryAttempts,this.retryInterval,[]).withCredentials(this.withCredentials).on("error",e=>{H(ae,this,je).call(this,q(oe,this).DEBUG,null,"Caught the following error :",e)}).end((o,a)=>{if(o)H(ae,this,je).call(this,q(oe,this).DEBUG,null,"Caught error during the request!"),H(ae,this,je).call(this,q(oe,this).ERROR,null,o),404===o.status&&(z(ie,this,!1),z(re,this,null)),null!==o.response&&void 0!==o.response?o.data=H(ae,this,ge).call(this,o.response,p):o.data=H(ae,this,ve).call(this,o),s(o);else{H(ae,this,je).call(this,q(oe,this).INFO,null,"Response Status :",a.status),H(ae,this,je).call(this,q(oe,this).DEBUG,H(ae,this,Fe),"Response Headers :",a.headers);let o="";if(a.headers.hasOwnProperty("content-type")&&(o=a.headers["content-type"]),y.includes(o)){if(!g){let e=this.downloadDestination+"/downloaded_file_"+Date.now()+".txt",t=f().createWriteStream(e);H(ae,this,Pe).call(this,a,t,e,n,s,p)}}else if(302==a.status){let e=this.downloadDestination+"/downloaded_file_"+Date.now()+".txt",r=this;H(ae,this,je).call(this,q(oe,this).INFO,null,"Redirecting to :",a.headers.location);var l=i()(t,a.headers.location);l.set(w.header),a.headers.hasOwnProperty("x-redirect-token")&&(H(ae,this,je).call(this,q(oe,this).INFO,null,"Writing X-Redirect-Token into Cookie"),l.set("Cookie",a.headers["x-redirect-token"])),this.requestAgent&&l.agent(this.requestAgent),l.redirects(0),l.withCredentials(this.withCredentials),l.buffer(!1);let o=f().createWriteStream(e);l.pipe(o),l.on("response",function(t){H(ae,r,je).call(r,q(oe,r).INFO,null,"Received response after redirection :",t.status),H(ae,r,Pe).call(r,t,o,e,n,s,p)})}else H(ae,this,Oe).call(this,a,e,r,p,n,s)}})})}static addEtagReferenceToHeader(e,t){if(null!=e&&e.hasOwnProperty("$reserved")&&e.$reserved.hasOwnProperty("ETag")){let n=e.$reserved.ETag;null!=n&&""!==n&&(t["If-Match"]=n)}}static parseDate(e){return new Date(e)}static parseQueryParam(e,t,n,s){let i=null;if(void 0!==t&&t.hasOwnProperty(n)&&(i=t[n]),null===i&&("string"==typeof e||e instanceof String)){const t=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=e.match(new RegExp(`${t}=([0-9]+)`));s&&(i=s[1])}return null===i&&(i=s),i}static convertToType(e,t){if(null==e)return e;switch(t){case"Boolean":return Boolean(e);case"Integer":return parseInt(e,10);case"Number":return parseFloat(e);case"String":return String(e);case"Date":return le.parseDate(String(e));case"Blob":return e;default:if(t===Object)return e;if("function"==typeof t)return t.constructFromObject(e);if(Array.isArray(t)){var n=t[0];return e.map(e=>le.convertToType(e,n))}if("object"==typeof t){var s,i;for(var r in t)if(t.hasOwnProperty(r)){s=r,i=t[r];break}var o={};for(var r in e)if(e.hasOwnProperty(r)){var a=le.convertToType(r,s),l=le.convertToType(e[r],i);o[a]=l}return o}return e}}static constructFromObject(e,t,n){if(Array.isArray(e))for(var s=0;s<e.length;s++)e.hasOwnProperty(s)&&(t[s]=le.convertToType(e[s],n));else for(var i in e)e.hasOwnProperty(i)&&(t[i]=le.convertToType(e[i],n))}}function de(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function ue(e){for(var t=0;t<e.length;t++)if(H(ae,this,de).call(this,e[t]))return e[t];return e[0]}function he(e){{let t;try{t=n(799)}catch(e){}if(t&&t.ReadStream&&e instanceof t.ReadStream)return!0}return"function"==typeof Buffer&&e instanceof Buffer||"function"==typeof k.Blob&&e instanceof k.Blob||"function"==typeof File&&e instanceof File}function ce(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n]&&null!=e[n]){var s=e[n];H(ae,this,he).call(this,s)||Array.isArray(s)?t[n]=s:t[n]=this.paramToString(s)}return t}function pe(e,t){t.forEach(t=>{var n=this.authentications[t];switch(n.type){case"basic":n.username||n.password?e.auth(n.username||"",n.password||""):(this.username||this.password)&&e.auth(this.username||"",this.password||""),H(ae,this,je).call(this,q(oe,this).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(n.apiKey){var s={};n.apiKeyPrefix?s[n.name]=n.apiKeyPrefix+" "+n.apiKey:s[n.name]=n.apiKey,"header"===n.in?e.set(s):e.query(s)}H(ae,this,je).call(this,q(oe,this).DEBUG,null,"apiKey applied to request");break;case"oauth2":n.accessToken&&e.set({Authorization:"Bearer "+n.accessToken}),H(ae,this,je).call(this,q(oe,this).DEBUG,null,"oauth2 applied to request");break;default:throw H(ae,this,je).call(this,q(oe,this).ERROR,null,"Unknown authentication type:",n.type),new Error("Unknown authentication type: "+n.type)}})}function ve(e){var t={data:{},metadata:{}};t.data.status=e.status,t.data.message=e.message}function ge(e,t){if(null==e||null==t||204==e.status)return null;if(e.headers&&["text/event-stream","text/html","text/xml","text/csv","text/javascript","text/markdown","text/vcard"].includes(e.headers["content-type"])){(n=new t).data=new k.Blob([e.text],{type:e.headers["content-type"]});let s=new I;s.name="hasError",s.value=!1;let i=[s],r=new W;return r.flags=i,n.metadata=r,n}var n;return(null==(n=e.body)||"object"==typeof n&&void 0===n.length&&!Object.keys(n).length)&&(n=e.text),_.convertToType(n,t)}function ye(e,t,n){if(!(e instanceof r))return;const s=parseInt(this.constructor.parseQueryParam(t,n,"$page","0"),10),i=parseInt(this.constructor.parseQueryParam(t,n,"$limit","50"),10);e.populatePaginationMetadata(this,s,i)}function we(e,t){if(!e||!t)return e;let n=H(ae,this,$e).call(this,e),s=H(ae,this,$e).call(this,t);return!n.family===s.family||H(ae,this,fe).call(this,n,s)?e:t}function fe(e,t){if(parseInt(e.revision)!=parseInt(t.revision))return parseInt(e.revision)<parseInt(t.revision);if("released"===e.versionType)return!1;let n=e.versionType.substring(0,1),s=t.versionType.substring(0,1),i=parseInt(e.versionType.substring(1)),r="released"===t.versionType?0:parseInt(t.versionType.substring(1));return n===s?i<r:"a"===n||"released"===t.versionType}function $e(e){let t={};if("unversioned"===e)t.family="unversioned",t.versionType="released";else{let n=e.toString().split(".");"unversioned"===n[0]?(t.family="unversioned",t.versionType=n[1]):(t.family=n[0].substring(1),t.revision=n[1],2==n.length?t.versionType="released":t.versionType=n[2])}return t}function me(e,t){return e<=0?e=t:e>q(ne,this)&&(e=q(ne,this)),e}function ke(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){let t="",n=e.headers["set-cookie"];if(n.length>0){for(let e of n)e=e.split(";")[0],e.includes("=")&&(e.trim(),t=t.concat(e).concat(";"));""!==t&&(t=t.substr(0,t.length-1))}z(X,this,t),H(ae,this,je).call(this,q(oe,this).DEBUG,null,"Retained cookie :",t)}else z(X,this,null)}function be(e){null!=q(X,this)&&e.set(H(ae,this,ce).call(this,{Cookie:q(X,this)}))}function je(e,t,...n){if("object"==typeof e&&"key"in e&&"value"in e&&"symbol"==typeof e.value||(e=q(oe,this).INFO),!H(ae,this,Te).call(this,e)){n=n.map(e=>"string"==typeof e?e:t?t(e):JSON.stringify(e));let s=n.join(" ");s=(new Date).toISOString()+" "+e.key+" - "+s,void 0!==q(Z,this)&&null!==q(Z,this)&&"function"==typeof q(Z,this).log?q(Z,this).log(s):console.log(s)}}function Te(e){return!this.debug&&e===q(oe,this).DEBUG}function Fe(e){if("object"!=typeof e)return e;let t="\n";return e&&Object.keys(e).forEach(n=>{t+=n+"=["+e[n]+"]\n"}),"\n"===t?e:t}function Oe(e,t,n,s,i,r){try{var o=H(ae,this,ge).call(this,e,s);H(ae,this,je).call(this,q(oe,this).INFO,null,"Response Status :",e.status),H(ae,this,je).call(this,q(oe,this).DEBUG,H(ae,this,Fe),"Response Headers :",e.headers),H(ae,this,ke).call(this,e||{}),H(ae,this,je).call(this,q(oe,this).DEBUG,null,"Response Body :",o),204==e.status&&null==o?i({data:o,response:e}):e.ok&&null!=o?(this.addEtagToReservedMap(e,o),H(ae,this,ye).call(this,o,t,n),i({data:o,response:e})):(H(ae,this,je).call(this,q(oe,this).ERROR,null,o),r({...e.error,data:o}))}catch(e){H(ae,this,je).call(this,q(oe,this).DEBUG,null,"Caught error while processing response!"),H(ae,this,je).call(this,q(oe,this).ERROR,null,e),e.data=H(ae,this,ve).call(this,e),r(e)}}function Ie(e,t,n,s,i,r,o,a){let l={};r.forEach(e=>{const t=this.authentications[e];switch(t.type){case"basic":let e="",s="";if(t.username||t.password?(e=t.username||"",s=t.password||""):(this.username||this.password)&&(e=this.username||"",s=this.password||""),e||s){const t=btoa(`${e}:${s}`);l.Authorization=`Basic ${t}`}H(ae,this,je).call(this,q(oe,this).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(t.apiKey){let e="";e=t.apiKeyPrefix?t.apiKeyPrefix+" "+t.apiKey:t.apiKey,"header"===t.in?l[t.name]="Bearer "+e:"query"===t.in&&(n[t.name]=e)}H(ae,this,je).call(this,q(oe,this).DEBUG,null,"apiKey applied to request");break;case"oauth2":t.accessToken&&(l.Authorization="Bearer "+t.accessToken),H(ae,this,je).call(this,q(oe,this).DEBUG,null,"oauth2 applied to request");break;default:throw H(ae,this,je).call(this,q(oe,this).ERROR,null,"Unknown authentication type:",t.type),new Error("Unknown authentication type: "+t.type)}}),"GET"===t.toUpperCase()&&!1===this.cache&&(n.cache="false");const d=H(ae,this,ce).call(this,n),u=Object.keys(d).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(d[e])}`).join("&");let h=e;u&&(h+=(h.includes("?")?"&":"?")+u);const p={...this.defaultHeaders,...H(ae,this,ce).call(this,s),...l};if(!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==s["NTNX-Request-Id"]&&void 0!==s["NTNX-Request-Id"])){let e=c();p["NTNX-Request-Id"]=e}null!=q(X,this)&&(p.Cookie=H(ae,this,ce).call(this,{Cookie:q(X,this)}));var v=s.hasOwnProperty("Content-Type")?s["Content-Type"]:H(ae,this,ue).call(this,o);p["Content-Type"]=v;var g=s.hasOwnProperty("Accept")&&null!=s.Accept?s.Accept:a.join(", ");return g&&(p.Accept=g),H(ae,this,je).call(this,q(oe,this).INFO,null,"Request URL :",t,e),H(ae,this,je).call(this,q(oe,this).DEBUG,H(ae,this,Fe),"Request Headers :",p),H(ae,this,je).call(this,q(oe,this).DEBUG,null,"Request Body :",i||""),{url:h,options:{method:t,headers:p,body:i,credentials:this.withCredentials?"include":"same-origin"}}}function Pe(e,t,n,s,i,r){H(ae,this,je).call(this,q(oe,this).INFO,null,"Streaming response to : ",n);try{e.on("data",e=>{t.write(e)})}catch(e){H(ae,this,je).call(this,q(oe,this).ERROR,null,"Issue while downloading file",e)}let o=new r,a="";if(void 0!==e.headers["content-disposition"]&&null!==e.headers["content-disposition"]){let t=e.headers["content-disposition"].match(/.*filename=\"(?<filename>.*)\".*/),n=m().parse(t.groups.filename);a=this.downloadDestination+"/"+n.name+"_"+Date.now()+n.ext,o.data={path:m().parse(a),$objectType:"Path"};let s=new I;s.name="hasError",s.value=!1;let i=[s],r=new W;r.flags=i,o.metadata=r}e.on("end",()=>{H(ae,this,je).call(this,q(oe,this).INFO,null,"Finished streaming response"),0!==a.length?(H(ae,this,je).call(this,q(oe,this).INFO,null,"Content-Disposition header found [",a,"] is final filename"),t.close(),f().renameSync(n,a),s({data:o,response:e})):(H(ae,this,je).call(this,q(oe,this).ERROR,null,"Content-Disposition header not found [",n,"] is final filename"),s({data:o,response:e}))}),e.on("error",e=>{H(ae,this,je).call(this,q(oe,this).ERROR,null,"Caught the following error :",e),error.data=H(ae,this,ve).call(this,error),i(e)})}_=le,le.instance=new le;var Ae=new WeakSet;class Ee{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ae),t.add(e),this.$objectType="prism.v4.config.TaskReference",this.$reserved={$fv:"v4.r3"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ee,e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&t.setExtId(e.extId),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getExtId(){return this.extId}setExtId(e){this.extId=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new F("extId","undefined or null");if(!T.validatePattern(this.extId,/^[a-zA-Z0-9\/+]*={0,2}:[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}/))return new F("extId","does not satisfy required pattern: /^[a-zA-Z0-9/+]*={0,2}:[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}/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null")}}function Ce(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")}Ee.prototype.extId=void 0,Ee.prototype.$reserved=void 0,Ee.prototype.$objectType=void 0,Ee.prototype.$unknownFields=void 0;var Re=new WeakSet;class De{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Re),t.add(e),this.$objectType="volumes.v4.error.AppMessage",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new De,e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&t.setMessage(e.message),e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&t.setSeverity(N.constructFromObject(e.severity)),e.hasOwnProperty("code")&&null!==e.code&&void 0!==e.code&&t.setCode(e.code),e.hasOwnProperty("locale")&&null!==e.locale&&void 0!==e.locale&&t.setLocale(e.locale),e.hasOwnProperty("errorGroup")&&null!==e.errorGroup&&void 0!==e.errorGroup&&t.setErrorGroup(e.errorGroup),e.hasOwnProperty("argumentsMap")&&null!==e.argumentsMap&&void 0!==e.argumentsMap&&t.setArgumentsMap(e.argumentsMap),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMessage(){return this.message}setMessage(e){this.message=e}getSeverity(){return this.severity}setSeverity(e){this.severity=e}getCode(){return this.code}setCode(e){this.code=e}getLocale(){return this.locale}setLocale(e){this.locale=e}getErrorGroup(){return this.errorGroup}setErrorGroup(e){this.errorGroup=e}getArgumentsMap(){return this.argumentsMap}setArgumentsMap(e){this.argumentsMap=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{},...void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{},...void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{},...void 0!==this.getErrorGroup()&&null!==this.getErrorGroup()?{errorGroup:this.getErrorGroup()}:{},...void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Ce(Re,this,Ue).call(this,this.getArgumentsMap(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{},...void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{},...void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{},...void 0!==this.getErrorGroup()&&null!==this.getErrorGroup()?{errorGroup:this.getErrorGroup()}:{},...void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Ce(Re,this,Ue).call(this,this.getArgumentsMap())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"message"!==t||void 0!==this.message&&null!==this.message?"severity"!==t||void 0!==this.severity&&null!==this.severity?"code"!==t||void 0!==this.code&&null!==this.code?"locale"!==t||void 0!==this.locale&&null!==this.locale?"errorGroup"!==t||void 0!==this.errorGroup&&null!==this.errorGroup?"argumentsMap"!==t||void 0!==this.argumentsMap&&null!==this.argumentsMap?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("argumentsMap","undefined or null"):new F("errorGroup","undefined or null"):new F("locale","undefined or null"):new F("code","undefined or null"):new F("severity","undefined or null"):new F("message","undefined or null")}}function Ue(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}De.prototype.message=void 0,De.prototype.severity=void 0,De.prototype.code=void 0,De.prototype.locale="en_US",De.prototype.errorGroup=void 0,De.prototype.argumentsMap=void 0,De.prototype.$reserved=void 0,De.prototype.$objectType=void 0,De.prototype.$unknownFields=void 0;var xe=new WeakSet;class Se{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=xe),t.add(e),this.$objectType="volumes.v4.error.SchemaValidationErrorMessage",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Se,e.hasOwnProperty("location")&&null!==e.location&&void 0!==e.location&&t.setLocation(e.location),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&t.setMessage(e.message),e.hasOwnProperty("attributePath")&&null!==e.attributePath&&void 0!==e.attributePath&&t.setAttributePath(e.attributePath),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getLocation(){return this.location}setLocation(e){this.location=e}getMessage(){return this.message}setMessage(e){this.message=e}getAttributePath(){return this.attributePath}setAttributePath(e){this.attributePath=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getLocation()&&null!==this.getLocation()?{location:this.getLocation()}:{},...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getAttributePath()&&null!==this.getAttributePath()?{attributePath:this.getAttributePath()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"location"!==t||void 0!==this.location&&null!==this.location?"message"!==t||void 0!==this.message&&null!==this.message?"attributePath"!==t||void 0!==this.attributePath&&null!==this.attributePath?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("attributePath","undefined or null"):new F("message","undefined or null"):new F("location","undefined or null")}}function Ne(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")}Se.prototype.location=void 0,Se.prototype.message=void 0,Se.prototype.attributePath=void 0,Se.prototype.$reserved=void 0,Se.prototype.$objectType=void 0,Se.prototype.$unknownFields=void 0;var Me=new WeakSet;class Je{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Me),t.add(e),this.$objectType="volumes.v4.error.SchemaValidationError",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r,o;if(e){if(t=t||new Je,e.hasOwnProperty("timestamp")&&null!==e.timestamp&&void 0!==e.timestamp&&t.setTimestamp(e.timestamp),e.hasOwnProperty("statusCode")&&null!==e.statusCode&&void 0!==e.statusCode&&t.setStatusCode(e.statusCode),e.hasOwnProperty("error")&&null!==e.error&&void 0!==e.error&&t.setError(e.error),e.hasOwnProperty("path")&&null!==e.path&&void 0!==e.path&&t.setPath(e.path),e.hasOwnProperty("validationErrorMessages")&&null!==e.validationErrorMessages&&void 0!==e.validationErrorMessages){for(o=[],s=e.validationErrorMessages,r=0;r<s.length;r++)i=Se.constructFromObject(s[r],void 0),o.push(i);t.setValidationErrorMessages(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getTimestamp(){return this.timestamp}setTimestamp(e){this.timestamp=e}getStatusCode(){return this.statusCode}setStatusCode(e){this.statusCode=e}getError(){return this.error}setError(e){this.error=e}getPath(){return this.path}setPath(e){this.path=e}getValidationErrorMessages(){return this.validationErrorMessages}setValidationErrorMessages(e){this.validationErrorMessages=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:Ne(Me,this,Be).call(this,this.getTimestamp(),!1)}:{},...void 0!==this.getStatusCode()&&null!==this.getStatusCode()?{statusCode:this.getStatusCode()}:{},...void 0!==this.getError()&&null!==this.getError()?{error:this.getError()}:{},...void 0!==this.getPath()&&null!==this.getPath()?{path:this.getPath()}:{},...void 0!==this.getValidationErrorMessages()&&null!==this.getValidationErrorMessages()?{validationErrorMessages:this.getValidationErrorMessages().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"statusCode"!==t||void 0!==this.statusCode&&null!==this.statusCode?"error"!==t||void 0!==this.error&&null!==this.error?"path"!==t||void 0!==this.path&&null!==this.path?"validationErrorMessages"!==t||void 0!==this.validationErrorMessages&&null!==this.validationErrorMessages?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("validationErrorMessages","undefined or null"):new F("path","undefined or null"):new F("error","undefined or null"):new F("statusCode","undefined or null"):new F("timestamp","undefined or null")}}function Be(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Le(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")}Je.prototype.timestamp=void 0,Je.prototype.statusCode=void 0,Je.prototype.error=void 0,Je.prototype.path=void 0,Je.prototype.validationErrorMessages=void 0,Je.prototype.$reserved=void 0,Je.prototype.$objectType=void 0,Je.prototype.$unknownFields=void 0;var _e=new WeakSet;class Ve{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=_e),t.add(e),this.$objectType="volumes.v4.error.ErrorResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r,o,a;if(e){if(t=t||new Ve,e.hasOwnProperty("error")&&null!==e.error&&void 0!==e.error)if(Array.isArray(e.error))if(0===e.error.length)t.setError([]);else{for(o=[],s=e.error,a=s[0].hasOwnProperty("$objectType")?s[0].$objectType:typeof s[0],r=0;r<s.length;r++){if("volumes.v4.error.AppMessage"!==a)throw"Unknown list of type "+a+" in data";i=De.constructFromObject(s[r],void 0),o.push(i)}t.setError(o)}else{if(a=e.error.hasOwnProperty("$objectType")?e.error.$objectType:typeof e.error,"volumes.v4.error.SchemaValidationError"!==a)throw"Unknown datatype "+a+" in data";t.setError(Je.constructFromObject(e.error,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getError(){return this.error}setError(e){this.error=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson(!1):Array.isArray(this.getError())?this.getError().map(e=>void 0!==e.toJson?e.toJson(!1):e):Le(_e,this,We).call(this,this.getError(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson():Array.isArray(this.getError())?this.getError().map(e=>void 0!==e.toJson?e.toJson():e):Le(_e,this,We).call(this,this.getError())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"error"!==t||void 0!==this.error&&null!==this.error?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("error","undefined or null")}}function We(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Ge(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")}Ve.prototype.error=void 0,Ve.prototype.$reserved=void 0,Ve.prototype.$objectType=void 0,Ve.prototype.$unknownFields=void 0;var Ke=new WeakSet;class qe extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Ke),t.add(e),this.$objectType="volumes.v4.config.UpdateIscsiClientApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new qe,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ee.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":t.setData(Ve.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ge(Ke,this,ze).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Ge(Ke,this,ze).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function ze(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}qe.prototype.metadata=void 0,qe.prototype.data=void 0,qe.prototype.$reserved=void 0,qe.prototype.$objectType=void 0,qe.prototype.$unknownFields=void 0;var He=new WeakSet;class Ye{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=He),t.add(e),this.$objectType="common.v1.config.FQDN",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ye,e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value&&t.setValue(e.value),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getValue(){return this.value}setValue(e){this.value=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new F("value","undefined or null");if(!T.validatePattern(this.value,/^([a-zA-Z0-9À-ÿ]+(?:-[a-zA-Z0-9À-ÿ]+)*\\.)+[a-zA-ZÀ-ÿ]{2,63}$/))return new F("value","does not satisfy required pattern: /^([a-zA-Z0-9À-ÿ]+(?:-[a-zA-Z0-9À-ÿ]+)*\\.)+[a-zA-ZÀ-ÿ]{2,63}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null")}}Ye.prototype.value=void 0,Ye.prototype.$reserved=void 0,Ye.prototype.$objectType=void 0,Ye.prototype.$unknownFields=void 0;var Xe=new WeakSet;class Ze{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Xe),n.add(t),this.value=e,this.$objectType="common.v1.config.IPv4Address",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ze,e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value&&t.setValue(e.value),e.hasOwnProperty("prefixLength")&&null!==e.prefixLength&&void 0!==e.prefixLength&&t.setPrefixLength(e.prefixLength),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getValue(){return this.value}setValue(e){this.value=e}getPrefixLength(){return this.prefixLength}setPrefixLength(e){this.prefixLength=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{},...void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=["value"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new F("value","undefined or null");if(!T.validatePattern(this.value,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/))return new F("value","does not satisfy required pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new F("prefixLength","undefined or null");if(!T.validateMaximum(this.prefixLength,32))return new F("prefixLength","does not satisfy required maximum constraint: 32");if(!T.validateMinimum(this.prefixLength,0))return new F("prefixLength","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null")}}Ze.prototype.value=void 0,Ze.prototype.prefixLength=32,Ze.prototype.$reserved=void 0,Ze.prototype.$objectType=void 0,Ze.prototype.$unknownFields=void 0;var Qe=new WeakSet;class et{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Qe),n.add(t),this.value=e,this.$objectType="common.v1.config.IPv6Address",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new et,e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value&&t.setValue(e.value),e.hasOwnProperty("prefixLength")&&null!==e.prefixLength&&void 0!==e.prefixLength&&t.setPrefixLength(e.prefixLength),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getValue(){return this.value}setValue(e){this.value=e}getPrefixLength(){return this.prefixLength}setPrefixLength(e){this.prefixLength=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{},...void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=["value"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new F("value","undefined or null");if(!T.validatePattern(this.value,/^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/))return new F("value","does not satisfy required pattern: /^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new F("prefixLength","undefined or null");if(!T.validateMaximum(this.prefixLength,128))return new F("prefixLength","does not satisfy required maximum constraint: 128");if(!T.validateMinimum(this.prefixLength,0))return new F("prefixLength","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null")}}et.prototype.value=void 0,et.prototype.prefixLength=128,et.prototype.$reserved=void 0,et.prototype.$objectType=void 0,et.prototype.$unknownFields=void 0;var tt=new WeakSet;class nt{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=tt),t.add(e),this.$objectType="common.v1.config.IPAddressOrFQDN",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new nt,e.hasOwnProperty("ipv4")&&null!==e.ipv4&&void 0!==e.ipv4&&t.setIpv4(Ze.constructFromObject(e.ipv4)),e.hasOwnProperty("ipv6")&&null!==e.ipv6&&void 0!==e.ipv6&&t.setIpv6(et.constructFromObject(e.ipv6)),e.hasOwnProperty("fqdn")&&null!==e.fqdn&&void 0!==e.fqdn&&t.setFqdn(Ye.constructFromObject(e.fqdn)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getIpv4(){return this.ipv4}setIpv4(e){this.ipv4=e}getIpv6(){return this.ipv6}setIpv6(e){this.ipv6=e}getFqdn(){return this.fqdn}setFqdn(e){this.fqdn=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}hasIpv4(){return!(void 0===this.ipv4||null===this.ipv4)}hasIpv6(){return!(void 0===this.ipv6||null===this.ipv6)}hasFqdn(){return!(void 0===this.fqdn||null===this.fqdn)}isValid(){return this.hasIpv4()||this.hasIpv6()||this.hasFqdn()}toJson(e){return{...void 0!==this.getIpv4()&&null!==this.getIpv4()?{ipv4:this.getIpv4().toJson(!1)}:{},...void 0!==this.getIpv6()&&null!==this.getIpv6()?{ipv6:this.getIpv6().toJson(!1)}:{},...void 0!==this.getFqdn()&&null!==this.getFqdn()?{fqdn:this.getFqdn().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"ipv4"!==t||void 0!==this.ipv4&&null!==this.ipv4?"ipv6"!==t||void 0!==this.ipv6&&null!==this.ipv6?"fqdn"!==t||void 0!==this.fqdn&&null!==this.fqdn?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("fqdn","undefined or null"):new F("ipv6","undefined or null"):new F("ipv4","undefined or null")}}nt.prototype.ipv4=void 0,nt.prototype.ipv6=void 0,nt.prototype.fqdn=void 0,nt.prototype.$reserved=void 0,nt.prototype.$objectType=void 0,nt.prototype.$unknownFields=void 0;var st=new WeakSet;class it{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=st),t.add(e),this.$objectType="common.v1.config.TenantAwareModel",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new it,e.hasOwnProperty("tenantId")&&null!==e.tenantId&&void 0!==e.tenantId&&t.setTenantId(e.tenantId),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getTenantId(){return this.tenantId}setTenantId(e){this.tenantId=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new F("tenantId","undefined or null");if(!T.validatePattern(this.tenantId,/^[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}$/))return new F("tenantId","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}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null")}}it.prototype.tenantId=void 0,it.prototype.$reserved=void 0,it.prototype.$objectType=void 0,it.prototype.$unknownFields=void 0;var rt=new WeakSet;class ot extends it{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=rt),t.add(e),this.$objectType="common.v1.response.ExternalizableAbstractModel",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r,o;if(e){if(t=t||new ot,it.constructFromObject(e,t,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&t.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(o=[],s=e.links,r=0;r<s.length;r++)i=L.constructFromObject(s[r],void 0),o.push(i);t.setLinks(o)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getExtId(){return this.extId}setExtId(e){this.extId=e}getLinks(){return this.links}setLinks(e){this.links=e}toJson(e){return!1===e?{...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new F("extId","undefined or null");if(null==e){if(!T.validatePattern(this.extId,/^[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}$/))return new F("extId","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}$/")}else if(e===j.update&&!T.validatePattern(this.extId,/^[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}$/))return new F("extId","does not satisfy 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}$/")}if("links"===t){if(void 0===this.links||null===this.links)return new F("links","undefined or null");if(!T.validateMaxItems(this.links,20))return new F("links","does not satisfy required maxItems constraint: 20")}return new F(t,"no such property exists")}}ot.prototype.extId=void 0,ot.prototype.links=void 0,it.prototype.tenantId=void 0;const at={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CHAP:"CHAP",NONE:"NONE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(at).find(t=>at[t]===e);return null==t?at.$UNKNOWN:at[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case at.$UNKNOWN:case at.$REDACTED:case at.CHAP:case at.NONE:return;default:throw new Error("Invalid : must be AuthenticationType.{ $UNKNOWN|$REDACTED|CHAP|NONE }")}}};Object.freeze(at);const lt=at;var dt=new WeakSet;class ut{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=dt),t.add(e),this.$objectType="volumes.v4.config.TargetParam",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new ut,e.hasOwnProperty("numVirtualTargets")&&null!==e.numVirtualTargets&&void 0!==e.numVirtualTargets&&t.setNumVirtualTargets(e.numVirtualTargets),e.hasOwnProperty("iscsiTargetName")&&null!==e.iscsiTargetName&&void 0!==e.iscsiTargetName&&t.setIscsiTargetName(e.iscsiTargetName),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getNumVirtualTargets(){return this.numVirtualTargets}setNumVirtualTargets(e){this.numVirtualTargets=e}getIscsiTargetName(){return this.iscsiTargetName}setIscsiTargetName(e){this.iscsiTargetName=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getNumVirtualTargets()&&null!==this.getNumVirtualTargets()?{numVirtualTargets:this.getNumVirtualTargets()}:{},...void 0!==this.getIscsiTargetName()&&null!==this.getIscsiTargetName()?{iscsiTargetName:this.getIscsiTargetName()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("numVirtualTargets"===t){if(void 0===this.numVirtualTargets||null===this.numVirtualTargets)return new F("numVirtualTargets","undefined or null");if(!T.validateMaximum(this.numVirtualTargets,32))return new F("numVirtualTargets","does not satisfy required maximum constraint: 32");if(!T.validateMinimum(this.numVirtualTargets,1))return new F("numVirtualTargets","does not satisfy required minimum constraint: 1")}if("iscsiTargetName"===t){if(void 0===this.iscsiTargetName||null===this.iscsiTargetName)return new F("iscsiTargetName","undefined or null");if(!T.validateMaxLength(this.iscsiTargetName,512))return new F("iscsiTargetName","does not satisfy required maxLength constraint: 512")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null")}}ut.prototype.numVirtualTargets=void 0,ut.prototype.iscsiTargetName=void 0,ut.prototype.$reserved=void 0,ut.prototype.$objectType=void 0,ut.prototype.$unknownFields=void 0;const ht={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PRIMARY:"PRIMARY",SECONDARY:"SECONDARY",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(ht).find(t=>ht[t]===e);return null==t?ht.$UNKNOWN:ht[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ht.$UNKNOWN:case ht.$REDACTED:case ht.PRIMARY:case ht.SECONDARY:return;default:throw new Error("Invalid : must be VolumeGroupAttachmentSite.{ $UNKNOWN|$REDACTED|PRIMARY|SECONDARY }")}}};Object.freeze(ht);const ct=ht;var pt=new WeakSet;class vt extends ot{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=pt),t.add(e),this.$objectType="volumes.v4.config.IscsiClient",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r,o;if(e){if(t=t||new vt,ot.constructFromObject(e,t,!0),e.hasOwnProperty("iscsiInitiatorName")&&null!==e.iscsiInitiatorName&&void 0!==e.iscsiInitiatorName&&t.setIscsiInitiatorName(e.iscsiInitiatorName),e.hasOwnProperty("iscsiInitiatorNetworkId")&&null!==e.iscsiInitiatorNetworkId&&void 0!==e.iscsiInitiatorNetworkId&&t.setIscsiInitiatorNetworkId(nt.constructFromObject(e.iscsiInitiatorNetworkId)),e.hasOwnProperty("clientSecret")&&null!==e.clientSecret&&void 0!==e.clientSecret&&t.setClientSecret(e.clientSecret),e.hasOwnProperty("enabledAuthentications")&&null!==e.enabledAuthentications&&void 0!==e.enabledAuthentications&&t.setEnabledAuthentications(lt.constructFromObject(e.enabledAuthentications)),e.hasOwnProperty("attachedTargets")&&null!==e.attachedTargets&&void 0!==e.attachedTargets){for(o=[],s=e.attachedTargets,r=0;r<s.length;r++)i=ut.constructFromObject(s[r],void 0),o.push(i);t.setAttachedTargets(o)}if(e.hasOwnProperty("numVirtualTargets")&&null!==e.numVirtualTargets&&void 0!==e.numVirtualTargets&&t.setNumVirtualTargets(e.numVirtualTargets),e.hasOwnProperty("clusterReference")&&null!==e.clusterReference&&void 0!==e.clusterReference&&t.setClusterReference(e.clusterReference),e.hasOwnProperty("attachmentSite")&&null!==e.attachmentSite&&void 0!==e.attachmentSite&&t.setAttachmentSite(ct.constructFromObject(e.attachmentSite)),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getIscsiInitiatorName(){return this.iscsiInitiatorName}setIscsiInitiatorName(e){this.iscsiInitiatorName=e}getIscsiInitiatorNetworkId(){return this.iscsiInitiatorNetworkId}setIscsiInitiatorNetworkId(e){this.iscsiInitiatorNetworkId=e}getClientSecret(){return this.clientSecret}setClientSecret(e){this.clientSecret=e}getEnabledAuthentications(){return this.enabledAuthentications}setEnabledAuthentications(e){this.enabledAuthentications=e}getAttachedTargets(){return this.attachedTargets}setAttachedTargets(e){this.attachedTargets=e}getNumVirtualTargets(){return this.numVirtualTargets}setNumVirtualTargets(e){this.numVirtualTargets=e}getClusterReference(){return this.clusterReference}setClusterReference(e){this.clusterReference=e}getAttachmentSite(){return this.attachmentSite}setAttachmentSite(e){this.attachmentSite=e}toJson(e){return!1===e?{...void 0!==this.getIscsiInitiatorName()&&null!==this.getIscsiInitiatorName()?{iscsiInitiatorName:this.getIscsiInitiatorName()}:{},...void 0!==this.getIscsiInitiatorNetworkId()&&null!==this.getIscsiInitiatorNetworkId()?{iscsiInitiatorNetworkId:this.getIscsiInitiatorNetworkId().toJson(!1)}:{},...void 0!==this.getClientSecret()&&null!==this.getClientSecret()?{clientSecret:this.getClientSecret()}:{},...void 0!==this.getEnabledAuthentications()&&null!==this.getEnabledAuthentications()?{enabledAuthentications:this.getEnabledAuthentications()}:{},...void 0!==this.getAttachedTargets()&&null!==this.getAttachedTargets()?{attachedTargets:this.getAttachedTargets().map(e=>e.toJson(!1))}:{},...void 0!==this.getNumVirtualTargets()&&null!==this.getNumVirtualTargets()?{numVirtualTargets:this.getNumVirtualTargets()}:{},...void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{},...void 0!==this.getAttachmentSite()&&null!==this.getAttachmentSite()?{attachmentSite:this.getAttachmentSite()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getIscsiInitiatorName()&&null!==this.getIscsiInitiatorName()?{iscsiInitiatorName:this.getIscsiInitiatorName()}:{},...void 0!==this.getIscsiInitiatorNetworkId()&&null!==this.getIscsiInitiatorNetworkId()?{iscsiInitiatorNetworkId:this.getIscsiInitiatorNetworkId().toJson(!1)}:{},...void 0!==this.getClientSecret()&&null!==this.getClientSecret()?{clientSecret:this.getClientSecret()}:{},...void 0!==this.getEnabledAuthentications()&&null!==this.getEnabledAuthentications()?{enabledAuthentications:this.getEnabledAuthentications()}:{},...void 0!==this.getNumVirtualTargets()&&null!==this.getNumVirtualTargets()?{numVirtualTargets:this.getNumVirtualTargets()}:{},...void 0!==this.getAttachmentSite()&&null!==this.getAttachmentSite()?{attachmentSite:this.getAttachmentSite()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("iscsiInitiatorName"===t){if(void 0===this.iscsiInitiatorName||null===this.iscsiInitiatorName)return new F("iscsiInitiatorName","undefined or null");if(!T.validateMaxLength(this.iscsiInitiatorName,64))return new F("iscsiInitiatorName","does not satisfy required maxLength constraint: 64")}if("iscsiInitiatorNetworkId"===t&&(void 0===this.iscsiInitiatorNetworkId||null===this.iscsiInitiatorNetworkId))return new F("iscsiInitiatorNetworkId","undefined or null");if("clientSecret"===t&&(void 0===this.clientSecret||null===this.clientSecret))return new F("clientSecret","undefined or null");if("enabledAuthentications"===t&&(void 0===this.enabledAuthentications||null===this.enabledAuthentications))return new F("enabledAuthentications","undefined or null");if("attachedTargets"===t){if(void 0===this.attachedTargets||null===this.attachedTargets)return new F("attachedTargets","undefined or null");if(!T.validateMaxItems(this.attachedTargets,128))return new F("attachedTargets","does not satisfy required maxItems constraint: 128")}if("numVirtualTargets"===t&&(void 0===this.numVirtualTargets||null===this.numVirtualTargets))return new F("numVirtualTargets","undefined or null");if("clusterReference"===t){if(void 0===this.clusterReference||null===this.clusterReference)return new F("clusterReference","undefined or null");if(!T.validatePattern(this.clusterReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new F("clusterReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"attachmentSite"!==t||void 0!==this.attachmentSite&&null!==this.attachmentSite?new F(t,"no such property exists"):new F("attachmentSite","undefined or null")}}vt.prototype.iscsiInitiatorName=void 0,vt.prototype.iscsiInitiatorNetworkId=void 0,vt.prototype.clientSecret=void 0,vt.prototype.enabledAuthentications=void 0,vt.prototype.attachedTargets=void 0,vt.prototype.numVirtualTargets=void 0,vt.prototype.clusterReference=void 0,vt.prototype.attachmentSite=void 0,ot.prototype.extId=void 0,ot.prototype.links=void 0,it.prototype.tenantId=void 0;var gt=new WeakSet;class yt{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=gt),t.add(e),this.$objectType="volumes.v4.config.Cluster",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new yt,e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&t.setClusterExtId(e.clusterExtId),e.hasOwnProperty("clusterName")&&null!==e.clusterName&&void 0!==e.clusterName&&t.setClusterName(e.clusterName),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getClusterExtId(){return this.clusterExtId}setClusterExtId(e){this.clusterExtId=e}getClusterName(){return this.clusterName}setClusterName(e){this.clusterName=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{},...void 0!==this.getClusterName()&&null!==this.getClusterName()?{clusterName:this.getClusterName()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new F("clusterExtId","undefined or null");if(!T.validatePattern(this.clusterExtId,/^[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}$/))return new F("clusterExtId","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}$/")}if("clusterName"===t){if(void 0===this.clusterName||null===this.clusterName)return new F("clusterName","undefined or null");if(!T.validateMaxLength(this.clusterName,75))return new F("clusterName","does not satisfy required maxLength constraint: 75")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null")}}yt.prototype.clusterExtId=void 0,yt.prototype.clusterName=void 0,yt.prototype.$reserved=void 0,yt.prototype.$objectType=void 0,yt.prototype.$unknownFields=void 0;class wt extends yt{constructor(){super(),this.$objectType="volumes.v4.config.ClusterProjection",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new wt,yt.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return new F(t,"no such property exists")}}var ft=new WeakSet;class $t extends vt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=ft),t.add(e),this.$objectType="volumes.v4.config.IscsiClientProjection",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new $t,vt.constructFromObject(e,t,!0),e.hasOwnProperty("clusterProjection")&&null!==e.clusterProjection&&void 0!==e.clusterProjection&&t.setClusterProjection(wt.constructFromObject(e.clusterProjection)),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getClusterProjection(){return this.clusterProjection}setClusterProjection(e){this.clusterProjection=e}toJson(e){return!1===e?{...void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{},...void 0!==this.getIscsiInitiatorName()&&null!==this.getIscsiInitiatorName()?{iscsiInitiatorName:this.getIscsiInitiatorName()}:{},...void 0!==this.getIscsiInitiatorNetworkId()&&null!==this.getIscsiInitiatorNetworkId()?{iscsiInitiatorNetworkId:this.getIscsiInitiatorNetworkId().toJson(!1)}:{},...void 0!==this.getClientSecret()&&null!==this.getClientSecret()?{clientSecret:this.getClientSecret()}:{},...void 0!==this.getEnabledAuthentications()&&null!==this.getEnabledAuthentications()?{enabledAuthentications:this.getEnabledAuthentications()}:{},...void 0!==this.getAttachedTargets()&&null!==this.getAttachedTargets()?{attachedTargets:this.getAttachedTargets().map(e=>e.toJson(!1))}:{},...void 0!==this.getNumVirtualTargets()&&null!==this.getNumVirtualTargets()?{numVirtualTargets:this.getNumVirtualTargets()}:{},...void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{},...void 0!==this.getAttachmentSite()&&null!==this.getAttachmentSite()?{attachmentSite:this.getAttachmentSite()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{},...void 0!==this.getIscsiInitiatorName()&&null!==this.getIscsiInitiatorName()?{iscsiInitiatorName:this.getIscsiInitiatorName()}:{},...void 0!==this.getIscsiInitiatorNetworkId()&&null!==this.getIscsiInitiatorNetworkId()?{iscsiInitiatorNetworkId:this.getIscsiInitiatorNetworkId().toJson(!1)}:{},...void 0!==this.getClientSecret()&&null!==this.getClientSecret()?{clientSecret:this.getClientSecret()}:{},...void 0!==this.getEnabledAuthentications()&&null!==this.getEnabledAuthentications()?{enabledAuthentications:this.getEnabledAuthentications()}:{},...void 0!==this.getNumVirtualTargets()&&null!==this.getNumVirtualTargets()?{numVirtualTargets:this.getNumVirtualTargets()}:{},...void 0!==this.getAttachmentSite()&&null!==this.getAttachmentSite()?{attachmentSite:this.getAttachmentSite()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"clusterProjection"!==t||void 0!==this.clusterProjection&&null!==this.clusterProjection?new F(t,"no such property exists"):new F("clusterProjection","undefined or null")}}function mt(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")}$t.prototype.clusterProjection=void 0,vt.prototype.iscsiInitiatorName=void 0,vt.prototype.iscsiInitiatorNetworkId=void 0,vt.prototype.clientSecret=void 0,vt.prototype.enabledAuthentications=void 0,vt.prototype.attachedTargets=void 0,vt.prototype.numVirtualTargets=void 0,vt.prototype.clusterReference=void 0,vt.prototype.attachmentSite=void 0,ot.prototype.extId=void 0,ot.prototype.links=void 0,it.prototype.tenantId=void 0;var kt=new WeakSet;class bt extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=kt),t.add(e),this.$objectType="volumes.v4.config.ListIscsiClientsApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,o,a,l;if(e){if(t=t||new bt,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],s=e.data,l=s[0].hasOwnProperty("$objectType")?s[0].$objectType:typeof s[0],o=0;o<s.length;o++)switch(l){case"volumes.v4.config.IscsiClient":i=vt.constructFromObject(s[o],void 0),a.push(i);break;case"volumes.v4.config.IscsiClientProjection":i=$t.constructFromObject(s[o],void 0),a.push(i);break;default:throw"Unknown list of type "+l+" in data"}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"volumes.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Ve.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):mt(kt,this,jt).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):mt(kt,this,jt).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function jt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Tt(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")}bt.prototype.metadata=void 0,bt.prototype.data=void 0,bt.prototype.$reserved=void 0,bt.prototype.$objectType=void 0,bt.prototype.$unknownFields=void 0;var Ft=new WeakSet;class Ot extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Ft),t.add(e),this.$objectType="volumes.v4.config.GetIscsiClientApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new Ot,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"volumes.v4.config.IscsiClient":t.setData(vt.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":t.setData(Ve.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Tt(Ft,this,It).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Tt(Ft,this,It).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function It(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Ot.prototype.metadata=void 0,Ot.prototype.data=void 0,Ot.prototype.$reserved=void 0,Ot.prototype.$objectType=void 0,Ot.prototype.$unknownFields=void 0;var Pt=new WeakSet;class At extends ot{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Pt),t.add(e),this.$objectType="volumes.v4.config.NvmfClient",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r;if(e){if(t=t||new At,ot.constructFromObject(e,t,!0),e.hasOwnProperty("nvmfInitiatorName")&&null!==e.nvmfInitiatorName&&void 0!==e.nvmfInitiatorName&&t.setNvmfInitiatorName(e.nvmfInitiatorName),e.hasOwnProperty("attachedTargets")&&null!==e.attachedTargets&&void 0!==e.attachedTargets){for(r=[],s=e.attachedTargets,i=0;i<s.length;i++)r.push(s[i]);t.setAttachedTargets(r)}if(e.hasOwnProperty("clusterReference")&&null!==e.clusterReference&&void 0!==e.clusterReference&&t.setClusterReference(e.clusterReference),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getNvmfInitiatorName(){return this.nvmfInitiatorName}setNvmfInitiatorName(e){this.nvmfInitiatorName=e}getAttachedTargets(){return this.attachedTargets}setAttachedTargets(e){this.attachedTargets=e}getClusterReference(){return this.clusterReference}setClusterReference(e){this.clusterReference=e}toJson(e){return!1===e?{...void 0!==this.getNvmfInitiatorName()&&null!==this.getNvmfInitiatorName()?{nvmfInitiatorName:this.getNvmfInitiatorName()}:{},...void 0!==this.getAttachedTargets()&&null!==this.getAttachedTargets()?{attachedTargets:this.getAttachedTargets()}:{},...void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getNvmfInitiatorName()&&null!==this.getNvmfInitiatorName()?{nvmfInitiatorName:this.getNvmfInitiatorName()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("nvmfInitiatorName"===t){if(void 0===this.nvmfInitiatorName||null===this.nvmfInitiatorName)return new F("nvmfInitiatorName","undefined or null");if(!T.validateMaxLength(this.nvmfInitiatorName,68))return new F("nvmfInitiatorName","does not satisfy required maxLength constraint: 68")}if("attachedTargets"===t){if(void 0===this.attachedTargets||null===this.attachedTargets)return new F("attachedTargets","undefined or null");if(!T.validateMaxItems(this.attachedTargets,20))return new F("attachedTargets","does not satisfy required maxItems constraint: 20")}if("clusterReference"===t){if(void 0===this.clusterReference||null===this.clusterReference)return new F("clusterReference","undefined or null");if(!T.validatePattern(this.clusterReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new F("clusterReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return new F(t,"no such property exists")}}At.prototype.nvmfInitiatorName=void 0,At.prototype.attachedTargets=void 0,At.prototype.clusterReference=void 0,ot.prototype.extId=void 0,ot.prototype.links=void 0,it.prototype.tenantId=void 0;var Et=new WeakSet;class Ct extends At{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Et),t.add(e),this.$objectType="volumes.v4.config.NvmfClientProjection",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ct,At.constructFromObject(e,t,!0),e.hasOwnProperty("clusterProjection")&&null!==e.clusterProjection&&void 0!==e.clusterProjection&&t.setClusterProjection(wt.constructFromObject(e.clusterProjection)),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getClusterProjection(){return this.clusterProjection}setClusterProjection(e){this.clusterProjection=e}toJson(e){return!1===e?{...void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{},...void 0!==this.getNvmfInitiatorName()&&null!==this.getNvmfInitiatorName()?{nvmfInitiatorName:this.getNvmfInitiatorName()}:{},...void 0!==this.getAttachedTargets()&&null!==this.getAttachedTargets()?{attachedTargets:this.getAttachedTargets()}:{},...void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{},...void 0!==this.getNvmfInitiatorName()&&null!==this.getNvmfInitiatorName()?{nvmfInitiatorName:this.getNvmfInitiatorName()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"clusterProjection"!==t||void 0!==this.clusterProjection&&null!==this.clusterProjection?new F(t,"no such property exists"):new F("clusterProjection","undefined or null")}}function Rt(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")}Ct.prototype.clusterProjection=void 0,At.prototype.nvmfInitiatorName=void 0,At.prototype.attachedTargets=void 0,At.prototype.clusterReference=void 0,ot.prototype.extId=void 0,ot.prototype.links=void 0,it.prototype.tenantId=void 0;var Dt=new WeakSet;class Ut extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Dt),t.add(e),this.$objectType="volumes.v4.config.ListNvmfClientsApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,o,a,l;if(e){if(t=t||new Ut,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],s=e.data,l=s[0].hasOwnProperty("$objectType")?s[0].$objectType:typeof s[0],o=0;o<s.length;o++)switch(l){case"volumes.v4.config.NvmfClient":i=At.constructFromObject(s[o],void 0),a.push(i);break;case"volumes.v4.config.NvmfClientProjection":i=Ct.constructFromObject(s[o],void 0),a.push(i);break;default:throw"Unknown list of type "+l+" in data"}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"volumes.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Ve.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Rt(Dt,this,xt).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Rt(Dt,this,xt).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function xt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function St(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")}Ut.prototype.metadata=void 0,Ut.prototype.data=void 0,Ut.prototype.$reserved=void 0,Ut.prototype.$objectType=void 0,Ut.prototype.$unknownFields=void 0;var Nt=new WeakSet;class Mt extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Nt),t.add(e),this.$objectType="volumes.v4.config.GetNvmfClientApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new Mt,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"volumes.v4.config.NvmfClient":t.setData(At.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":t.setData(Ve.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):St(Nt,this,Jt).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):St(Nt,this,Jt).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function Jt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Mt.prototype.metadata=void 0,Mt.prototype.data=void 0,Mt.prototype.$reserved=void 0,Mt.prototype.$objectType=void 0,Mt.prototype.$unknownFields=void 0;const Bt={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",NONE:"NONE",DIRECT:"DIRECT",EXTERNAL:"EXTERNAL",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Bt).find(t=>Bt[t]===e);return null==t?Bt.$UNKNOWN:Bt[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Bt.$UNKNOWN:case Bt.$REDACTED:case Bt.NONE:case Bt.DIRECT:case Bt.EXTERNAL:return;default:throw new Error("Invalid : must be AttachmentType.{ $UNKNOWN|$REDACTED|NONE|DIRECT|EXTERNAL }")}}};Object.freeze(Bt);const Lt=Bt,_t={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",IN_PROGRESS:"IN_PROGRESS",COMPLETE:"COMPLETE",FAIL:"FAIL",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(_t).find(t=>_t[t]===e);return null==t?_t.$UNKNOWN:_t[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case _t.$UNKNOWN:case _t.$REDACTED:case _t.IN_PROGRESS:case _t.COMPLETE:case _t.FAIL:return;default:throw new Error("Invalid : must be HydrationStatus.{ $UNKNOWN|$REDACTED|IN_PROGRESS|COMPLETE|FAIL }")}}};Object.freeze(_t);const Vt=_t;var Wt=new WeakSet;class Gt{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Wt),t.add(e),this.$objectType="volumes.v4.config.IscsiFeatures",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Gt,e.hasOwnProperty("targetSecret")&&null!==e.targetSecret&&void 0!==e.targetSecret&&t.setTargetSecret(e.targetSecret),e.hasOwnProperty("enabledAuthentications")&&null!==e.enabledAuthentications&&void 0!==e.enabledAuthentications&&t.setEnabledAuthentications(lt.constructFromObject(e.enabledAuthentications)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getTargetSecret(){return this.targetSecret}setTargetSecret(e){this.targetSecret=e}getEnabledAuthentications(){return this.enabledAuthentications}setEnabledAuthentications(e){this.enabledAuthentications=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getTargetSecret()&&null!==this.getTargetSecret()?{targetSecret:this.getTargetSecret()}:{},...void 0!==this.getEnabledAuthentications()&&null!==this.getEnabledAuthentications()?{enabledAuthentications:this.getEnabledAuthentications()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"targetSecret"!==t||void 0!==this.targetSecret&&null!==this.targetSecret?"enabledAuthentications"!==t||void 0!==this.enabledAuthentications&&null!==this.enabledAuthentications?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("enabledAuthentications","undefined or null"):new F("targetSecret","undefined or null")}}Gt.prototype.targetSecret=void 0,Gt.prototype.enabledAuthentications=void 0,Gt.prototype.$reserved=void 0,Gt.prototype.$objectType=void 0,Gt.prototype.$unknownFields=void 0;const Kt={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",NOT_ASSIGNED:"NOT_ASSIGNED",ISCSI:"ISCSI",NVMF:"NVMF",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Kt).find(t=>Kt[t]===e);return null==t?Kt.$UNKNOWN:Kt[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Kt.$UNKNOWN:case Kt.$REDACTED:case Kt.NOT_ASSIGNED:case Kt.ISCSI:case Kt.NVMF:return;default:throw new Error("Invalid : must be Protocol.{ $UNKNOWN|$REDACTED|NOT_ASSIGNED|ISCSI|NVMF }")}}};Object.freeze(Kt);const qt=Kt,zt={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SHARED:"SHARED",NOT_SHARED:"NOT_SHARED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(zt).find(t=>zt[t]===e);return null==t?zt.$UNKNOWN:zt[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case zt.$UNKNOWN:case zt.$REDACTED:case zt.SHARED:case zt.NOT_SHARED:return;default:throw new Error("Invalid : must be SharingStatus.{ $UNKNOWN|$REDACTED|SHARED|NOT_SHARED }")}}};Object.freeze(zt);const Ht=zt;var Yt=new WeakSet;class Xt{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Yt),t.add(e),this.$objectType="volumes.v4.config.FlashMode",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Xt,e.hasOwnProperty("isEnabled")&&null!==e.isEnabled&&void 0!==e.isEnabled&&t.setIsEnabled(e.isEnabled),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getIsEnabled(){return this.isEnabled}setIsEnabled(e){this.isEnabled=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"isEnabled"!==t||void 0!==this.isEnabled&&null!==this.isEnabled?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("isEnabled","undefined or null")}}Xt.prototype.isEnabled=!1,Xt.prototype.$reserved=void 0,Xt.prototype.$objectType=void 0,Xt.prototype.$unknownFields=void 0;var Zt=new WeakSet;class Qt{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Zt),t.add(e),this.$objectType="volumes.v4.config.StorageFeatures",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Qt,e.hasOwnProperty("flashMode")&&null!==e.flashMode&&void 0!==e.flashMode&&t.setFlashMode(Xt.constructFromObject(e.flashMode)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getFlashMode(){return this.flashMode}setFlashMode(e){this.flashMode=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getFlashMode()&&null!==this.getFlashMode()?{flashMode:this.getFlashMode().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"flashMode"!==t||void 0!==this.flashMode&&null!==this.flashMode?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("flashMode","undefined or null")}}Qt.prototype.flashMode=void 0,Qt.prototype.$reserved=void 0,Qt.prototype.$objectType=void 0,Qt.prototype.$unknownFields=void 0;const en={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",USER:"USER",INTERNAL:"INTERNAL",TEMPORARY:"TEMPORARY",BACKUP_TARGET:"BACKUP_TARGET",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(en).find(t=>en[t]===e);return null==t?en.$UNKNOWN:en[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case en.$UNKNOWN:case en.$REDACTED:case en.USER:case en.INTERNAL:case en.TEMPORARY:case en.BACKUP_TARGET:return;default:throw new Error("Invalid : must be UsageType.{ $UNKNOWN|$REDACTED|USER|INTERNAL|TEMPORARY|BACKUP_TARGET }")}}};Object.freeze(en);const tn=en;var nn=new WeakSet;class sn{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=nn),t.add(e),this.$objectType="volumes.v4.config.IscsiClientAttachment",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new sn,e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&t.setExtId(e.extId),e.hasOwnProperty("clusterReference")&&null!==e.clusterReference&&void 0!==e.clusterReference&&t.setClusterReference(e.clusterReference),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getExtId(){return this.extId}setExtId(e){this.extId=e}getClusterReference(){return this.clusterReference}setClusterReference(e){this.clusterReference=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new F("extId","undefined or null");if(!T.validatePattern(this.extId,/^[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}$/))return new F("extId","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}$/")}if("clusterReference"===t){if(void 0===this.clusterReference||null===this.clusterReference)return new F("clusterReference","undefined or null");if(!T.validatePattern(this.clusterReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new F("clusterReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null")}}sn.prototype.extId=void 0,sn.prototype.clusterReference=void 0,sn.prototype.$reserved=void 0,sn.prototype.$objectType=void 0,sn.prototype.$unknownFields=void 0;var rn=new WeakSet;class on extends ot{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=rn),t.add(e),this.$objectType="volumes.v4.config.NvmfClientAttachment",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new on,ot.constructFromObject(e,t,!0),e.hasOwnProperty("clusterReference")&&null!==e.clusterReference&&void 0!==e.clusterReference&&t.setClusterReference(e.clusterReference),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getClusterReference(){return this.clusterReference}setClusterReference(e){this.clusterReference=e}toJson(e){return!1===e?{...void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("clusterReference"===t){if(void 0===this.clusterReference||null===this.clusterReference)return new F("clusterReference","undefined or null");if(!T.validatePattern(this.clusterReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new F("clusterReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return new F(t,"no such property exists")}}on.prototype.clusterReference=void 0,ot.prototype.extId=void 0,ot.prototype.links=void 0,it.prototype.tenantId=void 0;var an=new WeakSet;class ln{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=an),n.add(t),this.extId=e,this.$objectType="volumes.v4.config.VmAttachment",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new ln,e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&t.setExtId(e.extId),e.hasOwnProperty("index")&&null!==e.index&&void 0!==e.index&&t.setIndex(e.index),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getExtId(){return this.extId}setExtId(e){this.extId=e}getIndex(){return this.index}setIndex(e){this.index=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getIndex()&&null!==this.getIndex()?{index:this.getIndex()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=["extId"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new F("extId","undefined or null");if(!T.validatePattern(this.extId,/^[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}$/))return new F("extId","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}$/")}return"index"!==t||void 0!==this.index&&null!==this.index?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("index","undefined or null")}}function dn(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")}ln.prototype.extId=void 0,ln.prototype.index=void 0,ln.prototype.$reserved=void 0,ln.prototype.$objectType=void 0,ln.prototype.$unknownFields=void 0;var un=new WeakSet;class hn{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=un),t.add(e),this.$objectType="volumes.v4.config.VGAttachment",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new hn,e.hasOwnProperty("attachment")&&null!==e.attachment&&void 0!==e.attachment)switch(s=e.attachment.hasOwnProperty("$objectType")?e.attachment.$objectType:typeof e.attachment,s){case"volumes.v4.config.VmAttachment":t.setAttachment(ln.constructFromObject(e.attachment,void 0));break;case"volumes.v4.config.IscsiClientAttachment":t.setAttachment(sn.constructFromObject(e.attachment,void 0));break;case"volumes.v4.config.NvmfClientAttachment":t.setAttachment(on.constructFromObject(e.attachment,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getAttachment(){return this.attachment}setAttachment(e){this.attachment=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getAttachment()&&null!==this.getAttachment()?{attachment:void 0!==this.getAttachment().toJson?this.getAttachment().toJson(!1):Array.isArray(this.getAttachment())?this.getAttachment().map(e=>void 0!==e.toJson?e.toJson(!1):e):dn(un,this,cn).call(this,this.getAttachment(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getAttachment()&&null!==this.getAttachment()?{attachment:void 0!==this.getAttachment().toJson?this.getAttachment().toJson():Array.isArray(this.getAttachment())?this.getAttachment().map(e=>void 0!==e.toJson?e.toJson():e):dn(un,this,cn).call(this,this.getAttachment())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"attachment"!==t||void 0!==this.attachment&&null!==this.attachment?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("attachment","undefined or null")}}function cn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}hn.prototype.attachment=void 0,hn.prototype.$reserved=void 0,hn.prototype.$objectType=void 0,hn.prototype.$unknownFields=void 0;const pn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CLUSTER:"CLUSTER",VM:"VM",STORAGE_CONTAINER:"STORAGE_CONTAINER",VOLUME_GROUP:"VOLUME_GROUP",TASK:"TASK",IMAGE:"IMAGE",CATEGORY:"CATEGORY",NODE:"NODE",VPC:"VPC",SUBNET:"SUBNET",ROUTING_POLICY:"ROUTING_POLICY",FLOATING_IP:"FLOATING_IP",VPN_GATEWAY:"VPN_GATEWAY",VPN_CONNECTION:"VPN_CONNECTION",DIRECT_CONNECT:"DIRECT_CONNECT",DIRECT_CONNECT_VIF:"DIRECT_CONNECT_VIF",VIRTUAL_NIC:"VIRTUAL_NIC",VIRTUAL_SWITCH:"VIRTUAL_SWITCH",VM_DISK:"VM_DISK",VOLUME_DISK:"VOLUME_DISK",DISK_RECOVERY_POINT:"DISK_RECOVERY_POINT",VTEP_GATEWAY:"VTEP_GATEWAY",RECOVERY_PLAN:"RECOVERY_PLAN",RECOVERY_PLAN_JOB:"RECOVERY_PLAN_JOB",AVAILABILITY_ZONE:"AVAILABILITY_ZONE",VIRTUAL_NETWORK:"VIRTUAL_NETWORK",CONSISTENCY_GROUP:"CONSISTENCY_GROUP",SUBNET_EXTENSION:"SUBNET_EXTENSION",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(pn).find(t=>pn[t]===e);return null==t?pn.$UNKNOWN:pn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case pn.$UNKNOWN:case pn.$REDACTED:case pn.CLUSTER:case pn.VM:case pn.STORAGE_CONTAINER:case pn.VOLUME_GROUP:case pn.TASK:case pn.IMAGE:case pn.CATEGORY:case pn.NODE:case pn.VPC:case pn.SUBNET:case pn.ROUTING_POLICY:case pn.FLOATING_IP:case pn.VPN_GATEWAY:case pn.VPN_CONNECTION:case pn.DIRECT_CONNECT:case pn.DIRECT_CONNECT_VIF:case pn.VIRTUAL_NIC:case pn.VIRTUAL_SWITCH:case pn.VM_DISK:case pn.VOLUME_DISK:case pn.DISK_RECOVERY_POINT:case pn.VTEP_GATEWAY:case pn.RECOVERY_PLAN:case pn.RECOVERY_PLAN_JOB:case pn.AVAILABILITY_ZONE:case pn.VIRTUAL_NETWORK:case pn.CONSISTENCY_GROUP:case pn.SUBNET_EXTENSION:return;default:throw new Error("Invalid : must be EntityType.{ $UNKNOWN|$REDACTED|CLUSTER|VM|STORAGE_CONTAINER|VOLUME_GROUP|TASK|IMAGE|CATEGORY|NODE|VPC|SUBNET|ROUTING_POLICY|FLOATING_IP|VPN_GATEWAY|VPN_CONNECTION|DIRECT_CONNECT|DIRECT_CONNECT_VIF|VIRTUAL_NIC|VIRTUAL_SWITCH|VM_DISK|VOLUME_DISK|DISK_RECOVERY_POINT|VTEP_GATEWAY|RECOVERY_PLAN|RECOVERY_PLAN_JOB|AVAILABILITY_ZONE|VIRTUAL_NETWORK|CONSISTENCY_GROUP|SUBNET_EXTENSION }")}}};Object.freeze(pn);const vn=pn;var gn=new WeakSet;class yn{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=gn),t.add(e),this.$objectType="common.v1.config.EntityReference",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r;if(e){if(t=t||new yn,e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&t.setExtId(e.extId),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("uris")&&null!==e.uris&&void 0!==e.uris){for(r=[],s=e.uris,i=0;i<s.length;i++)r.push(s[i]);t.setUris(r)}if(e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&t.setEntityType(vn.constructFromObject(e.entityType)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getExtId(){return this.extId}setExtId(e){this.extId=e}getName(){return this.name}setName(e){this.name=e}getUris(){return this.uris}setUris(e){this.uris=e}getEntityType(){return this.entityType}setEntityType(e){this.entityType=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getUris()&&null!==this.getUris()?{uris:this.getUris()}:{},...void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new F("extId","undefined or null");if(!T.validatePattern(this.extId,/^[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}$/))return new F("extId","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}$/")}if("name"===t){if(void 0===this.name||null===this.name)return new F("name","undefined or null");if(!T.validateMaxLength(this.name,256))return new F("name","does not satisfy required maxLength constraint: 256")}if("uris"===t){if(void 0===this.uris||null===this.uris)return new F("uris","undefined or null");if(!T.validateMaxItems(this.uris,100))return new F("uris","does not satisfy required maxItems constraint: 100")}return"entityType"!==t||void 0!==this.entityType&&null!==this.entityType?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("entityType","undefined or null")}}yn.prototype.extId=void 0,yn.prototype.name=void 0,yn.prototype.uris=void 0,yn.prototype.entityType=void 0,yn.prototype.$reserved=void 0,yn.prototype.$objectType=void 0,yn.prototype.$unknownFields=void 0;var wn=new WeakSet;class fn{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=wn),t.add(e),this.$objectType="volumes.v4.config.DiskStorageFeatures",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new fn,e.hasOwnProperty("flashMode")&&null!==e.flashMode&&void 0!==e.flashMode&&t.setFlashMode(Xt.constructFromObject(e.flashMode)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getFlashMode(){return this.flashMode}setFlashMode(e){this.flashMode=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getFlashMode()&&null!==this.getFlashMode()?{flashMode:this.getFlashMode().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"flashMode"!==t||void 0!==this.flashMode&&null!==this.flashMode?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("flashMode","undefined or null")}}fn.prototype.flashMode=void 0,fn.prototype.$reserved=void 0,fn.prototype.$objectType=void 0,fn.prototype.$unknownFields=void 0;var $n=new WeakSet;class mn extends ot{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=$n),t.add(e),this.$objectType="volumes.v4.config.VolumeDisk",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new mn,ot.constructFromObject(e,t,!0),e.hasOwnProperty("index")&&null!==e.index&&void 0!==e.index&&t.setIndex(e.index),e.hasOwnProperty("diskSizeBytes")&&null!==e.diskSizeBytes&&void 0!==e.diskSizeBytes&&t.setDiskSizeBytes(e.diskSizeBytes),e.hasOwnProperty("storageContainerId")&&null!==e.storageContainerId&&void 0!==e.storageContainerId&&t.setStorageContainerId(e.storageContainerId),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&t.setDescription(e.description),e.hasOwnProperty("diskDataSourceReference")&&null!==e.diskDataSourceReference&&void 0!==e.diskDataSourceReference&&t.setDiskDataSourceReference(yn.constructFromObject(e.diskDataSourceReference)),e.hasOwnProperty("diskStorageFeatures")&&null!==e.diskStorageFeatures&&void 0!==e.diskStorageFeatures&&t.setDiskStorageFeatures(fn.constructFromObject(e.diskStorageFeatures)),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getIndex(){return this.index}setIndex(e){this.index=e}getDiskSizeBytes(){return this.diskSizeBytes}setDiskSizeBytes(e){this.diskSizeBytes=e}getStorageContainerId(){return this.storageContainerId}setStorageContainerId(e){this.storageContainerId=e}getDescription(){return this.description}setDescription(e){this.description=e}getDiskDataSourceReference(){return this.diskDataSourceReference}setDiskDataSourceReference(e){this.diskDataSourceReference=e}getDiskStorageFeatures(){return this.diskStorageFeatures}setDiskStorageFeatures(e){this.diskStorageFeatures=e}toJson(e){return!1===e?{...void 0!==this.getIndex()&&null!==this.getIndex()?{index:this.getIndex()}:{},...void 0!==this.getDiskSizeBytes()&&null!==this.getDiskSizeBytes()?{diskSizeBytes:this.getDiskSizeBytes()}:{},...void 0!==this.getStorageContainerId()&&null!==this.getStorageContainerId()?{storageContainerId:this.getStorageContainerId()}:{},...void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{},...void 0!==this.getDiskDataSourceReference()&&null!==this.getDiskDataSourceReference()?{diskDataSourceReference:this.getDiskDataSourceReference().toJson(!1)}:{},...void 0!==this.getDiskStorageFeatures()&&null!==this.getDiskStorageFeatures()?{diskStorageFeatures:this.getDiskStorageFeatures().toJson(!1)}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getIndex()&&null!==this.getIndex()?{index:this.getIndex()}:{},...void 0!==this.getDiskSizeBytes()&&null!==this.getDiskSizeBytes()?{diskSizeBytes:this.getDiskSizeBytes()}:{},...void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{},...void 0!==this.getDiskDataSourceReference()&&null!==this.getDiskDataSourceReference()?{diskDataSourceReference:this.getDiskDataSourceReference().toJson(!1)}:{},...void 0!==this.getDiskStorageFeatures()&&null!==this.getDiskStorageFeatures()?{diskStorageFeatures:this.getDiskStorageFeatures().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("index"===t){if(void 0===this.index||null===this.index)return new F("index","undefined or null");if(!T.validateMaximum(this.index,16383))return new F("index","does not satisfy required maximum constraint: 16383");if(!T.validateMinimum(this.index,0))return new F("index","does not satisfy required minimum constraint: 0")}if("diskSizeBytes"===t){if(void 0===this.diskSizeBytes||null===this.diskSizeBytes)return new F("diskSizeBytes","undefined or null");if(!T.validateMaximum(this.diskSizeBytes,0xc80000000000))return new F("diskSizeBytes","does not satisfy required maximum constraint: 219902325555200");if(!T.validateMinimum(this.diskSizeBytes,524288))return new F("diskSizeBytes","does not satisfy required minimum constraint: 524288")}if("storageContainerId"===t){if(void 0===this.storageContainerId||null===this.storageContainerId)return new F("storageContainerId","undefined or null");if(!T.validatePattern(this.storageContainerId,/^[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}$/))return new F("storageContainerId","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}$/")}if("description"===t){if(void 0===this.description||null===this.description)return new F("description","undefined or null");if(!T.validateMaxLength(this.description,1e3))return new F("description","does not satisfy required maxLength constraint: 1000")}return"diskDataSourceReference"!==t||void 0!==this.diskDataSourceReference&&null!==this.diskDataSourceReference?"diskStorageFeatures"!==t||void 0!==this.diskStorageFeatures&&null!==this.diskStorageFeatures?new F(t,"no such property exists"):new F("diskStorageFeatures","undefined or null"):new F("diskDataSourceReference","undefined or null")}}mn.prototype.index=void 0,mn.prototype.diskSizeBytes=void 0,mn.prototype.storageContainerId=void 0,mn.prototype.description=void 0,mn.prototype.diskDataSourceReference=void 0,mn.prototype.diskStorageFeatures=void 0,ot.prototype.extId=void 0,ot.prototype.links=void 0,it.prototype.tenantId=void 0;var kn=new WeakSet;class bn extends ot{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=kn),t.add(e),this.$objectType="volumes.v4.config.VolumeGroup",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r,o;if(e){if(t=t||new bn,ot.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&t.setDescription(e.description),e.hasOwnProperty("shouldLoadBalanceVmAttachments")&&null!==e.shouldLoadBalanceVmAttachments&&void 0!==e.shouldLoadBalanceVmAttachments&&t.setShouldLoadBalanceVmAttachments(e.shouldLoadBalanceVmAttachments),e.hasOwnProperty("sharingStatus")&&null!==e.sharingStatus&&void 0!==e.sharingStatus&&t.setSharingStatus(Ht.constructFromObject(e.sharingStatus)),e.hasOwnProperty("targetPrefix")&&null!==e.targetPrefix&&void 0!==e.targetPrefix&&t.setTargetPrefix(e.targetPrefix),e.hasOwnProperty("targetName")&&null!==e.targetName&&void 0!==e.targetName&&t.setTargetName(e.targetName),e.hasOwnProperty("enabledAuthentications")&&null!==e.enabledAuthentications&&void 0!==e.enabledAuthentications&&t.setEnabledAuthentications(lt.constructFromObject(e.enabledAuthentications)),e.hasOwnProperty("iscsiFeatures")&&null!==e.iscsiFeatures&&void 0!==e.iscsiFeatures&&t.setIscsiFeatures(Gt.constructFromObject(e.iscsiFeatures)),e.hasOwnProperty("createdBy")&&null!==e.createdBy&&void 0!==e.createdBy&&t.setCreatedBy(e.createdBy),e.hasOwnProperty("clusterReference")&&null!==e.clusterReference&&void 0!==e.clusterReference&&t.setClusterReference(e.clusterReference),e.hasOwnProperty("storageFeatures")&&null!==e.storageFeatures&&void 0!==e.storageFeatures&&t.setStorageFeatures(Qt.constructFromObject(e.storageFeatures)),e.hasOwnProperty("usageType")&&null!==e.usageType&&void 0!==e.usageType&&t.setUsageType(tn.constructFromObject(e.usageType)),e.hasOwnProperty("attachmentType")&&null!==e.attachmentType&&void 0!==e.attachmentType&&t.setAttachmentType(Lt.constructFromObject(e.attachmentType)),e.hasOwnProperty("protocol")&&null!==e.protocol&&void 0!==e.protocol&&t.setProtocol(qt.constructFromObject(e.protocol)),e.hasOwnProperty("isHidden")&&null!==e.isHidden&&void 0!==e.isHidden&&t.setIsHidden(e.isHidden),e.hasOwnProperty("disks")&&null!==e.disks&&void 0!==e.disks){for(o=[],s=e.disks,r=0;r<s.length;r++)i=mn.constructFromObject(s[r],void 0),o.push(i);t.setDisks(o)}if(e.hasOwnProperty("attachments")&&null!==e.attachments&&void 0!==e.attachments){for(o=[],s=e.attachments,r=0;r<s.length;r++)i=hn.constructFromObject(s[r],void 0),o.push(i);t.setAttachments(o)}if(e.hasOwnProperty("hydrationStatus")&&null!==e.hydrationStatus&&void 0!==e.hydrationStatus&&t.setHydrationStatus(Vt.constructFromObject(e.hydrationStatus)),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getDescription(){return this.description}setDescription(e){this.description=e}getShouldLoadBalanceVmAttachments(){return this.shouldLoadBalanceVmAttachments}setShouldLoadBalanceVmAttachments(e){this.shouldLoadBalanceVmAttachments=e}getSharingStatus(){return this.sharingStatus}setSharingStatus(e){this.sharingStatus=e}getTargetPrefix(){return this.targetPrefix}setTargetPrefix(e){this.targetPrefix=e}getTargetName(){return this.targetName}setTargetName(e){this.targetName=e}getEnabledAuthentications(){return this.enabledAuthentications}setEnabledAuthentications(e){this.enabledAuthentications=e}getIscsiFeatures(){return this.iscsiFeatures}setIscsiFeatures(e){this.iscsiFeatures=e}getCreatedBy(){return this.createdBy}setCreatedBy(e){this.createdBy=e}getClusterReference(){return this.clusterReference}setClusterReference(e){this.clusterReference=e}getStorageFeatures(){return this.storageFeatures}setStorageFeatures(e){this.storageFeatures=e}getUsageType(){return this.usageType}setUsageType(e){this.usageType=e}getAttachmentType(){return this.attachmentType}setAttachmentType(e){this.attachmentType=e}getProtocol(){return this.protocol}setProtocol(e){this.protocol=e}getIsHidden(){return this.isHidden}setIsHidden(e){this.isHidden=e}getDisks(){return this.disks}setDisks(e){this.disks=e}getAttachments(){return this.attachments}setAttachments(e){this.attachments=e}getHydrationStatus(){return this.hydrationStatus}setHydrationStatus(e){this.hydrationStatus=e}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{},...void 0!==this.getShouldLoadBalanceVmAttachments()&&null!==this.getShouldLoadBalanceVmAttachments()?{shouldLoadBalanceVmAttachments:this.getShouldLoadBalanceVmAttachments()}:{},...void 0!==this.getSharingStatus()&&null!==this.getSharingStatus()?{sharingStatus:this.getSharingStatus()}:{},...void 0!==this.getTargetPrefix()&&null!==this.getTargetPrefix()?{targetPrefix:this.getTargetPrefix()}:{},...void 0!==this.getTargetName()&&null!==this.getTargetName()?{targetName:this.getTargetName()}:{},...void 0!==this.getEnabledAuthentications()&&null!==this.getEnabledAuthentications()?{enabledAuthentications:this.getEnabledAuthentications()}:{},...void 0!==this.getIscsiFeatures()&&null!==this.getIscsiFeatures()?{iscsiFeatures:this.getIscsiFeatures().toJson(!1)}:{},...void 0!==this.getCreatedBy()&&null!==this.getCreatedBy()?{createdBy:this.getCreatedBy()}:{},...void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{},...void 0!==this.getStorageFeatures()&&null!==this.getStorageFeatures()?{storageFeatures:this.getStorageFeatures().toJson(!1)}:{},...void 0!==this.getUsageType()&&null!==this.getUsageType()?{usageType:this.getUsageType()}:{},...void 0!==this.getAttachmentType()&&null!==this.getAttachmentType()?{attachmentType:this.getAttachmentType()}:{},...void 0!==this.getProtocol()&&null!==this.getProtocol()?{protocol:this.getProtocol()}:{},...void 0!==this.getIsHidden()&&null!==this.getIsHidden()?{isHidden:this.getIsHidden()}:{},...void 0!==this.getDisks()&&null!==this.getDisks()?{disks:this.getDisks().map(e=>e.toJson(!1))}:{},...void 0!==this.getAttachments()&&null!==this.getAttachments()?{attachments:this.getAttachments().map(e=>e.toJson(!1))}:{},...void 0!==this.getHydrationStatus()&&null!==this.getHydrationStatus()?{hydrationStatus:this.getHydrationStatus()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{},...void 0!==this.getShouldLoadBalanceVmAttachments()&&null!==this.getShouldLoadBalanceVmAttachments()?{shouldLoadBalanceVmAttachments:this.getShouldLoadBalanceVmAttachments()}:{},...void 0!==this.getSharingStatus()&&null!==this.getSharingStatus()?{sharingStatus:this.getSharingStatus()}:{},...void 0!==this.getTargetPrefix()&&null!==this.getTargetPrefix()?{targetPrefix:this.getTargetPrefix()}:{},...void 0!==this.getTargetName()&&null!==this.getTargetName()?{targetName:this.getTargetName()}:{},...void 0!==this.getEnabledAuthentications()&&null!==this.getEnabledAuthentications()?{enabledAuthentications:this.getEnabledAuthentications()}:{},...void 0!==this.getIscsiFeatures()&&null!==this.getIscsiFeatures()?{iscsiFeatures:this.getIscsiFeatures().toJson(!1)}:{},...void 0!==this.getCreatedBy()&&null!==this.getCreatedBy()?{createdBy:this.getCreatedBy()}:{},...void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{},...void 0!==this.getStorageFeatures()&&null!==this.getStorageFeatures()?{storageFeatures:this.getStorageFeatures().toJson(!1)}:{},...void 0!==this.getUsageType()&&null!==this.getUsageType()?{usageType:this.getUsageType()}:{},...void 0!==this.getAttachmentType()&&null!==this.getAttachmentType()?{attachmentType:this.getAttachmentType()}:{},...void 0!==this.getProtocol()&&null!==this.getProtocol()?{protocol:this.getProtocol()}:{},...void 0!==this.getIsHidden()&&null!==this.getIsHidden()?{isHidden:this.getIsHidden()}:{},...void 0!==this.getDisks()&&null!==this.getDisks()?{disks:this.getDisks().map(e=>e.toJson(!1))}:{},...void 0!==this.getHydrationStatus()&&null!==this.getHydrationStatus()?{hydrationStatus:this.getHydrationStatus()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new F("name","undefined or null");if(!T.validateMaxLength(this.name,256))return new F("name","does not satisfy required maxLength constraint: 256")}if("description"===t){if(void 0===this.description||null===this.description)return new F("description","undefined or null");if(!T.validateMaxLength(this.description,1e3))return new F("description","does not satisfy required maxLength constraint: 1000")}if("shouldLoadBalanceVmAttachments"===t&&(void 0===this.shouldLoadBalanceVmAttachments||null===this.shouldLoadBalanceVmAttachments))return new F("shouldLoadBalanceVmAttachments","undefined or null");if("sharingStatus"===t&&(void 0===this.sharingStatus||null===this.sharingStatus))return new F("sharingStatus","undefined or null");if("targetPrefix"===t){if(void 0===this.targetPrefix||null===this.targetPrefix)return new F("targetPrefix","undefined or null");if(!T.validateMaxLength(this.targetPrefix,512))return new F("targetPrefix","does not satisfy required maxLength constraint: 512");if(!T.validatePattern(this.targetPrefix,/^[\\da-zA-Z:\\.\\-]+$/))return new F("targetPrefix","does not satisfy required pattern: /^[\\da-zA-Z:\\.\\-]+$/")}if("targetName"===t){if(void 0===this.targetName||null===this.targetName)return new F("targetName","undefined or null");if(!T.validateMaxLength(this.targetName,512))return new F("targetName","does not satisfy required maxLength constraint: 512");if(!T.validateMinLength(this.targetName,12))return new F("targetName","does not satisfy required minLength constraint: 12")}if("enabledAuthentications"===t&&(void 0===this.enabledAuthentications||null===this.enabledAuthentications))return new F("enabledAuthentications","undefined or null");if("iscsiFeatures"===t&&(void 0===this.iscsiFeatures||null===this.iscsiFeatures))return new F("iscsiFeatures","undefined or null");if("createdBy"===t){if(void 0===this.createdBy||null===this.createdBy)return new F("createdBy","undefined or null");if(!T.validateMaxLength(this.createdBy,512))return new F("createdBy","does not satisfy required maxLength constraint: 512")}if("clusterReference"===t){if(void 0===this.clusterReference||null===this.clusterReference)return new F("clusterReference","undefined or null");if(!T.validatePattern(this.clusterReference,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new F("clusterReference","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("storageFeatures"===t&&(void 0===this.storageFeatures||null===this.storageFeatures))return new F("storageFeatures","undefined or null");if("usageType"===t&&(void 0===this.usageType||null===this.usageType))return new F("usageType","undefined or null");if("attachmentType"===t&&(void 0===this.attachmentType||null===this.attachmentType))return new F("attachmentType","undefined or null");if("protocol"===t&&(void 0===this.protocol||null===this.protocol))return new F("protocol","undefined or null");if("isHidden"===t&&(void 0===this.isHidden||null===this.isHidden))return new F("isHidden","undefined or null");if("disks"===t){if(void 0===this.disks||null===this.disks)return new F("disks","undefined or null");if(!T.validateMaxItems(this.disks,10))return new F("disks","does not satisfy required maxItems constraint: 10");if(!T.validateMinItems(this.disks,1))return new F("disks","does not satisfy required minItems constraint: 1")}if("attachments"===t){if(void 0===this.attachments||null===this.attachments)return new F("attachments","undefined or null");if(!T.validateMaxItems(this.attachments,128))return new F("attachments","does not satisfy required maxItems constraint: 128")}return"hydrationStatus"!==t||void 0!==this.hydrationStatus&&null!==this.hydrationStatus?new F(t,"no such property exists"):new F("hydrationStatus","undefined or null")}}function jn(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")}bn.prototype.name=void 0,bn.prototype.description=void 0,bn.prototype.shouldLoadBalanceVmAttachments=!1,bn.prototype.sharingStatus=void 0,bn.prototype.targetPrefix=void 0,bn.prototype.targetName=void 0,bn.prototype.enabledAuthentications=void 0,bn.prototype.iscsiFeatures=void 0,bn.prototype.createdBy=void 0,bn.prototype.clusterReference=void 0,bn.prototype.storageFeatures=void 0,bn.prototype.usageType=void 0,bn.prototype.attachmentType=void 0,bn.prototype.protocol=void 0,bn.prototype.isHidden=!1,bn.prototype.disks=void 0,bn.prototype.attachments=void 0,bn.prototype.hydrationStatus=void 0,ot.prototype.extId=void 0,ot.prototype.links=void 0,it.prototype.tenantId=void 0;var Tn=new WeakSet;class Fn extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Tn),t.add(e),this.$objectType="volumes.v4.config.GetVolumeGroupApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new Fn,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"volumes.v4.config.VolumeGroup":t.setData(bn.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":t.setData(Ve.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):jn(Tn,this,On).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):jn(Tn,this,On).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function On(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Fn.prototype.metadata=void 0,Fn.prototype.data=void 0,Fn.prototype.$reserved=void 0,Fn.prototype.$objectType=void 0,Fn.prototype.$unknownFields=void 0;var In=new WeakSet;class Pn{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=In),t.add(e),this.$objectType="volumes.v4.config.VolumeGroupMetadata",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r;if(e){if(t=t||new Pn,e.hasOwnProperty("ownerReference")&&null!==e.ownerReference&&void 0!==e.ownerReference&&t.setOwnerReference(e.ownerReference),e.hasOwnProperty("categoryIds")&&null!==e.categoryIds&&void 0!==e.categoryIds){for(r=[],s=e.categoryIds,i=0;i<s.length;i++)r.push(s[i]);t.setCategoryIds(r)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getOwnerReference(){return this.ownerReference}setOwnerReference(e){this.ownerReference=e}getCategoryIds(){return this.categoryIds}setCategoryIds(e){this.categoryIds=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getOwnerReference()&&null!==this.getOwnerReference()?{ownerReference:this.getOwnerReference()}:{},...void 0!==this.getCategoryIds()&&null!==this.getCategoryIds()?{categoryIds:this.getCategoryIds()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("ownerReference"===t&&(void 0===this.ownerReference||null===this.ownerReference))return new F("ownerReference","undefined or null");if("categoryIds"===t){if(void 0===this.categoryIds||null===this.categoryIds)return new F("categoryIds","undefined or null");if(!T.validateMaxItems(this.categoryIds,20))return new F("categoryIds","does not satisfy required maxItems constraint: 20")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null")}}Pn.prototype.ownerReference=void 0,Pn.prototype.categoryIds=void 0,Pn.prototype.$reserved=void 0,Pn.prototype.$objectType=void 0,Pn.prototype.$unknownFields=void 0;class An extends Pn{constructor(){super(),this.$objectType="volumes.v4.config.VolumeGroupMetadataProjection",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new An,Pn.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return new F(t,"no such property exists")}}var En=new WeakSet;class Cn extends bn{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=En),t.add(e),this.$objectType="volumes.v4.config.VolumeGroupProjection",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Cn,bn.constructFromObject(e,t,!0),e.hasOwnProperty("clusterProjection")&&null!==e.clusterProjection&&void 0!==e.clusterProjection&&t.setClusterProjection(wt.constructFromObject(e.clusterProjection)),e.hasOwnProperty("volumeGroupMetadataProjection")&&null!==e.volumeGroupMetadataProjection&&void 0!==e.volumeGroupMetadataProjection&&t.setVolumeGroupMetadataProjection(An.constructFromObject(e.volumeGroupMetadataProjection)),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getClusterProjection(){return this.clusterProjection}setClusterProjection(e){this.clusterProjection=e}getVolumeGroupMetadataProjection(){return this.volumeGroupMetadataProjection}setVolumeGroupMetadataProjection(e){this.volumeGroupMetadataProjection=e}toJson(e){return!1===e?{...void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{},...void 0!==this.getVolumeGroupMetadataProjection()&&null!==this.getVolumeGroupMetadataProjection()?{volumeGroupMetadataProjection:this.getVolumeGroupMetadataProjection().toJson(!1)}:{},...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{},...void 0!==this.getShouldLoadBalanceVmAttachments()&&null!==this.getShouldLoadBalanceVmAttachments()?{shouldLoadBalanceVmAttachments:this.getShouldLoadBalanceVmAttachments()}:{},...void 0!==this.getSharingStatus()&&null!==this.getSharingStatus()?{sharingStatus:this.getSharingStatus()}:{},...void 0!==this.getTargetPrefix()&&null!==this.getTargetPrefix()?{targetPrefix:this.getTargetPrefix()}:{},...void 0!==this.getTargetName()&&null!==this.getTargetName()?{targetName:this.getTargetName()}:{},...void 0!==this.getEnabledAuthentications()&&null!==this.getEnabledAuthentications()?{enabledAuthentications:this.getEnabledAuthentications()}:{},...void 0!==this.getIscsiFeatures()&&null!==this.getIscsiFeatures()?{iscsiFeatures:this.getIscsiFeatures().toJson(!1)}:{},...void 0!==this.getCreatedBy()&&null!==this.getCreatedBy()?{createdBy:this.getCreatedBy()}:{},...void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{},...void 0!==this.getStorageFeatures()&&null!==this.getStorageFeatures()?{storageFeatures:this.getStorageFeatures().toJson(!1)}:{},...void 0!==this.getUsageType()&&null!==this.getUsageType()?{usageType:this.getUsageType()}:{},...void 0!==this.getAttachmentType()&&null!==this.getAttachmentType()?{attachmentType:this.getAttachmentType()}:{},...void 0!==this.getProtocol()&&null!==this.getProtocol()?{protocol:this.getProtocol()}:{},...void 0!==this.getIsHidden()&&null!==this.getIsHidden()?{isHidden:this.getIsHidden()}:{},...void 0!==this.getDisks()&&null!==this.getDisks()?{disks:this.getDisks().map(e=>e.toJson(!1))}:{},...void 0!==this.getAttachments()&&null!==this.getAttachments()?{attachments:this.getAttachments().map(e=>e.toJson(!1))}:{},...void 0!==this.getHydrationStatus()&&null!==this.getHydrationStatus()?{hydrationStatus:this.getHydrationStatus()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getClusterProjection()&&null!==this.getClusterProjection()?{clusterProjection:this.getClusterProjection().toJson(!1)}:{},...void 0!==this.getVolumeGroupMetadataProjection()&&null!==this.getVolumeGroupMetadataProjection()?{volumeGroupMetadataProjection:this.getVolumeGroupMetadataProjection().toJson(!1)}:{},...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{},...void 0!==this.getShouldLoadBalanceVmAttachments()&&null!==this.getShouldLoadBalanceVmAttachments()?{shouldLoadBalanceVmAttachments:this.getShouldLoadBalanceVmAttachments()}:{},...void 0!==this.getSharingStatus()&&null!==this.getSharingStatus()?{sharingStatus:this.getSharingStatus()}:{},...void 0!==this.getTargetPrefix()&&null!==this.getTargetPrefix()?{targetPrefix:this.getTargetPrefix()}:{},...void 0!==this.getTargetName()&&null!==this.getTargetName()?{targetName:this.getTargetName()}:{},...void 0!==this.getEnabledAuthentications()&&null!==this.getEnabledAuthentications()?{enabledAuthentications:this.getEnabledAuthentications()}:{},...void 0!==this.getIscsiFeatures()&&null!==this.getIscsiFeatures()?{iscsiFeatures:this.getIscsiFeatures().toJson(!1)}:{},...void 0!==this.getCreatedBy()&&null!==this.getCreatedBy()?{createdBy:this.getCreatedBy()}:{},...void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{},...void 0!==this.getStorageFeatures()&&null!==this.getStorageFeatures()?{storageFeatures:this.getStorageFeatures().toJson(!1)}:{},...void 0!==this.getUsageType()&&null!==this.getUsageType()?{usageType:this.getUsageType()}:{},...void 0!==this.getAttachmentType()&&null!==this.getAttachmentType()?{attachmentType:this.getAttachmentType()}:{},...void 0!==this.getProtocol()&&null!==this.getProtocol()?{protocol:this.getProtocol()}:{},...void 0!==this.getIsHidden()&&null!==this.getIsHidden()?{isHidden:this.getIsHidden()}:{},...void 0!==this.getDisks()&&null!==this.getDisks()?{disks:this.getDisks().map(e=>e.toJson(!1))}:{},...void 0!==this.getHydrationStatus()&&null!==this.getHydrationStatus()?{hydrationStatus:this.getHydrationStatus()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"clusterProjection"!==t||void 0!==this.clusterProjection&&null!==this.clusterProjection?"volumeGroupMetadataProjection"!==t||void 0!==this.volumeGroupMetadataProjection&&null!==this.volumeGroupMetadataProjection?new F(t,"no such property exists"):new F("volumeGroupMetadataProjection","undefined or null"):new F("clusterProjection","undefined or null")}}function Rn(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")}Cn.prototype.clusterProjection=void 0,Cn.prototype.volumeGroupMetadataProjection=void 0,bn.prototype.name=void 0,bn.prototype.description=void 0,bn.prototype.shouldLoadBalanceVmAttachments=!1,bn.prototype.sharingStatus=void 0,bn.prototype.targetPrefix=void 0,bn.prototype.targetName=void 0,bn.prototype.enabledAuthentications=void 0,bn.prototype.iscsiFeatures=void 0,bn.prototype.createdBy=void 0,bn.prototype.clusterReference=void 0,bn.prototype.storageFeatures=void 0,bn.prototype.usageType=void 0,bn.prototype.attachmentType=void 0,bn.prototype.protocol=void 0,bn.prototype.isHidden=!1,bn.prototype.disks=void 0,bn.prototype.attachments=void 0,bn.prototype.hydrationStatus=void 0,ot.prototype.extId=void 0,ot.prototype.links=void 0,it.prototype.tenantId=void 0;var Dn=new WeakSet;class Un extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Dn),t.add(e),this.$objectType="volumes.v4.config.ListVolumeGroupsApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,o,a,l;if(e){if(t=t||new Un,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],s=e.data,l=s[0].hasOwnProperty("$objectType")?s[0].$objectType:typeof s[0],o=0;o<s.length;o++)switch(l){case"volumes.v4.config.VolumeGroup":i=bn.constructFromObject(s[o],void 0),a.push(i);break;case"volumes.v4.config.VolumeGroupProjection":i=Cn.constructFromObject(s[o],void 0),a.push(i);break;default:throw"Unknown list of type "+l+" in data"}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"volumes.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Ve.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Rn(Dn,this,xn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Rn(Dn,this,xn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function xn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Sn(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")}Un.prototype.metadata=void 0,Un.prototype.data=void 0,Un.prototype.$reserved=void 0,Un.prototype.$objectType=void 0,Un.prototype.$unknownFields=void 0;var Nn=new WeakSet;class Mn extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Nn),t.add(e),this.$objectType="volumes.v4.config.CreateVolumeGroupApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new Mn,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ee.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":t.setData(Ve.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Sn(Nn,this,Jn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Sn(Nn,this,Jn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function Jn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Mn.prototype.metadata=void 0,Mn.prototype.data=void 0,Mn.prototype.$reserved=void 0,Mn.prototype.$objectType=void 0,Mn.prototype.$unknownFields=void 0;class Bn extends mn{constructor(){super(),this.$objectType="volumes.v4.config.VolumeDiskProjection",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Bn,mn.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return new F(t,"no such property exists")}}function Ln(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")}var _n=new WeakSet;class Vn extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=_n),t.add(e),this.$objectType="volumes.v4.config.ListVolumeDisksApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,o,a,l;if(e){if(t=t||new Vn,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],s=e.data,l=s[0].hasOwnProperty("$objectType")?s[0].$objectType:typeof s[0],o=0;o<s.length;o++)switch(l){case"volumes.v4.config.VolumeDisk":i=mn.constructFromObject(s[o],void 0),a.push(i);break;case"volumes.v4.config.VolumeDiskProjection":i=Bn.constructFromObject(s[o],void 0),a.push(i);break;default:throw"Unknown list of type "+l+" in data"}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"volumes.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Ve.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ln(_n,this,Wn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Ln(_n,this,Wn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function Wn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Vn.prototype.metadata=void 0,Vn.prototype.data=void 0,Vn.prototype.$reserved=void 0,Vn.prototype.$objectType=void 0,Vn.prototype.$unknownFields=void 0;var Gn=new WeakSet;class Kn{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Gn),n.add(t),this.volumeGroupRecoveryPointExtId=e,this.$objectType="volumes.v4.config.RevertSpec",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Kn,e.hasOwnProperty("volumeGroupRecoveryPointExtId")&&null!==e.volumeGroupRecoveryPointExtId&&void 0!==e.volumeGroupRecoveryPointExtId&&t.setVolumeGroupRecoveryPointExtId(e.volumeGroupRecoveryPointExtId),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVolumeGroupRecoveryPointExtId(){return this.volumeGroupRecoveryPointExtId}setVolumeGroupRecoveryPointExtId(e){this.volumeGroupRecoveryPointExtId=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getVolumeGroupRecoveryPointExtId()&&null!==this.getVolumeGroupRecoveryPointExtId()?{volumeGroupRecoveryPointExtId:this.getVolumeGroupRecoveryPointExtId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=["volumeGroupRecoveryPointExtId"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("volumeGroupRecoveryPointExtId"===t){if(void 0===this.volumeGroupRecoveryPointExtId||null===this.volumeGroupRecoveryPointExtId)return new F("volumeGroupRecoveryPointExtId","undefined or null");if(!T.validatePattern(this.volumeGroupRecoveryPointExtId,/^[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}$/))return new F("volumeGroupRecoveryPointExtId","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}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null")}}function qn(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")}Kn.prototype.volumeGroupRecoveryPointExtId=void 0,Kn.prototype.$reserved=void 0,Kn.prototype.$objectType=void 0,Kn.prototype.$unknownFields=void 0;var zn=new WeakSet;class Hn extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=zn),t.add(e),this.$objectType="volumes.v4.config.DetachIscsiClientApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new Hn,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ee.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":t.setData(Ve.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):qn(zn,this,Yn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):qn(zn,this,Yn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function Yn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Hn.prototype.metadata=void 0,Hn.prototype.data=void 0,Hn.prototype.$reserved=void 0,Hn.prototype.$objectType=void 0,Hn.prototype.$unknownFields=void 0;const Xn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SUM:"SUM",MIN:"MIN",MAX:"MAX",AVG:"AVG",COUNT:"COUNT",LAST:"LAST",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Xn).find(t=>Xn[t]===e);return null==t?Xn.$UNKNOWN:Xn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Xn.$UNKNOWN:case Xn.$REDACTED:case Xn.SUM:case Xn.MIN:case Xn.MAX:case Xn.AVG:case Xn.COUNT:case Xn.LAST:return;default:throw new Error("Invalid : must be DownSamplingOperator.{ $UNKNOWN|$REDACTED|SUM|MIN|MAX|AVG|COUNT|LAST }")}}};Object.freeze(Xn);const Zn=Xn;var Qn=new WeakSet;class es{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Qn),t.add(e),this.$objectType="common.v1.config.Metadata",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r;if(e){if(t=t||new es,e.hasOwnProperty("ownerReferenceId")&&null!==e.ownerReferenceId&&void 0!==e.ownerReferenceId&&t.setOwnerReferenceId(e.ownerReferenceId),e.hasOwnProperty("ownerUserName")&&null!==e.ownerUserName&&void 0!==e.ownerUserName&&t.setOwnerUserName(e.ownerUserName),e.hasOwnProperty("projectReferenceId")&&null!==e.projectReferenceId&&void 0!==e.projectReferenceId&&t.setProjectReferenceId(e.projectReferenceId),e.hasOwnProperty("projectName")&&null!==e.projectName&&void 0!==e.projectName&&t.setProjectName(e.projectName),e.hasOwnProperty("categoryIds")&&null!==e.categoryIds&&void 0!==e.categoryIds){for(r=[],s=e.categoryIds,i=0;i<s.length;i++)r.push(s[i]);t.setCategoryIds(r)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getOwnerReferenceId(){return this.ownerReferenceId}setOwnerReferenceId(e){this.ownerReferenceId=e}getOwnerUserName(){return this.ownerUserName}setOwnerUserName(e){this.ownerUserName=e}getProjectReferenceId(){return this.projectReferenceId}setProjectReferenceId(e){this.projectReferenceId=e}getProjectName(){return this.projectName}setProjectName(e){this.projectName=e}getCategoryIds(){return this.categoryIds}setCategoryIds(e){this.categoryIds=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getOwnerReferenceId()&&null!==this.getOwnerReferenceId()?{ownerReferenceId:this.getOwnerReferenceId()}:{},...void 0!==this.getOwnerUserName()&&null!==this.getOwnerUserName()?{ownerUserName:this.getOwnerUserName()}:{},...void 0!==this.getProjectReferenceId()&&null!==this.getProjectReferenceId()?{projectReferenceId:this.getProjectReferenceId()}:{},...void 0!==this.getProjectName()&&null!==this.getProjectName()?{projectName:this.getProjectName()}:{},...void 0!==this.getCategoryIds()&&null!==this.getCategoryIds()?{categoryIds:this.getCategoryIds()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("ownerReferenceId"===t){if(void 0===this.ownerReferenceId||null===this.ownerReferenceId)return new F("ownerReferenceId","undefined or null");if(!T.validatePattern(this.ownerReferenceId,/^[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}$/))return new F("ownerReferenceId","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}$/")}if("ownerUserName"===t){if(void 0===this.ownerUserName||null===this.ownerUserName)return new F("ownerUserName","undefined or null");if(!T.validateMaxLength(this.ownerUserName,128))return new F("ownerUserName","does not satisfy required maxLength constraint: 128")}if("projectReferenceId"===t){if(void 0===this.projectReferenceId||null===this.projectReferenceId)return new F("projectReferenceId","undefined or null");if(!T.validatePattern(this.projectReferenceId,/^[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}$/))return new F("projectReferenceId","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}$/")}if("projectName"===t){if(void 0===this.projectName||null===this.projectName)return new F("projectName","undefined or null");if(!T.validateMaxLength(this.projectName,128))return new F("projectName","does not satisfy required maxLength constraint: 128")}if("categoryIds"===t){if(void 0===this.categoryIds||null===this.categoryIds)return new F("categoryIds","undefined or null");if(!T.validateMaxItems(this.categoryIds,256))return new F("categoryIds","does not satisfy required maxItems constraint: 256");if(!T.validateMinItems(this.categoryIds,1))return new F("categoryIds","does not satisfy required minItems constraint: 1")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null")}}function ts(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")}es.prototype.ownerReferenceId=void 0,es.prototype.ownerUserName=void 0,es.prototype.projectReferenceId=void 0,es.prototype.projectName=void 0,es.prototype.categoryIds=void 0,es.prototype.$reserved=void 0,es.prototype.$objectType=void 0,es.prototype.$unknownFields=void 0;var ns=new WeakSet;class ss extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=ns),t.add(e),this.$objectType="volumes.v4.config.GetVolumeGroupMetadataApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new ss,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"common.v1.config.Metadata":t.setData(es.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":t.setData(Ve.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ts(ns,this,is).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ts(ns,this,is).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function is(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function rs(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")}ss.prototype.metadata=void 0,ss.prototype.data=void 0,ss.prototype.$reserved=void 0,ss.prototype.$objectType=void 0,ss.prototype.$unknownFields=void 0;var os=new WeakSet;class as extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=os),t.add(e),this.$objectType="volumes.v4.config.AttachVmApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new as,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ee.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":t.setData(Ve.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):rs(os,this,ls).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):rs(os,this,ls).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function ls(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function ds(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")}as.prototype.metadata=void 0,as.prototype.data=void 0,as.prototype.$reserved=void 0,as.prototype.$objectType=void 0,as.prototype.$unknownFields=void 0;var us=new WeakSet;class hs extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=us),t.add(e),this.$objectType="volumes.v4.config.GetVolumeDiskApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new hs,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"volumes.v4.config.VolumeDisk":t.setData(mn.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":t.setData(Ve.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ds(us,this,cs).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ds(us,this,cs).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function cs(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}hs.prototype.metadata=void 0,hs.prototype.data=void 0,hs.prototype.$reserved=void 0,hs.prototype.$objectType=void 0,hs.prototype.$unknownFields=void 0;class ps extends yn{constructor(){super(),this.$objectType="volumes.v4.config.CategoryDetails",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new ps,yn.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return new F(t,"no such property exists")}}function vs(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")}var gs=new WeakSet;class ys extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=gs),t.add(e),this.$objectType="volumes.v4.config.ListCategoryAssociationsApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,o,a,l;if(e){if(t=t||new ys,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],s=e.data,l=s[0].hasOwnProperty("$objectType")?s[0].$objectType:typeof s[0],o=0;o<s.length;o++){if("volumes.v4.config.CategoryDetails"!==l)throw"Unknown list of type "+l+" in data";i=ps.constructFromObject(s[o],void 0),a.push(i)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"volumes.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Ve.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):vs(gs,this,ws).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):vs(gs,this,ws).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function ws(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}ys.prototype.metadata=void 0,ys.prototype.data=void 0,ys.prototype.$reserved=void 0,ys.prototype.$objectType=void 0,ys.prototype.$unknownFields=void 0;var fs=new WeakSet;class $s extends sn{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=fs),t.add(e),this.$objectType="volumes.v4.config.IscsiClientAttachmentProjection",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new $s,sn.constructFromObject(e,t,!0),e.hasOwnProperty("iscsiClientProjection")&&null!==e.iscsiClientProjection&&void 0!==e.iscsiClientProjection&&t.setIscsiClientProjection($t.constructFromObject(e.iscsiClientProjection)),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getIscsiClientProjection(){return this.iscsiClientProjection}setIscsiClientProjection(e){this.iscsiClientProjection=e}toJson(e){return!1===e?{...void 0!==this.getIscsiClientProjection()&&null!==this.getIscsiClientProjection()?{iscsiClientProjection:this.getIscsiClientProjection().toJson(!1)}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getIscsiClientProjection()&&null!==this.getIscsiClientProjection()?{iscsiClientProjection:this.getIscsiClientProjection().toJson(!1)}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"iscsiClientProjection"!==t||void 0!==this.iscsiClientProjection&&null!==this.iscsiClientProjection?new F(t,"no such property exists"):new F("iscsiClientProjection","undefined or null")}}function ms(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")}$s.prototype.iscsiClientProjection=void 0,sn.prototype.extId=void 0,sn.prototype.clusterReference=void 0;var ks=new WeakSet;class bs extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=ks),t.add(e),this.$objectType="volumes.v4.config.ListExternalIscsiAttachmentsApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,o,a,l;if(e){if(t=t||new bs,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],s=e.data,l=s[0].hasOwnProperty("$objectType")?s[0].$objectType:typeof s[0],o=0;o<s.length;o++)switch(l){case"volumes.v4.config.IscsiClientAttachment":i=sn.constructFromObject(s[o],void 0),a.push(i);break;case"volumes.v4.config.IscsiClientAttachmentProjection":i=$s.constructFromObject(s[o],void 0),a.push(i);break;default:throw"Unknown list of type "+l+" in data"}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"volumes.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Ve.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ms(ks,this,js).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ms(ks,this,js).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function js(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Ts(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")}bs.prototype.metadata=void 0,bs.prototype.data=void 0,bs.prototype.$reserved=void 0,bs.prototype.$objectType=void 0,bs.prototype.$unknownFields=void 0;var Fs=new WeakSet;class Os extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Fs),t.add(e),this.$objectType="volumes.v4.config.DeleteVolumeGroupApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new Os,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ee.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":t.setData(Ve.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ts(Fs,this,Is).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Ts(Fs,this,Is).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function Is(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Ps(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")}Os.prototype.metadata=void 0,Os.prototype.data=void 0,Os.prototype.$reserved=void 0,Os.prototype.$objectType=void 0,Os.prototype.$unknownFields=void 0;var As=new WeakSet;class Es extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=As),t.add(e),this.$objectType="volumes.v4.config.AttachNvmfClientApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new Es,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ee.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":t.setData(Ve.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ps(As,this,Cs).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Ps(As,this,Cs).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function Cs(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Rs(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")}Es.prototype.metadata=void 0,Es.prototype.data=void 0,Es.prototype.$reserved=void 0,Es.prototype.$objectType=void 0,Es.prototype.$unknownFields=void 0;var Ds=new WeakSet;class Us extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Ds),t.add(e),this.$objectType="volumes.v4.config.RevertVolumeGroupApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new Us,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ee.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":t.setData(Ve.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Rs(Ds,this,xs).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Rs(Ds,this,xs).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function xs(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Ss(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")}Us.prototype.metadata=void 0,Us.prototype.data=void 0,Us.prototype.$reserved=void 0,Us.prototype.$objectType=void 0,Us.prototype.$unknownFields=void 0;var Ns=new WeakSet;class Ms extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Ns),t.add(e),this.$objectType="volumes.v4.config.CreateVolumeDiskApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new Ms,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ee.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":t.setData(Ve.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ss(Ns,this,Js).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Ss(Ns,this,Js).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function Js(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Bs(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")}Ms.prototype.metadata=void 0,Ms.prototype.data=void 0,Ms.prototype.$reserved=void 0,Ms.prototype.$objectType=void 0,Ms.prototype.$unknownFields=void 0;var Ls=new WeakSet;class _s extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Ls),t.add(e),this.$objectType="volumes.v4.config.DeleteVolumeDiskApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new _s,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ee.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":t.setData(Ve.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Bs(Ls,this,Vs).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Bs(Ls,this,Vs).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function Vs(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Ws(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")}_s.prototype.metadata=void 0,_s.prototype.data=void 0,_s.prototype.$reserved=void 0,_s.prototype.$objectType=void 0,_s.prototype.$unknownFields=void 0;var Gs=new WeakSet;class Ks{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Gs),t.add(e),this.$objectType="volumes.v4.stats.TimeValuePair",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ks,e.hasOwnProperty("timestamp")&&null!==e.timestamp&&void 0!==e.timestamp&&t.setTimestamp(e.timestamp),e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value&&t.setValue(e.value),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getTimestamp(){return this.timestamp}setTimestamp(e){this.timestamp=e}getValue(){return this.value}setValue(e){this.value=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:Ws(Gs,this,qs).call(this,this.getTimestamp(),!1)}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("value","undefined or null"):new F("timestamp","undefined or null")}}function qs(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}Ks.prototype.timestamp=void 0,Ks.prototype.value=void 0,Ks.prototype.$reserved=void 0,Ks.prototype.$objectType=void 0,Ks.prototype.$unknownFields=void 0;var zs=new WeakSet;class Hs extends ot{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=zs),t.add(e),this.$objectType="volumes.v4.stats.VolumeGroupStats",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r,o;if(e){if(t=t||new Hs,ot.constructFromObject(e,t,!0),e.hasOwnProperty("volumeGroupExtId")&&null!==e.volumeGroupExtId&&void 0!==e.volumeGroupExtId&&t.setVolumeGroupExtId(e.volumeGroupExtId),e.hasOwnProperty("controllerUserBytes")&&null!==e.controllerUserBytes&&void 0!==e.controllerUserBytes){for(o=[],s=e.controllerUserBytes,r=0;r<s.length;r++)i=Ks.constructFromObject(s[r],void 0),o.push(i);t.setControllerUserBytes(o)}if(e.hasOwnProperty("controllerNumIOPS")&&null!==e.controllerNumIOPS&&void 0!==e.controllerNumIOPS){for(o=[],s=e.controllerNumIOPS,r=0;r<s.length;r++)i=Ks.constructFromObject(s[r],void 0),o.push(i);t.setControllerNumIOPS(o)}if(e.hasOwnProperty("controllerNumReadIOPS")&&null!==e.controllerNumReadIOPS&&void 0!==e.controllerNumReadIOPS){for(o=[],s=e.controllerNumReadIOPS,r=0;r<s.length;r++)i=Ks.constructFromObject(s[r],void 0),o.push(i);t.setControllerNumReadIOPS(o)}if(e.hasOwnProperty("controllerNumWriteIOPS")&&null!==e.controllerNumWriteIOPS&&void 0!==e.controllerNumWriteIOPS){for(o=[],s=e.controllerNumWriteIOPS,r=0;r<s.length;r++)i=Ks.constructFromObject(s[r],void 0),o.push(i);t.setControllerNumWriteIOPS(o)}if(e.hasOwnProperty("controllerIOBandwidthKBps")&&null!==e.controllerIOBandwidthKBps&&void 0!==e.controllerIOBandwidthKBps){for(o=[],s=e.controllerIOBandwidthKBps,r=0;r<s.length;r++)i=Ks.constructFromObject(s[r],void 0),o.push(i);t.setControllerIOBandwidthKBps(o)}if(e.hasOwnProperty("controllerReadIOBandwidthKBps")&&null!==e.controllerReadIOBandwidthKBps&&void 0!==e.controllerReadIOBandwidthKBps){for(o=[],s=e.controllerReadIOBandwidthKBps,r=0;r<s.length;r++)i=Ks.constructFromObject(s[r],void 0),o.push(i);t.setControllerReadIOBandwidthKBps(o)}if(e.hasOwnProperty("controllerWriteIOBandwidthKBps")&&null!==e.controllerWriteIOBandwidthKBps&&void 0!==e.controllerWriteIOBandwidthKBps){for(o=[],s=e.controllerWriteIOBandwidthKBps,r=0;r<s.length;r++)i=Ks.constructFromObject(s[r],void 0),o.push(i);t.setControllerWriteIOBandwidthKBps(o)}if(e.hasOwnProperty("controllerAvgIOLatencyUsecs")&&null!==e.controllerAvgIOLatencyUsecs&&void 0!==e.controllerAvgIOLatencyUsecs){for(o=[],s=e.controllerAvgIOLatencyUsecs,r=0;r<s.length;r++)i=Ks.constructFromObject(s[r],void 0),o.push(i);t.setControllerAvgIOLatencyUsecs(o)}if(e.hasOwnProperty("controllerAvgReadIOLatencyUsecs")&&null!==e.controllerAvgReadIOLatencyUsecs&&void 0!==e.controllerAvgReadIOLatencyUsecs){for(o=[],s=e.controllerAvgReadIOLatencyUsecs,r=0;r<s.length;r++)i=Ks.constructFromObject(s[r],void 0),o.push(i);t.setControllerAvgReadIOLatencyUsecs(o)}if(e.hasOwnProperty("controllerAvgWriteIOLatencyUsecs")&&null!==e.controllerAvgWriteIOLatencyUsecs&&void 0!==e.controllerAvgWriteIOLatencyUsecs){for(o=[],s=e.controllerAvgWriteIOLatencyUsecs,r=0;r<s.length;r++)i=Ks.constructFromObject(s[r],void 0),o.push(i);t.setControllerAvgWriteIOLatencyUsecs(o)}if(e.hasOwnProperty("hydrationRemainingBytes")&&null!==e.hydrationRemainingBytes&&void 0!==e.hydrationRemainingBytes){for(o=[],s=e.hydrationRemainingBytes,r=0;r<s.length;r++)i=Ks.constructFromObject(s[r],void 0),o.push(i);t.setHydrationRemainingBytes(o)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVolumeGroupExtId(){return this.volumeGroupExtId}setVolumeGroupExtId(e){this.volumeGroupExtId=e}getControllerUserBytes(){return this.controllerUserBytes}setControllerUserBytes(e){this.controllerUserBytes=e}getControllerNumIOPS(){return this.controllerNumIOPS}setControllerNumIOPS(e){this.controllerNumIOPS=e}getControllerNumReadIOPS(){return this.controllerNumReadIOPS}setControllerNumReadIOPS(e){this.controllerNumReadIOPS=e}getControllerNumWriteIOPS(){return this.controllerNumWriteIOPS}setControllerNumWriteIOPS(e){this.controllerNumWriteIOPS=e}getControllerIOBandwidthKBps(){return this.controllerIOBandwidthKBps}setControllerIOBandwidthKBps(e){this.controllerIOBandwidthKBps=e}getControllerReadIOBandwidthKBps(){return this.controllerReadIOBandwidthKBps}setControllerReadIOBandwidthKBps(e){this.controllerReadIOBandwidthKBps=e}getControllerWriteIOBandwidthKBps(){return this.controllerWriteIOBandwidthKBps}setControllerWriteIOBandwidthKBps(e){this.controllerWriteIOBandwidthKBps=e}getControllerAvgIOLatencyUsecs(){return this.controllerAvgIOLatencyUsecs}setControllerAvgIOLatencyUsecs(e){this.controllerAvgIOLatencyUsecs=e}getControllerAvgReadIOLatencyUsecs(){return this.controllerAvgReadIOLatencyUsecs}setControllerAvgReadIOLatencyUsecs(e){this.controllerAvgReadIOLatencyUsecs=e}getControllerAvgWriteIOLatencyUsecs(){return this.controllerAvgWriteIOLatencyUsecs}setControllerAvgWriteIOLatencyUsecs(e){this.controllerAvgWriteIOLatencyUsecs=e}getHydrationRemainingBytes(){return this.hydrationRemainingBytes}setHydrationRemainingBytes(e){this.hydrationRemainingBytes=e}toJson(e){return!1===e?{...void 0!==this.getVolumeGroupExtId()&&null!==this.getVolumeGroupExtId()?{volumeGroupExtId:this.getVolumeGroupExtId()}:{},...void 0!==this.getControllerUserBytes()&&null!==this.getControllerUserBytes()?{controllerUserBytes:this.getControllerUserBytes().map(e=>e.toJson(!1))}:{},...void 0!==this.getControllerNumIOPS()&&null!==this.getControllerNumIOPS()?{controllerNumIOPS:this.getControllerNumIOPS().map(e=>e.toJson(!1))}:{},...void 0!==this.getControllerNumReadIOPS()&&null!==this.getControllerNumReadIOPS()?{controllerNumReadIOPS:this.getControllerNumReadIOPS().map(e=>e.toJson(!1))}:{},...void 0!==this.getControllerNumWriteIOPS()&&null!==this.getControllerNumWriteIOPS()?{controllerNumWriteIOPS:this.getControllerNumWriteIOPS().map(e=>e.toJson(!1))}:{},...void 0!==this.getControllerIOBandwidthKBps()&&null!==this.getControllerIOBandwidthKBps()?{controllerIOBandwidthKBps:this.getControllerIOBandwidthKBps().map(e=>e.toJson(!1))}:{},...void 0!==this.getControllerReadIOBandwidthKBps()&&null!==this.getControllerReadIOBandwidthKBps()?{controllerReadIOBandwidthKBps:this.getControllerReadIOBandwidthKBps().map(e=>e.toJson(!1))}:{},...void 0!==this.getControllerWriteIOBandwidthKBps()&&null!==this.getControllerWriteIOBandwidthKBps()?{controllerWriteIOBandwidthKBps:this.getControllerWriteIOBandwidthKBps().map(e=>e.toJson(!1))}:{},...void 0!==this.getControllerAvgIOLatencyUsecs()&&null!==this.getControllerAvgIOLatencyUsecs()?{controllerAvgIOLatencyUsecs:this.getControllerAvgIOLatencyUsecs().map(e=>e.toJson(!1))}:{},...void 0!==this.getControllerAvgReadIOLatencyUsecs()&&null!==this.getControllerAvgReadIOLatencyUsecs()?{controllerAvgReadIOLatencyUsecs:this.getControllerAvgReadIOLatencyUsecs().map(e=>e.toJson(!1))}:{},...void 0!==this.getControllerAvgWriteIOLatencyUsecs()&&null!==this.getControllerAvgWriteIOLatencyUsecs()?{controllerAvgWriteIOLatencyUsecs:this.getControllerAvgWriteIOLatencyUsecs().map(e=>e.toJson(!1))}:{},...void 0!==this.getHydrationRemainingBytes()&&null!==this.getHydrationRemainingBytes()?{hydrationRemainingBytes:this.getHydrationRemainingBytes().map(e=>e.toJson(!1))}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getVolumeGroupExtId()&&null!==this.getVolumeGroupExtId()?{volumeGroupExtId:this.getVolumeGroupExtId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("volumeGroupExtId"===t){if(void 0===this.volumeGroupExtId||null===this.volumeGroupExtId)return new F("volumeGroupExtId","undefined or null");if(!T.validatePattern(this.volumeGroupExtId,/^[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}$/))return new F("volumeGroupExtId","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}$/")}if("controllerUserBytes"===t){if(void 0===this.controllerUserBytes||null===this.controllerUserBytes)return new F("controllerUserBytes","undefined or null");if(!T.validateMaxItems(this.controllerUserBytes,100))return new F("controllerUserBytes","does not satisfy required maxItems constraint: 100")}if("controllerNumIOPS"===t){if(void 0===this.controllerNumIOPS||null===this.controllerNumIOPS)return new F("controllerNumIOPS","undefined or null");if(!T.validateMaxItems(this.controllerNumIOPS,100))return new F("controllerNumIOPS","does not satisfy required maxItems constraint: 100")}if("controllerNumReadIOPS"===t){if(void 0===this.controllerNumReadIOPS||null===this.controllerNumReadIOPS)return new F("controllerNumReadIOPS","undefined or null");if(!T.validateMaxItems(this.controllerNumReadIOPS,100))return new F("controllerNumReadIOPS","does not satisfy required maxItems constraint: 100")}if("controllerNumWriteIOPS"===t){if(void 0===this.controllerNumWriteIOPS||null===this.controllerNumWriteIOPS)return new F("controllerNumWriteIOPS","undefined or null");if(!T.validateMaxItems(this.controllerNumWriteIOPS,100))return new F("controllerNumWriteIOPS","does not satisfy required maxItems constraint: 100")}if("controllerIOBandwidthKBps"===t){if(void 0===this.controllerIOBandwidthKBps||null===this.controllerIOBandwidthKBps)return new F("controllerIOBandwidthKBps","undefined or null");if(!T.validateMaxItems(this.controllerIOBandwidthKBps,100))return new F("controllerIOBandwidthKBps","does not satisfy required maxItems constraint: 100")}if("controllerReadIOBandwidthKBps"===t){if(void 0===this.controllerReadIOBandwidthKBps||null===this.controllerReadIOBandwidthKBps)return new F("controllerReadIOBandwidthKBps","undefined or null");if(!T.validateMaxItems(this.controllerReadIOBandwidthKBps,100))return new F("controllerReadIOBandwidthKBps","does not satisfy required maxItems constraint: 100")}if("controllerWriteIOBandwidthKBps"===t){if(void 0===this.controllerWriteIOBandwidthKBps||null===this.controllerWriteIOBandwidthKBps)return new F("controllerWriteIOBandwidthKBps","undefined or null");if(!T.validateMaxItems(this.controllerWriteIOBandwidthKBps,100))return new F("controllerWriteIOBandwidthKBps","does not satisfy required maxItems constraint: 100")}if("controllerAvgIOLatencyUsecs"===t){if(void 0===this.controllerAvgIOLatencyUsecs||null===this.controllerAvgIOLatencyUsecs)return new F("controllerAvgIOLatencyUsecs","undefined or null");if(!T.validateMaxItems(this.controllerAvgIOLatencyUsecs,100))return new F("controllerAvgIOLatencyUsecs","does not satisfy required maxItems constraint: 100")}if("controllerAvgReadIOLatencyUsecs"===t){if(void 0===this.controllerAvgReadIOLatencyUsecs||null===this.controllerAvgReadIOLatencyUsecs)return new F("controllerAvgReadIOLatencyUsecs","undefined or null");if(!T.validateMaxItems(this.controllerAvgReadIOLatencyUsecs,100))return new F("controllerAvgReadIOLatencyUsecs","does not satisfy required maxItems constraint: 100")}if("controllerAvgWriteIOLatencyUsecs"===t){if(void 0===this.controllerAvgWriteIOLatencyUsecs||null===this.controllerAvgWriteIOLatencyUsecs)return new F("controllerAvgWriteIOLatencyUsecs","undefined or null");if(!T.validateMaxItems(this.controllerAvgWriteIOLatencyUsecs,100))return new F("controllerAvgWriteIOLatencyUsecs","does not satisfy required maxItems constraint: 100")}if("hydrationRemainingBytes"===t){if(void 0===this.hydrationRemainingBytes||null===this.hydrationRemainingBytes)return new F("hydrationRemainingBytes","undefined or null");if(!T.validateMaxItems(this.hydrationRemainingBytes,100))return new F("hydrationRemainingBytes","does not satisfy required maxItems constraint: 100")}return new F(t,"no such property exists")}}function Ys(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")}Hs.prototype.volumeGroupExtId=void 0,Hs.prototype.controllerUserBytes=void 0,Hs.prototype.controllerNumIOPS=void 0,Hs.prototype.controllerNumReadIOPS=void 0,Hs.prototype.controllerNumWriteIOPS=void 0,Hs.prototype.controllerIOBandwidthKBps=void 0,Hs.prototype.controllerReadIOBandwidthKBps=void 0,Hs.prototype.controllerWriteIOBandwidthKBps=void 0,Hs.prototype.controllerAvgIOLatencyUsecs=void 0,Hs.prototype.controllerAvgReadIOLatencyUsecs=void 0,Hs.prototype.controllerAvgWriteIOLatencyUsecs=void 0,Hs.prototype.hydrationRemainingBytes=void 0,ot.prototype.extId=void 0,ot.prototype.links=void 0,it.prototype.tenantId=void 0;var Xs=new WeakSet;class Zs extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Xs),t.add(e),this.$objectType="volumes.v4.stats.GetVolumeGroupStatsApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new Zs,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"volumes.v4.stats.VolumeGroupStats":t.setData(Hs.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":t.setData(Ve.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ys(Xs,this,Qs).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Ys(Xs,this,Qs).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function Qs(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function ei(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")}Zs.prototype.metadata=void 0,Zs.prototype.data=void 0,Zs.prototype.$reserved=void 0,Zs.prototype.$objectType=void 0,Zs.prototype.$unknownFields=void 0;var ti=new WeakSet;class ni extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=ti),t.add(e),this.$objectType="volumes.v4.config.UpdateVolumeGroupApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new ni,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ee.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":t.setData(Ve.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ei(ti,this,si).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ei(ti,this,si).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function si(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}ni.prototype.metadata=void 0,ni.prototype.data=void 0,ni.prototype.$reserved=void 0,ni.prototype.$objectType=void 0,ni.prototype.$unknownFields=void 0;class ii extends ln{constructor(e){super(e),this.$objectType="volumes.v4.config.VmAttachmentProjection",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new ii,ln.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=["extId"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return new F(t,"no such property exists")}}function ri(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")}var oi=new WeakSet;class ai extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=oi),t.add(e),this.$objectType="volumes.v4.config.ListVmAttachmentsApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,o,a,l;if(e){if(t=t||new ai,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],s=e.data,l=s[0].hasOwnProperty("$objectType")?s[0].$objectType:typeof s[0],o=0;o<s.length;o++)switch(l){case"volumes.v4.config.VmAttachment":i=ln.constructFromObject(s[o],void 0),a.push(i);break;case"volumes.v4.config.VmAttachmentProjection":i=ii.constructFromObject(s[o],void 0),a.push(i);break;default:throw"Unknown list of type "+l+" in data"}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"volumes.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Ve.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ri(oi,this,li).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ri(oi,this,li).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function li(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}ai.prototype.metadata=void 0,ai.prototype.data=void 0,ai.prototype.$reserved=void 0,ai.prototype.$objectType=void 0,ai.prototype.$unknownFields=void 0;var di=new WeakSet;class ui{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=di),t.add(e),this.$objectType="volumes.v4.config.CategoryEntityReferences",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r,o;if(e){if(t=t||new ui,e.hasOwnProperty("categories")&&null!==e.categories&&void 0!==e.categories){for(o=[],s=e.categories,r=0;r<s.length;r++)i=yn.constructFromObject(s[r],void 0),o.push(i);t.setCategories(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getCategories(){return this.categories}setCategories(e){this.categories=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getCategories()&&null!==this.getCategories()?{categories:this.getCategories().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("categories"===t){if(void 0===this.categories||null===this.categories)return new F("categories","undefined or null");if(!T.validateMaxItems(this.categories,20))return new F("categories","does not satisfy required maxItems constraint: 20");if(!T.validateMinItems(this.categories,1))return new F("categories","does not satisfy required minItems constraint: 1")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null")}}function hi(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")}ui.prototype.categories=void 0,ui.prototype.$reserved=void 0,ui.prototype.$objectType=void 0,ui.prototype.$unknownFields=void 0;var ci=new WeakSet;class pi extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=ci),t.add(e),this.$objectType="volumes.v4.config.DisassociateCategoryApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new pi,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ee.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":t.setData(Ve.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):hi(ci,this,vi).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):hi(ci,this,vi).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function vi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function gi(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")}pi.prototype.metadata=void 0,pi.prototype.data=void 0,pi.prototype.$reserved=void 0,pi.prototype.$objectType=void 0,pi.prototype.$unknownFields=void 0;var yi=new WeakSet;class wi extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=yi),t.add(e),this.$objectType="volumes.v4.config.AttachIscsiClientApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new wi,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ee.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":t.setData(Ve.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):gi(yi,this,fi).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):gi(yi,this,fi).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function fi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}wi.prototype.metadata=void 0,wi.prototype.data=void 0,wi.prototype.$reserved=void 0,wi.prototype.$objectType=void 0,wi.prototype.$unknownFields=void 0;var $i=new WeakSet;class mi extends ot{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=$i),t.add(e),this.$objectType="volumes.v4.stats.VolumeDiskStats",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s,i,r,o;if(e){if(t=t||new mi,ot.constructFromObject(e,t,!0),e.hasOwnProperty("volumeDiskExtId")&&null!==e.volumeDiskExtId&&void 0!==e.volumeDiskExtId&&t.setVolumeDiskExtId(e.volumeDiskExtId),e.hasOwnProperty("controllerUserBytes")&&null!==e.controllerUserBytes&&void 0!==e.controllerUserBytes){for(o=[],s=e.controllerUserBytes,r=0;r<s.length;r++)i=Ks.constructFromObject(s[r],void 0),o.push(i);t.setControllerUserBytes(o)}if(e.hasOwnProperty("controllerNumIOPS")&&null!==e.controllerNumIOPS&&void 0!==e.controllerNumIOPS){for(o=[],s=e.controllerNumIOPS,r=0;r<s.length;r++)i=Ks.constructFromObject(s[r],void 0),o.push(i);t.setControllerNumIOPS(o)}if(e.hasOwnProperty("controllerNumReadIOPS")&&null!==e.controllerNumReadIOPS&&void 0!==e.controllerNumReadIOPS){for(o=[],s=e.controllerNumReadIOPS,r=0;r<s.length;r++)i=Ks.constructFromObject(s[r],void 0),o.push(i);t.setControllerNumReadIOPS(o)}if(e.hasOwnProperty("controllerNumWriteIOPS")&&null!==e.controllerNumWriteIOPS&&void 0!==e.controllerNumWriteIOPS){for(o=[],s=e.controllerNumWriteIOPS,r=0;r<s.length;r++)i=Ks.constructFromObject(s[r],void 0),o.push(i);t.setControllerNumWriteIOPS(o)}if(e.hasOwnProperty("controllerIOBandwidthKBps")&&null!==e.controllerIOBandwidthKBps&&void 0!==e.controllerIOBandwidthKBps){for(o=[],s=e.controllerIOBandwidthKBps,r=0;r<s.length;r++)i=Ks.constructFromObject(s[r],void 0),o.push(i);t.setControllerIOBandwidthKBps(o)}if(e.hasOwnProperty("controllerReadIOBandwidthKBps")&&null!==e.controllerReadIOBandwidthKBps&&void 0!==e.controllerReadIOBandwidthKBps){for(o=[],s=e.controllerReadIOBandwidthKBps,r=0;r<s.length;r++)i=Ks.constructFromObject(s[r],void 0),o.push(i);t.setControllerReadIOBandwidthKBps(o)}if(e.hasOwnProperty("controllerWriteIOBandwidthKBps")&&null!==e.controllerWriteIOBandwidthKBps&&void 0!==e.controllerWriteIOBandwidthKBps){for(o=[],s=e.controllerWriteIOBandwidthKBps,r=0;r<s.length;r++)i=Ks.constructFromObject(s[r],void 0),o.push(i);t.setControllerWriteIOBandwidthKBps(o)}if(e.hasOwnProperty("controllerAvgIOLatencyUsecs")&&null!==e.controllerAvgIOLatencyUsecs&&void 0!==e.controllerAvgIOLatencyUsecs){for(o=[],s=e.controllerAvgIOLatencyUsecs,r=0;r<s.length;r++)i=Ks.constructFromObject(s[r],void 0),o.push(i);t.setControllerAvgIOLatencyUsecs(o)}if(e.hasOwnProperty("controllerAvgReadIOLatencyUsecs")&&null!==e.controllerAvgReadIOLatencyUsecs&&void 0!==e.controllerAvgReadIOLatencyUsecs){for(o=[],s=e.controllerAvgReadIOLatencyUsecs,r=0;r<s.length;r++)i=Ks.constructFromObject(s[r],void 0),o.push(i);t.setControllerAvgReadIOLatencyUsecs(o)}if(e.hasOwnProperty("controllerAvgWriteIOLatencyUsecs")&&null!==e.controllerAvgWriteIOLatencyUsecs&&void 0!==e.controllerAvgWriteIOLatencyUsecs){for(o=[],s=e.controllerAvgWriteIOLatencyUsecs,r=0;r<s.length;r++)i=Ks.constructFromObject(s[r],void 0),o.push(i);t.setControllerAvgWriteIOLatencyUsecs(o)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVolumeDiskExtId(){return this.volumeDiskExtId}setVolumeDiskExtId(e){this.volumeDiskExtId=e}getControllerUserBytes(){return this.controllerUserBytes}setControllerUserBytes(e){this.controllerUserBytes=e}getControllerNumIOPS(){return this.controllerNumIOPS}setControllerNumIOPS(e){this.controllerNumIOPS=e}getControllerNumReadIOPS(){return this.controllerNumReadIOPS}setControllerNumReadIOPS(e){this.controllerNumReadIOPS=e}getControllerNumWriteIOPS(){return this.controllerNumWriteIOPS}setControllerNumWriteIOPS(e){this.controllerNumWriteIOPS=e}getControllerIOBandwidthKBps(){return this.controllerIOBandwidthKBps}setControllerIOBandwidthKBps(e){this.controllerIOBandwidthKBps=e}getControllerReadIOBandwidthKBps(){return this.controllerReadIOBandwidthKBps}setControllerReadIOBandwidthKBps(e){this.controllerReadIOBandwidthKBps=e}getControllerWriteIOBandwidthKBps(){return this.controllerWriteIOBandwidthKBps}setControllerWriteIOBandwidthKBps(e){this.controllerWriteIOBandwidthKBps=e}getControllerAvgIOLatencyUsecs(){return this.controllerAvgIOLatencyUsecs}setControllerAvgIOLatencyUsecs(e){this.controllerAvgIOLatencyUsecs=e}getControllerAvgReadIOLatencyUsecs(){return this.controllerAvgReadIOLatencyUsecs}setControllerAvgReadIOLatencyUsecs(e){this.controllerAvgReadIOLatencyUsecs=e}getControllerAvgWriteIOLatencyUsecs(){return this.controllerAvgWriteIOLatencyUsecs}setControllerAvgWriteIOLatencyUsecs(e){this.controllerAvgWriteIOLatencyUsecs=e}toJson(e){return!1===e?{...void 0!==this.getVolumeDiskExtId()&&null!==this.getVolumeDiskExtId()?{volumeDiskExtId:this.getVolumeDiskExtId()}:{},...void 0!==this.getControllerUserBytes()&&null!==this.getControllerUserBytes()?{controllerUserBytes:this.getControllerUserBytes().map(e=>e.toJson(!1))}:{},...void 0!==this.getControllerNumIOPS()&&null!==this.getControllerNumIOPS()?{controllerNumIOPS:this.getControllerNumIOPS().map(e=>e.toJson(!1))}:{},...void 0!==this.getControllerNumReadIOPS()&&null!==this.getControllerNumReadIOPS()?{controllerNumReadIOPS:this.getControllerNumReadIOPS().map(e=>e.toJson(!1))}:{},...void 0!==this.getControllerNumWriteIOPS()&&null!==this.getControllerNumWriteIOPS()?{controllerNumWriteIOPS:this.getControllerNumWriteIOPS().map(e=>e.toJson(!1))}:{},...void 0!==this.getControllerIOBandwidthKBps()&&null!==this.getControllerIOBandwidthKBps()?{controllerIOBandwidthKBps:this.getControllerIOBandwidthKBps().map(e=>e.toJson(!1))}:{},...void 0!==this.getControllerReadIOBandwidthKBps()&&null!==this.getControllerReadIOBandwidthKBps()?{controllerReadIOBandwidthKBps:this.getControllerReadIOBandwidthKBps().map(e=>e.toJson(!1))}:{},...void 0!==this.getControllerWriteIOBandwidthKBps()&&null!==this.getControllerWriteIOBandwidthKBps()?{controllerWriteIOBandwidthKBps:this.getControllerWriteIOBandwidthKBps().map(e=>e.toJson(!1))}:{},...void 0!==this.getControllerAvgIOLatencyUsecs()&&null!==this.getControllerAvgIOLatencyUsecs()?{controllerAvgIOLatencyUsecs:this.getControllerAvgIOLatencyUsecs().map(e=>e.toJson(!1))}:{},...void 0!==this.getControllerAvgReadIOLatencyUsecs()&&null!==this.getControllerAvgReadIOLatencyUsecs()?{controllerAvgReadIOLatencyUsecs:this.getControllerAvgReadIOLatencyUsecs().map(e=>e.toJson(!1))}:{},...void 0!==this.getControllerAvgWriteIOLatencyUsecs()&&null!==this.getControllerAvgWriteIOLatencyUsecs()?{controllerAvgWriteIOLatencyUsecs:this.getControllerAvgWriteIOLatencyUsecs().map(e=>e.toJson(!1))}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getVolumeDiskExtId()&&null!==this.getVolumeDiskExtId()?{volumeDiskExtId:this.getVolumeDiskExtId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("volumeDiskExtId"===t){if(void 0===this.volumeDiskExtId||null===this.volumeDiskExtId)return new F("volumeDiskExtId","undefined or null");if(!T.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}$/))return new F("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}$/")}if("controllerUserBytes"===t){if(void 0===this.controllerUserBytes||null===this.controllerUserBytes)return new F("controllerUserBytes","undefined or null");if(!T.validateMaxItems(this.controllerUserBytes,100))return new F("controllerUserBytes","does not satisfy required maxItems constraint: 100")}if("controllerNumIOPS"===t){if(void 0===this.controllerNumIOPS||null===this.controllerNumIOPS)return new F("controllerNumIOPS","undefined or null");if(!T.validateMaxItems(this.controllerNumIOPS,100))return new F("controllerNumIOPS","does not satisfy required maxItems constraint: 100")}if("controllerNumReadIOPS"===t){if(void 0===this.controllerNumReadIOPS||null===this.controllerNumReadIOPS)return new F("controllerNumReadIOPS","undefined or null");if(!T.validateMaxItems(this.controllerNumReadIOPS,100))return new F("controllerNumReadIOPS","does not satisfy required maxItems constraint: 100")}if("controllerNumWriteIOPS"===t){if(void 0===this.controllerNumWriteIOPS||null===this.controllerNumWriteIOPS)return new F("controllerNumWriteIOPS","undefined or null");if(!T.validateMaxItems(this.controllerNumWriteIOPS,100))return new F("controllerNumWriteIOPS","does not satisfy required maxItems constraint: 100")}if("controllerIOBandwidthKBps"===t){if(void 0===this.controllerIOBandwidthKBps||null===this.controllerIOBandwidthKBps)return new F("controllerIOBandwidthKBps","undefined or null");if(!T.validateMaxItems(this.controllerIOBandwidthKBps,100))return new F("controllerIOBandwidthKBps","does not satisfy required maxItems constraint: 100")}if("controllerReadIOBandwidthKBps"===t){if(void 0===this.controllerReadIOBandwidthKBps||null===this.controllerReadIOBandwidthKBps)return new F("controllerReadIOBandwidthKBps","undefined or null");if(!T.validateMaxItems(this.controllerReadIOBandwidthKBps,100))return new F("controllerReadIOBandwidthKBps","does not satisfy required maxItems constraint: 100")}if("controllerWriteIOBandwidthKBps"===t){if(void 0===this.controllerWriteIOBandwidthKBps||null===this.controllerWriteIOBandwidthKBps)return new F("controllerWriteIOBandwidthKBps","undefined or null");if(!T.validateMaxItems(this.controllerWriteIOBandwidthKBps,100))return new F("controllerWriteIOBandwidthKBps","does not satisfy required maxItems constraint: 100")}if("controllerAvgIOLatencyUsecs"===t){if(void 0===this.controllerAvgIOLatencyUsecs||null===this.controllerAvgIOLatencyUsecs)return new F("controllerAvgIOLatencyUsecs","undefined or null");if(!T.validateMaxItems(this.controllerAvgIOLatencyUsecs,100))return new F("controllerAvgIOLatencyUsecs","does not satisfy required maxItems constraint: 100")}if("controllerAvgReadIOLatencyUsecs"===t){if(void 0===this.controllerAvgReadIOLatencyUsecs||null===this.controllerAvgReadIOLatencyUsecs)return new F("controllerAvgReadIOLatencyUsecs","undefined or null");if(!T.validateMaxItems(this.controllerAvgReadIOLatencyUsecs,100))return new F("controllerAvgReadIOLatencyUsecs","does not satisfy required maxItems constraint: 100")}if("controllerAvgWriteIOLatencyUsecs"===t){if(void 0===this.controllerAvgWriteIOLatencyUsecs||null===this.controllerAvgWriteIOLatencyUsecs)return new F("controllerAvgWriteIOLatencyUsecs","undefined or null");if(!T.validateMaxItems(this.controllerAvgWriteIOLatencyUsecs,100))return new F("controllerAvgWriteIOLatencyUsecs","does not satisfy required maxItems constraint: 100")}return new F(t,"no such property exists")}}function ki(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")}mi.prototype.volumeDiskExtId=void 0,mi.prototype.controllerUserBytes=void 0,mi.prototype.controllerNumIOPS=void 0,mi.prototype.controllerNumReadIOPS=void 0,mi.prototype.controllerNumWriteIOPS=void 0,mi.prototype.controllerIOBandwidthKBps=void 0,mi.prototype.controllerReadIOBandwidthKBps=void 0,mi.prototype.controllerWriteIOBandwidthKBps=void 0,mi.prototype.controllerAvgIOLatencyUsecs=void 0,mi.prototype.controllerAvgReadIOLatencyUsecs=void 0,mi.prototype.controllerAvgWriteIOLatencyUsecs=void 0,ot.prototype.extId=void 0,ot.prototype.links=void 0,it.prototype.tenantId=void 0;var bi=new WeakSet;class ji extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=bi),t.add(e),this.$objectType="volumes.v4.stats.GetVolumeDiskStatsApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new ji,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"volumes.v4.stats.VolumeDiskStats":t.setData(mi.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":t.setData(Ve.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ki(bi,this,Ti).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ki(bi,this,Ti).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function Ti(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Fi(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")}ji.prototype.metadata=void 0,ji.prototype.data=void 0,ji.prototype.$reserved=void 0,ji.prototype.$objectType=void 0,ji.prototype.$unknownFields=void 0;var Oi=new WeakSet;class Ii extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Oi),t.add(e),this.$objectType="volumes.v4.config.UpdateVolumeDiskApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new Ii,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ee.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":t.setData(Ve.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Fi(Oi,this,Pi).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Fi(Oi,this,Pi).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function Pi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Ai(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")}Ii.prototype.metadata=void 0,Ii.prototype.data=void 0,Ii.prototype.$reserved=void 0,Ii.prototype.$objectType=void 0,Ii.prototype.$unknownFields=void 0;var Ei=new WeakSet;class Ci extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Ei),t.add(e),this.$objectType="volumes.v4.config.DetachVmApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new Ci,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ee.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":t.setData(Ve.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ai(Ei,this,Ri).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Ai(Ei,this,Ri).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function Ri(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Di(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")}Ci.prototype.metadata=void 0,Ci.prototype.data=void 0,Ci.prototype.$reserved=void 0,Ci.prototype.$objectType=void 0,Ci.prototype.$unknownFields=void 0;var Ui=new WeakSet;class xi extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Ui),t.add(e),this.$objectType="volumes.v4.config.AssociateCategoryApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new xi,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ee.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":t.setData(Ve.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Di(Ui,this,Si).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Di(Ui,this,Si).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function Si(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Ni(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")}xi.prototype.metadata=void 0,xi.prototype.data=void 0,xi.prototype.$reserved=void 0,xi.prototype.$objectType=void 0,xi.prototype.$unknownFields=void 0;var Mi=new WeakSet;class Ji extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Mi),t.add(e),this.$objectType="volumes.v4.config.DetachNvmfClientApiResponse",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let s;if(e){if(t=t||new Ji,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(W.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,s){case"prism.v4.config.TaskReference":t.setData(Ee.constructFromObject(e.data,void 0));break;case"volumes.v4.error.ErrorResponse":t.setData(Ve.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+s+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ni(Mi,this,Bi).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Ni(Mi,this,Bi).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("data","undefined or null"):new F("metadata","undefined or null")}}function Bi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Ji.prototype.metadata=void 0,Ji.prototype.data=void 0,Ji.prototype.$reserved=void 0,Ji.prototype.$objectType=void 0,Ji.prototype.$unknownFields=void 0;var Li=new WeakSet;class _i{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Li),t.add(e),this.$objectType="volumes.v4.config.AccessToken",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new _i,e.hasOwnProperty("jwtToken")&&null!==e.jwtToken&&void 0!==e.jwtToken&&t.setJwtToken(e.jwtToken),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getJwtToken(){return this.jwtToken}setJwtToken(e){this.jwtToken=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getJwtToken()&&null!==this.getJwtToken()?{jwtToken:this.getJwtToken()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"jwtToken"!==t||void 0!==this.jwtToken&&null!==this.jwtToken?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("jwtToken","undefined or null")}}_i.prototype.jwtToken=void 0,_i.prototype.$reserved=void 0,_i.prototype.$objectType=void 0,_i.prototype.$unknownFields=void 0;const Vi={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",NONE:"NONE",ISCSI_CLIENT:"ISCSI_CLIENT",VM_CLIENT:"VM_CLIENT",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Vi).find(t=>Vi[t]===e);return null==t?Vi.$UNKNOWN:Vi[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Vi.$UNKNOWN:case Vi.$REDACTED:case Vi.NONE:case Vi.ISCSI_CLIENT:case Vi.VM_CLIENT:return;default:throw new Error("Invalid : must be ClientAccess.{ $UNKNOWN|$REDACTED|NONE|ISCSI_CLIENT|VM_CLIENT }")}}};Object.freeze(Vi);const Wi=Vi;var Gi=new WeakSet;class Ki{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Gi),n.add(t),this.clusterExtId=e,this.$objectType="volumes.v4.config.ClusterScope",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ki,e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&t.setClusterExtId(e.clusterExtId),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getClusterExtId(){return this.clusterExtId}setClusterExtId(e){this.clusterExtId=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=["clusterExtId"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new F("clusterExtId","undefined or null");if(!T.validatePattern(this.clusterExtId,/^[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}$/))return new F("clusterExtId","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}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null")}}Ki.prototype.clusterExtId=void 0,Ki.prototype.$reserved=void 0,Ki.prototype.$objectType=void 0,Ki.prototype.$unknownFields=void 0;class qi extends Ki{constructor(e){super(e),this.$objectType="volumes.v4.config.ClusterScopeProjection",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new qi,Ki.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=["clusterExtId"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return new F(t,"no such property exists")}}var zi=new WeakSet;class Hi extends on{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=zi),t.add(e),this.$objectType="volumes.v4.config.NvmfClientAttachmentProjection",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Hi,on.constructFromObject(e,t,!0),e.hasOwnProperty("nvmfClientProjection")&&null!==e.nvmfClientProjection&&void 0!==e.nvmfClientProjection&&t.setNvmfClientProjection(Ct.constructFromObject(e.nvmfClientProjection)),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getNvmfClientProjection(){return this.nvmfClientProjection}setNvmfClientProjection(e){this.nvmfClientProjection=e}toJson(e){return!1===e?{...void 0!==this.getNvmfClientProjection()&&null!==this.getNvmfClientProjection()?{nvmfClientProjection:this.getNvmfClientProjection().toJson(!1)}:{},...void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getNvmfClientProjection()&&null!==this.getNvmfClientProjection()?{nvmfClientProjection:this.getNvmfClientProjection().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"nvmfClientProjection"!==t||void 0!==this.nvmfClientProjection&&null!==this.nvmfClientProjection?new F(t,"no such property exists"):new F("nvmfClientProjection","undefined or null")}}Hi.prototype.nvmfClientProjection=void 0,on.prototype.clusterReference=void 0,ot.prototype.extId=void 0,ot.prototype.links=void 0,it.prototype.tenantId=void 0;var Yi=new WeakSet;class Xi{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Yi),t.add(e),this.$objectType="volumes.v4.config.VolumeGroupDelegateAccessSpec",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Xi,e.hasOwnProperty("clientAccess")&&null!==e.clientAccess&&void 0!==e.clientAccess&&t.setClientAccess(Wi.constructFromObject(e.clientAccess)),e.hasOwnProperty("cluster")&&null!==e.cluster&&void 0!==e.cluster&&t.setCluster(Ki.constructFromObject(e.cluster)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getClientAccess(){return this.clientAccess}setClientAccess(e){this.clientAccess=e}getCluster(){return this.cluster}setCluster(e){this.cluster=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getClientAccess()&&null!==this.getClientAccess()?{clientAccess:this.getClientAccess()}:{},...void 0!==this.getCluster()&&null!==this.getCluster()?{cluster:this.getCluster().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return"clientAccess"!==t||void 0!==this.clientAccess&&null!==this.clientAccess?"cluster"!==t||void 0!==this.cluster&&null!==this.cluster?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new F(t,"no such property exists"):new F("$unknownFields","undefined or null"):new F("$objectType","undefined or null"):new F("$reserved","undefined or null"):new F("cluster","undefined or null"):new F("clientAccess","undefined or null")}}Xi.prototype.clientAccess=void 0,Xi.prototype.cluster=void 0,Xi.prototype.$reserved=void 0,Xi.prototype.$objectType=void 0,Xi.prototype.$unknownFields=void 0;class Zi extends mi{constructor(){super(),this.$objectType="volumes.v4.stats.VolumeDiskStatsProjection",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Zi,mi.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return new F(t,"no such property exists")}}class Qi extends Hs{constructor(){super(),this.$objectType="volumes.v4.stats.VolumeGroupStatsProjection",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Qi,Hs.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof j?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let s=[],i=null;return n.forEach(t=>{i=this.validateProperty(t,e),i&&s.push(i)}),new Promise(function(e,t){0!==s.length?t(i):e()})}validateProperty(e,t){return new F(t,"no such property exists")}}const er={ApiClient:le,IscsiClientsApi:class{#e;static get ApiClient(){return le}constructor(e){this.apiClient=e||le.instance,this.#e=new Set,this.#e.add("authorization"),this.#e.add("cookie"),this.#e.add("host"),this.#e.add("user-agent")}getIscsiClientById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getIscsiClientById");const s={extId:e};let i={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(i[e]=n[e])});const r={...i},o=Ot;return this.apiClient.callApi("/api/volumes/v4.2/config/iscsi-clients/{extId}","GET",s,{},r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}listIscsiClients(e,...t){let n=t.length>0?t[0]:{};const s={...(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{},...e.hasOwnProperty("$limit")?{$limit:e.$limit}:{},...e.hasOwnProperty("$filter")?{$filter:e.$filter}:{},...e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{},...e.hasOwnProperty("$expand")?{$expand:e.$expand}:{},...e.hasOwnProperty("$select")?{$select:e.$select}:{}};let i={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(i[e]=n[e])});const r={...i},o=bt;return this.apiClient.callApi("/api/volumes/v4.2/config/iscsi-clients","GET",{},s,r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}updateIscsiClientById(e,t,...n){let s=n.length>0?n[0]:{},i=null;if(i=t instanceof vt&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateIscsiClientById");if(null==i)throw new Error("Invalid body when calling updateIscsiClientById");const r={extId:e};let o={};Object.keys(s).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=s[e])});const a={...o};le.addEtagReferenceToHeader(t,a);const l=qe;return this.apiClient.callApi("/api/volumes/v4.2/config/iscsi-clients/{extId}","PUT",r,{},a,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}},NvmfClientsApi:class{#e;static get ApiClient(){return le}constructor(e){this.apiClient=e||le.instance,this.#e=new Set,this.#e.add("authorization"),this.#e.add("cookie"),this.#e.add("host"),this.#e.add("user-agent")}getNvmfClientById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getNvmfClientById");const s={extId:e};let i={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(i[e]=n[e])});const r={...i},o=Mt;return this.apiClient.callApi("/api/volumes/v4.2/config/nvmf-clients/{extId}","GET",s,{},r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}listNvmfClients(e,...t){let n=t.length>0?t[0]:{};const s={...(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{},...e.hasOwnProperty("$limit")?{$limit:e.$limit}:{},...e.hasOwnProperty("$filter")?{$filter:e.$filter}:{},...e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{},...e.hasOwnProperty("$expand")?{$expand:e.$expand}:{},...e.hasOwnProperty("$select")?{$select:e.$select}:{}};let i={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(i[e]=n[e])});const r={...i},o=Ut;return this.apiClient.callApi("/api/volumes/v4.2/config/nvmf-clients","GET",{},s,r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}},VolumeGroupsApi:class{#e;static get ApiClient(){return le}constructor(e){this.apiClient=e||le.instance,this.#e=new Set,this.#e.add("authorization"),this.#e.add("cookie"),this.#e.add("host"),this.#e.add("user-agent")}associateCategory(e,t,...n){let s=n.length>0?n[0]:{},i=null;if(i=t instanceof ui&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling associateCategory");if(null==i)throw new Error("Invalid body when calling associateCategory");const r={extId:e};let o={};Object.keys(s).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=s[e])});const a={...o};le.addEtagReferenceToHeader(t,a);const l=xi;return this.apiClient.callApi("/api/volumes/v4.2/config/volume-groups/{extId}/$actions/associate-category","POST",r,{},a,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}attachIscsiClient(e,t,...n){let s=n.length>0?n[0]:{},i=null;if(i=t instanceof vt&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling attachIscsiClient");if(null==i)throw new Error("Invalid body when calling attachIscsiClient");const r={extId:e};let o={};Object.keys(s).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=s[e])});const a={...o};le.addEtagReferenceToHeader(t,a);const l=wi;return this.apiClient.callApi("/api/volumes/v4.2/config/volume-groups/{extId}/$actions/attach-iscsi-client","POST",r,{},a,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}attachNvmfClient(e,t,...n){let s=n.length>0?n[0]:{},i=null;if(i=t instanceof At&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling attachNvmfClient");if(null==i)throw new Error("Invalid body when calling attachNvmfClient");const r={extId:e};let o={};Object.keys(s).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=s[e])});const a={...o};le.addEtagReferenceToHeader(t,a);const l=Es;return this.apiClient.callApi("/api/volumes/v4.2/config/volume-groups/{extId}/$actions/attach-nvmf-client","POST",r,{},a,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}attachVm(e,t,...n){let s=n.length>0?n[0]:{},i=null;if(i=t instanceof ln&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling attachVm");if(null==i)throw new Error("Invalid body when calling attachVm");const r={extId:e};let o={};Object.keys(s).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=s[e])});const a={...o};le.addEtagReferenceToHeader(t,a);const l=as;return this.apiClient.callApi("/api/volumes/v4.2/config/volume-groups/{extId}/$actions/attach-vm","POST",r,{},a,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}createVolumeDisk(e,t,...n){let s=n.length>0?n[0]:{},i=null;if(i=t instanceof mn&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'volumeGroupExtId' when calling createVolumeDisk");if(null==i)throw new Error("Invalid body when calling createVolumeDisk");const r={volumeGroupExtId:e};let o={};Object.keys(s).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=s[e])});const a={...o};le.addEtagReferenceToHeader(t,a);const l=Ms;return this.apiClient.callApi("/api/volumes/v4.2/config/volume-groups/{volumeGroupExtId}/disks","POST",r,{},a,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}createVolumeGroup(e,...t){let n=t.length>0?t[0]:{},s=null;if(s=e instanceof bn&&"function"==typeof e.toJson?e.toJson():e,null==s)throw new Error("Invalid body when calling createVolumeGroup");let i={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(i[e]=n[e])});const r={...i};le.addEtagReferenceToHeader(e,r);const o=Mn;return this.apiClient.callApi("/api/volumes/v4.2/config/volume-groups","POST",{},{},r,{},s,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],o)}deleteVolumeDiskById(e,t,...n){let s=n.length>0?n[0]:{};if(null==e)throw new Error("Missing the required parameter 'volumeGroupExtId' when calling deleteVolumeDiskById");if(null==t)throw new Error("Missing the required parameter 'extId' when calling deleteVolumeDiskById");const i={volumeGroupExtId:e,extId:t};let r={};Object.keys(s).forEach(e=>{this.#e.has(e.toLowerCase())||(r[e]=s[e])});const o={...r},a=_s;return this.apiClient.callApi("/api/volumes/v4.2/config/volume-groups/{volumeGroupExtId}/disks/{extId}","DELETE",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}deleteVolumeGroupById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteVolumeGroupById");const s={extId:e};let i={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(i[e]=n[e])});const r={...i},o=Os;return this.apiClient.callApi("/api/volumes/v4.2/config/volume-groups/{extId}","DELETE",s,{},r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}detachIscsiClient(e,t,...n){let s=n.length>0?n[0]:{},i=null;if(i=t instanceof sn&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling detachIscsiClient");if(null==i)throw new Error("Invalid body when calling detachIscsiClient");const r={extId:e};let o={};Object.keys(s).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=s[e])});const a={...o};le.addEtagReferenceToHeader(t,a);const l=Hn;return this.apiClient.callApi("/api/volumes/v4.2/config/volume-groups/{extId}/$actions/detach-iscsi-client","POST",r,{},a,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}detachNvmfClient(e,t,...n){let s=n.length>0?n[0]:{},i=null;if(i=t instanceof At&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling detachNvmfClient");if(null==i)throw new Error("Invalid body when calling detachNvmfClient");const r={extId:e};let o={};Object.keys(s).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=s[e])});const a={...o};le.addEtagReferenceToHeader(t,a);const l=Ji;return this.apiClient.callApi("/api/volumes/v4.2/config/volume-groups/{extId}/$actions/detach-nvmf-client","POST",r,{},a,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}detachVm(e,t,...n){let s=n.length>0?n[0]:{},i=null;if(i=t instanceof ln&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling detachVm");if(null==i)throw new Error("Invalid body when calling detachVm");const r={extId:e};let o={};Object.keys(s).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=s[e])});const a={...o};le.addEtagReferenceToHeader(t,a);const l=Ci;return this.apiClient.callApi("/api/volumes/v4.2/config/volume-groups/{extId}/$actions/detach-vm","POST",r,{},a,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}disassociateCategory(e,t,...n){let s=n.length>0?n[0]:{},i=null;if(i=t instanceof ui&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling disassociateCategory");if(null==i)throw new Error("Invalid body when calling disassociateCategory");const r={extId:e};let o={};Object.keys(s).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=s[e])});const a={...o};le.addEtagReferenceToHeader(t,a);const l=pi;return this.apiClient.callApi("/api/volumes/v4.2/config/volume-groups/{extId}/$actions/disassociate-category","POST",r,{},a,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}getVolumeDiskById(e,t,...n){let s=n.length>0?n[0]:{};if(null==e)throw new Error("Missing the required parameter 'volumeGroupExtId' when calling getVolumeDiskById");if(null==t)throw new Error("Missing the required parameter 'extId' when calling getVolumeDiskById");const i={volumeGroupExtId:e,extId:t};let r={};Object.keys(s).forEach(e=>{this.#e.has(e.toLowerCase())||(r[e]=s[e])});const o={...r},a=hs;return this.apiClient.callApi("/api/volumes/v4.2/config/volume-groups/{volumeGroupExtId}/disks/{extId}","GET",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}getVolumeDiskStats(e,t,n,s,i,...r){let o=r.length>0?r[0]:{};if(i=i||{},null==e)throw new Error("Missing the required parameter 'volumeGroupExtId' when calling getVolumeDiskStats");if(null==t)throw new Error("Missing the required parameter 'extId' when calling getVolumeDiskStats");if(null==n)throw new Error("Missing the required parameter '$startTime' when calling getVolumeDiskStats");if(null==s)throw new Error("Missing the required parameter '$endTime' when calling getVolumeDiskStats");const a={volumeGroupExtId:e,extId:t},l={$startTime:n,$endTime:s,...i.hasOwnProperty("$samplingInterval")?{$samplingInterval:i.$samplingInterval}:{},...i.hasOwnProperty("$statType")?{$statType:i.$statType}:{},...i.hasOwnProperty("$select")?{$select:i.$select}:{}};let d={};Object.keys(o).forEach(e=>{this.#e.has(e.toLowerCase())||(d[e]=o[e])});const u={...d},h=ji;return this.apiClient.callApi("/api/volumes/v4.2/stats/volume-groups/{volumeGroupExtId}/disks/{extId}","GET",a,l,u,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],h)}getVolumeGroupById(e,t,...n){let s=n.length>0?n[0]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'extId' when calling getVolumeGroupById");const i={extId:e},r={...t.hasOwnProperty("$expand")?{$expand:t.$expand}:{}};let o={};Object.keys(s).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=s[e])});const a={...o},l=Fn;return this.apiClient.callApi("/api/volumes/v4.2/config/volume-groups/{extId}","GET",i,r,a,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],l)}getVolumeGroupMetadataById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'volumeGroupExtId' when calling getVolumeGroupMetadataById");const s={volumeGroupExtId:e};let i={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(i[e]=n[e])});const r={...i},o=ss;return this.apiClient.callApi("/api/volumes/v4.2/config/volume-groups/{volumeGroupExtId}/metadata","GET",s,{},r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}getVolumeGroupStats(e,t,n,s,...i){let r=i.length>0?i[0]:{};if(s=s||{},null==e)throw new Error("Missing the required parameter 'extId' when calling getVolumeGroupStats");if(null==t)throw new Error("Missing the required parameter '$startTime' when calling getVolumeGroupStats");if(null==n)throw new Error("Missing the required parameter '$endTime' when calling getVolumeGroupStats");const o={extId:e},a={$startTime:t,$endTime:n,...s.hasOwnProperty("$samplingInterval")?{$samplingInterval:s.$samplingInterval}:{},...s.hasOwnProperty("$statType")?{$statType:s.$statType}:{},...s.hasOwnProperty("$select")?{$select:s.$select}:{}};let l={};Object.keys(r).forEach(e=>{this.#e.has(e.toLowerCase())||(l[e]=r[e])});const d={...l},u=Zs;return this.apiClient.callApi("/api/volumes/v4.2/stats/volume-groups/{extId}","GET",o,a,d,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],u)}listCategoryAssociationsByVolumeGroupId(e,t,...n){let s=n.length>0?n[0]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'volumeGroupExtId' when calling listCategoryAssociationsByVolumeGroupId");const i={volumeGroupExtId:e},r={...t.hasOwnProperty("$page")?{$page:t.$page}:{},...t.hasOwnProperty("$limit")?{$limit:t.$limit}:{}};let o={};Object.keys(s).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=s[e])});const a={...o},l=ys;return this.apiClient.callApi("/api/volumes/v4.2/config/volume-groups/{volumeGroupExtId}/category-associations","GET",i,r,a,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],l)}listExternalIscsiAttachmentsByVolumeGroupId(e,t,...n){let s=n.length>0?n[0]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'volumeGroupExtId' when calling listExternalIscsiAttachmentsByVolumeGroupId");const i={volumeGroupExtId:e},r={...t.hasOwnProperty("$page")?{$page:t.$page}:{},...t.hasOwnProperty("$limit")?{$limit:t.$limit}:{},...t.hasOwnProperty("$filter")?{$filter:t.$filter}:{},...t.hasOwnProperty("$orderby")?{$orderby:t.$orderby}:{},...t.hasOwnProperty("$expand")?{$expand:t.$expand}:{},...t.hasOwnProperty("$select")?{$select:t.$select}:{}};let o={};Object.keys(s).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=s[e])});const a={...o},l=bs;return this.apiClient.callApi("/api/volumes/v4.2/config/volume-groups/{volumeGroupExtId}/external-iscsi-attachments","GET",i,r,a,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],l)}listVmAttachmentsByVolumeGroupId(e,t,...n){let s=n.length>0?n[0]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'volumeGroupExtId' when calling listVmAttachmentsByVolumeGroupId");const i={volumeGroupExtId:e},r={...t.hasOwnProperty("$page")?{$page:t.$page}:{},...t.hasOwnProperty("$limit")?{$limit:t.$limit}:{},...t.hasOwnProperty("$filter")?{$filter:t.$filter}:{},...t.hasOwnProperty("$orderby")?{$orderby:t.$orderby}:{}};let o={};Object.keys(s).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=s[e])});const a={...o},l=ai;return this.apiClient.callApi("/api/volumes/v4.2/config/volume-groups/{volumeGroupExtId}/vm-attachments","GET",i,r,a,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],l)}listVolumeDisksByVolumeGroupId(e,t,...n){let s=n.length>0?n[0]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'volumeGroupExtId' when calling listVolumeDisksByVolumeGroupId");const i={volumeGroupExtId:e},r={...t.hasOwnProperty("$page")?{$page:t.$page}:{},...t.hasOwnProperty("$limit")?{$limit:t.$limit}:{},...t.hasOwnProperty("$filter")?{$filter:t.$filter}:{},...t.hasOwnProperty("$orderby")?{$orderby:t.$orderby}:{},...t.hasOwnProperty("$select")?{$select:t.$select}:{}};let o={};Object.keys(s).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=s[e])});const a={...o},l=Vn;return this.apiClient.callApi("/api/volumes/v4.2/config/volume-groups/{volumeGroupExtId}/disks","GET",i,r,a,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],l)}listVolumeGroups(e,...t){let n=t.length>0?t[0]:{};const s={...(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{},...e.hasOwnProperty("$limit")?{$limit:e.$limit}:{},...e.hasOwnProperty("$filter")?{$filter:e.$filter}:{},...e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{},...e.hasOwnProperty("$expand")?{$expand:e.$expand}:{},...e.hasOwnProperty("$select")?{$select:e.$select}:{}};let i={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(i[e]=n[e])});const r={...i},o=Un;return this.apiClient.callApi("/api/volumes/v4.2/config/volume-groups","GET",{},s,r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}revertVolumeGroup(e,t,...n){let s=n.length>0?n[0]:{},i=null;if(i=t instanceof Kn&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling revertVolumeGroup");if(null==i)throw new Error("Invalid body when calling revertVolumeGroup");const r={extId:e};let o={};Object.keys(s).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=s[e])});const a={...o};le.addEtagReferenceToHeader(t,a);const l=Us;return this.apiClient.callApi("/api/volumes/v4.2/config/volume-groups/{extId}/$actions/revert","POST",r,{},a,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}updateVolumeDiskById(e,t,n,...s){let i=s.length>0?s[0]:{},r=null;if(r=n instanceof mn&&"function"==typeof n.toJson?n.toJson():n,null==e)throw new Error("Missing the required parameter 'volumeGroupExtId' when calling updateVolumeDiskById");if(null==t)throw new Error("Missing the required parameter 'extId' when calling updateVolumeDiskById");if(null==r)throw new Error("Invalid body when calling updateVolumeDiskById");const o={volumeGroupExtId:e,extId:t};let a={};Object.keys(i).forEach(e=>{this.#e.has(e.toLowerCase())||(a[e]=i[e])});const l={...a};le.addEtagReferenceToHeader(n,l);const d=Ii;return this.apiClient.callApi("/api/volumes/v4.2/config/volume-groups/{volumeGroupExtId}/disks/{extId}","PUT",o,{},l,{},r,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],d)}updateVolumeGroupById(e,t,...n){let s=n.length>0?n[0]:{},i=null;if(i=t instanceof bn&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateVolumeGroupById");if(null==i)throw new Error("Invalid body when calling updateVolumeGroupById");const r={extId:e};let o={};Object.keys(s).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=s[e])});const a={...o};le.addEtagReferenceToHeader(t,a);const l=ni;return this.apiClient.callApi("/api/volumes/v4.2/config/volume-groups/{extId}","PUT",r,{},a,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}},EntityReference:yn,EntityType:vn,FQDN:Ye,Flag:I,IPAddressOrFQDN:nt,IPv4Address:Ze,IPv6Address:et,KVPair:U,MapOfStringWrapper:E,Message:J,MessageSeverity:N,Metadata:es,TenantAwareModel:it,ApiLink:L,ApiResponseMetadata:W,ExternalizableAbstractModel:ot,DownSamplingOperator:Zn,TaskReference:Ee,AccessToken:_i,AssociateCategoryApiResponse:xi,AttachIscsiClientApiResponse:wi,AttachNvmfClientApiResponse:Es,AttachVmApiResponse:as,AttachmentType:Lt,AuthenticationType:lt,CategoryDetails:ps,CategoryEntityReferences:ui,ClientAccess:Wi,Cluster:yt,ClusterProjection:wt,ClusterScope:Ki,ClusterScopeProjection:qi,CreateVolumeDiskApiResponse:Ms,CreateVolumeGroupApiResponse:Mn,DeleteVolumeDiskApiResponse:_s,DeleteVolumeGroupApiResponse:Os,DetachIscsiClientApiResponse:Hn,DetachNvmfClientApiResponse:Ji,DetachVmApiResponse:Ci,DisassociateCategoryApiResponse:pi,DiskStorageFeatures:fn,FlashMode:Xt,GetIscsiClientApiResponse:Ot,GetNvmfClientApiResponse:Mt,GetVolumeDiskApiResponse:hs,GetVolumeGroupApiResponse:Fn,GetVolumeGroupMetadataApiResponse:ss,HydrationStatus:Vt,IscsiClient:vt,IscsiClientAttachment:sn,IscsiClientAttachmentProjection:$s,IscsiClientProjection:$t,IscsiFeatures:Gt,ListCategoryAssociationsApiResponse:ys,ListExternalIscsiAttachmentsApiResponse:bs,ListIscsiClientsApiResponse:bt,ListNvmfClientsApiResponse:Ut,ListVmAttachmentsApiResponse:ai,ListVolumeDisksApiResponse:Vn,ListVolumeGroupsApiResponse:Un,NvmfClient:At,NvmfClientAttachment:on,NvmfClientAttachmentProjection:Hi,NvmfClientProjection:Ct,Protocol:qt,RevertSpec:Kn,RevertVolumeGroupApiResponse:Us,SharingStatus:Ht,StorageFeatures:Qt,TargetParam:ut,UpdateIscsiClientApiResponse:qe,UpdateVolumeDiskApiResponse:Ii,UpdateVolumeGroupApiResponse:ni,UsageType:tn,VGAttachment:hn,VmAttachment:ln,VmAttachmentProjection:ii,VolumeDisk:mn,VolumeDiskProjection:Bn,VolumeGroup:bn,VolumeGroupAttachmentSite:ct,VolumeGroupDelegateAccessSpec:Xi,VolumeGroupMetadata:Pn,VolumeGroupMetadataProjection:An,VolumeGroupProjection:Cn,AppMessage:De,ErrorResponse:Ve,SchemaValidationError:Je,SchemaValidationErrorMessage:Se,GetVolumeDiskStatsApiResponse:ji,GetVolumeGroupStatsApiResponse:Zs,TimeValuePair:Ks,VolumeDiskStats:mi,VolumeDiskStatsProjection:Zi,VolumeGroupStats:Hs,VolumeGroupStatsProjection:Qi}})(),s.default})());