@nutanix-scratch/objects-js-client 4.0.1-alpha.2 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/LICENSE.txt +202 -49
  2. package/README.md +39 -27
  3. package/dist/Ntnx-Objects-js-client-prod.js +1 -1
  4. package/dist/Ntnx-Objects-js-client.js +227 -96
  5. package/dist/es/ApiClient.d.ts +8 -1
  6. package/dist/es/ApiClient.js +249 -189
  7. package/dist/es/Paginable.d.ts +1 -1
  8. package/dist/es/Paginable.js +9 -9
  9. package/dist/es/apis/objectstores-endpoints.d.ts +66 -95
  10. package/dist/es/apis/objectstores-endpoints.js +205 -170
  11. package/dist/es/apis/stats-endpoints.d.ts +69 -0
  12. package/dist/es/apis/stats-endpoints.js +154 -0
  13. package/dist/es/index.d.ts +43 -21
  14. package/dist/es/index.js +135 -47
  15. package/dist/es/models/common/v1/config/FQDN.d.ts +24 -20
  16. package/dist/es/models/common/v1/config/FQDN.js +56 -21
  17. package/dist/es/models/common/v1/config/Flag.d.ts +32 -26
  18. package/dist/es/models/common/v1/config/Flag.js +65 -21
  19. package/dist/es/models/common/v1/config/IPAddress.d.ts +42 -26
  20. package/dist/es/models/common/v1/config/IPAddress.js +53 -21
  21. package/dist/es/models/common/v1/config/IPv4Address.d.ts +40 -26
  22. package/dist/es/models/common/v1/config/IPv4Address.js +64 -23
  23. package/dist/es/models/common/v1/config/IPv6Address.d.ts +40 -26
  24. package/dist/es/models/common/v1/config/IPv6Address.js +64 -23
  25. package/dist/es/models/common/v1/config/KVPair.d.ts +35 -26
  26. package/dist/es/models/common/v1/config/KVPair.js +70 -24
  27. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
  28. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +275 -0
  29. package/dist/es/models/common/v1/config/Message.d.ts +41 -38
  30. package/dist/es/models/common/v1/config/Message.js +57 -25
  31. package/dist/es/models/common/v1/config/MessageSeverity.js +7 -7
  32. package/dist/es/models/common/v1/config/Metadata.d.ts +46 -44
  33. package/dist/es/models/common/v1/config/Metadata.js +65 -27
  34. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +22 -20
  35. package/dist/es/models/common/v1/config/TenantAwareModel.js +51 -19
  36. package/dist/es/models/common/v1/response/ApiLink.d.ts +28 -26
  37. package/dist/es/models/common/v1/response/ApiLink.js +53 -21
  38. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
  39. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +71 -27
  40. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
  41. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +71 -31
  42. package/dist/es/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
  43. package/dist/es/models/common/v1/stats/DownSamplingOperator.js +109 -0
  44. package/dist/es/models/common/v1/stats/TimeIntValuePair.d.ts +64 -0
  45. package/dist/es/models/common/v1/stats/TimeIntValuePair.js +313 -0
  46. package/dist/es/models/objects/v4/config/Certificate.d.ts +146 -0
  47. package/dist/es/models/objects/v4/{operations → config}/Certificate.js +184 -43
  48. package/dist/es/models/objects/v4/{operations → config}/CertificateProjection.d.ts +2 -1
  49. package/dist/{lib/models/objects/v4/operations → es/models/objects/v4/config}/CertificateProjection.js +41 -17
  50. package/dist/es/models/objects/v4/config/CreateCertificateApiResponse.d.ts +101 -0
  51. package/dist/es/models/objects/v4/config/CreateCertificateApiResponse.js +343 -0
  52. package/dist/es/models/objects/v4/config/CreateObjectstoreApiResponse.d.ts +99 -0
  53. package/dist/{lib/models/objects/v4/operations/TaskReferenceApiResponse.js → es/models/objects/v4/config/CreateObjectstoreApiResponse.js} +86 -54
  54. package/dist/es/models/objects/v4/config/DeleteObjectstoreApiResponse.d.ts +99 -0
  55. package/dist/es/models/objects/v4/config/DeleteObjectstoreApiResponse.js +343 -0
  56. package/dist/es/models/objects/v4/config/GetCaApiResponse.d.ts +98 -0
  57. package/dist/es/models/objects/v4/{operations/TaskReferenceApiResponse.js → config/GetCaApiResponse.js} +88 -57
  58. package/dist/es/models/objects/v4/config/GetCertificateApiResponse.d.ts +99 -0
  59. package/dist/es/models/objects/v4/{operations/CertificateApiResponse.js → config/GetCertificateApiResponse.js} +88 -56
  60. package/dist/es/models/objects/v4/config/GetObjectstoreApiResponse.d.ts +101 -0
  61. package/dist/{lib/models/objects/v4/operations/ObjectstoreApiResponse.js → es/models/objects/v4/config/GetObjectstoreApiResponse.js} +89 -57
  62. package/dist/es/models/objects/v4/config/ListCertificatesApiResponse.d.ts +100 -0
  63. package/dist/es/models/objects/v4/{operations/CertificateListApiResponse.js → config/ListCertificatesApiResponse.js} +89 -57
  64. package/dist/es/models/objects/v4/config/ListObjectstoresApiResponse.d.ts +100 -0
  65. package/dist/es/models/objects/v4/{operations/ObjectstoreListApiResponse.js → config/ListObjectstoresApiResponse.js} +92 -60
  66. package/dist/es/models/objects/v4/config/ObjectStore.d.ts +313 -0
  67. package/dist/es/models/objects/v4/{operations/Objectstore.js → config/ObjectStore.js} +213 -157
  68. package/dist/es/models/objects/v4/config/ObjectStoreProjection.d.ts +174 -0
  69. package/dist/{lib/models/objects/v4/operations/ObjectstoreProjection.js → es/models/objects/v4/config/ObjectStoreProjection.js} +211 -65
  70. package/dist/es/models/objects/v4/{operations/StateEnum.d.ts → config/State.d.ts} +6 -6
  71. package/dist/es/models/objects/v4/config/State.js +133 -0
  72. package/dist/es/models/objects/v4/config/UpdateObjectstoreApiResponse.d.ts +99 -0
  73. package/dist/es/models/objects/v4/config/UpdateObjectstoreApiResponse.js +343 -0
  74. package/dist/es/models/objects/v4/error/AppMessage.d.ts +57 -48
  75. package/dist/es/models/objects/v4/error/AppMessage.js +61 -29
  76. package/dist/es/models/objects/v4/error/ErrorResponse.d.ts +23 -19
  77. package/dist/es/models/objects/v4/error/ErrorResponse.js +62 -25
  78. package/dist/es/models/objects/v4/error/SchemaValidationError.d.ts +53 -43
  79. package/dist/es/models/objects/v4/error/SchemaValidationError.js +62 -29
  80. package/dist/es/models/objects/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
  81. package/dist/es/models/objects/v4/error/SchemaValidationErrorMessage.js +55 -23
  82. package/dist/es/models/objects/v4/stats/GetObjectstoreStatsApiResponse.d.ts +99 -0
  83. package/dist/es/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js +343 -0
  84. package/dist/es/models/objects/v4/stats/ObjectstoreStats.d.ts +423 -0
  85. package/dist/es/models/objects/v4/stats/ObjectstoreStats.js +1425 -0
  86. package/dist/es/models/objects/v4/stats/TimeFloatValuePair.d.ts +64 -0
  87. package/dist/es/models/objects/v4/stats/TimeFloatValuePair.js +313 -0
  88. package/dist/es/models/prism/v4/config/TaskReference.d.ts +22 -20
  89. package/dist/es/models/prism/v4/config/TaskReference.js +55 -20
  90. package/dist/es/models/validation/ValidationError.js +5 -5
  91. package/dist/es/utils/ValidationUtils.js +5 -5
  92. package/dist/lib/ApiClient.d.ts +8 -1
  93. package/dist/lib/ApiClient.js +249 -189
  94. package/dist/lib/Paginable.d.ts +1 -1
  95. package/dist/lib/Paginable.js +9 -9
  96. package/dist/lib/apis/objectstores-endpoints.d.ts +66 -95
  97. package/dist/lib/apis/objectstores-endpoints.js +205 -170
  98. package/dist/lib/apis/stats-endpoints.d.ts +69 -0
  99. package/dist/lib/apis/stats-endpoints.js +154 -0
  100. package/dist/lib/index.d.ts +43 -21
  101. package/dist/lib/index.js +135 -47
  102. package/dist/lib/models/common/v1/config/FQDN.d.ts +24 -20
  103. package/dist/lib/models/common/v1/config/FQDN.js +56 -21
  104. package/dist/lib/models/common/v1/config/Flag.d.ts +32 -26
  105. package/dist/lib/models/common/v1/config/Flag.js +65 -21
  106. package/dist/lib/models/common/v1/config/IPAddress.d.ts +42 -26
  107. package/dist/lib/models/common/v1/config/IPAddress.js +53 -21
  108. package/dist/lib/models/common/v1/config/IPv4Address.d.ts +40 -26
  109. package/dist/lib/models/common/v1/config/IPv4Address.js +64 -23
  110. package/dist/lib/models/common/v1/config/IPv6Address.d.ts +40 -26
  111. package/dist/lib/models/common/v1/config/IPv6Address.js +64 -23
  112. package/dist/lib/models/common/v1/config/KVPair.d.ts +35 -26
  113. package/dist/lib/models/common/v1/config/KVPair.js +70 -24
  114. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
  115. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +275 -0
  116. package/dist/lib/models/common/v1/config/Message.d.ts +41 -38
  117. package/dist/lib/models/common/v1/config/Message.js +57 -25
  118. package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -7
  119. package/dist/lib/models/common/v1/config/Metadata.d.ts +46 -44
  120. package/dist/lib/models/common/v1/config/Metadata.js +65 -27
  121. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +22 -20
  122. package/dist/lib/models/common/v1/config/TenantAwareModel.js +51 -19
  123. package/dist/lib/models/common/v1/response/ApiLink.d.ts +28 -26
  124. package/dist/lib/models/common/v1/response/ApiLink.js +53 -21
  125. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
  126. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +71 -27
  127. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
  128. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +71 -31
  129. package/dist/lib/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
  130. package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +109 -0
  131. package/dist/lib/models/common/v1/stats/TimeIntValuePair.d.ts +64 -0
  132. package/dist/lib/models/common/v1/stats/TimeIntValuePair.js +313 -0
  133. package/dist/lib/models/objects/v4/config/Certificate.d.ts +146 -0
  134. package/dist/lib/models/objects/v4/{operations → config}/Certificate.js +184 -43
  135. package/dist/lib/models/objects/v4/{operations → config}/CertificateProjection.d.ts +2 -1
  136. package/dist/{es/models/objects/v4/operations → lib/models/objects/v4/config}/CertificateProjection.js +41 -17
  137. package/dist/lib/models/objects/v4/config/CreateCertificateApiResponse.d.ts +101 -0
  138. package/dist/lib/models/objects/v4/config/CreateCertificateApiResponse.js +343 -0
  139. package/dist/lib/models/objects/v4/config/CreateObjectstoreApiResponse.d.ts +99 -0
  140. package/dist/lib/models/objects/v4/config/CreateObjectstoreApiResponse.js +343 -0
  141. package/dist/lib/models/objects/v4/config/DeleteObjectstoreApiResponse.d.ts +99 -0
  142. package/dist/lib/models/objects/v4/config/DeleteObjectstoreApiResponse.js +343 -0
  143. package/dist/lib/models/objects/v4/config/GetCaApiResponse.d.ts +98 -0
  144. package/dist/lib/models/objects/v4/{operations/CertificateApiResponse.js → config/GetCaApiResponse.js} +88 -57
  145. package/dist/lib/models/objects/v4/config/GetCertificateApiResponse.d.ts +99 -0
  146. package/dist/lib/models/objects/v4/config/GetCertificateApiResponse.js +343 -0
  147. package/dist/lib/models/objects/v4/config/GetObjectstoreApiResponse.d.ts +101 -0
  148. package/dist/{es/models/objects/v4/operations/ObjectstoreApiResponse.js → lib/models/objects/v4/config/GetObjectstoreApiResponse.js} +89 -57
  149. package/dist/lib/models/objects/v4/config/ListCertificatesApiResponse.d.ts +100 -0
  150. package/dist/lib/models/objects/v4/{operations/CertificateListApiResponse.js → config/ListCertificatesApiResponse.js} +89 -57
  151. package/dist/lib/models/objects/v4/config/ListObjectstoresApiResponse.d.ts +100 -0
  152. package/dist/lib/models/objects/v4/{operations/ObjectstoreListApiResponse.js → config/ListObjectstoresApiResponse.js} +92 -60
  153. package/dist/lib/models/objects/v4/config/ObjectStore.d.ts +313 -0
  154. package/dist/lib/models/objects/v4/{operations/Objectstore.js → config/ObjectStore.js} +213 -157
  155. package/dist/lib/models/objects/v4/config/ObjectStoreProjection.d.ts +174 -0
  156. package/dist/{es/models/objects/v4/operations/ObjectstoreProjection.js → lib/models/objects/v4/config/ObjectStoreProjection.js} +211 -65
  157. package/dist/lib/models/objects/v4/{operations/StateEnum.d.ts → config/State.d.ts} +6 -6
  158. package/dist/lib/models/objects/v4/config/State.js +133 -0
  159. package/dist/lib/models/objects/v4/config/UpdateObjectstoreApiResponse.d.ts +99 -0
  160. package/dist/lib/models/objects/v4/config/UpdateObjectstoreApiResponse.js +343 -0
  161. package/dist/lib/models/objects/v4/error/AppMessage.d.ts +57 -48
  162. package/dist/lib/models/objects/v4/error/AppMessage.js +61 -29
  163. package/dist/lib/models/objects/v4/error/ErrorResponse.d.ts +23 -19
  164. package/dist/lib/models/objects/v4/error/ErrorResponse.js +62 -25
  165. package/dist/lib/models/objects/v4/error/SchemaValidationError.d.ts +53 -43
  166. package/dist/lib/models/objects/v4/error/SchemaValidationError.js +62 -29
  167. package/dist/lib/models/objects/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
  168. package/dist/lib/models/objects/v4/error/SchemaValidationErrorMessage.js +55 -23
  169. package/dist/lib/models/objects/v4/stats/GetObjectstoreStatsApiResponse.d.ts +99 -0
  170. package/dist/lib/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js +343 -0
  171. package/dist/lib/models/objects/v4/stats/ObjectstoreStats.d.ts +423 -0
  172. package/dist/lib/models/objects/v4/stats/ObjectstoreStats.js +1425 -0
  173. package/dist/lib/models/objects/v4/stats/TimeFloatValuePair.d.ts +64 -0
  174. package/dist/lib/models/objects/v4/stats/TimeFloatValuePair.js +313 -0
  175. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +22 -20
  176. package/dist/lib/models/prism/v4/config/TaskReference.js +55 -20
  177. package/dist/lib/models/validation/ValidationError.js +5 -5
  178. package/dist/lib/utils/ValidationUtils.js +5 -5
  179. package/package.json +1 -1
  180. package/dist/es/models/objects/v4/operations/Certificate.d.ts +0 -78
  181. package/dist/es/models/objects/v4/operations/CertificateApiResponse.d.ts +0 -59
  182. package/dist/es/models/objects/v4/operations/CertificateListApiResponse.d.ts +0 -59
  183. package/dist/es/models/objects/v4/operations/Objectstore.d.ts +0 -242
  184. package/dist/es/models/objects/v4/operations/ObjectstoreApiResponse.d.ts +0 -59
  185. package/dist/es/models/objects/v4/operations/ObjectstoreListApiResponse.d.ts +0 -59
  186. package/dist/es/models/objects/v4/operations/ObjectstoreProjection.d.ts +0 -50
  187. package/dist/es/models/objects/v4/operations/StateEnum.js +0 -145
  188. package/dist/es/models/objects/v4/operations/TaskReferenceApiResponse.d.ts +0 -59
  189. package/dist/lib/models/objects/v4/operations/Certificate.d.ts +0 -78
  190. package/dist/lib/models/objects/v4/operations/CertificateApiResponse.d.ts +0 -59
  191. package/dist/lib/models/objects/v4/operations/CertificateListApiResponse.d.ts +0 -59
  192. package/dist/lib/models/objects/v4/operations/Objectstore.d.ts +0 -242
  193. package/dist/lib/models/objects/v4/operations/ObjectstoreApiResponse.d.ts +0 -59
  194. package/dist/lib/models/objects/v4/operations/ObjectstoreListApiResponse.d.ts +0 -59
  195. package/dist/lib/models/objects/v4/operations/ObjectstoreProjection.d.ts +0 -50
  196. package/dist/lib/models/objects/v4/operations/StateEnum.js +0 -145
  197. package/dist/lib/models/objects/v4/operations/TaskReferenceApiResponse.d.ts +0 -59
@@ -218,7 +218,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
218
218
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
219
219
 
220
220
  "use strict";
221
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ApiClient: () => (/* binding */ ApiClient)\n/* harmony export */ });\n/* harmony import */ var superagent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! superagent */ \"./node_modules/superagent/lib/client.js\");\n/* harmony import */ var superagent__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(superagent__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\n/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! uuid */ \"./node_modules/uuid/dist/esm-browser/v4.js\");\n/* harmony import */ var superagent_retry_delay__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! superagent-retry-delay */ \"./node_modules/superagent-retry-delay/src/index.js\");\n/* harmony import */ var superagent_retry_delay__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(superagent_retry_delay__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! https */ \"?aee4\");\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(https__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! fs */ \"?e583\");\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! path */ \"./node_modules/path/path.js\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! buffer */ \"?bdc3\");\n/* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(buffer__WEBPACK_IMPORTED_MODULE_6__);\nvar _ApiClient;\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _wrapRegExp() { _wrapRegExp = function _wrapRegExp(e, r) { return new BabelRegExp(e, void 0, r); }; var e = RegExp.prototype, r = new WeakMap(); function BabelRegExp(e, t, p) { var o = RegExp(e, t); return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype); } function buildGroups(e, t) { var p = r.get(t); return Object.keys(p).reduce(function (r, t) { var o = p[t]; if (\"number\" == typeof o) r[t] = e[o];else { for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; r[t] = e[o[i]]; } return r; }, Object.create(null)); } return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { var t = e.exec.call(this, r); if (t) { t.groups = buildGroups(t, this); var p = t.indices; p && (p.groups = buildGroups(p, this)); } return t; }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { if (\"string\" == typeof p) { var o = r.get(this); return e[Symbol.replace].call(this, t, p.replace(/\\$<([^>]+)>/g, function (e, r) { var t = o[r]; return \"$\" + (Array.isArray(t) ? t.join(\"$\") : t); })); } if (\"function\" == typeof p) { var i = this; return e[Symbol.replace].call(this, t, function () { var e = arguments; return \"object\" != _typeof(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); }); } return e[Symbol.replace].call(this, t, p); }, _wrapRegExp.apply(this, arguments); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it[\"return\"] != null) it[\"return\"](); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }\nfunction _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\nsuperagent_retry_delay__WEBPACK_IMPORTED_MODULE_2___default()((superagent__WEBPACK_IMPORTED_MODULE_0___default()));\n\n\n\n\n\n/**\n* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an\n* application to use this class directly - the *Api and model classes provide the public API for the service. The\n* contents of this file should be regarded as internal but are documented for completeness.\n* @module ApiClient\n* @version 4.0.1-alpha-2\n*/\nvar _protocol = /*#__PURE__*/new WeakMap();\nvar _cookie = /*#__PURE__*/new WeakMap();\nvar _logger = /*#__PURE__*/new WeakMap();\nvar _verifySslFlag = /*#__PURE__*/new WeakMap();\nvar _defaultConnectTimeout = /*#__PURE__*/new WeakMap();\nvar _defaultReadTimeout = /*#__PURE__*/new WeakMap();\nvar _defaultMaxTimeout = /*#__PURE__*/new WeakMap();\nvar _LOG_LEVEL = /*#__PURE__*/new WeakMap();\nvar _ApiClient_brand = /*#__PURE__*/new WeakSet();\nvar ApiClient = /*#__PURE__*/function () {\n /**\n * @alias module:ApiClient\n * @class\n */\n function ApiClient() {\n _classCallCheck(this, ApiClient);\n /*\n * Checks whether the given content type represents JSON.<br>\n * JSON content type examples:<br>\n * <ul>\n * <li>application/json</li>\n * <li>application/json; charset=UTF8</li>\n * <li>APPLICATION/JSON</li>\n * </ul>\n * @param {String} contentType The MIME content type to check.\n * @returns {Boolean} <code>true</code> if <code>contentType</code> represents JSON, otherwise <code>false</code>.\n */\n _classPrivateMethodInitSpec(this, _ApiClient_brand);\n // PRIVATE VARIABLES\n _classPrivateFieldInitSpec(this, _protocol, void 0);\n _classPrivateFieldInitSpec(this, _cookie, void 0);\n _classPrivateFieldInitSpec(this, _logger, void 0);\n _classPrivateFieldInitSpec(this, _verifySslFlag, void 0);\n _classPrivateFieldInitSpec(this, _defaultConnectTimeout, void 0);\n _classPrivateFieldInitSpec(this, _defaultReadTimeout, void 0);\n _classPrivateFieldInitSpec(this, _defaultMaxTimeout, void 0);\n _classPrivateFieldInitSpec(this, _LOG_LEVEL, void 0);\n _classPrivateFieldSet(_LOG_LEVEL, this, Object.freeze({\n DEBUG: {\n key: \"DEBUG\",\n value: Symbol(0)\n },\n INFO: {\n key: \"INFO\",\n value: Symbol(1)\n },\n WARN: {\n key: \"WARN\",\n value: Symbol(2)\n },\n ERROR: {\n key: \"ERROR\",\n value: Symbol(3)\n }\n }));\n\n /**\n * URI scheme for connecting to the cluster (HTTP or HTTPS using SSL/TLS)\n * @type {String}\n * @default https\n */\n this.scheme = 'https';\n\n /**\n * The hostname of the URL against which to resolve every API call's (relative) path.\n * @type {String}\n * @default localhost\n */\n this.host = typeof self === 'undefined' ? 'localhost' : self.location.hostname;\n\n /**\n * The port of the base URL.\n * @type {String}\n * @default 9440\n */\n this.port = typeof self === 'undefined' ? '9440' : self.location.port;\n\n /**\n * The authentication methods to be included for all API calls.\n * @type {Array.<String>}\n */\n this.authentications = {\n 'basicAuthScheme': {\n type: 'basic'\n }\n };\n\n /**\n * The default HTTP headers to be included for all API calls.\n * @type {Array.<String>}\n * @default {}\n */\n this.defaultHeaders = {};\n _classPrivateFieldSet(_defaultConnectTimeout, this, 30000);\n _classPrivateFieldSet(_defaultReadTimeout, this, 30000);\n _classPrivateFieldSet(_defaultMaxTimeout, this, 1800000);\n\n /**\n * The default HTTP read timeout in milliseconds for all API calls.\n * @type {Number}\n * @default 30000\n */\n this.readTimeout = _classPrivateFieldGet(_defaultReadTimeout, this);\n\n /**\n * The default HTTP connection timeout in milliseconds for all API calls.\n * @type {Number}\n * @default 30000\n */\n this.connectTimeout = _classPrivateFieldGet(_defaultConnectTimeout, this);\n\n /**\n * If set to false an additional timestamp parameter is added to all API GET calls to\n * prevent browser caching\n * @type {Boolean}\n * @default true\n */\n this.cache = true;\n\n /**\n * Saved Cookies\n * @default null\n */\n _classPrivateFieldSet(_cookie, this, null);\n\n /**\n * The maximum number of retry attempts to be made by the client\n * in case of server error.\n * @type {Number}\n * @default 5\n */\n this.maxRetryAttempts = 5;\n\n /**\n * The delay period (in milliseconds) between two consecutive retry attempts\n * @type {Number}\n * @default 3000\n */\n this.retryInterval = 3000;\n if (typeof self === 'undefined') {\n this.agent = new (superagent__WEBPACK_IMPORTED_MODULE_0___default().agent)();\n }\n\n /**\n * Allow user to override superagent agent\n */\n this.requestAgent = null;\n\n /**\n * Allow SDK to print debug logs\n */\n this.debug = false;\n _classPrivateFieldSet(_logger, this, null);\n\n /**\n * Username for basic auth\n */\n this.username = null;\n\n /**\n * Password for basic auth\n */\n this.password = null;\n _classPrivateFieldSet(_verifySslFlag, this, true);\n\n /*\n * Non Browser Environment : path to directory where downloaded files will be stored\n * Browser Environment : WritableStream to pipe downloaded file to\n */\n this.downloadDestination = null;\n\n /*\n * Log file to write activity logs\n */\n this.loggerFile = null;\n }\n\n /**\n * Enable/Disable SSL Verification\n * @param verifySsl (boolean)\n */\n return _createClass(ApiClient, [{\n key: \"verifySsl\",\n get: function get() {\n return _classPrivateFieldGet(_verifySslFlag, this);\n }\n\n /**\n * Configure log file to write activity logs\n * @param logfile The destination file (write stream / string)\n */,\n set: function set(verifySsl) {\n if (verifySsl) {\n this.requestAgent = null;\n } else {\n this.requestAgent = new (https__WEBPACK_IMPORTED_MODULE_3___default().Agent)({\n rejectUnauthorized: false\n });\n }\n _classPrivateFieldSet(_verifySslFlag, this, verifySsl);\n }\n }, {\n key: \"loggerFile\",\n set: function set(logfile) {\n if (logfile !== null && typeof logfile !== 'undefined') {\n if (typeof logfile === 'string' || logfile instanceof String) {\n logfile = fs__WEBPACK_IMPORTED_MODULE_4___default().createWriteStream(logfile, {\n flags: 'a'\n });\n }\n _classPrivateFieldSet(_logger, this, new console.Console({\n stdout: logfile,\n stderr: logfile\n }));\n }\n }\n\n /**\n * Adds key value pair to default headers map, (to be added to every API call request)\n * @param {String} key The key\n * @param {String} value The corresponding value\n */\n }, {\n key: \"addDefaultHeader\",\n value: function addDefaultHeader(key, value) {\n if (key === \"Authorization\") {\n _classPrivateFieldSet(_cookie, this, null);\n }\n this.defaultHeaders[key] = value;\n }\n\n /*\n * Returns a string representation for an actual parameter.\n * @param param The actual parameter.\n * @returns {String} The string representation of <code>param</code>.\n */\n }, {\n key: \"paramToString\",\n value: function paramToString(param) {\n if (param == undefined || param == null) {\n return '';\n }\n if (param instanceof Date) {\n return param.toJSON();\n }\n return param.toString();\n }\n }, {\n key: \"buildUrl\",\n value: function buildUrl(path, pathParams) {\n var _this = this;\n if (!path.match(/^\\//)) {\n path = '/' + path;\n }\n\n // The protocol of the base URL, including the colon (:).\n _classPrivateFieldSet(_protocol, this, typeof self === 'undefined' ? this.scheme + ':' : self.location.protocol);\n var basePath = ''; //default\n if (_classPrivateFieldGet(_protocol, this) !== '' && this.host !== '' && this.port !== '') {\n basePath = _classPrivateFieldGet(_protocol, this) + '\\/\\/' + this.host + ':' + this.port;\n } else if (typeof self !== \"undefined\") {\n basePath = self.origin;\n }\n var url = basePath + path;\n url = url.replace(/\\{([\\w-]+)\\}/g, function (fullMatch, key) {\n var value;\n if (pathParams.hasOwnProperty(key)) {\n value = _this.paramToString(pathParams[key]);\n } else {\n value = fullMatch;\n }\n return encodeURIComponent(value);\n });\n return url;\n }\n }, {\n key: \"buildCollectionParam\",\n value:\n /*\n * Builds a string representation of an array-type actual parameter, according to the given collection format.\n * @param {Array} param An array parameter.\n * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy.\n * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns\n * <code>param</code> as is if <code>collectionFormat</code> is <code>multi</code>.\n */\n function buildCollectionParam(param, collectionFormat) {\n if (param == null) {\n return null;\n }\n switch (collectionFormat) {\n case 'csv':\n return param.map(this.paramToString).join(',');\n case 'ssv':\n return param.map(this.paramToString).join(' ');\n case 'tsv':\n return param.map(this.paramToString).join('\\t');\n case 'pipes':\n return param.map(this.paramToString).join('|');\n case 'multi':\n //return the array directly as SuperAgent will handle it as expected\n return param.map(this.paramToString);\n default:\n throw new Error('Unknown collection format: ' + collectionFormat);\n }\n }\n\n /*\n * Applies authentication headers to the request.\n * @param {Object} request The request object created by a <code>superagent()</code> call.\n * @param {Array.<String>} authNames An array of authentication method names.\n */\n }, {\n key: \"addEtagToReservedMap\",\n value: function addEtagToReservedMap(response, data) {\n if (response.hasOwnProperty(\"headers\") && response.headers.hasOwnProperty(\"etag\")) {\n var etagRef = response.headers.etag;\n if (data.getData() !== undefined) {\n if (Array.isArray(data.getData()) && data.getData().length > 0) {\n var _iterator = _createForOfIteratorHelper(data.getData()),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var item = _step.value;\n if (item.hasOwnProperty(\"$reserved\") && item.get$Reserved() !== undefined) {\n item.get$Reserved()[\"ETag\"] = etagRef;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n } else if (data.getData().hasOwnProperty(\"$reserved\") && data.getData().get$Reserved() !== undefined) {\n data.getData().get$Reserved()[\"ETag\"] = etagRef;\n }\n }\n }\n return data;\n }\n\n /**\n * Get ETag from an object if exists.\n * The ETag is usually provided in the response of the GET API calls,\n * which can further be used in other HTTP operations.\n *\n * @param object Object from which ETag needs to be retrieved\n * @returns {(String|null)} returns ETag header in the object if it's an API response object, otherwise null\n */\n }, {\n key: \"callApi\",\n value:\n /**\n * Invokes the REST service using the supplied settings and parameters.\n * @param {String} path The base URL to invoke.\n * @param {String} httpMethod The HTTP method to use.\n * @param {Object.<String, String>} pathParams A map of path parameters and their values.\n * @param {Object.<String, Object>} queryParams A map of query parameters and their values.\n * @param {Object.<String, Object>} headerParams A map of header parameters and their values.\n * @param {Object.<String, Object>} formParams A map of form parameters and their values.\n * @param {Object} bodyParam The value to pass as the request body.\n * @param {Array.<String>} authNames An array of authentication type names.\n * @param {Array.<String>} contentTypes An array of request MIME types.\n * @param {Array.<String>} accepts An array of acceptable response MIME types.\n * @param {(String|Array|Object|Function)} returnType The required type to return; can be a string for simple types or the\n * constructor for a complex type.\n * @returns {Promise} A {@link https://www.promisejs.org/|Promise} object.\n */\n function callApi(path, httpMethod, pathParams, queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, returnType) {\n var _this2 = this;\n var url = this.buildUrl(path, pathParams);\n var request = superagent__WEBPACK_IMPORTED_MODULE_0___default()(httpMethod, url);\n\n // override request callback to retry only required status codes\n request.oldCallback = request.callback;\n request.callback = function (err, res) {\n if (res && res.status) {\n var status = res.status;\n if (status >= 400 && !(status === 401 || status === 408 || status === 503 || status === 504)) {\n this._maxRetries = 0;\n }\n if (res.status === 401) {\n this.unset(\"Cookie\");\n this._maxRetries = 1;\n }\n }\n this.oldCallback(err, res);\n };\n\n // apply authentications\n _assertClassBrand(_ApiClient_brand, this, _applyAuthToRequest).call(this, request, authNames);\n\n // set query parameters\n if (httpMethod.toUpperCase() === 'GET' && this.cache === false) {\n queryParams['_'] = new Date().getTime();\n }\n request.query(_assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, queryParams));\n\n // set header parameters\n request.set(this.defaultHeaders).set(_assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, headerParams));\n if ((this.defaultHeaders['NTNX-Request-Id'] === null || this.defaultHeaders['NTNX-Request-Id'] === undefined) && (headerParams['NTNX-Request-Id'] === null || headerParams['NTNX-Request-Id'] === undefined)) {\n var requestId = (0,uuid__WEBPACK_IMPORTED_MODULE_7__[\"default\"])();\n request.set(_assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, {\n 'NTNX-Request-Id': requestId\n }));\n }\n\n // Set User-Agent header only if it is not a browser environment\n var isBrowser = typeof window !== \"undefined\" && typeof window.document !== \"undefined\";\n if (!isBrowser) {\n request.set(_assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, {\n 'User-Agent': 'Nutanix-objects-js-client/4.0.1-alpha.2'\n }));\n }\n\n // set requestAgent if it is set by user\n if (this.requestAgent) {\n request.agent(this.requestAgent);\n }\n\n // set request timeouts\n var timeoutOptions = {};\n timeoutOptions[\"response\"] = _assertClassBrand(_ApiClient_brand, this, _getValidTimeout).call(this, this.connectTimeout, _classPrivateFieldGet(_defaultConnectTimeout, this));\n timeoutOptions[\"deadline\"] = _assertClassBrand(_ApiClient_brand, this, _getValidTimeout).call(this, this.readTimeout, _classPrivateFieldGet(_defaultReadTimeout, this));\n request.timeout(timeoutOptions);\n var contentType = headerParams.hasOwnProperty(\"Content-Type\") ? headerParams[\"Content-Type\"] : _assertClassBrand(_ApiClient_brand, this, _jsonPreferredMime).call(this, contentTypes);\n if (contentType) {\n // Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746)\n if (contentType != 'multipart/form-data') {\n request.type(contentType);\n }\n } else if (!request.header['Content-Type']) {\n request.type('application/json');\n }\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).INFO, null, \"Request URL :\", httpMethod, url);\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, _assertClassBrand(_ApiClient_brand, this, _flatten), \"Request Headers :\", typeof request.header === \"undefined\" ? \"\" : request.header);\n if (contentType === 'application/x-www-form-urlencoded') {\n request.send(_assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, formParams));\n } else if (contentType == 'multipart/form-data') {\n var _formParams = _assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, formParams);\n for (var key in _formParams) {\n if (_formParams.hasOwnProperty(key)) {\n if (_assertClassBrand(_ApiClient_brand, this, _isFileParam).call(this, _formParams[key])) {\n // file field\n request.attach(key, _formParams[key]);\n } else {\n request.field(key, _formParams[key]);\n }\n }\n }\n } else if (contentType === 'application/octet-stream' && bodyParam !== null && typeof bodyParam !== 'undefined' && typeof bodyParam.pipe === 'function') {\n // FILE UPLOAD SUPPORT\n\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).INFO, null, \"Piping octet-stream request\");\n if (typeof bodyParam.pipe === 'function') {\n bodyParam.pipe(request);\n } else if (true) {\n var webstream;\n try {\n webstream = __webpack_require__(/*! stream/web */ \"?fdee\");\n } catch (err) {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).ERROR, null, \"Error fetching steam/web\");\n }\n if (bodyParam instanceof webstream.ReadableStream) {\n bodyParam.pipeTo(new webstream.WritableStream({\n write: function write(chunk) {\n request.write(chunk);\n },\n close: function close() {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).INFO, null, \"READABLE STREAM CLOSED\");\n },\n abort: function abort(err) {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).ERROR, null, \"READABLE STREAM ABORTED\");\n }\n }));\n } else {\n request.send(bodyParam);\n }\n } else {}\n return new Promise(function (resolve, reject) {\n request.on('error', function (err) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).DEBUG, null, \"Caught the following error :\", err);\n reject(err);\n }).on('response', function (response) {\n _assertClassBrand(_ApiClient_brand, _this2, _handleApiResponseForPromise).call(_this2, response, path, queryParams, returnType, resolve, reject);\n });\n });\n } else if (bodyParam) {\n request.send(bodyParam);\n }\n if (typeof returnType === 'Blob') {\n request.responseType('blob');\n } else if (returnType === 'String') {\n request.responseType('string');\n }\n _assertClassBrand(_ApiClient_brand, this, _attachCookies).call(this, request);\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, null, \"Request Body :\", typeof request._data === \"undefined\" ? \"\" : request._data);\n var accept = headerParams.hasOwnProperty(\"Accept\") ? headerParams[\"Accept\"] : _assertClassBrand(_ApiClient_brand, this, _jsonPreferredMime).call(this, accepts);\n var fetchStream = headerParams.hasOwnProperty(\"Accept\") && headerParams[\"Accept\"] === \"application/octet-stream\" || accepts.length == 1 && accepts[0] === \"application/octet-stream\";\n\n /*\n * 4xx 5xx auto generated responses always append 'application/json' to accepts array\n * octet-stream will be overlooked during jsonPreferredMime call, therefore additional check added\n */\n if (fetchStream) {\n // FILE DOWNLOAD SUPPORT\n\n request.accept('application/octet-stream');\n request.buffer(false);\n return new Promise(function (resolve, reject) {\n var tempFilename = null;\n\n /*\n * Browser environment :\n * uses Web Streams, downloadDestination expected to be a WritableStream (i.e. sink for response to be streamed to)\n * Node.js environment :\n * uses File System, downloadDestination expected to be a directory path, file is downloaded to this directory\n */\n\n if (isBrowser) {\n /*\n * Browser environment :\n * - fetch webstream module\n * - write file to WritableStream downloadDestination\n * - if webstream if not available or downloadDestination is not instance of WritableStream\n * code flow goes to main request.then execution\n */\n\n if (true) {\n var _webstream;\n try {\n _webstream = __webpack_require__(/*! stream/web */ \"?fdee\");\n } catch (err) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, \"Error fetching steam/web\");\n }\n if (_this2.downloadDestination instanceof _webstream.WritableStream) {\n // Piping Data\n var writer = _this2.downloadDestination.getWriter();\n try {\n request.on('data', function (chunk) {\n writer.write(chunk);\n });\n } catch (err) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, \"Issue while downloading file\", err);\n }\n\n // Receiving Response in case of 4xx 5xx\n request.on('response', function (response) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).INFO, null, \"Response Status :\", response.status);\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).DEBUG, _assertClassBrand(_ApiClient_brand, _this2, _flatten), \"Response Headers :\", response.headers);\n var data = _assertClassBrand(_ApiClient_brand, _this2, _deserialize).call(_this2, response, returnType);\n resolve({\n data: data,\n response: response\n });\n }).on('error', function (err) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, \"Caught the following error :\", err);\n reject(err);\n });\n } else {\n var errMsg = \"Incompatible downloadDestination for Browser Environment, must be WritableStream\";\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, errMsg);\n reject(errMsg);\n }\n }\n } else {\n /*\n * Non Browser environment :\n * - stream data to file\n * - fetch response headers and body (if exists)\n * - return in case of error or after stream finish\n *\n * NOTE :\n * superagent does not provide access to headers before pipe, therefore response is piped to\n * file with temporary name, which is renamed to proper filename after Content-Disposition header is available\n */\n\n // Sanitizing downloadDestination\n if (_this2.downloadDestination === null || typeof _this2.downloadDestination === 'undefined' || typeof _this2.downloadDestination !== 'string') {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, \"Incompatible downloadDestination must be string, is\", _this2.downloadDestination);\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, \"Downloading file to base directory\");\n _this2.downloadDestination = \".\";\n }\n\n // Piping data to temporary file\n tempFilename = _this2.downloadDestination + '/downloaded_file_' + Date.now() + '.txt'; // temporary filename\n var stream = fs__WEBPACK_IMPORTED_MODULE_4___default().createWriteStream(tempFilename);\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).INFO, null, \"Streaming response to : \", tempFilename);\n request.pipe(stream);\n\n // Receiving response (json response for 4xx 5xx, or Component-Disposition header for successful pipe)\n request.on('response', function (response) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).INFO, null, \"Response Status :\", response.status);\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).DEBUG, _assertClassBrand(_ApiClient_brand, _this2, _flatten), \"Response Headers :\", response.headers);\n\n // deserialize response if any\n var data = _assertClassBrand(_ApiClient_brand, _this2, _deserialize).call(_this2, response, returnType);\n if (!response.ok) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, data);\n reject(_objectSpread(_objectSpread({}, response.error), {}, {\n data: data\n }));\n }\n\n // Fetch filename\n var filename = \"\";\n if (typeof response.headers['content-disposition'] !== 'undefined' && response.headers['content-disposition'] !== null) {\n var match = response.headers['content-disposition'].match( /*#__PURE__*/_wrapRegExp(/.*filename=\"(.*)\".*/, {\n filename: 1\n }));\n var filepath = path__WEBPACK_IMPORTED_MODULE_5___default().parse(match.groups['filename']);\n filename = _this2.downloadDestination + '/' + filepath.name + '_' + Date.now() + filepath.ext;\n if (typeof data === 'undefined') {\n data = new returnType();\n data.data = {\n \"path\": path__WEBPACK_IMPORTED_MODULE_5___default().parse(filename),\n $objectType: \"Path\"\n };\n }\n }\n stream.on('finish', function () {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).INFO, null, \"Finished streaming response\");\n if (filename.length !== 0) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).INFO, null, \"Content-Disposition header found [\", filename, \"] is final filename\");\n stream.close();\n fs__WEBPACK_IMPORTED_MODULE_4___default().rename(tempFilename, filename, function () {\n resolve({\n data: data,\n response: response\n });\n });\n } else {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, \"Content-Disposition header not found [\", tempFilename, \"] is final filename\");\n resolve({\n data: data,\n response: response\n });\n }\n }).on('error', function (err) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, \"Caught the following error :\", err);\n error.data = _assertClassBrand(_ApiClient_brand, _this2, _wrapErrorInResponse).call(_this2, error);\n reject(err);\n });\n }).on('error', function (error) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, \"Caught the following error :\", err);\n if (error.response !== null && typeof error.response !== 'undefined') {\n error.data = _assertClassBrand(_ApiClient_brand, _this2, _deserialize).call(_this2, error.response, returnType);\n } else {\n error.data = _assertClassBrand(_ApiClient_brand, _this2, _wrapErrorInResponse).call(_this2, error);\n }\n reject(error);\n });\n }\n });\n } else if (accept) {\n request.accept(accept);\n }\n return new Promise(function (resolve, reject) {\n request.on('error', function (err) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).DEBUG, null, \"Caught the following error :\", err);\n }).retry(_this2.maxRetryAttempts, _this2.retryInterval, []).then(function (response) {\n _assertClassBrand(_ApiClient_brand, _this2, _handleApiResponseForPromise).call(_this2, response, path, queryParams, returnType, resolve, reject);\n })[\"catch\"](function (error) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).DEBUG, null, \"Caught error during the request!\");\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, error);\n if (error.response !== null && typeof error.response !== 'undefined') {\n error.data = _assertClassBrand(_ApiClient_brand, _this2, _deserialize).call(_this2, error.response, returnType);\n } else {\n error.data = _assertClassBrand(_ApiClient_brand, _this2, _wrapErrorInResponse).call(_this2, error);\n }\n reject(error);\n });\n });\n }\n }], [{\n key: \"getEtag\",\n value: function getEtag(object) {\n var etag = null;\n if (object !== undefined) {\n if (object.hasOwnProperty('$reserved') && object.get$Reserved() !== undefined) {\n etag = this.getValueForCaseInsensitiveKeyMatch(object.get$Reserved(), 'ETag');\n }\n if (etag == null && object.hasOwnProperty(\"data\") && object.getData().hasOwnProperty('$reserved') && object.getData().get$Reserved() !== undefined) {\n etag = this.getValueForCaseInsensitiveKeyMatch(object.getData().get$Reserved(), 'ETag');\n }\n }\n return etag;\n }\n }, {\n key: \"getValueForCaseInsensitiveKeyMatch\",\n value: function getValueForCaseInsensitiveKeyMatch(object, key) {\n if (object && key) {\n var searchKey = key.toLowerCase();\n var matchedKey = Object.keys(object).find(function (key) {\n return key.toLowerCase() === searchKey;\n });\n return matchedKey ? object[matchedKey] : null;\n }\n return null;\n }\n\n // Gets a valid timeout\n // 1. Sets to provided default timeout in case invalid value is passed\n // 2. Sets to default max value of 30 minutes in case a value of more than 30 minutes is passed\n }, {\n key: \"addEtagReferenceToHeader\",\n value: function addEtagReferenceToHeader(bodyParam, headerParams) {\n // set If-Match header from postBody $reserved map\n if (typeof bodyParam !== 'undefined' && bodyParam !== null) {\n if (bodyParam.hasOwnProperty('$reserved') && bodyParam.$reserved.hasOwnProperty('ETag')) {\n var eTagReference = bodyParam.$reserved['ETag'];\n if (typeof eTagReference !== 'undefined' && eTagReference !== null && eTagReference !== \"\") {\n headerParams['If-Match'] = eTagReference;\n }\n }\n }\n }\n\n /*\n * Parses an ISO-8601 string representation of a date value.\n * @param {String} str The date value as a string.\n * @returns {Date} The parsed date object.\n */\n }, {\n key: \"parseDate\",\n value: function parseDate(str) {\n return new Date(str);\n }\n\n /*\n * Parses queryParams and path to find a given query param value\n * @param {String} path The path given to callApi method\n * @param {Object.<String, Object>} queryParams The queryParams given to callApi method\n * @param {String} param Parameter name to look for\n * @param {String} defaultValue The default value for the missing param if not present\n * @returns {String} The value of given parameter\n */\n }, {\n key: \"parseQueryParam\",\n value: function parseQueryParam(path, queryParams, param, defaultValue) {\n var value = null;\n if (typeof queryParams !== 'undefined' && queryParams.hasOwnProperty(param)) {\n value = queryParams[param];\n }\n if (value === null && (typeof path === 'string' || path instanceof String)) {\n var escapedParam = param.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n var regexResult = path.match(new RegExp(\"\".concat(escapedParam, \"=([0-9]+)\")));\n if (regexResult) {\n value = regexResult[1];\n }\n }\n if (value === null) {\n value = defaultValue;\n }\n return value;\n }\n\n /**\n * Converts a value to the specified type.\n * @param {(String|Object)} data The data to convert, as a string or object.\n * @param {(String|Array.<String>|Object.<String, Object>|Function)} type The type to return. Pass a string for simple types\n * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To\n * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:\n * all properties on <code>data<code> will be converted to this type.\n * @returns An instance of the specified type or null or undefined if data is null or undefined.\n */\n }, {\n key: \"convertToType\",\n value: function convertToType(data, type) {\n if (data === null || data === undefined) return data;\n switch (type) {\n case 'Boolean':\n return Boolean(data);\n case 'Integer':\n return parseInt(data, 10);\n case 'Number':\n return parseFloat(data);\n case 'String':\n return String(data);\n case 'Date':\n return ApiClient.parseDate(String(data));\n case 'Blob':\n return data;\n default:\n if (type === Object) {\n // generic object, return directly\n return data;\n } else if (typeof type === 'function') {\n // for model type like: User\n return type.constructFromObject(data);\n } else if (Array.isArray(type)) {\n // for array type like: ['String']\n var itemType = type[0];\n return data.map(function (item) {\n return ApiClient.convertToType(item, itemType);\n });\n } else if (_typeof(type) === 'object') {\n // for plain object type like: {'String': 'Integer'}\n var keyType, valueType;\n for (var k in type) {\n if (type.hasOwnProperty(k)) {\n keyType = k;\n valueType = type[k];\n break;\n }\n }\n var result = {};\n for (var k in data) {\n if (data.hasOwnProperty(k)) {\n var key = ApiClient.convertToType(k, keyType);\n var value = ApiClient.convertToType(data[k], valueType);\n result[key] = value;\n }\n }\n return result;\n } else {\n // for unknown type, return the data directly\n return data;\n }\n }\n }\n\n /**\n * Constructs a new map or array model from REST data.\n * @param data {Object|Array} The REST data.\n * @param obj {Object|Array} The target object or array.\n */\n }, {\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj, itemType) {\n if (Array.isArray(data)) {\n for (var i = 0; i < data.length; i++) {\n if (data.hasOwnProperty(i)) obj[i] = ApiClient.convertToType(data[i], itemType);\n }\n } else {\n for (var k in data) {\n if (data.hasOwnProperty(k)) obj[k] = ApiClient.convertToType(data[k], itemType);\n }\n }\n }\n }]);\n}();\n\n/**\n* The default API client implementation.\n* @type {ApiClient}\n* @memberOf ApiClient\n*/\n_ApiClient = ApiClient;\nfunction _isJsonMime(contentType) {\n return Boolean(contentType != null && contentType.match(/^application\\/json(;.*)?$/i));\n}\n/*\n* Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.\n* @param {Array.<String>} contentTypes\n* @returns {String} The chosen content type, preferring JSON.\n*/\nfunction _jsonPreferredMime(contentTypes) {\n for (var i = 0; i < contentTypes.length; i++) {\n if (_assertClassBrand(_ApiClient_brand, this, _isJsonMime).call(this, contentTypes[i])) {\n return contentTypes[i];\n }\n }\n return contentTypes[0];\n}\n/*\n* Checks whether the given parameter value represents file-like content.\n* @param param The parameter to check.\n* @returns {Boolean} <code>true</code> if <code>param</code> represents a file.\n*/\nfunction _isFileParam(param) {\n // fs.ReadStream in Node.js and Electron (but not in runtime like browserify)\n if (true) {\n var _fs;\n try {\n _fs = __webpack_require__(/*! fs */ \"?e583\");\n } catch (err) {}\n if (_fs && _fs.ReadStream && param instanceof _fs.ReadStream) {\n return true;\n }\n }\n\n // Buffer in Node.js\n if (typeof Buffer === 'function' && param instanceof Buffer) {\n return true;\n }\n\n // Blob in browser\n if (typeof buffer__WEBPACK_IMPORTED_MODULE_6__.Blob === 'function' && param instanceof buffer__WEBPACK_IMPORTED_MODULE_6__.Blob) {\n return true;\n }\n\n // File in browser (it seems File object is also instance of Blob, but keep this for safe)\n if (typeof File === 'function' && param instanceof File) {\n return true;\n }\n return false;\n}\n/*\n* Normalizes parameter values:\n* <ul>\n* <li>remove nils</li>\n* <li>keep files and arrays</li>\n* <li>format to string with `paramToString` for other cases</li>\n* </ul>\n* @param {Object.<String, Object>} params The parameters as object properties.\n* @returns {Object.<String, Object>} normalized parameters.\n*/\nfunction _normalizeParams(params) {\n var newParams = {};\n for (var key in params) {\n if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) {\n var value = params[key];\n if (_assertClassBrand(_ApiClient_brand, this, _isFileParam).call(this, value) || Array.isArray(value)) {\n newParams[key] = value;\n } else {\n newParams[key] = this.paramToString(value);\n }\n }\n }\n return newParams;\n}\nfunction _applyAuthToRequest(request, authNames) {\n var _this3 = this;\n authNames.forEach(function (authName) {\n var auth = _this3.authentications[authName];\n switch (auth.type) {\n case 'basic':\n if (auth.username || auth.password) {\n request.auth(auth.username || '', auth.password || '');\n } else if (_this3.username || _this3.password) {\n request.auth(_this3.username || '', _this3.password || '');\n }\n _assertClassBrand(_ApiClient_brand, _this3, _log).call(_this3, _classPrivateFieldGet(_LOG_LEVEL, _this3).DEBUG, null, \"Basic Auth applied to request\");\n break;\n case 'apiKey':\n if (auth.apiKey) {\n var data = {};\n if (auth.apiKeyPrefix) {\n data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey;\n } else {\n data[auth.name] = auth.apiKey;\n }\n if (auth['in'] === 'header') {\n request.set(data);\n } else {\n request.query(data);\n }\n }\n _assertClassBrand(_ApiClient_brand, _this3, _log).call(_this3, _classPrivateFieldGet(_LOG_LEVEL, _this3).DEBUG, null, \"apiKey applied to request\");\n break;\n case 'oauth2':\n if (auth.accessToken) {\n request.set({\n 'Authorization': 'Bearer ' + auth.accessToken\n });\n }\n _assertClassBrand(_ApiClient_brand, _this3, _log).call(_this3, _classPrivateFieldGet(_LOG_LEVEL, _this3).DEBUG, null, \"oauth2 applied to request\");\n break;\n default:\n _assertClassBrand(_ApiClient_brand, _this3, _log).call(_this3, _classPrivateFieldGet(_LOG_LEVEL, _this3).ERROR, null, \"Unknown authentication type:\", auth.type);\n throw new Error('Unknown authentication type: ' + auth.type);\n }\n });\n}\n/**\n* Wraps errors in generic response format.\n* @param {Object} error object encountered during request.\n* @returns an error object with wrapped response within error.data .\n*/\nfunction _wrapErrorInResponse(error) {\n var response = {\n data: {},\n metadata: {}\n };\n response.data.status = error.status;\n response.data.message = error.message;\n}\n/**\n* Deserializes an HTTP response body into a value of the specified type.\n* @param {Object} response A SuperAgent response object.\n* @param {(String|Array.<String>|Object.<String, Object>|Function)} returnType The type to return. Pass a string for simple types\n* or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To\n* return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:\n* all properties on <code>data<code> will be converted to this type.\n* @returns A value of the specified type.\n*/\nfunction _deserialize(response, returnType) {\n if (response == null || returnType == null || response.status == 204) {\n return null;\n }\n\n // Rely on SuperAgent for parsing response body.\n // See http://visionmedia.github.io/superagent/#parsing-response-bodies\n var data = response.body;\n if (data == null || _typeof(data) === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length) {\n // SuperAgent does not always produce a body; use the unparsed response as a fallback\n data = response.text;\n }\n return _ApiClient.convertToType(data, returnType);\n}\n/**\n* Set pagination data if response is a Paginable object\n* @param {Object} data The response data already passed through deserialize\n* @param {String} path The path given to callApi method\n* @param {Object.<String, Object>} queryParams The queryParams given to callApi method\n*/\nfunction _paginateIfNeeded(data, path, queryParams) {\n // If response is not a Paginable instance, nothing to do\n if (!(data instanceof _Paginable__WEBPACK_IMPORTED_MODULE_1__[\"default\"])) {\n return;\n }\n // Retrieve current page number, defaults to 0\n var page = parseInt(this.constructor.parseQueryParam(path, queryParams, '$page', \"0\"), 10);\n // Retrieve current limit (results per page) number, defaults to 50\n var resultsPerPage = parseInt(this.constructor.parseQueryParam(path, queryParams, '$limit', \"50\"), 10);\n\n // Populate pagination data\n data.populatePaginationMetadata(this,\n // current ApiClient instance\n page, resultsPerPage);\n}\nfunction _getValidTimeout(timeout, defaultTimeout) {\n if (timeout <= 0) {\n timeout = defaultTimeout;\n } else if (timeout > _classPrivateFieldGet(_defaultMaxTimeout, this)) {\n timeout = _classPrivateFieldGet(_defaultMaxTimeout, this);\n }\n return timeout;\n}\n// If enabled, update cookie information to reuse in subsequent requests for a valid response\nfunction _updateCookies(response) {\n if (response.hasOwnProperty(\"headers\") && response.headers.hasOwnProperty(\"set-cookie\")) {\n var finalCookie = \"\";\n var cookieList = response.headers[\"set-cookie\"];\n if (cookieList.length > 0) {\n // add all cookies separated by ;\n var _iterator2 = _createForOfIteratorHelper(cookieList),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var cookieItem = _step2.value;\n cookieItem = cookieItem.split(\";\")[0];\n if (cookieItem.includes(\"=\")) {\n cookieItem.trim();\n finalCookie = finalCookie.concat(cookieItem).concat(\";\");\n }\n }\n // remove trailing ;\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n if (finalCookie !== \"\") {\n finalCookie = finalCookie.substr(0, finalCookie.length - 1);\n }\n }\n _classPrivateFieldSet(_cookie, this, finalCookie);\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, null, \"Retained cookie :\", finalCookie);\n } else {\n _classPrivateFieldSet(_cookie, this, null);\n }\n}\n// If enabled, attach saved cookies to request\nfunction _attachCookies(request) {\n if (_classPrivateFieldGet(_cookie, this) != null) {\n request.set(_assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, {\n 'Cookie': _classPrivateFieldGet(_cookie, this)\n }));\n }\n}\nfunction _log(level, mapper) {\n for (var _len = arguments.length, messages = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n messages[_key - 2] = arguments[_key];\n }\n // Set default log level to INFO\n if (_typeof(level) !== \"object\" || !(\"key\" in level) || !(\"value\" in level) || _typeof(level[\"value\"]) !== \"symbol\") {\n level = _classPrivateFieldGet(_LOG_LEVEL, this).INFO;\n }\n if (!_assertClassBrand(_ApiClient_brand, this, _skipLogging).call(this, level)) {\n // Preprocess message to prefix with timestamp and log level\n messages = messages.map(function (message) {\n return typeof message === \"string\" ? message : mapper ? mapper(message) : JSON.stringify(message);\n });\n var message = messages.join(' ');\n message = _assertClassBrand(_ApiClient_brand, this, _getLocalDateTime).call(this) + ' ' + level.key + ' - ' + message;\n if (typeof _classPrivateFieldGet(_logger, this) !== \"undefined\" && _classPrivateFieldGet(_logger, this) !== null && typeof _classPrivateFieldGet(_logger, this).log === 'function') {\n _classPrivateFieldGet(_logger, this).log(message);\n } else {\n console.log(message);\n }\n }\n}\nfunction _skipLogging(level) {\n // Skip logging if log level is DEBUG but debug is not enabled.\n return !this.debug && level === _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG;\n}\nfunction _getLocalDateTime() {\n // Current epoch UTC time in milliseconds\n var epochTime = Date.now();\n\n // \"getTimezoneOffset\" returns the difference, in minutes, between a date as evaluated in the UTC time zone,\n // and the same date as evaluated in the local time zone.\n // if you are in timezone UTC-1, outputs 60\n // if you are in timezone UTC+3, outputs -180\n var timezoneOffsetInMinutes = new Date().getTimezoneOffset();\n var timezoneOffsetInMilliseconds = timezoneOffsetInMinutes * 60 * 1000;\n\n // Create a new date with adjusted epoch time based on timezone offset\n var date = new Date(epochTime - timezoneOffsetInMilliseconds);\n return date.toISOString().slice(0, 23);\n}\n// A mapper function to flatten a simple non-nested (key:value) object to string\nfunction _flatten(obj) {\n if (_typeof(obj) !== \"object\") {\n return obj;\n }\n var output = '\\n';\n if (obj) {\n Object.keys(obj).forEach(function (e) {\n output += e + '=[' + obj[e] + ']\\n';\n });\n }\n return output === '\\n' ? obj : output;\n}\n// handle and deserialize received response\nfunction _handleApiResponseForPromise(response, path, queryParams, returnType, resolve, reject) {\n try {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).INFO, null, \"Response Status :\", response.status);\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, _assertClassBrand(_ApiClient_brand, this, _flatten), \"Response Headers :\", response.headers);\n _assertClassBrand(_ApiClient_brand, this, _updateCookies).call(this, response || {});\n var data = _assertClassBrand(_ApiClient_brand, this, _deserialize).call(this, response, returnType);\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, null, \"Response Body :\", data);\n if (response.ok) {\n this.addEtagToReservedMap(response, data);\n _assertClassBrand(_ApiClient_brand, this, _paginateIfNeeded).call(this, data, path, queryParams);\n resolve({\n data: data,\n response: response\n });\n } else {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).ERROR, null, data);\n reject(_objectSpread(_objectSpread({}, response.error), {}, {\n data: data\n }));\n }\n } catch (err) {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, null, \"Caught error while processing response!\");\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).ERROR, null, err);\n err.data = _assertClassBrand(_ApiClient_brand, this, _wrapErrorInResponse).call(this, err);\n reject(err);\n }\n}\nApiClient.instance = new ApiClient();\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/ApiClient.js?");
221
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ApiClient: () => (/* binding */ ApiClient)\n/* harmony export */ });\n/* harmony import */ var superagent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! superagent */ \"./node_modules/superagent/lib/client.js\");\n/* harmony import */ var superagent__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(superagent__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\n/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! uuid */ \"./node_modules/uuid/dist/esm-browser/v4.js\");\n/* harmony import */ var superagent_retry_delay__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! superagent-retry-delay */ \"./node_modules/superagent-retry-delay/src/index.js\");\n/* harmony import */ var superagent_retry_delay__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(superagent_retry_delay__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! https */ \"?aee4\");\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(https__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! fs */ \"?e583\");\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! path */ \"./node_modules/path/path.js\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! buffer */ \"?bdc3\");\n/* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(buffer__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _models_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./models/common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _models_common_v1_config_Flag__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./models/common/v1/config/Flag */ \"./target/generated-sources/swagger/src/models/common/v1/config/Flag.js\");\nvar _ApiClient;\nfunction _wrapRegExp() { _wrapRegExp = function _wrapRegExp(e, r) { return new BabelRegExp(e, void 0, r); }; var e = RegExp.prototype, r = new WeakMap(); function BabelRegExp(e, t, p) { var o = RegExp(e, t); return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype); } function buildGroups(e, t) { var p = r.get(t); return Object.keys(p).reduce(function (r, t) { var o = p[t]; if (\"number\" == typeof o) r[t] = e[o];else { for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; r[t] = e[o[i]]; } return r; }, Object.create(null)); } return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { var t = e.exec.call(this, r); if (t) { t.groups = buildGroups(t, this); var p = t.indices; p && (p.groups = buildGroups(p, this)); } return t; }, BabelRegExp.prototype[Symbol.replace] = function (t, p) { if (\"string\" == typeof p) { var o = r.get(this); return e[Symbol.replace].call(this, t, p.replace(/\\$<([^>]+)(>|$)/g, function (e, r, t) { if (\"\" === t) return e; var p = o[r]; return Array.isArray(p) ? \"$\" + p.join(\"$\") : \"number\" == typeof p ? \"$\" + p : \"\"; })); } if (\"function\" == typeof p) { var i = this; return e[Symbol.replace].call(this, t, function () { var e = arguments; return \"object\" != _typeof(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); }); } return e[Symbol.replace].call(this, t, p); }, _wrapRegExp.apply(this, arguments); }\nfunction _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\nfunction _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t[\"return\"] || t[\"return\"](); } finally { if (u) throw o; } } }; }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }\nfunction _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\nsuperagent_retry_delay__WEBPACK_IMPORTED_MODULE_2___default()((superagent__WEBPACK_IMPORTED_MODULE_0___default()));\n\n\n\n\n\n\n\n/**\n* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an\n* application to use this class directly - the *Api and model classes provide the public API for the service. The\n* contents of this file should be regarded as internal but are documented for completeness.\n* @module ApiClient\n* @version 4.0.1\n*/\nvar _protocol = /*#__PURE__*/new WeakMap();\nvar _cookie = /*#__PURE__*/new WeakMap();\nvar _logger = /*#__PURE__*/new WeakMap();\nvar _verifySslFlag = /*#__PURE__*/new WeakMap();\nvar _defaultConnectTimeout = /*#__PURE__*/new WeakMap();\nvar _defaultReadTimeout = /*#__PURE__*/new WeakMap();\nvar _defaultMaxTimeout = /*#__PURE__*/new WeakMap();\nvar _LOG_LEVEL = /*#__PURE__*/new WeakMap();\nvar _ApiClient_brand = /*#__PURE__*/new WeakSet();\nvar ApiClient = /*#__PURE__*/function () {\n /**\n * @alias module:ApiClient\n * @class\n */\n function ApiClient() {\n _classCallCheck(this, ApiClient);\n /*\n * Checks whether the given content type represents JSON.<br>\n * JSON content type examples:<br>\n * <ul>\n * <li>application/json</li>\n * <li>application/json; charset=UTF8</li>\n * <li>APPLICATION/JSON</li>\n * </ul>\n * @param {String} contentType The MIME content type to check.\n * @returns {Boolean} <code>true</code> if <code>contentType</code> represents JSON, otherwise <code>false</code>.\n */\n _classPrivateMethodInitSpec(this, _ApiClient_brand);\n // PRIVATE VARIABLES\n _classPrivateFieldInitSpec(this, _protocol, void 0);\n _classPrivateFieldInitSpec(this, _cookie, void 0);\n _classPrivateFieldInitSpec(this, _logger, void 0);\n _classPrivateFieldInitSpec(this, _verifySslFlag, void 0);\n _classPrivateFieldInitSpec(this, _defaultConnectTimeout, void 0);\n _classPrivateFieldInitSpec(this, _defaultReadTimeout, void 0);\n _classPrivateFieldInitSpec(this, _defaultMaxTimeout, void 0);\n _classPrivateFieldInitSpec(this, _LOG_LEVEL, void 0);\n _classPrivateFieldSet(_LOG_LEVEL, this, Object.freeze({\n DEBUG: {\n key: \"DEBUG\",\n value: Symbol(0)\n },\n INFO: {\n key: \"INFO\",\n value: Symbol(1)\n },\n WARN: {\n key: \"WARN\",\n value: Symbol(2)\n },\n ERROR: {\n key: \"ERROR\",\n value: Symbol(3)\n }\n }));\n\n /**\n * URI scheme for connecting to the cluster (HTTP or HTTPS using SSL/TLS)\n * @type {String}\n * @default https\n */\n this.scheme = 'https';\n\n /**\n * The hostname of the URL against which to resolve every API call's (relative) path.\n * @type {String}\n * @default localhost\n */\n this.host = typeof self === 'undefined' ? 'localhost' : self.location.hostname;\n\n /**\n * The port of the base URL.\n * @type {String}\n * @default 9440\n */\n this.port = typeof self === 'undefined' ? '9440' : self.location.port;\n\n /**\n * The authentication methods to be included for all API calls.\n * @type {Array.<String>}\n */\n this.authentications = {\n 'apiKeyAuthScheme': {\n type: 'apiKey',\n 'in': 'header',\n name: 'X-ntnx-api-key'\n },\n 'basicAuthScheme': {\n type: 'basic'\n }\n };\n\n /**\n * The default HTTP headers to be included for all API calls.\n * @type {Array.<String>}\n * @default {}\n */\n this.defaultHeaders = {};\n _classPrivateFieldSet(_defaultConnectTimeout, this, 30000);\n _classPrivateFieldSet(_defaultReadTimeout, this, 30000);\n _classPrivateFieldSet(_defaultMaxTimeout, this, 10800000);\n\n /**\n * The default HTTP read timeout in milliseconds for all API calls.\n * @type {Number}\n * @default 30000\n */\n this.readTimeout = _classPrivateFieldGet(_defaultReadTimeout, this);\n\n /**\n * The default HTTP connection timeout in milliseconds for all API calls.\n * @type {Number}\n * @default 30000\n */\n this.connectTimeout = _classPrivateFieldGet(_defaultConnectTimeout, this);\n\n /**\n * If set to false an additional timestamp parameter is added to all API GET calls to\n * prevent browser caching\n * @type {Boolean}\n * @default true\n */\n this.cache = true;\n\n /**\n * Saved Cookies\n * @default null\n */\n _classPrivateFieldSet(_cookie, this, null);\n\n /**\n * The maximum number of redirects to be followed for all API calls.\n * @type {Number}\n * @default 1\n */\n this.maxRedirects = 1;\n\n /**\n * The maximum number of retry attempts to be made by the client\n * in case of server error.\n * @type {Number}\n * @default 5\n */\n this.maxRetryAttempts = 5;\n\n /**\n * The delay period (in milliseconds) between two consecutive retry attempts\n * @type {Number}\n * @default 3000\n */\n this.retryInterval = 3000;\n if (typeof self === 'undefined') {\n this.agent = new (superagent__WEBPACK_IMPORTED_MODULE_0___default().agent)();\n }\n\n /**\n * Allow user to override superagent agent\n */\n this.requestAgent = null;\n\n /**\n * Allow SDK to print debug logs\n */\n this.debug = false;\n _classPrivateFieldSet(_logger, this, null);\n\n /**\n * Username for basic auth\n */\n this.username = null;\n\n /**\n * Password for basic auth\n */\n this.password = null;\n _classPrivateFieldSet(_verifySslFlag, this, true);\n\n /*\n * Non Browser Environment : path to directory where downloaded files will be stored\n * Browser Environment : WritableStream to pipe downloaded file to\n */\n this.downloadDestination = null;\n\n /*\n * Log file to write activity logs\n */\n this.loggerFile = null;\n }\n\n /**\n * Enable/Disable SSL Verification\n * @param verifySsl (boolean)\n */\n return _createClass(ApiClient, [{\n key: \"verifySsl\",\n get: function get() {\n return _classPrivateFieldGet(_verifySslFlag, this);\n }\n\n /**\n * Configure log file to write activity logs\n * @param logfile The destination file (write stream / string)\n */,\n set: function set(verifySsl) {\n if (verifySsl) {\n this.requestAgent = null;\n } else {\n this.requestAgent = new (https__WEBPACK_IMPORTED_MODULE_3___default().Agent)({\n rejectUnauthorized: false\n });\n }\n _classPrivateFieldSet(_verifySslFlag, this, verifySsl);\n }\n }, {\n key: \"loggerFile\",\n set: function set(logfile) {\n if (logfile !== null && typeof logfile !== 'undefined') {\n if (typeof logfile === 'string' || logfile instanceof String) {\n logfile = fs__WEBPACK_IMPORTED_MODULE_4___default().createWriteStream(logfile, {\n flags: 'a'\n });\n }\n _classPrivateFieldSet(_logger, this, new console.Console({\n stdout: logfile,\n stderr: logfile\n }));\n }\n }\n\n /**\n * Adds key value pair to default headers map, (to be added to every API call request)\n * @param {String} key The key\n * @param {String} value The corresponding value\n */\n }, {\n key: \"addDefaultHeader\",\n value: function addDefaultHeader(key, value) {\n if (key === \"Authorization\") {\n _classPrivateFieldSet(_cookie, this, null);\n }\n this.defaultHeaders[key] = value;\n }\n\n /*\n * Returns a string representation for an actual parameter.\n * @param param The actual parameter.\n * @returns {String} The string representation of <code>param</code>.\n */\n }, {\n key: \"paramToString\",\n value: function paramToString(param) {\n if (param == undefined || param == null) {\n return '';\n }\n if (param instanceof Date) {\n return param.toJSON();\n }\n return param.toString();\n }\n }, {\n key: \"buildUrl\",\n value: function buildUrl(path, pathParams) {\n var _this = this;\n if (!path.match(/^\\//)) {\n path = '/' + path;\n }\n\n // The protocol of the base URL, including the colon (:).\n _classPrivateFieldSet(_protocol, this, typeof self === 'undefined' ? this.scheme + ':' : self.location.protocol);\n var basePath = ''; //default\n if (_classPrivateFieldGet(_protocol, this) !== '' && this.host !== '' && this.port !== '') {\n basePath = _classPrivateFieldGet(_protocol, this) + '\\/\\/' + this.host + ':' + this.port;\n } else if (typeof self !== \"undefined\") {\n basePath = self.origin;\n }\n var url = basePath + path;\n url = url.replace(/\\{([\\w-]+)\\}/g, function (fullMatch, key) {\n var value;\n if (pathParams.hasOwnProperty(key)) {\n value = _this.paramToString(pathParams[key]);\n } else {\n value = fullMatch;\n }\n return encodeURIComponent(value);\n });\n return url;\n }\n }, {\n key: \"buildCollectionParam\",\n value:\n /*\n * Builds a string representation of an array-type actual parameter, according to the given collection format.\n * @param {Array} param An array parameter.\n * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy.\n * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns\n * <code>param</code> as is if <code>collectionFormat</code> is <code>multi</code>.\n */\n function buildCollectionParam(param, collectionFormat) {\n if (param == null) {\n return null;\n }\n switch (collectionFormat) {\n case 'csv':\n return param.map(this.paramToString).join(',');\n case 'ssv':\n return param.map(this.paramToString).join(' ');\n case 'tsv':\n return param.map(this.paramToString).join('\\t');\n case 'pipes':\n return param.map(this.paramToString).join('|');\n case 'multi':\n //return the array directly as SuperAgent will handle it as expected\n return param.map(this.paramToString);\n default:\n throw new Error('Unknown collection format: ' + collectionFormat);\n }\n }\n\n /*\n * Sets API key for authentication\n *\n * @param {String} key The API key for authentication\n */\n }, {\n key: \"setApiKey\",\n value: function setApiKey(key) {\n if (key == undefined || typeof key === 'string' || key instanceof String) {\n this.authentications['apiKeyAuthScheme']['apiKey'] = key;\n } else {\n this.authentications['apiKeyAuthScheme']['apiKey'] = undefined;\n }\n }\n\n /*\n * Applies authentication headers to the request.\n * @param {Object} request The request object created by a <code>superagent()</code> call.\n * @param {Array.<String>} authNames An array of authentication method names.\n */\n }, {\n key: \"addEtagToReservedMap\",\n value: function addEtagToReservedMap(response, data) {\n if (response.hasOwnProperty(\"headers\") && response.headers.hasOwnProperty(\"etag\")) {\n var etagRef = response.headers.etag;\n if (data.getData() !== undefined) {\n if (Array.isArray(data.getData()) && data.getData().length > 0) {\n var _iterator = _createForOfIteratorHelper(data.getData()),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var item = _step.value;\n if (item.hasOwnProperty(\"$reserved\") && item.get$Reserved() !== undefined) {\n item.get$Reserved()[\"ETag\"] = etagRef;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n } else if (data.getData().hasOwnProperty(\"$reserved\") && data.getData().get$Reserved() !== undefined) {\n data.getData().get$Reserved()[\"ETag\"] = etagRef;\n }\n }\n }\n return data;\n }\n\n /**\n * Get ETag from an object if exists.\n * The ETag is usually provided in the response of the GET API calls,\n * which can further be used in other HTTP operations.\n *\n * @param object Object from which ETag needs to be retrieved\n * @returns {(String|null)} returns ETag header in the object if it's an API response object, otherwise null\n */\n }, {\n key: \"callApi\",\n value:\n /**\n * Invokes the REST service using the supplied settings and parameters.\n * @param {String} path The base URL to invoke.\n * @param {String} httpMethod The HTTP method to use.\n * @param {Object.<String, String>} pathParams A map of path parameters and their values.\n * @param {Object.<String, Object>} queryParams A map of query parameters and their values.\n * @param {Object.<String, Object>} headerParams A map of header parameters and their values.\n * @param {Object.<String, Object>} formParams A map of form parameters and their values.\n * @param {Object} bodyParam The value to pass as the request body.\n * @param {Array.<String>} authNames An array of authentication type names.\n * @param {Array.<String>} contentTypes An array of request MIME types.\n * @param {Array.<String>} accepts An array of acceptable response MIME types.\n * @param {(String|Array|Object|Function)} returnType The required type to return; can be a string for simple types or the\n * constructor for a complex type.\n * @returns {Promise} A {@link https://www.promisejs.org/|Promise} object.\n */\n function callApi(path, httpMethod, pathParams, queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, returnType) {\n var _this2 = this;\n var url = this.buildUrl(path, pathParams);\n var request = superagent__WEBPACK_IMPORTED_MODULE_0___default()(httpMethod, url);\n\n // override request callback to retry only required status codes\n request.oldCallback = request.callback;\n request.callback = function (err, res) {\n if (res && res.status) {\n var status = res.status;\n if (status >= 400 && !(status === 401 || status === 408 || status === 429 || status === 503 || status === 504)) {\n this._maxRetries = 0;\n }\n if (res.status === 401) {\n this.unset(\"Cookie\");\n this._maxRetries = 1;\n }\n if (status === 429) {\n var retryAfter = res.headers['retry-after'];\n if (retryAfter) {\n var delay = parseInt(retryAfter, 10) * 1000;\n this._retryDelays[this._retries] = delay;\n }\n }\n }\n this.oldCallback(err, res);\n };\n\n // apply authentications\n _assertClassBrand(_ApiClient_brand, this, _applyAuthToRequest).call(this, request, authNames);\n\n // set query parameters\n if (httpMethod.toUpperCase() === 'GET' && this.cache === false) {\n queryParams['_'] = new Date().getTime();\n }\n request.query(_assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, queryParams));\n\n // set header parameters\n request.set(this.defaultHeaders).set(_assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, headerParams));\n if ((this.defaultHeaders['NTNX-Request-Id'] === null || this.defaultHeaders['NTNX-Request-Id'] === undefined) && (headerParams['NTNX-Request-Id'] === null || headerParams['NTNX-Request-Id'] === undefined)) {\n var requestId = (0,uuid__WEBPACK_IMPORTED_MODULE_9__[\"default\"])();\n request.set(_assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, {\n 'NTNX-Request-Id': requestId\n }));\n }\n\n // Set User-Agent header only if it is not a browser environment\n var isBrowser = typeof window !== \"undefined\" && typeof window.document !== \"undefined\";\n if (!isBrowser) {\n this.downloadDestination = '.';\n request.set(_assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, {\n 'User-Agent': 'Nutanix-objects-js-client/4.0.1'\n }));\n }\n\n // set requestAgent if it is set by user\n if (this.requestAgent) {\n request.agent(this.requestAgent);\n }\n\n // set request timeouts\n var timeoutOptions = {};\n timeoutOptions[\"response\"] = _assertClassBrand(_ApiClient_brand, this, _getValidTimeout).call(this, this.connectTimeout, _classPrivateFieldGet(_defaultConnectTimeout, this));\n timeoutOptions[\"deadline\"] = _assertClassBrand(_ApiClient_brand, this, _getValidTimeout).call(this, this.readTimeout, _classPrivateFieldGet(_defaultReadTimeout, this));\n request.timeout(timeoutOptions);\n var contentType = headerParams.hasOwnProperty(\"Content-Type\") ? headerParams[\"Content-Type\"] : _assertClassBrand(_ApiClient_brand, this, _jsonPreferredMime).call(this, contentTypes);\n if (contentType) {\n // Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746)\n if (contentType != 'multipart/form-data') {\n request.type(contentType);\n }\n } else if (!request.header['Content-Type']) {\n request.type('application/json');\n }\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).INFO, null, \"Request URL :\", httpMethod, url);\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, _assertClassBrand(_ApiClient_brand, this, _flatten), \"Request Headers :\", typeof request.header === \"undefined\" ? \"\" : request.header);\n if (contentType === 'application/x-www-form-urlencoded') {\n request.send(_assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, formParams));\n } else if (contentType == 'multipart/form-data') {\n var _formParams = _assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, formParams);\n for (var key in _formParams) {\n if (_formParams.hasOwnProperty(key)) {\n if (_assertClassBrand(_ApiClient_brand, this, _isFileParam).call(this, _formParams[key])) {\n // file field\n request.attach(key, _formParams[key]);\n } else {\n request.field(key, _formParams[key]);\n }\n }\n }\n } else if (contentType === 'application/octet-stream' && bodyParam !== null && typeof bodyParam !== 'undefined' && typeof bodyParam.pipe === 'function') {\n // FILE UPLOAD SUPPORT\n\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).INFO, null, \"Piping octet-stream request\");\n if (typeof bodyParam.pipe === 'function') {\n bodyParam.pipe(request);\n } else if (true) {\n var webstream;\n try {\n webstream = __webpack_require__(/*! stream/web */ \"?fdee\");\n } catch (err) {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).ERROR, null, \"Error fetching steam/web\");\n }\n if (bodyParam instanceof webstream.ReadableStream) {\n bodyParam.pipeTo(new webstream.WritableStream({\n write: function write(chunk) {\n request.write(chunk);\n },\n close: function close() {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).INFO, null, \"READABLE STREAM CLOSED\");\n },\n abort: function abort(err) {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).ERROR, null, \"READABLE STREAM ABORTED\");\n }\n }));\n } else {\n request.send(bodyParam);\n }\n } else {}\n return new Promise(function (resolve, reject) {\n request.on('error', function (err) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).DEBUG, null, \"Caught the following error :\", err);\n reject(err);\n }).on('response', function (response) {\n _assertClassBrand(_ApiClient_brand, _this2, _handleApiResponseForPromise).call(_this2, response, path, queryParams, returnType, resolve, reject);\n });\n });\n } else if (bodyParam) {\n request.send(bodyParam);\n }\n if (typeof returnType === 'Blob') {\n request.responseType('blob');\n } else if (returnType === 'String') {\n request.responseType('string');\n }\n _assertClassBrand(_ApiClient_brand, this, _attachCookies).call(this, request);\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, null, \"Request Body :\", typeof request._data === \"undefined\" ? \"\" : request._data);\n var accept = headerParams.hasOwnProperty(\"Accept\") && headerParams[\"Accept\"] != undefined ? headerParams[\"Accept\"] : accepts.join(', ');\n var binaryMediaTypes = ['application/octet-stream', 'application/pdf', 'application/zip'];\n if (accept) {\n request.accept(accept);\n }\n return new Promise(function (resolve, reject) {\n request.buffer(false).redirects(0).retry(_this2.maxRetryAttempts, _this2.retryInterval, []).on('error', function (err) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).DEBUG, null, \"Caught the following error :\", err);\n }).end(function (error, response) {\n if (error) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).DEBUG, null, \"Caught error during the request!\");\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, error);\n if (error.response !== null && typeof error.response !== 'undefined') {\n error.data = _assertClassBrand(_ApiClient_brand, _this2, _deserialize).call(_this2, error.response, returnType);\n } else {\n error.data = _assertClassBrand(_ApiClient_brand, _this2, _wrapErrorInResponse).call(_this2, error);\n }\n reject(error);\n } else {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).INFO, null, \"Response Status :\", response.status);\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).DEBUG, _assertClassBrand(_ApiClient_brand, _this2, _flatten), \"Response Headers :\", response.headers);\n var _contentType = '';\n if (response.headers.hasOwnProperty('content-type')) {\n _contentType = response.headers[\"content-type\"];\n }\n var fetchStream = binaryMediaTypes.some(function (binaryMediaType) {\n return _contentType.includes(binaryMediaType);\n });\n if (fetchStream) {\n /*\n * Browser environment :\n * uses Web Streams, downloadDestination expected to be a WritableStream (i.e. sink for response to be streamed to)\n * Node.js environment :\n * uses File System, downloadDestination expected to be a directory path, file is downloaded to this directory\n */\n if (isBrowser) {\n /*\n * Browser environment :\n * - fetch webstream module\n * - write file to WritableStream downloadDestination\n * - if webstream if not available or downloadDestination is not instance of WritableStream\n * code flow goes to main request.then execution\n */\n if (true) {\n var _webstream;\n try {\n _webstream = __webpack_require__(/*! stream/web */ \"?fdee\");\n } catch (err) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, \"Error fetching steam/web\");\n }\n if (_this2.downloadDestination instanceof _webstream.WritableStream) {\n // Piping Data\n var writer = _this2.downloadDestination.getWriter();\n try {\n response.on('data', function (chunk) {\n writer.write(chunk);\n });\n } catch (err) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, \"Issue while downloading file\", err);\n }\n response.on('end', function () {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).INFO, null, \"Finished streaming response\");\n writer.close();\n var data = _assertClassBrand(_ApiClient_brand, _this2, _deserialize).call(_this2, response, returnType);\n resolve({\n data: data,\n response: response\n });\n }).on('error', function (err) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, \"Caught the following error :\", err);\n err.data = _assertClassBrand(_ApiClient_brand, _this2, _wrapErrorInResponse).call(_this2, err);\n reject(err);\n });\n } else {\n var errMsg = \"Incompatible downloadDestination for Browser Environment, must be WritableStream\";\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).ERROR, null, errMsg);\n reject(errMsg);\n }\n }\n } else {\n /*\n * Non Browser environment :\n * - stream data to file\n * - fetch response headers and body (if exists)\n * - return in case of error or after stream finish\n *\n * NOTE :\n * superagent does not provide access to headers before pipe, therefore response is piped to\n * file with temporary name, which is renamed to proper filename after Content-Disposition header is available\n */\n\n var tempFilename = _this2.downloadDestination + '/downloaded_file_' + Date.now() + '.txt'; // temporary filename\n var stream = fs__WEBPACK_IMPORTED_MODULE_4___default().createWriteStream(tempFilename);\n _assertClassBrand(_ApiClient_brand, _this2, _processDownloadedFile).call(_this2, response, stream, tempFilename, resolve, reject, returnType);\n }\n } else if (response.status == 302) {\n /*\n * Handling 302 Redirects\n * - Reads X-Redirect-Token header from response and writes into Cookie header for redirected request\n */\n var _tempFilename = _this2.downloadDestination + '/downloaded_file_' + Date.now() + '.txt'; // temporary filename\n var context = _this2;\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).INFO, null, \"Redirecting to :\", response.headers.location);\n var redirectRequest = superagent__WEBPACK_IMPORTED_MODULE_0___default()(httpMethod, response.headers.location);\n redirectRequest.set(request.header);\n if (response.headers.hasOwnProperty(\"x-redirect-token\")) {\n _assertClassBrand(_ApiClient_brand, _this2, _log).call(_this2, _classPrivateFieldGet(_LOG_LEVEL, _this2).INFO, null, \"Writing X-Redirect-Token into Cookie\");\n redirectRequest.set(\"Cookie\", response.headers[\"x-redirect-token\"]);\n }\n redirectRequest.redirects(0);\n redirectRequest.buffer(false);\n var redirectedStream = fs__WEBPACK_IMPORTED_MODULE_4___default().createWriteStream(_tempFilename);\n redirectRequest.pipe(redirectedStream);\n redirectRequest.on('response', function (redirectResponse) {\n _assertClassBrand(_ApiClient_brand, context, _log).call(context, _classPrivateFieldGet(_LOG_LEVEL, context).INFO, null, \"Received response after redirection :\", redirectResponse.status);\n _assertClassBrand(_ApiClient_brand, context, _processDownloadedFile).call(context, redirectResponse, redirectedStream, _tempFilename, resolve, reject, returnType);\n });\n } else {\n _assertClassBrand(_ApiClient_brand, _this2, _handleApiResponseForPromise).call(_this2, response, path, queryParams, returnType, resolve, reject);\n }\n }\n });\n });\n }\n }], [{\n key: \"getEtag\",\n value: function getEtag(object) {\n var etag = null;\n if (object !== undefined) {\n if (object.hasOwnProperty('$reserved') && object.get$Reserved() !== undefined) {\n etag = this.getValueForCaseInsensitiveKeyMatch(object.get$Reserved(), 'ETag');\n }\n if (etag == null && object.hasOwnProperty(\"data\") && object.getData().hasOwnProperty('$reserved') && object.getData().get$Reserved() !== undefined) {\n etag = this.getValueForCaseInsensitiveKeyMatch(object.getData().get$Reserved(), 'ETag');\n }\n }\n return etag;\n }\n }, {\n key: \"getValueForCaseInsensitiveKeyMatch\",\n value: function getValueForCaseInsensitiveKeyMatch(object, key) {\n if (object && key) {\n var searchKey = key.toLowerCase();\n var matchedKey = Object.keys(object).find(function (key) {\n return key.toLowerCase() === searchKey;\n });\n return matchedKey ? object[matchedKey] : null;\n }\n return null;\n }\n\n // Gets a valid timeout\n // 1. Sets to provided default timeout in case invalid value is passed\n // 2. Sets to default max value of 30 minutes in case a value of more than 30 minutes is passed\n }, {\n key: \"addEtagReferenceToHeader\",\n value: function addEtagReferenceToHeader(bodyParam, headerParams) {\n // set If-Match header from postBody $reserved map\n if (typeof bodyParam !== 'undefined' && bodyParam !== null) {\n if (bodyParam.hasOwnProperty('$reserved') && bodyParam.$reserved.hasOwnProperty('ETag')) {\n var eTagReference = bodyParam.$reserved['ETag'];\n if (typeof eTagReference !== 'undefined' && eTagReference !== null && eTagReference !== \"\") {\n headerParams['If-Match'] = eTagReference;\n }\n }\n }\n }\n\n /*\n * Parses an ISO-8601 string representation of a date value.\n * @param {String} str The date value as a string.\n * @returns {Date} The parsed date object.\n */\n }, {\n key: \"parseDate\",\n value: function parseDate(str) {\n return new Date(str);\n }\n\n /*\n * Parses queryParams and path to find a given query param value\n * @param {String} path The path given to callApi method\n * @param {Object.<String, Object>} queryParams The queryParams given to callApi method\n * @param {String} param Parameter name to look for\n * @param {String} defaultValue The default value for the missing param if not present\n * @returns {String} The value of given parameter\n */\n }, {\n key: \"parseQueryParam\",\n value: function parseQueryParam(path, queryParams, param, defaultValue) {\n var value = null;\n if (typeof queryParams !== 'undefined' && queryParams.hasOwnProperty(param)) {\n value = queryParams[param];\n }\n if (value === null && (typeof path === 'string' || path instanceof String)) {\n var escapedParam = param.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n var regexResult = path.match(new RegExp(\"\".concat(escapedParam, \"=([0-9]+)\")));\n if (regexResult) {\n value = regexResult[1];\n }\n }\n if (value === null) {\n value = defaultValue;\n }\n return value;\n }\n\n /**\n * Converts a value to the specified type.\n * @param {(String|Object)} data The data to convert, as a string or object.\n * @param {(String|Array.<String>|Object.<String, Object>|Function)} type The type to return. Pass a string for simple types\n * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To\n * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:\n * all properties on <code>data<code> will be converted to this type.\n * @returns An instance of the specified type or null or undefined if data is null or undefined.\n */\n }, {\n key: \"convertToType\",\n value: function convertToType(data, type) {\n if (data === null || data === undefined) return data;\n switch (type) {\n case 'Boolean':\n return Boolean(data);\n case 'Integer':\n return parseInt(data, 10);\n case 'Number':\n return parseFloat(data);\n case 'String':\n return String(data);\n case 'Date':\n return ApiClient.parseDate(String(data));\n case 'Blob':\n return data;\n default:\n if (type === Object) {\n // generic object, return directly\n return data;\n } else if (typeof type === 'function') {\n // for model type like: User\n return type.constructFromObject(data);\n } else if (Array.isArray(type)) {\n // for array type like: ['String']\n var itemType = type[0];\n return data.map(function (item) {\n return ApiClient.convertToType(item, itemType);\n });\n } else if (_typeof(type) === 'object') {\n // for plain object type like: {'String': 'Integer'}\n var keyType, valueType;\n for (var k in type) {\n if (type.hasOwnProperty(k)) {\n keyType = k;\n valueType = type[k];\n break;\n }\n }\n var result = {};\n for (var k in data) {\n if (data.hasOwnProperty(k)) {\n var key = ApiClient.convertToType(k, keyType);\n var value = ApiClient.convertToType(data[k], valueType);\n result[key] = value;\n }\n }\n return result;\n } else {\n // for unknown type, return the data directly\n return data;\n }\n }\n }\n\n /**\n * Constructs a new map or array model from REST data.\n * @param data {Object|Array} The REST data.\n * @param obj {Object|Array} The target object or array.\n */\n }, {\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj, itemType) {\n if (Array.isArray(data)) {\n for (var i = 0; i < data.length; i++) {\n if (data.hasOwnProperty(i)) obj[i] = ApiClient.convertToType(data[i], itemType);\n }\n } else {\n for (var k in data) {\n if (data.hasOwnProperty(k)) obj[k] = ApiClient.convertToType(data[k], itemType);\n }\n }\n }\n }]);\n}();\n\n/**\n* The default API client implementation.\n* @type {ApiClient}\n* @memberOf ApiClient\n*/\n_ApiClient = ApiClient;\nfunction _isJsonMime(contentType) {\n return Boolean(contentType != null && contentType.match(/^application\\/json(;.*)?$/i));\n}\n/*\n* Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.\n* @param {Array.<String>} contentTypes\n* @returns {String} The chosen content type, preferring JSON.\n*/\nfunction _jsonPreferredMime(contentTypes) {\n for (var i = 0; i < contentTypes.length; i++) {\n if (_assertClassBrand(_ApiClient_brand, this, _isJsonMime).call(this, contentTypes[i])) {\n return contentTypes[i];\n }\n }\n return contentTypes[0];\n}\n/*\n* Checks whether the given parameter value represents file-like content.\n* @param param The parameter to check.\n* @returns {Boolean} <code>true</code> if <code>param</code> represents a file.\n*/\nfunction _isFileParam(param) {\n // fs.ReadStream in Node.js and Electron (but not in runtime like browserify)\n if (true) {\n var _fs;\n try {\n _fs = __webpack_require__(/*! fs */ \"?e583\");\n } catch (err) {}\n if (_fs && _fs.ReadStream && param instanceof _fs.ReadStream) {\n return true;\n }\n }\n\n // Buffer in Node.js\n if (typeof Buffer === 'function' && param instanceof Buffer) {\n return true;\n }\n\n // Blob in browser\n if (typeof buffer__WEBPACK_IMPORTED_MODULE_6__.Blob === 'function' && param instanceof buffer__WEBPACK_IMPORTED_MODULE_6__.Blob) {\n return true;\n }\n\n // File in browser (it seems File object is also instance of Blob, but keep this for safe)\n if (typeof File === 'function' && param instanceof File) {\n return true;\n }\n return false;\n}\n/*\n* Normalizes parameter values:\n* <ul>\n* <li>remove nils</li>\n* <li>keep files and arrays</li>\n* <li>format to string with `paramToString` for other cases</li>\n* </ul>\n* @param {Object.<String, Object>} params The parameters as object properties.\n* @returns {Object.<String, Object>} normalized parameters.\n*/\nfunction _normalizeParams(params) {\n var newParams = {};\n for (var key in params) {\n if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) {\n var value = params[key];\n if (_assertClassBrand(_ApiClient_brand, this, _isFileParam).call(this, value) || Array.isArray(value)) {\n newParams[key] = value;\n } else {\n newParams[key] = this.paramToString(value);\n }\n }\n }\n return newParams;\n}\nfunction _applyAuthToRequest(request, authNames) {\n var _this3 = this;\n authNames.forEach(function (authName) {\n var auth = _this3.authentications[authName];\n switch (auth.type) {\n case 'basic':\n if (auth.username || auth.password) {\n request.auth(auth.username || '', auth.password || '');\n } else if (_this3.username || _this3.password) {\n request.auth(_this3.username || '', _this3.password || '');\n }\n _assertClassBrand(_ApiClient_brand, _this3, _log).call(_this3, _classPrivateFieldGet(_LOG_LEVEL, _this3).DEBUG, null, \"Basic Auth applied to request\");\n break;\n case 'apiKey':\n if (auth.apiKey) {\n var data = {};\n if (auth.apiKeyPrefix) {\n data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey;\n } else {\n data[auth.name] = auth.apiKey;\n }\n if (auth['in'] === 'header') {\n request.set(data);\n } else {\n request.query(data);\n }\n }\n _assertClassBrand(_ApiClient_brand, _this3, _log).call(_this3, _classPrivateFieldGet(_LOG_LEVEL, _this3).DEBUG, null, \"apiKey applied to request\");\n break;\n case 'oauth2':\n if (auth.accessToken) {\n request.set({\n 'Authorization': 'Bearer ' + auth.accessToken\n });\n }\n _assertClassBrand(_ApiClient_brand, _this3, _log).call(_this3, _classPrivateFieldGet(_LOG_LEVEL, _this3).DEBUG, null, \"oauth2 applied to request\");\n break;\n default:\n _assertClassBrand(_ApiClient_brand, _this3, _log).call(_this3, _classPrivateFieldGet(_LOG_LEVEL, _this3).ERROR, null, \"Unknown authentication type:\", auth.type);\n throw new Error('Unknown authentication type: ' + auth.type);\n }\n });\n}\n/**\n* Wraps errors in generic response format.\n* @param {Object} error object encountered during request.\n* @returns an error object with wrapped response within error.data .\n*/\nfunction _wrapErrorInResponse(error) {\n var response = {\n data: {},\n metadata: {}\n };\n response.data.status = error.status;\n response.data.message = error.message;\n}\n/**\n* Deserializes an HTTP response body into a value of the specified type.\n* @param {Object} response A SuperAgent response object.\n* @param {(String|Array.<String>|Object.<String, Object>|Function)} returnType The type to return. Pass a string for simple types\n* or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To\n* return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:\n* all properties on <code>data<code> will be converted to this type.\n* @returns A value of the specified type.\n*/\nfunction _deserialize(response, returnType) {\n if (response == null || returnType == null || response.status == 204) {\n return null;\n }\n\n // Handle text response\n if (response.headers && ['text/event-stream', 'text/html', 'text/xml', 'text/csv', 'text/javascript', 'text/markdown', 'text/vcard'].includes(response.headers['content-type'])) {\n var data = new returnType();\n data.data = new buffer__WEBPACK_IMPORTED_MODULE_6__.Blob([response.text], {\n type: response.headers['content-type']\n });\n var flag = new _models_common_v1_config_Flag__WEBPACK_IMPORTED_MODULE_8__[\"default\"]();\n flag.name = \"hasError\";\n flag.value = false;\n var flags = [flag];\n var metadata = new _models_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_7__[\"default\"]();\n metadata.flags = flags;\n data.metadata = metadata;\n return data;\n }\n\n // Rely on SuperAgent for parsing response body.\n // See http://visionmedia.github.io/superagent/#parsing-response-bodies\n var data = response.body;\n if (data == null || _typeof(data) === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length) {\n // SuperAgent does not always produce a body; use the unparsed response as a fallback\n data = response.text;\n }\n return _ApiClient.convertToType(data, returnType);\n}\n/**\n* Set pagination data if response is a Paginable object\n* @param {Object} data The response data already passed through deserialize\n* @param {String} path The path given to callApi method\n* @param {Object.<String, Object>} queryParams The queryParams given to callApi method\n*/\nfunction _paginateIfNeeded(data, path, queryParams) {\n // If response is not a Paginable instance, nothing to do\n if (!(data instanceof _Paginable__WEBPACK_IMPORTED_MODULE_1__[\"default\"])) {\n return;\n }\n // Retrieve current page number, defaults to 0\n var page = parseInt(this.constructor.parseQueryParam(path, queryParams, '$page', \"0\"), 10);\n // Retrieve current limit (results per page) number, defaults to 50\n var resultsPerPage = parseInt(this.constructor.parseQueryParam(path, queryParams, '$limit', \"50\"), 10);\n\n // Populate pagination data\n data.populatePaginationMetadata(this,\n // current ApiClient instance\n page, resultsPerPage);\n}\nfunction _getValidTimeout(timeout, defaultTimeout) {\n if (timeout <= 0) {\n timeout = defaultTimeout;\n } else if (timeout > _classPrivateFieldGet(_defaultMaxTimeout, this)) {\n timeout = _classPrivateFieldGet(_defaultMaxTimeout, this);\n }\n return timeout;\n}\n// If enabled, update cookie information to reuse in subsequent requests for a valid response\nfunction _updateCookies(response) {\n if (response.hasOwnProperty(\"headers\") && response.headers.hasOwnProperty(\"set-cookie\")) {\n var finalCookie = \"\";\n var cookieList = response.headers[\"set-cookie\"];\n if (cookieList.length > 0) {\n // add all cookies separated by ;\n var _iterator2 = _createForOfIteratorHelper(cookieList),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var cookieItem = _step2.value;\n cookieItem = cookieItem.split(\";\")[0];\n if (cookieItem.includes(\"=\")) {\n cookieItem.trim();\n finalCookie = finalCookie.concat(cookieItem).concat(\";\");\n }\n }\n // remove trailing ;\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n if (finalCookie !== \"\") {\n finalCookie = finalCookie.substr(0, finalCookie.length - 1);\n }\n }\n _classPrivateFieldSet(_cookie, this, finalCookie);\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, null, \"Retained cookie :\", finalCookie);\n } else {\n _classPrivateFieldSet(_cookie, this, null);\n }\n}\n// If enabled, attach saved cookies to request\nfunction _attachCookies(request) {\n if (_classPrivateFieldGet(_cookie, this) != null) {\n request.set(_assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, {\n 'Cookie': _classPrivateFieldGet(_cookie, this)\n }));\n }\n}\nfunction _log(level, mapper) {\n for (var _len = arguments.length, messages = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n messages[_key - 2] = arguments[_key];\n }\n // Set default log level to INFO\n if (_typeof(level) !== \"object\" || !(\"key\" in level) || !(\"value\" in level) || _typeof(level[\"value\"]) !== \"symbol\") {\n level = _classPrivateFieldGet(_LOG_LEVEL, this).INFO;\n }\n if (!_assertClassBrand(_ApiClient_brand, this, _skipLogging).call(this, level)) {\n // Preprocess message to prefix with timestamp and log level\n messages = messages.map(function (message) {\n return typeof message === \"string\" ? message : mapper ? mapper(message) : JSON.stringify(message);\n });\n var message = messages.join(' ');\n message = _assertClassBrand(_ApiClient_brand, this, _getLocalDateTime).call(this) + ' ' + level.key + ' - ' + message;\n if (typeof _classPrivateFieldGet(_logger, this) !== \"undefined\" && _classPrivateFieldGet(_logger, this) !== null && typeof _classPrivateFieldGet(_logger, this).log === 'function') {\n _classPrivateFieldGet(_logger, this).log(message);\n } else {\n console.log(message);\n }\n }\n}\nfunction _skipLogging(level) {\n // Skip logging if log level is DEBUG but debug is not enabled.\n return !this.debug && level === _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG;\n}\nfunction _getLocalDateTime() {\n // Current epoch UTC time in milliseconds\n var epochTime = Date.now();\n\n // \"getTimezoneOffset\" returns the difference, in minutes, between a date as evaluated in the UTC time zone,\n // and the same date as evaluated in the local time zone.\n // if you are in timezone UTC-1, outputs 60\n // if you are in timezone UTC+3, outputs -180\n var timezoneOffsetInMinutes = new Date().getTimezoneOffset();\n var timezoneOffsetInMilliseconds = timezoneOffsetInMinutes * 60 * 1000;\n\n // Create a new date with adjusted epoch time based on timezone offset\n var date = new Date(epochTime - timezoneOffsetInMilliseconds);\n return date.toISOString().slice(0, 23);\n}\n// A mapper function to flatten a simple non-nested (key:value) object to string\nfunction _flatten(obj) {\n if (_typeof(obj) !== \"object\") {\n return obj;\n }\n var output = '\\n';\n if (obj) {\n Object.keys(obj).forEach(function (e) {\n output += e + '=[' + obj[e] + ']\\n';\n });\n }\n return output === '\\n' ? obj : output;\n}\n// handle and deserialize received response\nfunction _handleApiResponseForPromise(response, path, queryParams, returnType, resolve, reject) {\n try {\n var data = _assertClassBrand(_ApiClient_brand, this, _deserialize).call(this, response, returnType);\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).INFO, null, \"Response Status :\", response.status);\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, _assertClassBrand(_ApiClient_brand, this, _flatten), \"Response Headers :\", response.headers);\n _assertClassBrand(_ApiClient_brand, this, _updateCookies).call(this, response || {});\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, null, \"Response Body :\", data);\n if (response.status == 204 && data == null) {\n resolve({\n data: data,\n response: response\n });\n } else if (response.ok && data != null) {\n this.addEtagToReservedMap(response, data);\n _assertClassBrand(_ApiClient_brand, this, _paginateIfNeeded).call(this, data, path, queryParams);\n resolve({\n data: data,\n response: response\n });\n } else {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).ERROR, null, data);\n reject(_objectSpread(_objectSpread({}, response.error), {}, {\n data: data\n }));\n }\n } catch (err) {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, null, \"Caught error while processing response!\");\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).ERROR, null, err);\n err.data = _assertClassBrand(_ApiClient_brand, this, _wrapErrorInResponse).call(this, err);\n reject(err);\n }\n}\nfunction _processDownloadedFile(response, stream, tempFilename, resolve, reject, returnType) {\n var _this4 = this;\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).INFO, null, \"Streaming response to : \", tempFilename);\n try {\n response.on('data', function (chunk) {\n stream.write(chunk);\n });\n } catch (err) {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).ERROR, null, \"Issue while downloading file\", err);\n }\n var data = new returnType();\n // Fetch filename\n var filename = \"\";\n if (typeof response.headers['content-disposition'] !== 'undefined' && response.headers['content-disposition'] !== null) {\n var match = response.headers['content-disposition'].match(/*#__PURE__*/_wrapRegExp(/.*filename=\"(.*)\".*/, {\n filename: 1\n }));\n var filepath = path__WEBPACK_IMPORTED_MODULE_5___default().parse(match.groups['filename']);\n filename = this.downloadDestination + '/' + filepath.name + '_' + Date.now() + filepath.ext;\n data.data = {\n \"path\": path__WEBPACK_IMPORTED_MODULE_5___default().parse(filename),\n $objectType: \"Path\"\n };\n var flag = new _models_common_v1_config_Flag__WEBPACK_IMPORTED_MODULE_8__[\"default\"]();\n flag.name = \"hasError\";\n flag.value = false;\n var flags = [flag];\n var metadata = new _models_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_7__[\"default\"]();\n metadata.flags = flags;\n data.metadata = metadata;\n }\n response.on('end', function () {\n _assertClassBrand(_ApiClient_brand, _this4, _log).call(_this4, _classPrivateFieldGet(_LOG_LEVEL, _this4).INFO, null, \"Finished streaming response\");\n if (filename.length !== 0) {\n _assertClassBrand(_ApiClient_brand, _this4, _log).call(_this4, _classPrivateFieldGet(_LOG_LEVEL, _this4).INFO, null, \"Content-Disposition header found [\", filename, \"] is final filename\");\n stream.close();\n fs__WEBPACK_IMPORTED_MODULE_4___default().renameSync(tempFilename, filename);\n resolve({\n data: data,\n response: response\n });\n } else {\n _assertClassBrand(_ApiClient_brand, _this4, _log).call(_this4, _classPrivateFieldGet(_LOG_LEVEL, _this4).ERROR, null, \"Content-Disposition header not found [\", tempFilename, \"] is final filename\");\n resolve({\n data: data,\n response: response\n });\n }\n });\n response.on('error', function (err) {\n _assertClassBrand(_ApiClient_brand, _this4, _log).call(_this4, _classPrivateFieldGet(_LOG_LEVEL, _this4).ERROR, null, \"Caught the following error :\", err);\n error.data = _assertClassBrand(_ApiClient_brand, _this4, _wrapErrorInResponse).call(_this4, error);\n reject(err);\n });\n}\nApiClient.instance = new ApiClient();\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/ApiClient.js?");
222
222
 
223
223
  /***/ }),
224
224
 
@@ -229,7 +229,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
229
229
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
230
230
 
231
231
  "use strict";
232
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Paginable)\n/* harmony export */ });\n/* harmony import */ var _ApiClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ApiClient */ \"./target/generated-sources/swagger/src/ApiClient.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it[\"return\"] != null) it[\"return\"](); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n/**\n* A model that represents a paginable response from a list endpoint.\n* @module Paginable\n* @version 4.0.1-alpha-2\n*/\nvar Paginable = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>Paginable</code>.\n * @alias module:Paginable\n * @class\n */\n function Paginable() {\n _classCallCheck(this, Paginable);\n }\n\n /**\n * Constructs a <code>Paginable</code> from a plain Javascript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} metadata The plain Javascript object bearing properties of interest.\n * @param {module:Paginable} obj Optional instance to populate.\n * @return {module:Paginable} The populated <code>Paginable</code> instance.\n */\n return _createClass(Paginable, [{\n key: \"getFirstPage\",\n value:\n /**\n * Get the first page of the set, if any\n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable\n * or rejects with error message if any issue (link not available, ...)\n */\n function getFirstPage() {\n if (this.isFirstPage()) {\n return Promise.reject('Cannot navigate to first page : already on first page');\n }\n if (this.linkFirst === null) {\n return Promise.reject('No link to first page provided in previous API response');\n }\n return this._getLink(this.linkFirst);\n }\n\n /**\n * Get the previous page of the set, if any\n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable\n * or rejects with error message if any issue (link not available, ...)\n */\n }, {\n key: \"getPrevPage\",\n value: function getPrevPage() {\n if (this.isFirstPage()) {\n return Promise.reject('Cannot navigate to previous page : already on first page');\n }\n if (this.linkPrev === null) {\n return Promise.reject('No link to previous page provided in previous API response');\n }\n return this._getLink(this.linkPrev);\n }\n\n /**\n * Get the next page of the set, if any\n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable\n * or rejects with error message if any issue (link not available, ...)\n */\n }, {\n key: \"getNextPage\",\n value: function getNextPage() {\n if (this.isLastPage()) {\n return Promise.reject('Cannot navigate to next page : already on last page');\n }\n if (this.linkNext === null) {\n return Promise.reject('No link to next page provided in previous API response');\n }\n return this._getLink(this.linkNext);\n }\n\n /**\n * Get the last page of the set, if any\n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable\n * or rejects with error message if any issue (link not available, ...)\n */\n }, {\n key: \"getLastPage\",\n value: function getLastPage() {\n if (this.isLastPage()) {\n return Promise.reject('Cannot navigate to last page : already on last page');\n }\n if (this.linkLast === null) {\n return Promise.reject('No link to last page provided in previous API response');\n }\n return this._getLink(this.linkLast);\n }\n\n /**\n * Get the current page number\n * @return {Number} the current page number, starts at 0\n */\n }, {\n key: \"currentPage\",\n value: function currentPage() {\n if (this.page === null) {\n return 0;\n }\n return this.page;\n }\n\n /**\n * Get the total number of pages\n * @return {Number} the total number of pages available\n */\n }, {\n key: \"countPages\",\n value: function countPages() {\n if (this.resultsPerPage === null || this.resultsTotal === null || this.resultsPerPage === 0) {\n return 1;\n }\n return Math.ceil(this.resultsTotal / this.resultsPerPage);\n }\n\n /**\n * Check if current page is first page\n * @return {Boolean} True if current page is 0, false otherwise\n */\n }, {\n key: \"isFirstPage\",\n value: function isFirstPage() {\n return this.currentPage() === 0;\n }\n\n /**\n * Check if current page is last page\n * @return {Boolean} True if current page is countPages()-1, false otherwise\n */\n }, {\n key: \"isLastPage\",\n value: function isLastPage() {\n return this.currentPage() === this.countPages() - 1;\n }\n }, {\n key: \"populatePaginationMetadata\",\n value: function populatePaginationMetadata(apiClient, page, resultsPerPage) {\n this.apiClient = apiClient;\n this.page = page;\n this.resultsPerPage = resultsPerPage;\n }\n }, {\n key: \"_getLink\",\n value: function _getLink(path) {\n // If no ApiClient defined, instantiate default one\n if (this.apiClient === null) {\n this.apiClient = _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.instance;\n }\n var postBody = {};\n var pathParams = {};\n var queryParams = {};\n var headerParams = {};\n var formParams = {};\n var authNames = [];\n var contentTypes = [];\n var accepts = ['application/json'];\n var returnType = this.constructor;\n return this.apiClient.callApi(path, 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(metadata, obj) {\n if (metadata) {\n obj = obj || new Paginable();\n if (metadata.hasOwnProperty('links') && metadata['links'] !== null && metadata['links'] !== undefined) {\n var _iterator = _createForOfIteratorHelper(metadata['links']),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var link = _step.value;\n if (link.hasOwnProperty('rel') && link.hasOwnProperty('href')) {\n switch (link['rel']) {\n case 'first':\n obj.linkFirst = link['href'];\n break;\n case 'prev':\n obj.linkPrev = link['href'];\n break;\n case 'next':\n obj.linkNext = link['href'];\n break;\n case 'last':\n obj.linkLast = link['href'];\n break;\n default:\n break;\n }\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n if (metadata.hasOwnProperty('totalAvailableResults')) {\n obj.resultsTotal = metadata['totalAvailableResults'];\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n* The link to first page, if any\n* @type {String}\n* @memberOf Paginable\n*/\n\nPaginable.prototype.linkFirst = null;\n\n/**\n* The link to previous page, if any\n* @type {String}\n* @memberOf Paginable\n*/\nPaginable.prototype.linkPrev = null;\n\n/**\n* The link to next page, if any\n* @type {String}\n* @memberOf Paginable\n*/\nPaginable.prototype.linkNext = null;\n\n/**\n* The link to last page, if any\n* @type {String}\n* @memberOf Paginable\n*/\nPaginable.prototype.linkLast = null;\n\n/**\n* The ApiClient instance to use for further query\n* @type {ApiClient}\n* @memberOf Paginable\n*/\nPaginable.prototype.apiClient = null;\n\n/**\n* Current page number\n* @type {Number}\n* @memberOf Paginable\n*/\nPaginable.prototype.page = null;\n\n/**\n* Number of results per page\n* @type {Number}\n* @memberOf Paginable\n*/\nPaginable.prototype.resultsPerPage = null;\n\n/**\n* Number of total results available\n* @type {Number}\n* @memberOf Paginable\n*/\nPaginable.prototype.resultsTotal = null;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/Paginable.js?");
232
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Paginable)\n/* harmony export */ });\n/* harmony import */ var _ApiClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ApiClient */ \"./target/generated-sources/swagger/src/ApiClient.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && \"number\" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } 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 o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t[\"return\"] || t[\"return\"](); } finally { if (u) throw o; } } }; }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n/**\n* A model that represents a paginable response from a list endpoint.\n* @module Paginable\n* @version 4.0.1\n*/\nvar Paginable = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>Paginable</code>.\n * @alias module:Paginable\n * @class\n */\n function Paginable() {\n _classCallCheck(this, Paginable);\n }\n\n /**\n * Constructs a <code>Paginable</code> from a plain Javascript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} metadata The plain Javascript object bearing properties of interest.\n * @param {module:Paginable} obj Optional instance to populate.\n * @return {module:Paginable} The populated <code>Paginable</code> instance.\n */\n return _createClass(Paginable, [{\n key: \"getFirstPage\",\n value:\n /**\n * Get the first page of the set, if any\n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable\n * or rejects with error message if any issue (link not available, ...)\n */\n function getFirstPage() {\n if (this.isFirstPage()) {\n return Promise.reject('Cannot navigate to first page : already on first page');\n }\n if (this.linkFirst === null) {\n return Promise.reject('No link to first page provided in previous API response');\n }\n return this._getLink(this.linkFirst);\n }\n\n /**\n * Get the previous page of the set, if any\n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable\n * or rejects with error message if any issue (link not available, ...)\n */\n }, {\n key: \"getPrevPage\",\n value: function getPrevPage() {\n if (this.isFirstPage()) {\n return Promise.reject('Cannot navigate to previous page : already on first page');\n }\n if (this.linkPrev === null) {\n return Promise.reject('No link to previous page provided in previous API response');\n }\n return this._getLink(this.linkPrev);\n }\n\n /**\n * Get the next page of the set, if any\n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable\n * or rejects with error message if any issue (link not available, ...)\n */\n }, {\n key: \"getNextPage\",\n value: function getNextPage() {\n if (this.isLastPage()) {\n return Promise.reject('Cannot navigate to next page : already on last page');\n }\n if (this.linkNext === null) {\n return Promise.reject('No link to next page provided in previous API response');\n }\n return this._getLink(this.linkNext);\n }\n\n /**\n * Get the last page of the set, if any\n * @return {Promise} a {@link https://www.promisejs.org/|Promise}, resolves with another Paginable\n * or rejects with error message if any issue (link not available, ...)\n */\n }, {\n key: \"getLastPage\",\n value: function getLastPage() {\n if (this.isLastPage()) {\n return Promise.reject('Cannot navigate to last page : already on last page');\n }\n if (this.linkLast === null) {\n return Promise.reject('No link to last page provided in previous API response');\n }\n return this._getLink(this.linkLast);\n }\n\n /**\n * Get the current page number\n * @return {Number} the current page number, starts at 0\n */\n }, {\n key: \"currentPage\",\n value: function currentPage() {\n if (this.page === null) {\n return 0;\n }\n return this.page;\n }\n\n /**\n * Get the total number of pages\n * @return {Number} the total number of pages available\n */\n }, {\n key: \"countPages\",\n value: function countPages() {\n if (this.resultsPerPage === null || this.resultsTotal === null || this.resultsPerPage === 0) {\n return 1;\n }\n return Math.ceil(this.resultsTotal / this.resultsPerPage);\n }\n\n /**\n * Check if current page is first page\n * @return {Boolean} True if current page is 0, false otherwise\n */\n }, {\n key: \"isFirstPage\",\n value: function isFirstPage() {\n return this.currentPage() === 0;\n }\n\n /**\n * Check if current page is last page\n * @return {Boolean} True if current page is countPages()-1, false otherwise\n */\n }, {\n key: \"isLastPage\",\n value: function isLastPage() {\n return this.currentPage() === this.countPages() - 1;\n }\n }, {\n key: \"populatePaginationMetadata\",\n value: function populatePaginationMetadata(apiClient, page, resultsPerPage) {\n this.apiClient = apiClient;\n this.page = page;\n this.resultsPerPage = resultsPerPage;\n }\n }, {\n key: \"_getLink\",\n value: function _getLink(path) {\n // If no ApiClient defined, instantiate default one\n if (this.apiClient === null) {\n this.apiClient = _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.instance;\n }\n var postBody = {};\n var pathParams = {};\n var queryParams = {};\n var headerParams = {};\n var formParams = {};\n var authNames = [];\n var contentTypes = [];\n var accepts = ['application/json'];\n var returnType = this.constructor;\n return this.apiClient.callApi(path, 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(metadata, obj) {\n if (metadata) {\n obj = obj || new Paginable();\n if (metadata.hasOwnProperty('links') && metadata['links'] !== null && metadata['links'] !== undefined) {\n var _iterator = _createForOfIteratorHelper(metadata['links']),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var link = _step.value;\n if (link.hasOwnProperty('rel') && link.hasOwnProperty('href')) {\n switch (link['rel']) {\n case 'first':\n obj.linkFirst = link['href'];\n break;\n case 'prev':\n obj.linkPrev = link['href'];\n break;\n case 'next':\n obj.linkNext = link['href'];\n break;\n case 'last':\n obj.linkLast = link['href'];\n break;\n default:\n break;\n }\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n if (metadata.hasOwnProperty('totalAvailableResults')) {\n obj.resultsTotal = metadata['totalAvailableResults'];\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n* The link to first page, if any\n* @type {String}\n* @memberOf Paginable\n*/\n\nPaginable.prototype.linkFirst = null;\n\n/**\n* The link to previous page, if any\n* @type {String}\n* @memberOf Paginable\n*/\nPaginable.prototype.linkPrev = null;\n\n/**\n* The link to next page, if any\n* @type {String}\n* @memberOf Paginable\n*/\nPaginable.prototype.linkNext = null;\n\n/**\n* The link to last page, if any\n* @type {String}\n* @memberOf Paginable\n*/\nPaginable.prototype.linkLast = null;\n\n/**\n* The ApiClient instance to use for further query\n* @type {ApiClient}\n* @memberOf Paginable\n*/\nPaginable.prototype.apiClient = null;\n\n/**\n* Current page number\n* @type {Number}\n* @memberOf Paginable\n*/\nPaginable.prototype.page = null;\n\n/**\n* Number of results per page\n* @type {Number}\n* @memberOf Paginable\n*/\nPaginable.prototype.resultsPerPage = null;\n\n/**\n* Number of total results available\n* @type {Number}\n* @memberOf Paginable\n*/\nPaginable.prototype.resultsTotal = null;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/Paginable.js?");
233
233
 
234
234
  /***/ }),
235
235
 
@@ -240,7 +240,18 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
240
240
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
241
241
 
242
242
  "use strict";
243
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ObjectStoresApi: () => (/* binding */ ObjectStoresApi)\n/* harmony export */ });\n/* harmony import */ var _ApiClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ApiClient */ \"./target/generated-sources/swagger/src/ApiClient.js\");\n/* harmony import */ var _models_objects_v4_operations_Objectstore__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/objects/v4/operations/Objectstore */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/Objectstore.js\");\n/* harmony import */ var _models_common_v1_response_ApiLink__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/common/v1/response/ApiLink */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js\");\n/* harmony import */ var _models_objects_v4_operations_TaskReferenceApiResponse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../models/objects/v4/operations/TaskReferenceApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/TaskReferenceApiResponse.js\");\n/* harmony import */ var _models_common_v1_config_FQDN__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../models/common/v1/config/FQDN */ \"./target/generated-sources/swagger/src/models/common/v1/config/FQDN.js\");\n/* harmony import */ var _models_common_v1_config_Metadata__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../models/common/v1/config/Metadata */ \"./target/generated-sources/swagger/src/models/common/v1/config/Metadata.js\");\n/* harmony import */ var _models_objects_v4_operations_CertificateApiResponse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../models/objects/v4/operations/CertificateApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/CertificateApiResponse.js\");\n/* harmony import */ var _models_objects_v4_operations_ObjectstoreListApiResponse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../models/objects/v4/operations/ObjectstoreListApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/ObjectstoreListApiResponse.js\");\n/* harmony import */ var _models_objects_v4_operations_CertificateListApiResponse__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../models/objects/v4/operations/CertificateListApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/CertificateListApiResponse.js\");\n/* harmony import */ var _models_objects_v4_operations_ObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../models/objects/v4/operations/ObjectstoreApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/ObjectstoreApiResponse.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }\nfunction _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n\n\n\n/**\n * ObjectStores service.\n * @version 4.0.1-alpha-2\n * @class ObjectStoresApi\n */\nvar _headersToSkip = /*#__PURE__*/new WeakMap();\nvar ObjectStoresApi = /*#__PURE__*/function () {\n /**\n * Constructs a new ObjectStoresApi. \n * @alias module:api/ObjectStoresApi\n * @class\n * @param {module:ApiClient} [apiClient] Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n function ObjectStoresApi(apiClient) {\n _classCallCheck(this, ObjectStoresApi);\n _classPrivateFieldInitSpec(this, _headersToSkip, void 0);\n this.apiClient = apiClient || _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.instance;\n _classPrivateFieldSet(_headersToSkip, this, new Set());\n _classPrivateFieldGet(_headersToSkip, this).add('authorization');\n _classPrivateFieldGet(_headersToSkip, this).add('cookie');\n _classPrivateFieldGet(_headersToSkip, this).add('host');\n _classPrivateFieldGet(_headersToSkip, this).add('user-agent');\n }\n\n /**\n * Create a SSL certificate for an Object store\n * This operation creates a new default certificate and keys. It also creates the alternate FQDNs for the Object store. The certificate of an Object store can be created when it is in a OBJECT_STORE_AVAILABLE or OBJECT_STORE_CREATE_CERT_ERROR state. If the publicCert, privateKey, and ca values are provided in the request body, these values are used to create the new certificate. If these values are not provided, they will be generated for the new certificate. Optionally, a list of additional alternate FQDNs can be provided. \n * @param { String } objectStoreExtId The UUID of the Object store.\n * @param {Object} opts Optional parameters defined for the operation\n * @param { String } opts.publicCert \n * @param { String } opts.privateKey \n * @param { common.v1.config.Metadata } opts.metadata \n * @param { Array } opts.alternateFqdns \n * @param { String } opts.tenantId \n * @param { Array } opts.links \n * @param { String } opts.extId \n * @param { String } opts.ca \n * @param {Object} args Additional Arguments\n * @return {Promise<TaskReferenceApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link TaskReferenceApiResponse } and HTTP response\n */\n return _createClass(ObjectStoresApi, [{\n key: \"createCertificate\",\n value: function createCertificate(objectStoreExtId, opts) {\n var _this = this;\n var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};\n opts = opts || {};\n var postBody = null;\n // verify the required parameter 'objectStoreExtId' is set\n if (typeof objectStoreExtId === 'undefined' || objectStoreExtId === null) {\n throw new Error(\"Missing the required parameter 'objectStoreExtId' when calling createCertificate\");\n }\n var pathParams = {\n 'objectStoreExtId': objectStoreExtId\n };\n var queryParams = {};\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({}, headersToInclude);\n var formParams = {\n 'publicCert': opts['publicCert'],\n 'privateKey': opts['privateKey'],\n 'metadata': opts['metadata'],\n 'alternateFqdns': this.apiClient.buildCollectionParam(opts['alternateFqdns'], 'multi'),\n 'tenantId': opts['tenantId'],\n 'links': this.apiClient.buildCollectionParam(opts['links'], 'multi'),\n 'extId': opts['extId'],\n 'ca': opts['ca']\n };\n var authNames = ['basicAuthScheme'];\n var contentTypes = ['multipart/form-data'];\n var accepts = ['application/json'];\n var returnType = _models_objects_v4_operations_TaskReferenceApiResponse__WEBPACK_IMPORTED_MODULE_3__[\"default\"];\n return this.apiClient.callApi('/api/objects/v4.0.a2/operations/object-stores/{objectStoreExtId}/certificates', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n\n /**\n * Create an Object store\n * Run the prechecks, create and start the deployment of an Object store on Prism Central.\n * @param { Required<Pick<Objectstore, 'name'>> & Partial<Objectstore> } body specification\n * @param {Object} args Additional Arguments\n * @return {Promise<TaskReferenceApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link TaskReferenceApiResponse } and HTTP response\n */\n }, {\n key: \"createObjectstore\",\n value: function createObjectstore(body) {\n var _this2 = this;\n var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};\n var postBody = null;\n if (body instanceof _models_objects_v4_operations_Objectstore__WEBPACK_IMPORTED_MODULE_1__[\"default\"] && typeof body.toJson === 'function') {\n postBody = body.toJson();\n } else {\n postBody = body;\n }\n // verify the required parameter 'body' is set\n if (typeof postBody === 'undefined' || postBody === null) {\n throw new Error(\"Invalid body when calling createObjectstore\");\n }\n var pathParams = {};\n var queryParams = {};\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({}, headersToInclude);\n var formParams = {};\n _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.addEtagReferenceToHeader(body, headerParams);\n var authNames = ['basicAuthScheme'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json'];\n var returnType = _models_objects_v4_operations_TaskReferenceApiResponse__WEBPACK_IMPORTED_MODULE_3__[\"default\"];\n return this.apiClient.callApi('/api/objects/v4.0.a2/operations/object-stores', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n\n /**\n * Delete an Object store\n * Send a request to delete an Object store for the provided UUID and clean up its data. An Object store can only be deleted when it is in the state OBJECT_STORE_INPUT, OBJECT_STORE_DELETE_INPUT_ERROR, OBJECT_STORE_AVAILABLE, OBJECT_STORE_DEPLOYMENT_ERROR or OBJECT_STORE_DELETE_ERROR and does not contain any buckets. \n * @param { String } extId The UUID of the Object store.\n * @param {Object} args Additional Arguments\n * @return {Promise<TaskReferenceApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link TaskReferenceApiResponse } and HTTP response\n */\n }, {\n key: \"deleteObjectstore\",\n value: function deleteObjectstore(extId) {\n var _this3 = this;\n var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};\n var postBody = null;\n // verify the required parameter 'extId' is set\n if (typeof extId === 'undefined' || extId === null) {\n throw new Error(\"Missing the required parameter 'extId' when calling deleteObjectstore\");\n }\n var pathParams = {\n 'extId': extId\n };\n var queryParams = {};\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this3).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({}, headersToInclude);\n var formParams = {};\n var authNames = ['basicAuthScheme'];\n var contentTypes = [];\n var accepts = ['application/json'];\n var returnType = _models_objects_v4_operations_TaskReferenceApiResponse__WEBPACK_IMPORTED_MODULE_3__[\"default\"];\n return this.apiClient.callApi('/api/objects/v4.0.a2/operations/object-stores/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n\n /**\n * Get the details of an Object store certificate\n * Get the details of the SSL certificate which can be used to connect to an Object store.\n * @param { String } objectStoreExtId The UUID of the Object store.\n * @param { String } extId The UUID of the certificate of an Object store.\n * @param {Object} args Additional Arguments\n * @return {Promise<CertificateApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CertificateApiResponse } and HTTP response\n */\n }, {\n key: \"getCertificate\",\n value: function getCertificate(objectStoreExtId, extId) {\n var _this4 = this;\n var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};\n var postBody = null;\n // verify the required parameter 'objectStoreExtId' is set\n if (typeof objectStoreExtId === 'undefined' || objectStoreExtId === null) {\n throw new Error(\"Missing the required parameter 'objectStoreExtId' when calling getCertificate\");\n }\n // verify the required parameter 'extId' is set\n if (typeof extId === 'undefined' || extId === null) {\n throw new Error(\"Missing the required parameter 'extId' when calling getCertificate\");\n }\n var pathParams = {\n 'objectStoreExtId': objectStoreExtId,\n 'extId': extId\n };\n var queryParams = {};\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this4).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({}, headersToInclude);\n var formParams = {};\n var authNames = ['basicAuthScheme'];\n var contentTypes = [];\n var accepts = ['application/json'];\n var returnType = _models_objects_v4_operations_CertificateApiResponse__WEBPACK_IMPORTED_MODULE_6__[\"default\"];\n return this.apiClient.callApi('/api/objects/v4.0.a2/operations/object-stores/{objectStoreExtId}/certificates/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n\n /**\n * Get a list of the SSL certificates of an Object store\n * Get a list of the SSL certificates which can be used to access an Object store.\n * @param { String } objectStoreExtId The UUID of the Object store.\n * @param {Object} opts Optional parameters defined for the operation\n * @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.\n * @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.\n * @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>\n * For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>\n * The filter can be applied to the following fields:<br>\n * - ca\n * @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>\n * The orderby can be applied to the following fields:<br>\n * - ca\n * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.\n - alternateFqdns\n - ca\n - extId\n - links\n - metadata\n - privateKey\n - publicCert\n - tenantId\n * @param {Object} args Additional Arguments\n * @return {Promise<CertificateListApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CertificateListApiResponse } and HTTP response\n */\n }, {\n key: \"getCertificates\",\n value: function getCertificates(objectStoreExtId, opts) {\n var _this5 = this;\n var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};\n opts = opts || {};\n var postBody = null;\n // verify the required parameter 'objectStoreExtId' is set\n if (typeof objectStoreExtId === 'undefined' || objectStoreExtId === null) {\n throw new Error(\"Missing the required parameter 'objectStoreExtId' when calling getCertificates\");\n }\n var pathParams = {\n 'objectStoreExtId': objectStoreExtId\n };\n var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {\n '$page': opts['$page']\n } : {}), opts.hasOwnProperty('$limit') ? {\n '$limit': opts['$limit']\n } : {}), opts.hasOwnProperty('$filter') ? {\n '$filter': opts['$filter']\n } : {}), opts.hasOwnProperty('$orderby') ? {\n '$orderby': opts['$orderby']\n } : {}), opts.hasOwnProperty('$select') ? {\n '$select': opts['$select']\n } : {});\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this5).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({}, headersToInclude);\n var formParams = {};\n var authNames = ['basicAuthScheme'];\n var contentTypes = [];\n var accepts = ['application/json'];\n var returnType = _models_objects_v4_operations_CertificateListApiResponse__WEBPACK_IMPORTED_MODULE_8__[\"default\"];\n return this.apiClient.callApi('/api/objects/v4.0.a2/operations/object-stores/{objectStoreExtId}/certificates', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n\n /**\n * Get an Object store\n * Get an Object store for the provided UUID. &#x60;state&#x60; string (State of the Object store) Enum for the state of the Object store. | Enum | Description | | ----------- | ----------- | | &#x60;\\&quot;OBJECT_STORE_DEPLOYING\\&quot;&#x60; | The Object store will be in this state during an ongoing deployment of the Object store. The Object store will be unavailable through S3 APIs in this state. The Object store will move to the OBJECT_STORE_AVAILABLE state if the deployment succeeds, and to the OBJECT_STORE_DEPLOYMENT_ERROR state if the deployment fails. | | &#x60;\\&quot;OBJECT_STORE_OPERATION_ERROR\\&quot;&#x60; | The Object store is in this state when there is an error while performing an operation on the Object store. The Object store may not be available through S3 APIs in this state. | | &#x60;\\&quot;OBJECT_STORE_CREATE_CERT_ERROR\\&quot;&#x60; | An Object store enters this state if there is an error while creating the Object store certificate. Creating a new certificate can be retried from this state. The Object store may not be available through S3 APIs in this state. | | &#x60;\\&quot;OBJECT_STORE_OPERATION_PENDING\\&quot;&#x60; | The Object store is in this state during an ongoing operation on the Object store. The Object store may not be available through S3 APIs in this state. The Object store will enter the OBJECT_STORE_OPERATION_ERROR state if the operation fails, or the OBJECT_STORE_AVAILABLE state if the operation is successful. | | &#x60;\\&quot;OBJECT_STORE_INPUT\\&quot;&#x60; | The Object store is in this state if it has not been deployed. | | &#x60;\\&quot;OBJECT_STORE_CREATING_CERT\\&quot;&#x60; | The Object store is in this state during a certificate creation for the Object store. The Object store will be unavailable through S3 APIs in this state. It will move to the OBJECT_STORE_AVAILABLE state if the certificate was created successfully, or to the OBJECT_STORE_CREATE_CERT_ERROR state if an error occurs while creating the certificate. | | &#x60;\\&quot;OBJECT_STORE_AVAILABLE\\&quot;&#x60; | An Object store is in this state if its deployment was successful, and there are no ongoing operations on the Object store. The Object store will be available through S3 APIs in this state. In this state, the Object store can be deleted or a new certificate can be created for this Object store. | | &#x60;\\&quot;OBJECT_STORE_DELETE_INPUT_ERROR\\&quot;&#x60; | An undeployed Object store enters this state if there is an error deleting it. Deleting the Object store can be retried from this state. | | &#x60;\\&quot;OBJECT_STORE_DELETING_INPUT\\&quot;&#x60; | An undeployed Object store being deleted is in this state. It will be either deleted or move to the OBJECT_STORE_DELETE_INPUT_ERROR state if the deletion fails. | | &#x60;\\&quot;OBJECT_STORE_DELETE_ERROR\\&quot;&#x60; | An Object store enters this state if there is an error deleting the Object store. The Object store will not be available through S3 APIs in this state. Deleting the Object store can be retried from this state. | | &#x60;\\&quot;OBJECT_STORE_DEPLOYMENT_ERROR\\&quot;&#x60; | An Object store enters this state when its deployment fails. The Object store deployment can be retried or the Object store can be deleted from this state. | | &#x60;\\&quot;OBJECT_STORE_DELETING\\&quot;&#x60; | A deployed Object store is in this state when the Object store is being deleted. The Object store will be unavailable through S3 APIs in this state. It can be either deleted or move to the OBJECT_STORE_DELETE_ERROR state if the deletion fails. | \n * @param { String } extId The UUID of the Object store.\n * @param {Object} opts Optional parameters defined for the operation\n * @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported.\n - certificate\n * @param {Object} args Additional Arguments\n * @return {Promise<ObjectstoreApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ObjectstoreApiResponse } and HTTP response\n */\n }, {\n key: \"getObjectstore\",\n value: function getObjectstore(extId, opts) {\n var _this6 = this;\n var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};\n opts = opts || {};\n var postBody = null;\n // verify the required parameter 'extId' is set\n if (typeof extId === 'undefined' || extId === null) {\n throw new Error(\"Missing the required parameter 'extId' when calling getObjectstore\");\n }\n var pathParams = {\n 'extId': extId\n };\n var queryParams = _objectSpread({}, opts.hasOwnProperty('$expand') ? {\n '$expand': opts['$expand']\n } : {});\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this6).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({}, headersToInclude);\n var formParams = {};\n var authNames = ['basicAuthScheme'];\n var contentTypes = [];\n var accepts = ['application/json'];\n var returnType = _models_objects_v4_operations_ObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_9__[\"default\"];\n return this.apiClient.callApi('/api/objects/v4.0.a2/operations/object-stores/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n\n /**\n * Get a list of the Object stores\n * Get a list of all the Object store details on the registered Prism Central.\n * @param {Object} opts Optional parameters defined for the operation\n * @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.\n * @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.\n * @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>\n * For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>\n * The filter can be applied to the following fields:<br>\n * - certificateReference<br>\n * - clusterReference<br>\n * - creationTime<br>\n * - deploymentVersion<br>\n * - description<br>\n * - domain<br>\n * - lastUpdateTime<br>\n * - name<br>\n * - numWorkerNodes<br>\n * - publicNetworkReference<br>\n * - region<br>\n * - state<br>\n * - storageNetworkDnsIp/ipv4/value<br>\n * - storageNetworkDnsIp/ipv6/value<br>\n * - storageNetworkReference<br>\n * - storageNetworkVip/ipv4/value<br>\n * - storageNetworkVip/ipv6/value<br>\n * - totalCapacityGiB\n * @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>\n * The orderby can be applied to the following fields:<br>\n * - certificateReference<br>\n * - clusterReference<br>\n * - creationTime<br>\n * - deploymentVersion<br>\n * - description<br>\n * - domain<br>\n * - lastUpdateTime<br>\n * - name<br>\n * - numWorkerNodes<br>\n * - publicNetworkReference<br>\n * - region<br>\n * - state<br>\n * - storageNetworkDnsIp/ipv4/value<br>\n * - storageNetworkDnsIp/ipv6/value<br>\n * - storageNetworkReference<br>\n * - storageNetworkVip/ipv4/value<br>\n * - storageNetworkVip/ipv6/value<br>\n * - totalCapacityGiB\n * @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported.\n - certificate\n * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.\n - certificateReference\n - clusterReference\n - creationTime\n - deploymentVersion\n - description\n - domain\n - extId\n - lastUpdateTime\n - links\n - metadata\n - name\n - numWorkerNodes\n - publicNetworkIps\n - publicNetworkReference\n - region\n - state\n - storageNetworkDnsIp/ipv4/prefixLength\n - storageNetworkDnsIp/ipv4/value\n - storageNetworkDnsIp/ipv6/prefixLength\n - storageNetworkDnsIp/ipv6/value\n - storageNetworkReference\n - storageNetworkVip/ipv4/prefixLength\n - storageNetworkVip/ipv4/value\n - storageNetworkVip/ipv6/prefixLength\n - storageNetworkVip/ipv6/value\n - tenantId\n - totalCapacityGiB\n * @param {Object} args Additional Arguments\n * @return {Promise<ObjectstoreListApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ObjectstoreListApiResponse } and HTTP response\n */\n }, {\n key: \"getObjectstores\",\n value: function getObjectstores(opts) {\n var _this7 = this;\n var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};\n opts = opts || {};\n var postBody = null;\n var pathParams = {};\n var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {\n '$page': opts['$page']\n } : {}), opts.hasOwnProperty('$limit') ? {\n '$limit': opts['$limit']\n } : {}), opts.hasOwnProperty('$filter') ? {\n '$filter': opts['$filter']\n } : {}), opts.hasOwnProperty('$orderby') ? {\n '$orderby': opts['$orderby']\n } : {}), opts.hasOwnProperty('$expand') ? {\n '$expand': opts['$expand']\n } : {}), opts.hasOwnProperty('$select') ? {\n '$select': opts['$select']\n } : {});\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this7).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({}, headersToInclude);\n var formParams = {};\n var authNames = ['basicAuthScheme'];\n var contentTypes = [];\n var accepts = ['application/json'];\n var returnType = _models_objects_v4_operations_ObjectstoreListApiResponse__WEBPACK_IMPORTED_MODULE_7__[\"default\"];\n return this.apiClient.callApi('/api/objects/v4.0.a2/operations/object-stores', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n\n /**\n * Update an Object store\n * Update an Object store. The deployment of an Object store can be restarted from the state OBJECT_STORE_DEPLOYMENT_ERROR. \n * @param { Required<Pick<Objectstore, 'name'>> & Partial<Objectstore> } body specification\n * @param { String } extId The UUID of the Object store.\n * @param {Object} args Additional Arguments\n * @return {Promise<TaskReferenceApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link TaskReferenceApiResponse } and HTTP response\n */\n }, {\n key: \"updateObjectstore\",\n value: function updateObjectstore(extId, body) {\n var _this8 = this;\n var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};\n var postBody = null;\n if (body instanceof _models_objects_v4_operations_Objectstore__WEBPACK_IMPORTED_MODULE_1__[\"default\"] && typeof body.toJson === 'function') {\n postBody = body.toJson();\n } else {\n postBody = body;\n }\n // verify the required parameter 'extId' is set\n if (typeof extId === 'undefined' || extId === null) {\n throw new Error(\"Missing the required parameter 'extId' when calling updateObjectstore\");\n }\n // verify the required parameter 'body' is set\n if (typeof postBody === 'undefined' || postBody === null) {\n throw new Error(\"Invalid body when calling updateObjectstore\");\n }\n var pathParams = {\n 'extId': extId\n };\n var queryParams = {};\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this8).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({}, headersToInclude);\n var formParams = {};\n _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.addEtagReferenceToHeader(body, headerParams);\n var authNames = ['basicAuthScheme'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json'];\n var returnType = _models_objects_v4_operations_TaskReferenceApiResponse__WEBPACK_IMPORTED_MODULE_3__[\"default\"];\n return this.apiClient.callApi('/api/objects/v4.0.a2/operations/object-stores/{extId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n }], [{\n key: \"ApiClient\",\n get:\n /**\n * Make the default {@link ApiClient} class available for developers to be able to extend it and bring\n * their own fetch methods into the SDK\n */\n function get() {\n return _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient;\n }\n }]);\n}();\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/apis/objectstores-endpoints.js?");
243
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ObjectStoresApi: () => (/* binding */ ObjectStoresApi)\n/* harmony export */ });\n/* harmony import */ var _ApiClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ApiClient */ \"./target/generated-sources/swagger/src/ApiClient.js\");\n/* harmony import */ var _models_objects_v4_config_GetCertificateApiResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/objects/v4/config/GetCertificateApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/config/GetCertificateApiResponse.js\");\n/* harmony import */ var _models_objects_v4_config_ObjectStore__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/objects/v4/config/ObjectStore */ \"./target/generated-sources/swagger/src/models/objects/v4/config/ObjectStore.js\");\n/* harmony import */ var _models_objects_v4_config_CreateObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../models/objects/v4/config/CreateObjectstoreApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/config/CreateObjectstoreApiResponse.js\");\n/* harmony import */ var _models_objects_v4_config_ListCertificatesApiResponse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../models/objects/v4/config/ListCertificatesApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/config/ListCertificatesApiResponse.js\");\n/* harmony import */ var _models_objects_v4_config_DeleteObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../models/objects/v4/config/DeleteObjectstoreApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/config/DeleteObjectstoreApiResponse.js\");\n/* harmony import */ var _models_objects_v4_config_UpdateObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../models/objects/v4/config/UpdateObjectstoreApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/config/UpdateObjectstoreApiResponse.js\");\n/* harmony import */ var _models_objects_v4_config_GetObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../models/objects/v4/config/GetObjectstoreApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/config/GetObjectstoreApiResponse.js\");\n/* harmony import */ var _models_objects_v4_config_CreateCertificateApiResponse__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../models/objects/v4/config/CreateCertificateApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/config/CreateCertificateApiResponse.js\");\n/* harmony import */ var _models_objects_v4_config_GetCaApiResponse__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../models/objects/v4/config/GetCaApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/config/GetCaApiResponse.js\");\n/* harmony import */ var _models_objects_v4_config_ListObjectstoresApiResponse__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../models/objects/v4/config/ListObjectstoresApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/config/ListObjectstoresApiResponse.js\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! path */ \"./node_modules/path/path.js\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_11__);\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }\nfunction _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * ObjectStores service.\n * @version 4.0.1\n * @class ObjectStoresApi\n */\nvar _headersToSkip = /*#__PURE__*/new WeakMap();\nvar ObjectStoresApi = /*#__PURE__*/function () {\n /**\n * Constructs a new ObjectStoresApi. \n * @alias module:api/ObjectStoresApi\n * @class\n * @param {module:ApiClient} [apiClient] Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n function ObjectStoresApi(apiClient) {\n _classCallCheck(this, ObjectStoresApi);\n _classPrivateFieldInitSpec(this, _headersToSkip, void 0);\n this.apiClient = apiClient || _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.instance;\n _classPrivateFieldSet(_headersToSkip, this, new Set());\n _classPrivateFieldGet(_headersToSkip, this).add('authorization');\n _classPrivateFieldGet(_headersToSkip, this).add('cookie');\n _classPrivateFieldGet(_headersToSkip, this).add('host');\n _classPrivateFieldGet(_headersToSkip, this).add('user-agent');\n }\n\n /**\n * Create a SSL certificate for an Object store\n * This operation creates a new default certificate and keys. It also creates the alternate FQDNs and alternate IPs for the Object store. The certificate of an Object store can be created when it is in a OBJECT_STORE_AVAILABLE or OBJECT_STORE_CERT_CREATION_FAILED state. If the publicCert, privateKey, and ca values are provided in the request body, these values are used to create the new certificate. If these values are not provided, a new certificate will be generated if &#x27;shouldGenerate&#x27; is set to true and if it is set to false, the existing certificate will be used as the new certificate. Optionally, a list of additional alternate FQDNs and alternate IPs can be provided. These alternateFqdns and alternateIps must be included in the CA certificate if it has been provided. \n * @param { Partial<String | ReadableStream> } body Accepts file path as a string or a file stream\n * @param { String } objectStoreExtId The UUID of the Object store.\n * @param {Object} args Additional Arguments\n * @return {Promise<CreateCertificateApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateCertificateApiResponse } and HTTP response\n */\n return _createClass(ObjectStoresApi, [{\n key: \"createCertificate\",\n value: function createCertificate(objectStoreExtId, body) {\n var _this = this;\n var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};\n var postBody = null;\n var fs;\n try {\n fs = __webpack_require__(/*! fs */ \"?41da\");\n } catch (err) {}\n if (typeof body.pipe === 'function') {\n postBody = body;\n argMap[\"Content-Length\"] = fs.statSync(body.path).size;\n if (!argMap.hasOwnProperty(\"Content-Disposition\")) {\n argMap[\"Content-Disposition\"] = 'attachment; filename=\"' + path__WEBPACK_IMPORTED_MODULE_11___default().parse(body.path).base + '\"';\n }\n } else if (typeof body === 'string') {\n // body is a path string\n var _path;\n try {\n _path = __webpack_require__(/*! path */ \"./node_modules/path/path.js\");\n } catch (err) {\n throw new Error('Cannot find module \\'path\\'. Ensure you are using a Node.js environment. If not, use ReadableStream for body parameter.');\n }\n try {\n postBody = fs.createReadStream(body);\n argMap[\"Content-Length\"] = fs.statSync(body).size;\n if (!argMap.hasOwnProperty(\"Content-Disposition\")) {\n argMap[\"Content-Disposition\"] = 'attachment; filename=\"' + _path.basename(body) + '\"';\n }\n } catch (err) {\n throw new Error('Cannot read file: ' + body + '. Error: ' + err.message);\n }\n } else {\n postBody = body;\n }\n // verify the required parameter 'objectStoreExtId' is set\n if (typeof objectStoreExtId === 'undefined' || objectStoreExtId === null) {\n throw new Error(\"Missing the required parameter 'objectStoreExtId' when calling createCertificate\");\n }\n // verify the required parameter 'body' is set\n if (typeof postBody === 'undefined' || postBody === null) {\n throw new Error(\"Invalid body when calling createCertificate\");\n }\n var pathParams = {\n 'objectStoreExtId': objectStoreExtId\n };\n var queryParams = {};\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({}, headersToInclude);\n var formParams = {};\n _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.addEtagReferenceToHeader(body, headerParams);\n var authNames = ['basicAuthScheme'];\n var contentTypes = ['application/octet-stream'];\n var accepts = ['application/json'];\n var returnType = _models_objects_v4_config_CreateCertificateApiResponse__WEBPACK_IMPORTED_MODULE_8__[\"default\"];\n return this.apiClient.callApi('/api/objects/v4.0/config/object-stores/{objectStoreExtId}/certificates', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n\n /**\n * Create an Object store\n * Run the prechecks, create and start the deployment of an Object store on Prism Central.\n * @param { Required<Pick<ObjectStore, 'name'>> & Partial<ObjectStore> } body specification\n * @param {Object} args Additional Arguments\n * @return {Promise<CreateObjectstoreApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateObjectstoreApiResponse } and HTTP response\n */\n }, {\n key: \"createObjectstore\",\n value: function createObjectstore(body) {\n var _this2 = this;\n var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};\n var postBody = null;\n if (body instanceof _models_objects_v4_config_ObjectStore__WEBPACK_IMPORTED_MODULE_2__[\"default\"] && typeof body.toJson === 'function') {\n postBody = body.toJson();\n } else {\n postBody = body;\n }\n // verify the required parameter 'body' is set\n if (typeof postBody === 'undefined' || postBody === null) {\n throw new Error(\"Invalid body when calling createObjectstore\");\n }\n var pathParams = {};\n var queryParams = {};\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({}, headersToInclude);\n var formParams = {};\n _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.addEtagReferenceToHeader(body, headerParams);\n var authNames = ['basicAuthScheme'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json'];\n var returnType = _models_objects_v4_config_CreateObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_3__[\"default\"];\n return this.apiClient.callApi('/api/objects/v4.0/config/object-stores', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n\n /**\n * Delete an Object store\n * Send a request to delete an Object store for the provided UUID and clean up its data. An Object store can only be deleted when it is in the state UNDEPLOYED_OBJECT_STORE, OBJECT_STORE_AVAILABLE, OBJECT_STORE_DEPLOYMENT_FAILED or OBJECT_STORE_DELETION_FAILED and does not contain any buckets. \n * @param { String } extId The UUID of the Object store.\n * @param {Object} args Additional Arguments\n * @return {Promise<DeleteObjectstoreApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteObjectstoreApiResponse } and HTTP response\n */\n }, {\n key: \"deleteObjectstoreById\",\n value: function deleteObjectstoreById(extId) {\n var _this3 = this;\n var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};\n var postBody = null;\n // verify the required parameter 'extId' is set\n if (typeof extId === 'undefined' || extId === null) {\n throw new Error(\"Missing the required parameter 'extId' when calling deleteObjectstoreById\");\n }\n var pathParams = {\n 'extId': extId\n };\n var queryParams = {};\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this3).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({}, headersToInclude);\n var formParams = {};\n var authNames = ['basicAuthScheme'];\n var contentTypes = [];\n var accepts = ['application/json'];\n var returnType = _models_objects_v4_config_DeleteObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_5__[\"default\"];\n return this.apiClient.callApi('/api/objects/v4.0/config/object-stores/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n\n /**\n * Download the certificate authority\n * Download the certificate authority of an Object store certificate.\n * @param { String } objectStoreExtId The UUID of the Object store.\n * @param { String } certificateExtId The UUID of the certificate of an Object store.\n * @param {Object} args Additional Arguments\n * @return {Promise<GetCaApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetCaApiResponse } and HTTP response\n */\n }, {\n key: \"getCaByCertificateId\",\n value: function getCaByCertificateId(objectStoreExtId, certificateExtId) {\n var _this4 = this;\n var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};\n var postBody = null;\n // verify the required parameter 'objectStoreExtId' is set\n if (typeof objectStoreExtId === 'undefined' || objectStoreExtId === null) {\n throw new Error(\"Missing the required parameter 'objectStoreExtId' when calling getCaByCertificateId\");\n }\n // verify the required parameter 'certificateExtId' is set\n if (typeof certificateExtId === 'undefined' || certificateExtId === null) {\n throw new Error(\"Missing the required parameter 'certificateExtId' when calling getCaByCertificateId\");\n }\n var pathParams = {\n 'objectStoreExtId': objectStoreExtId,\n 'certificateExtId': certificateExtId\n };\n var queryParams = {};\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this4).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({}, headersToInclude);\n var formParams = {};\n var authNames = ['basicAuthScheme'];\n var contentTypes = [];\n var accepts = ['application/octet-stream', 'application/json'];\n var returnType = _models_objects_v4_config_GetCaApiResponse__WEBPACK_IMPORTED_MODULE_9__[\"default\"];\n return this.apiClient.callApi('/api/objects/v4.0/config/object-stores/{objectStoreExtId}/certificates/{certificateExtId}/certificate-authority', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n\n /**\n * Get the details of an Object store certificate\n * Get the details of the SSL certificate which can be used to connect to an Object store.\n * @param { String } objectStoreExtId The UUID of the Object store.\n * @param { String } extId The UUID of the certificate of an Object store.\n * @param {Object} args Additional Arguments\n * @return {Promise<GetCertificateApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetCertificateApiResponse } and HTTP response\n */\n }, {\n key: \"getCertificateById\",\n value: function getCertificateById(objectStoreExtId, extId) {\n var _this5 = this;\n var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};\n var postBody = null;\n // verify the required parameter 'objectStoreExtId' is set\n if (typeof objectStoreExtId === 'undefined' || objectStoreExtId === null) {\n throw new Error(\"Missing the required parameter 'objectStoreExtId' when calling getCertificateById\");\n }\n // verify the required parameter 'extId' is set\n if (typeof extId === 'undefined' || extId === null) {\n throw new Error(\"Missing the required parameter 'extId' when calling getCertificateById\");\n }\n var pathParams = {\n 'objectStoreExtId': objectStoreExtId,\n 'extId': extId\n };\n var queryParams = {};\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this5).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({}, headersToInclude);\n var formParams = {};\n var authNames = ['basicAuthScheme'];\n var contentTypes = [];\n var accepts = ['application/json'];\n var returnType = _models_objects_v4_config_GetCertificateApiResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n return this.apiClient.callApi('/api/objects/v4.0/config/object-stores/{objectStoreExtId}/certificates/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n\n /**\n * Get an Object store\n * Get an Object store for the provided UUID. &#x60;state&#x60; string (State of the Object store) Enum for the state of the Object store. | Enum | Description | | ----------- | ----------- | | &#x60;\\&quot;DEPLOYING_OBJECT_STORE\\&quot;&#x60; | The Object store will be in this state during an ongoing deployment of the Object store. The Object store will be unavailable through S3 APIs in this state. The Object store will move to the OBJECT_STORE_AVAILABLE state if the deployment succeeds, and to the OBJECT_STORE_DEPLOYMENT_FAILED state if the deployment fails. | | &#x60;\\&quot;OBJECT_STORE_OPERATION_FAILED\\&quot;&#x60; | The Object store is in this state when there is an error while performing an operation on the Object store. The Object store may not be available through S3 APIs in this state. | | &#x60;\\&quot;OBJECT_STORE_CERT_CREATION_FAILED\\&quot;&#x60; | An Object store enters this state if there is an error while creating the Object store certificate. Creating a new certificate can be retried from this state. The Object store may not be available through S3 APIs in this state. | | &#x60;\\&quot;OBJECT_STORE_OPERATION_PENDING\\&quot;&#x60; | The Object store is in this state during an ongoing operation on the Object store. The Object store may not be available through S3 APIs in this state. The Object store will enter the OBJECT_STORE_OPERATION_FAILED state if the operation fails, or the OBJECT_STORE_AVAILABLE state if the operation is successful. | | &#x60;\\&quot;UNDEPLOYED_OBJECT_STORE\\&quot;&#x60; | The Object store is in this state if it has not been deployed. | | &#x60;\\&quot;CREATING_OBJECT_STORE_CERT\\&quot;&#x60; | The Object store is in this state during a certificate creation for the Object store. The Object store will be unavailable through S3 APIs in this state. It will move to the OBJECT_STORE_AVAILABLE state if the certificate was created successfully, or to the OBJECT_STORE_CERT_CREATION_FAILED state if an error occurs while creating the certificate. | | &#x60;\\&quot;OBJECT_STORE_AVAILABLE\\&quot;&#x60; | An Object store is in this state if its deployment was successful, and there are no ongoing operations on the Object store. The Object store will be available through S3 APIs in this state. In this state, the Object store can be deleted or a new certificate can be created for this Object store. | | &#x60;\\&quot;OBJECT_STORE_DELETION_FAILED\\&quot;&#x60; | An Object store enters this state if there is an error deleting the Object store. The Object store will not be available through S3 APIs in this state. Deleting the Object store can be retried from this state. | | &#x60;\\&quot;OBJECT_STORE_DEPLOYMENT_FAILED\\&quot;&#x60; | An Object store enters this state when its deployment fails. The Object store deployment can be retried or the Object store can be deleted from this state. | | &#x60;\\&quot;DELETING_OBJECT_STORE\\&quot;&#x60; | A deployed Object store is in this state when the Object store is being deleted. The Object store will be unavailable through S3 APIs in this state. It can be either deleted or move to the OBJECT_STORE_DELETION_FAILED state if the deletion fails. | \n * @param { String } extId The UUID of the Object store.\n * @param {Object} args Additional Arguments\n * @return {Promise<GetObjectstoreApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetObjectstoreApiResponse } and HTTP response\n */\n }, {\n key: \"getObjectstoreById\",\n value: function getObjectstoreById(extId) {\n var _this6 = this;\n var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};\n var postBody = null;\n // verify the required parameter 'extId' is set\n if (typeof extId === 'undefined' || extId === null) {\n throw new Error(\"Missing the required parameter 'extId' when calling getObjectstoreById\");\n }\n var pathParams = {\n 'extId': extId\n };\n var queryParams = {};\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this6).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({}, headersToInclude);\n var formParams = {};\n var authNames = ['basicAuthScheme'];\n var contentTypes = [];\n var accepts = ['application/json'];\n var returnType = _models_objects_v4_config_GetObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_7__[\"default\"];\n return this.apiClient.callApi('/api/objects/v4.0/config/object-stores/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n\n /**\n * Get a list of the SSL certificates of an Object store\n * Get a list of the SSL certificates which can be used to access an Object store.\n * @param { String } objectStoreExtId The UUID of the Object store.\n * @param {Object} opts Optional parameters defined for the operation\n * @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.\n * @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.\n * @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>\n * For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>\n * The filter can be applied to the following fields:<br>\n * - alternateFqdns/value<br>\n * - alternateIps/ipv4/value\n * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.\n - alternateFqdns\n - alternateFqdns/value\n - alternateIps\n - alternateIps/ipv4/value\n * @param {Object} args Additional Arguments\n * @return {Promise<ListCertificatesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListCertificatesApiResponse } and HTTP response\n */\n }, {\n key: \"listCertificatesByObjectstoreId\",\n value: function listCertificatesByObjectstoreId(objectStoreExtId, opts) {\n var _this7 = this;\n var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};\n opts = opts || {};\n var postBody = null;\n // verify the required parameter 'objectStoreExtId' is set\n if (typeof objectStoreExtId === 'undefined' || objectStoreExtId === null) {\n throw new Error(\"Missing the required parameter 'objectStoreExtId' when calling listCertificatesByObjectstoreId\");\n }\n var pathParams = {\n 'objectStoreExtId': objectStoreExtId\n };\n var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {\n '$page': opts['$page']\n } : {}), opts.hasOwnProperty('$limit') ? {\n '$limit': opts['$limit']\n } : {}), opts.hasOwnProperty('$filter') ? {\n '$filter': opts['$filter']\n } : {}), opts.hasOwnProperty('$select') ? {\n '$select': opts['$select']\n } : {});\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this7).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({}, headersToInclude);\n var formParams = {};\n var authNames = ['basicAuthScheme'];\n var contentTypes = [];\n var accepts = ['application/json'];\n var returnType = _models_objects_v4_config_ListCertificatesApiResponse__WEBPACK_IMPORTED_MODULE_4__[\"default\"];\n return this.apiClient.callApi('/api/objects/v4.0/config/object-stores/{objectStoreExtId}/certificates', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n\n /**\n * Get a list of the Object stores\n * Get a list of all the Object store details on the registered Prism Central.\n * @param {Object} opts Optional parameters defined for the operation\n * @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.\n * @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.\n * @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>\n * For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>\n * The filter can be applied to the following fields:<br>\n * - certificateExtIds<br>\n * - clusterExtId<br>\n * - creationTime<br>\n * - deploymentVersion<br>\n * - description<br>\n * - domain<br>\n * - lastUpdateTime<br>\n * - name<br>\n * - numWorkerNodes<br>\n * - publicNetworkIps/ipv4/value<br>\n * - publicNetworkIps/ipv6/value<br>\n * - publicNetworkReference<br>\n * - region<br>\n * - storageNetworkDnsIp/ipv4/value<br>\n * - storageNetworkDnsIp/ipv6/value<br>\n * - storageNetworkReference<br>\n * - storageNetworkVip/ipv4/value<br>\n * - storageNetworkVip/ipv6/value<br>\n * - totalCapacityGiB\n * @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>\n * The orderby can be applied to the following fields:<br>\n * - clusterExtId<br>\n * - creationTime<br>\n * - deploymentVersion<br>\n * - description<br>\n * - domain<br>\n * - lastUpdateTime<br>\n * - name<br>\n * - numWorkerNodes<br>\n * - publicNetworkReference<br>\n * - region<br>\n * - storageNetworkReference<br>\n * - totalCapacityGiB\n * @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported.\n - certificates\n * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.\n - certificateExtIds\n - clusterExtId\n - creationTime\n - deploymentVersion\n - description\n - domain\n - lastUpdateTime\n - name\n - numWorkerNodes\n - publicNetworkIps\n - publicNetworkIps/ipv4/value\n - publicNetworkReference\n - region\n - state\n - storageNetworkDnsIp\n - storageNetworkDnsIp/ipv4/value\n - storageNetworkReference\n - storageNetworkVip\n - storageNetworkVip/ipv4/value\n - totalCapacityGiB\n * @param {Object} args Additional Arguments\n * @return {Promise<ListObjectstoresApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListObjectstoresApiResponse } and HTTP response\n */\n }, {\n key: \"listObjectstores\",\n value: function listObjectstores(opts) {\n var _this8 = this;\n var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};\n opts = opts || {};\n var postBody = null;\n var pathParams = {};\n var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {\n '$page': opts['$page']\n } : {}), opts.hasOwnProperty('$limit') ? {\n '$limit': opts['$limit']\n } : {}), opts.hasOwnProperty('$filter') ? {\n '$filter': opts['$filter']\n } : {}), opts.hasOwnProperty('$orderby') ? {\n '$orderby': opts['$orderby']\n } : {}), opts.hasOwnProperty('$expand') ? {\n '$expand': opts['$expand']\n } : {}), opts.hasOwnProperty('$select') ? {\n '$select': opts['$select']\n } : {});\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this8).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({}, headersToInclude);\n var formParams = {};\n var authNames = ['basicAuthScheme'];\n var contentTypes = [];\n var accepts = ['application/json'];\n var returnType = _models_objects_v4_config_ListObjectstoresApiResponse__WEBPACK_IMPORTED_MODULE_10__[\"default\"];\n return this.apiClient.callApi('/api/objects/v4.0/config/object-stores', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n\n /**\n * Update an Object store\n * Update an Object store. The deployment of an Object store can be restarted from the state OBJECT_STORE_DEPLOYMENT_FAILED. \n * @param { Required<Pick<ObjectStore, 'name'>> & Partial<ObjectStore> } body specification\n * @param { String } extId The UUID of the Object store.\n * @param {Object} args Additional Arguments\n * @return {Promise<UpdateObjectstoreApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateObjectstoreApiResponse } and HTTP response\n */\n }, {\n key: \"updateObjectstoreById\",\n value: function updateObjectstoreById(extId, body) {\n var _this9 = this;\n var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};\n var postBody = null;\n if (body instanceof _models_objects_v4_config_ObjectStore__WEBPACK_IMPORTED_MODULE_2__[\"default\"] && typeof body.toJson === 'function') {\n postBody = body.toJson();\n } else {\n postBody = body;\n }\n // verify the required parameter 'extId' is set\n if (typeof extId === 'undefined' || extId === null) {\n throw new Error(\"Missing the required parameter 'extId' when calling updateObjectstoreById\");\n }\n // verify the required parameter 'body' is set\n if (typeof postBody === 'undefined' || postBody === null) {\n throw new Error(\"Invalid body when calling updateObjectstoreById\");\n }\n var pathParams = {\n 'extId': extId\n };\n var queryParams = {};\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this9).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({}, headersToInclude);\n var formParams = {};\n _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.addEtagReferenceToHeader(body, headerParams);\n var authNames = ['basicAuthScheme'];\n var contentTypes = ['application/json'];\n var accepts = ['application/json'];\n var returnType = _models_objects_v4_config_UpdateObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_6__[\"default\"];\n return this.apiClient.callApi('/api/objects/v4.0/config/object-stores/{extId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n }], [{\n key: \"ApiClient\",\n get:\n /**\n * Make the default {@link ApiClient} class available for developers to be able to extend it and bring\n * their own fetch methods into the SDK\n */\n function get() {\n return _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient;\n }\n }]);\n}();\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/apis/objectstores-endpoints.js?");
244
+
245
+ /***/ }),
246
+
247
+ /***/ "./target/generated-sources/swagger/src/apis/stats-endpoints.js":
248
+ /*!**********************************************************************!*\
249
+ !*** ./target/generated-sources/swagger/src/apis/stats-endpoints.js ***!
250
+ \**********************************************************************/
251
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
252
+
253
+ "use strict";
254
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ StatsApi: () => (/* binding */ StatsApi)\n/* harmony export */ });\n/* harmony import */ var _ApiClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ApiClient */ \"./target/generated-sources/swagger/src/ApiClient.js\");\n/* harmony import */ var _models_objects_v4_stats_GetObjectstoreStatsApiResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/objects/v4/stats/GetObjectstoreStatsApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js\");\n/* harmony import */ var _models_common_v1_stats_DownSamplingOperator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/common/v1/stats/DownSamplingOperator */ \"./target/generated-sources/swagger/src/models/common/v1/stats/DownSamplingOperator.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }\nfunction _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * Stats service.\n * @version 4.0.1\n * @class StatsApi\n */\nvar _headersToSkip = /*#__PURE__*/new WeakMap();\nvar StatsApi = /*#__PURE__*/function () {\n /**\n * Constructs a new StatsApi. \n * @alias module:api/StatsApi\n * @class\n * @param {module:ApiClient} [apiClient] Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n function StatsApi(apiClient) {\n _classCallCheck(this, StatsApi);\n _classPrivateFieldInitSpec(this, _headersToSkip, void 0);\n this.apiClient = apiClient || _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.instance;\n _classPrivateFieldSet(_headersToSkip, this, new Set());\n _classPrivateFieldGet(_headersToSkip, this).add('authorization');\n _classPrivateFieldGet(_headersToSkip, this).add('cookie');\n _classPrivateFieldGet(_headersToSkip, this).add('host');\n _classPrivateFieldGet(_headersToSkip, this).add('user-agent');\n }\n\n /**\n * Get the Object store stats\n * Get the time series stats of an Object store. If $samplingInterval is not set, a value of 120 seconds will be used. If $statType is not set, the operator \\&quot;SUM\\&quot; will be used. The stats can be fetched for an Object store when it is in the state \\&quot;OBJECT_STORE_AVAILABLE\\&quot;.\n * @param { String } extId The UUID of the Object store.\n * @param { Date } $startTime The start time of the period for which stats should be reported. The value should be in extended ISO-8601 format. For example, start time of 2022-04-23T01:23:45.678+09:00 would consider all stats starting at 1:23:45.678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html\n * @param { Date } $endTime The end time of the period for which stats should be reported. The value should be in extended ISO-8601 format. For example, end time of 2022-04-23T013:23:45.678+09:00 would consider all stats till 13:23:45 .678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html\n * @param {Object} opts Optional parameters defined for the operation\n * @param { Number } opts.$samplingInterval The sampling interval in seconds at which statistical data should be collected. For example, if you want performance statistics every 30 seconds, then provide the value as 30.\n * @param { DownSamplingOperator } opts.$statType \n * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.\n - bucketCount\n - deleteRequestsPerSecond\n - getBucketOperationsPerSecond\n - getObjectTtfbMsecs\n - getRequestThroughputBytesPerSecond\n - getRequestsPerSecond\n - headRequestsPerSecond\n - inboundBytesPerSecond\n - listMultipartUploadsOperationsPerSecond\n - multipartUploadStartOperationsPerSecond\n - nfsReadRequestsPerSecond\n - nfsReadThroughputBytesPerSecond\n - nfsWriteRequestsPerSecond\n - nfsWriteThroughputBytesPerSecond\n - objectCount\n - objectOperationsPerSecond\n - outboundBytesPerSecond\n - postRequestsPerSecond\n - putRequestThroughputBytesPerSecond\n - putRequestsPerSecond\n - selectObjectContentOperationsPerSecond\n - storageUsageBytes\n * @param {Object} args Additional Arguments\n * @return {Promise<GetObjectstoreStatsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetObjectstoreStatsApiResponse } and HTTP response\n */\n return _createClass(StatsApi, [{\n key: \"getObjectstoreStatsById\",\n value: function getObjectstoreStatsById(extId, $startTime, $endTime, opts) {\n var _this = this;\n var argMap = (arguments.length <= 4 ? 0 : arguments.length - 4) > 0 ? arguments.length <= 4 ? undefined : arguments[4] : {};\n opts = opts || {};\n var postBody = null;\n // verify the required parameter 'extId' is set\n if (typeof extId === 'undefined' || extId === null) {\n throw new Error(\"Missing the required parameter 'extId' when calling getObjectstoreStatsById\");\n }\n // verify the required parameter '$startTime' is set\n if (typeof $startTime === 'undefined' || $startTime === null) {\n throw new Error(\"Missing the required parameter '$startTime' when calling getObjectstoreStatsById\");\n }\n // verify the required parameter '$endTime' is set\n if (typeof $endTime === 'undefined' || $endTime === null) {\n throw new Error(\"Missing the required parameter '$endTime' when calling getObjectstoreStatsById\");\n }\n var pathParams = {\n 'extId': extId\n };\n var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, {\n '$startTime': $startTime\n }), {\n '$endTime': $endTime\n }), opts.hasOwnProperty('$samplingInterval') ? {\n '$samplingInterval': opts['$samplingInterval']\n } : {}), opts.hasOwnProperty('$statType') ? {\n '$statType': opts['$statType']\n } : {}), opts.hasOwnProperty('$select') ? {\n '$select': opts['$select']\n } : {});\n var headersToInclude = {};\n Object.keys(argMap).forEach(function (header) {\n if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n var headerParams = _objectSpread({}, headersToInclude);\n var formParams = {};\n var authNames = ['basicAuthScheme'];\n var contentTypes = [];\n var accepts = ['application/json'];\n var returnType = _models_objects_v4_stats_GetObjectstoreStatsApiResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n return this.apiClient.callApi('/api/objects/v4.0/stats/object-stores/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n }], [{\n key: \"ApiClient\",\n get:\n /**\n * Make the default {@link ApiClient} class available for developers to be able to extend it and bring\n * their own fetch methods into the SDK\n */\n function get() {\n return _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient;\n }\n }]);\n}();\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/apis/stats-endpoints.js?");
244
255
 
245
256
  /***/ }),
246
257
 
@@ -251,7 +262,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
251
262
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
252
263
 
253
264
  "use strict";
254
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ApiClient: () => (/* reexport safe */ _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient),\n/* harmony export */ ApiLink: () => (/* reexport safe */ _models_common_v1_response_ApiLink__WEBPACK_IMPORTED_MODULE_12__[\"default\"]),\n/* harmony export */ ApiResponseMetadata: () => (/* reexport safe */ _models_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_13__[\"default\"]),\n/* harmony export */ AppMessage: () => (/* reexport safe */ _models_objects_v4_error_AppMessage__WEBPACK_IMPORTED_MODULE_15__[\"default\"]),\n/* harmony export */ Certificate: () => (/* reexport safe */ _models_objects_v4_operations_Certificate__WEBPACK_IMPORTED_MODULE_19__[\"default\"]),\n/* harmony export */ CertificateApiResponse: () => (/* reexport safe */ _models_objects_v4_operations_CertificateApiResponse__WEBPACK_IMPORTED_MODULE_20__[\"default\"]),\n/* harmony export */ CertificateListApiResponse: () => (/* reexport safe */ _models_objects_v4_operations_CertificateListApiResponse__WEBPACK_IMPORTED_MODULE_21__[\"default\"]),\n/* harmony export */ CertificateProjection: () => (/* reexport safe */ _models_objects_v4_operations_CertificateProjection__WEBPACK_IMPORTED_MODULE_22__[\"default\"]),\n/* harmony export */ ErrorResponse: () => (/* reexport safe */ _models_objects_v4_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_16__[\"default\"]),\n/* harmony export */ ExternalizableAbstractModel: () => (/* reexport safe */ _models_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_14__[\"default\"]),\n/* harmony export */ FQDN: () => (/* reexport safe */ _models_common_v1_config_FQDN__WEBPACK_IMPORTED_MODULE_2__[\"default\"]),\n/* harmony export */ Flag: () => (/* reexport safe */ _models_common_v1_config_Flag__WEBPACK_IMPORTED_MODULE_3__[\"default\"]),\n/* harmony export */ IPAddress: () => (/* reexport safe */ _models_common_v1_config_IPAddress__WEBPACK_IMPORTED_MODULE_4__[\"default\"]),\n/* harmony export */ IPv4Address: () => (/* reexport safe */ _models_common_v1_config_IPv4Address__WEBPACK_IMPORTED_MODULE_5__[\"default\"]),\n/* harmony export */ IPv6Address: () => (/* reexport safe */ _models_common_v1_config_IPv6Address__WEBPACK_IMPORTED_MODULE_6__[\"default\"]),\n/* harmony export */ KVPair: () => (/* reexport safe */ _models_common_v1_config_KVPair__WEBPACK_IMPORTED_MODULE_7__[\"default\"]),\n/* harmony export */ Message: () => (/* reexport safe */ _models_common_v1_config_Message__WEBPACK_IMPORTED_MODULE_8__[\"default\"]),\n/* harmony export */ MessageSeverity: () => (/* reexport safe */ _models_common_v1_config_MessageSeverity__WEBPACK_IMPORTED_MODULE_9__[\"default\"]),\n/* harmony export */ Metadata: () => (/* reexport safe */ _models_common_v1_config_Metadata__WEBPACK_IMPORTED_MODULE_10__[\"default\"]),\n/* harmony export */ ObjectStoresApi: () => (/* reexport safe */ _apis_objectstores_endpoints__WEBPACK_IMPORTED_MODULE_1__.ObjectStoresApi),\n/* harmony export */ Objectstore: () => (/* reexport safe */ _models_objects_v4_operations_Objectstore__WEBPACK_IMPORTED_MODULE_23__[\"default\"]),\n/* harmony export */ ObjectstoreApiResponse: () => (/* reexport safe */ _models_objects_v4_operations_ObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_24__[\"default\"]),\n/* harmony export */ ObjectstoreListApiResponse: () => (/* reexport safe */ _models_objects_v4_operations_ObjectstoreListApiResponse__WEBPACK_IMPORTED_MODULE_25__[\"default\"]),\n/* harmony export */ ObjectstoreProjection: () => (/* reexport safe */ _models_objects_v4_operations_ObjectstoreProjection__WEBPACK_IMPORTED_MODULE_26__[\"default\"]),\n/* harmony export */ SchemaValidationError: () => (/* reexport safe */ _models_objects_v4_error_SchemaValidationError__WEBPACK_IMPORTED_MODULE_17__[\"default\"]),\n/* harmony export */ SchemaValidationErrorMessage: () => (/* reexport safe */ _models_objects_v4_error_SchemaValidationErrorMessage__WEBPACK_IMPORTED_MODULE_18__[\"default\"]),\n/* harmony export */ StateEnum: () => (/* reexport safe */ _models_objects_v4_operations_StateEnum__WEBPACK_IMPORTED_MODULE_27__[\"default\"]),\n/* harmony export */ TaskReference: () => (/* reexport safe */ _models_prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_29__[\"default\"]),\n/* harmony export */ TaskReferenceApiResponse: () => (/* reexport safe */ _models_objects_v4_operations_TaskReferenceApiResponse__WEBPACK_IMPORTED_MODULE_28__[\"default\"]),\n/* harmony export */ TenantAwareModel: () => (/* reexport safe */ _models_common_v1_config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_11__[\"default\"]),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ApiClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ApiClient */ \"./target/generated-sources/swagger/src/ApiClient.js\");\n/* harmony import */ var _apis_objectstores_endpoints__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./apis/objectstores-endpoints */ \"./target/generated-sources/swagger/src/apis/objectstores-endpoints.js\");\n/* harmony import */ var _models_common_v1_config_FQDN__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./models/common/v1/config/FQDN */ \"./target/generated-sources/swagger/src/models/common/v1/config/FQDN.js\");\n/* harmony import */ var _models_common_v1_config_Flag__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./models/common/v1/config/Flag */ \"./target/generated-sources/swagger/src/models/common/v1/config/Flag.js\");\n/* harmony import */ var _models_common_v1_config_IPAddress__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./models/common/v1/config/IPAddress */ \"./target/generated-sources/swagger/src/models/common/v1/config/IPAddress.js\");\n/* harmony import */ var _models_common_v1_config_IPv4Address__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./models/common/v1/config/IPv4Address */ \"./target/generated-sources/swagger/src/models/common/v1/config/IPv4Address.js\");\n/* harmony import */ var _models_common_v1_config_IPv6Address__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./models/common/v1/config/IPv6Address */ \"./target/generated-sources/swagger/src/models/common/v1/config/IPv6Address.js\");\n/* harmony import */ var _models_common_v1_config_KVPair__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./models/common/v1/config/KVPair */ \"./target/generated-sources/swagger/src/models/common/v1/config/KVPair.js\");\n/* harmony import */ var _models_common_v1_config_Message__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./models/common/v1/config/Message */ \"./target/generated-sources/swagger/src/models/common/v1/config/Message.js\");\n/* harmony import */ var _models_common_v1_config_MessageSeverity__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./models/common/v1/config/MessageSeverity */ \"./target/generated-sources/swagger/src/models/common/v1/config/MessageSeverity.js\");\n/* harmony import */ var _models_common_v1_config_Metadata__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./models/common/v1/config/Metadata */ \"./target/generated-sources/swagger/src/models/common/v1/config/Metadata.js\");\n/* harmony import */ var _models_common_v1_config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./models/common/v1/config/TenantAwareModel */ \"./target/generated-sources/swagger/src/models/common/v1/config/TenantAwareModel.js\");\n/* harmony import */ var _models_common_v1_response_ApiLink__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./models/common/v1/response/ApiLink */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js\");\n/* harmony import */ var _models_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./models/common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _models_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./models/common/v1/response/ExternalizableAbstractModel */ \"./target/generated-sources/swagger/src/models/common/v1/response/ExternalizableAbstractModel.js\");\n/* harmony import */ var _models_objects_v4_error_AppMessage__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./models/objects/v4/error/AppMessage */ \"./target/generated-sources/swagger/src/models/objects/v4/error/AppMessage.js\");\n/* harmony import */ var _models_objects_v4_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./models/objects/v4/error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/error/ErrorResponse.js\");\n/* harmony import */ var _models_objects_v4_error_SchemaValidationError__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./models/objects/v4/error/SchemaValidationError */ \"./target/generated-sources/swagger/src/models/objects/v4/error/SchemaValidationError.js\");\n/* harmony import */ var _models_objects_v4_error_SchemaValidationErrorMessage__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./models/objects/v4/error/SchemaValidationErrorMessage */ \"./target/generated-sources/swagger/src/models/objects/v4/error/SchemaValidationErrorMessage.js\");\n/* harmony import */ var _models_objects_v4_operations_Certificate__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./models/objects/v4/operations/Certificate */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/Certificate.js\");\n/* harmony import */ var _models_objects_v4_operations_CertificateApiResponse__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./models/objects/v4/operations/CertificateApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/CertificateApiResponse.js\");\n/* harmony import */ var _models_objects_v4_operations_CertificateListApiResponse__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./models/objects/v4/operations/CertificateListApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/CertificateListApiResponse.js\");\n/* harmony import */ var _models_objects_v4_operations_CertificateProjection__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./models/objects/v4/operations/CertificateProjection */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/CertificateProjection.js\");\n/* harmony import */ var _models_objects_v4_operations_Objectstore__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./models/objects/v4/operations/Objectstore */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/Objectstore.js\");\n/* harmony import */ var _models_objects_v4_operations_ObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./models/objects/v4/operations/ObjectstoreApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/ObjectstoreApiResponse.js\");\n/* harmony import */ var _models_objects_v4_operations_ObjectstoreListApiResponse__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./models/objects/v4/operations/ObjectstoreListApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/ObjectstoreListApiResponse.js\");\n/* harmony import */ var _models_objects_v4_operations_ObjectstoreProjection__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./models/objects/v4/operations/ObjectstoreProjection */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/ObjectstoreProjection.js\");\n/* harmony import */ var _models_objects_v4_operations_StateEnum__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./models/objects/v4/operations/StateEnum */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/StateEnum.js\");\n/* harmony import */ var _models_objects_v4_operations_TaskReferenceApiResponse__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./models/objects/v4/operations/TaskReferenceApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/TaskReferenceApiResponse.js\");\n/* harmony import */ var _models_prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./models/prism/v4/config/TaskReference */ \"./target/generated-sources/swagger/src/models/prism/v4/config/TaskReference.js\");\n// Export base files\n\n\n// Export APIs \n\n\n// Export models \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n ApiClient: _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient,\n ObjectStoresApi: _apis_objectstores_endpoints__WEBPACK_IMPORTED_MODULE_1__.ObjectStoresApi,\n FQDN: _models_common_v1_config_FQDN__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n Flag: _models_common_v1_config_Flag__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n IPAddress: _models_common_v1_config_IPAddress__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n IPv4Address: _models_common_v1_config_IPv4Address__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n IPv6Address: _models_common_v1_config_IPv6Address__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n KVPair: _models_common_v1_config_KVPair__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n Message: _models_common_v1_config_Message__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n MessageSeverity: _models_common_v1_config_MessageSeverity__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n Metadata: _models_common_v1_config_Metadata__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n TenantAwareModel: _models_common_v1_config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_11__[\"default\"],\n ApiLink: _models_common_v1_response_ApiLink__WEBPACK_IMPORTED_MODULE_12__[\"default\"],\n ApiResponseMetadata: _models_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_13__[\"default\"],\n ExternalizableAbstractModel: _models_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_14__[\"default\"],\n AppMessage: _models_objects_v4_error_AppMessage__WEBPACK_IMPORTED_MODULE_15__[\"default\"],\n ErrorResponse: _models_objects_v4_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_16__[\"default\"],\n SchemaValidationError: _models_objects_v4_error_SchemaValidationError__WEBPACK_IMPORTED_MODULE_17__[\"default\"],\n SchemaValidationErrorMessage: _models_objects_v4_error_SchemaValidationErrorMessage__WEBPACK_IMPORTED_MODULE_18__[\"default\"],\n Certificate: _models_objects_v4_operations_Certificate__WEBPACK_IMPORTED_MODULE_19__[\"default\"],\n CertificateApiResponse: _models_objects_v4_operations_CertificateApiResponse__WEBPACK_IMPORTED_MODULE_20__[\"default\"],\n CertificateListApiResponse: _models_objects_v4_operations_CertificateListApiResponse__WEBPACK_IMPORTED_MODULE_21__[\"default\"],\n CertificateProjection: _models_objects_v4_operations_CertificateProjection__WEBPACK_IMPORTED_MODULE_22__[\"default\"],\n Objectstore: _models_objects_v4_operations_Objectstore__WEBPACK_IMPORTED_MODULE_23__[\"default\"],\n ObjectstoreApiResponse: _models_objects_v4_operations_ObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_24__[\"default\"],\n ObjectstoreListApiResponse: _models_objects_v4_operations_ObjectstoreListApiResponse__WEBPACK_IMPORTED_MODULE_25__[\"default\"],\n ObjectstoreProjection: _models_objects_v4_operations_ObjectstoreProjection__WEBPACK_IMPORTED_MODULE_26__[\"default\"],\n StateEnum: _models_objects_v4_operations_StateEnum__WEBPACK_IMPORTED_MODULE_27__[\"default\"],\n TaskReferenceApiResponse: _models_objects_v4_operations_TaskReferenceApiResponse__WEBPACK_IMPORTED_MODULE_28__[\"default\"],\n TaskReference: _models_prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_29__[\"default\"]\n});\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/index.js?");
265
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ApiClient: () => (/* reexport safe */ _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient),\n/* harmony export */ ApiLink: () => (/* reexport safe */ _models_common_v1_response_ApiLink__WEBPACK_IMPORTED_MODULE_14__[\"default\"]),\n/* harmony export */ ApiResponseMetadata: () => (/* reexport safe */ _models_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_15__[\"default\"]),\n/* harmony export */ AppMessage: () => (/* reexport safe */ _models_objects_v4_error_AppMessage__WEBPACK_IMPORTED_MODULE_33__[\"default\"]),\n/* harmony export */ Certificate: () => (/* reexport safe */ _models_objects_v4_config_Certificate__WEBPACK_IMPORTED_MODULE_19__[\"default\"]),\n/* harmony export */ CertificateProjection: () => (/* reexport safe */ _models_objects_v4_config_CertificateProjection__WEBPACK_IMPORTED_MODULE_20__[\"default\"]),\n/* harmony export */ CreateCertificateApiResponse: () => (/* reexport safe */ _models_objects_v4_config_CreateCertificateApiResponse__WEBPACK_IMPORTED_MODULE_21__[\"default\"]),\n/* harmony export */ CreateObjectstoreApiResponse: () => (/* reexport safe */ _models_objects_v4_config_CreateObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_22__[\"default\"]),\n/* harmony export */ DeleteObjectstoreApiResponse: () => (/* reexport safe */ _models_objects_v4_config_DeleteObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_23__[\"default\"]),\n/* harmony export */ DownSamplingOperator: () => (/* reexport safe */ _models_common_v1_stats_DownSamplingOperator__WEBPACK_IMPORTED_MODULE_17__[\"default\"]),\n/* harmony export */ ErrorResponse: () => (/* reexport safe */ _models_objects_v4_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_34__[\"default\"]),\n/* harmony export */ ExternalizableAbstractModel: () => (/* reexport safe */ _models_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_16__[\"default\"]),\n/* harmony export */ FQDN: () => (/* reexport safe */ _models_common_v1_config_FQDN__WEBPACK_IMPORTED_MODULE_3__[\"default\"]),\n/* harmony export */ Flag: () => (/* reexport safe */ _models_common_v1_config_Flag__WEBPACK_IMPORTED_MODULE_4__[\"default\"]),\n/* harmony export */ GetCaApiResponse: () => (/* reexport safe */ _models_objects_v4_config_GetCaApiResponse__WEBPACK_IMPORTED_MODULE_24__[\"default\"]),\n/* harmony export */ GetCertificateApiResponse: () => (/* reexport safe */ _models_objects_v4_config_GetCertificateApiResponse__WEBPACK_IMPORTED_MODULE_25__[\"default\"]),\n/* harmony export */ GetObjectstoreApiResponse: () => (/* reexport safe */ _models_objects_v4_config_GetObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_26__[\"default\"]),\n/* harmony export */ GetObjectstoreStatsApiResponse: () => (/* reexport safe */ _models_objects_v4_stats_GetObjectstoreStatsApiResponse__WEBPACK_IMPORTED_MODULE_37__[\"default\"]),\n/* harmony export */ IPAddress: () => (/* reexport safe */ _models_common_v1_config_IPAddress__WEBPACK_IMPORTED_MODULE_5__[\"default\"]),\n/* harmony export */ IPv4Address: () => (/* reexport safe */ _models_common_v1_config_IPv4Address__WEBPACK_IMPORTED_MODULE_6__[\"default\"]),\n/* harmony export */ IPv6Address: () => (/* reexport safe */ _models_common_v1_config_IPv6Address__WEBPACK_IMPORTED_MODULE_7__[\"default\"]),\n/* harmony export */ KVPair: () => (/* reexport safe */ _models_common_v1_config_KVPair__WEBPACK_IMPORTED_MODULE_8__[\"default\"]),\n/* harmony export */ ListCertificatesApiResponse: () => (/* reexport safe */ _models_objects_v4_config_ListCertificatesApiResponse__WEBPACK_IMPORTED_MODULE_27__[\"default\"]),\n/* harmony export */ ListObjectstoresApiResponse: () => (/* reexport safe */ _models_objects_v4_config_ListObjectstoresApiResponse__WEBPACK_IMPORTED_MODULE_28__[\"default\"]),\n/* harmony export */ MapOfStringWrapper: () => (/* reexport safe */ _models_common_v1_config_MapOfStringWrapper__WEBPACK_IMPORTED_MODULE_9__[\"default\"]),\n/* harmony export */ Message: () => (/* reexport safe */ _models_common_v1_config_Message__WEBPACK_IMPORTED_MODULE_10__[\"default\"]),\n/* harmony export */ MessageSeverity: () => (/* reexport safe */ _models_common_v1_config_MessageSeverity__WEBPACK_IMPORTED_MODULE_11__[\"default\"]),\n/* harmony export */ Metadata: () => (/* reexport safe */ _models_common_v1_config_Metadata__WEBPACK_IMPORTED_MODULE_12__[\"default\"]),\n/* harmony export */ ObjectStore: () => (/* reexport safe */ _models_objects_v4_config_ObjectStore__WEBPACK_IMPORTED_MODULE_29__[\"default\"]),\n/* harmony export */ ObjectStoreProjection: () => (/* reexport safe */ _models_objects_v4_config_ObjectStoreProjection__WEBPACK_IMPORTED_MODULE_30__[\"default\"]),\n/* harmony export */ ObjectStoresApi: () => (/* reexport safe */ _apis_objectstores_endpoints__WEBPACK_IMPORTED_MODULE_1__.ObjectStoresApi),\n/* harmony export */ ObjectstoreStats: () => (/* reexport safe */ _models_objects_v4_stats_ObjectstoreStats__WEBPACK_IMPORTED_MODULE_38__[\"default\"]),\n/* harmony export */ SchemaValidationError: () => (/* reexport safe */ _models_objects_v4_error_SchemaValidationError__WEBPACK_IMPORTED_MODULE_35__[\"default\"]),\n/* harmony export */ SchemaValidationErrorMessage: () => (/* reexport safe */ _models_objects_v4_error_SchemaValidationErrorMessage__WEBPACK_IMPORTED_MODULE_36__[\"default\"]),\n/* harmony export */ State: () => (/* reexport safe */ _models_objects_v4_config_State__WEBPACK_IMPORTED_MODULE_31__[\"default\"]),\n/* harmony export */ StatsApi: () => (/* reexport safe */ _apis_stats_endpoints__WEBPACK_IMPORTED_MODULE_2__.StatsApi),\n/* harmony export */ TaskReference: () => (/* reexport safe */ _models_prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_40__[\"default\"]),\n/* harmony export */ TenantAwareModel: () => (/* reexport safe */ _models_common_v1_config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_13__[\"default\"]),\n/* harmony export */ TimeFloatValuePair: () => (/* reexport safe */ _models_objects_v4_stats_TimeFloatValuePair__WEBPACK_IMPORTED_MODULE_39__[\"default\"]),\n/* harmony export */ TimeIntValuePair: () => (/* reexport safe */ _models_common_v1_stats_TimeIntValuePair__WEBPACK_IMPORTED_MODULE_18__[\"default\"]),\n/* harmony export */ UpdateObjectstoreApiResponse: () => (/* reexport safe */ _models_objects_v4_config_UpdateObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_32__[\"default\"]),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _ApiClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ApiClient */ \"./target/generated-sources/swagger/src/ApiClient.js\");\n/* harmony import */ var _apis_objectstores_endpoints__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./apis/objectstores-endpoints */ \"./target/generated-sources/swagger/src/apis/objectstores-endpoints.js\");\n/* harmony import */ var _apis_stats_endpoints__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./apis/stats-endpoints */ \"./target/generated-sources/swagger/src/apis/stats-endpoints.js\");\n/* harmony import */ var _models_common_v1_config_FQDN__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./models/common/v1/config/FQDN */ \"./target/generated-sources/swagger/src/models/common/v1/config/FQDN.js\");\n/* harmony import */ var _models_common_v1_config_Flag__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./models/common/v1/config/Flag */ \"./target/generated-sources/swagger/src/models/common/v1/config/Flag.js\");\n/* harmony import */ var _models_common_v1_config_IPAddress__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./models/common/v1/config/IPAddress */ \"./target/generated-sources/swagger/src/models/common/v1/config/IPAddress.js\");\n/* harmony import */ var _models_common_v1_config_IPv4Address__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./models/common/v1/config/IPv4Address */ \"./target/generated-sources/swagger/src/models/common/v1/config/IPv4Address.js\");\n/* harmony import */ var _models_common_v1_config_IPv6Address__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./models/common/v1/config/IPv6Address */ \"./target/generated-sources/swagger/src/models/common/v1/config/IPv6Address.js\");\n/* harmony import */ var _models_common_v1_config_KVPair__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./models/common/v1/config/KVPair */ \"./target/generated-sources/swagger/src/models/common/v1/config/KVPair.js\");\n/* harmony import */ var _models_common_v1_config_MapOfStringWrapper__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./models/common/v1/config/MapOfStringWrapper */ \"./target/generated-sources/swagger/src/models/common/v1/config/MapOfStringWrapper.js\");\n/* harmony import */ var _models_common_v1_config_Message__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./models/common/v1/config/Message */ \"./target/generated-sources/swagger/src/models/common/v1/config/Message.js\");\n/* harmony import */ var _models_common_v1_config_MessageSeverity__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./models/common/v1/config/MessageSeverity */ \"./target/generated-sources/swagger/src/models/common/v1/config/MessageSeverity.js\");\n/* harmony import */ var _models_common_v1_config_Metadata__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./models/common/v1/config/Metadata */ \"./target/generated-sources/swagger/src/models/common/v1/config/Metadata.js\");\n/* harmony import */ var _models_common_v1_config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./models/common/v1/config/TenantAwareModel */ \"./target/generated-sources/swagger/src/models/common/v1/config/TenantAwareModel.js\");\n/* harmony import */ var _models_common_v1_response_ApiLink__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./models/common/v1/response/ApiLink */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js\");\n/* harmony import */ var _models_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./models/common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _models_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./models/common/v1/response/ExternalizableAbstractModel */ \"./target/generated-sources/swagger/src/models/common/v1/response/ExternalizableAbstractModel.js\");\n/* harmony import */ var _models_common_v1_stats_DownSamplingOperator__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./models/common/v1/stats/DownSamplingOperator */ \"./target/generated-sources/swagger/src/models/common/v1/stats/DownSamplingOperator.js\");\n/* harmony import */ var _models_common_v1_stats_TimeIntValuePair__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./models/common/v1/stats/TimeIntValuePair */ \"./target/generated-sources/swagger/src/models/common/v1/stats/TimeIntValuePair.js\");\n/* harmony import */ var _models_objects_v4_config_Certificate__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./models/objects/v4/config/Certificate */ \"./target/generated-sources/swagger/src/models/objects/v4/config/Certificate.js\");\n/* harmony import */ var _models_objects_v4_config_CertificateProjection__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./models/objects/v4/config/CertificateProjection */ \"./target/generated-sources/swagger/src/models/objects/v4/config/CertificateProjection.js\");\n/* harmony import */ var _models_objects_v4_config_CreateCertificateApiResponse__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./models/objects/v4/config/CreateCertificateApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/config/CreateCertificateApiResponse.js\");\n/* harmony import */ var _models_objects_v4_config_CreateObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./models/objects/v4/config/CreateObjectstoreApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/config/CreateObjectstoreApiResponse.js\");\n/* harmony import */ var _models_objects_v4_config_DeleteObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./models/objects/v4/config/DeleteObjectstoreApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/config/DeleteObjectstoreApiResponse.js\");\n/* harmony import */ var _models_objects_v4_config_GetCaApiResponse__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./models/objects/v4/config/GetCaApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/config/GetCaApiResponse.js\");\n/* harmony import */ var _models_objects_v4_config_GetCertificateApiResponse__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./models/objects/v4/config/GetCertificateApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/config/GetCertificateApiResponse.js\");\n/* harmony import */ var _models_objects_v4_config_GetObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./models/objects/v4/config/GetObjectstoreApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/config/GetObjectstoreApiResponse.js\");\n/* harmony import */ var _models_objects_v4_config_ListCertificatesApiResponse__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./models/objects/v4/config/ListCertificatesApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/config/ListCertificatesApiResponse.js\");\n/* harmony import */ var _models_objects_v4_config_ListObjectstoresApiResponse__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./models/objects/v4/config/ListObjectstoresApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/config/ListObjectstoresApiResponse.js\");\n/* harmony import */ var _models_objects_v4_config_ObjectStore__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./models/objects/v4/config/ObjectStore */ \"./target/generated-sources/swagger/src/models/objects/v4/config/ObjectStore.js\");\n/* harmony import */ var _models_objects_v4_config_ObjectStoreProjection__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./models/objects/v4/config/ObjectStoreProjection */ \"./target/generated-sources/swagger/src/models/objects/v4/config/ObjectStoreProjection.js\");\n/* harmony import */ var _models_objects_v4_config_State__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./models/objects/v4/config/State */ \"./target/generated-sources/swagger/src/models/objects/v4/config/State.js\");\n/* harmony import */ var _models_objects_v4_config_UpdateObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./models/objects/v4/config/UpdateObjectstoreApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/config/UpdateObjectstoreApiResponse.js\");\n/* harmony import */ var _models_objects_v4_error_AppMessage__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./models/objects/v4/error/AppMessage */ \"./target/generated-sources/swagger/src/models/objects/v4/error/AppMessage.js\");\n/* harmony import */ var _models_objects_v4_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./models/objects/v4/error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/error/ErrorResponse.js\");\n/* harmony import */ var _models_objects_v4_error_SchemaValidationError__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./models/objects/v4/error/SchemaValidationError */ \"./target/generated-sources/swagger/src/models/objects/v4/error/SchemaValidationError.js\");\n/* harmony import */ var _models_objects_v4_error_SchemaValidationErrorMessage__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./models/objects/v4/error/SchemaValidationErrorMessage */ \"./target/generated-sources/swagger/src/models/objects/v4/error/SchemaValidationErrorMessage.js\");\n/* harmony import */ var _models_objects_v4_stats_GetObjectstoreStatsApiResponse__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./models/objects/v4/stats/GetObjectstoreStatsApiResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js\");\n/* harmony import */ var _models_objects_v4_stats_ObjectstoreStats__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./models/objects/v4/stats/ObjectstoreStats */ \"./target/generated-sources/swagger/src/models/objects/v4/stats/ObjectstoreStats.js\");\n/* harmony import */ var _models_objects_v4_stats_TimeFloatValuePair__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./models/objects/v4/stats/TimeFloatValuePair */ \"./target/generated-sources/swagger/src/models/objects/v4/stats/TimeFloatValuePair.js\");\n/* harmony import */ var _models_prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./models/prism/v4/config/TaskReference */ \"./target/generated-sources/swagger/src/models/prism/v4/config/TaskReference.js\");\n// Export base files\n\n\n// Export APIs \n\n\n\n// Export models \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n ApiClient: _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient,\n ObjectStoresApi: _apis_objectstores_endpoints__WEBPACK_IMPORTED_MODULE_1__.ObjectStoresApi,\n StatsApi: _apis_stats_endpoints__WEBPACK_IMPORTED_MODULE_2__.StatsApi,\n FQDN: _models_common_v1_config_FQDN__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n Flag: _models_common_v1_config_Flag__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n IPAddress: _models_common_v1_config_IPAddress__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n IPv4Address: _models_common_v1_config_IPv4Address__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n IPv6Address: _models_common_v1_config_IPv6Address__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n KVPair: _models_common_v1_config_KVPair__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n MapOfStringWrapper: _models_common_v1_config_MapOfStringWrapper__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n Message: _models_common_v1_config_Message__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n MessageSeverity: _models_common_v1_config_MessageSeverity__WEBPACK_IMPORTED_MODULE_11__[\"default\"],\n Metadata: _models_common_v1_config_Metadata__WEBPACK_IMPORTED_MODULE_12__[\"default\"],\n TenantAwareModel: _models_common_v1_config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_13__[\"default\"],\n ApiLink: _models_common_v1_response_ApiLink__WEBPACK_IMPORTED_MODULE_14__[\"default\"],\n ApiResponseMetadata: _models_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_15__[\"default\"],\n ExternalizableAbstractModel: _models_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_16__[\"default\"],\n DownSamplingOperator: _models_common_v1_stats_DownSamplingOperator__WEBPACK_IMPORTED_MODULE_17__[\"default\"],\n TimeIntValuePair: _models_common_v1_stats_TimeIntValuePair__WEBPACK_IMPORTED_MODULE_18__[\"default\"],\n Certificate: _models_objects_v4_config_Certificate__WEBPACK_IMPORTED_MODULE_19__[\"default\"],\n CertificateProjection: _models_objects_v4_config_CertificateProjection__WEBPACK_IMPORTED_MODULE_20__[\"default\"],\n CreateCertificateApiResponse: _models_objects_v4_config_CreateCertificateApiResponse__WEBPACK_IMPORTED_MODULE_21__[\"default\"],\n CreateObjectstoreApiResponse: _models_objects_v4_config_CreateObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_22__[\"default\"],\n DeleteObjectstoreApiResponse: _models_objects_v4_config_DeleteObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_23__[\"default\"],\n GetCaApiResponse: _models_objects_v4_config_GetCaApiResponse__WEBPACK_IMPORTED_MODULE_24__[\"default\"],\n GetCertificateApiResponse: _models_objects_v4_config_GetCertificateApiResponse__WEBPACK_IMPORTED_MODULE_25__[\"default\"],\n GetObjectstoreApiResponse: _models_objects_v4_config_GetObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_26__[\"default\"],\n ListCertificatesApiResponse: _models_objects_v4_config_ListCertificatesApiResponse__WEBPACK_IMPORTED_MODULE_27__[\"default\"],\n ListObjectstoresApiResponse: _models_objects_v4_config_ListObjectstoresApiResponse__WEBPACK_IMPORTED_MODULE_28__[\"default\"],\n ObjectStore: _models_objects_v4_config_ObjectStore__WEBPACK_IMPORTED_MODULE_29__[\"default\"],\n ObjectStoreProjection: _models_objects_v4_config_ObjectStoreProjection__WEBPACK_IMPORTED_MODULE_30__[\"default\"],\n State: _models_objects_v4_config_State__WEBPACK_IMPORTED_MODULE_31__[\"default\"],\n UpdateObjectstoreApiResponse: _models_objects_v4_config_UpdateObjectstoreApiResponse__WEBPACK_IMPORTED_MODULE_32__[\"default\"],\n AppMessage: _models_objects_v4_error_AppMessage__WEBPACK_IMPORTED_MODULE_33__[\"default\"],\n ErrorResponse: _models_objects_v4_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_34__[\"default\"],\n SchemaValidationError: _models_objects_v4_error_SchemaValidationError__WEBPACK_IMPORTED_MODULE_35__[\"default\"],\n SchemaValidationErrorMessage: _models_objects_v4_error_SchemaValidationErrorMessage__WEBPACK_IMPORTED_MODULE_36__[\"default\"],\n GetObjectstoreStatsApiResponse: _models_objects_v4_stats_GetObjectstoreStatsApiResponse__WEBPACK_IMPORTED_MODULE_37__[\"default\"],\n ObjectstoreStats: _models_objects_v4_stats_ObjectstoreStats__WEBPACK_IMPORTED_MODULE_38__[\"default\"],\n TimeFloatValuePair: _models_objects_v4_stats_TimeFloatValuePair__WEBPACK_IMPORTED_MODULE_39__[\"default\"],\n TaskReference: _models_prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_40__[\"default\"]\n});\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/index.js?");
255
266
 
256
267
  /***/ }),
257
268
 
@@ -262,7 +273,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
262
273
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
263
274
 
264
275
  "use strict";
265
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ FQDN)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The FQDN model module.\n * @module Ntnx/FQDN\n * @version 4.0.1-alpha-2\n * @class FQDN\n */\nvar _FQDN_brand = /*#__PURE__*/new WeakSet();\nvar FQDN = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>FQDN</code>.\n * A fully qualified domain name that specifies its exact location in the tree hierarchy of the Domain Name System. \n * @alias module:Ntnx/FQDN\n */\n function FQDN() {\n _classCallCheck(this, FQDN);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _FQDN_brand);\n this.$objectType = \"common.v1.config.FQDN\";\n this.$reserved = {\n '$fv': \"v1.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>FQDN</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/FQDN} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/FQDN} The populated <code>FQDN</code> instance.\n */\n return _createClass(FQDN, [{\n key: \"getValue\",\n value:\n /**\n * @return {}\n */\n function getValue() {\n return this.value;\n }\n\n /**\n * @param {} value\n */\n }, {\n key: \"setValue\",\n value: function setValue(value) {\n this.value = value;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread({}, typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread({}, typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"value\") {\n if (typeof this.value === 'undefined' || this.value === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"value\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].validatePattern(this.value, /^(?:[a-z0-9][\\\\w\\\\-]*[a-z0-9]*\\\\.)*(?:(?:(?:[a-z0-9][\\\\w\\\\-]*[a-z0-9]*)(?:\\\\.[a-z0-9]+)?))$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"value\", \"does not satisfy required pattern: /^(?:[a-z0-9][\\\\w\\\\-]*[a-z0-9]*\\\\.)*(?:(?:(?:[a-z0-9][\\\\w\\\\-]*[a-z0-9]*)(?:\\\\.[a-z0-9]+)?))$/\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new FQDN();\n if (data.hasOwnProperty('value') && data.value !== null && data.value !== undefined) {\n obj.setValue(data['value']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * @memberof FQDN\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nFQDN.prototype.value = undefined;\nFQDN.prototype.$reserved = undefined;\nFQDN.prototype.$objectType = undefined;\nFQDN.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/FQDN.js?");
276
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ FQDN)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The FQDN model module.\n * @module Ntnx/FQDN\n * @version 4.0.1\n * @class FQDN\n */\nvar _FQDN_brand = /*#__PURE__*/new WeakSet();\nvar FQDN = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>FQDN</code>.\n * A fully qualified domain name that specifies its exact location in the tree hierarchy of the Domain Name System. \n * @alias module:Ntnx/FQDN\n */\n function FQDN() {\n _classCallCheck(this, FQDN);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _FQDN_brand);\n this.$objectType = \"common.v1.config.FQDN\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v1.r0\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>FQDN</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/FQDN} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/FQDN} The populated <code>FQDN</code> instance.\n */\n return _createClass(FQDN, [{\n key: \"getValue\",\n value:\n /**\n * Returns The fully qualified domain name of the host. \n * @return {string}\n */\n function getValue() {\n return this.value;\n }\n\n /**\n * Sets The fully qualified domain name of the host. \n * @param {string} value The fully qualified domain name of the host. \n */\n }, {\n key: \"setValue\",\n value: function setValue(value) {\n this.value = value;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread({}, typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread({}, typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"value\") {\n if (typeof this.value === 'undefined' || this.value === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"value\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].validatePattern(this.value, /^([a-z0-9]+(-[a-z0-9]+)*\\\\.)+([a-z0-9]+(-[a-z0-9]+)*){1,63}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"value\", \"does not satisfy required pattern: /^([a-z0-9]+(-[a-z0-9]+)*\\\\.)+([a-z0-9]+(-[a-z0-9]+)*){1,63}$/\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new FQDN();\n if (data.hasOwnProperty('value') && data.value !== null && data.value !== undefined) {\n obj.setValue(data['value']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}();\n/**\n * The fully qualified domain name of the host. \n * @memberof FQDN\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nFQDN.prototype.value = undefined;\nFQDN.prototype.$reserved = undefined;\nFQDN.prototype.$objectType = undefined;\nFQDN.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/FQDN.js?");
266
277
 
267
278
  /***/ }),
268
279
 
@@ -273,7 +284,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
273
284
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
274
285
 
275
286
  "use strict";
276
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Flag)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The Flag model module.\n * @module Ntnx/Flag\n * @version 4.0.1-alpha-2\n * @class Flag\n */\nvar _Flag_brand = /*#__PURE__*/new WeakSet();\nvar Flag = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>Flag</code>.\n * Many entities in the Nutanix APIs carry flags. This object captures all the flags associated with that entity through this object. The field that hosts this type of object must have an attribute called x-bounded-map-keys that tells which flags are actually present for that entity. \n * @alias module:Ntnx/Flag\n */\n function Flag() {\n _classCallCheck(this, Flag);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _Flag_brand);\n this.$objectType = \"common.v1.config.Flag\";\n this.$reserved = {\n '$fv': \"v1.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>Flag</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/Flag} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/Flag} The populated <code>Flag</code> instance.\n */\n return _createClass(Flag, [{\n key: \"getName\",\n value:\n /**\n * @return {}\n */\n function getName() {\n return this.name;\n }\n\n /**\n * @param {} name\n */\n }, {\n key: \"setName\",\n value: function setName(name) {\n this.name = name;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getValue\",\n value: function getValue() {\n return this.value;\n }\n\n /**\n * @param {} value\n */\n }, {\n key: \"setValue\",\n value: function setValue(value) {\n this.value = value;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}), typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}), typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"name\") {\n if (typeof this.name === 'undefined' || this.name === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"name\", \"undefined or null\");\n }\n }\n if (property === \"value\") {\n if (typeof this.value === 'undefined' || this.value === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"value\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new Flag();\n if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {\n obj.setName(data['name']);\n }\n if (data.hasOwnProperty('value') && data.value !== null && data.value !== undefined) {\n obj.setValue(data['value']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * @memberof Flag\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nFlag.prototype.name = undefined;\n\n/**\n * @memberof Flag\n * @default false\n */\nFlag.prototype.value = false;\nFlag.prototype.$reserved = undefined;\nFlag.prototype.$objectType = undefined;\nFlag.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/Flag.js?");
287
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Flag)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The Flag model module.\n * @module Ntnx/Flag\n * @version 4.0.1\n * @class Flag\n */\nvar _Flag_brand = /*#__PURE__*/new WeakSet();\nvar Flag = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>Flag</code>.\n * Many entities in the Nutanix APIs carry flags. This object captures all the flags associated with that entity through this object. The field that hosts this type of object must have an attribute called x-bounded-map-keys that tells which flags are actually present for that entity. \n * @alias module:Ntnx/Flag\n */\n function Flag() {\n _classCallCheck(this, Flag);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _Flag_brand);\n this.$objectType = \"common.v1.config.Flag\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v1.r0\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>Flag</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/Flag} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/Flag} The populated <code>Flag</code> instance.\n */\n return _createClass(Flag, [{\n key: \"getName\",\n value:\n /**\n * Returns Name of the flag. \n * @return {string}\n */\n function getName() {\n return this.name;\n }\n\n /**\n * Sets Name of the flag. \n * @param {string} name Name of the flag. \n */\n }, {\n key: \"setName\",\n value: function setName(name) {\n this.name = name;\n }\n\n /**\n * Returns Value of the flag. \n * @return {boolean}\n */\n }, {\n key: \"getValue\",\n value: function getValue() {\n return this.value;\n }\n\n /**\n * Sets Value of the flag. \n * @param {boolean} value Value of the flag. \n */\n }, {\n key: \"setValue\",\n value: function setValue(value) {\n this.value = value;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}), typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}), typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"name\") {\n if (typeof this.name === 'undefined' || this.name === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"name\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].validateMaxLength(this.name, 128)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"name\", \"does not satisfy required maxLength constraint: 128\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].validateMinLength(this.name, 3)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"name\", \"does not satisfy required minLength constraint: 3\");\n }\n }\n if (property === \"value\") {\n if (typeof this.value === 'undefined' || this.value === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"value\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new Flag();\n if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {\n obj.setName(data['name']);\n }\n if (data.hasOwnProperty('value') && data.value !== null && data.value !== undefined) {\n obj.setValue(data['value']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}();\n/**\n * Name of the flag. \n * @memberof Flag\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nFlag.prototype.name = undefined;\n\n/**\n * Value of the flag. \n * @memberof Flag\n * @default false\n */\nFlag.prototype.value = false;\nFlag.prototype.$reserved = undefined;\nFlag.prototype.$objectType = undefined;\nFlag.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/Flag.js?");
277
288
 
278
289
  /***/ }),
279
290
 
@@ -284,7 +295,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
284
295
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
285
296
 
286
297
  "use strict";
287
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ IPAddress)\n/* harmony export */ });\n/* harmony import */ var _IPv4Address__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./IPv4Address */ \"./target/generated-sources/swagger/src/models/common/v1/config/IPv4Address.js\");\n/* harmony import */ var _IPv6Address__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./IPv6Address */ \"./target/generated-sources/swagger/src/models/common/v1/config/IPv6Address.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n/**\n * The IPAddress model module.\n * @module Ntnx/IPAddress\n * @version 4.0.1-alpha-2\n * @class IPAddress\n */\nvar _IPAddress_brand = /*#__PURE__*/new WeakSet();\nvar IPAddress = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>IPAddress</code>.\n * An unique address that identifies a device on the internet or a local network in IPv4 or IPv6 format. \n * @alias module:Ntnx/IPAddress\n */\n function IPAddress() {\n _classCallCheck(this, IPAddress);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _IPAddress_brand);\n this.$objectType = \"common.v1.config.IPAddress\";\n this.$reserved = {\n '$fv': \"v1.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>IPAddress</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/IPAddress} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/IPAddress} The populated <code>IPAddress</code> instance.\n */\n return _createClass(IPAddress, [{\n key: \"getIpv4\",\n value:\n /**\n * @return {}\n */\n function getIpv4() {\n return this.ipv4;\n }\n\n /**\n * @param {} ipv4\n */\n }, {\n key: \"setIpv4\",\n value: function setIpv4(ipv4) {\n this.ipv4 = ipv4;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getIpv6\",\n value: function getIpv6() {\n return this.ipv6;\n }\n\n /**\n * @param {} ipv6\n */\n }, {\n key: \"setIpv6\",\n value: function setIpv6(ipv6) {\n this.ipv6 = ipv6;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"hasIpv4\",\n value: function hasIpv4() {\n return !(typeof this.ipv4 === 'undefined' || this.ipv4 === null);\n }\n }, {\n key: \"hasIpv6\",\n value: function hasIpv6() {\n return !(typeof this.ipv6 === 'undefined' || this.ipv6 === null);\n }\n }, {\n key: \"isValid\",\n value: function isValid() {\n return this.hasIpv4() || this.hasIpv6();\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getIpv4() !== 'undefined' && this.getIpv4() !== null ? {\n 'ipv4': this.getIpv4().toJson(false)\n } : {}), typeof this.getIpv6() !== 'undefined' && this.getIpv6() !== null ? {\n 'ipv6': this.getIpv6().toJson(false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getIpv4() !== 'undefined' && this.getIpv4() !== null ? {\n 'ipv4': this.getIpv4().toJson(false)\n } : {}), typeof this.getIpv6() !== 'undefined' && this.getIpv6() !== null ? {\n 'ipv6': this.getIpv6().toJson(false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"ipv4\") {\n if (typeof this.ipv4 === 'undefined' || this.ipv4 === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"ipv4\", \"undefined or null\");\n }\n }\n if (property === \"ipv6\") {\n if (typeof this.ipv6 === 'undefined' || this.ipv6 === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"ipv6\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new IPAddress();\n if (data.hasOwnProperty('ipv4') && data.ipv4 !== null && data.ipv4 !== undefined) {\n obj.setIpv4(_IPv4Address__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['ipv4']));\n }\n if (data.hasOwnProperty('ipv6') && data.ipv6 !== null && data.ipv6 !== undefined) {\n obj.setIpv6(_IPv6Address__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['ipv6']));\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * @memberof IPAddress\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nIPAddress.prototype.ipv4 = undefined;\n\n/**\n * @memberof IPAddress\n */\nIPAddress.prototype.ipv6 = undefined;\nIPAddress.prototype.$reserved = undefined;\nIPAddress.prototype.$objectType = undefined;\nIPAddress.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/IPAddress.js?");
298
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ IPAddress)\n/* harmony export */ });\n/* harmony import */ var _IPv4Address__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./IPv4Address */ \"./target/generated-sources/swagger/src/models/common/v1/config/IPv4Address.js\");\n/* harmony import */ var _IPv6Address__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./IPv6Address */ \"./target/generated-sources/swagger/src/models/common/v1/config/IPv6Address.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n/**\n * The IPAddress model module.\n * @module Ntnx/IPAddress\n * @version 4.0.1\n * @class IPAddress\n */\nvar _IPAddress_brand = /*#__PURE__*/new WeakSet();\nvar IPAddress = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>IPAddress</code>.\n * An unique address that identifies a device on the internet or a local network in IPv4 or IPv6 format. \n * @alias module:Ntnx/IPAddress\n */\n function IPAddress() {\n _classCallCheck(this, IPAddress);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _IPAddress_brand);\n this.$objectType = \"common.v1.config.IPAddress\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v1.r0\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>IPAddress</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/IPAddress} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/IPAddress} The populated <code>IPAddress</code> instance.\n */\n return _createClass(IPAddress, [{\n key: \"getIpv4\",\n value:\n /**\n * @return {IPv4Address}\n */\n function getIpv4() {\n return this.ipv4;\n }\n\n /**\n * @param {IPv4Address} ipv4\n */\n }, {\n key: \"setIpv4\",\n value: function setIpv4(ipv4) {\n this.ipv4 = ipv4;\n }\n\n /**\n * @return {IPv6Address}\n */\n }, {\n key: \"getIpv6\",\n value: function getIpv6() {\n return this.ipv6;\n }\n\n /**\n * @param {IPv6Address} ipv6\n */\n }, {\n key: \"setIpv6\",\n value: function setIpv6(ipv6) {\n this.ipv6 = ipv6;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"hasIpv4\",\n value: function hasIpv4() {\n return !(typeof this.ipv4 === 'undefined' || this.ipv4 === null);\n }\n }, {\n key: \"hasIpv6\",\n value: function hasIpv6() {\n return !(typeof this.ipv6 === 'undefined' || this.ipv6 === null);\n }\n }, {\n key: \"isValid\",\n value: function isValid() {\n return this.hasIpv4() || this.hasIpv6();\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getIpv4() !== 'undefined' && this.getIpv4() !== null ? {\n 'ipv4': this.getIpv4().toJson(false)\n } : {}), typeof this.getIpv6() !== 'undefined' && this.getIpv6() !== null ? {\n 'ipv6': this.getIpv6().toJson(false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getIpv4() !== 'undefined' && this.getIpv4() !== null ? {\n 'ipv4': this.getIpv4().toJson(false)\n } : {}), typeof this.getIpv6() !== 'undefined' && this.getIpv6() !== null ? {\n 'ipv6': this.getIpv6().toJson(false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"ipv4\") {\n if (typeof this.ipv4 === 'undefined' || this.ipv4 === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"ipv4\", \"undefined or null\");\n }\n }\n if (property === \"ipv6\") {\n if (typeof this.ipv6 === 'undefined' || this.ipv6 === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"ipv6\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new IPAddress();\n if (data.hasOwnProperty('ipv4') && data.ipv4 !== null && data.ipv4 !== undefined) {\n obj.setIpv4(_IPv4Address__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['ipv4']));\n }\n if (data.hasOwnProperty('ipv6') && data.ipv6 !== null && data.ipv6 !== undefined) {\n obj.setIpv6(_IPv6Address__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['ipv6']));\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}();\n/**\n * @memberof IPAddress\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nIPAddress.prototype.ipv4 = undefined;\n\n/**\n * @memberof IPAddress\n */\nIPAddress.prototype.ipv6 = undefined;\nIPAddress.prototype.$reserved = undefined;\nIPAddress.prototype.$objectType = undefined;\nIPAddress.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/IPAddress.js?");
288
299
 
289
300
  /***/ }),
290
301
 
@@ -295,7 +306,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
295
306
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
296
307
 
297
308
  "use strict";
298
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ IPv4Address)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The IPv4Address model module.\n * @module Ntnx/IPv4Address\n * @version 4.0.1-alpha-2\n * @class IPv4Address\n */\nvar _IPv4Address_brand = /*#__PURE__*/new WeakSet();\nvar IPv4Address = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>IPv4Address</code>.\n * @alias module:Ntnx/IPv4Address\n */\n function IPv4Address() {\n _classCallCheck(this, IPv4Address);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _IPv4Address_brand);\n this.$objectType = \"common.v1.config.IPv4Address\";\n this.$reserved = {\n '$fv': \"v1.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>IPv4Address</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/IPv4Address} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/IPv4Address} The populated <code>IPv4Address</code> instance.\n */\n return _createClass(IPv4Address, [{\n key: \"getValue\",\n value:\n /**\n * @return {}\n */\n function getValue() {\n return this.value;\n }\n\n /**\n * @param {} value\n */\n }, {\n key: \"setValue\",\n value: function setValue(value) {\n this.value = value;\n }\n\n /**\n * Returns The prefix length of the network to which this host IPv4 address belongs. \n * minimum: 0\n * maximum: 32\n * @return {}\n */\n }, {\n key: \"getPrefixLength\",\n value: function getPrefixLength() {\n return this.prefixLength;\n }\n\n /**\n * Sets The prefix length of the network to which this host IPv4 address belongs. \n * @param {} prefixLength The prefix length of the network to which this host IPv4 address belongs. \n */\n }, {\n key: \"setPrefixLength\",\n value: function setPrefixLength(prefixLength) {\n this.prefixLength = prefixLength;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}), typeof this.getPrefixLength() !== 'undefined' && this.getPrefixLength() !== null ? {\n 'prefixLength': this.getPrefixLength()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}), typeof this.getPrefixLength() !== 'undefined' && this.getPrefixLength() !== null ? {\n 'prefixLength': this.getPrefixLength()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"value\") {\n if (typeof this.value === 'undefined' || this.value === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"value\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].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]?)$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"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]?)$/\");\n }\n }\n if (property === \"prefixLength\") {\n if (typeof this.prefixLength === 'undefined' || this.prefixLength === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"prefixLength\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].validateMaximum(this.prefixLength, 32)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"prefixLength\", \"does not satisfy required maximum constraint: 32\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].validateMinimum(this.prefixLength, 0)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"prefixLength\", \"does not satisfy required minimum constraint: 0\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new IPv4Address();\n if (data.hasOwnProperty('value') && data.value !== null && data.value !== undefined) {\n obj.setValue(data['value']);\n }\n if (data.hasOwnProperty('prefixLength') && data.prefixLength !== null && data.prefixLength !== undefined) {\n obj.setPrefixLength(data['prefixLength']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * @memberof IPv4Address\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nIPv4Address.prototype.value = undefined;\n\n/**\n * The prefix length of the network to which this host IPv4 address belongs. \n * @memberof IPv4Address\n * @default 32\n */\nIPv4Address.prototype.prefixLength = 32;\nIPv4Address.prototype.$reserved = undefined;\nIPv4Address.prototype.$objectType = undefined;\nIPv4Address.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/IPv4Address.js?");
309
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ IPv4Address)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The IPv4Address model module.\n * @module Ntnx/IPv4Address\n * @version 4.0.1\n * @class IPv4Address\n * \n * @param { string } value The IPv4 address of the host. \n */\nvar _IPv4Address_brand = /*#__PURE__*/new WeakSet();\nvar IPv4Address = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>IPv4Address</code>.\n * An unique address that identifies a device on the internet or a local network in IPv4 format. \n * @alias module:Ntnx/IPv4Address\n * \n * @param { string } value The IPv4 address of the host. \n */\n function IPv4Address(value) {\n _classCallCheck(this, IPv4Address);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _IPv4Address_brand);\n this.value = value;\n this.$objectType = \"common.v1.config.IPv4Address\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v1.r0\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>IPv4Address</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/IPv4Address} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/IPv4Address} The populated <code>IPv4Address</code> instance.\n */\n return _createClass(IPv4Address, [{\n key: \"getValue\",\n value:\n /**\n * Returns The IPv4 address of the host. \n * @return {string}\n */\n function getValue() {\n return this.value;\n }\n\n /**\n * Sets The IPv4 address of the host. \n * @param {string} value The IPv4 address of the host. \n */\n }, {\n key: \"setValue\",\n value: function setValue(value) {\n this.value = value;\n }\n\n /**\n * Returns The prefix length of the network to which this host IPv4 address belongs. \n * minimum: 0\n * maximum: 32\n * @return {Number}\n */\n }, {\n key: \"getPrefixLength\",\n value: function getPrefixLength() {\n return this.prefixLength;\n }\n\n /**\n * Sets The prefix length of the network to which this host IPv4 address belongs. \n * @param {Number} prefixLength The prefix length of the network to which this host IPv4 address belongs. \n */\n }, {\n key: \"setPrefixLength\",\n value: function setPrefixLength(prefixLength) {\n this.prefixLength = prefixLength;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}), typeof this.getPrefixLength() !== 'undefined' && this.getPrefixLength() !== null ? {\n 'prefixLength': this.getPrefixLength()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}), typeof this.getPrefixLength() !== 'undefined' && this.getPrefixLength() !== null ? {\n 'prefixLength': this.getPrefixLength()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [\"value\"];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"value\") {\n if (typeof this.value === 'undefined' || this.value === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"value\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].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]?)$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"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]?)$/\");\n }\n }\n if (property === \"prefixLength\") {\n if (typeof this.prefixLength === 'undefined' || this.prefixLength === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"prefixLength\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].validateMaximum(this.prefixLength, 32)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"prefixLength\", \"does not satisfy required maximum constraint: 32\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].validateMinimum(this.prefixLength, 0)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"prefixLength\", \"does not satisfy required minimum constraint: 0\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new IPv4Address();\n if (data.hasOwnProperty('value') && data.value !== null && data.value !== undefined) {\n obj.setValue(data['value']);\n }\n if (data.hasOwnProperty('prefixLength') && data.prefixLength !== null && data.prefixLength !== undefined) {\n obj.setPrefixLength(data['prefixLength']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}();\n/**\n * The IPv4 address of the host. \n * @memberof IPv4Address\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nIPv4Address.prototype.value = undefined;\n\n/**\n * The prefix length of the network to which this host IPv4 address belongs. \n * @memberof IPv4Address\n * @default 32\n */\nIPv4Address.prototype.prefixLength = 32;\nIPv4Address.prototype.$reserved = undefined;\nIPv4Address.prototype.$objectType = undefined;\nIPv4Address.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/IPv4Address.js?");
299
310
 
300
311
  /***/ }),
301
312
 
@@ -306,7 +317,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
306
317
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
307
318
 
308
319
  "use strict";
309
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ IPv6Address)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The IPv6Address model module.\n * @module Ntnx/IPv6Address\n * @version 4.0.1-alpha-2\n * @class IPv6Address\n */\nvar _IPv6Address_brand = /*#__PURE__*/new WeakSet();\nvar IPv6Address = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>IPv6Address</code>.\n * @alias module:Ntnx/IPv6Address\n */\n function IPv6Address() {\n _classCallCheck(this, IPv6Address);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _IPv6Address_brand);\n this.$objectType = \"common.v1.config.IPv6Address\";\n this.$reserved = {\n '$fv': \"v1.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>IPv6Address</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/IPv6Address} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/IPv6Address} The populated <code>IPv6Address</code> instance.\n */\n return _createClass(IPv6Address, [{\n key: \"getValue\",\n value:\n /**\n * @return {}\n */\n function getValue() {\n return this.value;\n }\n\n /**\n * @param {} value\n */\n }, {\n key: \"setValue\",\n value: function setValue(value) {\n this.value = value;\n }\n\n /**\n * Returns The prefix length of the network to which this host IPv6 address belongs. \n * minimum: 0\n * maximum: 128\n * @return {}\n */\n }, {\n key: \"getPrefixLength\",\n value: function getPrefixLength() {\n return this.prefixLength;\n }\n\n /**\n * Sets The prefix length of the network to which this host IPv6 address belongs. \n * @param {} prefixLength The prefix length of the network to which this host IPv6 address belongs. \n */\n }, {\n key: \"setPrefixLength\",\n value: function setPrefixLength(prefixLength) {\n this.prefixLength = prefixLength;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}), typeof this.getPrefixLength() !== 'undefined' && this.getPrefixLength() !== null ? {\n 'prefixLength': this.getPrefixLength()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}), typeof this.getPrefixLength() !== 'undefined' && this.getPrefixLength() !== null ? {\n 'prefixLength': this.getPrefixLength()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"value\") {\n if (typeof this.value === 'undefined' || this.value === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"value\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].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})$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"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})$/\");\n }\n }\n if (property === \"prefixLength\") {\n if (typeof this.prefixLength === 'undefined' || this.prefixLength === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"prefixLength\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].validateMaximum(this.prefixLength, 128)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"prefixLength\", \"does not satisfy required maximum constraint: 128\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].validateMinimum(this.prefixLength, 0)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"prefixLength\", \"does not satisfy required minimum constraint: 0\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new IPv6Address();\n if (data.hasOwnProperty('value') && data.value !== null && data.value !== undefined) {\n obj.setValue(data['value']);\n }\n if (data.hasOwnProperty('prefixLength') && data.prefixLength !== null && data.prefixLength !== undefined) {\n obj.setPrefixLength(data['prefixLength']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * @memberof IPv6Address\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nIPv6Address.prototype.value = undefined;\n\n/**\n * The prefix length of the network to which this host IPv6 address belongs. \n * @memberof IPv6Address\n * @default 128\n */\nIPv6Address.prototype.prefixLength = 128;\nIPv6Address.prototype.$reserved = undefined;\nIPv6Address.prototype.$objectType = undefined;\nIPv6Address.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/IPv6Address.js?");
320
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ IPv6Address)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The IPv6Address model module.\n * @module Ntnx/IPv6Address\n * @version 4.0.1\n * @class IPv6Address\n * \n * @param { string } value The IPv6 address of the host. \n */\nvar _IPv6Address_brand = /*#__PURE__*/new WeakSet();\nvar IPv6Address = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>IPv6Address</code>.\n * An unique address that identifies a device on the internet or a local network in IPv6 format. \n * @alias module:Ntnx/IPv6Address\n * \n * @param { string } value The IPv6 address of the host. \n */\n function IPv6Address(value) {\n _classCallCheck(this, IPv6Address);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _IPv6Address_brand);\n this.value = value;\n this.$objectType = \"common.v1.config.IPv6Address\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v1.r0\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>IPv6Address</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/IPv6Address} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/IPv6Address} The populated <code>IPv6Address</code> instance.\n */\n return _createClass(IPv6Address, [{\n key: \"getValue\",\n value:\n /**\n * Returns The IPv6 address of the host. \n * @return {string}\n */\n function getValue() {\n return this.value;\n }\n\n /**\n * Sets The IPv6 address of the host. \n * @param {string} value The IPv6 address of the host. \n */\n }, {\n key: \"setValue\",\n value: function setValue(value) {\n this.value = value;\n }\n\n /**\n * Returns The prefix length of the network to which this host IPv6 address belongs. \n * minimum: 0\n * maximum: 128\n * @return {Number}\n */\n }, {\n key: \"getPrefixLength\",\n value: function getPrefixLength() {\n return this.prefixLength;\n }\n\n /**\n * Sets The prefix length of the network to which this host IPv6 address belongs. \n * @param {Number} prefixLength The prefix length of the network to which this host IPv6 address belongs. \n */\n }, {\n key: \"setPrefixLength\",\n value: function setPrefixLength(prefixLength) {\n this.prefixLength = prefixLength;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}), typeof this.getPrefixLength() !== 'undefined' && this.getPrefixLength() !== null ? {\n 'prefixLength': this.getPrefixLength()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}), typeof this.getPrefixLength() !== 'undefined' && this.getPrefixLength() !== null ? {\n 'prefixLength': this.getPrefixLength()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [\"value\"];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"value\") {\n if (typeof this.value === 'undefined' || this.value === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"value\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].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})$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"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})$/\");\n }\n }\n if (property === \"prefixLength\") {\n if (typeof this.prefixLength === 'undefined' || this.prefixLength === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"prefixLength\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].validateMaximum(this.prefixLength, 128)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"prefixLength\", \"does not satisfy required maximum constraint: 128\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].validateMinimum(this.prefixLength, 0)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"prefixLength\", \"does not satisfy required minimum constraint: 0\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new IPv6Address();\n if (data.hasOwnProperty('value') && data.value !== null && data.value !== undefined) {\n obj.setValue(data['value']);\n }\n if (data.hasOwnProperty('prefixLength') && data.prefixLength !== null && data.prefixLength !== undefined) {\n obj.setPrefixLength(data['prefixLength']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}();\n/**\n * The IPv6 address of the host. \n * @memberof IPv6Address\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nIPv6Address.prototype.value = undefined;\n\n/**\n * The prefix length of the network to which this host IPv6 address belongs. \n * @memberof IPv6Address\n * @default 128\n */\nIPv6Address.prototype.prefixLength = 128;\nIPv6Address.prototype.$reserved = undefined;\nIPv6Address.prototype.$objectType = undefined;\nIPv6Address.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/IPv6Address.js?");
310
321
 
311
322
  /***/ }),
312
323
 
@@ -317,7 +328,18 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
317
328
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
318
329
 
319
330
  "use strict";
320
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ KVPair)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The KVPair model module.\n * @module Ntnx/KVPair\n * @version 4.0.1-alpha-2\n * @class KVPair\n */\nvar _KVPair_brand = /*#__PURE__*/new WeakSet();\nvar KVPair = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>KVPair</code>.\n * A map describing a set of keys and their corresponding values. \n * @alias module:Ntnx/KVPair\n */\n function KVPair() {\n _classCallCheck(this, KVPair);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _KVPair_brand);\n this.$objectType = \"common.v1.config.KVPair\";\n this.$reserved = {\n '$fv': \"v1.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>KVPair</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/KVPair} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/KVPair} The populated <code>KVPair</code> instance.\n */\n return _createClass(KVPair, [{\n key: \"getName\",\n value:\n /**\n * Returns The key of this key-value pair\n * @return {}\n */\n function getName() {\n return this.name;\n }\n\n /**\n * Sets The key of this key-value pair\n * @param {} name The key of this key-value pair\n */\n }, {\n key: \"setName\",\n value: function setName(name) {\n this.name = name;\n }\n\n /**\n * Returns The value associated with the key for this key-value pair\n * @return {}\n */\n }, {\n key: \"getValue\",\n value: function getValue() {\n return this.value;\n }\n\n /**\n * Sets The value associated with the key for this key-value pair\n * @param {} value The value associated with the key for this key-value pair\n */\n }, {\n key: \"setValue\",\n value: function setValue(value) {\n this.value = value;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}), typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': typeof this.getValue().toJson !== \"undefined\" ? this.getValue().toJson(false) : Array.isArray(this.getValue()) ? this.getValue().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_KVPair_brand, this, _toJsonMapType).call(this, this.getValue(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}), typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': typeof this.getValue().toJson !== \"undefined\" ? this.getValue().toJson() : Array.isArray(this.getValue()) ? this.getValue().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_KVPair_brand, this, _toJsonMapType).call(this, this.getValue())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"name\") {\n if (typeof this.name === 'undefined' || this.name === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"name\", \"undefined or null\");\n }\n }\n if (property === \"value\") {\n if (typeof this.value === 'undefined' || this.value === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"value\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new KVPair();\n if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {\n obj.setName(data['name']);\n }\n if (data.hasOwnProperty('value') && data.value !== null && data.value !== undefined) {\n if (Array.isArray(data['value'])) {\n if (data['value'].length === 0) {\n obj.setValue([]);\n } else {\n itemArr = [];\n items = data['value'];\n if (items[0].hasOwnProperty('$objectType')) {\n discriminator = items[0]['$objectType'];\n } else {\n discriminator = _typeof(items[0]);\n }\n for (i = 0; i < items.length; i++) {\n switch (discriminator) {\n case 'string':\n itemArr.push(items[i]);\n break;\n case 'number':\n itemArr.push(items[i]);\n break;\n default:\n throw \"Unknown list of type \" + discriminator + \" in data\";\n }\n }\n obj.setValue(itemArr);\n }\n } else {\n if (data['value'].hasOwnProperty('$objectType')) {\n discriminator = data['value']['$objectType'];\n } else {\n discriminator = _typeof(data['value']);\n }\n switch (discriminator) {\n case 'string':\n obj.setValue(data['value']);\n break;\n case 'boolean':\n obj.setValue(data['value']);\n break;\n case 'number':\n obj.setValue(data['value']);\n break;\n case 'object':\n obj.setValue(new Map(Object.entries(data['value'])));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * The key of this key-value pair\n * @memberof KVPair\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nKVPair.prototype.name = undefined;\n\n/**\n * The value associated with the key for this key-value pair\n * @memberof KVPair\n */\nKVPair.prototype.value = undefined;\nKVPair.prototype.$reserved = undefined;\nKVPair.prototype.$objectType = undefined;\nKVPair.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/KVPair.js?");
331
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ KVPair)\n/* harmony export */ });\n/* harmony import */ var _MapOfStringWrapper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MapOfStringWrapper */ \"./target/generated-sources/swagger/src/models/common/v1/config/MapOfStringWrapper.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n/**\n * The KVPair model module.\n * @module Ntnx/KVPair\n * @version 4.0.1\n * @class KVPair\n */\nvar _KVPair_brand = /*#__PURE__*/new WeakSet();\nvar KVPair = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>KVPair</code>.\n * A map describing a set of keys and their corresponding values. \n * @alias module:Ntnx/KVPair\n */\n function KVPair() {\n _classCallCheck(this, KVPair);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _KVPair_brand);\n this.$objectType = \"common.v1.config.KVPair\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v1.r0\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>KVPair</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/KVPair} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/KVPair} The populated <code>KVPair</code> instance.\n */\n return _createClass(KVPair, [{\n key: \"getName\",\n value:\n /**\n * Returns The key of the key-value pair. \n * @return {string}\n */\n function getName() {\n return this.name;\n }\n\n /**\n * Sets The key of the key-value pair. \n * @param {string} name The key of the key-value pair. \n */\n }, {\n key: \"setName\",\n value: function setName(name) {\n this.name = name;\n }\n\n /**\n * Returns The value associated with the key for this key-value pair\n * @return {string | Number | boolean | string[] | Object<string, string> | MapOfStringWrapper[] | integer[]}\n */\n }, {\n key: \"getValue\",\n value: function getValue() {\n return this.value;\n }\n\n /**\n * Sets The value associated with the key for this key-value pair\n * @param {string | Number | boolean | string[] | Object<string, string> | MapOfStringWrapper[] | integer[]} value The value associated with the key for this key-value pair\n */\n }, {\n key: \"setValue\",\n value: function setValue(value) {\n this.value = value;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}), typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': typeof this.getValue().toJson !== \"undefined\" ? this.getValue().toJson(false) : Array.isArray(this.getValue()) ? this.getValue().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_KVPair_brand, this, _toJsonMapType).call(this, this.getValue(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}), typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': typeof this.getValue().toJson !== \"undefined\" ? this.getValue().toJson() : Array.isArray(this.getValue()) ? this.getValue().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_KVPair_brand, this, _toJsonMapType).call(this, this.getValue())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"name\") {\n if (typeof this.name === 'undefined' || this.name === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"name\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__[\"default\"].validateMaxLength(this.name, 128)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"name\", \"does not satisfy required maxLength constraint: 128\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__[\"default\"].validateMinLength(this.name, 3)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"name\", \"does not satisfy required minLength constraint: 3\");\n }\n }\n if (property === \"value\") {\n if (typeof this.value === 'undefined' || this.value === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"value\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new KVPair();\n if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {\n obj.setName(data['name']);\n }\n if (data.hasOwnProperty('value') && data.value !== null && data.value !== undefined) {\n if (Array.isArray(data['value'])) {\n if (data['value'].length === 0) {\n obj.setValue([]);\n } else {\n itemArr = [];\n items = data['value'];\n if (items[0].hasOwnProperty('$objectType')) {\n discriminator = items[0]['$objectType'];\n } else {\n discriminator = _typeof(items[0]);\n }\n for (i = 0; i < items.length; i++) {\n switch (discriminator) {\n case 'string':\n itemArr.push(items[i]);\n break;\n case 'common.v1.config.MapOfStringWrapper':\n item = _MapOfStringWrapper__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n break;\n case 'integer':\n itemArr.push(items[i]);\n break;\n case 'number':\n itemArr.push(items[i]);\n break;\n default:\n throw \"Unknown list of type \" + discriminator + \" in data\";\n }\n }\n obj.setValue(itemArr);\n }\n } else {\n if (data['value'].hasOwnProperty('$objectType')) {\n discriminator = data['value']['$objectType'];\n } else {\n discriminator = _typeof(data['value']);\n }\n switch (discriminator) {\n case 'string':\n obj.setValue(data['value']);\n break;\n case 'boolean':\n obj.setValue(data['value']);\n break;\n case 'number':\n obj.setValue(data['value']);\n break;\n case 'object':\n obj.setValue(new Map(Object.entries(data['value'])));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}();\n/**\n * The key of the key-value pair. \n * @memberof KVPair\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nKVPair.prototype.name = undefined;\n\n/**\n * The value associated with the key for this key-value pair\n * @memberof KVPair\n */\nKVPair.prototype.value = undefined;\nKVPair.prototype.$reserved = undefined;\nKVPair.prototype.$objectType = undefined;\nKVPair.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/KVPair.js?");
332
+
333
+ /***/ }),
334
+
335
+ /***/ "./target/generated-sources/swagger/src/models/common/v1/config/MapOfStringWrapper.js":
336
+ /*!********************************************************************************************!*\
337
+ !*** ./target/generated-sources/swagger/src/models/common/v1/config/MapOfStringWrapper.js ***!
338
+ \********************************************************************************************/
339
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
340
+
341
+ "use strict";
342
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ MapOfStringWrapper)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The MapOfStringWrapper model module.\n * @module Ntnx/MapOfStringWrapper\n * @version 4.0.1\n * @class MapOfStringWrapper\n */\nvar _MapOfStringWrapper_brand = /*#__PURE__*/new WeakSet();\nvar MapOfStringWrapper = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>MapOfStringWrapper</code>.\n * A wrapper schema containing a map with string keys and values. \n * @alias module:Ntnx/MapOfStringWrapper\n */\n function MapOfStringWrapper() {\n _classCallCheck(this, MapOfStringWrapper);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _MapOfStringWrapper_brand);\n this.$objectType = \"common.v1.config.MapOfStringWrapper\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v1.r0\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>MapOfStringWrapper</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/MapOfStringWrapper} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/MapOfStringWrapper} The populated <code>MapOfStringWrapper</code> instance.\n */\n return _createClass(MapOfStringWrapper, [{\n key: \"getMap\",\n value:\n /**\n * Returns A map with string keys and values. \n * @return {Object<string, string>}\n */\n function getMap() {\n return this.map;\n }\n\n /**\n * Sets A map with string keys and values. \n * @param {Object<string, string>} map A map with string keys and values. \n */\n }, {\n key: \"setMap\",\n value: function setMap(map) {\n this.map = map;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread({}, typeof this.getMap() !== 'undefined' && this.getMap() !== null ? {\n 'map': _assertClassBrand(_MapOfStringWrapper_brand, this, _toJsonMapType).call(this, this.getMap(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread({}, typeof this.getMap() !== 'undefined' && this.getMap() !== null ? {\n 'map': _assertClassBrand(_MapOfStringWrapper_brand, this, _toJsonMapType).call(this, this.getMap())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"map\") {\n if (typeof this.map === 'undefined' || this.map === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"map\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new MapOfStringWrapper();\n if (data.hasOwnProperty('map') && data.map !== null && data.map !== undefined) {\n obj.setMap(data['map']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}();\n/**\n * A map with string keys and values. \n * @memberof MapOfStringWrapper\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nMapOfStringWrapper.prototype.map = undefined;\nMapOfStringWrapper.prototype.$reserved = undefined;\nMapOfStringWrapper.prototype.$objectType = undefined;\nMapOfStringWrapper.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/MapOfStringWrapper.js?");
321
343
 
322
344
  /***/ }),
323
345
 
@@ -328,7 +350,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
328
350
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
329
351
 
330
352
  "use strict";
331
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Message)\n/* harmony export */ });\n/* harmony import */ var _MessageSeverity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MessageSeverity */ \"./target/generated-sources/swagger/src/models/common/v1/config/MessageSeverity.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n/**\n * The Message model module.\n * @module Ntnx/Message\n * @version 4.0.1-alpha-2\n * @class Message\n */\nvar _Message_brand = /*#__PURE__*/new WeakSet();\nvar Message = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>Message</code>.\n * @alias module:Ntnx/Message\n */\n function Message() {\n _classCallCheck(this, Message);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _Message_brand);\n this.$objectType = \"common.v1.config.Message\";\n this.$reserved = {\n '$fv': \"v1.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>Message</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/Message} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/Message} The populated <code>Message</code> instance.\n */\n return _createClass(Message, [{\n key: \"getCode\",\n value:\n /**\n * Returns A code that uniquely identifies a message. \n * @return {}\n */\n function getCode() {\n return this.code;\n }\n\n /**\n * Sets A code that uniquely identifies a message. \n * @param {} code A code that uniquely identifies a message. \n */\n }, {\n key: \"setCode\",\n value: function setCode(code) {\n this.code = code;\n }\n\n /**\n * Returns The description of the message. \n * @return {}\n */\n }, {\n key: \"getMessage\",\n value: function getMessage() {\n return this.message;\n }\n\n /**\n * Sets The description of the message. \n * @param {} message The description of the message. \n */\n }, {\n key: \"setMessage\",\n value: function setMessage(message) {\n this.message = message;\n }\n\n /**\n * Returns The locale for the message description. \n * @return {}\n */\n }, {\n key: \"getLocale\",\n value: function getLocale() {\n return this.locale;\n }\n\n /**\n * Sets The locale for the message description. \n * @param {} locale The locale for the message description. \n */\n }, {\n key: \"setLocale\",\n value: function setLocale(locale) {\n this.locale = locale;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getSeverity\",\n value: function getSeverity() {\n return this.severity;\n }\n\n /**\n * @param {} severity\n */\n }, {\n key: \"setSeverity\",\n value: function setSeverity(severity) {\n this.severity = severity;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getCode() !== 'undefined' && this.getCode() !== null ? {\n 'code': this.getCode()\n } : {}), typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}), typeof this.getLocale() !== 'undefined' && this.getLocale() !== null ? {\n 'locale': this.getLocale()\n } : {}), typeof this.getSeverity() !== 'undefined' && this.getSeverity() !== null ? {\n 'severity': this.getSeverity()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getCode() !== 'undefined' && this.getCode() !== null ? {\n 'code': this.getCode()\n } : {}), typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}), typeof this.getLocale() !== 'undefined' && this.getLocale() !== null ? {\n 'locale': this.getLocale()\n } : {}), typeof this.getSeverity() !== 'undefined' && this.getSeverity() !== null ? {\n 'severity': this.getSeverity()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"code\") {\n if (typeof this.code === 'undefined' || this.code === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"code\", \"undefined or null\");\n }\n }\n if (property === \"message\") {\n if (typeof this.message === 'undefined' || this.message === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"message\", \"undefined or null\");\n }\n }\n if (property === \"locale\") {\n if (typeof this.locale === 'undefined' || this.locale === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"locale\", \"undefined or null\");\n }\n }\n if (property === \"severity\") {\n if (typeof this.severity === 'undefined' || this.severity === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"severity\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new Message();\n if (data.hasOwnProperty('code') && data.code !== null && data.code !== undefined) {\n obj.setCode(data['code']);\n }\n if (data.hasOwnProperty('message') && data.message !== null && data.message !== undefined) {\n obj.setMessage(data['message']);\n }\n if (data.hasOwnProperty('locale') && data.locale !== null && data.locale !== undefined) {\n obj.setLocale(data['locale']);\n }\n if (data.hasOwnProperty('severity') && data.severity !== null && data.severity !== undefined) {\n obj.setSeverity(_MessageSeverity__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['severity']));\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * A code that uniquely identifies a message. \n * @memberof Message\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nMessage.prototype.code = undefined;\n\n/**\n * The description of the message. \n * @memberof Message\n */\nMessage.prototype.message = undefined;\n\n/**\n * The locale for the message description. \n * @memberof Message\n * @default 'en_US'\n */\nMessage.prototype.locale = 'en_US';\n\n/**\n * @memberof Message\n */\nMessage.prototype.severity = undefined;\nMessage.prototype.$reserved = undefined;\nMessage.prototype.$objectType = undefined;\nMessage.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/Message.js?");
353
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Message)\n/* harmony export */ });\n/* harmony import */ var _MessageSeverity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MessageSeverity */ \"./target/generated-sources/swagger/src/models/common/v1/config/MessageSeverity.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n/**\n * The Message model module.\n * @module Ntnx/Message\n * @version 4.0.1\n * @class Message\n */\nvar _Message_brand = /*#__PURE__*/new WeakSet();\nvar Message = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>Message</code>.\n * @alias module:Ntnx/Message\n */\n function Message() {\n _classCallCheck(this, Message);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _Message_brand);\n this.$objectType = \"common.v1.config.Message\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v1.r0\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>Message</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/Message} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/Message} The populated <code>Message</code> instance.\n */\n return _createClass(Message, [{\n key: \"getCode\",\n value:\n /**\n * Returns A code that uniquely identifies a message. \n * @return {string}\n */\n function getCode() {\n return this.code;\n }\n\n /**\n * Sets A code that uniquely identifies a message. \n * @param {string} code A code that uniquely identifies a message. \n */\n }, {\n key: \"setCode\",\n value: function setCode(code) {\n this.code = code;\n }\n\n /**\n * Returns The description of the message. \n * @return {string}\n */\n }, {\n key: \"getMessage\",\n value: function getMessage() {\n return this.message;\n }\n\n /**\n * Sets The description of the message. \n * @param {string} message The description of the message. \n */\n }, {\n key: \"setMessage\",\n value: function setMessage(message) {\n this.message = message;\n }\n\n /**\n * Returns The locale for the message description. \n * @return {string}\n */\n }, {\n key: \"getLocale\",\n value: function getLocale() {\n return this.locale;\n }\n\n /**\n * Sets The locale for the message description. \n * @param {string} locale The locale for the message description. \n */\n }, {\n key: \"setLocale\",\n value: function setLocale(locale) {\n this.locale = locale;\n }\n\n /**\n * @return {MessageSeverity}\n */\n }, {\n key: \"getSeverity\",\n value: function getSeverity() {\n return this.severity;\n }\n\n /**\n * @param {MessageSeverity} severity\n */\n }, {\n key: \"setSeverity\",\n value: function setSeverity(severity) {\n this.severity = severity;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getCode() !== 'undefined' && this.getCode() !== null ? {\n 'code': this.getCode()\n } : {}), typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}), typeof this.getLocale() !== 'undefined' && this.getLocale() !== null ? {\n 'locale': this.getLocale()\n } : {}), typeof this.getSeverity() !== 'undefined' && this.getSeverity() !== null ? {\n 'severity': this.getSeverity()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getCode() !== 'undefined' && this.getCode() !== null ? {\n 'code': this.getCode()\n } : {}), typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}), typeof this.getLocale() !== 'undefined' && this.getLocale() !== null ? {\n 'locale': this.getLocale()\n } : {}), typeof this.getSeverity() !== 'undefined' && this.getSeverity() !== null ? {\n 'severity': this.getSeverity()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"code\") {\n if (typeof this.code === 'undefined' || this.code === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"code\", \"undefined or null\");\n }\n }\n if (property === \"message\") {\n if (typeof this.message === 'undefined' || this.message === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"message\", \"undefined or null\");\n }\n }\n if (property === \"locale\") {\n if (typeof this.locale === 'undefined' || this.locale === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"locale\", \"undefined or null\");\n }\n }\n if (property === \"severity\") {\n if (typeof this.severity === 'undefined' || this.severity === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"severity\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new Message();\n if (data.hasOwnProperty('code') && data.code !== null && data.code !== undefined) {\n obj.setCode(data['code']);\n }\n if (data.hasOwnProperty('message') && data.message !== null && data.message !== undefined) {\n obj.setMessage(data['message']);\n }\n if (data.hasOwnProperty('locale') && data.locale !== null && data.locale !== undefined) {\n obj.setLocale(data['locale']);\n }\n if (data.hasOwnProperty('severity') && data.severity !== null && data.severity !== undefined) {\n obj.setSeverity(_MessageSeverity__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['severity']));\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}();\n/**\n * A code that uniquely identifies a message. \n * @memberof Message\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nMessage.prototype.code = undefined;\n\n/**\n * The description of the message. \n * @memberof Message\n */\nMessage.prototype.message = undefined;\n\n/**\n * The locale for the message description. \n * @memberof Message\n * @default 'en_US'\n */\nMessage.prototype.locale = 'en_US';\n\n/**\n * @memberof Message\n */\nMessage.prototype.severity = undefined;\nMessage.prototype.$reserved = undefined;\nMessage.prototype.$objectType = undefined;\nMessage.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/Message.js?");
332
354
 
333
355
  /***/ }),
334
356
 
@@ -339,7 +361,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
339
361
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
340
362
 
341
363
  "use strict";
342
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * Enum class MessageSeverity.\n * @enum {string}\n * @readonly\n */\nvar MessageSeverity = {\n /** \n * value: \"$UNKNOWN\"\n * @const\n */\n $UNKNOWN: \"$UNKNOWN\",\n /** \n * value: \"$REDACTED\"\n * @const\n */\n $REDACTED: \"$REDACTED\",\n /** \n * Information about successful completion.\n * @const\n */\n INFO: \"INFO\",\n /** \n * Warning indicating future error.\n * @const\n */\n WARNING: \"WARNING\",\n /** \n * Error indicating failed completion.\n * @const\n */\n ERROR: \"ERROR\"\n};\n\n/**\n* Returns a <code>MessageSeverity</code> enum value from a JavaScript object name.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {MessageSeverity} The enum <code>MessageSeverity</code> value.\n*/\nMessageSeverity.constructFromObject = function (obj) {\n if (typeof obj === 'string' || obj instanceof String) {\n var enumVal = Object.keys(MessageSeverity).find(function (key) {\n return MessageSeverity[key] === obj;\n });\n return enumVal === undefined || enumVal === null ? MessageSeverity.$UNKNOWN : MessageSeverity[enumVal];\n } else {\n throw new Error(\"Received object name is not an instance of String\");\n }\n};\n\n/**\n* Validates <code>MessageSeverity</code> enum value.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {null} Throws error for invalid value.\n*/\nMessageSeverity.validate = function (obj) {\n switch (obj) {\n case MessageSeverity.$UNKNOWN:\n case MessageSeverity.$REDACTED:\n case MessageSeverity.INFO:\n case MessageSeverity.WARNING:\n case MessageSeverity.ERROR:\n return;\n default:\n throw new Error(\"Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }\");\n }\n};\nObject.freeze(MessageSeverity);\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MessageSeverity);\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/MessageSeverity.js?");
364
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * Enum class MessageSeverity.\n * @enum {string}\n * @readonly\n */\nvar MessageSeverity = {\n /** \n * Unknown value.\n * @const\n */\n $UNKNOWN: \"$UNKNOWN\",\n /** \n * Redacted value.\n * @const\n */\n $REDACTED: \"$REDACTED\",\n /** \n * Information about successful completion.\n * @const\n */\n INFO: \"INFO\",\n /** \n * Warning indicating future error.\n * @const\n */\n WARNING: \"WARNING\",\n /** \n * Error indicating failed completion.\n * @const\n */\n ERROR: \"ERROR\"\n};\n\n/**\n* Returns a <code>MessageSeverity</code> enum value from a JavaScript object name.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {MessageSeverity} The enum <code>MessageSeverity</code> value.\n*/\nMessageSeverity.constructFromObject = function (obj) {\n if (typeof obj === 'string' || obj instanceof String) {\n var enumVal = Object.keys(MessageSeverity).find(function (key) {\n return MessageSeverity[key] === obj;\n });\n return enumVal === undefined || enumVal === null ? MessageSeverity.$UNKNOWN : MessageSeverity[enumVal];\n } else {\n throw new Error(\"Received object name is not an instance of String\");\n }\n};\n\n/**\n* Validates <code>MessageSeverity</code> enum value.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {null} Throws error for invalid value.\n*/\nMessageSeverity.validate = function (obj) {\n switch (obj) {\n case MessageSeverity.$UNKNOWN:\n case MessageSeverity.$REDACTED:\n case MessageSeverity.INFO:\n case MessageSeverity.WARNING:\n case MessageSeverity.ERROR:\n return;\n default:\n throw new Error(\"Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }\");\n }\n};\nObject.freeze(MessageSeverity);\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MessageSeverity);\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/MessageSeverity.js?");
343
365
 
344
366
  /***/ }),
345
367
 
@@ -350,7 +372,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
350
372
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
351
373
 
352
374
  "use strict";
353
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Metadata)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The Metadata model module.\n * @module Ntnx/Metadata\n * @version 4.0.1-alpha-2\n * @class Metadata\n */\nvar _Metadata_brand = /*#__PURE__*/new WeakSet();\nvar Metadata = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>Metadata</code>.\n * Metadata associated with this resource. \n * @alias module:Ntnx/Metadata\n */\n function Metadata() {\n _classCallCheck(this, Metadata);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _Metadata_brand);\n this.$objectType = \"common.v1.config.Metadata\";\n this.$reserved = {\n '$fv': \"v1.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>Metadata</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/Metadata} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/Metadata} The populated <code>Metadata</code> instance.\n */\n return _createClass(Metadata, [{\n key: \"getOwnerReferenceId\",\n value:\n /**\n * Returns A globally unique identifier that represents the owner of this resource. \n * @return {}\n */\n function getOwnerReferenceId() {\n return this.ownerReferenceId;\n }\n\n /**\n * Sets A globally unique identifier that represents the owner of this resource. \n * @param {} ownerReferenceId A globally unique identifier that represents the owner of this resource. \n */\n }, {\n key: \"setOwnerReferenceId\",\n value: function setOwnerReferenceId(ownerReferenceId) {\n this.ownerReferenceId = ownerReferenceId;\n }\n\n /**\n * Returns The userName of the owner of this resource. \n * @return {}\n */\n }, {\n key: \"getOwnerUserName\",\n value: function getOwnerUserName() {\n return this.ownerUserName;\n }\n\n /**\n * Sets The userName of the owner of this resource. \n * @param {} ownerUserName The userName of the owner of this resource. \n */\n }, {\n key: \"setOwnerUserName\",\n value: function setOwnerUserName(ownerUserName) {\n this.ownerUserName = ownerUserName;\n }\n\n /**\n * Returns A globally unique identifier that represents the project this resource belongs to. \n * @return {}\n */\n }, {\n key: \"getProjectReferenceId\",\n value: function getProjectReferenceId() {\n return this.projectReferenceId;\n }\n\n /**\n * Sets A globally unique identifier that represents the project this resource belongs to. \n * @param {} projectReferenceId A globally unique identifier that represents the project this resource belongs to. \n */\n }, {\n key: \"setProjectReferenceId\",\n value: function setProjectReferenceId(projectReferenceId) {\n this.projectReferenceId = projectReferenceId;\n }\n\n /**\n * Returns The name of the project this resource belongs to. \n * @return {}\n */\n }, {\n key: \"getProjectName\",\n value: function getProjectName() {\n return this.projectName;\n }\n\n /**\n * Sets The name of the project this resource belongs to. \n * @param {} projectName The name of the project this resource belongs to. \n */\n }, {\n key: \"setProjectName\",\n value: function setProjectName(projectName) {\n this.projectName = projectName;\n }\n\n /**\n * Returns A list of globally unique identifiers that represent all the categories the resource is associated with. \n * @return {}\n */\n }, {\n key: \"getCategoryIds\",\n value: function getCategoryIds() {\n return this.categoryIds;\n }\n\n /**\n * Sets A list of globally unique identifiers that represent all the categories the resource is associated with. \n * @param {} categoryIds A list of globally unique identifiers that represent all the categories the resource is associated with. \n */\n }, {\n key: \"setCategoryIds\",\n value: function setCategoryIds(categoryIds) {\n this.categoryIds = categoryIds;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getOwnerReferenceId() !== 'undefined' && this.getOwnerReferenceId() !== null ? {\n 'ownerReferenceId': this.getOwnerReferenceId()\n } : {}), typeof this.getOwnerUserName() !== 'undefined' && this.getOwnerUserName() !== null ? {\n 'ownerUserName': this.getOwnerUserName()\n } : {}), typeof this.getProjectReferenceId() !== 'undefined' && this.getProjectReferenceId() !== null ? {\n 'projectReferenceId': this.getProjectReferenceId()\n } : {}), typeof this.getProjectName() !== 'undefined' && this.getProjectName() !== null ? {\n 'projectName': this.getProjectName()\n } : {}), typeof this.getCategoryIds() !== 'undefined' && this.getCategoryIds() !== null ? {\n 'categoryIds': this.getCategoryIds()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getOwnerReferenceId() !== 'undefined' && this.getOwnerReferenceId() !== null ? {\n 'ownerReferenceId': this.getOwnerReferenceId()\n } : {}), typeof this.getOwnerUserName() !== 'undefined' && this.getOwnerUserName() !== null ? {\n 'ownerUserName': this.getOwnerUserName()\n } : {}), typeof this.getProjectReferenceId() !== 'undefined' && this.getProjectReferenceId() !== null ? {\n 'projectReferenceId': this.getProjectReferenceId()\n } : {}), typeof this.getProjectName() !== 'undefined' && this.getProjectName() !== null ? {\n 'projectName': this.getProjectName()\n } : {}), typeof this.getCategoryIds() !== 'undefined' && this.getCategoryIds() !== null ? {\n 'categoryIds': this.getCategoryIds()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"ownerReferenceId\") {\n if (typeof this.ownerReferenceId === 'undefined' || this.ownerReferenceId === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"ownerReferenceId\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"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}$/\");\n }\n }\n if (property === \"ownerUserName\") {\n if (typeof this.ownerUserName === 'undefined' || this.ownerUserName === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"ownerUserName\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].validateMaxLength(this.ownerUserName, 128)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"ownerUserName\", \"does not satisfy required maxLength constraint: 128\");\n }\n }\n if (property === \"projectReferenceId\") {\n if (typeof this.projectReferenceId === 'undefined' || this.projectReferenceId === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"projectReferenceId\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"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}$/\");\n }\n }\n if (property === \"projectName\") {\n if (typeof this.projectName === 'undefined' || this.projectName === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"projectName\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].validateMaxLength(this.projectName, 128)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"projectName\", \"does not satisfy required maxLength constraint: 128\");\n }\n }\n if (property === \"categoryIds\") {\n if (typeof this.categoryIds === 'undefined' || this.categoryIds === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"categoryIds\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new Metadata();\n if (data.hasOwnProperty('ownerReferenceId') && data.ownerReferenceId !== null && data.ownerReferenceId !== undefined) {\n obj.setOwnerReferenceId(data['ownerReferenceId']);\n }\n if (data.hasOwnProperty('ownerUserName') && data.ownerUserName !== null && data.ownerUserName !== undefined) {\n obj.setOwnerUserName(data['ownerUserName']);\n }\n if (data.hasOwnProperty('projectReferenceId') && data.projectReferenceId !== null && data.projectReferenceId !== undefined) {\n obj.setProjectReferenceId(data['projectReferenceId']);\n }\n if (data.hasOwnProperty('projectName') && data.projectName !== null && data.projectName !== undefined) {\n obj.setProjectName(data['projectName']);\n }\n if (data.hasOwnProperty('categoryIds') && data.categoryIds !== null && data.categoryIds !== undefined) {\n itemArr = [];\n items = data.categoryIds;\n for (i = 0; i < items.length; i++) {\n itemArr.push(items[i]);\n }\n obj.setCategoryIds(itemArr);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * A globally unique identifier that represents the owner of this resource. \n * @memberof Metadata\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nMetadata.prototype.ownerReferenceId = undefined;\n\n/**\n * The userName of the owner of this resource. \n * @memberof Metadata\n */\nMetadata.prototype.ownerUserName = undefined;\n\n/**\n * A globally unique identifier that represents the project this resource belongs to. \n * @memberof Metadata\n */\nMetadata.prototype.projectReferenceId = undefined;\n\n/**\n * The name of the project this resource belongs to. \n * @memberof Metadata\n */\nMetadata.prototype.projectName = undefined;\n\n/**\n * A list of globally unique identifiers that represent all the categories the resource is associated with. \n * @memberof Metadata\n */\nMetadata.prototype.categoryIds = undefined;\nMetadata.prototype.$reserved = undefined;\nMetadata.prototype.$objectType = undefined;\nMetadata.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/Metadata.js?");
375
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Metadata)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The Metadata model module.\n * @module Ntnx/Metadata\n * @version 4.0.1\n * @class Metadata\n */\nvar _Metadata_brand = /*#__PURE__*/new WeakSet();\nvar Metadata = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>Metadata</code>.\n * Metadata associated with this resource. \n * @alias module:Ntnx/Metadata\n */\n function Metadata() {\n _classCallCheck(this, Metadata);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _Metadata_brand);\n this.$objectType = \"common.v1.config.Metadata\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v1.r0\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>Metadata</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/Metadata} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/Metadata} The populated <code>Metadata</code> instance.\n */\n return _createClass(Metadata, [{\n key: \"getOwnerReferenceId\",\n value:\n /**\n * Returns A globally unique identifier that represents the owner of this resource. \n * @return {string}\n */\n function getOwnerReferenceId() {\n return this.ownerReferenceId;\n }\n\n /**\n * Sets A globally unique identifier that represents the owner of this resource. \n * @param {string} ownerReferenceId A globally unique identifier that represents the owner of this resource. \n */\n }, {\n key: \"setOwnerReferenceId\",\n value: function setOwnerReferenceId(ownerReferenceId) {\n this.ownerReferenceId = ownerReferenceId;\n }\n\n /**\n * Returns The userName of the owner of this resource. \n * @return {string}\n */\n }, {\n key: \"getOwnerUserName\",\n value: function getOwnerUserName() {\n return this.ownerUserName;\n }\n\n /**\n * Sets The userName of the owner of this resource. \n * @param {string} ownerUserName The userName of the owner of this resource. \n */\n }, {\n key: \"setOwnerUserName\",\n value: function setOwnerUserName(ownerUserName) {\n this.ownerUserName = ownerUserName;\n }\n\n /**\n * Returns A globally unique identifier that represents the project this resource belongs to. \n * @return {string}\n */\n }, {\n key: \"getProjectReferenceId\",\n value: function getProjectReferenceId() {\n return this.projectReferenceId;\n }\n\n /**\n * Sets A globally unique identifier that represents the project this resource belongs to. \n * @param {string} projectReferenceId A globally unique identifier that represents the project this resource belongs to. \n */\n }, {\n key: \"setProjectReferenceId\",\n value: function setProjectReferenceId(projectReferenceId) {\n this.projectReferenceId = projectReferenceId;\n }\n\n /**\n * Returns The name of the project this resource belongs to. \n * @return {string}\n */\n }, {\n key: \"getProjectName\",\n value: function getProjectName() {\n return this.projectName;\n }\n\n /**\n * Sets The name of the project this resource belongs to. \n * @param {string} projectName The name of the project this resource belongs to. \n */\n }, {\n key: \"setProjectName\",\n value: function setProjectName(projectName) {\n this.projectName = projectName;\n }\n\n /**\n * Returns A list of globally unique identifiers that represent all the categories the resource is associated with. \n * @return {string[]}\n */\n }, {\n key: \"getCategoryIds\",\n value: function getCategoryIds() {\n return this.categoryIds;\n }\n\n /**\n * Sets A list of globally unique identifiers that represent all the categories the resource is associated with. \n * @param {string[]} categoryIds A list of globally unique identifiers that represent all the categories the resource is associated with. \n */\n }, {\n key: \"setCategoryIds\",\n value: function setCategoryIds(categoryIds) {\n this.categoryIds = categoryIds;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getOwnerReferenceId() !== 'undefined' && this.getOwnerReferenceId() !== null ? {\n 'ownerReferenceId': this.getOwnerReferenceId()\n } : {}), typeof this.getOwnerUserName() !== 'undefined' && this.getOwnerUserName() !== null ? {\n 'ownerUserName': this.getOwnerUserName()\n } : {}), typeof this.getProjectReferenceId() !== 'undefined' && this.getProjectReferenceId() !== null ? {\n 'projectReferenceId': this.getProjectReferenceId()\n } : {}), typeof this.getProjectName() !== 'undefined' && this.getProjectName() !== null ? {\n 'projectName': this.getProjectName()\n } : {}), typeof this.getCategoryIds() !== 'undefined' && this.getCategoryIds() !== null ? {\n 'categoryIds': this.getCategoryIds()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getOwnerReferenceId() !== 'undefined' && this.getOwnerReferenceId() !== null ? {\n 'ownerReferenceId': this.getOwnerReferenceId()\n } : {}), typeof this.getOwnerUserName() !== 'undefined' && this.getOwnerUserName() !== null ? {\n 'ownerUserName': this.getOwnerUserName()\n } : {}), typeof this.getProjectReferenceId() !== 'undefined' && this.getProjectReferenceId() !== null ? {\n 'projectReferenceId': this.getProjectReferenceId()\n } : {}), typeof this.getProjectName() !== 'undefined' && this.getProjectName() !== null ? {\n 'projectName': this.getProjectName()\n } : {}), typeof this.getCategoryIds() !== 'undefined' && this.getCategoryIds() !== null ? {\n 'categoryIds': this.getCategoryIds()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"ownerReferenceId\") {\n if (typeof this.ownerReferenceId === 'undefined' || this.ownerReferenceId === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"ownerReferenceId\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"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}$/\");\n }\n }\n if (property === \"ownerUserName\") {\n if (typeof this.ownerUserName === 'undefined' || this.ownerUserName === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"ownerUserName\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].validateMaxLength(this.ownerUserName, 128)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"ownerUserName\", \"does not satisfy required maxLength constraint: 128\");\n }\n }\n if (property === \"projectReferenceId\") {\n if (typeof this.projectReferenceId === 'undefined' || this.projectReferenceId === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"projectReferenceId\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"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}$/\");\n }\n }\n if (property === \"projectName\") {\n if (typeof this.projectName === 'undefined' || this.projectName === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"projectName\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].validateMaxLength(this.projectName, 128)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"projectName\", \"does not satisfy required maxLength constraint: 128\");\n }\n }\n if (property === \"categoryIds\") {\n if (typeof this.categoryIds === 'undefined' || this.categoryIds === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"categoryIds\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].validateMaxItems(this.categoryIds, 256)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"categoryIds\", \"does not satisfy required maxItems constraint: 256\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].validateMinItems(this.categoryIds, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"categoryIds\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new Metadata();\n if (data.hasOwnProperty('ownerReferenceId') && data.ownerReferenceId !== null && data.ownerReferenceId !== undefined) {\n obj.setOwnerReferenceId(data['ownerReferenceId']);\n }\n if (data.hasOwnProperty('ownerUserName') && data.ownerUserName !== null && data.ownerUserName !== undefined) {\n obj.setOwnerUserName(data['ownerUserName']);\n }\n if (data.hasOwnProperty('projectReferenceId') && data.projectReferenceId !== null && data.projectReferenceId !== undefined) {\n obj.setProjectReferenceId(data['projectReferenceId']);\n }\n if (data.hasOwnProperty('projectName') && data.projectName !== null && data.projectName !== undefined) {\n obj.setProjectName(data['projectName']);\n }\n if (data.hasOwnProperty('categoryIds') && data.categoryIds !== null && data.categoryIds !== undefined) {\n itemArr = [];\n items = data.categoryIds;\n for (i = 0; i < items.length; i++) {\n itemArr.push(items[i]);\n }\n obj.setCategoryIds(itemArr);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}();\n/**\n * A globally unique identifier that represents the owner of this resource. \n * @memberof Metadata\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nMetadata.prototype.ownerReferenceId = undefined;\n\n/**\n * The userName of the owner of this resource. \n * @memberof Metadata\n */\nMetadata.prototype.ownerUserName = undefined;\n\n/**\n * A globally unique identifier that represents the project this resource belongs to. \n * @memberof Metadata\n */\nMetadata.prototype.projectReferenceId = undefined;\n\n/**\n * The name of the project this resource belongs to. \n * @memberof Metadata\n */\nMetadata.prototype.projectName = undefined;\n\n/**\n * A list of globally unique identifiers that represent all the categories the resource is associated with. \n * @memberof Metadata\n */\nMetadata.prototype.categoryIds = undefined;\nMetadata.prototype.$reserved = undefined;\nMetadata.prototype.$objectType = undefined;\nMetadata.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/Metadata.js?");
354
376
 
355
377
  /***/ }),
356
378
 
@@ -361,7 +383,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
361
383
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
362
384
 
363
385
  "use strict";
364
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TenantAwareModel)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The TenantAwareModel model module.\n * @module Ntnx/TenantAwareModel\n * @version 4.0.1-alpha-2\n * @class TenantAwareModel\n */\nvar _TenantAwareModel_brand = /*#__PURE__*/new WeakSet();\nvar TenantAwareModel = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>TenantAwareModel</code>.\n * A model base class whose instances are bound to a specific tenant. This model adds a tenantId to the base model class that it extends and is automatically set by the server. \n * @alias module:Ntnx/TenantAwareModel\n */\n function TenantAwareModel() {\n _classCallCheck(this, TenantAwareModel);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _TenantAwareModel_brand);\n this.$objectType = \"common.v1.config.TenantAwareModel\";\n this.$reserved = {\n '$fv': \"v1.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>TenantAwareModel</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/TenantAwareModel} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/TenantAwareModel} The populated <code>TenantAwareModel</code> instance.\n */\n return _createClass(TenantAwareModel, [{\n key: \"getTenantId\",\n value:\n /**\n * Returns A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server). \n * @return {}\n */\n function getTenantId() {\n return this.tenantId;\n }\n\n /**\n * Sets A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server). \n * @param {} tenantId A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server). \n */\n }, {\n key: \"setTenantId\",\n value: function setTenantId(tenantId) {\n this.tenantId = tenantId;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread({}, typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n };\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"tenantId\") {\n if (typeof this.tenantId === 'undefined' || this.tenantId === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"tenantId\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"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}$/\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new TenantAwareModel();\n if (data.hasOwnProperty('tenantId') && data.tenantId !== null && data.tenantId !== undefined) {\n obj.setTenantId(data['tenantId']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server). \n * @memberof TenantAwareModel\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nTenantAwareModel.prototype.tenantId = undefined;\nTenantAwareModel.prototype.$reserved = undefined;\nTenantAwareModel.prototype.$objectType = undefined;\nTenantAwareModel.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/TenantAwareModel.js?");
386
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TenantAwareModel)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The TenantAwareModel model module.\n * @module Ntnx/TenantAwareModel\n * @version 4.0.1\n * @class TenantAwareModel\n */\nvar _TenantAwareModel_brand = /*#__PURE__*/new WeakSet();\nvar TenantAwareModel = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>TenantAwareModel</code>.\n * A model base class whose instances are bound to a specific tenant. This model adds a tenantId to the base model class that it extends and is automatically set by the server. \n * @alias module:Ntnx/TenantAwareModel\n */\n function TenantAwareModel() {\n _classCallCheck(this, TenantAwareModel);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _TenantAwareModel_brand);\n this.$objectType = \"common.v1.config.TenantAwareModel\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v1.r0\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>TenantAwareModel</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/TenantAwareModel} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/TenantAwareModel} The populated <code>TenantAwareModel</code> instance.\n */\n return _createClass(TenantAwareModel, [{\n key: \"getTenantId\",\n value:\n /**\n * Returns A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server). \n * @return {string}\n */\n function getTenantId() {\n return this.tenantId;\n }\n\n /**\n * Sets A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server). \n * @param {string} tenantId A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server). \n */\n }, {\n key: \"setTenantId\",\n value: function setTenantId(tenantId) {\n this.tenantId = tenantId;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread({}, typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n };\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"tenantId\") {\n if (typeof this.tenantId === 'undefined' || this.tenantId === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"tenantId\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"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}$/\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new TenantAwareModel();\n if (data.hasOwnProperty('tenantId') && data.tenantId !== null && data.tenantId !== undefined) {\n obj.setTenantId(data['tenantId']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}();\n/**\n * A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server). \n * @memberof TenantAwareModel\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nTenantAwareModel.prototype.tenantId = undefined;\nTenantAwareModel.prototype.$reserved = undefined;\nTenantAwareModel.prototype.$objectType = undefined;\nTenantAwareModel.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/TenantAwareModel.js?");
365
387
 
366
388
  /***/ }),
367
389
 
@@ -372,7 +394,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
372
394
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
373
395
 
374
396
  "use strict";
375
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ApiLink)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The ApiLink model module.\n * @module Ntnx/ApiLink\n * @version 4.0.1-alpha-2\n * @class ApiLink\n */\nvar _ApiLink_brand = /*#__PURE__*/new WeakSet();\nvar ApiLink = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>ApiLink</code>.\n * A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource. \n * @alias module:Ntnx/ApiLink\n */\n function ApiLink() {\n _classCallCheck(this, ApiLink);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _ApiLink_brand);\n this.$objectType = \"common.v1.response.ApiLink\";\n this.$reserved = {\n '$fv': \"v1.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>ApiLink</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ApiLink} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ApiLink} The populated <code>ApiLink</code> instance.\n */\n return _createClass(ApiLink, [{\n key: \"getHref\",\n value:\n /**\n * Returns The URL at which the entity described by the link can be accessed. \n * @return {}\n */\n function getHref() {\n return this.href;\n }\n\n /**\n * Sets The URL at which the entity described by the link can be accessed. \n * @param {} href The URL at which the entity described by the link can be accessed. \n */\n }, {\n key: \"setHref\",\n value: function setHref(href) {\n this.href = href;\n }\n\n /**\n * Returns A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of \\\"self\\\" identifies the URL for the object. \n * @return {}\n */\n }, {\n key: \"getRel\",\n value: function getRel() {\n return this.rel;\n }\n\n /**\n * Sets A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of \\\"self\\\" identifies the URL for the object. \n * @param {} rel A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of \\\"self\\\" identifies the URL for the object. \n */\n }, {\n key: \"setRel\",\n value: function setRel(rel) {\n this.rel = rel;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getHref() !== 'undefined' && this.getHref() !== null ? {\n 'href': this.getHref()\n } : {}), typeof this.getRel() !== 'undefined' && this.getRel() !== null ? {\n 'rel': this.getRel()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getHref() !== 'undefined' && this.getHref() !== null ? {\n 'href': this.getHref()\n } : {}), typeof this.getRel() !== 'undefined' && this.getRel() !== null ? {\n 'rel': this.getRel()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"href\") {\n if (typeof this.href === 'undefined' || this.href === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"href\", \"undefined or null\");\n }\n }\n if (property === \"rel\") {\n if (typeof this.rel === 'undefined' || this.rel === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"rel\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ApiLink();\n if (data.hasOwnProperty('href') && data.href !== null && data.href !== undefined) {\n obj.setHref(data['href']);\n }\n if (data.hasOwnProperty('rel') && data.rel !== null && data.rel !== undefined) {\n obj.setRel(data['rel']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * The URL at which the entity described by the link can be accessed. \n * @memberof ApiLink\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nApiLink.prototype.href = undefined;\n\n/**\n * A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of \\\"self\\\" identifies the URL for the object. \n * @memberof ApiLink\n */\nApiLink.prototype.rel = undefined;\nApiLink.prototype.$reserved = undefined;\nApiLink.prototype.$objectType = undefined;\nApiLink.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js?");
397
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ApiLink)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The ApiLink model module.\n * @module Ntnx/ApiLink\n * @version 4.0.1\n * @class ApiLink\n */\nvar _ApiLink_brand = /*#__PURE__*/new WeakSet();\nvar ApiLink = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>ApiLink</code>.\n * A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource. \n * @alias module:Ntnx/ApiLink\n */\n function ApiLink() {\n _classCallCheck(this, ApiLink);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _ApiLink_brand);\n this.$objectType = \"common.v1.response.ApiLink\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v1.r0\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>ApiLink</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ApiLink} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ApiLink} The populated <code>ApiLink</code> instance.\n */\n return _createClass(ApiLink, [{\n key: \"getHref\",\n value:\n /**\n * Returns The URL at which the entity described by the link can be accessed. \n * @return {string}\n */\n function getHref() {\n return this.href;\n }\n\n /**\n * Sets The URL at which the entity described by the link can be accessed. \n * @param {string} href The URL at which the entity described by the link can be accessed. \n */\n }, {\n key: \"setHref\",\n value: function setHref(href) {\n this.href = href;\n }\n\n /**\n * Returns A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of \\\"self\\\" identifies the URL for the object. \n * @return {string}\n */\n }, {\n key: \"getRel\",\n value: function getRel() {\n return this.rel;\n }\n\n /**\n * Sets A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of \\\"self\\\" identifies the URL for the object. \n * @param {string} rel A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of \\\"self\\\" identifies the URL for the object. \n */\n }, {\n key: \"setRel\",\n value: function setRel(rel) {\n this.rel = rel;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getHref() !== 'undefined' && this.getHref() !== null ? {\n 'href': this.getHref()\n } : {}), typeof this.getRel() !== 'undefined' && this.getRel() !== null ? {\n 'rel': this.getRel()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getHref() !== 'undefined' && this.getHref() !== null ? {\n 'href': this.getHref()\n } : {}), typeof this.getRel() !== 'undefined' && this.getRel() !== null ? {\n 'rel': this.getRel()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"href\") {\n if (typeof this.href === 'undefined' || this.href === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"href\", \"undefined or null\");\n }\n }\n if (property === \"rel\") {\n if (typeof this.rel === 'undefined' || this.rel === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"rel\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ApiLink();\n if (data.hasOwnProperty('href') && data.href !== null && data.href !== undefined) {\n obj.setHref(data['href']);\n }\n if (data.hasOwnProperty('rel') && data.rel !== null && data.rel !== undefined) {\n obj.setRel(data['rel']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}();\n/**\n * The URL at which the entity described by the link can be accessed. \n * @memberof ApiLink\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nApiLink.prototype.href = undefined;\n\n/**\n * A name that identifies the relationship of the link to the object that is returned by the URL. The unique value of \\\"self\\\" identifies the URL for the object. \n * @memberof ApiLink\n */\nApiLink.prototype.rel = undefined;\nApiLink.prototype.$reserved = undefined;\nApiLink.prototype.$objectType = undefined;\nApiLink.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js?");
376
398
 
377
399
  /***/ }),
378
400
 
@@ -383,7 +405,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
383
405
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
384
406
 
385
407
  "use strict";
386
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ApiResponseMetadata)\n/* harmony export */ });\n/* harmony import */ var _config_Flag__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../config/Flag */ \"./target/generated-sources/swagger/src/models/common/v1/config/Flag.js\");\n/* harmony import */ var _config_KVPair__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../config/KVPair */ \"./target/generated-sources/swagger/src/models/common/v1/config/KVPair.js\");\n/* harmony import */ var _config_Message__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config/Message */ \"./target/generated-sources/swagger/src/models/common/v1/config/Message.js\");\n/* harmony import */ var _ApiLink__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ApiLink */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The ApiResponseMetadata model module.\n * @module Ntnx/ApiResponseMetadata\n * @version 4.0.1-alpha-2\n * @class ApiResponseMetadata\n */\nvar _ApiResponseMetadata_brand = /*#__PURE__*/new WeakSet();\nvar ApiResponseMetadata = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>ApiResponseMetadata</code>.\n * The metadata associated with an API response. This value is always present and minimally contains the self-link for the API request that produced this response. It also contains pagination data for the paginated requests. \n * @alias module:Ntnx/ApiResponseMetadata\n */\n function ApiResponseMetadata() {\n _classCallCheck(this, ApiResponseMetadata);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _ApiResponseMetadata_brand);\n this.$objectType = \"common.v1.response.ApiResponseMetadata\";\n this.$reserved = {\n '$fv': \"v1.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>ApiResponseMetadata</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ApiResponseMetadata} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ApiResponseMetadata} The populated <code>ApiResponseMetadata</code> instance.\n */\n return _createClass(ApiResponseMetadata, [{\n key: \"getFlags\",\n value:\n /**\n * Returns An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated. \n * @return {}\n */\n function getFlags() {\n return this.flags;\n }\n\n /**\n * Sets An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated. \n * @param {} flags An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated. \n */\n }, {\n key: \"setFlags\",\n value: function setFlags(flags) {\n this.flags = flags;\n }\n\n /**\n * Returns An array of HATEOAS style links for the response that may also include pagination links for list operations. \n * @return {}\n */\n }, {\n key: \"getLinks\",\n value: function getLinks() {\n return this.links;\n }\n\n /**\n * Sets An array of HATEOAS style links for the response that may also include pagination links for list operations. \n * @param {} links An array of HATEOAS style links for the response that may also include pagination links for list operations. \n */\n }, {\n key: \"setLinks\",\n value: function setLinks(links) {\n this.links = links;\n }\n\n /**\n * Returns The total number of entities that are available on the server for this type. \n * @return {}\n */\n }, {\n key: \"getTotalAvailableResults\",\n value: function getTotalAvailableResults() {\n return this.totalAvailableResults;\n }\n\n /**\n * Sets The total number of entities that are available on the server for this type. \n * @param {} totalAvailableResults The total number of entities that are available on the server for this type. \n */\n }, {\n key: \"setTotalAvailableResults\",\n value: function setTotalAvailableResults(totalAvailableResults) {\n this.totalAvailableResults = totalAvailableResults;\n }\n\n /**\n * Returns Information, Warning or Error messages that might provide additional contextual information related to the operation. \n * @return {}\n */\n }, {\n key: \"getMessages\",\n value: function getMessages() {\n return this.messages;\n }\n\n /**\n * Sets Information, Warning or Error messages that might provide additional contextual information related to the operation. \n * @param {} messages Information, Warning or Error messages that might provide additional contextual information related to the operation. \n */\n }, {\n key: \"setMessages\",\n value: function setMessages(messages) {\n this.messages = messages;\n }\n\n /**\n * Returns An array of entity-specific metadata \n * @return {}\n */\n }, {\n key: \"getExtraInfo\",\n value: function getExtraInfo() {\n return this.extraInfo;\n }\n\n /**\n * Sets An array of entity-specific metadata \n * @param {} extraInfo An array of entity-specific metadata \n */\n }, {\n key: \"setExtraInfo\",\n value: function setExtraInfo(extraInfo) {\n this.extraInfo = extraInfo;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getFlags() !== 'undefined' && this.getFlags() !== null ? {\n 'flags': this.getFlags().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTotalAvailableResults() !== 'undefined' && this.getTotalAvailableResults() !== null ? {\n 'totalAvailableResults': this.getTotalAvailableResults()\n } : {}), typeof this.getMessages() !== 'undefined' && this.getMessages() !== null ? {\n 'messages': this.getMessages().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getExtraInfo() !== 'undefined' && this.getExtraInfo() !== null ? {\n 'extraInfo': this.getExtraInfo().map(function (item) {\n return item.toJson(false);\n })\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getFlags() !== 'undefined' && this.getFlags() !== null ? {\n 'flags': this.getFlags().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTotalAvailableResults() !== 'undefined' && this.getTotalAvailableResults() !== null ? {\n 'totalAvailableResults': this.getTotalAvailableResults()\n } : {}), typeof this.getMessages() !== 'undefined' && this.getMessages() !== null ? {\n 'messages': this.getMessages().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getExtraInfo() !== 'undefined' && this.getExtraInfo() !== null ? {\n 'extraInfo': this.getExtraInfo().map(function (item) {\n return item.toJson(false);\n })\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_4__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"flags\") {\n if (typeof this.flags === 'undefined' || this.flags === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"flags\", \"undefined or null\");\n }\n }\n if (property === \"links\") {\n if (typeof this.links === 'undefined' || this.links === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"links\", \"undefined or null\");\n }\n }\n if (property === \"totalAvailableResults\") {\n if (typeof this.totalAvailableResults === 'undefined' || this.totalAvailableResults === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"totalAvailableResults\", \"undefined or null\");\n }\n }\n if (property === \"messages\") {\n if (typeof this.messages === 'undefined' || this.messages === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"messages\", \"undefined or null\");\n }\n }\n if (property === \"extraInfo\") {\n if (typeof this.extraInfo === 'undefined' || this.extraInfo === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"extraInfo\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ApiResponseMetadata();\n if (data.hasOwnProperty('flags') && data.flags !== null && data.flags !== undefined) {\n itemArr = [];\n items = data.flags;\n for (i = 0; i < items.length; i++) {\n item = _config_Flag__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setFlags(itemArr);\n }\n if (data.hasOwnProperty('links') && data.links !== null && data.links !== undefined) {\n itemArr = [];\n items = data.links;\n for (i = 0; i < items.length; i++) {\n item = _ApiLink__WEBPACK_IMPORTED_MODULE_3__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setLinks(itemArr);\n }\n if (data.hasOwnProperty('totalAvailableResults') && data.totalAvailableResults !== null && data.totalAvailableResults !== undefined) {\n obj.setTotalAvailableResults(data['totalAvailableResults']);\n }\n if (data.hasOwnProperty('messages') && data.messages !== null && data.messages !== undefined) {\n itemArr = [];\n items = data.messages;\n for (i = 0; i < items.length; i++) {\n item = _config_Message__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setMessages(itemArr);\n }\n if (data.hasOwnProperty('extraInfo') && data.extraInfo !== null && data.extraInfo !== undefined) {\n itemArr = [];\n items = data.extraInfo;\n for (i = 0; i < items.length; i++) {\n item = _config_KVPair__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setExtraInfo(itemArr);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated. \n * @memberof ApiResponseMetadata\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nApiResponseMetadata.prototype.flags = undefined;\n\n/**\n * An array of HATEOAS style links for the response that may also include pagination links for list operations. \n * @memberof ApiResponseMetadata\n */\nApiResponseMetadata.prototype.links = undefined;\n\n/**\n * The total number of entities that are available on the server for this type. \n * @memberof ApiResponseMetadata\n */\nApiResponseMetadata.prototype.totalAvailableResults = undefined;\n\n/**\n * Information, Warning or Error messages that might provide additional contextual information related to the operation. \n * @memberof ApiResponseMetadata\n */\nApiResponseMetadata.prototype.messages = undefined;\n\n/**\n * An array of entity-specific metadata \n * @memberof ApiResponseMetadata\n */\nApiResponseMetadata.prototype.extraInfo = undefined;\nApiResponseMetadata.prototype.$reserved = undefined;\nApiResponseMetadata.prototype.$objectType = undefined;\nApiResponseMetadata.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js?");
408
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ApiResponseMetadata)\n/* harmony export */ });\n/* harmony import */ var _config_Flag__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../config/Flag */ \"./target/generated-sources/swagger/src/models/common/v1/config/Flag.js\");\n/* harmony import */ var _config_KVPair__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../config/KVPair */ \"./target/generated-sources/swagger/src/models/common/v1/config/KVPair.js\");\n/* harmony import */ var _config_Message__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config/Message */ \"./target/generated-sources/swagger/src/models/common/v1/config/Message.js\");\n/* harmony import */ var _ApiLink__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ApiLink */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The ApiResponseMetadata model module.\n * @module Ntnx/ApiResponseMetadata\n * @version 4.0.1\n * @class ApiResponseMetadata\n */\nvar _ApiResponseMetadata_brand = /*#__PURE__*/new WeakSet();\nvar ApiResponseMetadata = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>ApiResponseMetadata</code>.\n * The metadata associated with an API response. This value is always present and minimally contains the self-link for the API request that produced this response. It also contains pagination data for the paginated requests. \n * @alias module:Ntnx/ApiResponseMetadata\n */\n function ApiResponseMetadata() {\n _classCallCheck(this, ApiResponseMetadata);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _ApiResponseMetadata_brand);\n this.$objectType = \"common.v1.response.ApiResponseMetadata\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v1.r0\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>ApiResponseMetadata</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ApiResponseMetadata} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ApiResponseMetadata} The populated <code>ApiResponseMetadata</code> instance.\n */\n return _createClass(ApiResponseMetadata, [{\n key: \"getFlags\",\n value:\n /**\n * Returns An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated. \n * @return {Flag[]}\n */\n function getFlags() {\n return this.flags;\n }\n\n /**\n * Sets An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated. \n * @param {Flag[]} flags An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated. \n */\n }, {\n key: \"setFlags\",\n value: function setFlags(flags) {\n this.flags = flags;\n }\n\n /**\n * Returns An array of HATEOAS style links for the response that may also include pagination links for list operations. \n * @return {ApiLink[]}\n */\n }, {\n key: \"getLinks\",\n value: function getLinks() {\n return this.links;\n }\n\n /**\n * Sets An array of HATEOAS style links for the response that may also include pagination links for list operations. \n * @param {ApiLink[]} links An array of HATEOAS style links for the response that may also include pagination links for list operations. \n */\n }, {\n key: \"setLinks\",\n value: function setLinks(links) {\n this.links = links;\n }\n\n /**\n * Returns The total number of entities that are available on the server for this type. \n * @return {Number}\n */\n }, {\n key: \"getTotalAvailableResults\",\n value: function getTotalAvailableResults() {\n return this.totalAvailableResults;\n }\n\n /**\n * Sets The total number of entities that are available on the server for this type. \n * @param {Number} totalAvailableResults The total number of entities that are available on the server for this type. \n */\n }, {\n key: \"setTotalAvailableResults\",\n value: function setTotalAvailableResults(totalAvailableResults) {\n this.totalAvailableResults = totalAvailableResults;\n }\n\n /**\n * Returns Information, Warning or Error messages that might provide additional contextual information related to the operation. \n * @return {Message[]}\n */\n }, {\n key: \"getMessages\",\n value: function getMessages() {\n return this.messages;\n }\n\n /**\n * Sets Information, Warning or Error messages that might provide additional contextual information related to the operation. \n * @param {Message[]} messages Information, Warning or Error messages that might provide additional contextual information related to the operation. \n */\n }, {\n key: \"setMessages\",\n value: function setMessages(messages) {\n this.messages = messages;\n }\n\n /**\n * Returns An array of entity-specific metadata \n * @return {KVPair[]}\n */\n }, {\n key: \"getExtraInfo\",\n value: function getExtraInfo() {\n return this.extraInfo;\n }\n\n /**\n * Sets An array of entity-specific metadata \n * @param {KVPair[]} extraInfo An array of entity-specific metadata \n */\n }, {\n key: \"setExtraInfo\",\n value: function setExtraInfo(extraInfo) {\n this.extraInfo = extraInfo;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getFlags() !== 'undefined' && this.getFlags() !== null ? {\n 'flags': this.getFlags().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTotalAvailableResults() !== 'undefined' && this.getTotalAvailableResults() !== null ? {\n 'totalAvailableResults': this.getTotalAvailableResults()\n } : {}), typeof this.getMessages() !== 'undefined' && this.getMessages() !== null ? {\n 'messages': this.getMessages().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getExtraInfo() !== 'undefined' && this.getExtraInfo() !== null ? {\n 'extraInfo': this.getExtraInfo().map(function (item) {\n return item.toJson(false);\n })\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getFlags() !== 'undefined' && this.getFlags() !== null ? {\n 'flags': this.getFlags().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTotalAvailableResults() !== 'undefined' && this.getTotalAvailableResults() !== null ? {\n 'totalAvailableResults': this.getTotalAvailableResults()\n } : {}), typeof this.getMessages() !== 'undefined' && this.getMessages() !== null ? {\n 'messages': this.getMessages().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getExtraInfo() !== 'undefined' && this.getExtraInfo() !== null ? {\n 'extraInfo': this.getExtraInfo().map(function (item) {\n return item.toJson(false);\n })\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_4__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"flags\") {\n if (typeof this.flags === 'undefined' || this.flags === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"flags\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__[\"default\"].validateMaxItems(this.flags, 20)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"flags\", \"does not satisfy required maxItems constraint: 20\");\n }\n }\n if (property === \"links\") {\n if (typeof this.links === 'undefined' || this.links === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"links\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__[\"default\"].validateMaxItems(this.links, 20)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"links\", \"does not satisfy required maxItems constraint: 20\");\n }\n }\n if (property === \"totalAvailableResults\") {\n if (typeof this.totalAvailableResults === 'undefined' || this.totalAvailableResults === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"totalAvailableResults\", \"undefined or null\");\n }\n }\n if (property === \"messages\") {\n if (typeof this.messages === 'undefined' || this.messages === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"messages\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__[\"default\"].validateMaxItems(this.messages, 20)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"messages\", \"does not satisfy required maxItems constraint: 20\");\n }\n }\n if (property === \"extraInfo\") {\n if (typeof this.extraInfo === 'undefined' || this.extraInfo === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"extraInfo\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__[\"default\"].validateMaxItems(this.extraInfo, 20)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"extraInfo\", \"does not satisfy required maxItems constraint: 20\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ApiResponseMetadata();\n if (data.hasOwnProperty('flags') && data.flags !== null && data.flags !== undefined) {\n itemArr = [];\n items = data.flags;\n for (i = 0; i < items.length; i++) {\n item = _config_Flag__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setFlags(itemArr);\n }\n if (data.hasOwnProperty('links') && data.links !== null && data.links !== undefined) {\n itemArr = [];\n items = data.links;\n for (i = 0; i < items.length; i++) {\n item = _ApiLink__WEBPACK_IMPORTED_MODULE_3__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setLinks(itemArr);\n }\n if (data.hasOwnProperty('totalAvailableResults') && data.totalAvailableResults !== null && data.totalAvailableResults !== undefined) {\n obj.setTotalAvailableResults(data['totalAvailableResults']);\n }\n if (data.hasOwnProperty('messages') && data.messages !== null && data.messages !== undefined) {\n itemArr = [];\n items = data.messages;\n for (i = 0; i < items.length; i++) {\n item = _config_Message__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setMessages(itemArr);\n }\n if (data.hasOwnProperty('extraInfo') && data.extraInfo !== null && data.extraInfo !== undefined) {\n itemArr = [];\n items = data.extraInfo;\n for (i = 0; i < items.length; i++) {\n item = _config_KVPair__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setExtraInfo(itemArr);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}();\n/**\n * An array of flags that may indicate the status of the response. For example, a flag with the name 'isPaginated' and value 'false', indicates that the response is not paginated. \n * @memberof ApiResponseMetadata\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nApiResponseMetadata.prototype.flags = undefined;\n\n/**\n * An array of HATEOAS style links for the response that may also include pagination links for list operations. \n * @memberof ApiResponseMetadata\n */\nApiResponseMetadata.prototype.links = undefined;\n\n/**\n * The total number of entities that are available on the server for this type. \n * @memberof ApiResponseMetadata\n */\nApiResponseMetadata.prototype.totalAvailableResults = undefined;\n\n/**\n * Information, Warning or Error messages that might provide additional contextual information related to the operation. \n * @memberof ApiResponseMetadata\n */\nApiResponseMetadata.prototype.messages = undefined;\n\n/**\n * An array of entity-specific metadata \n * @memberof ApiResponseMetadata\n */\nApiResponseMetadata.prototype.extraInfo = undefined;\nApiResponseMetadata.prototype.$reserved = undefined;\nApiResponseMetadata.prototype.$objectType = undefined;\nApiResponseMetadata.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js?");
387
409
 
388
410
  /***/ }),
389
411
 
@@ -394,161 +416,260 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
394
416
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
395
417
 
396
418
  "use strict";
397
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ExternalizableAbstractModel)\n/* harmony export */ });\n/* harmony import */ var _config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../config/TenantAwareModel */ \"./target/generated-sources/swagger/src/models/common/v1/config/TenantAwareModel.js\");\n/* harmony import */ var _ApiLink__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ApiLink */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n/**\n * The ExternalizableAbstractModel model module.\n * @module Ntnx/ExternalizableAbstractModel\n * @version 4.0.1-alpha-2\n * @class ExternalizableAbstractModel\n */\nvar _ExternalizableAbstractModel_brand = /*#__PURE__*/new WeakSet();\nvar ExternalizableAbstractModel = /*#__PURE__*/function (_TenantAwareModel) {\n /**\n * Constructs a new <code>ExternalizableAbstractModel</code>.\n * A model that represents an object instance that is accessible through an API endpoint. Instances of this type get an extId field that contains the globally unique identifier for that instance. Externally accessible instances are always tenant aware and, therefore, extend the TenantAwareModel \n * @alias module:Ntnx/ExternalizableAbstractModel\n * @extends module:Ntnx/TenantAwareModel\n */\n function ExternalizableAbstractModel() {\n var _this;\n _classCallCheck(this, ExternalizableAbstractModel);\n _this = _callSuper(this, ExternalizableAbstractModel);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _ExternalizableAbstractModel_brand);\n _this.$objectType = \"common.v1.response.ExternalizableAbstractModel\";\n _this.$reserved = {\n '$fv': \"v1.r0.b1\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>ExternalizableAbstractModel</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ExternalizableAbstractModel} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ExternalizableAbstractModel} The populated <code>ExternalizableAbstractModel</code> instance.\n */\n _inherits(ExternalizableAbstractModel, _TenantAwareModel);\n return _createClass(ExternalizableAbstractModel, [{\n key: \"getExtId\",\n value:\n /**\n * Returns A globally unique identifier of an instance that is suitable for external consumption. \n * @return {}\n */\n function getExtId() {\n return this.extId;\n }\n\n /**\n * Sets A globally unique identifier of an instance that is suitable for external consumption. \n * @param {} extId A globally unique identifier of an instance that is suitable for external consumption. \n */\n }, {\n key: \"setExtId\",\n value: function setExtId(extId) {\n this.extId = extId;\n }\n\n /**\n * Returns A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource. \n * @return {}\n */\n }, {\n key: \"getLinks\",\n value: function getLinks() {\n return this.links;\n }\n\n /**\n * Sets A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource. \n * @param {} links A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource. \n */\n }, {\n key: \"setLinks\",\n value: function setLinks(links) {\n this.links = links;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread({}, typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"extId\") {\n if (typeof this.extId === 'undefined' || this.extId === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"extId\", \"undefined or null\");\n }\n if (typeof scope === 'undefined' || scope === null) {\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"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}$/\");\n }\n } else if (scope === _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__[\"default\"].update) {\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"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}$/\");\n }\n }\n }\n if (property === \"links\") {\n if (typeof this.links === 'undefined' || this.links === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"links\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ExternalizableAbstractModel();\n _config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data, obj, true);\n if (data.hasOwnProperty('extId') && data.extId !== null && data.extId !== undefined) {\n obj.setExtId(data['extId']);\n }\n if (data.hasOwnProperty('links') && data.links !== null && data.links !== undefined) {\n itemArr = [];\n items = data.links;\n for (i = 0; i < items.length; i++) {\n item = _ApiLink__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setLinks(itemArr);\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n/**\n * A globally unique identifier of an instance that is suitable for external consumption. \n * @memberof ExternalizableAbstractModel\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nExternalizableAbstractModel.prototype.extId = undefined;\n\n/**\n * A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource. \n * @memberof ExternalizableAbstractModel\n */\nExternalizableAbstractModel.prototype.links = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/response/ExternalizableAbstractModel.js?");
419
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ExternalizableAbstractModel)\n/* harmony export */ });\n/* harmony import */ var _config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../config/TenantAwareModel */ \"./target/generated-sources/swagger/src/models/common/v1/config/TenantAwareModel.js\");\n/* harmony import */ var _ApiLink__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ApiLink */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\nfunction _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\nfunction _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\nfunction _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n/**\n * The ExternalizableAbstractModel model module.\n * @module Ntnx/ExternalizableAbstractModel\n * @version 4.0.1\n * @class ExternalizableAbstractModel\n * @extends TenantAwareModel\n */\nvar _ExternalizableAbstractModel_brand = /*#__PURE__*/new WeakSet();\nvar ExternalizableAbstractModel = /*#__PURE__*/function (_TenantAwareModel) {\n /**\n * Constructs a new <code>ExternalizableAbstractModel</code>.\n * A model that represents an object instance that is accessible through an API endpoint. Instances of this type get an extId field that contains the globally unique identifier for that instance. Externally accessible instances are always tenant aware and, therefore, extend the TenantAwareModel \n * @alias module:Ntnx/ExternalizableAbstractModel\n * @extends module:Ntnx/TenantAwareModel\n */\n function ExternalizableAbstractModel() {\n var _this;\n _classCallCheck(this, ExternalizableAbstractModel);\n _this = _callSuper(this, ExternalizableAbstractModel);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _ExternalizableAbstractModel_brand);\n _this.$objectType = \"common.v1.response.ExternalizableAbstractModel\";\n /** @type {object<string, any>} */\n _this.$reserved = {\n '$fv': \"v1.r0\"\n };\n /** @type {object<string, any>} */\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>ExternalizableAbstractModel</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ExternalizableAbstractModel} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ExternalizableAbstractModel} The populated <code>ExternalizableAbstractModel</code> instance.\n */\n _inherits(ExternalizableAbstractModel, _TenantAwareModel);\n return _createClass(ExternalizableAbstractModel, [{\n key: \"getExtId\",\n value:\n /**\n * Returns A globally unique identifier of an instance that is suitable for external consumption. \n * @return {string}\n */\n function getExtId() {\n return this.extId;\n }\n\n /**\n * Sets A globally unique identifier of an instance that is suitable for external consumption. \n * @param {string} extId A globally unique identifier of an instance that is suitable for external consumption. \n */\n }, {\n key: \"setExtId\",\n value: function setExtId(extId) {\n this.extId = extId;\n }\n\n /**\n * Returns A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource. \n * @return {ApiLink[]}\n */\n }, {\n key: \"getLinks\",\n value: function getLinks() {\n return this.links;\n }\n\n /**\n * Sets A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource. \n * @param {ApiLink[]} links A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource. \n */\n }, {\n key: \"setLinks\",\n value: function setLinks(links) {\n this.links = links;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n };\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"extId\") {\n if (typeof this.extId === 'undefined' || this.extId === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"extId\", \"undefined or null\");\n }\n if (typeof scope === 'undefined' || scope === null) {\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"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}$/\");\n }\n } else if (scope === _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__[\"default\"].update) {\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"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}$/\");\n }\n }\n }\n if (property === \"links\") {\n if (typeof this.links === 'undefined' || this.links === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"links\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__[\"default\"].validateMaxItems(this.links, 20)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"links\", \"does not satisfy required maxItems constraint: 20\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ExternalizableAbstractModel();\n _config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data, obj, true);\n if (data.hasOwnProperty('extId') && data.extId !== null && data.extId !== undefined) {\n obj.setExtId(data['extId']);\n }\n if (data.hasOwnProperty('links') && data.links !== null && data.links !== undefined) {\n itemArr = [];\n items = data.links;\n for (i = 0; i < items.length; i++) {\n item = _ApiLink__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setLinks(itemArr);\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}(_config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n/**\n * A globally unique identifier of an instance that is suitable for external consumption. \n * @memberof ExternalizableAbstractModel\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nExternalizableAbstractModel.prototype.extId = undefined;\n\n/**\n * A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource. \n * @memberof ExternalizableAbstractModel\n */\nExternalizableAbstractModel.prototype.links = undefined;\n\n/**\n * A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server). \n * @memberof ExternalizableAbstractModel\n */\n_config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].prototype.tenantId = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/response/ExternalizableAbstractModel.js?");
398
420
 
399
421
  /***/ }),
400
422
 
401
- /***/ "./target/generated-sources/swagger/src/models/objects/v4/error/AppMessage.js":
402
- /*!************************************************************************************!*\
403
- !*** ./target/generated-sources/swagger/src/models/objects/v4/error/AppMessage.js ***!
404
- \************************************************************************************/
423
+ /***/ "./target/generated-sources/swagger/src/models/common/v1/stats/DownSamplingOperator.js":
424
+ /*!*********************************************************************************************!*\
425
+ !*** ./target/generated-sources/swagger/src/models/common/v1/stats/DownSamplingOperator.js ***!
426
+ \*********************************************************************************************/
405
427
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
406
428
 
407
429
  "use strict";
408
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ AppMessage)\n/* harmony export */ });\n/* harmony import */ var _common_v1_config_MessageSeverity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/config/MessageSeverity */ \"./target/generated-sources/swagger/src/models/common/v1/config/MessageSeverity.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n/**\n * The AppMessage model module.\n * @module Ntnx/AppMessage\n * @version 4.0.1-alpha-2\n * @class AppMessage\n */\nvar _AppMessage_brand = /*#__PURE__*/new WeakSet();\nvar AppMessage = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>AppMessage</code>.\n * Message with associated severity describing status of the current operation.\n * @alias module:Ntnx/AppMessage\n */\n function AppMessage() {\n _classCallCheck(this, AppMessage);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _AppMessage_brand);\n this.$objectType = \"objects.v4.error.AppMessage\";\n this.$reserved = {\n '$fv': \"v4.r0.a2\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>AppMessage</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/AppMessage} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/AppMessage} The populated <code>AppMessage</code> instance.\n */\n return _createClass(AppMessage, [{\n key: \"getMessage\",\n value:\n /**\n * Returns The message string.\n * @return {}\n */\n function getMessage() {\n return this.message;\n }\n\n /**\n * Sets The message string.\n * @param {} message The message string.\n */\n }, {\n key: \"setMessage\",\n value: function setMessage(message) {\n this.message = message;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getSeverity\",\n value: function getSeverity() {\n return this.severity;\n }\n\n /**\n * @param {} severity\n */\n }, {\n key: \"setSeverity\",\n value: function setSeverity(severity) {\n this.severity = severity;\n }\n\n /**\n * Returns The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000\n * @return {}\n */\n }, {\n key: \"getCode\",\n value: function getCode() {\n return this.code;\n }\n\n /**\n * Sets The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000\n * @param {} code The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000\n */\n }, {\n key: \"setCode\",\n value: function setCode(code) {\n this.code = code;\n }\n\n /**\n * Returns Locale for this message. The default locale would be 'en-US'.\n * @return {}\n */\n }, {\n key: \"getLocale\",\n value: function getLocale() {\n return this.locale;\n }\n\n /**\n * Sets Locale for this message. The default locale would be 'en-US'.\n * @param {} locale Locale for this message. The default locale would be 'en-US'.\n */\n }, {\n key: \"setLocale\",\n value: function setLocale(locale) {\n this.locale = locale;\n }\n\n /**\n * Returns The error group associated with this message of severity ERROR.\n * @return {}\n */\n }, {\n key: \"getErrorGroup\",\n value: function getErrorGroup() {\n return this.errorGroup;\n }\n\n /**\n * Sets The error group associated with this message of severity ERROR.\n * @param {} errorGroup The error group associated with this message of severity ERROR.\n */\n }, {\n key: \"setErrorGroup\",\n value: function setErrorGroup(errorGroup) {\n this.errorGroup = errorGroup;\n }\n\n /**\n * Returns The map of argument name to value.\n * @return {}\n */\n }, {\n key: \"getArgumentsMap\",\n value: function getArgumentsMap() {\n return this.argumentsMap;\n }\n\n /**\n * Sets The map of argument name to value.\n * @param {} argumentsMap The map of argument name to value.\n */\n }, {\n key: \"setArgumentsMap\",\n value: function setArgumentsMap(argumentsMap) {\n this.argumentsMap = argumentsMap;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}), typeof this.getSeverity() !== 'undefined' && this.getSeverity() !== null ? {\n 'severity': this.getSeverity()\n } : {}), typeof this.getCode() !== 'undefined' && this.getCode() !== null ? {\n 'code': this.getCode()\n } : {}), typeof this.getLocale() !== 'undefined' && this.getLocale() !== null ? {\n 'locale': this.getLocale()\n } : {}), typeof this.getErrorGroup() !== 'undefined' && this.getErrorGroup() !== null ? {\n 'errorGroup': this.getErrorGroup()\n } : {}), typeof this.getArgumentsMap() !== 'undefined' && this.getArgumentsMap() !== null ? {\n 'argumentsMap': _assertClassBrand(_AppMessage_brand, this, _toJsonMapType).call(this, this.getArgumentsMap(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}), typeof this.getSeverity() !== 'undefined' && this.getSeverity() !== null ? {\n 'severity': this.getSeverity()\n } : {}), typeof this.getCode() !== 'undefined' && this.getCode() !== null ? {\n 'code': this.getCode()\n } : {}), typeof this.getLocale() !== 'undefined' && this.getLocale() !== null ? {\n 'locale': this.getLocale()\n } : {}), typeof this.getErrorGroup() !== 'undefined' && this.getErrorGroup() !== null ? {\n 'errorGroup': this.getErrorGroup()\n } : {}), typeof this.getArgumentsMap() !== 'undefined' && this.getArgumentsMap() !== null ? {\n 'argumentsMap': _assertClassBrand(_AppMessage_brand, this, _toJsonMapType).call(this, this.getArgumentsMap())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"message\") {\n if (typeof this.message === 'undefined' || this.message === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"message\", \"undefined or null\");\n }\n }\n if (property === \"severity\") {\n if (typeof this.severity === 'undefined' || this.severity === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"severity\", \"undefined or null\");\n }\n }\n if (property === \"code\") {\n if (typeof this.code === 'undefined' || this.code === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"code\", \"undefined or null\");\n }\n }\n if (property === \"locale\") {\n if (typeof this.locale === 'undefined' || this.locale === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"locale\", \"undefined or null\");\n }\n }\n if (property === \"errorGroup\") {\n if (typeof this.errorGroup === 'undefined' || this.errorGroup === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"errorGroup\", \"undefined or null\");\n }\n }\n if (property === \"argumentsMap\") {\n if (typeof this.argumentsMap === 'undefined' || this.argumentsMap === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"argumentsMap\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new AppMessage();\n if (data.hasOwnProperty('message') && data.message !== null && data.message !== undefined) {\n obj.setMessage(data['message']);\n }\n if (data.hasOwnProperty('severity') && data.severity !== null && data.severity !== undefined) {\n obj.setSeverity(_common_v1_config_MessageSeverity__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['severity']));\n }\n if (data.hasOwnProperty('code') && data.code !== null && data.code !== undefined) {\n obj.setCode(data['code']);\n }\n if (data.hasOwnProperty('locale') && data.locale !== null && data.locale !== undefined) {\n obj.setLocale(data['locale']);\n }\n if (data.hasOwnProperty('errorGroup') && data.errorGroup !== null && data.errorGroup !== undefined) {\n obj.setErrorGroup(data['errorGroup']);\n }\n if (data.hasOwnProperty('argumentsMap') && data.argumentsMap !== null && data.argumentsMap !== undefined) {\n obj.setArgumentsMap(data['argumentsMap']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * The message string.\n * @memberof AppMessage\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nAppMessage.prototype.message = undefined;\n\n/**\n * @memberof AppMessage\n */\nAppMessage.prototype.severity = undefined;\n\n/**\n * The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000\n * @memberof AppMessage\n */\nAppMessage.prototype.code = undefined;\n\n/**\n * Locale for this message. The default locale would be 'en-US'.\n * @memberof AppMessage\n * @default 'en_US'\n */\nAppMessage.prototype.locale = 'en_US';\n\n/**\n * The error group associated with this message of severity ERROR.\n * @memberof AppMessage\n */\nAppMessage.prototype.errorGroup = undefined;\n\n/**\n * The map of argument name to value.\n * @memberof AppMessage\n */\nAppMessage.prototype.argumentsMap = undefined;\nAppMessage.prototype.$reserved = undefined;\nAppMessage.prototype.$objectType = undefined;\nAppMessage.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/error/AppMessage.js?");
430
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * Enum class DownSamplingOperator.\n * @enum {string}\n * @readonly\n */\nvar DownSamplingOperator = {\n /** \n * Unknown value.\n * @const\n */\n $UNKNOWN: \"$UNKNOWN\",\n /** \n * Redacted value.\n * @const\n */\n $REDACTED: \"$REDACTED\",\n /** \n * Aggregation with sum of all values.\n * @const\n */\n SUM: \"SUM\",\n /** \n * Aggregation containing lowest of all values.\n * @const\n */\n MIN: \"MIN\",\n /** \n * Aggregation containing highest of all values.\n * @const\n */\n MAX: \"MAX\",\n /** \n * Aggregation indicating mean or average of all values.\n * @const\n */\n AVG: \"AVG\",\n /** \n * Aggregation containing total count of values.\n * @const\n */\n COUNT: \"COUNT\",\n /** \n * Aggregation containing only the last recorded value.\n * @const\n */\n LAST: \"LAST\"\n};\n\n/**\n* Returns a <code>DownSamplingOperator</code> enum value from a JavaScript object name.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {DownSamplingOperator} The enum <code>DownSamplingOperator</code> value.\n*/\nDownSamplingOperator.constructFromObject = function (obj) {\n if (typeof obj === 'string' || obj instanceof String) {\n var enumVal = Object.keys(DownSamplingOperator).find(function (key) {\n return DownSamplingOperator[key] === obj;\n });\n return enumVal === undefined || enumVal === null ? DownSamplingOperator.$UNKNOWN : DownSamplingOperator[enumVal];\n } else {\n throw new Error(\"Received object name is not an instance of String\");\n }\n};\n\n/**\n* Validates <code>DownSamplingOperator</code> enum value.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {null} Throws error for invalid value.\n*/\nDownSamplingOperator.validate = function (obj) {\n switch (obj) {\n case DownSamplingOperator.$UNKNOWN:\n case DownSamplingOperator.$REDACTED:\n case DownSamplingOperator.SUM:\n case DownSamplingOperator.MIN:\n case DownSamplingOperator.MAX:\n case DownSamplingOperator.AVG:\n case DownSamplingOperator.COUNT:\n case DownSamplingOperator.LAST:\n return;\n default:\n throw new Error(\"Invalid : must be DownSamplingOperator.{ $UNKNOWN|$REDACTED|SUM|MIN|MAX|AVG|COUNT|LAST }\");\n }\n};\nObject.freeze(DownSamplingOperator);\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (DownSamplingOperator);\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/stats/DownSamplingOperator.js?");
409
431
 
410
432
  /***/ }),
411
433
 
412
- /***/ "./target/generated-sources/swagger/src/models/objects/v4/error/ErrorResponse.js":
413
- /*!***************************************************************************************!*\
414
- !*** ./target/generated-sources/swagger/src/models/objects/v4/error/ErrorResponse.js ***!
415
- \***************************************************************************************/
434
+ /***/ "./target/generated-sources/swagger/src/models/common/v1/stats/TimeIntValuePair.js":
435
+ /*!*****************************************************************************************!*\
436
+ !*** ./target/generated-sources/swagger/src/models/common/v1/stats/TimeIntValuePair.js ***!
437
+ \*****************************************************************************************/
416
438
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
417
439
 
418
440
  "use strict";
419
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ErrorResponse)\n/* harmony export */ });\n/* harmony import */ var _AppMessage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AppMessage */ \"./target/generated-sources/swagger/src/models/objects/v4/error/AppMessage.js\");\n/* harmony import */ var _SchemaValidationError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SchemaValidationError */ \"./target/generated-sources/swagger/src/models/objects/v4/error/SchemaValidationError.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n/**\n * The ErrorResponse model module.\n * @module Ntnx/ErrorResponse\n * @version 4.0.1-alpha-2\n * @class ErrorResponse\n */\nvar _ErrorResponse_brand = /*#__PURE__*/new WeakSet();\nvar ErrorResponse = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>ErrorResponse</code>.\n * This schema is auto-generated by the Open API Dev Platform as REST response for 4xx and 5xx error responses.\n * @alias module:Ntnx/ErrorResponse\n */\n function ErrorResponse() {\n _classCallCheck(this, ErrorResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _ErrorResponse_brand);\n this.$objectType = \"objects.v4.error.ErrorResponse\";\n this.$reserved = {\n '$fv': \"v4.r0.a2\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>ErrorResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ErrorResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ErrorResponse} The populated <code>ErrorResponse</code> instance.\n */\n return _createClass(ErrorResponse, [{\n key: \"getError\",\n value:\n /**\n * @return {}\n */\n function getError() {\n return this.error;\n }\n\n /**\n * @param {} error\n */\n }, {\n key: \"setError\",\n value: function setError(error) {\n this.error = error;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread({}, typeof this.getError() !== 'undefined' && this.getError() !== null ? {\n 'error': typeof this.getError().toJson !== \"undefined\" ? this.getError().toJson(false) : Array.isArray(this.getError()) ? this.getError().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_ErrorResponse_brand, this, _toJsonMapType).call(this, this.getError(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread({}, typeof this.getError() !== 'undefined' && this.getError() !== null ? {\n 'error': typeof this.getError().toJson !== \"undefined\" ? this.getError().toJson() : Array.isArray(this.getError()) ? this.getError().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_ErrorResponse_brand, this, _toJsonMapType).call(this, this.getError())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"error\") {\n if (typeof this.error === 'undefined' || this.error === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"error\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ErrorResponse();\n if (data.hasOwnProperty('error') && data.error !== null && data.error !== undefined) {\n if (Array.isArray(data['error'])) {\n if (data['error'].length === 0) {\n obj.setError([]);\n } else {\n itemArr = [];\n items = data['error'];\n if (items[0].hasOwnProperty('$objectType')) {\n discriminator = items[0]['$objectType'];\n } else {\n discriminator = _typeof(items[0]);\n }\n for (i = 0; i < items.length; i++) {\n switch (discriminator) {\n case 'objects.v4.error.AppMessage':\n item = _AppMessage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n break;\n default:\n throw \"Unknown list of type \" + discriminator + \" in data\";\n }\n }\n obj.setError(itemArr);\n }\n } else {\n if (data['error'].hasOwnProperty('$objectType')) {\n discriminator = data['error']['$objectType'];\n } else {\n discriminator = _typeof(data['error']);\n }\n switch (discriminator) {\n case 'objects.v4.error.SchemaValidationError':\n obj.setError(_SchemaValidationError__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['error'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * @memberof ErrorResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nErrorResponse.prototype.error = undefined;\nErrorResponse.prototype.$reserved = undefined;\nErrorResponse.prototype.$objectType = undefined;\nErrorResponse.prototype.$unknownFields = undefined;\n\n// Implement OneOfobjects.v4.operations.CertificateApiResponsedata interface:\n// Implement OneOfobjects.v4.operations.ObjectstoreApiResponsedata interface:\n// Implement OneOfobjects.v4.operations.TaskReferenceApiResponsedata interface:\n// Implement OneOfobjects.v4.operations.ObjectstoreListApiResponsedata interface:\n// Implement OneOfobjects.v4.operations.CertificateListApiResponsedata interface:\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/error/ErrorResponse.js?");
441
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TimeIntValuePair)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The TimeIntValuePair model module.\n * @module Ntnx/TimeIntValuePair\n * @version 4.0.1\n * @class TimeIntValuePair\n */\nvar _TimeIntValuePair_brand = /*#__PURE__*/new WeakSet();\nvar TimeIntValuePair = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>TimeIntValuePair</code>.\n * A time value pair representing a stat associated with a given entity at a given point of date and time represented in extended ISO-8601 format.\\&quot;\n * @alias module:Ntnx/TimeIntValuePair\n */\n function TimeIntValuePair() {\n _classCallCheck(this, TimeIntValuePair);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _TimeIntValuePair_brand);\n this.$objectType = \"common.v1.stats.TimeIntValuePair\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v1.r0\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>TimeIntValuePair</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/TimeIntValuePair} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/TimeIntValuePair} The populated <code>TimeIntValuePair</code> instance.\n */\n return _createClass(TimeIntValuePair, [{\n key: \"getValue\",\n value:\n /**\n * Returns Value of the stat at the recorded date and time in extended ISO-8601 format.\\\"\n * @return {Number}\n */\n function getValue() {\n return this.value;\n }\n\n /**\n * Sets Value of the stat at the recorded date and time in extended ISO-8601 format.\\\"\n * @param {Number} value Value of the stat at the recorded date and time in extended ISO-8601 format.\\\"\n */\n }, {\n key: \"setValue\",\n value: function setValue(value) {\n this.value = value;\n }\n\n /**\n * Returns The date and time at which the stat was recorded.The value should be in extended ISO-8601 format. For example, start time of 2022-04-23T01:23:45.678+09:00 would consider all stats starting at 1:23:45.678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html\n * @return {Date}\n */\n }, {\n key: \"getTimestamp\",\n value: function getTimestamp() {\n return this.timestamp;\n }\n\n /**\n * Sets The date and time at which the stat was recorded.The value should be in extended ISO-8601 format. For example, start time of 2022-04-23T01:23:45.678+09:00 would consider all stats starting at 1:23:45.678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html\n * @param {Date} timestamp The date and time at which the stat was recorded.The value should be in extended ISO-8601 format. For example, start time of 2022-04-23T01:23:45.678+09:00 would consider all stats starting at 1:23:45.678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html\n */\n }, {\n key: \"setTimestamp\",\n value: function setTimestamp(timestamp) {\n this.timestamp = timestamp;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}), typeof this.getTimestamp() !== 'undefined' && this.getTimestamp() !== null ? {\n 'timestamp': _assertClassBrand(_TimeIntValuePair_brand, this, _handleDateType).call(this, this.getTimestamp(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}), typeof this.getTimestamp() !== 'undefined' && this.getTimestamp() !== null ? {\n 'timestamp': _assertClassBrand(_TimeIntValuePair_brand, this, _handleDateType).call(this, this.getTimestamp(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"value\") {\n if (typeof this.value === 'undefined' || this.value === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"value\", \"undefined or null\");\n }\n }\n if (property === \"timestamp\") {\n if (typeof this.timestamp === 'undefined' || this.timestamp === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"timestamp\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new TimeIntValuePair();\n if (data.hasOwnProperty('value') && data.value !== null && data.value !== undefined) {\n obj.setValue(data['value']);\n }\n if (data.hasOwnProperty('timestamp') && data.timestamp !== null && data.timestamp !== undefined) {\n obj.setTimestamp(data['timestamp']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}();\n/**\n * Value of the stat at the recorded date and time in extended ISO-8601 format.\\\"\n * @memberof TimeIntValuePair\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nTimeIntValuePair.prototype.value = undefined;\n\n/**\n * The date and time at which the stat was recorded.The value should be in extended ISO-8601 format. For example, start time of 2022-04-23T01:23:45.678+09:00 would consider all stats starting at 1:23:45.678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html\n * @memberof TimeIntValuePair\n */\nTimeIntValuePair.prototype.timestamp = undefined;\nTimeIntValuePair.prototype.$reserved = undefined;\nTimeIntValuePair.prototype.$objectType = undefined;\nTimeIntValuePair.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/stats/TimeIntValuePair.js?");
420
442
 
421
443
  /***/ }),
422
444
 
423
- /***/ "./target/generated-sources/swagger/src/models/objects/v4/error/SchemaValidationError.js":
424
- /*!***********************************************************************************************!*\
425
- !*** ./target/generated-sources/swagger/src/models/objects/v4/error/SchemaValidationError.js ***!
426
- \***********************************************************************************************/
445
+ /***/ "./target/generated-sources/swagger/src/models/objects/v4/config/Certificate.js":
446
+ /*!**************************************************************************************!*\
447
+ !*** ./target/generated-sources/swagger/src/models/objects/v4/config/Certificate.js ***!
448
+ \**************************************************************************************/
427
449
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
428
450
 
429
451
  "use strict";
430
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SchemaValidationError)\n/* harmony export */ });\n/* harmony import */ var _SchemaValidationErrorMessage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SchemaValidationErrorMessage */ \"./target/generated-sources/swagger/src/models/objects/v4/error/SchemaValidationErrorMessage.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n/**\n * The SchemaValidationError model module.\n * @module Ntnx/SchemaValidationError\n * @version 4.0.1-alpha-2\n * @class SchemaValidationError\n */\nvar _SchemaValidationError_brand = /*#__PURE__*/new WeakSet();\nvar SchemaValidationError = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>SchemaValidationError</code>.\n * This schema is generated from SchemaValidationError.java\n * @alias module:Ntnx/SchemaValidationError\n */\n function SchemaValidationError() {\n _classCallCheck(this, SchemaValidationError);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _SchemaValidationError_brand);\n this.$objectType = \"objects.v4.error.SchemaValidationError\";\n this.$reserved = {\n '$fv': \"v4.r0.a2\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>SchemaValidationError</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/SchemaValidationError} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/SchemaValidationError} The populated <code>SchemaValidationError</code> instance.\n */\n return _createClass(SchemaValidationError, [{\n key: \"getTimestamp\",\n value:\n /**\n * Returns Timestamp of the response.\n * @return {}\n */\n function getTimestamp() {\n return this.timestamp;\n }\n\n /**\n * Sets Timestamp of the response.\n * @param {} timestamp Timestamp of the response.\n */\n }, {\n key: \"setTimestamp\",\n value: function setTimestamp(timestamp) {\n this.timestamp = timestamp;\n }\n\n /**\n * Returns The HTTP status code of the response.\n * @return {}\n */\n }, {\n key: \"getStatusCode\",\n value: function getStatusCode() {\n return this.statusCode;\n }\n\n /**\n * Sets The HTTP status code of the response.\n * @param {} statusCode The HTTP status code of the response.\n */\n }, {\n key: \"setStatusCode\",\n value: function setStatusCode(statusCode) {\n this.statusCode = statusCode;\n }\n\n /**\n * Returns The generic error message for the response.\n * @return {}\n */\n }, {\n key: \"getError\",\n value: function getError() {\n return this.error;\n }\n\n /**\n * Sets The generic error message for the response.\n * @param {} error The generic error message for the response.\n */\n }, {\n key: \"setError\",\n value: function setError(error) {\n this.error = error;\n }\n\n /**\n * Returns API path on which the request was made.\n * @return {}\n */\n }, {\n key: \"getPath\",\n value: function getPath() {\n return this.path;\n }\n\n /**\n * Sets API path on which the request was made.\n * @param {} path API path on which the request was made.\n */\n }, {\n key: \"setPath\",\n value: function setPath(path) {\n this.path = path;\n }\n\n /**\n * Returns List of validation error messages\n * @return {}\n */\n }, {\n key: \"getValidationErrorMessages\",\n value: function getValidationErrorMessages() {\n return this.validationErrorMessages;\n }\n\n /**\n * Sets List of validation error messages\n * @param {} validationErrorMessages List of validation error messages\n */\n }, {\n key: \"setValidationErrorMessages\",\n value: function setValidationErrorMessages(validationErrorMessages) {\n this.validationErrorMessages = validationErrorMessages;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getTimestamp() !== 'undefined' && this.getTimestamp() !== null ? {\n 'timestamp': this.getTimestamp()\n } : {}), typeof this.getStatusCode() !== 'undefined' && this.getStatusCode() !== null ? {\n 'statusCode': this.getStatusCode()\n } : {}), typeof this.getError() !== 'undefined' && this.getError() !== null ? {\n 'error': this.getError()\n } : {}), typeof this.getPath() !== 'undefined' && this.getPath() !== null ? {\n 'path': this.getPath()\n } : {}), typeof this.getValidationErrorMessages() !== 'undefined' && this.getValidationErrorMessages() !== null ? {\n 'validationErrorMessages': this.getValidationErrorMessages().map(function (item) {\n return item.toJson(false);\n })\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getTimestamp() !== 'undefined' && this.getTimestamp() !== null ? {\n 'timestamp': this.getTimestamp()\n } : {}), typeof this.getStatusCode() !== 'undefined' && this.getStatusCode() !== null ? {\n 'statusCode': this.getStatusCode()\n } : {}), typeof this.getError() !== 'undefined' && this.getError() !== null ? {\n 'error': this.getError()\n } : {}), typeof this.getPath() !== 'undefined' && this.getPath() !== null ? {\n 'path': this.getPath()\n } : {}), typeof this.getValidationErrorMessages() !== 'undefined' && this.getValidationErrorMessages() !== null ? {\n 'validationErrorMessages': this.getValidationErrorMessages().map(function (item) {\n return item.toJson(false);\n })\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"timestamp\") {\n if (typeof this.timestamp === 'undefined' || this.timestamp === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"timestamp\", \"undefined or null\");\n }\n }\n if (property === \"statusCode\") {\n if (typeof this.statusCode === 'undefined' || this.statusCode === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"statusCode\", \"undefined or null\");\n }\n }\n if (property === \"error\") {\n if (typeof this.error === 'undefined' || this.error === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"error\", \"undefined or null\");\n }\n }\n if (property === \"path\") {\n if (typeof this.path === 'undefined' || this.path === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"path\", \"undefined or null\");\n }\n }\n if (property === \"validationErrorMessages\") {\n if (typeof this.validationErrorMessages === 'undefined' || this.validationErrorMessages === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"validationErrorMessages\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new SchemaValidationError();\n if (data.hasOwnProperty('timestamp') && data.timestamp !== null && data.timestamp !== undefined) {\n obj.setTimestamp(data['timestamp']);\n }\n if (data.hasOwnProperty('statusCode') && data.statusCode !== null && data.statusCode !== undefined) {\n obj.setStatusCode(data['statusCode']);\n }\n if (data.hasOwnProperty('error') && data.error !== null && data.error !== undefined) {\n obj.setError(data['error']);\n }\n if (data.hasOwnProperty('path') && data.path !== null && data.path !== undefined) {\n obj.setPath(data['path']);\n }\n if (data.hasOwnProperty('validationErrorMessages') && data.validationErrorMessages !== null && data.validationErrorMessages !== undefined) {\n itemArr = [];\n items = data.validationErrorMessages;\n for (i = 0; i < items.length; i++) {\n item = _SchemaValidationErrorMessage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setValidationErrorMessages(itemArr);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * Timestamp of the response.\n * @memberof SchemaValidationError\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nSchemaValidationError.prototype.timestamp = undefined;\n\n/**\n * The HTTP status code of the response.\n * @memberof SchemaValidationError\n */\nSchemaValidationError.prototype.statusCode = undefined;\n\n/**\n * The generic error message for the response.\n * @memberof SchemaValidationError\n */\nSchemaValidationError.prototype.error = undefined;\n\n/**\n * API path on which the request was made.\n * @memberof SchemaValidationError\n */\nSchemaValidationError.prototype.path = undefined;\n\n/**\n * List of validation error messages\n * @memberof SchemaValidationError\n */\nSchemaValidationError.prototype.validationErrorMessages = undefined;\nSchemaValidationError.prototype.$reserved = undefined;\nSchemaValidationError.prototype.$objectType = undefined;\nSchemaValidationError.prototype.$unknownFields = undefined;\n\n// Implement OneOfobjects.v4.error.ErrorResponseerror interface:\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/error/SchemaValidationError.js?");
452
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Certificate)\n/* harmony export */ });\n/* harmony import */ var _common_v1_config_FQDN__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/config/FQDN */ \"./target/generated-sources/swagger/src/models/common/v1/config/FQDN.js\");\n/* harmony import */ var _common_v1_config_IPAddress__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/v1/config/IPAddress */ \"./target/generated-sources/swagger/src/models/common/v1/config/IPAddress.js\");\n/* harmony import */ var _common_v1_config_Metadata__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../common/v1/config/Metadata */ \"./target/generated-sources/swagger/src/models/common/v1/config/Metadata.js\");\n/* harmony import */ var _common_v1_config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../common/v1/config/TenantAwareModel */ \"./target/generated-sources/swagger/src/models/common/v1/config/TenantAwareModel.js\");\n/* harmony import */ var _common_v1_response_ApiLink__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../common/v1/response/ApiLink */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js\");\n/* harmony import */ var _common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../common/v1/response/ExternalizableAbstractModel */ \"./target/generated-sources/swagger/src/models/common/v1/response/ExternalizableAbstractModel.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\nfunction _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\nfunction _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\nfunction _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n\n\n/**\n * The Certificate model module.\n * @module Ntnx/Certificate\n * @version 4.0.1\n * @class Certificate\n * @extends ExternalizableAbstractModel\n */\nvar _Certificate_brand = /*#__PURE__*/new WeakSet();\nvar Certificate = /*#__PURE__*/function (_ExternalizableAbstra) {\n /**\n * Constructs a new <code>Certificate</code>.\n * @alias module:Ntnx/Certificate\n * @extends module:Ntnx/ExternalizableAbstractModel\n */\n function Certificate() {\n var _this;\n _classCallCheck(this, Certificate);\n _this = _callSuper(this, Certificate);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _Certificate_brand);\n _this.$objectType = \"objects.v4.config.Certificate\";\n /** @type {object<string, any>} */\n _this.$reserved = {\n '$fv': \"v4.r0\"\n };\n /** @type {object<string, any>} */\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>Certificate</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/Certificate} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/Certificate} The populated <code>Certificate</code> instance.\n */\n _inherits(Certificate, _ExternalizableAbstra);\n return _createClass(Certificate, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {Metadata}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {Metadata} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * Returns The public certificate to upload.\n * @return {string}\n */\n }, {\n key: \"getPublicCert\",\n value: function getPublicCert() {\n return this.publicCert;\n }\n\n /**\n * Sets The public certificate to upload.\n * @param {string} publicCert The public certificate to upload.\n */\n }, {\n key: \"setPublicCert\",\n value: function setPublicCert(publicCert) {\n this.publicCert = publicCert;\n }\n\n /**\n * Returns The private key to upload.\n * @return {string}\n */\n }, {\n key: \"getPrivateKey\",\n value: function getPrivateKey() {\n return this.privateKey;\n }\n\n /**\n * Sets The private key to upload.\n * @param {string} privateKey The private key to upload.\n */\n }, {\n key: \"setPrivateKey\",\n value: function setPrivateKey(privateKey) {\n this.privateKey = privateKey;\n }\n\n /**\n * Returns The CA certificate or chain to upload.\n * @return {string}\n */\n }, {\n key: \"getCa\",\n value: function getCa() {\n return this.ca;\n }\n\n /**\n * Sets The CA certificate or chain to upload.\n * @param {string} ca The CA certificate or chain to upload.\n */\n }, {\n key: \"setCa\",\n value: function setCa(ca) {\n this.ca = ca;\n }\n\n /**\n * Returns The list of alternate FQDNs for accessing the Object store. The FQDNs must consist of at least 2 parts separated by a '.'. Each part can contain upper and lower case letters, digits, hyphens or underscores but must begin and end with a letter. Each part can be up to 63 characters long. For e.g 'objects-0.pc_nutanix.com'. \n * @return {FQDN[]}\n */\n }, {\n key: \"getAlternateFqdns\",\n value: function getAlternateFqdns() {\n return this.alternateFqdns;\n }\n\n /**\n * Sets The list of alternate FQDNs for accessing the Object store. The FQDNs must consist of at least 2 parts separated by a '.'. Each part can contain upper and lower case letters, digits, hyphens or underscores but must begin and end with a letter. Each part can be up to 63 characters long. For e.g 'objects-0.pc_nutanix.com'. \n * @param {FQDN[]} alternateFqdns The list of alternate FQDNs for accessing the Object store. The FQDNs must consist of at least 2 parts separated by a '.'. Each part can contain upper and lower case letters, digits, hyphens or underscores but must begin and end with a letter. Each part can be up to 63 characters long. For e.g 'objects-0.pc_nutanix.com'. \n */\n }, {\n key: \"setAlternateFqdns\",\n value: function setAlternateFqdns(alternateFqdns) {\n this.alternateFqdns = alternateFqdns;\n }\n\n /**\n * Returns If true, the certificate is generated with the provided alternate FQDNs and IPs.\n * @return {boolean}\n */\n }, {\n key: \"getShouldGenerate\",\n value: function getShouldGenerate() {\n return this.shouldGenerate;\n }\n\n /**\n * Sets If true, the certificate is generated with the provided alternate FQDNs and IPs.\n * @param {boolean} shouldGenerate If true, the certificate is generated with the provided alternate FQDNs and IPs.\n */\n }, {\n key: \"setShouldGenerate\",\n value: function setShouldGenerate(shouldGenerate) {\n this.shouldGenerate = shouldGenerate;\n }\n\n /**\n * Returns A list of the IPs included as Subject Alternative Names (SANs) in the certificate. The IPs must be among the public IPs of the Object store (publicNetworkIps).\n * @return {IPAddress[]}\n */\n }, {\n key: \"getAlternateIps\",\n value: function getAlternateIps() {\n return this.alternateIps;\n }\n\n /**\n * Sets A list of the IPs included as Subject Alternative Names (SANs) in the certificate. The IPs must be among the public IPs of the Object store (publicNetworkIps).\n * @param {IPAddress[]} alternateIps A list of the IPs included as Subject Alternative Names (SANs) in the certificate. The IPs must be among the public IPs of the Object store (publicNetworkIps).\n */\n }, {\n key: \"setAlternateIps\",\n value: function setAlternateIps(alternateIps) {\n this.alternateIps = alternateIps;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getPublicCert() !== 'undefined' && this.getPublicCert() !== null ? {\n 'publicCert': this.getPublicCert()\n } : {}), typeof this.getPrivateKey() !== 'undefined' && this.getPrivateKey() !== null ? {\n 'privateKey': this.getPrivateKey()\n } : {}), typeof this.getCa() !== 'undefined' && this.getCa() !== null ? {\n 'ca': this.getCa()\n } : {}), typeof this.getAlternateFqdns() !== 'undefined' && this.getAlternateFqdns() !== null ? {\n 'alternateFqdns': this.getAlternateFqdns().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getShouldGenerate() !== 'undefined' && this.getShouldGenerate() !== null ? {\n 'shouldGenerate': this.getShouldGenerate()\n } : {}), typeof this.getAlternateIps() !== 'undefined' && this.getAlternateIps() !== null ? {\n 'alternateIps': this.getAlternateIps().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getPublicCert() !== 'undefined' && this.getPublicCert() !== null ? {\n 'publicCert': this.getPublicCert()\n } : {}), typeof this.getPrivateKey() !== 'undefined' && this.getPrivateKey() !== null ? {\n 'privateKey': this.getPrivateKey()\n } : {}), typeof this.getCa() !== 'undefined' && this.getCa() !== null ? {\n 'ca': this.getCa()\n } : {}), typeof this.getAlternateFqdns() !== 'undefined' && this.getAlternateFqdns() !== null ? {\n 'alternateFqdns': this.getAlternateFqdns().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getShouldGenerate() !== 'undefined' && this.getShouldGenerate() !== null ? {\n 'shouldGenerate': this.getShouldGenerate()\n } : {}), typeof this.getAlternateIps() !== 'undefined' && this.getAlternateIps() !== null ? {\n 'alternateIps': this.getAlternateIps().map(function (item) {\n return item.toJson(false);\n })\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_6__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"publicCert\") {\n if (typeof this.publicCert === 'undefined' || this.publicCert === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"publicCert\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMaxLength(this.publicCert, 2000000)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"publicCert\", \"does not satisfy required maxLength constraint: 2000000\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMinLength(this.publicCert, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"publicCert\", \"does not satisfy required minLength constraint: 1\");\n }\n }\n if (property === \"privateKey\") {\n if (typeof this.privateKey === 'undefined' || this.privateKey === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"privateKey\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMaxLength(this.privateKey, 2000000)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"privateKey\", \"does not satisfy required maxLength constraint: 2000000\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMinLength(this.privateKey, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"privateKey\", \"does not satisfy required minLength constraint: 1\");\n }\n }\n if (property === \"ca\") {\n if (typeof this.ca === 'undefined' || this.ca === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"ca\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMaxLength(this.ca, 2000000)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"ca\", \"does not satisfy required maxLength constraint: 2000000\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMinLength(this.ca, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"ca\", \"does not satisfy required minLength constraint: 1\");\n }\n }\n if (property === \"alternateFqdns\") {\n if (typeof this.alternateFqdns === 'undefined' || this.alternateFqdns === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"alternateFqdns\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMaxItems(this.alternateFqdns, 999)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"alternateFqdns\", \"does not satisfy required maxItems constraint: 999\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMinItems(this.alternateFqdns, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"alternateFqdns\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"shouldGenerate\") {\n if (typeof this.shouldGenerate === 'undefined' || this.shouldGenerate === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"shouldGenerate\", \"undefined or null\");\n }\n }\n if (property === \"alternateIps\") {\n if (typeof this.alternateIps === 'undefined' || this.alternateIps === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"alternateIps\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMaxItems(this.alternateIps, 1000)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"alternateIps\", \"does not satisfy required maxItems constraint: 1000\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMinItems(this.alternateIps, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"alternateIps\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new Certificate();\n _common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_5__[\"default\"].constructFromObject(data, obj, true);\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_config_Metadata__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('publicCert') && data.publicCert !== null && data.publicCert !== undefined) {\n obj.setPublicCert(data['publicCert']);\n }\n if (data.hasOwnProperty('privateKey') && data.privateKey !== null && data.privateKey !== undefined) {\n obj.setPrivateKey(data['privateKey']);\n }\n if (data.hasOwnProperty('ca') && data.ca !== null && data.ca !== undefined) {\n obj.setCa(data['ca']);\n }\n if (data.hasOwnProperty('alternateFqdns') && data.alternateFqdns !== null && data.alternateFqdns !== undefined) {\n itemArr = [];\n items = data.alternateFqdns;\n for (i = 0; i < items.length; i++) {\n item = _common_v1_config_FQDN__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setAlternateFqdns(itemArr);\n }\n if (data.hasOwnProperty('shouldGenerate') && data.shouldGenerate !== null && data.shouldGenerate !== undefined) {\n obj.setShouldGenerate(data['shouldGenerate']);\n }\n if (data.hasOwnProperty('alternateIps') && data.alternateIps !== null && data.alternateIps !== undefined) {\n itemArr = [];\n items = data.alternateIps;\n for (i = 0; i < items.length; i++) {\n item = _common_v1_config_IPAddress__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setAlternateIps(itemArr);\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}(_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_5__[\"default\"]);\n/**\n * @memberof Certificate\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nCertificate.prototype.metadata = undefined;\n\n/**\n * The public certificate to upload.\n * @memberof Certificate\n */\nCertificate.prototype.publicCert = undefined;\n\n/**\n * The private key to upload.\n * @memberof Certificate\n */\nCertificate.prototype.privateKey = undefined;\n\n/**\n * The CA certificate or chain to upload.\n * @memberof Certificate\n */\nCertificate.prototype.ca = undefined;\n\n/**\n * The list of alternate FQDNs for accessing the Object store. The FQDNs must consist of at least 2 parts separated by a '.'. Each part can contain upper and lower case letters, digits, hyphens or underscores but must begin and end with a letter. Each part can be up to 63 characters long. For e.g 'objects-0.pc_nutanix.com'. \n * @memberof Certificate\n */\nCertificate.prototype.alternateFqdns = undefined;\n\n/**\n * If true, the certificate is generated with the provided alternate FQDNs and IPs.\n * @memberof Certificate\n * @default false\n */\nCertificate.prototype.shouldGenerate = false;\n\n/**\n * A list of the IPs included as Subject Alternative Names (SANs) in the certificate. The IPs must be among the public IPs of the Object store (publicNetworkIps).\n * @memberof Certificate\n */\nCertificate.prototype.alternateIps = undefined;\n\n/**\n * A globally unique identifier of an instance that is suitable for external consumption. \n * @memberof Certificate\n */\n_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_5__[\"default\"].prototype.extId = undefined;\n/**\n * A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource. \n * @memberof Certificate\n */\n_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_5__[\"default\"].prototype.links = undefined;\n/**\n * A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server). \n * @memberof Certificate\n */\n_common_v1_config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_3__[\"default\"].prototype.tenantId = undefined;\n// Implement OneOfobjects.v4.config.GetCertificateApiResponsedata interface:\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/config/Certificate.js?");
431
453
 
432
454
  /***/ }),
433
455
 
434
- /***/ "./target/generated-sources/swagger/src/models/objects/v4/error/SchemaValidationErrorMessage.js":
435
- /*!******************************************************************************************************!*\
436
- !*** ./target/generated-sources/swagger/src/models/objects/v4/error/SchemaValidationErrorMessage.js ***!
437
- \******************************************************************************************************/
456
+ /***/ "./target/generated-sources/swagger/src/models/objects/v4/config/CertificateProjection.js":
457
+ /*!************************************************************************************************!*\
458
+ !*** ./target/generated-sources/swagger/src/models/objects/v4/config/CertificateProjection.js ***!
459
+ \************************************************************************************************/
438
460
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
439
461
 
440
462
  "use strict";
441
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SchemaValidationErrorMessage)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The SchemaValidationErrorMessage model module.\n * @module Ntnx/SchemaValidationErrorMessage\n * @version 4.0.1-alpha-2\n * @class SchemaValidationErrorMessage\n */\nvar _SchemaValidationErrorMessage_brand = /*#__PURE__*/new WeakSet();\nvar SchemaValidationErrorMessage = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>SchemaValidationErrorMessage</code>.\n * This schema is generated from SchemaValidationErrorMessage.java\n * @alias module:Ntnx/SchemaValidationErrorMessage\n */\n function SchemaValidationErrorMessage() {\n _classCallCheck(this, SchemaValidationErrorMessage);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _SchemaValidationErrorMessage_brand);\n this.$objectType = \"objects.v4.error.SchemaValidationErrorMessage\";\n this.$reserved = {\n '$fv': \"v4.r0.a2\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>SchemaValidationErrorMessage</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/SchemaValidationErrorMessage} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/SchemaValidationErrorMessage} The populated <code>SchemaValidationErrorMessage</code> instance.\n */\n return _createClass(SchemaValidationErrorMessage, [{\n key: \"getLocation\",\n value:\n /**\n * Returns The part of the request that failed validation. Validation can fail for path, query parameters, and request body.\n * @return {}\n */\n function getLocation() {\n return this.location;\n }\n\n /**\n * Sets The part of the request that failed validation. Validation can fail for path, query parameters, and request body.\n * @param {} location The part of the request that failed validation. Validation can fail for path, query parameters, and request body.\n */\n }, {\n key: \"setLocation\",\n value: function setLocation(location) {\n this.location = location;\n }\n\n /**\n * Returns The detailed message for the validation error.\n * @return {}\n */\n }, {\n key: \"getMessage\",\n value: function getMessage() {\n return this.message;\n }\n\n /**\n * Sets The detailed message for the validation error.\n * @param {} message The detailed message for the validation error.\n */\n }, {\n key: \"setMessage\",\n value: function setMessage(message) {\n this.message = message;\n }\n\n /**\n * Returns The path of the attribute that failed validation in the schema.\n * @return {}\n */\n }, {\n key: \"getAttributePath\",\n value: function getAttributePath() {\n return this.attributePath;\n }\n\n /**\n * Sets The path of the attribute that failed validation in the schema.\n * @param {} attributePath The path of the attribute that failed validation in the schema.\n */\n }, {\n key: \"setAttributePath\",\n value: function setAttributePath(attributePath) {\n this.attributePath = attributePath;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getLocation() !== 'undefined' && this.getLocation() !== null ? {\n 'location': this.getLocation()\n } : {}), typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}), typeof this.getAttributePath() !== 'undefined' && this.getAttributePath() !== null ? {\n 'attributePath': this.getAttributePath()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getLocation() !== 'undefined' && this.getLocation() !== null ? {\n 'location': this.getLocation()\n } : {}), typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}), typeof this.getAttributePath() !== 'undefined' && this.getAttributePath() !== null ? {\n 'attributePath': this.getAttributePath()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"location\") {\n if (typeof this.location === 'undefined' || this.location === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"location\", \"undefined or null\");\n }\n }\n if (property === \"message\") {\n if (typeof this.message === 'undefined' || this.message === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"message\", \"undefined or null\");\n }\n }\n if (property === \"attributePath\") {\n if (typeof this.attributePath === 'undefined' || this.attributePath === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"attributePath\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new SchemaValidationErrorMessage();\n if (data.hasOwnProperty('location') && data.location !== null && data.location !== undefined) {\n obj.setLocation(data['location']);\n }\n if (data.hasOwnProperty('message') && data.message !== null && data.message !== undefined) {\n obj.setMessage(data['message']);\n }\n if (data.hasOwnProperty('attributePath') && data.attributePath !== null && data.attributePath !== undefined) {\n obj.setAttributePath(data['attributePath']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * The part of the request that failed validation. Validation can fail for path, query parameters, and request body.\n * @memberof SchemaValidationErrorMessage\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nSchemaValidationErrorMessage.prototype.location = undefined;\n\n/**\n * The detailed message for the validation error.\n * @memberof SchemaValidationErrorMessage\n */\nSchemaValidationErrorMessage.prototype.message = undefined;\n\n/**\n * The path of the attribute that failed validation in the schema.\n * @memberof SchemaValidationErrorMessage\n */\nSchemaValidationErrorMessage.prototype.attributePath = undefined;\nSchemaValidationErrorMessage.prototype.$reserved = undefined;\nSchemaValidationErrorMessage.prototype.$objectType = undefined;\nSchemaValidationErrorMessage.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/error/SchemaValidationErrorMessage.js?");
463
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CertificateProjection)\n/* harmony export */ });\n/* harmony import */ var _common_v1_config_FQDN__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/config/FQDN */ \"./target/generated-sources/swagger/src/models/common/v1/config/FQDN.js\");\n/* harmony import */ var _common_v1_config_IPAddress__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/v1/config/IPAddress */ \"./target/generated-sources/swagger/src/models/common/v1/config/IPAddress.js\");\n/* harmony import */ var _common_v1_config_Metadata__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../common/v1/config/Metadata */ \"./target/generated-sources/swagger/src/models/common/v1/config/Metadata.js\");\n/* harmony import */ var _common_v1_config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../common/v1/config/TenantAwareModel */ \"./target/generated-sources/swagger/src/models/common/v1/config/TenantAwareModel.js\");\n/* harmony import */ var _common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../common/v1/response/ExternalizableAbstractModel */ \"./target/generated-sources/swagger/src/models/common/v1/response/ExternalizableAbstractModel.js\");\n/* harmony import */ var _Certificate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Certificate */ \"./target/generated-sources/swagger/src/models/objects/v4/config/Certificate.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\nfunction _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\nfunction _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\nfunction _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n\n\n/**\n * The CertificateProjection model module.\n * @module Ntnx/CertificateProjection\n * @version 4.0.1\n * @class CertificateProjection\n * @extends Certificate\n */\nvar CertificateProjection = /*#__PURE__*/function (_Certificate) {\n /**\n * Constructs a new <code>CertificateProjection</code>.\n * @alias module:Ntnx/CertificateProjection\n * @extends module:Ntnx/Certificate\n */\n function CertificateProjection() {\n var _this;\n _classCallCheck(this, CertificateProjection);\n _this = _callSuper(this, CertificateProjection);\n _this.$objectType = \"objects.v4.config.CertificateProjection\";\n /** @type {object<string, any>} */\n _this.$reserved = {\n '$fv': \"v4.r0\"\n };\n /** @type {object<string, any>} */\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>CertificateProjection</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/CertificateProjection} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/CertificateProjection} The populated <code>CertificateProjection</code> instance.\n */\n _inherits(CertificateProjection, _Certificate);\n return _createClass(CertificateProjection, [{\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_6__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new CertificateProjection();\n _Certificate__WEBPACK_IMPORTED_MODULE_5__[\"default\"].constructFromObject(data, obj, true);\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}(_Certificate__WEBPACK_IMPORTED_MODULE_5__[\"default\"]);\n\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/config/CertificateProjection.js?");
442
464
 
443
465
  /***/ }),
444
466
 
445
- /***/ "./target/generated-sources/swagger/src/models/objects/v4/operations/Certificate.js":
446
- /*!******************************************************************************************!*\
447
- !*** ./target/generated-sources/swagger/src/models/objects/v4/operations/Certificate.js ***!
448
- \******************************************************************************************/
467
+ /***/ "./target/generated-sources/swagger/src/models/objects/v4/config/CreateCertificateApiResponse.js":
468
+ /*!*******************************************************************************************************!*\
469
+ !*** ./target/generated-sources/swagger/src/models/objects/v4/config/CreateCertificateApiResponse.js ***!
470
+ \*******************************************************************************************************/
471
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
472
+
473
+ "use strict";
474
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CreateCertificateApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/error/ErrorResponse.js\");\n/* harmony import */ var _prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../prism/v4/config/TaskReference */ \"./target/generated-sources/swagger/src/models/prism/v4/config/TaskReference.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\nfunction _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\nfunction _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\nfunction _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The CreateCertificateApiResponse model module.\n * @module Ntnx/CreateCertificateApiResponse\n * @version 4.0.1\n * @class CreateCertificateApiResponse\n */\nvar _CreateCertificateApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar CreateCertificateApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>CreateCertificateApiResponse</code>.\n * REST response for all response codes in API path /objects/v4.0/config/object-stores/{objectStoreExtId}/certificates Post operation\n * @alias module:Ntnx/CreateCertificateApiResponse\n */\n function CreateCertificateApiResponse() {\n var _this;\n _classCallCheck(this, CreateCertificateApiResponse);\n _this = _callSuper(this, CreateCertificateApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _CreateCertificateApiResponse_brand);\n _this.$objectType = \"objects.v4.config.CreateCertificateApiResponse\";\n /** @type {object<string, any>} */\n _this.$reserved = {\n '$fv': \"v4.r0\"\n };\n /** @type {object<string, any>} */\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>CreateCertificateApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/CreateCertificateApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/CreateCertificateApiResponse} The populated <code>CreateCertificateApiResponse</code> instance.\n */\n _inherits(CreateCertificateApiResponse, _Paginable);\n return _createClass(CreateCertificateApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {ApiResponseMetadata}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {ApiResponseMetadata} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {TaskReference | ErrorResponse}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {TaskReference | ErrorResponse} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_CreateCertificateApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_CreateCertificateApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new CreateCertificateApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'prism.v4.config.TaskReference':\n obj.setData(_prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n case 'objects.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n/**\n * @memberof CreateCertificateApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nCreateCertificateApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof CreateCertificateApiResponse\n */\nCreateCertificateApiResponse.prototype.data = undefined;\nCreateCertificateApiResponse.prototype.$reserved = undefined;\nCreateCertificateApiResponse.prototype.$objectType = undefined;\nCreateCertificateApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/config/CreateCertificateApiResponse.js?");
475
+
476
+ /***/ }),
477
+
478
+ /***/ "./target/generated-sources/swagger/src/models/objects/v4/config/CreateObjectstoreApiResponse.js":
479
+ /*!*******************************************************************************************************!*\
480
+ !*** ./target/generated-sources/swagger/src/models/objects/v4/config/CreateObjectstoreApiResponse.js ***!
481
+ \*******************************************************************************************************/
449
482
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
450
483
 
451
484
  "use strict";
452
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Certificate)\n/* harmony export */ });\n/* harmony import */ var _common_v1_config_FQDN__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/config/FQDN */ \"./target/generated-sources/swagger/src/models/common/v1/config/FQDN.js\");\n/* harmony import */ var _common_v1_config_Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/v1/config/Metadata */ \"./target/generated-sources/swagger/src/models/common/v1/config/Metadata.js\");\n/* harmony import */ var _common_v1_response_ApiLink__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../common/v1/response/ApiLink */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js\");\n/* harmony import */ var _common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../common/v1/response/ExternalizableAbstractModel */ \"./target/generated-sources/swagger/src/models/common/v1/response/ExternalizableAbstractModel.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The Certificate model module.\n * @module Ntnx/Certificate\n * @version 4.0.1-alpha-2\n * @class Certificate\n */\nvar _Certificate_brand = /*#__PURE__*/new WeakSet();\nvar Certificate = /*#__PURE__*/function (_ExternalizableAbstra) {\n /**\n * Constructs a new <code>Certificate</code>.\n * @alias module:Ntnx/Certificate\n * @extends module:Ntnx/ExternalizableAbstractModel\n */\n function Certificate() {\n var _this;\n _classCallCheck(this, Certificate);\n _this = _callSuper(this, Certificate);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _Certificate_brand);\n _this.$objectType = \"objects.v4.operations.Certificate\";\n _this.$reserved = {\n '$fv': \"v4.r0.a2\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>Certificate</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/Certificate} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/Certificate} The populated <code>Certificate</code> instance.\n */\n _inherits(Certificate, _ExternalizableAbstra);\n return _createClass(Certificate, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * Returns The public certificate to upload.\n * @return {}\n */\n }, {\n key: \"getPublicCert\",\n value: function getPublicCert() {\n return this.publicCert;\n }\n\n /**\n * Sets The public certificate to upload.\n * @param {} publicCert The public certificate to upload.\n */\n }, {\n key: \"setPublicCert\",\n value: function setPublicCert(publicCert) {\n this.publicCert = publicCert;\n }\n\n /**\n * Returns The private key to upload.\n * @return {}\n */\n }, {\n key: \"getPrivateKey\",\n value: function getPrivateKey() {\n return this.privateKey;\n }\n\n /**\n * Sets The private key to upload.\n * @param {} privateKey The private key to upload.\n */\n }, {\n key: \"setPrivateKey\",\n value: function setPrivateKey(privateKey) {\n this.privateKey = privateKey;\n }\n\n /**\n * Returns CA file to upload.\n * @return {}\n */\n }, {\n key: \"getCa\",\n value: function getCa() {\n return this.ca;\n }\n\n /**\n * Sets CA file to upload.\n * @param {} ca CA file to upload.\n */\n }, {\n key: \"setCa\",\n value: function setCa(ca) {\n this.ca = ca;\n }\n\n /**\n * Returns The list of alternate FQDNs for accessing the Object store. The FQDNs must consist of at least 2 parts separated by a '.'. Each part can contain upper and lower case letters, digits, hyphens or underscores but must begin and end with a letter. Each part can be up to 63 characters long. For e.g 'objects-0.pc_nutanix.com'. \n * @return {}\n */\n }, {\n key: \"getAlternateFqdns\",\n value: function getAlternateFqdns() {\n return this.alternateFqdns;\n }\n\n /**\n * Sets The list of alternate FQDNs for accessing the Object store. The FQDNs must consist of at least 2 parts separated by a '.'. Each part can contain upper and lower case letters, digits, hyphens or underscores but must begin and end with a letter. Each part can be up to 63 characters long. For e.g 'objects-0.pc_nutanix.com'. \n * @param {} alternateFqdns The list of alternate FQDNs for accessing the Object store. The FQDNs must consist of at least 2 parts separated by a '.'. Each part can contain upper and lower case letters, digits, hyphens or underscores but must begin and end with a letter. Each part can be up to 63 characters long. For e.g 'objects-0.pc_nutanix.com'. \n */\n }, {\n key: \"setAlternateFqdns\",\n value: function setAlternateFqdns(alternateFqdns) {\n this.alternateFqdns = alternateFqdns;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getPublicCert() !== 'undefined' && this.getPublicCert() !== null ? {\n 'publicCert': this.getPublicCert()\n } : {}), typeof this.getPrivateKey() !== 'undefined' && this.getPrivateKey() !== null ? {\n 'privateKey': this.getPrivateKey()\n } : {}), typeof this.getCa() !== 'undefined' && this.getCa() !== null ? {\n 'ca': this.getCa()\n } : {}), typeof this.getAlternateFqdns() !== 'undefined' && this.getAlternateFqdns() !== null ? {\n 'alternateFqdns': this.getAlternateFqdns().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getPublicCert() !== 'undefined' && this.getPublicCert() !== null ? {\n 'publicCert': this.getPublicCert()\n } : {}), typeof this.getPrivateKey() !== 'undefined' && this.getPrivateKey() !== null ? {\n 'privateKey': this.getPrivateKey()\n } : {}), typeof this.getCa() !== 'undefined' && this.getCa() !== null ? {\n 'ca': this.getCa()\n } : {}), typeof this.getAlternateFqdns() !== 'undefined' && this.getAlternateFqdns() !== null ? {\n 'alternateFqdns': this.getAlternateFqdns().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_4__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"publicCert\") {\n if (typeof this.publicCert === 'undefined' || this.publicCert === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"publicCert\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__[\"default\"].validateMaxLength(this.publicCert, 2000000)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"publicCert\", \"does not satisfy required maxLength constraint: 2000000\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__[\"default\"].validateMinLength(this.publicCert, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"publicCert\", \"does not satisfy required minLength constraint: 1\");\n }\n }\n if (property === \"privateKey\") {\n if (typeof this.privateKey === 'undefined' || this.privateKey === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"privateKey\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__[\"default\"].validateMaxLength(this.privateKey, 2000000)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"privateKey\", \"does not satisfy required maxLength constraint: 2000000\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__[\"default\"].validateMinLength(this.privateKey, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"privateKey\", \"does not satisfy required minLength constraint: 1\");\n }\n }\n if (property === \"ca\") {\n if (typeof this.ca === 'undefined' || this.ca === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"ca\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__[\"default\"].validateMaxLength(this.ca, 2000000)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"ca\", \"does not satisfy required maxLength constraint: 2000000\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__[\"default\"].validateMinLength(this.ca, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"ca\", \"does not satisfy required minLength constraint: 1\");\n }\n }\n if (property === \"alternateFqdns\") {\n if (typeof this.alternateFqdns === 'undefined' || this.alternateFqdns === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"alternateFqdns\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__[\"default\"].validateMaxItems(this.alternateFqdns, 1000)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"alternateFqdns\", \"does not satisfy required maxItems constraint: 1000\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__[\"default\"].validateMinItems(this.alternateFqdns, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"alternateFqdns\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new Certificate();\n _common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_3__[\"default\"].constructFromObject(data, obj, true);\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_config_Metadata__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('publicCert') && data.publicCert !== null && data.publicCert !== undefined) {\n obj.setPublicCert(data['publicCert']);\n }\n if (data.hasOwnProperty('privateKey') && data.privateKey !== null && data.privateKey !== undefined) {\n obj.setPrivateKey(data['privateKey']);\n }\n if (data.hasOwnProperty('ca') && data.ca !== null && data.ca !== undefined) {\n obj.setCa(data['ca']);\n }\n if (data.hasOwnProperty('alternateFqdns') && data.alternateFqdns !== null && data.alternateFqdns !== undefined) {\n itemArr = [];\n items = data.alternateFqdns;\n for (i = 0; i < items.length; i++) {\n item = _common_v1_config_FQDN__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setAlternateFqdns(itemArr);\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_3__[\"default\"]);\n/**\n * @memberof Certificate\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nCertificate.prototype.metadata = undefined;\n\n/**\n * The public certificate to upload.\n * @memberof Certificate\n */\nCertificate.prototype.publicCert = undefined;\n\n/**\n * The private key to upload.\n * @memberof Certificate\n */\nCertificate.prototype.privateKey = undefined;\n\n/**\n * CA file to upload.\n * @memberof Certificate\n */\nCertificate.prototype.ca = undefined;\n\n/**\n * The list of alternate FQDNs for accessing the Object store. The FQDNs must consist of at least 2 parts separated by a '.'. Each part can contain upper and lower case letters, digits, hyphens or underscores but must begin and end with a letter. Each part can be up to 63 characters long. For e.g 'objects-0.pc_nutanix.com'. \n * @memberof Certificate\n */\nCertificate.prototype.alternateFqdns = undefined;\n\n// Implement OneOfobjects.v4.operations.CertificateApiResponsedata interface:\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/operations/Certificate.js?");
485
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CreateObjectstoreApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/error/ErrorResponse.js\");\n/* harmony import */ var _prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../prism/v4/config/TaskReference */ \"./target/generated-sources/swagger/src/models/prism/v4/config/TaskReference.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\nfunction _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\nfunction _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\nfunction _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The CreateObjectstoreApiResponse model module.\n * @module Ntnx/CreateObjectstoreApiResponse\n * @version 4.0.1\n * @class CreateObjectstoreApiResponse\n */\nvar _CreateObjectstoreApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar CreateObjectstoreApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>CreateObjectstoreApiResponse</code>.\n * REST response for all response codes in API path /objects/v4.0/config/object-stores Post operation\n * @alias module:Ntnx/CreateObjectstoreApiResponse\n */\n function CreateObjectstoreApiResponse() {\n var _this;\n _classCallCheck(this, CreateObjectstoreApiResponse);\n _this = _callSuper(this, CreateObjectstoreApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _CreateObjectstoreApiResponse_brand);\n _this.$objectType = \"objects.v4.config.CreateObjectstoreApiResponse\";\n /** @type {object<string, any>} */\n _this.$reserved = {\n '$fv': \"v4.r0\"\n };\n /** @type {object<string, any>} */\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>CreateObjectstoreApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/CreateObjectstoreApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/CreateObjectstoreApiResponse} The populated <code>CreateObjectstoreApiResponse</code> instance.\n */\n _inherits(CreateObjectstoreApiResponse, _Paginable);\n return _createClass(CreateObjectstoreApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {ApiResponseMetadata}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {ApiResponseMetadata} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {TaskReference | ErrorResponse}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {TaskReference | ErrorResponse} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_CreateObjectstoreApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_CreateObjectstoreApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new CreateObjectstoreApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'prism.v4.config.TaskReference':\n obj.setData(_prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n case 'objects.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n/**\n * @memberof CreateObjectstoreApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nCreateObjectstoreApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof CreateObjectstoreApiResponse\n */\nCreateObjectstoreApiResponse.prototype.data = undefined;\nCreateObjectstoreApiResponse.prototype.$reserved = undefined;\nCreateObjectstoreApiResponse.prototype.$objectType = undefined;\nCreateObjectstoreApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/config/CreateObjectstoreApiResponse.js?");
453
486
 
454
487
  /***/ }),
455
488
 
456
- /***/ "./target/generated-sources/swagger/src/models/objects/v4/operations/CertificateApiResponse.js":
457
- /*!*****************************************************************************************************!*\
458
- !*** ./target/generated-sources/swagger/src/models/objects/v4/operations/CertificateApiResponse.js ***!
459
- \*****************************************************************************************************/
489
+ /***/ "./target/generated-sources/swagger/src/models/objects/v4/config/DeleteObjectstoreApiResponse.js":
490
+ /*!*******************************************************************************************************!*\
491
+ !*** ./target/generated-sources/swagger/src/models/objects/v4/config/DeleteObjectstoreApiResponse.js ***!
492
+ \*******************************************************************************************************/
460
493
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
461
494
 
462
495
  "use strict";
463
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CertificateApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/error/ErrorResponse.js\");\n/* harmony import */ var _Certificate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Certificate */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/Certificate.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The CertificateApiResponse model module.\n * @module Ntnx/CertificateApiResponse\n * @version 4.0.1-alpha-2\n * @class CertificateApiResponse\n */\nvar _CertificateApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar CertificateApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>CertificateApiResponse</code>.\n * REST response for all response codes in API path /objects/v4.0.a2/operations/object-stores/{objectStoreExtId}/certificates/{extId} Get operation\n * @alias module:Ntnx/CertificateApiResponse\n */\n function CertificateApiResponse() {\n var _this;\n _classCallCheck(this, CertificateApiResponse);\n _this = _callSuper(this, CertificateApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _CertificateApiResponse_brand);\n _this.$objectType = \"objects.v4.operations.CertificateApiResponse\";\n _this.$reserved = {\n '$fv': \"v4.r0.a2\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>CertificateApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/CertificateApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/CertificateApiResponse} The populated <code>CertificateApiResponse</code> instance.\n */\n _inherits(CertificateApiResponse, _Paginable);\n return _createClass(CertificateApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_CertificateApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_CertificateApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new CertificateApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'objects.v4.operations.Certificate':\n obj.setData(_Certificate__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n case 'objects.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n/**\n * @memberof CertificateApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nCertificateApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof CertificateApiResponse\n */\nCertificateApiResponse.prototype.data = undefined;\nCertificateApiResponse.prototype.$reserved = undefined;\nCertificateApiResponse.prototype.$objectType = undefined;\nCertificateApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/operations/CertificateApiResponse.js?");
496
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DeleteObjectstoreApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/error/ErrorResponse.js\");\n/* harmony import */ var _prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../prism/v4/config/TaskReference */ \"./target/generated-sources/swagger/src/models/prism/v4/config/TaskReference.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\nfunction _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\nfunction _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\nfunction _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The DeleteObjectstoreApiResponse model module.\n * @module Ntnx/DeleteObjectstoreApiResponse\n * @version 4.0.1\n * @class DeleteObjectstoreApiResponse\n */\nvar _DeleteObjectstoreApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar DeleteObjectstoreApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>DeleteObjectstoreApiResponse</code>.\n * REST response for all response codes in API path /objects/v4.0/config/object-stores/{extId} Delete operation\n * @alias module:Ntnx/DeleteObjectstoreApiResponse\n */\n function DeleteObjectstoreApiResponse() {\n var _this;\n _classCallCheck(this, DeleteObjectstoreApiResponse);\n _this = _callSuper(this, DeleteObjectstoreApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _DeleteObjectstoreApiResponse_brand);\n _this.$objectType = \"objects.v4.config.DeleteObjectstoreApiResponse\";\n /** @type {object<string, any>} */\n _this.$reserved = {\n '$fv': \"v4.r0\"\n };\n /** @type {object<string, any>} */\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>DeleteObjectstoreApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/DeleteObjectstoreApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/DeleteObjectstoreApiResponse} The populated <code>DeleteObjectstoreApiResponse</code> instance.\n */\n _inherits(DeleteObjectstoreApiResponse, _Paginable);\n return _createClass(DeleteObjectstoreApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {ApiResponseMetadata}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {ApiResponseMetadata} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {TaskReference | ErrorResponse}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {TaskReference | ErrorResponse} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_DeleteObjectstoreApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_DeleteObjectstoreApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new DeleteObjectstoreApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'prism.v4.config.TaskReference':\n obj.setData(_prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n case 'objects.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n/**\n * @memberof DeleteObjectstoreApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nDeleteObjectstoreApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof DeleteObjectstoreApiResponse\n */\nDeleteObjectstoreApiResponse.prototype.data = undefined;\nDeleteObjectstoreApiResponse.prototype.$reserved = undefined;\nDeleteObjectstoreApiResponse.prototype.$objectType = undefined;\nDeleteObjectstoreApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/config/DeleteObjectstoreApiResponse.js?");
464
497
 
465
498
  /***/ }),
466
499
 
467
- /***/ "./target/generated-sources/swagger/src/models/objects/v4/operations/CertificateListApiResponse.js":
468
- /*!*********************************************************************************************************!*\
469
- !*** ./target/generated-sources/swagger/src/models/objects/v4/operations/CertificateListApiResponse.js ***!
470
- \*********************************************************************************************************/
500
+ /***/ "./target/generated-sources/swagger/src/models/objects/v4/config/GetCaApiResponse.js":
501
+ /*!*******************************************************************************************!*\
502
+ !*** ./target/generated-sources/swagger/src/models/objects/v4/config/GetCaApiResponse.js ***!
503
+ \*******************************************************************************************/
471
504
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
472
505
 
473
506
  "use strict";
474
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CertificateListApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/error/ErrorResponse.js\");\n/* harmony import */ var _Certificate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Certificate */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/Certificate.js\");\n/* harmony import */ var _CertificateProjection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CertificateProjection */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/CertificateProjection.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n\n/**\n * The CertificateListApiResponse model module.\n * @module Ntnx/CertificateListApiResponse\n * @version 4.0.1-alpha-2\n * @class CertificateListApiResponse\n */\nvar _CertificateListApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar CertificateListApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>CertificateListApiResponse</code>.\n * REST response for all response codes in API path /objects/v4.0.a2/operations/object-stores/{objectStoreExtId}/certificates Get operation\n * @alias module:Ntnx/CertificateListApiResponse\n */\n function CertificateListApiResponse() {\n var _this;\n _classCallCheck(this, CertificateListApiResponse);\n _this = _callSuper(this, CertificateListApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _CertificateListApiResponse_brand);\n _this.$objectType = \"objects.v4.operations.CertificateListApiResponse\";\n _this.$reserved = {\n '$fv': \"v4.r0.a2\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>CertificateListApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/CertificateListApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/CertificateListApiResponse} The populated <code>CertificateListApiResponse</code> instance.\n */\n _inherits(CertificateListApiResponse, _Paginable);\n return _createClass(CertificateListApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_CertificateListApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_CertificateListApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_4__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new CertificateListApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_7__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (Array.isArray(data['data'])) {\n if (data['data'].length === 0) {\n obj.setData([]);\n } else {\n itemArr = [];\n items = data['data'];\n if (items[0].hasOwnProperty('$objectType')) {\n discriminator = items[0]['$objectType'];\n } else {\n discriminator = _typeof(items[0]);\n }\n for (i = 0; i < items.length; i++) {\n switch (discriminator) {\n case 'objects.v4.operations.Certificate':\n item = _Certificate__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n break;\n case 'objects.v4.operations.CertificateProjection':\n item = _CertificateProjection__WEBPACK_IMPORTED_MODULE_3__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n break;\n default:\n throw \"Unknown list of type \" + discriminator + \" in data\";\n }\n }\n obj.setData(itemArr);\n }\n } else {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'objects.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n/**\n * @memberof CertificateListApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nCertificateListApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof CertificateListApiResponse\n */\nCertificateListApiResponse.prototype.data = undefined;\nCertificateListApiResponse.prototype.$reserved = undefined;\nCertificateListApiResponse.prototype.$objectType = undefined;\nCertificateListApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/operations/CertificateListApiResponse.js?");
507
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ GetCaApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/error/ErrorResponse.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\nfunction _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\nfunction _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\nfunction _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n/**\n * The GetCaApiResponse model module.\n * @module Ntnx/GetCaApiResponse\n * @version 4.0.1\n * @class GetCaApiResponse\n */\nvar _GetCaApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar GetCaApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>GetCaApiResponse</code>.\n * REST response for all response codes in API path /objects/v4.0/config/object-stores/{objectStoreExtId}/certificates/{certificateExtId}/certificate-authority Get operation\n * @alias module:Ntnx/GetCaApiResponse\n */\n function GetCaApiResponse() {\n var _this;\n _classCallCheck(this, GetCaApiResponse);\n _this = _callSuper(this, GetCaApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _GetCaApiResponse_brand);\n _this.$objectType = \"objects.v4.config.GetCaApiResponse\";\n /** @type {object<string, any>} */\n _this.$reserved = {\n '$fv': \"v4.r0\"\n };\n /** @type {object<string, any>} */\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>GetCaApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/GetCaApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/GetCaApiResponse} The populated <code>GetCaApiResponse</code> instance.\n */\n _inherits(GetCaApiResponse, _Paginable);\n return _createClass(GetCaApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {ApiResponseMetadata}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {ApiResponseMetadata} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {string | ErrorResponse}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {string | ErrorResponse} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_GetCaApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_GetCaApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new GetCaApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_5__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'Map':\n obj.setData(data['data']);\n break;\n case 'objects.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_5__[\"default\"]);\n/**\n * @memberof GetCaApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nGetCaApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof GetCaApiResponse\n */\nGetCaApiResponse.prototype.data = undefined;\nGetCaApiResponse.prototype.$reserved = undefined;\nGetCaApiResponse.prototype.$objectType = undefined;\nGetCaApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/config/GetCaApiResponse.js?");
475
508
 
476
509
  /***/ }),
477
510
 
478
- /***/ "./target/generated-sources/swagger/src/models/objects/v4/operations/CertificateProjection.js":
511
+ /***/ "./target/generated-sources/swagger/src/models/objects/v4/config/GetCertificateApiResponse.js":
479
512
  /*!****************************************************************************************************!*\
480
- !*** ./target/generated-sources/swagger/src/models/objects/v4/operations/CertificateProjection.js ***!
513
+ !*** ./target/generated-sources/swagger/src/models/objects/v4/config/GetCertificateApiResponse.js ***!
481
514
  \****************************************************************************************************/
482
515
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
483
516
 
484
517
  "use strict";
485
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CertificateProjection)\n/* harmony export */ });\n/* harmony import */ var _common_v1_config_FQDN__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/config/FQDN */ \"./target/generated-sources/swagger/src/models/common/v1/config/FQDN.js\");\n/* harmony import */ var _common_v1_config_Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/v1/config/Metadata */ \"./target/generated-sources/swagger/src/models/common/v1/config/Metadata.js\");\n/* harmony import */ var _Certificate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Certificate */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/Certificate.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n/**\n * The CertificateProjection model module.\n * @module Ntnx/CertificateProjection\n * @version 4.0.1-alpha-2\n * @class CertificateProjection\n */\nvar CertificateProjection = /*#__PURE__*/function (_Certificate) {\n /**\n * Constructs a new <code>CertificateProjection</code>.\n * @alias module:Ntnx/CertificateProjection\n * @extends module:Ntnx/Certificate\n */\n function CertificateProjection() {\n var _this;\n _classCallCheck(this, CertificateProjection);\n _this = _callSuper(this, CertificateProjection);\n _this.$objectType = \"objects.v4.operations.CertificateProjection\";\n _this.$reserved = {\n '$fv': \"v4.r0.a2\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>CertificateProjection</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/CertificateProjection} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/CertificateProjection} The populated <code>CertificateProjection</code> instance.\n */\n _inherits(CertificateProjection, _Certificate);\n return _createClass(CertificateProjection, [{\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new CertificateProjection();\n _Certificate__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data, obj, true);\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_Certificate__WEBPACK_IMPORTED_MODULE_2__[\"default\"]);\n\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/operations/CertificateProjection.js?");
518
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ GetCertificateApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _Certificate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Certificate */ \"./target/generated-sources/swagger/src/models/objects/v4/config/Certificate.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/error/ErrorResponse.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\nfunction _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\nfunction _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\nfunction _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The GetCertificateApiResponse model module.\n * @module Ntnx/GetCertificateApiResponse\n * @version 4.0.1\n * @class GetCertificateApiResponse\n */\nvar _GetCertificateApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar GetCertificateApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>GetCertificateApiResponse</code>.\n * REST response for all response codes in API path /objects/v4.0/config/object-stores/{objectStoreExtId}/certificates/{extId} Get operation\n * @alias module:Ntnx/GetCertificateApiResponse\n */\n function GetCertificateApiResponse() {\n var _this;\n _classCallCheck(this, GetCertificateApiResponse);\n _this = _callSuper(this, GetCertificateApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _GetCertificateApiResponse_brand);\n _this.$objectType = \"objects.v4.config.GetCertificateApiResponse\";\n /** @type {object<string, any>} */\n _this.$reserved = {\n '$fv': \"v4.r0\"\n };\n /** @type {object<string, any>} */\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>GetCertificateApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/GetCertificateApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/GetCertificateApiResponse} The populated <code>GetCertificateApiResponse</code> instance.\n */\n _inherits(GetCertificateApiResponse, _Paginable);\n return _createClass(GetCertificateApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {ApiResponseMetadata}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {ApiResponseMetadata} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {Certificate | ErrorResponse}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {Certificate | ErrorResponse} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_GetCertificateApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_GetCertificateApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new GetCertificateApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'objects.v4.config.Certificate':\n obj.setData(_Certificate__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n case 'objects.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n/**\n * @memberof GetCertificateApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nGetCertificateApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof GetCertificateApiResponse\n */\nGetCertificateApiResponse.prototype.data = undefined;\nGetCertificateApiResponse.prototype.$reserved = undefined;\nGetCertificateApiResponse.prototype.$objectType = undefined;\nGetCertificateApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/config/GetCertificateApiResponse.js?");
486
519
 
487
520
  /***/ }),
488
521
 
489
- /***/ "./target/generated-sources/swagger/src/models/objects/v4/operations/Objectstore.js":
490
- /*!******************************************************************************************!*\
491
- !*** ./target/generated-sources/swagger/src/models/objects/v4/operations/Objectstore.js ***!
492
- \******************************************************************************************/
522
+ /***/ "./target/generated-sources/swagger/src/models/objects/v4/config/GetObjectstoreApiResponse.js":
523
+ /*!****************************************************************************************************!*\
524
+ !*** ./target/generated-sources/swagger/src/models/objects/v4/config/GetObjectstoreApiResponse.js ***!
525
+ \****************************************************************************************************/
493
526
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
494
527
 
495
528
  "use strict";
496
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Objectstore)\n/* harmony export */ });\n/* harmony import */ var _common_v1_config_IPAddress__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/config/IPAddress */ \"./target/generated-sources/swagger/src/models/common/v1/config/IPAddress.js\");\n/* harmony import */ var _common_v1_config_Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/v1/config/Metadata */ \"./target/generated-sources/swagger/src/models/common/v1/config/Metadata.js\");\n/* harmony import */ var _common_v1_response_ApiLink__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../common/v1/response/ApiLink */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js\");\n/* harmony import */ var _common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../common/v1/response/ExternalizableAbstractModel */ \"./target/generated-sources/swagger/src/models/common/v1/response/ExternalizableAbstractModel.js\");\n/* harmony import */ var _StateEnum__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./StateEnum */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/StateEnum.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n\n/**\n * The Objectstore model module.\n * @module Ntnx/Objectstore\n * @version 4.0.1-alpha-2\n * @class Objectstore\n * \n * @param { String } name The name of the Object store.\n */\nvar _Objectstore_brand = /*#__PURE__*/new WeakSet();\nvar Objectstore = /*#__PURE__*/function (_ExternalizableAbstra) {\n /**\n * Constructs a new <code>Objectstore</code>.\n * @alias module:Ntnx/Objectstore\n * @extends module:Ntnx/ExternalizableAbstractModel\n * \n * @param { String } name The name of the Object store.\n */\n function Objectstore(name) {\n var _this;\n _classCallCheck(this, Objectstore);\n _this = _callSuper(this, Objectstore);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _Objectstore_brand);\n _this.name = name;\n _this.$objectType = \"objects.v4.operations.Objectstore\";\n _this.$reserved = {\n '$fv': \"v4.r0.a2\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>Objectstore</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/Objectstore} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/Objectstore} The populated <code>Objectstore</code> instance.\n */\n _inherits(Objectstore, _ExternalizableAbstra);\n return _createClass(Objectstore, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * Returns The name of the Object store.\n * @return {}\n */\n }, {\n key: \"getName\",\n value: function getName() {\n return this.name;\n }\n\n /**\n * Sets The name of the Object store.\n * @param {} name The name of the Object store.\n */\n }, {\n key: \"setName\",\n value: function setName(name) {\n this.name = name;\n }\n\n /**\n * Returns The time when the Object store was created.\n * @return {}\n */\n }, {\n key: \"getCreationTime\",\n value: function getCreationTime() {\n return this.creationTime;\n }\n\n /**\n * Sets The time when the Object store was created.\n * @param {} creationTime The time when the Object store was created.\n */\n }, {\n key: \"setCreationTime\",\n value: function setCreationTime(creationTime) {\n this.creationTime = creationTime;\n }\n\n /**\n * Returns The time when the Object store was last updated.\n * @return {}\n */\n }, {\n key: \"getLastUpdateTime\",\n value: function getLastUpdateTime() {\n return this.lastUpdateTime;\n }\n\n /**\n * Sets The time when the Object store was last updated.\n * @param {} lastUpdateTime The time when the Object store was last updated.\n */\n }, {\n key: \"setLastUpdateTime\",\n value: function setLastUpdateTime(lastUpdateTime) {\n this.lastUpdateTime = lastUpdateTime;\n }\n\n /**\n * Returns A brief description of the Object store.\n * @return {}\n */\n }, {\n key: \"getDescription\",\n value: function getDescription() {\n return this.description;\n }\n\n /**\n * Sets A brief description of the Object store.\n * @param {} description A brief description of the Object store.\n */\n }, {\n key: \"setDescription\",\n value: function setDescription(description) {\n this.description = description;\n }\n\n /**\n * Returns Object store deployment version.\n * @return {}\n */\n }, {\n key: \"getDeploymentVersion\",\n value: function getDeploymentVersion() {\n return this.deploymentVersion;\n }\n\n /**\n * Sets Object store deployment version.\n * @param {} deploymentVersion Object store deployment version.\n */\n }, {\n key: \"setDeploymentVersion\",\n value: function setDeploymentVersion(deploymentVersion) {\n this.deploymentVersion = deploymentVersion;\n }\n\n /**\n * Returns The DNS domain/subdomain the Object store belongs to. All the Object stores under one Prism Central must have the same domain name. The domain name must consist of at least 2 parts separated by a '.'. Each part can contain upper and lower case letters, digits, hyphens, or underscores. Each part can be up to 63 characters long. The domain must begin and end with an alphanumeric character. For example - 'objects-0.pc_nutanix.com'. \n * @return {}\n */\n }, {\n key: \"getDomain\",\n value: function getDomain() {\n return this.domain;\n }\n\n /**\n * Sets The DNS domain/subdomain the Object store belongs to. All the Object stores under one Prism Central must have the same domain name. The domain name must consist of at least 2 parts separated by a '.'. Each part can contain upper and lower case letters, digits, hyphens, or underscores. Each part can be up to 63 characters long. The domain must begin and end with an alphanumeric character. For example - 'objects-0.pc_nutanix.com'. \n * @param {} domain The DNS domain/subdomain the Object store belongs to. All the Object stores under one Prism Central must have the same domain name. The domain name must consist of at least 2 parts separated by a '.'. Each part can contain upper and lower case letters, digits, hyphens, or underscores. Each part can be up to 63 characters long. The domain must begin and end with an alphanumeric character. For example - 'objects-0.pc_nutanix.com'. \n */\n }, {\n key: \"setDomain\",\n value: function setDomain(domain) {\n this.domain = domain;\n }\n\n /**\n * Returns The region in which the Object store is deployed.\n * @return {}\n */\n }, {\n key: \"getRegion\",\n value: function getRegion() {\n return this.region;\n }\n\n /**\n * Sets The region in which the Object store is deployed.\n * @param {} region The region in which the Object store is deployed.\n */\n }, {\n key: \"setRegion\",\n value: function setRegion(region) {\n this.region = region;\n }\n\n /**\n * Returns The number of worker nodes (VMs) to be created for the Object store. Each worker node requires 10 vCPUs and 32 GiB of memory.\n * minimum: 1\n * maximum: 1000\n * @return {}\n */\n }, {\n key: \"getNumWorkerNodes\",\n value: function getNumWorkerNodes() {\n return this.numWorkerNodes;\n }\n\n /**\n * Sets The number of worker nodes (VMs) to be created for the Object store. Each worker node requires 10 vCPUs and 32 GiB of memory.\n * @param {} numWorkerNodes The number of worker nodes (VMs) to be created for the Object store. Each worker node requires 10 vCPUs and 32 GiB of memory.\n */\n }, {\n key: \"setNumWorkerNodes\",\n value: function setNumWorkerNodes(numWorkerNodes) {\n this.numWorkerNodes = numWorkerNodes;\n }\n\n /**\n * Returns UUID of the AHV or ESXi cluster.\n * @return {}\n */\n }, {\n key: \"getClusterReference\",\n value: function getClusterReference() {\n return this.clusterReference;\n }\n\n /**\n * Sets UUID of the AHV or ESXi cluster.\n * @param {} clusterReference UUID of the AHV or ESXi cluster.\n */\n }, {\n key: \"setClusterReference\",\n value: function setClusterReference(clusterReference) {\n this.clusterReference = clusterReference;\n }\n\n /**\n * Returns Reference to the Storage Network of the Object store. This is the subnet UUID for an AHV cluster or the IPAM name for an ESXi cluster.\n * @return {}\n */\n }, {\n key: \"getStorageNetworkReference\",\n value: function getStorageNetworkReference() {\n return this.storageNetworkReference;\n }\n\n /**\n * Sets Reference to the Storage Network of the Object store. This is the subnet UUID for an AHV cluster or the IPAM name for an ESXi cluster.\n * @param {} storageNetworkReference Reference to the Storage Network of the Object store. This is the subnet UUID for an AHV cluster or the IPAM name for an ESXi cluster.\n */\n }, {\n key: \"setStorageNetworkReference\",\n value: function setStorageNetworkReference(storageNetworkReference) {\n this.storageNetworkReference = storageNetworkReference;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getStorageNetworkVip\",\n value: function getStorageNetworkVip() {\n return this.storageNetworkVip;\n }\n\n /**\n * @param {} storageNetworkVip\n */\n }, {\n key: \"setStorageNetworkVip\",\n value: function setStorageNetworkVip(storageNetworkVip) {\n this.storageNetworkVip = storageNetworkVip;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getStorageNetworkDnsIp\",\n value: function getStorageNetworkDnsIp() {\n return this.storageNetworkDnsIp;\n }\n\n /**\n * @param {} storageNetworkDnsIp\n */\n }, {\n key: \"setStorageNetworkDnsIp\",\n value: function setStorageNetworkDnsIp(storageNetworkDnsIp) {\n this.storageNetworkDnsIp = storageNetworkDnsIp;\n }\n\n /**\n * Returns Public network reference of the Object store. This is the subnet UUID for an AHV cluster or the IPAM name for an ESXi cluster.\n * @return {}\n */\n }, {\n key: \"getPublicNetworkReference\",\n value: function getPublicNetworkReference() {\n return this.publicNetworkReference;\n }\n\n /**\n * Sets Public network reference of the Object store. This is the subnet UUID for an AHV cluster or the IPAM name for an ESXi cluster.\n * @param {} publicNetworkReference Public network reference of the Object store. This is the subnet UUID for an AHV cluster or the IPAM name for an ESXi cluster.\n */\n }, {\n key: \"setPublicNetworkReference\",\n value: function setPublicNetworkReference(publicNetworkReference) {\n this.publicNetworkReference = publicNetworkReference;\n }\n\n /**\n * Returns A list of static IP addresses used as public IPs to access the Object store.\n * @return {}\n */\n }, {\n key: \"getPublicNetworkIps\",\n value: function getPublicNetworkIps() {\n return this.publicNetworkIps;\n }\n\n /**\n * Sets A list of static IP addresses used as public IPs to access the Object store.\n * @param {} publicNetworkIps A list of static IP addresses used as public IPs to access the Object store.\n */\n }, {\n key: \"setPublicNetworkIps\",\n value: function setPublicNetworkIps(publicNetworkIps) {\n this.publicNetworkIps = publicNetworkIps;\n }\n\n /**\n * Returns Size of the Object store in GiB.\n * minimum: 1\n * maximum: 178814713856\n * @return {}\n */\n }, {\n key: \"getTotalCapacityGiB\",\n value: function getTotalCapacityGiB() {\n return this.totalCapacityGiB;\n }\n\n /**\n * Sets Size of the Object store in GiB.\n * @param {} totalCapacityGiB Size of the Object store in GiB.\n */\n }, {\n key: \"setTotalCapacityGiB\",\n value: function setTotalCapacityGiB(totalCapacityGiB) {\n this.totalCapacityGiB = totalCapacityGiB;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getState\",\n value: function getState() {\n return this.state;\n }\n\n /**\n * @param {} state\n */\n }, {\n key: \"setState\",\n value: function setState(state) {\n this.state = state;\n }\n\n /**\n * Returns UUID reference to the Object store certificate.\n * @return {}\n */\n }, {\n key: \"getCertificateReference\",\n value: function getCertificateReference() {\n return this.certificateReference;\n }\n\n /**\n * Sets UUID reference to the Object store certificate.\n * @param {} certificateReference UUID reference to the Object store certificate.\n */\n }, {\n key: \"setCertificateReference\",\n value: function setCertificateReference(certificateReference) {\n this.certificateReference = certificateReference;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}), typeof this.getCreationTime() !== 'undefined' && this.getCreationTime() !== null ? {\n 'creationTime': this.getCreationTime()\n } : {}), typeof this.getLastUpdateTime() !== 'undefined' && this.getLastUpdateTime() !== null ? {\n 'lastUpdateTime': this.getLastUpdateTime()\n } : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {\n 'description': this.getDescription()\n } : {}), typeof this.getDeploymentVersion() !== 'undefined' && this.getDeploymentVersion() !== null ? {\n 'deploymentVersion': this.getDeploymentVersion()\n } : {}), typeof this.getDomain() !== 'undefined' && this.getDomain() !== null ? {\n 'domain': this.getDomain()\n } : {}), typeof this.getRegion() !== 'undefined' && this.getRegion() !== null ? {\n 'region': this.getRegion()\n } : {}), typeof this.getNumWorkerNodes() !== 'undefined' && this.getNumWorkerNodes() !== null ? {\n 'numWorkerNodes': this.getNumWorkerNodes()\n } : {}), typeof this.getClusterReference() !== 'undefined' && this.getClusterReference() !== null ? {\n 'clusterReference': this.getClusterReference()\n } : {}), typeof this.getStorageNetworkReference() !== 'undefined' && this.getStorageNetworkReference() !== null ? {\n 'storageNetworkReference': this.getStorageNetworkReference()\n } : {}), typeof this.getStorageNetworkVip() !== 'undefined' && this.getStorageNetworkVip() !== null ? {\n 'storageNetworkVip': this.getStorageNetworkVip().toJson(false)\n } : {}), typeof this.getStorageNetworkDnsIp() !== 'undefined' && this.getStorageNetworkDnsIp() !== null ? {\n 'storageNetworkDnsIp': this.getStorageNetworkDnsIp().toJson(false)\n } : {}), typeof this.getPublicNetworkReference() !== 'undefined' && this.getPublicNetworkReference() !== null ? {\n 'publicNetworkReference': this.getPublicNetworkReference()\n } : {}), typeof this.getPublicNetworkIps() !== 'undefined' && this.getPublicNetworkIps() !== null ? {\n 'publicNetworkIps': this.getPublicNetworkIps().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTotalCapacityGiB() !== 'undefined' && this.getTotalCapacityGiB() !== null ? {\n 'totalCapacityGiB': this.getTotalCapacityGiB()\n } : {}), typeof this.getState() !== 'undefined' && this.getState() !== null ? {\n 'state': this.getState()\n } : {}), typeof this.getCertificateReference() !== 'undefined' && this.getCertificateReference() !== null ? {\n 'certificateReference': this.getCertificateReference()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {\n 'description': this.getDescription()\n } : {}), typeof this.getDeploymentVersion() !== 'undefined' && this.getDeploymentVersion() !== null ? {\n 'deploymentVersion': this.getDeploymentVersion()\n } : {}), typeof this.getDomain() !== 'undefined' && this.getDomain() !== null ? {\n 'domain': this.getDomain()\n } : {}), typeof this.getRegion() !== 'undefined' && this.getRegion() !== null ? {\n 'region': this.getRegion()\n } : {}), typeof this.getNumWorkerNodes() !== 'undefined' && this.getNumWorkerNodes() !== null ? {\n 'numWorkerNodes': this.getNumWorkerNodes()\n } : {}), typeof this.getClusterReference() !== 'undefined' && this.getClusterReference() !== null ? {\n 'clusterReference': this.getClusterReference()\n } : {}), typeof this.getStorageNetworkReference() !== 'undefined' && this.getStorageNetworkReference() !== null ? {\n 'storageNetworkReference': this.getStorageNetworkReference()\n } : {}), typeof this.getStorageNetworkVip() !== 'undefined' && this.getStorageNetworkVip() !== null ? {\n 'storageNetworkVip': this.getStorageNetworkVip().toJson(false)\n } : {}), typeof this.getStorageNetworkDnsIp() !== 'undefined' && this.getStorageNetworkDnsIp() !== null ? {\n 'storageNetworkDnsIp': this.getStorageNetworkDnsIp().toJson(false)\n } : {}), typeof this.getPublicNetworkReference() !== 'undefined' && this.getPublicNetworkReference() !== null ? {\n 'publicNetworkReference': this.getPublicNetworkReference()\n } : {}), typeof this.getPublicNetworkIps() !== 'undefined' && this.getPublicNetworkIps() !== null ? {\n 'publicNetworkIps': this.getPublicNetworkIps().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTotalCapacityGiB() !== 'undefined' && this.getTotalCapacityGiB() !== null ? {\n 'totalCapacityGiB': this.getTotalCapacityGiB()\n } : {}), typeof this.getState() !== 'undefined' && this.getState() !== null ? {\n 'state': this.getState()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_5__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [\"name\"];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"name\") {\n if (typeof this.name === 'undefined' || this.name === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"name\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxLength(this.name, 50)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"name\", \"does not satisfy required maxLength constraint: 50\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinLength(this.name, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"name\", \"does not satisfy required minLength constraint: 1\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validatePattern(this.name, /^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]))*([A-Za-z]|[A-Za-z][A-Za-z0-9-]*[A-Za-z0-9])$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"name\", \"does not satisfy required pattern: /^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]))*([A-Za-z]|[A-Za-z][A-Za-z0-9-]*[A-Za-z0-9])$/\");\n }\n }\n if (property === \"creationTime\") {\n if (typeof this.creationTime === 'undefined' || this.creationTime === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"creationTime\", \"undefined or null\");\n }\n }\n if (property === \"lastUpdateTime\") {\n if (typeof this.lastUpdateTime === 'undefined' || this.lastUpdateTime === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"lastUpdateTime\", \"undefined or null\");\n }\n }\n if (property === \"description\") {\n if (typeof this.description === 'undefined' || this.description === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"description\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxLength(this.description, 1000)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"description\", \"does not satisfy required maxLength constraint: 1000\");\n }\n }\n if (property === \"deploymentVersion\") {\n if (typeof this.deploymentVersion === 'undefined' || this.deploymentVersion === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"deploymentVersion\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxLength(this.deploymentVersion, 50)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"deploymentVersion\", \"does not satisfy required maxLength constraint: 50\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinLength(this.deploymentVersion, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"deploymentVersion\", \"does not satisfy required minLength constraint: 1\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validatePattern(this.deploymentVersion, /^[a-zA-z0-9][a-zA-z0-9\\\\.]*[a-zA-Z0-9]?$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"deploymentVersion\", \"does not satisfy required pattern: /^[a-zA-z0-9][a-zA-z0-9\\\\.]*[a-zA-Z0-9]?$/\");\n }\n }\n if (property === \"domain\") {\n if (typeof this.domain === 'undefined' || this.domain === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"domain\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxLength(this.domain, 1000)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"domain\", \"does not satisfy required maxLength constraint: 1000\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinLength(this.domain, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"domain\", \"does not satisfy required minLength constraint: 1\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validatePattern(this.domain, /^(([a-zA-Z0-9_\\\\-]{1,63})\\\\.)+([a-zA-Z0-9_\\\\-]{1,63})$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"domain\", \"does not satisfy required pattern: /^(([a-zA-Z0-9_\\\\-]{1,63})\\\\.)+([a-zA-Z0-9_\\\\-]{1,63})$/\");\n }\n }\n if (property === \"region\") {\n if (typeof this.region === 'undefined' || this.region === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"region\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxLength(this.region, 50)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"region\", \"does not satisfy required maxLength constraint: 50\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinLength(this.region, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"region\", \"does not satisfy required minLength constraint: 1\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validatePattern(this.region, /^[a-z]+\\\\-[a-z]+\\\\-[0-9]$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"region\", \"does not satisfy required pattern: /^[a-z]+\\\\-[a-z]+\\\\-[0-9]$/\");\n }\n }\n if (property === \"numWorkerNodes\") {\n if (typeof this.numWorkerNodes === 'undefined' || this.numWorkerNodes === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"numWorkerNodes\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaximum(this.numWorkerNodes, 1000)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"numWorkerNodes\", \"does not satisfy required maximum constraint: 1000\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinimum(this.numWorkerNodes, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"numWorkerNodes\", \"does not satisfy required minimum constraint: 1\");\n }\n }\n if (property === \"clusterReference\") {\n if (typeof this.clusterReference === 'undefined' || this.clusterReference === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"clusterReference\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validatePattern(this.clusterReference, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"clusterReference\", \"does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/\");\n }\n }\n if (property === \"storageNetworkReference\") {\n if (typeof this.storageNetworkReference === 'undefined' || this.storageNetworkReference === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"storageNetworkReference\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxLength(this.storageNetworkReference, 1000)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"storageNetworkReference\", \"does not satisfy required maxLength constraint: 1000\");\n }\n }\n if (property === \"storageNetworkVip\") {\n if (typeof this.storageNetworkVip === 'undefined' || this.storageNetworkVip === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"storageNetworkVip\", \"undefined or null\");\n }\n }\n if (property === \"storageNetworkDnsIp\") {\n if (typeof this.storageNetworkDnsIp === 'undefined' || this.storageNetworkDnsIp === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"storageNetworkDnsIp\", \"undefined or null\");\n }\n }\n if (property === \"publicNetworkReference\") {\n if (typeof this.publicNetworkReference === 'undefined' || this.publicNetworkReference === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"publicNetworkReference\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxLength(this.publicNetworkReference, 1000)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"publicNetworkReference\", \"does not satisfy required maxLength constraint: 1000\");\n }\n }\n if (property === \"publicNetworkIps\") {\n if (typeof this.publicNetworkIps === 'undefined' || this.publicNetworkIps === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"publicNetworkIps\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.publicNetworkIps, 1000)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"publicNetworkIps\", \"does not satisfy required maxItems constraint: 1000\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinItems(this.publicNetworkIps, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"publicNetworkIps\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"totalCapacityGiB\") {\n if (typeof this.totalCapacityGiB === 'undefined' || this.totalCapacityGiB === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"totalCapacityGiB\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaximum(this.totalCapacityGiB, 178814713856)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"totalCapacityGiB\", \"does not satisfy required maximum constraint: 178814713856\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinimum(this.totalCapacityGiB, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"totalCapacityGiB\", \"does not satisfy required minimum constraint: 1\");\n }\n }\n if (property === \"state\") {\n if (typeof this.state === 'undefined' || this.state === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"state\", \"undefined or null\");\n }\n }\n if (property === \"certificateReference\") {\n if (typeof this.certificateReference === 'undefined' || this.certificateReference === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"certificateReference\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validatePattern(this.certificateReference, /^[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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"certificateReference\", \"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}$/\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new Objectstore();\n _common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_3__[\"default\"].constructFromObject(data, obj, true);\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_config_Metadata__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {\n obj.setName(data['name']);\n }\n if (data.hasOwnProperty('creationTime') && data.creationTime !== null && data.creationTime !== undefined) {\n obj.setCreationTime(data['creationTime']);\n }\n if (data.hasOwnProperty('lastUpdateTime') && data.lastUpdateTime !== null && data.lastUpdateTime !== undefined) {\n obj.setLastUpdateTime(data['lastUpdateTime']);\n }\n if (data.hasOwnProperty('description') && data.description !== null && data.description !== undefined) {\n obj.setDescription(data['description']);\n }\n if (data.hasOwnProperty('deploymentVersion') && data.deploymentVersion !== null && data.deploymentVersion !== undefined) {\n obj.setDeploymentVersion(data['deploymentVersion']);\n }\n if (data.hasOwnProperty('domain') && data.domain !== null && data.domain !== undefined) {\n obj.setDomain(data['domain']);\n }\n if (data.hasOwnProperty('region') && data.region !== null && data.region !== undefined) {\n obj.setRegion(data['region']);\n }\n if (data.hasOwnProperty('numWorkerNodes') && data.numWorkerNodes !== null && data.numWorkerNodes !== undefined) {\n obj.setNumWorkerNodes(data['numWorkerNodes']);\n }\n if (data.hasOwnProperty('clusterReference') && data.clusterReference !== null && data.clusterReference !== undefined) {\n obj.setClusterReference(data['clusterReference']);\n }\n if (data.hasOwnProperty('storageNetworkReference') && data.storageNetworkReference !== null && data.storageNetworkReference !== undefined) {\n obj.setStorageNetworkReference(data['storageNetworkReference']);\n }\n if (data.hasOwnProperty('storageNetworkVip') && data.storageNetworkVip !== null && data.storageNetworkVip !== undefined) {\n obj.setStorageNetworkVip(_common_v1_config_IPAddress__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['storageNetworkVip']));\n }\n if (data.hasOwnProperty('storageNetworkDnsIp') && data.storageNetworkDnsIp !== null && data.storageNetworkDnsIp !== undefined) {\n obj.setStorageNetworkDnsIp(_common_v1_config_IPAddress__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['storageNetworkDnsIp']));\n }\n if (data.hasOwnProperty('publicNetworkReference') && data.publicNetworkReference !== null && data.publicNetworkReference !== undefined) {\n obj.setPublicNetworkReference(data['publicNetworkReference']);\n }\n if (data.hasOwnProperty('publicNetworkIps') && data.publicNetworkIps !== null && data.publicNetworkIps !== undefined) {\n itemArr = [];\n items = data.publicNetworkIps;\n for (i = 0; i < items.length; i++) {\n item = _common_v1_config_IPAddress__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setPublicNetworkIps(itemArr);\n }\n if (data.hasOwnProperty('totalCapacityGiB') && data.totalCapacityGiB !== null && data.totalCapacityGiB !== undefined) {\n obj.setTotalCapacityGiB(data['totalCapacityGiB']);\n }\n if (data.hasOwnProperty('state') && data.state !== null && data.state !== undefined) {\n obj.setState(_StateEnum__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(data['state']));\n }\n if (data.hasOwnProperty('certificateReference') && data.certificateReference !== null && data.certificateReference !== undefined) {\n obj.setCertificateReference(data['certificateReference']);\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_3__[\"default\"]);\n/**\n * @memberof Objectstore\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nObjectstore.prototype.metadata = undefined;\n\n/**\n * The name of the Object store.\n * @memberof Objectstore\n */\nObjectstore.prototype.name = undefined;\n\n/**\n * The time when the Object store was created.\n * @memberof Objectstore\n */\nObjectstore.prototype.creationTime = undefined;\n\n/**\n * The time when the Object store was last updated.\n * @memberof Objectstore\n */\nObjectstore.prototype.lastUpdateTime = undefined;\n\n/**\n * A brief description of the Object store.\n * @memberof Objectstore\n */\nObjectstore.prototype.description = undefined;\n\n/**\n * Object store deployment version.\n * @memberof Objectstore\n */\nObjectstore.prototype.deploymentVersion = undefined;\n\n/**\n * The DNS domain/subdomain the Object store belongs to. All the Object stores under one Prism Central must have the same domain name. The domain name must consist of at least 2 parts separated by a '.'. Each part can contain upper and lower case letters, digits, hyphens, or underscores. Each part can be up to 63 characters long. The domain must begin and end with an alphanumeric character. For example - 'objects-0.pc_nutanix.com'. \n * @memberof Objectstore\n */\nObjectstore.prototype.domain = undefined;\n\n/**\n * The region in which the Object store is deployed.\n * @memberof Objectstore\n */\nObjectstore.prototype.region = undefined;\n\n/**\n * The number of worker nodes (VMs) to be created for the Object store. Each worker node requires 10 vCPUs and 32 GiB of memory.\n * @memberof Objectstore\n */\nObjectstore.prototype.numWorkerNodes = undefined;\n\n/**\n * UUID of the AHV or ESXi cluster.\n * @memberof Objectstore\n */\nObjectstore.prototype.clusterReference = undefined;\n\n/**\n * Reference to the Storage Network of the Object store. This is the subnet UUID for an AHV cluster or the IPAM name for an ESXi cluster.\n * @memberof Objectstore\n */\nObjectstore.prototype.storageNetworkReference = undefined;\n\n/**\n * @memberof Objectstore\n */\nObjectstore.prototype.storageNetworkVip = undefined;\n\n/**\n * @memberof Objectstore\n */\nObjectstore.prototype.storageNetworkDnsIp = undefined;\n\n/**\n * Public network reference of the Object store. This is the subnet UUID for an AHV cluster or the IPAM name for an ESXi cluster.\n * @memberof Objectstore\n */\nObjectstore.prototype.publicNetworkReference = undefined;\n\n/**\n * A list of static IP addresses used as public IPs to access the Object store.\n * @memberof Objectstore\n */\nObjectstore.prototype.publicNetworkIps = undefined;\n\n/**\n * Size of the Object store in GiB.\n * @memberof Objectstore\n */\nObjectstore.prototype.totalCapacityGiB = undefined;\n\n/**\n * @memberof Objectstore\n */\nObjectstore.prototype.state = undefined;\n\n/**\n * UUID reference to the Object store certificate.\n * @memberof Objectstore\n */\nObjectstore.prototype.certificateReference = undefined;\n\n// Implement OneOfobjects.v4.operations.ObjectstoreApiResponsedata interface:\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/operations/Objectstore.js?");
529
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ GetObjectstoreApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _ObjectStore__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ObjectStore */ \"./target/generated-sources/swagger/src/models/objects/v4/config/ObjectStore.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/error/ErrorResponse.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\nfunction _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\nfunction _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\nfunction _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The GetObjectstoreApiResponse model module.\n * @module Ntnx/GetObjectstoreApiResponse\n * @version 4.0.1\n * @class GetObjectstoreApiResponse\n */\nvar _GetObjectstoreApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar GetObjectstoreApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>GetObjectstoreApiResponse</code>.\n * REST response for all response codes in API path /objects/v4.0/config/object-stores/{extId} Get operation\n * @alias module:Ntnx/GetObjectstoreApiResponse\n */\n function GetObjectstoreApiResponse() {\n var _this;\n _classCallCheck(this, GetObjectstoreApiResponse);\n _this = _callSuper(this, GetObjectstoreApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _GetObjectstoreApiResponse_brand);\n _this.$objectType = \"objects.v4.config.GetObjectstoreApiResponse\";\n /** @type {object<string, any>} */\n _this.$reserved = {\n '$fv': \"v4.r0\"\n };\n /** @type {object<string, any>} */\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>GetObjectstoreApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/GetObjectstoreApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/GetObjectstoreApiResponse} The populated <code>GetObjectstoreApiResponse</code> instance.\n */\n _inherits(GetObjectstoreApiResponse, _Paginable);\n return _createClass(GetObjectstoreApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {ApiResponseMetadata}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {ApiResponseMetadata} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {ObjectStore | ErrorResponse}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {ObjectStore | ErrorResponse} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_GetObjectstoreApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_GetObjectstoreApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new GetObjectstoreApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'objects.v4.config.ObjectStore':\n obj.setData(_ObjectStore__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n case 'objects.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n/**\n * @memberof GetObjectstoreApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nGetObjectstoreApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof GetObjectstoreApiResponse\n */\nGetObjectstoreApiResponse.prototype.data = undefined;\nGetObjectstoreApiResponse.prototype.$reserved = undefined;\nGetObjectstoreApiResponse.prototype.$objectType = undefined;\nGetObjectstoreApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/config/GetObjectstoreApiResponse.js?");
497
530
 
498
531
  /***/ }),
499
532
 
500
- /***/ "./target/generated-sources/swagger/src/models/objects/v4/operations/ObjectstoreApiResponse.js":
501
- /*!*****************************************************************************************************!*\
502
- !*** ./target/generated-sources/swagger/src/models/objects/v4/operations/ObjectstoreApiResponse.js ***!
503
- \*****************************************************************************************************/
533
+ /***/ "./target/generated-sources/swagger/src/models/objects/v4/config/ListCertificatesApiResponse.js":
534
+ /*!******************************************************************************************************!*\
535
+ !*** ./target/generated-sources/swagger/src/models/objects/v4/config/ListCertificatesApiResponse.js ***!
536
+ \******************************************************************************************************/
504
537
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
505
538
 
506
539
  "use strict";
507
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ObjectstoreApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/error/ErrorResponse.js\");\n/* harmony import */ var _Objectstore__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Objectstore */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/Objectstore.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The ObjectstoreApiResponse model module.\n * @module Ntnx/ObjectstoreApiResponse\n * @version 4.0.1-alpha-2\n * @class ObjectstoreApiResponse\n */\nvar _ObjectstoreApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar ObjectstoreApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>ObjectstoreApiResponse</code>.\n * REST response for all response codes in API path /objects/v4.0.a2/operations/object-stores/{extId} Get operation\n * @alias module:Ntnx/ObjectstoreApiResponse\n */\n function ObjectstoreApiResponse() {\n var _this;\n _classCallCheck(this, ObjectstoreApiResponse);\n _this = _callSuper(this, ObjectstoreApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _ObjectstoreApiResponse_brand);\n _this.$objectType = \"objects.v4.operations.ObjectstoreApiResponse\";\n _this.$reserved = {\n '$fv': \"v4.r0.a2\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>ObjectstoreApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ObjectstoreApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ObjectstoreApiResponse} The populated <code>ObjectstoreApiResponse</code> instance.\n */\n _inherits(ObjectstoreApiResponse, _Paginable);\n return _createClass(ObjectstoreApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_ObjectstoreApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_ObjectstoreApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ObjectstoreApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'objects.v4.operations.Objectstore':\n obj.setData(_Objectstore__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n case 'objects.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n/**\n * @memberof ObjectstoreApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nObjectstoreApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof ObjectstoreApiResponse\n */\nObjectstoreApiResponse.prototype.data = undefined;\nObjectstoreApiResponse.prototype.$reserved = undefined;\nObjectstoreApiResponse.prototype.$objectType = undefined;\nObjectstoreApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/operations/ObjectstoreApiResponse.js?");
540
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ListCertificatesApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _Certificate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Certificate */ \"./target/generated-sources/swagger/src/models/objects/v4/config/Certificate.js\");\n/* harmony import */ var _CertificateProjection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CertificateProjection */ \"./target/generated-sources/swagger/src/models/objects/v4/config/CertificateProjection.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/error/ErrorResponse.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\nfunction _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\nfunction _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\nfunction _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n\n/**\n * The ListCertificatesApiResponse model module.\n * @module Ntnx/ListCertificatesApiResponse\n * @version 4.0.1\n * @class ListCertificatesApiResponse\n */\nvar _ListCertificatesApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar ListCertificatesApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>ListCertificatesApiResponse</code>.\n * REST response for all response codes in API path /objects/v4.0/config/object-stores/{objectStoreExtId}/certificates Get operation\n * @alias module:Ntnx/ListCertificatesApiResponse\n */\n function ListCertificatesApiResponse() {\n var _this;\n _classCallCheck(this, ListCertificatesApiResponse);\n _this = _callSuper(this, ListCertificatesApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _ListCertificatesApiResponse_brand);\n _this.$objectType = \"objects.v4.config.ListCertificatesApiResponse\";\n /** @type {object<string, any>} */\n _this.$reserved = {\n '$fv': \"v4.r0\"\n };\n /** @type {object<string, any>} */\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>ListCertificatesApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ListCertificatesApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ListCertificatesApiResponse} The populated <code>ListCertificatesApiResponse</code> instance.\n */\n _inherits(ListCertificatesApiResponse, _Paginable);\n return _createClass(ListCertificatesApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {ApiResponseMetadata}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {ApiResponseMetadata} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {Certificate[] | ErrorResponse | CertificateProjection[]}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {Certificate[] | ErrorResponse | CertificateProjection[]} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_ListCertificatesApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_ListCertificatesApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_4__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ListCertificatesApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_7__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (Array.isArray(data['data'])) {\n if (data['data'].length === 0) {\n obj.setData([]);\n } else {\n itemArr = [];\n items = data['data'];\n if (items[0].hasOwnProperty('$objectType')) {\n discriminator = items[0]['$objectType'];\n } else {\n discriminator = _typeof(items[0]);\n }\n for (i = 0; i < items.length; i++) {\n switch (discriminator) {\n case 'objects.v4.config.Certificate':\n item = _Certificate__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n break;\n case 'objects.v4.config.CertificateProjection':\n item = _CertificateProjection__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n break;\n default:\n throw \"Unknown list of type \" + discriminator + \" in data\";\n }\n }\n obj.setData(itemArr);\n }\n } else {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'objects.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_3__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n/**\n * @memberof ListCertificatesApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nListCertificatesApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof ListCertificatesApiResponse\n */\nListCertificatesApiResponse.prototype.data = undefined;\nListCertificatesApiResponse.prototype.$reserved = undefined;\nListCertificatesApiResponse.prototype.$objectType = undefined;\nListCertificatesApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/config/ListCertificatesApiResponse.js?");
508
541
 
509
542
  /***/ }),
510
543
 
511
- /***/ "./target/generated-sources/swagger/src/models/objects/v4/operations/ObjectstoreListApiResponse.js":
512
- /*!*********************************************************************************************************!*\
513
- !*** ./target/generated-sources/swagger/src/models/objects/v4/operations/ObjectstoreListApiResponse.js ***!
514
- \*********************************************************************************************************/
544
+ /***/ "./target/generated-sources/swagger/src/models/objects/v4/config/ListObjectstoresApiResponse.js":
545
+ /*!******************************************************************************************************!*\
546
+ !*** ./target/generated-sources/swagger/src/models/objects/v4/config/ListObjectstoresApiResponse.js ***!
547
+ \******************************************************************************************************/
515
548
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
516
549
 
517
550
  "use strict";
518
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ObjectstoreListApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/error/ErrorResponse.js\");\n/* harmony import */ var _Objectstore__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Objectstore */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/Objectstore.js\");\n/* harmony import */ var _ObjectstoreProjection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ObjectstoreProjection */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/ObjectstoreProjection.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n\n/**\n * The ObjectstoreListApiResponse model module.\n * @module Ntnx/ObjectstoreListApiResponse\n * @version 4.0.1-alpha-2\n * @class ObjectstoreListApiResponse\n */\nvar _ObjectstoreListApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar ObjectstoreListApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>ObjectstoreListApiResponse</code>.\n * REST response for all response codes in API path /objects/v4.0.a2/operations/object-stores Get operation\n * @alias module:Ntnx/ObjectstoreListApiResponse\n */\n function ObjectstoreListApiResponse() {\n var _this;\n _classCallCheck(this, ObjectstoreListApiResponse);\n _this = _callSuper(this, ObjectstoreListApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _ObjectstoreListApiResponse_brand);\n _this.$objectType = \"objects.v4.operations.ObjectstoreListApiResponse\";\n _this.$reserved = {\n '$fv': \"v4.r0.a2\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>ObjectstoreListApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ObjectstoreListApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ObjectstoreListApiResponse} The populated <code>ObjectstoreListApiResponse</code> instance.\n */\n _inherits(ObjectstoreListApiResponse, _Paginable);\n return _createClass(ObjectstoreListApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_ObjectstoreListApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_ObjectstoreListApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_4__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ObjectstoreListApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_7__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (Array.isArray(data['data'])) {\n if (data['data'].length === 0) {\n obj.setData([]);\n } else {\n itemArr = [];\n items = data['data'];\n if (items[0].hasOwnProperty('$objectType')) {\n discriminator = items[0]['$objectType'];\n } else {\n discriminator = _typeof(items[0]);\n }\n for (i = 0; i < items.length; i++) {\n switch (discriminator) {\n case 'objects.v4.operations.Objectstore':\n item = _Objectstore__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n break;\n case 'objects.v4.operations.ObjectstoreProjection':\n item = _ObjectstoreProjection__WEBPACK_IMPORTED_MODULE_3__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n break;\n default:\n throw \"Unknown list of type \" + discriminator + \" in data\";\n }\n }\n obj.setData(itemArr);\n }\n } else {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'objects.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n/**\n * @memberof ObjectstoreListApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nObjectstoreListApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof ObjectstoreListApiResponse\n */\nObjectstoreListApiResponse.prototype.data = undefined;\nObjectstoreListApiResponse.prototype.$reserved = undefined;\nObjectstoreListApiResponse.prototype.$objectType = undefined;\nObjectstoreListApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/operations/ObjectstoreListApiResponse.js?");
551
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ListObjectstoresApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _ObjectStore__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ObjectStore */ \"./target/generated-sources/swagger/src/models/objects/v4/config/ObjectStore.js\");\n/* harmony import */ var _ObjectStoreProjection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ObjectStoreProjection */ \"./target/generated-sources/swagger/src/models/objects/v4/config/ObjectStoreProjection.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/error/ErrorResponse.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\nfunction _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\nfunction _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\nfunction _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n\n/**\n * The ListObjectstoresApiResponse model module.\n * @module Ntnx/ListObjectstoresApiResponse\n * @version 4.0.1\n * @class ListObjectstoresApiResponse\n */\nvar _ListObjectstoresApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar ListObjectstoresApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>ListObjectstoresApiResponse</code>.\n * REST response for all response codes in API path /objects/v4.0/config/object-stores Get operation\n * @alias module:Ntnx/ListObjectstoresApiResponse\n */\n function ListObjectstoresApiResponse() {\n var _this;\n _classCallCheck(this, ListObjectstoresApiResponse);\n _this = _callSuper(this, ListObjectstoresApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _ListObjectstoresApiResponse_brand);\n _this.$objectType = \"objects.v4.config.ListObjectstoresApiResponse\";\n /** @type {object<string, any>} */\n _this.$reserved = {\n '$fv': \"v4.r0\"\n };\n /** @type {object<string, any>} */\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>ListObjectstoresApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ListObjectstoresApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ListObjectstoresApiResponse} The populated <code>ListObjectstoresApiResponse</code> instance.\n */\n _inherits(ListObjectstoresApiResponse, _Paginable);\n return _createClass(ListObjectstoresApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {ApiResponseMetadata}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {ApiResponseMetadata} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {ObjectStore[] | ErrorResponse | ObjectStoreProjection[]}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {ObjectStore[] | ErrorResponse | ObjectStoreProjection[]} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_ListObjectstoresApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_ListObjectstoresApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_4__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_6__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ListObjectstoresApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_7__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (Array.isArray(data['data'])) {\n if (data['data'].length === 0) {\n obj.setData([]);\n } else {\n itemArr = [];\n items = data['data'];\n if (items[0].hasOwnProperty('$objectType')) {\n discriminator = items[0]['$objectType'];\n } else {\n discriminator = _typeof(items[0]);\n }\n for (i = 0; i < items.length; i++) {\n switch (discriminator) {\n case 'objects.v4.config.ObjectStore':\n item = _ObjectStore__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n break;\n case 'objects.v4.config.ObjectStoreProjection':\n item = _ObjectStoreProjection__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n break;\n default:\n throw \"Unknown list of type \" + discriminator + \" in data\";\n }\n }\n obj.setData(itemArr);\n }\n } else {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'objects.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_3__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_7__[\"default\"]);\n/**\n * @memberof ListObjectstoresApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nListObjectstoresApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof ListObjectstoresApiResponse\n */\nListObjectstoresApiResponse.prototype.data = undefined;\nListObjectstoresApiResponse.prototype.$reserved = undefined;\nListObjectstoresApiResponse.prototype.$objectType = undefined;\nListObjectstoresApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/config/ListObjectstoresApiResponse.js?");
519
552
 
520
553
  /***/ }),
521
554
 
522
- /***/ "./target/generated-sources/swagger/src/models/objects/v4/operations/ObjectstoreProjection.js":
523
- /*!****************************************************************************************************!*\
524
- !*** ./target/generated-sources/swagger/src/models/objects/v4/operations/ObjectstoreProjection.js ***!
525
- \****************************************************************************************************/
555
+ /***/ "./target/generated-sources/swagger/src/models/objects/v4/config/ObjectStore.js":
556
+ /*!**************************************************************************************!*\
557
+ !*** ./target/generated-sources/swagger/src/models/objects/v4/config/ObjectStore.js ***!
558
+ \**************************************************************************************/
526
559
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
527
560
 
528
561
  "use strict";
529
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ObjectstoreProjection)\n/* harmony export */ });\n/* harmony import */ var _common_v1_config_IPAddress__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/config/IPAddress */ \"./target/generated-sources/swagger/src/models/common/v1/config/IPAddress.js\");\n/* harmony import */ var _common_v1_config_Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/v1/config/Metadata */ \"./target/generated-sources/swagger/src/models/common/v1/config/Metadata.js\");\n/* harmony import */ var _CertificateProjection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CertificateProjection */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/CertificateProjection.js\");\n/* harmony import */ var _Objectstore__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Objectstore */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/Objectstore.js\");\n/* harmony import */ var _StateEnum__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./StateEnum */ \"./target/generated-sources/swagger/src/models/objects/v4/operations/StateEnum.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n\n/**\n * The ObjectstoreProjection model module.\n * @module Ntnx/ObjectstoreProjection\n * @version 4.0.1-alpha-2\n * @class ObjectstoreProjection\n * \n * @param { String } name The name of the Object store.\n */\nvar _ObjectstoreProjection_brand = /*#__PURE__*/new WeakSet();\nvar ObjectstoreProjection = /*#__PURE__*/function (_Objectstore) {\n /**\n * Constructs a new <code>ObjectstoreProjection</code>.\n * @alias module:Ntnx/ObjectstoreProjection\n * @extends module:Ntnx/Objectstore\n * \n * @param { String } name The name of the Object store.\n */\n function ObjectstoreProjection(name) {\n var _this;\n _classCallCheck(this, ObjectstoreProjection);\n _this = _callSuper(this, ObjectstoreProjection, [name]);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _ObjectstoreProjection_brand);\n _this.$objectType = \"objects.v4.operations.ObjectstoreProjection\";\n _this.$reserved = {\n '$fv': \"v4.r0.a2\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>ObjectstoreProjection</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ObjectstoreProjection} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ObjectstoreProjection} The populated <code>ObjectstoreProjection</code> instance.\n */\n _inherits(ObjectstoreProjection, _Objectstore);\n return _createClass(ObjectstoreProjection, [{\n key: \"getCertificateProjection\",\n value:\n /**\n * @return {}\n */\n function getCertificateProjection() {\n return this.certificateProjection;\n }\n\n /**\n * @param {} certificateProjection\n */\n }, {\n key: \"setCertificateProjection\",\n value: function setCertificateProjection(certificateProjection) {\n this.certificateProjection = certificateProjection;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getCertificateProjection() !== 'undefined' && this.getCertificateProjection() !== null ? {\n 'certificateProjection': this.getCertificateProjection().toJson(false)\n } : {}), typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}), typeof this.getCreationTime() !== 'undefined' && this.getCreationTime() !== null ? {\n 'creationTime': this.getCreationTime()\n } : {}), typeof this.getLastUpdateTime() !== 'undefined' && this.getLastUpdateTime() !== null ? {\n 'lastUpdateTime': this.getLastUpdateTime()\n } : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {\n 'description': this.getDescription()\n } : {}), typeof this.getDeploymentVersion() !== 'undefined' && this.getDeploymentVersion() !== null ? {\n 'deploymentVersion': this.getDeploymentVersion()\n } : {}), typeof this.getDomain() !== 'undefined' && this.getDomain() !== null ? {\n 'domain': this.getDomain()\n } : {}), typeof this.getRegion() !== 'undefined' && this.getRegion() !== null ? {\n 'region': this.getRegion()\n } : {}), typeof this.getNumWorkerNodes() !== 'undefined' && this.getNumWorkerNodes() !== null ? {\n 'numWorkerNodes': this.getNumWorkerNodes()\n } : {}), typeof this.getClusterReference() !== 'undefined' && this.getClusterReference() !== null ? {\n 'clusterReference': this.getClusterReference()\n } : {}), typeof this.getStorageNetworkReference() !== 'undefined' && this.getStorageNetworkReference() !== null ? {\n 'storageNetworkReference': this.getStorageNetworkReference()\n } : {}), typeof this.getStorageNetworkVip() !== 'undefined' && this.getStorageNetworkVip() !== null ? {\n 'storageNetworkVip': this.getStorageNetworkVip().toJson(false)\n } : {}), typeof this.getStorageNetworkDnsIp() !== 'undefined' && this.getStorageNetworkDnsIp() !== null ? {\n 'storageNetworkDnsIp': this.getStorageNetworkDnsIp().toJson(false)\n } : {}), typeof this.getPublicNetworkReference() !== 'undefined' && this.getPublicNetworkReference() !== null ? {\n 'publicNetworkReference': this.getPublicNetworkReference()\n } : {}), typeof this.getPublicNetworkIps() !== 'undefined' && this.getPublicNetworkIps() !== null ? {\n 'publicNetworkIps': this.getPublicNetworkIps().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTotalCapacityGiB() !== 'undefined' && this.getTotalCapacityGiB() !== null ? {\n 'totalCapacityGiB': this.getTotalCapacityGiB()\n } : {}), typeof this.getState() !== 'undefined' && this.getState() !== null ? {\n 'state': this.getState()\n } : {}), typeof this.getCertificateReference() !== 'undefined' && this.getCertificateReference() !== null ? {\n 'certificateReference': this.getCertificateReference()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getCertificateProjection() !== 'undefined' && this.getCertificateProjection() !== null ? {\n 'certificateProjection': this.getCertificateProjection().toJson(false)\n } : {}), typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {\n 'description': this.getDescription()\n } : {}), typeof this.getDeploymentVersion() !== 'undefined' && this.getDeploymentVersion() !== null ? {\n 'deploymentVersion': this.getDeploymentVersion()\n } : {}), typeof this.getDomain() !== 'undefined' && this.getDomain() !== null ? {\n 'domain': this.getDomain()\n } : {}), typeof this.getRegion() !== 'undefined' && this.getRegion() !== null ? {\n 'region': this.getRegion()\n } : {}), typeof this.getNumWorkerNodes() !== 'undefined' && this.getNumWorkerNodes() !== null ? {\n 'numWorkerNodes': this.getNumWorkerNodes()\n } : {}), typeof this.getClusterReference() !== 'undefined' && this.getClusterReference() !== null ? {\n 'clusterReference': this.getClusterReference()\n } : {}), typeof this.getStorageNetworkReference() !== 'undefined' && this.getStorageNetworkReference() !== null ? {\n 'storageNetworkReference': this.getStorageNetworkReference()\n } : {}), typeof this.getStorageNetworkVip() !== 'undefined' && this.getStorageNetworkVip() !== null ? {\n 'storageNetworkVip': this.getStorageNetworkVip().toJson(false)\n } : {}), typeof this.getStorageNetworkDnsIp() !== 'undefined' && this.getStorageNetworkDnsIp() !== null ? {\n 'storageNetworkDnsIp': this.getStorageNetworkDnsIp().toJson(false)\n } : {}), typeof this.getPublicNetworkReference() !== 'undefined' && this.getPublicNetworkReference() !== null ? {\n 'publicNetworkReference': this.getPublicNetworkReference()\n } : {}), typeof this.getPublicNetworkIps() !== 'undefined' && this.getPublicNetworkIps() !== null ? {\n 'publicNetworkIps': this.getPublicNetworkIps().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTotalCapacityGiB() !== 'undefined' && this.getTotalCapacityGiB() !== null ? {\n 'totalCapacityGiB': this.getTotalCapacityGiB()\n } : {}), typeof this.getState() !== 'undefined' && this.getState() !== null ? {\n 'state': this.getState()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_5__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [\"name\"];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"certificateProjection\") {\n if (typeof this.certificateProjection === 'undefined' || this.certificateProjection === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"certificateProjection\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ObjectstoreProjection();\n _Objectstore__WEBPACK_IMPORTED_MODULE_3__[\"default\"].constructFromObject(data, obj, true);\n if (data.hasOwnProperty('certificateProjection') && data.certificateProjection !== null && data.certificateProjection !== undefined) {\n obj.setCertificateProjection(_CertificateProjection__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['certificateProjection']));\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_Objectstore__WEBPACK_IMPORTED_MODULE_3__[\"default\"]);\n/**\n * @memberof ObjectstoreProjection\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nObjectstoreProjection.prototype.certificateProjection = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/operations/ObjectstoreProjection.js?");
562
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ObjectStore)\n/* harmony export */ });\n/* harmony import */ var _common_v1_config_IPAddress__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/config/IPAddress */ \"./target/generated-sources/swagger/src/models/common/v1/config/IPAddress.js\");\n/* harmony import */ var _common_v1_config_Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/v1/config/Metadata */ \"./target/generated-sources/swagger/src/models/common/v1/config/Metadata.js\");\n/* harmony import */ var _common_v1_config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../common/v1/config/TenantAwareModel */ \"./target/generated-sources/swagger/src/models/common/v1/config/TenantAwareModel.js\");\n/* harmony import */ var _common_v1_response_ApiLink__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../common/v1/response/ApiLink */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js\");\n/* harmony import */ var _common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../common/v1/response/ExternalizableAbstractModel */ \"./target/generated-sources/swagger/src/models/common/v1/response/ExternalizableAbstractModel.js\");\n/* harmony import */ var _State__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./State */ \"./target/generated-sources/swagger/src/models/objects/v4/config/State.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\nfunction _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\nfunction _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\nfunction _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n\n\n/**\n * The ObjectStore model module.\n * @module Ntnx/ObjectStore\n * @version 4.0.1\n * @class ObjectStore\n * @extends ExternalizableAbstractModel\n * \n * @param { string } name The name of the Object store.\n */\nvar _ObjectStore_brand = /*#__PURE__*/new WeakSet();\nvar ObjectStore = /*#__PURE__*/function (_ExternalizableAbstra) {\n /**\n * Constructs a new <code>ObjectStore</code>.\n * @alias module:Ntnx/ObjectStore\n * @extends module:Ntnx/ExternalizableAbstractModel\n * \n * @param { string } name The name of the Object store.\n */\n function ObjectStore(name) {\n var _this;\n _classCallCheck(this, ObjectStore);\n _this = _callSuper(this, ObjectStore);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _ObjectStore_brand);\n _this.name = name;\n _this.$objectType = \"objects.v4.config.ObjectStore\";\n /** @type {object<string, any>} */\n _this.$reserved = {\n '$fv': \"v4.r0\"\n };\n /** @type {object<string, any>} */\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>ObjectStore</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ObjectStore} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ObjectStore} The populated <code>ObjectStore</code> instance.\n */\n _inherits(ObjectStore, _ExternalizableAbstra);\n return _createClass(ObjectStore, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {Metadata}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {Metadata} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * Returns The name of the Object store.\n * @return {string}\n */\n }, {\n key: \"getName\",\n value: function getName() {\n return this.name;\n }\n\n /**\n * Sets The name of the Object store.\n * @param {string} name The name of the Object store.\n */\n }, {\n key: \"setName\",\n value: function setName(name) {\n this.name = name;\n }\n\n /**\n * Returns The time when the Object store was created.\n * @return {Date}\n */\n }, {\n key: \"getCreationTime\",\n value: function getCreationTime() {\n return this.creationTime;\n }\n\n /**\n * Sets The time when the Object store was created.\n * @param {Date} creationTime The time when the Object store was created.\n */\n }, {\n key: \"setCreationTime\",\n value: function setCreationTime(creationTime) {\n this.creationTime = creationTime;\n }\n\n /**\n * Returns The time when the Object store was last updated.\n * @return {Date}\n */\n }, {\n key: \"getLastUpdateTime\",\n value: function getLastUpdateTime() {\n return this.lastUpdateTime;\n }\n\n /**\n * Sets The time when the Object store was last updated.\n * @param {Date} lastUpdateTime The time when the Object store was last updated.\n */\n }, {\n key: \"setLastUpdateTime\",\n value: function setLastUpdateTime(lastUpdateTime) {\n this.lastUpdateTime = lastUpdateTime;\n }\n\n /**\n * Returns A brief description of the Object store.\n * @return {string}\n */\n }, {\n key: \"getDescription\",\n value: function getDescription() {\n return this.description;\n }\n\n /**\n * Sets A brief description of the Object store.\n * @param {string} description A brief description of the Object store.\n */\n }, {\n key: \"setDescription\",\n value: function setDescription(description) {\n this.description = description;\n }\n\n /**\n * Returns Object store deployment version.\n * @return {string}\n */\n }, {\n key: \"getDeploymentVersion\",\n value: function getDeploymentVersion() {\n return this.deploymentVersion;\n }\n\n /**\n * Sets Object store deployment version.\n * @param {string} deploymentVersion Object store deployment version.\n */\n }, {\n key: \"setDeploymentVersion\",\n value: function setDeploymentVersion(deploymentVersion) {\n this.deploymentVersion = deploymentVersion;\n }\n\n /**\n * Returns The DNS domain/subdomain the Object store belongs to. All the Object stores under one Prism Central must have the same domain name. The domain name must consist of at least 2 parts separated by a '.'. Each part can contain upper and lower case letters, digits, hyphens, or underscores. Each part can be up to 63 characters long. The domain must begin and end with an alphanumeric character. For example - 'objects-0.pc_nutanix.com'. \n * @return {string}\n */\n }, {\n key: \"getDomain\",\n value: function getDomain() {\n return this.domain;\n }\n\n /**\n * Sets The DNS domain/subdomain the Object store belongs to. All the Object stores under one Prism Central must have the same domain name. The domain name must consist of at least 2 parts separated by a '.'. Each part can contain upper and lower case letters, digits, hyphens, or underscores. Each part can be up to 63 characters long. The domain must begin and end with an alphanumeric character. For example - 'objects-0.pc_nutanix.com'. \n * @param {string} domain The DNS domain/subdomain the Object store belongs to. All the Object stores under one Prism Central must have the same domain name. The domain name must consist of at least 2 parts separated by a '.'. Each part can contain upper and lower case letters, digits, hyphens, or underscores. Each part can be up to 63 characters long. The domain must begin and end with an alphanumeric character. For example - 'objects-0.pc_nutanix.com'. \n */\n }, {\n key: \"setDomain\",\n value: function setDomain(domain) {\n this.domain = domain;\n }\n\n /**\n * Returns The region in which the Object store is deployed.\n * @return {string}\n */\n }, {\n key: \"getRegion\",\n value: function getRegion() {\n return this.region;\n }\n\n /**\n * Sets The region in which the Object store is deployed.\n * @param {string} region The region in which the Object store is deployed.\n */\n }, {\n key: \"setRegion\",\n value: function setRegion(region) {\n this.region = region;\n }\n\n /**\n * Returns The number of worker nodes (VMs) to be created for the Object store. Each worker node requires 10 vCPUs and 32 GiB of memory.\n * minimum: 1\n * maximum: 1000\n * @return {Number}\n */\n }, {\n key: \"getNumWorkerNodes\",\n value: function getNumWorkerNodes() {\n return this.numWorkerNodes;\n }\n\n /**\n * Sets The number of worker nodes (VMs) to be created for the Object store. Each worker node requires 10 vCPUs and 32 GiB of memory.\n * @param {Number} numWorkerNodes The number of worker nodes (VMs) to be created for the Object store. Each worker node requires 10 vCPUs and 32 GiB of memory.\n */\n }, {\n key: \"setNumWorkerNodes\",\n value: function setNumWorkerNodes(numWorkerNodes) {\n this.numWorkerNodes = numWorkerNodes;\n }\n\n /**\n * Returns UUID of the AHV or ESXi cluster.\n * @return {string}\n */\n }, {\n key: \"getClusterExtId\",\n value: function getClusterExtId() {\n return this.clusterExtId;\n }\n\n /**\n * Sets UUID of the AHV or ESXi cluster.\n * @param {string} clusterExtId UUID of the AHV or ESXi cluster.\n */\n }, {\n key: \"setClusterExtId\",\n value: function setClusterExtId(clusterExtId) {\n this.clusterExtId = clusterExtId;\n }\n\n /**\n * Returns Reference to the Storage Network of the Object store. This is the subnet UUID for an AHV cluster or the IPAM name for an ESXi cluster.\n * @return {string}\n */\n }, {\n key: \"getStorageNetworkReference\",\n value: function getStorageNetworkReference() {\n return this.storageNetworkReference;\n }\n\n /**\n * Sets Reference to the Storage Network of the Object store. This is the subnet UUID for an AHV cluster or the IPAM name for an ESXi cluster.\n * @param {string} storageNetworkReference Reference to the Storage Network of the Object store. This is the subnet UUID for an AHV cluster or the IPAM name for an ESXi cluster.\n */\n }, {\n key: \"setStorageNetworkReference\",\n value: function setStorageNetworkReference(storageNetworkReference) {\n this.storageNetworkReference = storageNetworkReference;\n }\n\n /**\n * @return {IPAddress}\n */\n }, {\n key: \"getStorageNetworkVip\",\n value: function getStorageNetworkVip() {\n return this.storageNetworkVip;\n }\n\n /**\n * @param {IPAddress} storageNetworkVip\n */\n }, {\n key: \"setStorageNetworkVip\",\n value: function setStorageNetworkVip(storageNetworkVip) {\n this.storageNetworkVip = storageNetworkVip;\n }\n\n /**\n * @return {IPAddress}\n */\n }, {\n key: \"getStorageNetworkDnsIp\",\n value: function getStorageNetworkDnsIp() {\n return this.storageNetworkDnsIp;\n }\n\n /**\n * @param {IPAddress} storageNetworkDnsIp\n */\n }, {\n key: \"setStorageNetworkDnsIp\",\n value: function setStorageNetworkDnsIp(storageNetworkDnsIp) {\n this.storageNetworkDnsIp = storageNetworkDnsIp;\n }\n\n /**\n * Returns Public network reference of the Object store. This is the subnet UUID for an AHV cluster or the IPAM name for an ESXi cluster.\n * @return {string}\n */\n }, {\n key: \"getPublicNetworkReference\",\n value: function getPublicNetworkReference() {\n return this.publicNetworkReference;\n }\n\n /**\n * Sets Public network reference of the Object store. This is the subnet UUID for an AHV cluster or the IPAM name for an ESXi cluster.\n * @param {string} publicNetworkReference Public network reference of the Object store. This is the subnet UUID for an AHV cluster or the IPAM name for an ESXi cluster.\n */\n }, {\n key: \"setPublicNetworkReference\",\n value: function setPublicNetworkReference(publicNetworkReference) {\n this.publicNetworkReference = publicNetworkReference;\n }\n\n /**\n * Returns A list of static IP addresses used as public IPs to access the Object store.\n * @return {IPAddress[]}\n */\n }, {\n key: \"getPublicNetworkIps\",\n value: function getPublicNetworkIps() {\n return this.publicNetworkIps;\n }\n\n /**\n * Sets A list of static IP addresses used as public IPs to access the Object store.\n * @param {IPAddress[]} publicNetworkIps A list of static IP addresses used as public IPs to access the Object store.\n */\n }, {\n key: \"setPublicNetworkIps\",\n value: function setPublicNetworkIps(publicNetworkIps) {\n this.publicNetworkIps = publicNetworkIps;\n }\n\n /**\n * Returns Size of the Object store in GiB.\n * minimum: 1\n * maximum: 178814713856\n * @return {Number}\n */\n }, {\n key: \"getTotalCapacityGiB\",\n value: function getTotalCapacityGiB() {\n return this.totalCapacityGiB;\n }\n\n /**\n * Sets Size of the Object store in GiB.\n * @param {Number} totalCapacityGiB Size of the Object store in GiB.\n */\n }, {\n key: \"setTotalCapacityGiB\",\n value: function setTotalCapacityGiB(totalCapacityGiB) {\n this.totalCapacityGiB = totalCapacityGiB;\n }\n\n /**\n * @return {State}\n */\n }, {\n key: \"getState\",\n value: function getState() {\n return this.state;\n }\n\n /**\n * @param {State} state\n */\n }, {\n key: \"setState\",\n value: function setState(state) {\n this.state = state;\n }\n\n /**\n * Returns A list of the UUIDs of the certificates of an Object store.\n * @return {string[]}\n */\n }, {\n key: \"getCertificateExtIds\",\n value: function getCertificateExtIds() {\n return this.certificateExtIds;\n }\n\n /**\n * Sets A list of the UUIDs of the certificates of an Object store.\n * @param {string[]} certificateExtIds A list of the UUIDs of the certificates of an Object store.\n */\n }, {\n key: \"setCertificateExtIds\",\n value: function setCertificateExtIds(certificateExtIds) {\n this.certificateExtIds = certificateExtIds;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}), typeof this.getCreationTime() !== 'undefined' && this.getCreationTime() !== null ? {\n 'creationTime': _assertClassBrand(_ObjectStore_brand, this, _handleDateType).call(this, this.getCreationTime(), false)\n } : {}), typeof this.getLastUpdateTime() !== 'undefined' && this.getLastUpdateTime() !== null ? {\n 'lastUpdateTime': _assertClassBrand(_ObjectStore_brand, this, _handleDateType).call(this, this.getLastUpdateTime(), false)\n } : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {\n 'description': this.getDescription()\n } : {}), typeof this.getDeploymentVersion() !== 'undefined' && this.getDeploymentVersion() !== null ? {\n 'deploymentVersion': this.getDeploymentVersion()\n } : {}), typeof this.getDomain() !== 'undefined' && this.getDomain() !== null ? {\n 'domain': this.getDomain()\n } : {}), typeof this.getRegion() !== 'undefined' && this.getRegion() !== null ? {\n 'region': this.getRegion()\n } : {}), typeof this.getNumWorkerNodes() !== 'undefined' && this.getNumWorkerNodes() !== null ? {\n 'numWorkerNodes': this.getNumWorkerNodes()\n } : {}), typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {\n 'clusterExtId': this.getClusterExtId()\n } : {}), typeof this.getStorageNetworkReference() !== 'undefined' && this.getStorageNetworkReference() !== null ? {\n 'storageNetworkReference': this.getStorageNetworkReference()\n } : {}), typeof this.getStorageNetworkVip() !== 'undefined' && this.getStorageNetworkVip() !== null ? {\n 'storageNetworkVip': this.getStorageNetworkVip().toJson(false)\n } : {}), typeof this.getStorageNetworkDnsIp() !== 'undefined' && this.getStorageNetworkDnsIp() !== null ? {\n 'storageNetworkDnsIp': this.getStorageNetworkDnsIp().toJson(false)\n } : {}), typeof this.getPublicNetworkReference() !== 'undefined' && this.getPublicNetworkReference() !== null ? {\n 'publicNetworkReference': this.getPublicNetworkReference()\n } : {}), typeof this.getPublicNetworkIps() !== 'undefined' && this.getPublicNetworkIps() !== null ? {\n 'publicNetworkIps': this.getPublicNetworkIps().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTotalCapacityGiB() !== 'undefined' && this.getTotalCapacityGiB() !== null ? {\n 'totalCapacityGiB': this.getTotalCapacityGiB()\n } : {}), typeof this.getState() !== 'undefined' && this.getState() !== null ? {\n 'state': this.getState()\n } : {}), typeof this.getCertificateExtIds() !== 'undefined' && this.getCertificateExtIds() !== null ? {\n 'certificateExtIds': this.getCertificateExtIds()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {\n 'description': this.getDescription()\n } : {}), typeof this.getDeploymentVersion() !== 'undefined' && this.getDeploymentVersion() !== null ? {\n 'deploymentVersion': this.getDeploymentVersion()\n } : {}), typeof this.getDomain() !== 'undefined' && this.getDomain() !== null ? {\n 'domain': this.getDomain()\n } : {}), typeof this.getRegion() !== 'undefined' && this.getRegion() !== null ? {\n 'region': this.getRegion()\n } : {}), typeof this.getNumWorkerNodes() !== 'undefined' && this.getNumWorkerNodes() !== null ? {\n 'numWorkerNodes': this.getNumWorkerNodes()\n } : {}), typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {\n 'clusterExtId': this.getClusterExtId()\n } : {}), typeof this.getStorageNetworkReference() !== 'undefined' && this.getStorageNetworkReference() !== null ? {\n 'storageNetworkReference': this.getStorageNetworkReference()\n } : {}), typeof this.getStorageNetworkVip() !== 'undefined' && this.getStorageNetworkVip() !== null ? {\n 'storageNetworkVip': this.getStorageNetworkVip().toJson(false)\n } : {}), typeof this.getStorageNetworkDnsIp() !== 'undefined' && this.getStorageNetworkDnsIp() !== null ? {\n 'storageNetworkDnsIp': this.getStorageNetworkDnsIp().toJson(false)\n } : {}), typeof this.getPublicNetworkReference() !== 'undefined' && this.getPublicNetworkReference() !== null ? {\n 'publicNetworkReference': this.getPublicNetworkReference()\n } : {}), typeof this.getPublicNetworkIps() !== 'undefined' && this.getPublicNetworkIps() !== null ? {\n 'publicNetworkIps': this.getPublicNetworkIps().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTotalCapacityGiB() !== 'undefined' && this.getTotalCapacityGiB() !== null ? {\n 'totalCapacityGiB': this.getTotalCapacityGiB()\n } : {}), typeof this.getState() !== 'undefined' && this.getState() !== null ? {\n 'state': this.getState()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_6__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [\"name\"];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"name\") {\n if (typeof this.name === 'undefined' || this.name === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"name\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMaxLength(this.name, 50)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"name\", \"does not satisfy required maxLength constraint: 50\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMinLength(this.name, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"name\", \"does not satisfy required minLength constraint: 1\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validatePattern(this.name, /^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]))*([A-Za-z]|[A-Za-z][A-Za-z0-9-]*[A-Za-z0-9])$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"name\", \"does not satisfy required pattern: /^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]))*([A-Za-z]|[A-Za-z][A-Za-z0-9-]*[A-Za-z0-9])$/\");\n }\n }\n if (property === \"creationTime\") {\n if (typeof this.creationTime === 'undefined' || this.creationTime === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"creationTime\", \"undefined or null\");\n }\n }\n if (property === \"lastUpdateTime\") {\n if (typeof this.lastUpdateTime === 'undefined' || this.lastUpdateTime === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"lastUpdateTime\", \"undefined or null\");\n }\n }\n if (property === \"description\") {\n if (typeof this.description === 'undefined' || this.description === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"description\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMaxLength(this.description, 1000)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"description\", \"does not satisfy required maxLength constraint: 1000\");\n }\n }\n if (property === \"deploymentVersion\") {\n if (typeof this.deploymentVersion === 'undefined' || this.deploymentVersion === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"deploymentVersion\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMaxLength(this.deploymentVersion, 50)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"deploymentVersion\", \"does not satisfy required maxLength constraint: 50\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMinLength(this.deploymentVersion, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"deploymentVersion\", \"does not satisfy required minLength constraint: 1\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validatePattern(this.deploymentVersion, /^[a-zA-z0-9][a-zA-z0-9\\\\.]*[a-zA-Z0-9]?$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"deploymentVersion\", \"does not satisfy required pattern: /^[a-zA-z0-9][a-zA-z0-9\\\\.]*[a-zA-Z0-9]?$/\");\n }\n }\n if (property === \"domain\") {\n if (typeof this.domain === 'undefined' || this.domain === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"domain\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMaxLength(this.domain, 1000)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"domain\", \"does not satisfy required maxLength constraint: 1000\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMinLength(this.domain, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"domain\", \"does not satisfy required minLength constraint: 1\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validatePattern(this.domain, /^(([a-zA-Z0-9_\\\\-]{1,63})\\\\.)+([a-zA-Z0-9_\\\\-]{1,63})$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"domain\", \"does not satisfy required pattern: /^(([a-zA-Z0-9_\\\\-]{1,63})\\\\.)+([a-zA-Z0-9_\\\\-]{1,63})$/\");\n }\n }\n if (property === \"region\") {\n if (typeof this.region === 'undefined' || this.region === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"region\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMaxLength(this.region, 50)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"region\", \"does not satisfy required maxLength constraint: 50\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMinLength(this.region, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"region\", \"does not satisfy required minLength constraint: 1\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validatePattern(this.region, /^[a-z]+\\\\-[a-z]+\\\\-[0-9]$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"region\", \"does not satisfy required pattern: /^[a-z]+\\\\-[a-z]+\\\\-[0-9]$/\");\n }\n }\n if (property === \"numWorkerNodes\") {\n if (typeof this.numWorkerNodes === 'undefined' || this.numWorkerNodes === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"numWorkerNodes\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMaximum(this.numWorkerNodes, 1000)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"numWorkerNodes\", \"does not satisfy required maximum constraint: 1000\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMinimum(this.numWorkerNodes, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"numWorkerNodes\", \"does not satisfy required minimum constraint: 1\");\n }\n }\n if (property === \"clusterExtId\") {\n if (typeof this.clusterExtId === 'undefined' || this.clusterExtId === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"clusterExtId\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].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}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"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}$/\");\n }\n }\n if (property === \"storageNetworkReference\") {\n if (typeof this.storageNetworkReference === 'undefined' || this.storageNetworkReference === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"storageNetworkReference\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMaxLength(this.storageNetworkReference, 1000)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"storageNetworkReference\", \"does not satisfy required maxLength constraint: 1000\");\n }\n }\n if (property === \"storageNetworkVip\") {\n if (typeof this.storageNetworkVip === 'undefined' || this.storageNetworkVip === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"storageNetworkVip\", \"undefined or null\");\n }\n }\n if (property === \"storageNetworkDnsIp\") {\n if (typeof this.storageNetworkDnsIp === 'undefined' || this.storageNetworkDnsIp === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"storageNetworkDnsIp\", \"undefined or null\");\n }\n }\n if (property === \"publicNetworkReference\") {\n if (typeof this.publicNetworkReference === 'undefined' || this.publicNetworkReference === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"publicNetworkReference\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMaxLength(this.publicNetworkReference, 1000)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"publicNetworkReference\", \"does not satisfy required maxLength constraint: 1000\");\n }\n }\n if (property === \"publicNetworkIps\") {\n if (typeof this.publicNetworkIps === 'undefined' || this.publicNetworkIps === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"publicNetworkIps\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMaxItems(this.publicNetworkIps, 1000)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"publicNetworkIps\", \"does not satisfy required maxItems constraint: 1000\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMinItems(this.publicNetworkIps, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"publicNetworkIps\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"totalCapacityGiB\") {\n if (typeof this.totalCapacityGiB === 'undefined' || this.totalCapacityGiB === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"totalCapacityGiB\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMaximum(this.totalCapacityGiB, 178814713856)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"totalCapacityGiB\", \"does not satisfy required maximum constraint: 178814713856\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMinimum(this.totalCapacityGiB, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"totalCapacityGiB\", \"does not satisfy required minimum constraint: 1\");\n }\n }\n if (property === \"state\") {\n if (typeof this.state === 'undefined' || this.state === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"state\", \"undefined or null\");\n }\n }\n if (property === \"certificateExtIds\") {\n if (typeof this.certificateExtIds === 'undefined' || this.certificateExtIds === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"certificateExtIds\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMaxItems(this.certificateExtIds, 100)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"certificateExtIds\", \"does not satisfy required maxItems constraint: 100\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_7__[\"default\"].validateMinItems(this.certificateExtIds, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](\"certificateExtIds\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_8__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ObjectStore();\n _common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(data, obj, true);\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_config_Metadata__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {\n obj.setName(data['name']);\n }\n if (data.hasOwnProperty('creationTime') && data.creationTime !== null && data.creationTime !== undefined) {\n obj.setCreationTime(data['creationTime']);\n }\n if (data.hasOwnProperty('lastUpdateTime') && data.lastUpdateTime !== null && data.lastUpdateTime !== undefined) {\n obj.setLastUpdateTime(data['lastUpdateTime']);\n }\n if (data.hasOwnProperty('description') && data.description !== null && data.description !== undefined) {\n obj.setDescription(data['description']);\n }\n if (data.hasOwnProperty('deploymentVersion') && data.deploymentVersion !== null && data.deploymentVersion !== undefined) {\n obj.setDeploymentVersion(data['deploymentVersion']);\n }\n if (data.hasOwnProperty('domain') && data.domain !== null && data.domain !== undefined) {\n obj.setDomain(data['domain']);\n }\n if (data.hasOwnProperty('region') && data.region !== null && data.region !== undefined) {\n obj.setRegion(data['region']);\n }\n if (data.hasOwnProperty('numWorkerNodes') && data.numWorkerNodes !== null && data.numWorkerNodes !== undefined) {\n obj.setNumWorkerNodes(data['numWorkerNodes']);\n }\n if (data.hasOwnProperty('clusterExtId') && data.clusterExtId !== null && data.clusterExtId !== undefined) {\n obj.setClusterExtId(data['clusterExtId']);\n }\n if (data.hasOwnProperty('storageNetworkReference') && data.storageNetworkReference !== null && data.storageNetworkReference !== undefined) {\n obj.setStorageNetworkReference(data['storageNetworkReference']);\n }\n if (data.hasOwnProperty('storageNetworkVip') && data.storageNetworkVip !== null && data.storageNetworkVip !== undefined) {\n obj.setStorageNetworkVip(_common_v1_config_IPAddress__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['storageNetworkVip']));\n }\n if (data.hasOwnProperty('storageNetworkDnsIp') && data.storageNetworkDnsIp !== null && data.storageNetworkDnsIp !== undefined) {\n obj.setStorageNetworkDnsIp(_common_v1_config_IPAddress__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['storageNetworkDnsIp']));\n }\n if (data.hasOwnProperty('publicNetworkReference') && data.publicNetworkReference !== null && data.publicNetworkReference !== undefined) {\n obj.setPublicNetworkReference(data['publicNetworkReference']);\n }\n if (data.hasOwnProperty('publicNetworkIps') && data.publicNetworkIps !== null && data.publicNetworkIps !== undefined) {\n itemArr = [];\n items = data.publicNetworkIps;\n for (i = 0; i < items.length; i++) {\n item = _common_v1_config_IPAddress__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setPublicNetworkIps(itemArr);\n }\n if (data.hasOwnProperty('totalCapacityGiB') && data.totalCapacityGiB !== null && data.totalCapacityGiB !== undefined) {\n obj.setTotalCapacityGiB(data['totalCapacityGiB']);\n }\n if (data.hasOwnProperty('state') && data.state !== null && data.state !== undefined) {\n obj.setState(_State__WEBPACK_IMPORTED_MODULE_5__[\"default\"].constructFromObject(data['state']));\n }\n if (data.hasOwnProperty('certificateExtIds') && data.certificateExtIds !== null && data.certificateExtIds !== undefined) {\n itemArr = [];\n items = data.certificateExtIds;\n for (i = 0; i < items.length; i++) {\n itemArr.push(items[i]);\n }\n obj.setCertificateExtIds(itemArr);\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}(_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_4__[\"default\"]);\n/**\n * @memberof ObjectStore\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nObjectStore.prototype.metadata = undefined;\n\n/**\n * The name of the Object store.\n * @memberof ObjectStore\n */\nObjectStore.prototype.name = undefined;\n\n/**\n * The time when the Object store was created.\n * @memberof ObjectStore\n */\nObjectStore.prototype.creationTime = undefined;\n\n/**\n * The time when the Object store was last updated.\n * @memberof ObjectStore\n */\nObjectStore.prototype.lastUpdateTime = undefined;\n\n/**\n * A brief description of the Object store.\n * @memberof ObjectStore\n */\nObjectStore.prototype.description = undefined;\n\n/**\n * Object store deployment version.\n * @memberof ObjectStore\n */\nObjectStore.prototype.deploymentVersion = undefined;\n\n/**\n * The DNS domain/subdomain the Object store belongs to. All the Object stores under one Prism Central must have the same domain name. The domain name must consist of at least 2 parts separated by a '.'. Each part can contain upper and lower case letters, digits, hyphens, or underscores. Each part can be up to 63 characters long. The domain must begin and end with an alphanumeric character. For example - 'objects-0.pc_nutanix.com'. \n * @memberof ObjectStore\n */\nObjectStore.prototype.domain = undefined;\n\n/**\n * The region in which the Object store is deployed.\n * @memberof ObjectStore\n */\nObjectStore.prototype.region = undefined;\n\n/**\n * The number of worker nodes (VMs) to be created for the Object store. Each worker node requires 10 vCPUs and 32 GiB of memory.\n * @memberof ObjectStore\n */\nObjectStore.prototype.numWorkerNodes = undefined;\n\n/**\n * UUID of the AHV or ESXi cluster.\n * @memberof ObjectStore\n */\nObjectStore.prototype.clusterExtId = undefined;\n\n/**\n * Reference to the Storage Network of the Object store. This is the subnet UUID for an AHV cluster or the IPAM name for an ESXi cluster.\n * @memberof ObjectStore\n */\nObjectStore.prototype.storageNetworkReference = undefined;\n\n/**\n * @memberof ObjectStore\n */\nObjectStore.prototype.storageNetworkVip = undefined;\n\n/**\n * @memberof ObjectStore\n */\nObjectStore.prototype.storageNetworkDnsIp = undefined;\n\n/**\n * Public network reference of the Object store. This is the subnet UUID for an AHV cluster or the IPAM name for an ESXi cluster.\n * @memberof ObjectStore\n */\nObjectStore.prototype.publicNetworkReference = undefined;\n\n/**\n * A list of static IP addresses used as public IPs to access the Object store.\n * @memberof ObjectStore\n */\nObjectStore.prototype.publicNetworkIps = undefined;\n\n/**\n * Size of the Object store in GiB.\n * @memberof ObjectStore\n */\nObjectStore.prototype.totalCapacityGiB = undefined;\n\n/**\n * @memberof ObjectStore\n */\nObjectStore.prototype.state = undefined;\n\n/**\n * A list of the UUIDs of the certificates of an Object store.\n * @memberof ObjectStore\n */\nObjectStore.prototype.certificateExtIds = undefined;\n\n/**\n * A globally unique identifier of an instance that is suitable for external consumption. \n * @memberof ObjectStore\n */\n_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_4__[\"default\"].prototype.extId = undefined;\n/**\n * A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource. \n * @memberof ObjectStore\n */\n_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_4__[\"default\"].prototype.links = undefined;\n/**\n * A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server). \n * @memberof ObjectStore\n */\n_common_v1_config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_2__[\"default\"].prototype.tenantId = undefined;\n// Implement OneOfobjects.v4.config.GetObjectstoreApiResponsedata interface:\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/config/ObjectStore.js?");
530
563
 
531
564
  /***/ }),
532
565
 
533
- /***/ "./target/generated-sources/swagger/src/models/objects/v4/operations/StateEnum.js":
534
- /*!****************************************************************************************!*\
535
- !*** ./target/generated-sources/swagger/src/models/objects/v4/operations/StateEnum.js ***!
536
- \****************************************************************************************/
566
+ /***/ "./target/generated-sources/swagger/src/models/objects/v4/config/ObjectStoreProjection.js":
567
+ /*!************************************************************************************************!*\
568
+ !*** ./target/generated-sources/swagger/src/models/objects/v4/config/ObjectStoreProjection.js ***!
569
+ \************************************************************************************************/
537
570
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
538
571
 
539
572
  "use strict";
540
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * Enum class StateEnum.\n * @enum {string}\n * @readonly\n */\nvar StateEnum = {\n /** \n * value: \"$UNKNOWN\"\n * @const\n */\n $UNKNOWN: \"$UNKNOWN\",\n /** \n * value: \"$REDACTED\"\n * @const\n */\n $REDACTED: \"$REDACTED\",\n /** \n * The Object store deployment has failed.\n * @const\n */\n OBJECT_STORE_DEPLOYMENT_ERROR: \"OBJECT_STORE_DEPLOYMENT_ERROR\",\n /** \n * Creating the Object store certificate has failed.\n * @const\n */\n OBJECT_STORE_CREATE_CERT_ERROR: \"OBJECT_STORE_CREATE_CERT_ERROR\",\n /** \n * There was an error deleting the Object store.\n * @const\n */\n OBJECT_STORE_DELETE_ERROR: \"OBJECT_STORE_DELETE_ERROR\",\n /** \n * There was an error deleting the undeployed Object store.\n * @const\n */\n OBJECT_STORE_DELETE_INPUT_ERROR: \"OBJECT_STORE_DELETE_INPUT_ERROR\",\n /** \n * The Object store is not deployed.\n * @const\n */\n OBJECT_STORE_INPUT: \"OBJECT_STORE_INPUT\",\n /** \n * The Object store is being deployed.\n * @const\n */\n OBJECT_STORE_DEPLOYING: \"OBJECT_STORE_DEPLOYING\",\n /** \n * A certificate is being created for the Object store.\n * @const\n */\n OBJECT_STORE_CREATING_CERT: \"OBJECT_STORE_CREATING_CERT\",\n /** \n * A deployed Object store is being deleted.\n * @const\n */\n OBJECT_STORE_DELETING: \"OBJECT_STORE_DELETING\",\n /** \n * An undeployed Object store is being deleted.\n * @const\n */\n OBJECT_STORE_DELETING_INPUT: \"OBJECT_STORE_DELETING_INPUT\",\n /** \n * There are no ongoing operations on the deployed Object store.\n * @const\n */\n OBJECT_STORE_AVAILABLE: \"OBJECT_STORE_AVAILABLE\",\n /** \n * There is an ongoing operation on the Object store.\n * @const\n */\n OBJECT_STORE_OPERATION_PENDING: \"OBJECT_STORE_OPERATION_PENDING\",\n /** \n * There was an error while performing an operation on the Object store.\n * @const\n */\n OBJECT_STORE_OPERATION_ERROR: \"OBJECT_STORE_OPERATION_ERROR\"\n};\n\n/**\n* Returns a <code>StateEnum</code> enum value from a JavaScript object name.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {StateEnum} The enum <code>StateEnum</code> value.\n*/\nStateEnum.constructFromObject = function (obj) {\n if (typeof obj === 'string' || obj instanceof String) {\n var enumVal = Object.keys(StateEnum).find(function (key) {\n return StateEnum[key] === obj;\n });\n return enumVal === undefined || enumVal === null ? StateEnum.$UNKNOWN : StateEnum[enumVal];\n } else {\n throw new Error(\"Received object name is not an instance of String\");\n }\n};\n\n/**\n* Validates <code>StateEnum</code> enum value.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {null} Throws error for invalid value.\n*/\nStateEnum.validate = function (obj) {\n switch (obj) {\n case StateEnum.$UNKNOWN:\n case StateEnum.$REDACTED:\n case StateEnum.OBJECT_STORE_DEPLOYMENT_ERROR:\n case StateEnum.OBJECT_STORE_CREATE_CERT_ERROR:\n case StateEnum.OBJECT_STORE_DELETE_ERROR:\n case StateEnum.OBJECT_STORE_DELETE_INPUT_ERROR:\n case StateEnum.OBJECT_STORE_INPUT:\n case StateEnum.OBJECT_STORE_DEPLOYING:\n case StateEnum.OBJECT_STORE_CREATING_CERT:\n case StateEnum.OBJECT_STORE_DELETING:\n case StateEnum.OBJECT_STORE_DELETING_INPUT:\n case StateEnum.OBJECT_STORE_AVAILABLE:\n case StateEnum.OBJECT_STORE_OPERATION_PENDING:\n case StateEnum.OBJECT_STORE_OPERATION_ERROR:\n return;\n default:\n throw new Error(\"Invalid : must be StateEnum.{ $UNKNOWN|$REDACTED|OBJECT_STORE_DEPLOYMENT_ERROR|OBJECT_STORE_CREATE_CERT_ERROR|OBJECT_STORE_DELETE_ERROR|OBJECT_STORE_DELETE_INPUT_ERROR|OBJECT_STORE_INPUT|OBJECT_STORE_DEPLOYING|OBJECT_STORE_CREATING_CERT|OBJECT_STORE_DELETING|OBJECT_STORE_DELETING_INPUT|OBJECT_STORE_AVAILABLE|OBJECT_STORE_OPERATION_PENDING|OBJECT_STORE_OPERATION_ERROR }\");\n }\n};\nObject.freeze(StateEnum);\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StateEnum);\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/operations/StateEnum.js?");
573
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ObjectStoreProjection)\n/* harmony export */ });\n/* harmony import */ var _common_v1_config_IPAddress__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/config/IPAddress */ \"./target/generated-sources/swagger/src/models/common/v1/config/IPAddress.js\");\n/* harmony import */ var _common_v1_config_Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/v1/config/Metadata */ \"./target/generated-sources/swagger/src/models/common/v1/config/Metadata.js\");\n/* harmony import */ var _common_v1_config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../common/v1/config/TenantAwareModel */ \"./target/generated-sources/swagger/src/models/common/v1/config/TenantAwareModel.js\");\n/* harmony import */ var _common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../common/v1/response/ExternalizableAbstractModel */ \"./target/generated-sources/swagger/src/models/common/v1/response/ExternalizableAbstractModel.js\");\n/* harmony import */ var _CertificateProjection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CertificateProjection */ \"./target/generated-sources/swagger/src/models/objects/v4/config/CertificateProjection.js\");\n/* harmony import */ var _ObjectStore__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ObjectStore */ \"./target/generated-sources/swagger/src/models/objects/v4/config/ObjectStore.js\");\n/* harmony import */ var _State__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./State */ \"./target/generated-sources/swagger/src/models/objects/v4/config/State.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\nfunction _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\nfunction _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\nfunction _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n\n\n\n/**\n * The ObjectStoreProjection model module.\n * @module Ntnx/ObjectStoreProjection\n * @version 4.0.1\n * @class ObjectStoreProjection\n * @extends ObjectStore\n * \n * @param { string } name The name of the Object store.\n */\nvar _ObjectStoreProjection_brand = /*#__PURE__*/new WeakSet();\nvar ObjectStoreProjection = /*#__PURE__*/function (_ObjectStore) {\n /**\n * Constructs a new <code>ObjectStoreProjection</code>.\n * @alias module:Ntnx/ObjectStoreProjection\n * @extends module:Ntnx/ObjectStore\n * \n * @param { string } name The name of the Object store.\n */\n function ObjectStoreProjection(name) {\n var _this;\n _classCallCheck(this, ObjectStoreProjection);\n _this = _callSuper(this, ObjectStoreProjection, [name]);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _ObjectStoreProjection_brand);\n _this.$objectType = \"objects.v4.config.ObjectStoreProjection\";\n /** @type {object<string, any>} */\n _this.$reserved = {\n '$fv': \"v4.r0\"\n };\n /** @type {object<string, any>} */\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>ObjectStoreProjection</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ObjectStoreProjection} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ObjectStoreProjection} The populated <code>ObjectStoreProjection</code> instance.\n */\n _inherits(ObjectStoreProjection, _ObjectStore);\n return _createClass(ObjectStoreProjection, [{\n key: \"getCertificateProjection\",\n value:\n /**\n * @return {CertificateProjection[]}\n */\n function getCertificateProjection() {\n return this.certificateProjection;\n }\n\n /**\n * @param {CertificateProjection[]} certificateProjection\n */\n }, {\n key: \"setCertificateProjection\",\n value: function setCertificateProjection(certificateProjection) {\n this.certificateProjection = certificateProjection;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getCertificateProjection() !== 'undefined' && this.getCertificateProjection() !== null ? {\n 'certificateProjection': this.getCertificateProjection().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}), typeof this.getCreationTime() !== 'undefined' && this.getCreationTime() !== null ? {\n 'creationTime': _assertClassBrand(_ObjectStoreProjection_brand, this, _handleDateType).call(this, this.getCreationTime(), false)\n } : {}), typeof this.getLastUpdateTime() !== 'undefined' && this.getLastUpdateTime() !== null ? {\n 'lastUpdateTime': _assertClassBrand(_ObjectStoreProjection_brand, this, _handleDateType).call(this, this.getLastUpdateTime(), false)\n } : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {\n 'description': this.getDescription()\n } : {}), typeof this.getDeploymentVersion() !== 'undefined' && this.getDeploymentVersion() !== null ? {\n 'deploymentVersion': this.getDeploymentVersion()\n } : {}), typeof this.getDomain() !== 'undefined' && this.getDomain() !== null ? {\n 'domain': this.getDomain()\n } : {}), typeof this.getRegion() !== 'undefined' && this.getRegion() !== null ? {\n 'region': this.getRegion()\n } : {}), typeof this.getNumWorkerNodes() !== 'undefined' && this.getNumWorkerNodes() !== null ? {\n 'numWorkerNodes': this.getNumWorkerNodes()\n } : {}), typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {\n 'clusterExtId': this.getClusterExtId()\n } : {}), typeof this.getStorageNetworkReference() !== 'undefined' && this.getStorageNetworkReference() !== null ? {\n 'storageNetworkReference': this.getStorageNetworkReference()\n } : {}), typeof this.getStorageNetworkVip() !== 'undefined' && this.getStorageNetworkVip() !== null ? {\n 'storageNetworkVip': this.getStorageNetworkVip().toJson(false)\n } : {}), typeof this.getStorageNetworkDnsIp() !== 'undefined' && this.getStorageNetworkDnsIp() !== null ? {\n 'storageNetworkDnsIp': this.getStorageNetworkDnsIp().toJson(false)\n } : {}), typeof this.getPublicNetworkReference() !== 'undefined' && this.getPublicNetworkReference() !== null ? {\n 'publicNetworkReference': this.getPublicNetworkReference()\n } : {}), typeof this.getPublicNetworkIps() !== 'undefined' && this.getPublicNetworkIps() !== null ? {\n 'publicNetworkIps': this.getPublicNetworkIps().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTotalCapacityGiB() !== 'undefined' && this.getTotalCapacityGiB() !== null ? {\n 'totalCapacityGiB': this.getTotalCapacityGiB()\n } : {}), typeof this.getState() !== 'undefined' && this.getState() !== null ? {\n 'state': this.getState()\n } : {}), typeof this.getCertificateExtIds() !== 'undefined' && this.getCertificateExtIds() !== null ? {\n 'certificateExtIds': this.getCertificateExtIds()\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getCertificateProjection() !== 'undefined' && this.getCertificateProjection() !== null ? {\n 'certificateProjection': this.getCertificateProjection().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {\n 'description': this.getDescription()\n } : {}), typeof this.getDeploymentVersion() !== 'undefined' && this.getDeploymentVersion() !== null ? {\n 'deploymentVersion': this.getDeploymentVersion()\n } : {}), typeof this.getDomain() !== 'undefined' && this.getDomain() !== null ? {\n 'domain': this.getDomain()\n } : {}), typeof this.getRegion() !== 'undefined' && this.getRegion() !== null ? {\n 'region': this.getRegion()\n } : {}), typeof this.getNumWorkerNodes() !== 'undefined' && this.getNumWorkerNodes() !== null ? {\n 'numWorkerNodes': this.getNumWorkerNodes()\n } : {}), typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {\n 'clusterExtId': this.getClusterExtId()\n } : {}), typeof this.getStorageNetworkReference() !== 'undefined' && this.getStorageNetworkReference() !== null ? {\n 'storageNetworkReference': this.getStorageNetworkReference()\n } : {}), typeof this.getStorageNetworkVip() !== 'undefined' && this.getStorageNetworkVip() !== null ? {\n 'storageNetworkVip': this.getStorageNetworkVip().toJson(false)\n } : {}), typeof this.getStorageNetworkDnsIp() !== 'undefined' && this.getStorageNetworkDnsIp() !== null ? {\n 'storageNetworkDnsIp': this.getStorageNetworkDnsIp().toJson(false)\n } : {}), typeof this.getPublicNetworkReference() !== 'undefined' && this.getPublicNetworkReference() !== null ? {\n 'publicNetworkReference': this.getPublicNetworkReference()\n } : {}), typeof this.getPublicNetworkIps() !== 'undefined' && this.getPublicNetworkIps() !== null ? {\n 'publicNetworkIps': this.getPublicNetworkIps().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTotalCapacityGiB() !== 'undefined' && this.getTotalCapacityGiB() !== null ? {\n 'totalCapacityGiB': this.getTotalCapacityGiB()\n } : {}), typeof this.getState() !== 'undefined' && this.getState() !== null ? {\n 'state': this.getState()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_7__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [\"name\"];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"certificateProjection\") {\n if (typeof this.certificateProjection === 'undefined' || this.certificateProjection === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_9__[\"default\"](\"certificateProjection\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_9__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ObjectStoreProjection();\n _ObjectStore__WEBPACK_IMPORTED_MODULE_5__[\"default\"].constructFromObject(data, obj, true);\n if (data.hasOwnProperty('certificateProjection') && data.certificateProjection !== null && data.certificateProjection !== undefined) {\n itemArr = [];\n items = data.certificateProjection;\n for (i = 0; i < items.length; i++) {\n item = _CertificateProjection__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setCertificateProjection(itemArr);\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}(_ObjectStore__WEBPACK_IMPORTED_MODULE_5__[\"default\"]);\n/**\n * @memberof ObjectStoreProjection\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nObjectStoreProjection.prototype.certificateProjection = undefined;\n\n/**\n * @memberof ObjectStoreProjection\n */\n_ObjectStore__WEBPACK_IMPORTED_MODULE_5__[\"default\"].prototype.metadata = undefined;\n/**\n * The name of the Object store.\n * @memberof ObjectStoreProjection\n */\n_ObjectStore__WEBPACK_IMPORTED_MODULE_5__[\"default\"].prototype.name = undefined;\n/**\n * The time when the Object store was created.\n * @memberof ObjectStoreProjection\n */\n_ObjectStore__WEBPACK_IMPORTED_MODULE_5__[\"default\"].prototype.creationTime = undefined;\n/**\n * The time when the Object store was last updated.\n * @memberof ObjectStoreProjection\n */\n_ObjectStore__WEBPACK_IMPORTED_MODULE_5__[\"default\"].prototype.lastUpdateTime = undefined;\n/**\n * A brief description of the Object store.\n * @memberof ObjectStoreProjection\n */\n_ObjectStore__WEBPACK_IMPORTED_MODULE_5__[\"default\"].prototype.description = undefined;\n/**\n * Object store deployment version.\n * @memberof ObjectStoreProjection\n */\n_ObjectStore__WEBPACK_IMPORTED_MODULE_5__[\"default\"].prototype.deploymentVersion = undefined;\n/**\n * The DNS domain/subdomain the Object store belongs to. All the Object stores under one Prism Central must have the same domain name. The domain name must consist of at least 2 parts separated by a '.'. Each part can contain upper and lower case letters, digits, hyphens, or underscores. Each part can be up to 63 characters long. The domain must begin and end with an alphanumeric character. For example - 'objects-0.pc_nutanix.com'. \n * @memberof ObjectStoreProjection\n */\n_ObjectStore__WEBPACK_IMPORTED_MODULE_5__[\"default\"].prototype.domain = undefined;\n/**\n * The region in which the Object store is deployed.\n * @memberof ObjectStoreProjection\n */\n_ObjectStore__WEBPACK_IMPORTED_MODULE_5__[\"default\"].prototype.region = undefined;\n/**\n * The number of worker nodes (VMs) to be created for the Object store. Each worker node requires 10 vCPUs and 32 GiB of memory.\n * @memberof ObjectStoreProjection\n */\n_ObjectStore__WEBPACK_IMPORTED_MODULE_5__[\"default\"].prototype.numWorkerNodes = undefined;\n/**\n * UUID of the AHV or ESXi cluster.\n * @memberof ObjectStoreProjection\n */\n_ObjectStore__WEBPACK_IMPORTED_MODULE_5__[\"default\"].prototype.clusterExtId = undefined;\n/**\n * Reference to the Storage Network of the Object store. This is the subnet UUID for an AHV cluster or the IPAM name for an ESXi cluster.\n * @memberof ObjectStoreProjection\n */\n_ObjectStore__WEBPACK_IMPORTED_MODULE_5__[\"default\"].prototype.storageNetworkReference = undefined;\n/**\n * @memberof ObjectStoreProjection\n */\n_ObjectStore__WEBPACK_IMPORTED_MODULE_5__[\"default\"].prototype.storageNetworkVip = undefined;\n/**\n * @memberof ObjectStoreProjection\n */\n_ObjectStore__WEBPACK_IMPORTED_MODULE_5__[\"default\"].prototype.storageNetworkDnsIp = undefined;\n/**\n * Public network reference of the Object store. This is the subnet UUID for an AHV cluster or the IPAM name for an ESXi cluster.\n * @memberof ObjectStoreProjection\n */\n_ObjectStore__WEBPACK_IMPORTED_MODULE_5__[\"default\"].prototype.publicNetworkReference = undefined;\n/**\n * A list of static IP addresses used as public IPs to access the Object store.\n * @memberof ObjectStoreProjection\n */\n_ObjectStore__WEBPACK_IMPORTED_MODULE_5__[\"default\"].prototype.publicNetworkIps = undefined;\n/**\n * Size of the Object store in GiB.\n * @memberof ObjectStoreProjection\n */\n_ObjectStore__WEBPACK_IMPORTED_MODULE_5__[\"default\"].prototype.totalCapacityGiB = undefined;\n/**\n * @memberof ObjectStoreProjection\n */\n_ObjectStore__WEBPACK_IMPORTED_MODULE_5__[\"default\"].prototype.state = undefined;\n/**\n * A list of the UUIDs of the certificates of an Object store.\n * @memberof ObjectStoreProjection\n */\n_ObjectStore__WEBPACK_IMPORTED_MODULE_5__[\"default\"].prototype.certificateExtIds = undefined;\n/**\n * A globally unique identifier of an instance that is suitable for external consumption. \n * @memberof ObjectStoreProjection\n */\n_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_3__[\"default\"].prototype.extId = undefined;\n/**\n * A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource. \n * @memberof ObjectStoreProjection\n */\n_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_3__[\"default\"].prototype.links = undefined;\n/**\n * A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server). \n * @memberof ObjectStoreProjection\n */\n_common_v1_config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_2__[\"default\"].prototype.tenantId = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/config/ObjectStoreProjection.js?");
541
574
 
542
575
  /***/ }),
543
576
 
544
- /***/ "./target/generated-sources/swagger/src/models/objects/v4/operations/TaskReferenceApiResponse.js":
577
+ /***/ "./target/generated-sources/swagger/src/models/objects/v4/config/State.js":
578
+ /*!********************************************************************************!*\
579
+ !*** ./target/generated-sources/swagger/src/models/objects/v4/config/State.js ***!
580
+ \********************************************************************************/
581
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
582
+
583
+ "use strict";
584
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * Enum class State.\n * @enum {string}\n * @readonly\n */\nvar State = {\n /** \n * Unknown value.\n * @const\n */\n $UNKNOWN: \"$UNKNOWN\",\n /** \n * Redacted value.\n * @const\n */\n $REDACTED: \"$REDACTED\",\n /** \n * The Object store deployment has failed.\n * @const\n */\n OBJECT_STORE_DEPLOYMENT_FAILED: \"OBJECT_STORE_DEPLOYMENT_FAILED\",\n /** \n * Creating the Object store certificate has failed.\n * @const\n */\n OBJECT_STORE_CERT_CREATION_FAILED: \"OBJECT_STORE_CERT_CREATION_FAILED\",\n /** \n * There was an error deleting the Object store.\n * @const\n */\n OBJECT_STORE_DELETION_FAILED: \"OBJECT_STORE_DELETION_FAILED\",\n /** \n * The Object store is not deployed.\n * @const\n */\n UNDEPLOYED_OBJECT_STORE: \"UNDEPLOYED_OBJECT_STORE\",\n /** \n * The Object store is being deployed.\n * @const\n */\n DEPLOYING_OBJECT_STORE: \"DEPLOYING_OBJECT_STORE\",\n /** \n * A certificate is being created for the Object store.\n * @const\n */\n CREATING_OBJECT_STORE_CERT: \"CREATING_OBJECT_STORE_CERT\",\n /** \n * A deployed Object store is being deleted.\n * @const\n */\n DELETING_OBJECT_STORE: \"DELETING_OBJECT_STORE\",\n /** \n * There are no ongoing operations on the deployed Object store.\n * @const\n */\n OBJECT_STORE_AVAILABLE: \"OBJECT_STORE_AVAILABLE\",\n /** \n * There is an ongoing operation on the Object store.\n * @const\n */\n OBJECT_STORE_OPERATION_PENDING: \"OBJECT_STORE_OPERATION_PENDING\",\n /** \n * There was an error while performing an operation on the Object store.\n * @const\n */\n OBJECT_STORE_OPERATION_FAILED: \"OBJECT_STORE_OPERATION_FAILED\"\n};\n\n/**\n* Returns a <code>State</code> enum value from a JavaScript object name.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {State} The enum <code>State</code> value.\n*/\nState.constructFromObject = function (obj) {\n if (typeof obj === 'string' || obj instanceof String) {\n var enumVal = Object.keys(State).find(function (key) {\n return State[key] === obj;\n });\n return enumVal === undefined || enumVal === null ? State.$UNKNOWN : State[enumVal];\n } else {\n throw new Error(\"Received object name is not an instance of String\");\n }\n};\n\n/**\n* Validates <code>State</code> enum value.\n* @param {Object} obj The plain JavaScript object containing the name of the enum value.\n* @return {null} Throws error for invalid value.\n*/\nState.validate = function (obj) {\n switch (obj) {\n case State.$UNKNOWN:\n case State.$REDACTED:\n case State.OBJECT_STORE_DEPLOYMENT_FAILED:\n case State.OBJECT_STORE_CERT_CREATION_FAILED:\n case State.OBJECT_STORE_DELETION_FAILED:\n case State.UNDEPLOYED_OBJECT_STORE:\n case State.DEPLOYING_OBJECT_STORE:\n case State.CREATING_OBJECT_STORE_CERT:\n case State.DELETING_OBJECT_STORE:\n case State.OBJECT_STORE_AVAILABLE:\n case State.OBJECT_STORE_OPERATION_PENDING:\n case State.OBJECT_STORE_OPERATION_FAILED:\n return;\n default:\n throw new Error(\"Invalid : must be State.{ $UNKNOWN|$REDACTED|OBJECT_STORE_DEPLOYMENT_FAILED|OBJECT_STORE_CERT_CREATION_FAILED|OBJECT_STORE_DELETION_FAILED|UNDEPLOYED_OBJECT_STORE|DEPLOYING_OBJECT_STORE|CREATING_OBJECT_STORE_CERT|DELETING_OBJECT_STORE|OBJECT_STORE_AVAILABLE|OBJECT_STORE_OPERATION_PENDING|OBJECT_STORE_OPERATION_FAILED }\");\n }\n};\nObject.freeze(State);\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (State);\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/config/State.js?");
585
+
586
+ /***/ }),
587
+
588
+ /***/ "./target/generated-sources/swagger/src/models/objects/v4/config/UpdateObjectstoreApiResponse.js":
545
589
  /*!*******************************************************************************************************!*\
546
- !*** ./target/generated-sources/swagger/src/models/objects/v4/operations/TaskReferenceApiResponse.js ***!
590
+ !*** ./target/generated-sources/swagger/src/models/objects/v4/config/UpdateObjectstoreApiResponse.js ***!
547
591
  \*******************************************************************************************************/
548
592
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
549
593
 
550
594
  "use strict";
551
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TaskReferenceApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/error/ErrorResponse.js\");\n/* harmony import */ var _prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../prism/v4/config/TaskReference */ \"./target/generated-sources/swagger/src/models/prism/v4/config/TaskReference.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The TaskReferenceApiResponse model module.\n * @module Ntnx/TaskReferenceApiResponse\n * @version 4.0.1-alpha-2\n * @class TaskReferenceApiResponse\n */\nvar _TaskReferenceApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar TaskReferenceApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>TaskReferenceApiResponse</code>.\n * REST response for all response codes in API path /objects/v4.0.a2/operations/object-stores/{objectStoreExtId}/certificates Post operation\n * @alias module:Ntnx/TaskReferenceApiResponse\n */\n function TaskReferenceApiResponse() {\n var _this;\n _classCallCheck(this, TaskReferenceApiResponse);\n _this = _callSuper(this, TaskReferenceApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _TaskReferenceApiResponse_brand);\n _this.$objectType = \"objects.v4.operations.TaskReferenceApiResponse\";\n _this.$reserved = {\n '$fv': \"v4.r0.a2\"\n };\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>TaskReferenceApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/TaskReferenceApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/TaskReferenceApiResponse} The populated <code>TaskReferenceApiResponse</code> instance.\n */\n _inherits(TaskReferenceApiResponse, _Paginable);\n return _createClass(TaskReferenceApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_TaskReferenceApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_TaskReferenceApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new TaskReferenceApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'prism.v4.config.TaskReference':\n obj.setData(_prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n case 'objects.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n/**\n * @memberof TaskReferenceApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nTaskReferenceApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof TaskReferenceApiResponse\n */\nTaskReferenceApiResponse.prototype.data = undefined;\nTaskReferenceApiResponse.prototype.$reserved = undefined;\nTaskReferenceApiResponse.prototype.$objectType = undefined;\nTaskReferenceApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/operations/TaskReferenceApiResponse.js?");
595
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ UpdateObjectstoreApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/error/ErrorResponse.js\");\n/* harmony import */ var _prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../prism/v4/config/TaskReference */ \"./target/generated-sources/swagger/src/models/prism/v4/config/TaskReference.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\nfunction _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\nfunction _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\nfunction _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The UpdateObjectstoreApiResponse model module.\n * @module Ntnx/UpdateObjectstoreApiResponse\n * @version 4.0.1\n * @class UpdateObjectstoreApiResponse\n */\nvar _UpdateObjectstoreApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar UpdateObjectstoreApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>UpdateObjectstoreApiResponse</code>.\n * REST response for all response codes in API path /objects/v4.0/config/object-stores/{extId} Put operation\n * @alias module:Ntnx/UpdateObjectstoreApiResponse\n */\n function UpdateObjectstoreApiResponse() {\n var _this;\n _classCallCheck(this, UpdateObjectstoreApiResponse);\n _this = _callSuper(this, UpdateObjectstoreApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _UpdateObjectstoreApiResponse_brand);\n _this.$objectType = \"objects.v4.config.UpdateObjectstoreApiResponse\";\n /** @type {object<string, any>} */\n _this.$reserved = {\n '$fv': \"v4.r0\"\n };\n /** @type {object<string, any>} */\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>UpdateObjectstoreApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/UpdateObjectstoreApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/UpdateObjectstoreApiResponse} The populated <code>UpdateObjectstoreApiResponse</code> instance.\n */\n _inherits(UpdateObjectstoreApiResponse, _Paginable);\n return _createClass(UpdateObjectstoreApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {ApiResponseMetadata}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {ApiResponseMetadata} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {TaskReference | ErrorResponse}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {TaskReference | ErrorResponse} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_UpdateObjectstoreApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_UpdateObjectstoreApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new UpdateObjectstoreApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'prism.v4.config.TaskReference':\n obj.setData(_prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n case 'objects.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n/**\n * @memberof UpdateObjectstoreApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nUpdateObjectstoreApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof UpdateObjectstoreApiResponse\n */\nUpdateObjectstoreApiResponse.prototype.data = undefined;\nUpdateObjectstoreApiResponse.prototype.$reserved = undefined;\nUpdateObjectstoreApiResponse.prototype.$objectType = undefined;\nUpdateObjectstoreApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/config/UpdateObjectstoreApiResponse.js?");
596
+
597
+ /***/ }),
598
+
599
+ /***/ "./target/generated-sources/swagger/src/models/objects/v4/error/AppMessage.js":
600
+ /*!************************************************************************************!*\
601
+ !*** ./target/generated-sources/swagger/src/models/objects/v4/error/AppMessage.js ***!
602
+ \************************************************************************************/
603
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
604
+
605
+ "use strict";
606
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ AppMessage)\n/* harmony export */ });\n/* harmony import */ var _common_v1_config_MessageSeverity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/config/MessageSeverity */ \"./target/generated-sources/swagger/src/models/common/v1/config/MessageSeverity.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n/**\n * The AppMessage model module.\n * @module Ntnx/AppMessage\n * @version 4.0.1\n * @class AppMessage\n */\nvar _AppMessage_brand = /*#__PURE__*/new WeakSet();\nvar AppMessage = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>AppMessage</code>.\n * Message with associated severity describing status of the current operation.\n * @alias module:Ntnx/AppMessage\n */\n function AppMessage() {\n _classCallCheck(this, AppMessage);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _AppMessage_brand);\n this.$objectType = \"objects.v4.error.AppMessage\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v4.r0\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>AppMessage</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/AppMessage} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/AppMessage} The populated <code>AppMessage</code> instance.\n */\n return _createClass(AppMessage, [{\n key: \"getMessage\",\n value:\n /**\n * Returns The message string.\n * @return {string}\n */\n function getMessage() {\n return this.message;\n }\n\n /**\n * Sets The message string.\n * @param {string} message The message string.\n */\n }, {\n key: \"setMessage\",\n value: function setMessage(message) {\n this.message = message;\n }\n\n /**\n * @return {MessageSeverity}\n */\n }, {\n key: \"getSeverity\",\n value: function getSeverity() {\n return this.severity;\n }\n\n /**\n * @param {MessageSeverity} severity\n */\n }, {\n key: \"setSeverity\",\n value: function setSeverity(severity) {\n this.severity = severity;\n }\n\n /**\n * Returns The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000\n * @return {string}\n */\n }, {\n key: \"getCode\",\n value: function getCode() {\n return this.code;\n }\n\n /**\n * Sets The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000\n * @param {string} code The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000\n */\n }, {\n key: \"setCode\",\n value: function setCode(code) {\n this.code = code;\n }\n\n /**\n * Returns Locale for this message. The default locale would be 'en-US'.\n * @return {string}\n */\n }, {\n key: \"getLocale\",\n value: function getLocale() {\n return this.locale;\n }\n\n /**\n * Sets Locale for this message. The default locale would be 'en-US'.\n * @param {string} locale Locale for this message. The default locale would be 'en-US'.\n */\n }, {\n key: \"setLocale\",\n value: function setLocale(locale) {\n this.locale = locale;\n }\n\n /**\n * Returns The error group associated with this message of severity ERROR.\n * @return {string}\n */\n }, {\n key: \"getErrorGroup\",\n value: function getErrorGroup() {\n return this.errorGroup;\n }\n\n /**\n * Sets The error group associated with this message of severity ERROR.\n * @param {string} errorGroup The error group associated with this message of severity ERROR.\n */\n }, {\n key: \"setErrorGroup\",\n value: function setErrorGroup(errorGroup) {\n this.errorGroup = errorGroup;\n }\n\n /**\n * Returns The map of argument name to value.\n * @return {Object<string, string>}\n */\n }, {\n key: \"getArgumentsMap\",\n value: function getArgumentsMap() {\n return this.argumentsMap;\n }\n\n /**\n * Sets The map of argument name to value.\n * @param {Object<string, string>} argumentsMap The map of argument name to value.\n */\n }, {\n key: \"setArgumentsMap\",\n value: function setArgumentsMap(argumentsMap) {\n this.argumentsMap = argumentsMap;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}), typeof this.getSeverity() !== 'undefined' && this.getSeverity() !== null ? {\n 'severity': this.getSeverity()\n } : {}), typeof this.getCode() !== 'undefined' && this.getCode() !== null ? {\n 'code': this.getCode()\n } : {}), typeof this.getLocale() !== 'undefined' && this.getLocale() !== null ? {\n 'locale': this.getLocale()\n } : {}), typeof this.getErrorGroup() !== 'undefined' && this.getErrorGroup() !== null ? {\n 'errorGroup': this.getErrorGroup()\n } : {}), typeof this.getArgumentsMap() !== 'undefined' && this.getArgumentsMap() !== null ? {\n 'argumentsMap': _assertClassBrand(_AppMessage_brand, this, _toJsonMapType).call(this, this.getArgumentsMap(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}), typeof this.getSeverity() !== 'undefined' && this.getSeverity() !== null ? {\n 'severity': this.getSeverity()\n } : {}), typeof this.getCode() !== 'undefined' && this.getCode() !== null ? {\n 'code': this.getCode()\n } : {}), typeof this.getLocale() !== 'undefined' && this.getLocale() !== null ? {\n 'locale': this.getLocale()\n } : {}), typeof this.getErrorGroup() !== 'undefined' && this.getErrorGroup() !== null ? {\n 'errorGroup': this.getErrorGroup()\n } : {}), typeof this.getArgumentsMap() !== 'undefined' && this.getArgumentsMap() !== null ? {\n 'argumentsMap': _assertClassBrand(_AppMessage_brand, this, _toJsonMapType).call(this, this.getArgumentsMap())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"message\") {\n if (typeof this.message === 'undefined' || this.message === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"message\", \"undefined or null\");\n }\n }\n if (property === \"severity\") {\n if (typeof this.severity === 'undefined' || this.severity === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"severity\", \"undefined or null\");\n }\n }\n if (property === \"code\") {\n if (typeof this.code === 'undefined' || this.code === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"code\", \"undefined or null\");\n }\n }\n if (property === \"locale\") {\n if (typeof this.locale === 'undefined' || this.locale === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"locale\", \"undefined or null\");\n }\n }\n if (property === \"errorGroup\") {\n if (typeof this.errorGroup === 'undefined' || this.errorGroup === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"errorGroup\", \"undefined or null\");\n }\n }\n if (property === \"argumentsMap\") {\n if (typeof this.argumentsMap === 'undefined' || this.argumentsMap === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"argumentsMap\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new AppMessage();\n if (data.hasOwnProperty('message') && data.message !== null && data.message !== undefined) {\n obj.setMessage(data['message']);\n }\n if (data.hasOwnProperty('severity') && data.severity !== null && data.severity !== undefined) {\n obj.setSeverity(_common_v1_config_MessageSeverity__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['severity']));\n }\n if (data.hasOwnProperty('code') && data.code !== null && data.code !== undefined) {\n obj.setCode(data['code']);\n }\n if (data.hasOwnProperty('locale') && data.locale !== null && data.locale !== undefined) {\n obj.setLocale(data['locale']);\n }\n if (data.hasOwnProperty('errorGroup') && data.errorGroup !== null && data.errorGroup !== undefined) {\n obj.setErrorGroup(data['errorGroup']);\n }\n if (data.hasOwnProperty('argumentsMap') && data.argumentsMap !== null && data.argumentsMap !== undefined) {\n obj.setArgumentsMap(data['argumentsMap']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}();\n/**\n * The message string.\n * @memberof AppMessage\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nAppMessage.prototype.message = undefined;\n\n/**\n * @memberof AppMessage\n */\nAppMessage.prototype.severity = undefined;\n\n/**\n * The code associated with this message.This string is typically prefixed by the namespace the endpoint belongs to. For example: VMM-40000\n * @memberof AppMessage\n */\nAppMessage.prototype.code = undefined;\n\n/**\n * Locale for this message. The default locale would be 'en-US'.\n * @memberof AppMessage\n * @default 'en_US'\n */\nAppMessage.prototype.locale = 'en_US';\n\n/**\n * The error group associated with this message of severity ERROR.\n * @memberof AppMessage\n */\nAppMessage.prototype.errorGroup = undefined;\n\n/**\n * The map of argument name to value.\n * @memberof AppMessage\n */\nAppMessage.prototype.argumentsMap = undefined;\nAppMessage.prototype.$reserved = undefined;\nAppMessage.prototype.$objectType = undefined;\nAppMessage.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/error/AppMessage.js?");
607
+
608
+ /***/ }),
609
+
610
+ /***/ "./target/generated-sources/swagger/src/models/objects/v4/error/ErrorResponse.js":
611
+ /*!***************************************************************************************!*\
612
+ !*** ./target/generated-sources/swagger/src/models/objects/v4/error/ErrorResponse.js ***!
613
+ \***************************************************************************************/
614
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
615
+
616
+ "use strict";
617
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ErrorResponse)\n/* harmony export */ });\n/* harmony import */ var _AppMessage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AppMessage */ \"./target/generated-sources/swagger/src/models/objects/v4/error/AppMessage.js\");\n/* harmony import */ var _SchemaValidationError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SchemaValidationError */ \"./target/generated-sources/swagger/src/models/objects/v4/error/SchemaValidationError.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n/**\n * The ErrorResponse model module.\n * @module Ntnx/ErrorResponse\n * @version 4.0.1\n * @class ErrorResponse\n */\nvar _ErrorResponse_brand = /*#__PURE__*/new WeakSet();\nvar ErrorResponse = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>ErrorResponse</code>.\n * An error response indicates that the operation has failed either due to a client error(4XX) or server error(5XX). Please look at the HTTP status code and namespace specific error code and error message for further details.\n * @alias module:Ntnx/ErrorResponse\n */\n function ErrorResponse() {\n _classCallCheck(this, ErrorResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _ErrorResponse_brand);\n this.$objectType = \"objects.v4.error.ErrorResponse\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v4.r0\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>ErrorResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ErrorResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ErrorResponse} The populated <code>ErrorResponse</code> instance.\n */\n return _createClass(ErrorResponse, [{\n key: \"getError\",\n value:\n /**\n * @return {AppMessage[] | SchemaValidationError}\n */\n function getError() {\n return this.error;\n }\n\n /**\n * @param {AppMessage[] | SchemaValidationError} error\n */\n }, {\n key: \"setError\",\n value: function setError(error) {\n this.error = error;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread({}, typeof this.getError() !== 'undefined' && this.getError() !== null ? {\n 'error': typeof this.getError().toJson !== \"undefined\" ? this.getError().toJson(false) : Array.isArray(this.getError()) ? this.getError().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_ErrorResponse_brand, this, _toJsonMapType).call(this, this.getError(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread({}, typeof this.getError() !== 'undefined' && this.getError() !== null ? {\n 'error': typeof this.getError().toJson !== \"undefined\" ? this.getError().toJson() : Array.isArray(this.getError()) ? this.getError().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_ErrorResponse_brand, this, _toJsonMapType).call(this, this.getError())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_2__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"error\") {\n if (typeof this.error === 'undefined' || this.error === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"error\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_4__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ErrorResponse();\n if (data.hasOwnProperty('error') && data.error !== null && data.error !== undefined) {\n if (Array.isArray(data['error'])) {\n if (data['error'].length === 0) {\n obj.setError([]);\n } else {\n itemArr = [];\n items = data['error'];\n if (items[0].hasOwnProperty('$objectType')) {\n discriminator = items[0]['$objectType'];\n } else {\n discriminator = _typeof(items[0]);\n }\n for (i = 0; i < items.length; i++) {\n switch (discriminator) {\n case 'objects.v4.error.AppMessage':\n item = _AppMessage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n break;\n default:\n throw \"Unknown list of type \" + discriminator + \" in data\";\n }\n }\n obj.setError(itemArr);\n }\n } else {\n if (data['error'].hasOwnProperty('$objectType')) {\n discriminator = data['error']['$objectType'];\n } else {\n discriminator = _typeof(data['error']);\n }\n switch (discriminator) {\n case 'objects.v4.error.SchemaValidationError':\n obj.setError(_SchemaValidationError__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['error'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}();\n/**\n * @memberof ErrorResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nErrorResponse.prototype.error = undefined;\nErrorResponse.prototype.$reserved = undefined;\nErrorResponse.prototype.$objectType = undefined;\nErrorResponse.prototype.$unknownFields = undefined;\n\n// Implement OneOfobjects.v4.config.CreateCertificateApiResponsedata interface:\n// Implement OneOfobjects.v4.config.CreateObjectstoreApiResponsedata interface:\n// Implement OneOfobjects.v4.config.ListCertificatesApiResponsedata interface:\n// Implement OneOfobjects.v4.config.DeleteObjectstoreApiResponsedata interface:\n// Implement OneOfobjects.v4.config.ListObjectstoresApiResponsedata interface:\n// Implement OneOfobjects.v4.stats.GetObjectstoreStatsApiResponsedata interface:\n// Implement OneOfobjects.v4.config.GetObjectstoreApiResponsedata interface:\n// Implement OneOfobjects.v4.config.GetCertificateApiResponsedata interface:\n// Implement OneOfobjects.v4.config.GetCaApiResponsedata interface:\n// Implement OneOfobjects.v4.config.UpdateObjectstoreApiResponsedata interface:\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/error/ErrorResponse.js?");
618
+
619
+ /***/ }),
620
+
621
+ /***/ "./target/generated-sources/swagger/src/models/objects/v4/error/SchemaValidationError.js":
622
+ /*!***********************************************************************************************!*\
623
+ !*** ./target/generated-sources/swagger/src/models/objects/v4/error/SchemaValidationError.js ***!
624
+ \***********************************************************************************************/
625
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
626
+
627
+ "use strict";
628
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SchemaValidationError)\n/* harmony export */ });\n/* harmony import */ var _SchemaValidationErrorMessage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SchemaValidationErrorMessage */ \"./target/generated-sources/swagger/src/models/objects/v4/error/SchemaValidationErrorMessage.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n/**\n * The SchemaValidationError model module.\n * @module Ntnx/SchemaValidationError\n * @version 4.0.1\n * @class SchemaValidationError\n */\nvar _SchemaValidationError_brand = /*#__PURE__*/new WeakSet();\nvar SchemaValidationError = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>SchemaValidationError</code>.\n * This schema is generated from SchemaValidationError.java\n * @alias module:Ntnx/SchemaValidationError\n */\n function SchemaValidationError() {\n _classCallCheck(this, SchemaValidationError);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _SchemaValidationError_brand);\n this.$objectType = \"objects.v4.error.SchemaValidationError\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v4.r0\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>SchemaValidationError</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/SchemaValidationError} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/SchemaValidationError} The populated <code>SchemaValidationError</code> instance.\n */\n return _createClass(SchemaValidationError, [{\n key: \"getTimestamp\",\n value:\n /**\n * Returns Timestamp of the response.\n * @return {Date}\n */\n function getTimestamp() {\n return this.timestamp;\n }\n\n /**\n * Sets Timestamp of the response.\n * @param {Date} timestamp Timestamp of the response.\n */\n }, {\n key: \"setTimestamp\",\n value: function setTimestamp(timestamp) {\n this.timestamp = timestamp;\n }\n\n /**\n * Returns The HTTP status code of the response.\n * @return {Number}\n */\n }, {\n key: \"getStatusCode\",\n value: function getStatusCode() {\n return this.statusCode;\n }\n\n /**\n * Sets The HTTP status code of the response.\n * @param {Number} statusCode The HTTP status code of the response.\n */\n }, {\n key: \"setStatusCode\",\n value: function setStatusCode(statusCode) {\n this.statusCode = statusCode;\n }\n\n /**\n * Returns The generic error message for the response.\n * @return {string}\n */\n }, {\n key: \"getError\",\n value: function getError() {\n return this.error;\n }\n\n /**\n * Sets The generic error message for the response.\n * @param {string} error The generic error message for the response.\n */\n }, {\n key: \"setError\",\n value: function setError(error) {\n this.error = error;\n }\n\n /**\n * Returns API path on which the request was made.\n * @return {string}\n */\n }, {\n key: \"getPath\",\n value: function getPath() {\n return this.path;\n }\n\n /**\n * Sets API path on which the request was made.\n * @param {string} path API path on which the request was made.\n */\n }, {\n key: \"setPath\",\n value: function setPath(path) {\n this.path = path;\n }\n\n /**\n * Returns List of validation error messages\n * @return {SchemaValidationErrorMessage[]}\n */\n }, {\n key: \"getValidationErrorMessages\",\n value: function getValidationErrorMessages() {\n return this.validationErrorMessages;\n }\n\n /**\n * Sets List of validation error messages\n * @param {SchemaValidationErrorMessage[]} validationErrorMessages List of validation error messages\n */\n }, {\n key: \"setValidationErrorMessages\",\n value: function setValidationErrorMessages(validationErrorMessages) {\n this.validationErrorMessages = validationErrorMessages;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getTimestamp() !== 'undefined' && this.getTimestamp() !== null ? {\n 'timestamp': _assertClassBrand(_SchemaValidationError_brand, this, _handleDateType).call(this, this.getTimestamp(), false)\n } : {}), typeof this.getStatusCode() !== 'undefined' && this.getStatusCode() !== null ? {\n 'statusCode': this.getStatusCode()\n } : {}), typeof this.getError() !== 'undefined' && this.getError() !== null ? {\n 'error': this.getError()\n } : {}), typeof this.getPath() !== 'undefined' && this.getPath() !== null ? {\n 'path': this.getPath()\n } : {}), typeof this.getValidationErrorMessages() !== 'undefined' && this.getValidationErrorMessages() !== null ? {\n 'validationErrorMessages': this.getValidationErrorMessages().map(function (item) {\n return item.toJson(false);\n })\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getTimestamp() !== 'undefined' && this.getTimestamp() !== null ? {\n 'timestamp': _assertClassBrand(_SchemaValidationError_brand, this, _handleDateType).call(this, this.getTimestamp(), false)\n } : {}), typeof this.getStatusCode() !== 'undefined' && this.getStatusCode() !== null ? {\n 'statusCode': this.getStatusCode()\n } : {}), typeof this.getError() !== 'undefined' && this.getError() !== null ? {\n 'error': this.getError()\n } : {}), typeof this.getPath() !== 'undefined' && this.getPath() !== null ? {\n 'path': this.getPath()\n } : {}), typeof this.getValidationErrorMessages() !== 'undefined' && this.getValidationErrorMessages() !== null ? {\n 'validationErrorMessages': this.getValidationErrorMessages().map(function (item) {\n return item.toJson(false);\n })\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_1__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"timestamp\") {\n if (typeof this.timestamp === 'undefined' || this.timestamp === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"timestamp\", \"undefined or null\");\n }\n }\n if (property === \"statusCode\") {\n if (typeof this.statusCode === 'undefined' || this.statusCode === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"statusCode\", \"undefined or null\");\n }\n }\n if (property === \"error\") {\n if (typeof this.error === 'undefined' || this.error === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"error\", \"undefined or null\");\n }\n }\n if (property === \"path\") {\n if (typeof this.path === 'undefined' || this.path === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"path\", \"undefined or null\");\n }\n }\n if (property === \"validationErrorMessages\") {\n if (typeof this.validationErrorMessages === 'undefined' || this.validationErrorMessages === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"validationErrorMessages\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new SchemaValidationError();\n if (data.hasOwnProperty('timestamp') && data.timestamp !== null && data.timestamp !== undefined) {\n obj.setTimestamp(data['timestamp']);\n }\n if (data.hasOwnProperty('statusCode') && data.statusCode !== null && data.statusCode !== undefined) {\n obj.setStatusCode(data['statusCode']);\n }\n if (data.hasOwnProperty('error') && data.error !== null && data.error !== undefined) {\n obj.setError(data['error']);\n }\n if (data.hasOwnProperty('path') && data.path !== null && data.path !== undefined) {\n obj.setPath(data['path']);\n }\n if (data.hasOwnProperty('validationErrorMessages') && data.validationErrorMessages !== null && data.validationErrorMessages !== undefined) {\n itemArr = [];\n items = data.validationErrorMessages;\n for (i = 0; i < items.length; i++) {\n item = _SchemaValidationErrorMessage__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setValidationErrorMessages(itemArr);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}();\n/**\n * Timestamp of the response.\n * @memberof SchemaValidationError\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nSchemaValidationError.prototype.timestamp = undefined;\n\n/**\n * The HTTP status code of the response.\n * @memberof SchemaValidationError\n */\nSchemaValidationError.prototype.statusCode = undefined;\n\n/**\n * The generic error message for the response.\n * @memberof SchemaValidationError\n */\nSchemaValidationError.prototype.error = undefined;\n\n/**\n * API path on which the request was made.\n * @memberof SchemaValidationError\n */\nSchemaValidationError.prototype.path = undefined;\n\n/**\n * List of validation error messages\n * @memberof SchemaValidationError\n */\nSchemaValidationError.prototype.validationErrorMessages = undefined;\nSchemaValidationError.prototype.$reserved = undefined;\nSchemaValidationError.prototype.$objectType = undefined;\nSchemaValidationError.prototype.$unknownFields = undefined;\n\n// Implement OneOfobjects.v4.error.ErrorResponseerror interface:\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/error/SchemaValidationError.js?");
629
+
630
+ /***/ }),
631
+
632
+ /***/ "./target/generated-sources/swagger/src/models/objects/v4/error/SchemaValidationErrorMessage.js":
633
+ /*!******************************************************************************************************!*\
634
+ !*** ./target/generated-sources/swagger/src/models/objects/v4/error/SchemaValidationErrorMessage.js ***!
635
+ \******************************************************************************************************/
636
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
637
+
638
+ "use strict";
639
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ SchemaValidationErrorMessage)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The SchemaValidationErrorMessage model module.\n * @module Ntnx/SchemaValidationErrorMessage\n * @version 4.0.1\n * @class SchemaValidationErrorMessage\n */\nvar _SchemaValidationErrorMessage_brand = /*#__PURE__*/new WeakSet();\nvar SchemaValidationErrorMessage = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>SchemaValidationErrorMessage</code>.\n * This schema is generated from SchemaValidationErrorMessage.java\n * @alias module:Ntnx/SchemaValidationErrorMessage\n */\n function SchemaValidationErrorMessage() {\n _classCallCheck(this, SchemaValidationErrorMessage);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _SchemaValidationErrorMessage_brand);\n this.$objectType = \"objects.v4.error.SchemaValidationErrorMessage\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v4.r0\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>SchemaValidationErrorMessage</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/SchemaValidationErrorMessage} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/SchemaValidationErrorMessage} The populated <code>SchemaValidationErrorMessage</code> instance.\n */\n return _createClass(SchemaValidationErrorMessage, [{\n key: \"getLocation\",\n value:\n /**\n * Returns The part of the request that failed validation. Validation can fail for path, query parameters, and request body.\n * @return {string}\n */\n function getLocation() {\n return this.location;\n }\n\n /**\n * Sets The part of the request that failed validation. Validation can fail for path, query parameters, and request body.\n * @param {string} location The part of the request that failed validation. Validation can fail for path, query parameters, and request body.\n */\n }, {\n key: \"setLocation\",\n value: function setLocation(location) {\n this.location = location;\n }\n\n /**\n * Returns The detailed message for the validation error.\n * @return {string}\n */\n }, {\n key: \"getMessage\",\n value: function getMessage() {\n return this.message;\n }\n\n /**\n * Sets The detailed message for the validation error.\n * @param {string} message The detailed message for the validation error.\n */\n }, {\n key: \"setMessage\",\n value: function setMessage(message) {\n this.message = message;\n }\n\n /**\n * Returns The path of the attribute that failed validation in the schema.\n * @return {string}\n */\n }, {\n key: \"getAttributePath\",\n value: function getAttributePath() {\n return this.attributePath;\n }\n\n /**\n * Sets The path of the attribute that failed validation in the schema.\n * @param {string} attributePath The path of the attribute that failed validation in the schema.\n */\n }, {\n key: \"setAttributePath\",\n value: function setAttributePath(attributePath) {\n this.attributePath = attributePath;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getLocation() !== 'undefined' && this.getLocation() !== null ? {\n 'location': this.getLocation()\n } : {}), typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}), typeof this.getAttributePath() !== 'undefined' && this.getAttributePath() !== null ? {\n 'attributePath': this.getAttributePath()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getLocation() !== 'undefined' && this.getLocation() !== null ? {\n 'location': this.getLocation()\n } : {}), typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}), typeof this.getAttributePath() !== 'undefined' && this.getAttributePath() !== null ? {\n 'attributePath': this.getAttributePath()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"location\") {\n if (typeof this.location === 'undefined' || this.location === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"location\", \"undefined or null\");\n }\n }\n if (property === \"message\") {\n if (typeof this.message === 'undefined' || this.message === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"message\", \"undefined or null\");\n }\n }\n if (property === \"attributePath\") {\n if (typeof this.attributePath === 'undefined' || this.attributePath === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"attributePath\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new SchemaValidationErrorMessage();\n if (data.hasOwnProperty('location') && data.location !== null && data.location !== undefined) {\n obj.setLocation(data['location']);\n }\n if (data.hasOwnProperty('message') && data.message !== null && data.message !== undefined) {\n obj.setMessage(data['message']);\n }\n if (data.hasOwnProperty('attributePath') && data.attributePath !== null && data.attributePath !== undefined) {\n obj.setAttributePath(data['attributePath']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}();\n/**\n * The part of the request that failed validation. Validation can fail for path, query parameters, and request body.\n * @memberof SchemaValidationErrorMessage\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nSchemaValidationErrorMessage.prototype.location = undefined;\n\n/**\n * The detailed message for the validation error.\n * @memberof SchemaValidationErrorMessage\n */\nSchemaValidationErrorMessage.prototype.message = undefined;\n\n/**\n * The path of the attribute that failed validation in the schema.\n * @memberof SchemaValidationErrorMessage\n */\nSchemaValidationErrorMessage.prototype.attributePath = undefined;\nSchemaValidationErrorMessage.prototype.$reserved = undefined;\nSchemaValidationErrorMessage.prototype.$objectType = undefined;\nSchemaValidationErrorMessage.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/error/SchemaValidationErrorMessage.js?");
640
+
641
+ /***/ }),
642
+
643
+ /***/ "./target/generated-sources/swagger/src/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js":
644
+ /*!********************************************************************************************************!*\
645
+ !*** ./target/generated-sources/swagger/src/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js ***!
646
+ \********************************************************************************************************/
647
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
648
+
649
+ "use strict";
650
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ GetObjectstoreStatsApiResponse)\n/* harmony export */ });\n/* harmony import */ var _common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/response/ApiResponseMetadata */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/objects/v4/error/ErrorResponse.js\");\n/* harmony import */ var _ObjectstoreStats__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ObjectstoreStats */ \"./target/generated-sources/swagger/src/models/objects/v4/stats/ObjectstoreStats.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\n/* harmony import */ var _Paginable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../Paginable */ \"./target/generated-sources/swagger/src/Paginable.js\");\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\nfunction _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\nfunction _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\nfunction _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The GetObjectstoreStatsApiResponse model module.\n * @module Ntnx/GetObjectstoreStatsApiResponse\n * @version 4.0.1\n * @class GetObjectstoreStatsApiResponse\n */\nvar _GetObjectstoreStatsApiResponse_brand = /*#__PURE__*/new WeakSet();\nvar GetObjectstoreStatsApiResponse = /*#__PURE__*/function (_Paginable) {\n /**\n * Constructs a new <code>GetObjectstoreStatsApiResponse</code>.\n * REST response for all response codes in API path /objects/v4.0/stats/object-stores/{extId} Get operation\n * @alias module:Ntnx/GetObjectstoreStatsApiResponse\n */\n function GetObjectstoreStatsApiResponse() {\n var _this;\n _classCallCheck(this, GetObjectstoreStatsApiResponse);\n _this = _callSuper(this, GetObjectstoreStatsApiResponse);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _GetObjectstoreStatsApiResponse_brand);\n _this.$objectType = \"objects.v4.stats.GetObjectstoreStatsApiResponse\";\n /** @type {object<string, any>} */\n _this.$reserved = {\n '$fv': \"v4.r0\"\n };\n /** @type {object<string, any>} */\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>GetObjectstoreStatsApiResponse</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/GetObjectstoreStatsApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/GetObjectstoreStatsApiResponse} The populated <code>GetObjectstoreStatsApiResponse</code> instance.\n */\n _inherits(GetObjectstoreStatsApiResponse, _Paginable);\n return _createClass(GetObjectstoreStatsApiResponse, [{\n key: \"getMetadata\",\n value:\n /**\n * @return {ApiResponseMetadata}\n */\n function getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {ApiResponseMetadata} metadata\n */\n }, {\n key: \"setMetadata\",\n value: function setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {ObjectstoreStats | ErrorResponse}\n */\n }, {\n key: \"getData\",\n value: function getData() {\n return this.data;\n }\n\n /**\n * @param {ObjectstoreStats | ErrorResponse} data\n */\n }, {\n key: \"setData\",\n value: function setData(data) {\n this.data = data;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson(false) : item;\n }) : _assertClassBrand(_GetObjectstoreStatsApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {\n 'data': typeof this.getData().toJson !== \"undefined\" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {\n return typeof item.toJson !== \"undefined\" ? item.toJson() : item;\n }) : _assertClassBrand(_GetObjectstoreStatsApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_3__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"metadata\") {\n if (typeof this.metadata === 'undefined' || this.metadata === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"metadata\", \"undefined or null\");\n }\n }\n if (property === \"data\") {\n if (typeof this.data === 'undefined' || this.data === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"data\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new GetObjectstoreStatsApiResponse();\n if (data.hasOwnProperty('metadata')) {\n _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"].constructFromObject(data['metadata'], obj);\n }\n if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {\n obj.setMetadata(_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['metadata']));\n }\n if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {\n if (data['data'].hasOwnProperty('$objectType')) {\n discriminator = data['data']['$objectType'];\n } else {\n discriminator = _typeof(data['data']);\n }\n switch (discriminator) {\n case 'objects.v4.stats.ObjectstoreStats':\n obj.setData(_ObjectstoreStats__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n case 'objects.v4.error.ErrorResponse':\n obj.setData(_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}(_Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);\n/**\n * @memberof GetObjectstoreStatsApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nGetObjectstoreStatsApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof GetObjectstoreStatsApiResponse\n */\nGetObjectstoreStatsApiResponse.prototype.data = undefined;\nGetObjectstoreStatsApiResponse.prototype.$reserved = undefined;\nGetObjectstoreStatsApiResponse.prototype.$objectType = undefined;\nGetObjectstoreStatsApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js?");
651
+
652
+ /***/ }),
653
+
654
+ /***/ "./target/generated-sources/swagger/src/models/objects/v4/stats/ObjectstoreStats.js":
655
+ /*!******************************************************************************************!*\
656
+ !*** ./target/generated-sources/swagger/src/models/objects/v4/stats/ObjectstoreStats.js ***!
657
+ \******************************************************************************************/
658
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
659
+
660
+ "use strict";
661
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ObjectstoreStats)\n/* harmony export */ });\n/* harmony import */ var _common_v1_config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/config/TenantAwareModel */ \"./target/generated-sources/swagger/src/models/common/v1/config/TenantAwareModel.js\");\n/* harmony import */ var _common_v1_response_ApiLink__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/v1/response/ApiLink */ \"./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js\");\n/* harmony import */ var _common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../common/v1/response/ExternalizableAbstractModel */ \"./target/generated-sources/swagger/src/models/common/v1/response/ExternalizableAbstractModel.js\");\n/* harmony import */ var _common_v1_stats_TimeIntValuePair__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../common/v1/stats/TimeIntValuePair */ \"./target/generated-sources/swagger/src/models/common/v1/stats/TimeIntValuePair.js\");\n/* harmony import */ var _TimeFloatValuePair__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TimeFloatValuePair */ \"./target/generated-sources/swagger/src/models/objects/v4/stats/TimeFloatValuePair.js\");\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\nfunction _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\nfunction _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\nfunction _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n\n/**\n * The ObjectstoreStats model module.\n * @module Ntnx/ObjectstoreStats\n * @version 4.0.1\n * @class ObjectstoreStats\n * @extends ExternalizableAbstractModel\n */\nvar _ObjectstoreStats_brand = /*#__PURE__*/new WeakSet();\nvar ObjectstoreStats = /*#__PURE__*/function (_ExternalizableAbstra) {\n /**\n * Constructs a new <code>ObjectstoreStats</code>.\n * @alias module:Ntnx/ObjectstoreStats\n * @extends module:Ntnx/ExternalizableAbstractModel\n */\n function ObjectstoreStats() {\n var _this;\n _classCallCheck(this, ObjectstoreStats);\n _this = _callSuper(this, ObjectstoreStats);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(_this, _ObjectstoreStats_brand);\n _this.$objectType = \"objects.v4.stats.ObjectstoreStats\";\n /** @type {object<string, any>} */\n _this.$reserved = {\n '$fv': \"v4.r0\"\n };\n /** @type {object<string, any>} */\n _this.$unknownFields = {};\n return _this;\n }\n\n /**\n * Constructs a <code>ObjectstoreStats</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/ObjectstoreStats} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ObjectstoreStats} The populated <code>ObjectstoreStats</code> instance.\n */\n _inherits(ObjectstoreStats, _ExternalizableAbstra);\n return _createClass(ObjectstoreStats, [{\n key: \"getObjectCount\",\n value:\n /**\n * Returns Number of Objects in the Object store. This stat is updated every 10 minutes. It includes the count of the incomplete multipart uploads. \n * @return {TimeIntValuePair[]}\n */\n function getObjectCount() {\n return this.objectCount;\n }\n\n /**\n * Sets Number of Objects in the Object store. This stat is updated every 10 minutes. It includes the count of the incomplete multipart uploads. \n * @param {TimeIntValuePair[]} objectCount Number of Objects in the Object store. This stat is updated every 10 minutes. It includes the count of the incomplete multipart uploads. \n */\n }, {\n key: \"setObjectCount\",\n value: function setObjectCount(objectCount) {\n this.objectCount = objectCount;\n }\n\n /**\n * Returns Number of Buckets in the Object store. This stat is updated every 10 minutes. \n * @return {TimeIntValuePair[]}\n */\n }, {\n key: \"getBucketCount\",\n value: function getBucketCount() {\n return this.bucketCount;\n }\n\n /**\n * Sets Number of Buckets in the Object store. This stat is updated every 10 minutes. \n * @param {TimeIntValuePair[]} bucketCount Number of Buckets in the Object store. This stat is updated every 10 minutes. \n */\n }, {\n key: \"setBucketCount\",\n value: function setBucketCount(bucketCount) {\n this.bucketCount = bucketCount;\n }\n\n /**\n * Returns Total storage in bytes used by the Objects and Buckets. This stat is updated every 10 minutes. It includes the storage used by the incomplete multipart uploads. \n * @return {TimeIntValuePair[]}\n */\n }, {\n key: \"getStorageUsageBytes\",\n value: function getStorageUsageBytes() {\n return this.storageUsageBytes;\n }\n\n /**\n * Sets Total storage in bytes used by the Objects and Buckets. This stat is updated every 10 minutes. It includes the storage used by the incomplete multipart uploads. \n * @param {TimeIntValuePair[]} storageUsageBytes Total storage in bytes used by the Objects and Buckets. This stat is updated every 10 minutes. It includes the storage used by the incomplete multipart uploads. \n */\n }, {\n key: \"setStorageUsageBytes\",\n value: function setStorageUsageBytes(storageUsageBytes) {\n this.storageUsageBytes = storageUsageBytes;\n }\n\n /**\n * Returns Number of bytes written per second to the Object store from operations on the Objects and Buckets.\n * @return {TimeFloatValuePair[]}\n */\n }, {\n key: \"getInboundBytesPerSecond\",\n value: function getInboundBytesPerSecond() {\n return this.inboundBytesPerSecond;\n }\n\n /**\n * Sets Number of bytes written per second to the Object store from operations on the Objects and Buckets.\n * @param {TimeFloatValuePair[]} inboundBytesPerSecond Number of bytes written per second to the Object store from operations on the Objects and Buckets.\n */\n }, {\n key: \"setInboundBytesPerSecond\",\n value: function setInboundBytesPerSecond(inboundBytesPerSecond) {\n this.inboundBytesPerSecond = inboundBytesPerSecond;\n }\n\n /**\n * Returns Number of bytes read per second from the Object store from operations on the Objects and Buckets.\n * @return {TimeFloatValuePair[]}\n */\n }, {\n key: \"getOutboundBytesPerSecond\",\n value: function getOutboundBytesPerSecond() {\n return this.outboundBytesPerSecond;\n }\n\n /**\n * Sets Number of bytes read per second from the Object store from operations on the Objects and Buckets.\n * @param {TimeFloatValuePair[]} outboundBytesPerSecond Number of bytes read per second from the Object store from operations on the Objects and Buckets.\n */\n }, {\n key: \"setOutboundBytesPerSecond\",\n value: function setOutboundBytesPerSecond(outboundBytesPerSecond) {\n this.outboundBytesPerSecond = outboundBytesPerSecond;\n }\n\n /**\n * Returns Throughput of HTTP GET requests in bytes per second.\n * @return {TimeFloatValuePair[]}\n */\n }, {\n key: \"getGetRequestThroughputBytesPerSecond\",\n value: function getGetRequestThroughputBytesPerSecond() {\n return this.getRequestThroughputBytesPerSecond;\n }\n\n /**\n * Sets Throughput of HTTP GET requests in bytes per second.\n * @param {TimeFloatValuePair[]} getRequestThroughputBytesPerSecond Throughput of HTTP GET requests in bytes per second.\n */\n }, {\n key: \"setGetRequestThroughputBytesPerSecond\",\n value: function setGetRequestThroughputBytesPerSecond(getRequestThroughputBytesPerSecond) {\n this.getRequestThroughputBytesPerSecond = getRequestThroughputBytesPerSecond;\n }\n\n /**\n * Returns Throughput of HTTP PUT requests in bytes per second.\n * @return {TimeFloatValuePair[]}\n */\n }, {\n key: \"getPutRequestThroughputBytesPerSecond\",\n value: function getPutRequestThroughputBytesPerSecond() {\n return this.putRequestThroughputBytesPerSecond;\n }\n\n /**\n * Sets Throughput of HTTP PUT requests in bytes per second.\n * @param {TimeFloatValuePair[]} putRequestThroughputBytesPerSecond Throughput of HTTP PUT requests in bytes per second.\n */\n }, {\n key: \"setPutRequestThroughputBytesPerSecond\",\n value: function setPutRequestThroughputBytesPerSecond(putRequestThroughputBytesPerSecond) {\n this.putRequestThroughputBytesPerSecond = putRequestThroughputBytesPerSecond;\n }\n\n /**\n * Returns Number of HTTP POST requests per second on the Objects and Buckets of the Object store.\n * @return {TimeFloatValuePair[]}\n */\n }, {\n key: \"getPostRequestsPerSecond\",\n value: function getPostRequestsPerSecond() {\n return this.postRequestsPerSecond;\n }\n\n /**\n * Sets Number of HTTP POST requests per second on the Objects and Buckets of the Object store.\n * @param {TimeFloatValuePair[]} postRequestsPerSecond Number of HTTP POST requests per second on the Objects and Buckets of the Object store.\n */\n }, {\n key: \"setPostRequestsPerSecond\",\n value: function setPostRequestsPerSecond(postRequestsPerSecond) {\n this.postRequestsPerSecond = postRequestsPerSecond;\n }\n\n /**\n * Returns Number of HTTP HEAD requests per second on the Objects and Buckets of the Object store.\n * @return {TimeFloatValuePair[]}\n */\n }, {\n key: \"getHeadRequestsPerSecond\",\n value: function getHeadRequestsPerSecond() {\n return this.headRequestsPerSecond;\n }\n\n /**\n * Sets Number of HTTP HEAD requests per second on the Objects and Buckets of the Object store.\n * @param {TimeFloatValuePair[]} headRequestsPerSecond Number of HTTP HEAD requests per second on the Objects and Buckets of the Object store.\n */\n }, {\n key: \"setHeadRequestsPerSecond\",\n value: function setHeadRequestsPerSecond(headRequestsPerSecond) {\n this.headRequestsPerSecond = headRequestsPerSecond;\n }\n\n /**\n * Returns Number of HTTP GET requests per second on the Objects and Buckets of the Object store.\n * @return {TimeFloatValuePair[]}\n */\n }, {\n key: \"getGetRequestsPerSecond\",\n value: function getGetRequestsPerSecond() {\n return this.getRequestsPerSecond;\n }\n\n /**\n * Sets Number of HTTP GET requests per second on the Objects and Buckets of the Object store.\n * @param {TimeFloatValuePair[]} getRequestsPerSecond Number of HTTP GET requests per second on the Objects and Buckets of the Object store.\n */\n }, {\n key: \"setGetRequestsPerSecond\",\n value: function setGetRequestsPerSecond(getRequestsPerSecond) {\n this.getRequestsPerSecond = getRequestsPerSecond;\n }\n\n /**\n * Returns Number of HTTP PUT requests per second on the Objects and Buckets of the Object store.\n * @return {TimeFloatValuePair[]}\n */\n }, {\n key: \"getPutRequestsPerSecond\",\n value: function getPutRequestsPerSecond() {\n return this.putRequestsPerSecond;\n }\n\n /**\n * Sets Number of HTTP PUT requests per second on the Objects and Buckets of the Object store.\n * @param {TimeFloatValuePair[]} putRequestsPerSecond Number of HTTP PUT requests per second on the Objects and Buckets of the Object store.\n */\n }, {\n key: \"setPutRequestsPerSecond\",\n value: function setPutRequestsPerSecond(putRequestsPerSecond) {\n this.putRequestsPerSecond = putRequestsPerSecond;\n }\n\n /**\n * Returns Number of HTTP DELETE requests per second on the Objects and Buckets of the Object store.\n * @return {TimeFloatValuePair[]}\n */\n }, {\n key: \"getDeleteRequestsPerSecond\",\n value: function getDeleteRequestsPerSecond() {\n return this.deleteRequestsPerSecond;\n }\n\n /**\n * Sets Number of HTTP DELETE requests per second on the Objects and Buckets of the Object store.\n * @param {TimeFloatValuePair[]} deleteRequestsPerSecond Number of HTTP DELETE requests per second on the Objects and Buckets of the Object store.\n */\n }, {\n key: \"setDeleteRequestsPerSecond\",\n value: function setDeleteRequestsPerSecond(deleteRequestsPerSecond) {\n this.deleteRequestsPerSecond = deleteRequestsPerSecond;\n }\n\n /**\n * Returns Number of operations per second on the objects of the Object store.\n * @return {TimeFloatValuePair[]}\n */\n }, {\n key: \"getObjectOperationsPerSecond\",\n value: function getObjectOperationsPerSecond() {\n return this.objectOperationsPerSecond;\n }\n\n /**\n * Sets Number of operations per second on the objects of the Object store.\n * @param {TimeFloatValuePair[]} objectOperationsPerSecond Number of operations per second on the objects of the Object store.\n */\n }, {\n key: \"setObjectOperationsPerSecond\",\n value: function setObjectOperationsPerSecond(objectOperationsPerSecond) {\n this.objectOperationsPerSecond = objectOperationsPerSecond;\n }\n\n /**\n * Returns Time to the first byte in milliseconds for Get Object requests.\n * @return {TimeFloatValuePair[]}\n */\n }, {\n key: \"getGetObjectTtfbMsecs\",\n value: function getGetObjectTtfbMsecs() {\n return this.getObjectTtfbMsecs;\n }\n\n /**\n * Sets Time to the first byte in milliseconds for Get Object requests.\n * @param {TimeFloatValuePair[]} getObjectTtfbMsecs Time to the first byte in milliseconds for Get Object requests.\n */\n }, {\n key: \"setGetObjectTtfbMsecs\",\n value: function setGetObjectTtfbMsecs(getObjectTtfbMsecs) {\n this.getObjectTtfbMsecs = getObjectTtfbMsecs;\n }\n\n /**\n * Returns Number of GetBucket operations per second.\n * @return {TimeFloatValuePair[]}\n */\n }, {\n key: \"getGetBucketOperationsPerSecond\",\n value: function getGetBucketOperationsPerSecond() {\n return this.getBucketOperationsPerSecond;\n }\n\n /**\n * Sets Number of GetBucket operations per second.\n * @param {TimeFloatValuePair[]} getBucketOperationsPerSecond Number of GetBucket operations per second.\n */\n }, {\n key: \"setGetBucketOperationsPerSecond\",\n value: function setGetBucketOperationsPerSecond(getBucketOperationsPerSecond) {\n this.getBucketOperationsPerSecond = getBucketOperationsPerSecond;\n }\n\n /**\n * Returns The number of ListMultipartUploads operations per second.\n * @return {TimeFloatValuePair[]}\n */\n }, {\n key: \"getListMultipartUploadsOperationsPerSecond\",\n value: function getListMultipartUploadsOperationsPerSecond() {\n return this.listMultipartUploadsOperationsPerSecond;\n }\n\n /**\n * Sets The number of ListMultipartUploads operations per second.\n * @param {TimeFloatValuePair[]} listMultipartUploadsOperationsPerSecond The number of ListMultipartUploads operations per second.\n */\n }, {\n key: \"setListMultipartUploadsOperationsPerSecond\",\n value: function setListMultipartUploadsOperationsPerSecond(listMultipartUploadsOperationsPerSecond) {\n this.listMultipartUploadsOperationsPerSecond = listMultipartUploadsOperationsPerSecond;\n }\n\n /**\n * Returns The number of CreateMultipartUpload operations per second.\n * @return {TimeFloatValuePair[]}\n */\n }, {\n key: \"getMultipartUploadStartOperationsPerSecond\",\n value: function getMultipartUploadStartOperationsPerSecond() {\n return this.multipartUploadStartOperationsPerSecond;\n }\n\n /**\n * Sets The number of CreateMultipartUpload operations per second.\n * @param {TimeFloatValuePair[]} multipartUploadStartOperationsPerSecond The number of CreateMultipartUpload operations per second.\n */\n }, {\n key: \"setMultipartUploadStartOperationsPerSecond\",\n value: function setMultipartUploadStartOperationsPerSecond(multipartUploadStartOperationsPerSecond) {\n this.multipartUploadStartOperationsPerSecond = multipartUploadStartOperationsPerSecond;\n }\n\n /**\n * Returns The number of SelectObjectContent operations per second.\n * @return {TimeFloatValuePair[]}\n */\n }, {\n key: \"getSelectObjectContentOperationsPerSecond\",\n value: function getSelectObjectContentOperationsPerSecond() {\n return this.selectObjectContentOperationsPerSecond;\n }\n\n /**\n * Sets The number of SelectObjectContent operations per second.\n * @param {TimeFloatValuePair[]} selectObjectContentOperationsPerSecond The number of SelectObjectContent operations per second.\n */\n }, {\n key: \"setSelectObjectContentOperationsPerSecond\",\n value: function setSelectObjectContentOperationsPerSecond(selectObjectContentOperationsPerSecond) {\n this.selectObjectContentOperationsPerSecond = selectObjectContentOperationsPerSecond;\n }\n\n /**\n * Returns Number of Network File System (NFS) read requests per second on the objects of the Object store.\n * @return {TimeFloatValuePair[]}\n */\n }, {\n key: \"getNfsReadRequestsPerSecond\",\n value: function getNfsReadRequestsPerSecond() {\n return this.nfsReadRequestsPerSecond;\n }\n\n /**\n * Sets Number of Network File System (NFS) read requests per second on the objects of the Object store.\n * @param {TimeFloatValuePair[]} nfsReadRequestsPerSecond Number of Network File System (NFS) read requests per second on the objects of the Object store.\n */\n }, {\n key: \"setNfsReadRequestsPerSecond\",\n value: function setNfsReadRequestsPerSecond(nfsReadRequestsPerSecond) {\n this.nfsReadRequestsPerSecond = nfsReadRequestsPerSecond;\n }\n\n /**\n * Returns Number of Network File System (NFS) write requests per second on the objects of the Object store.\n * @return {TimeFloatValuePair[]}\n */\n }, {\n key: \"getNfsWriteRequestsPerSecond\",\n value: function getNfsWriteRequestsPerSecond() {\n return this.nfsWriteRequestsPerSecond;\n }\n\n /**\n * Sets Number of Network File System (NFS) write requests per second on the objects of the Object store.\n * @param {TimeFloatValuePair[]} nfsWriteRequestsPerSecond Number of Network File System (NFS) write requests per second on the objects of the Object store.\n */\n }, {\n key: \"setNfsWriteRequestsPerSecond\",\n value: function setNfsWriteRequestsPerSecond(nfsWriteRequestsPerSecond) {\n this.nfsWriteRequestsPerSecond = nfsWriteRequestsPerSecond;\n }\n\n /**\n * Returns Throughput of Network File System (NFS) read operations in bytes per second on the objects of the Object store.\n * @return {TimeFloatValuePair[]}\n */\n }, {\n key: \"getNfsReadThroughputBytesPerSecond\",\n value: function getNfsReadThroughputBytesPerSecond() {\n return this.nfsReadThroughputBytesPerSecond;\n }\n\n /**\n * Sets Throughput of Network File System (NFS) read operations in bytes per second on the objects of the Object store.\n * @param {TimeFloatValuePair[]} nfsReadThroughputBytesPerSecond Throughput of Network File System (NFS) read operations in bytes per second on the objects of the Object store.\n */\n }, {\n key: \"setNfsReadThroughputBytesPerSecond\",\n value: function setNfsReadThroughputBytesPerSecond(nfsReadThroughputBytesPerSecond) {\n this.nfsReadThroughputBytesPerSecond = nfsReadThroughputBytesPerSecond;\n }\n\n /**\n * Returns Throughput of Network File System (NFS) write operations in bytes per second on the objects of the Object store.\n * @return {TimeFloatValuePair[]}\n */\n }, {\n key: \"getNfsWriteThroughputBytesPerSecond\",\n value: function getNfsWriteThroughputBytesPerSecond() {\n return this.nfsWriteThroughputBytesPerSecond;\n }\n\n /**\n * Sets Throughput of Network File System (NFS) write operations in bytes per second on the objects of the Object store.\n * @param {TimeFloatValuePair[]} nfsWriteThroughputBytesPerSecond Throughput of Network File System (NFS) write operations in bytes per second on the objects of the Object store.\n */\n }, {\n key: \"setNfsWriteThroughputBytesPerSecond\",\n value: function setNfsWriteThroughputBytesPerSecond(nfsWriteThroughputBytesPerSecond) {\n this.nfsWriteThroughputBytesPerSecond = nfsWriteThroughputBytesPerSecond;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getObjectCount() !== 'undefined' && this.getObjectCount() !== null ? {\n 'objectCount': this.getObjectCount().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getBucketCount() !== 'undefined' && this.getBucketCount() !== null ? {\n 'bucketCount': this.getBucketCount().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getStorageUsageBytes() !== 'undefined' && this.getStorageUsageBytes() !== null ? {\n 'storageUsageBytes': this.getStorageUsageBytes().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getInboundBytesPerSecond() !== 'undefined' && this.getInboundBytesPerSecond() !== null ? {\n 'inboundBytesPerSecond': this.getInboundBytesPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getOutboundBytesPerSecond() !== 'undefined' && this.getOutboundBytesPerSecond() !== null ? {\n 'outboundBytesPerSecond': this.getOutboundBytesPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getGetRequestThroughputBytesPerSecond() !== 'undefined' && this.getGetRequestThroughputBytesPerSecond() !== null ? {\n 'getRequestThroughputBytesPerSecond': this.getGetRequestThroughputBytesPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getPutRequestThroughputBytesPerSecond() !== 'undefined' && this.getPutRequestThroughputBytesPerSecond() !== null ? {\n 'putRequestThroughputBytesPerSecond': this.getPutRequestThroughputBytesPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getPostRequestsPerSecond() !== 'undefined' && this.getPostRequestsPerSecond() !== null ? {\n 'postRequestsPerSecond': this.getPostRequestsPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getHeadRequestsPerSecond() !== 'undefined' && this.getHeadRequestsPerSecond() !== null ? {\n 'headRequestsPerSecond': this.getHeadRequestsPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getGetRequestsPerSecond() !== 'undefined' && this.getGetRequestsPerSecond() !== null ? {\n 'getRequestsPerSecond': this.getGetRequestsPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getPutRequestsPerSecond() !== 'undefined' && this.getPutRequestsPerSecond() !== null ? {\n 'putRequestsPerSecond': this.getPutRequestsPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getDeleteRequestsPerSecond() !== 'undefined' && this.getDeleteRequestsPerSecond() !== null ? {\n 'deleteRequestsPerSecond': this.getDeleteRequestsPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getObjectOperationsPerSecond() !== 'undefined' && this.getObjectOperationsPerSecond() !== null ? {\n 'objectOperationsPerSecond': this.getObjectOperationsPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getGetObjectTtfbMsecs() !== 'undefined' && this.getGetObjectTtfbMsecs() !== null ? {\n 'getObjectTtfbMsecs': this.getGetObjectTtfbMsecs().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getGetBucketOperationsPerSecond() !== 'undefined' && this.getGetBucketOperationsPerSecond() !== null ? {\n 'getBucketOperationsPerSecond': this.getGetBucketOperationsPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getListMultipartUploadsOperationsPerSecond() !== 'undefined' && this.getListMultipartUploadsOperationsPerSecond() !== null ? {\n 'listMultipartUploadsOperationsPerSecond': this.getListMultipartUploadsOperationsPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getMultipartUploadStartOperationsPerSecond() !== 'undefined' && this.getMultipartUploadStartOperationsPerSecond() !== null ? {\n 'multipartUploadStartOperationsPerSecond': this.getMultipartUploadStartOperationsPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getSelectObjectContentOperationsPerSecond() !== 'undefined' && this.getSelectObjectContentOperationsPerSecond() !== null ? {\n 'selectObjectContentOperationsPerSecond': this.getSelectObjectContentOperationsPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getNfsReadRequestsPerSecond() !== 'undefined' && this.getNfsReadRequestsPerSecond() !== null ? {\n 'nfsReadRequestsPerSecond': this.getNfsReadRequestsPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getNfsWriteRequestsPerSecond() !== 'undefined' && this.getNfsWriteRequestsPerSecond() !== null ? {\n 'nfsWriteRequestsPerSecond': this.getNfsWriteRequestsPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getNfsReadThroughputBytesPerSecond() !== 'undefined' && this.getNfsReadThroughputBytesPerSecond() !== null ? {\n 'nfsReadThroughputBytesPerSecond': this.getNfsReadThroughputBytesPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getNfsWriteThroughputBytesPerSecond() !== 'undefined' && this.getNfsWriteThroughputBytesPerSecond() !== null ? {\n 'nfsWriteThroughputBytesPerSecond': this.getNfsWriteThroughputBytesPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getObjectCount() !== 'undefined' && this.getObjectCount() !== null ? {\n 'objectCount': this.getObjectCount().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getBucketCount() !== 'undefined' && this.getBucketCount() !== null ? {\n 'bucketCount': this.getBucketCount().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getStorageUsageBytes() !== 'undefined' && this.getStorageUsageBytes() !== null ? {\n 'storageUsageBytes': this.getStorageUsageBytes().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getInboundBytesPerSecond() !== 'undefined' && this.getInboundBytesPerSecond() !== null ? {\n 'inboundBytesPerSecond': this.getInboundBytesPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getOutboundBytesPerSecond() !== 'undefined' && this.getOutboundBytesPerSecond() !== null ? {\n 'outboundBytesPerSecond': this.getOutboundBytesPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getGetRequestThroughputBytesPerSecond() !== 'undefined' && this.getGetRequestThroughputBytesPerSecond() !== null ? {\n 'getRequestThroughputBytesPerSecond': this.getGetRequestThroughputBytesPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getPutRequestThroughputBytesPerSecond() !== 'undefined' && this.getPutRequestThroughputBytesPerSecond() !== null ? {\n 'putRequestThroughputBytesPerSecond': this.getPutRequestThroughputBytesPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getPostRequestsPerSecond() !== 'undefined' && this.getPostRequestsPerSecond() !== null ? {\n 'postRequestsPerSecond': this.getPostRequestsPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getHeadRequestsPerSecond() !== 'undefined' && this.getHeadRequestsPerSecond() !== null ? {\n 'headRequestsPerSecond': this.getHeadRequestsPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getGetRequestsPerSecond() !== 'undefined' && this.getGetRequestsPerSecond() !== null ? {\n 'getRequestsPerSecond': this.getGetRequestsPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getPutRequestsPerSecond() !== 'undefined' && this.getPutRequestsPerSecond() !== null ? {\n 'putRequestsPerSecond': this.getPutRequestsPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getDeleteRequestsPerSecond() !== 'undefined' && this.getDeleteRequestsPerSecond() !== null ? {\n 'deleteRequestsPerSecond': this.getDeleteRequestsPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getObjectOperationsPerSecond() !== 'undefined' && this.getObjectOperationsPerSecond() !== null ? {\n 'objectOperationsPerSecond': this.getObjectOperationsPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getGetObjectTtfbMsecs() !== 'undefined' && this.getGetObjectTtfbMsecs() !== null ? {\n 'getObjectTtfbMsecs': this.getGetObjectTtfbMsecs().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getGetBucketOperationsPerSecond() !== 'undefined' && this.getGetBucketOperationsPerSecond() !== null ? {\n 'getBucketOperationsPerSecond': this.getGetBucketOperationsPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getListMultipartUploadsOperationsPerSecond() !== 'undefined' && this.getListMultipartUploadsOperationsPerSecond() !== null ? {\n 'listMultipartUploadsOperationsPerSecond': this.getListMultipartUploadsOperationsPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getMultipartUploadStartOperationsPerSecond() !== 'undefined' && this.getMultipartUploadStartOperationsPerSecond() !== null ? {\n 'multipartUploadStartOperationsPerSecond': this.getMultipartUploadStartOperationsPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getSelectObjectContentOperationsPerSecond() !== 'undefined' && this.getSelectObjectContentOperationsPerSecond() !== null ? {\n 'selectObjectContentOperationsPerSecond': this.getSelectObjectContentOperationsPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getNfsReadRequestsPerSecond() !== 'undefined' && this.getNfsReadRequestsPerSecond() !== null ? {\n 'nfsReadRequestsPerSecond': this.getNfsReadRequestsPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getNfsWriteRequestsPerSecond() !== 'undefined' && this.getNfsWriteRequestsPerSecond() !== null ? {\n 'nfsWriteRequestsPerSecond': this.getNfsWriteRequestsPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getNfsReadThroughputBytesPerSecond() !== 'undefined' && this.getNfsReadThroughputBytesPerSecond() !== null ? {\n 'nfsReadThroughputBytesPerSecond': this.getNfsReadThroughputBytesPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), typeof this.getNfsWriteThroughputBytesPerSecond() !== 'undefined' && this.getNfsWriteThroughputBytesPerSecond() !== null ? {\n 'nfsWriteThroughputBytesPerSecond': this.getNfsWriteThroughputBytesPerSecond().map(function (item) {\n return item.toJson(false);\n })\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this2 = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_5__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this2.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"objectCount\") {\n if (typeof this.objectCount === 'undefined' || this.objectCount === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"objectCount\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.objectCount, 150)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"objectCount\", \"does not satisfy required maxItems constraint: 150\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinItems(this.objectCount, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"objectCount\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"bucketCount\") {\n if (typeof this.bucketCount === 'undefined' || this.bucketCount === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"bucketCount\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.bucketCount, 150)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"bucketCount\", \"does not satisfy required maxItems constraint: 150\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinItems(this.bucketCount, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"bucketCount\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"storageUsageBytes\") {\n if (typeof this.storageUsageBytes === 'undefined' || this.storageUsageBytes === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"storageUsageBytes\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.storageUsageBytes, 150)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"storageUsageBytes\", \"does not satisfy required maxItems constraint: 150\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinItems(this.storageUsageBytes, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"storageUsageBytes\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"inboundBytesPerSecond\") {\n if (typeof this.inboundBytesPerSecond === 'undefined' || this.inboundBytesPerSecond === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"inboundBytesPerSecond\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.inboundBytesPerSecond, 150)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"inboundBytesPerSecond\", \"does not satisfy required maxItems constraint: 150\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinItems(this.inboundBytesPerSecond, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"inboundBytesPerSecond\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"outboundBytesPerSecond\") {\n if (typeof this.outboundBytesPerSecond === 'undefined' || this.outboundBytesPerSecond === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"outboundBytesPerSecond\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.outboundBytesPerSecond, 150)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"outboundBytesPerSecond\", \"does not satisfy required maxItems constraint: 150\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinItems(this.outboundBytesPerSecond, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"outboundBytesPerSecond\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"getRequestThroughputBytesPerSecond\") {\n if (typeof this.getRequestThroughputBytesPerSecond === 'undefined' || this.getRequestThroughputBytesPerSecond === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"getRequestThroughputBytesPerSecond\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.getRequestThroughputBytesPerSecond, 150)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"getRequestThroughputBytesPerSecond\", \"does not satisfy required maxItems constraint: 150\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinItems(this.getRequestThroughputBytesPerSecond, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"getRequestThroughputBytesPerSecond\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"putRequestThroughputBytesPerSecond\") {\n if (typeof this.putRequestThroughputBytesPerSecond === 'undefined' || this.putRequestThroughputBytesPerSecond === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"putRequestThroughputBytesPerSecond\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.putRequestThroughputBytesPerSecond, 150)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"putRequestThroughputBytesPerSecond\", \"does not satisfy required maxItems constraint: 150\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinItems(this.putRequestThroughputBytesPerSecond, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"putRequestThroughputBytesPerSecond\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"postRequestsPerSecond\") {\n if (typeof this.postRequestsPerSecond === 'undefined' || this.postRequestsPerSecond === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"postRequestsPerSecond\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.postRequestsPerSecond, 150)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"postRequestsPerSecond\", \"does not satisfy required maxItems constraint: 150\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinItems(this.postRequestsPerSecond, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"postRequestsPerSecond\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"headRequestsPerSecond\") {\n if (typeof this.headRequestsPerSecond === 'undefined' || this.headRequestsPerSecond === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"headRequestsPerSecond\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.headRequestsPerSecond, 150)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"headRequestsPerSecond\", \"does not satisfy required maxItems constraint: 150\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinItems(this.headRequestsPerSecond, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"headRequestsPerSecond\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"getRequestsPerSecond\") {\n if (typeof this.getRequestsPerSecond === 'undefined' || this.getRequestsPerSecond === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"getRequestsPerSecond\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.getRequestsPerSecond, 150)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"getRequestsPerSecond\", \"does not satisfy required maxItems constraint: 150\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinItems(this.getRequestsPerSecond, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"getRequestsPerSecond\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"putRequestsPerSecond\") {\n if (typeof this.putRequestsPerSecond === 'undefined' || this.putRequestsPerSecond === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"putRequestsPerSecond\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.putRequestsPerSecond, 150)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"putRequestsPerSecond\", \"does not satisfy required maxItems constraint: 150\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinItems(this.putRequestsPerSecond, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"putRequestsPerSecond\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"deleteRequestsPerSecond\") {\n if (typeof this.deleteRequestsPerSecond === 'undefined' || this.deleteRequestsPerSecond === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"deleteRequestsPerSecond\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.deleteRequestsPerSecond, 150)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"deleteRequestsPerSecond\", \"does not satisfy required maxItems constraint: 150\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinItems(this.deleteRequestsPerSecond, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"deleteRequestsPerSecond\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"objectOperationsPerSecond\") {\n if (typeof this.objectOperationsPerSecond === 'undefined' || this.objectOperationsPerSecond === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"objectOperationsPerSecond\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.objectOperationsPerSecond, 150)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"objectOperationsPerSecond\", \"does not satisfy required maxItems constraint: 150\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinItems(this.objectOperationsPerSecond, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"objectOperationsPerSecond\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"getObjectTtfbMsecs\") {\n if (typeof this.getObjectTtfbMsecs === 'undefined' || this.getObjectTtfbMsecs === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"getObjectTtfbMsecs\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.getObjectTtfbMsecs, 150)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"getObjectTtfbMsecs\", \"does not satisfy required maxItems constraint: 150\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinItems(this.getObjectTtfbMsecs, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"getObjectTtfbMsecs\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"getBucketOperationsPerSecond\") {\n if (typeof this.getBucketOperationsPerSecond === 'undefined' || this.getBucketOperationsPerSecond === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"getBucketOperationsPerSecond\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.getBucketOperationsPerSecond, 150)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"getBucketOperationsPerSecond\", \"does not satisfy required maxItems constraint: 150\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinItems(this.getBucketOperationsPerSecond, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"getBucketOperationsPerSecond\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"listMultipartUploadsOperationsPerSecond\") {\n if (typeof this.listMultipartUploadsOperationsPerSecond === 'undefined' || this.listMultipartUploadsOperationsPerSecond === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"listMultipartUploadsOperationsPerSecond\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.listMultipartUploadsOperationsPerSecond, 150)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"listMultipartUploadsOperationsPerSecond\", \"does not satisfy required maxItems constraint: 150\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinItems(this.listMultipartUploadsOperationsPerSecond, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"listMultipartUploadsOperationsPerSecond\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"multipartUploadStartOperationsPerSecond\") {\n if (typeof this.multipartUploadStartOperationsPerSecond === 'undefined' || this.multipartUploadStartOperationsPerSecond === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"multipartUploadStartOperationsPerSecond\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.multipartUploadStartOperationsPerSecond, 150)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"multipartUploadStartOperationsPerSecond\", \"does not satisfy required maxItems constraint: 150\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinItems(this.multipartUploadStartOperationsPerSecond, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"multipartUploadStartOperationsPerSecond\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"selectObjectContentOperationsPerSecond\") {\n if (typeof this.selectObjectContentOperationsPerSecond === 'undefined' || this.selectObjectContentOperationsPerSecond === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"selectObjectContentOperationsPerSecond\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.selectObjectContentOperationsPerSecond, 150)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"selectObjectContentOperationsPerSecond\", \"does not satisfy required maxItems constraint: 150\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinItems(this.selectObjectContentOperationsPerSecond, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"selectObjectContentOperationsPerSecond\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"nfsReadRequestsPerSecond\") {\n if (typeof this.nfsReadRequestsPerSecond === 'undefined' || this.nfsReadRequestsPerSecond === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"nfsReadRequestsPerSecond\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.nfsReadRequestsPerSecond, 150)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"nfsReadRequestsPerSecond\", \"does not satisfy required maxItems constraint: 150\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinItems(this.nfsReadRequestsPerSecond, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"nfsReadRequestsPerSecond\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"nfsWriteRequestsPerSecond\") {\n if (typeof this.nfsWriteRequestsPerSecond === 'undefined' || this.nfsWriteRequestsPerSecond === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"nfsWriteRequestsPerSecond\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.nfsWriteRequestsPerSecond, 150)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"nfsWriteRequestsPerSecond\", \"does not satisfy required maxItems constraint: 150\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinItems(this.nfsWriteRequestsPerSecond, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"nfsWriteRequestsPerSecond\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"nfsReadThroughputBytesPerSecond\") {\n if (typeof this.nfsReadThroughputBytesPerSecond === 'undefined' || this.nfsReadThroughputBytesPerSecond === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"nfsReadThroughputBytesPerSecond\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.nfsReadThroughputBytesPerSecond, 150)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"nfsReadThroughputBytesPerSecond\", \"does not satisfy required maxItems constraint: 150\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinItems(this.nfsReadThroughputBytesPerSecond, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"nfsReadThroughputBytesPerSecond\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n if (property === \"nfsWriteThroughputBytesPerSecond\") {\n if (typeof this.nfsWriteThroughputBytesPerSecond === 'undefined' || this.nfsWriteThroughputBytesPerSecond === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"nfsWriteThroughputBytesPerSecond\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMaxItems(this.nfsWriteThroughputBytesPerSecond, 150)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"nfsWriteThroughputBytesPerSecond\", \"does not satisfy required maxItems constraint: 150\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_6__[\"default\"].validateMinItems(this.nfsWriteThroughputBytesPerSecond, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](\"nfsWriteThroughputBytesPerSecond\", \"does not satisfy required minItems constraint: 1\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_7__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ObjectstoreStats();\n _common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data, obj, true);\n if (data.hasOwnProperty('objectCount') && data.objectCount !== null && data.objectCount !== undefined) {\n itemArr = [];\n items = data.objectCount;\n for (i = 0; i < items.length; i++) {\n item = _common_v1_stats_TimeIntValuePair__WEBPACK_IMPORTED_MODULE_3__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setObjectCount(itemArr);\n }\n if (data.hasOwnProperty('bucketCount') && data.bucketCount !== null && data.bucketCount !== undefined) {\n itemArr = [];\n items = data.bucketCount;\n for (i = 0; i < items.length; i++) {\n item = _common_v1_stats_TimeIntValuePair__WEBPACK_IMPORTED_MODULE_3__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setBucketCount(itemArr);\n }\n if (data.hasOwnProperty('storageUsageBytes') && data.storageUsageBytes !== null && data.storageUsageBytes !== undefined) {\n itemArr = [];\n items = data.storageUsageBytes;\n for (i = 0; i < items.length; i++) {\n item = _common_v1_stats_TimeIntValuePair__WEBPACK_IMPORTED_MODULE_3__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setStorageUsageBytes(itemArr);\n }\n if (data.hasOwnProperty('inboundBytesPerSecond') && data.inboundBytesPerSecond !== null && data.inboundBytesPerSecond !== undefined) {\n itemArr = [];\n items = data.inboundBytesPerSecond;\n for (i = 0; i < items.length; i++) {\n item = _TimeFloatValuePair__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setInboundBytesPerSecond(itemArr);\n }\n if (data.hasOwnProperty('outboundBytesPerSecond') && data.outboundBytesPerSecond !== null && data.outboundBytesPerSecond !== undefined) {\n itemArr = [];\n items = data.outboundBytesPerSecond;\n for (i = 0; i < items.length; i++) {\n item = _TimeFloatValuePair__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setOutboundBytesPerSecond(itemArr);\n }\n if (data.hasOwnProperty('getRequestThroughputBytesPerSecond') && data.getRequestThroughputBytesPerSecond !== null && data.getRequestThroughputBytesPerSecond !== undefined) {\n itemArr = [];\n items = data.getRequestThroughputBytesPerSecond;\n for (i = 0; i < items.length; i++) {\n item = _TimeFloatValuePair__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setGetRequestThroughputBytesPerSecond(itemArr);\n }\n if (data.hasOwnProperty('putRequestThroughputBytesPerSecond') && data.putRequestThroughputBytesPerSecond !== null && data.putRequestThroughputBytesPerSecond !== undefined) {\n itemArr = [];\n items = data.putRequestThroughputBytesPerSecond;\n for (i = 0; i < items.length; i++) {\n item = _TimeFloatValuePair__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setPutRequestThroughputBytesPerSecond(itemArr);\n }\n if (data.hasOwnProperty('postRequestsPerSecond') && data.postRequestsPerSecond !== null && data.postRequestsPerSecond !== undefined) {\n itemArr = [];\n items = data.postRequestsPerSecond;\n for (i = 0; i < items.length; i++) {\n item = _TimeFloatValuePair__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setPostRequestsPerSecond(itemArr);\n }\n if (data.hasOwnProperty('headRequestsPerSecond') && data.headRequestsPerSecond !== null && data.headRequestsPerSecond !== undefined) {\n itemArr = [];\n items = data.headRequestsPerSecond;\n for (i = 0; i < items.length; i++) {\n item = _TimeFloatValuePair__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setHeadRequestsPerSecond(itemArr);\n }\n if (data.hasOwnProperty('getRequestsPerSecond') && data.getRequestsPerSecond !== null && data.getRequestsPerSecond !== undefined) {\n itemArr = [];\n items = data.getRequestsPerSecond;\n for (i = 0; i < items.length; i++) {\n item = _TimeFloatValuePair__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setGetRequestsPerSecond(itemArr);\n }\n if (data.hasOwnProperty('putRequestsPerSecond') && data.putRequestsPerSecond !== null && data.putRequestsPerSecond !== undefined) {\n itemArr = [];\n items = data.putRequestsPerSecond;\n for (i = 0; i < items.length; i++) {\n item = _TimeFloatValuePair__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setPutRequestsPerSecond(itemArr);\n }\n if (data.hasOwnProperty('deleteRequestsPerSecond') && data.deleteRequestsPerSecond !== null && data.deleteRequestsPerSecond !== undefined) {\n itemArr = [];\n items = data.deleteRequestsPerSecond;\n for (i = 0; i < items.length; i++) {\n item = _TimeFloatValuePair__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setDeleteRequestsPerSecond(itemArr);\n }\n if (data.hasOwnProperty('objectOperationsPerSecond') && data.objectOperationsPerSecond !== null && data.objectOperationsPerSecond !== undefined) {\n itemArr = [];\n items = data.objectOperationsPerSecond;\n for (i = 0; i < items.length; i++) {\n item = _TimeFloatValuePair__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setObjectOperationsPerSecond(itemArr);\n }\n if (data.hasOwnProperty('getObjectTtfbMsecs') && data.getObjectTtfbMsecs !== null && data.getObjectTtfbMsecs !== undefined) {\n itemArr = [];\n items = data.getObjectTtfbMsecs;\n for (i = 0; i < items.length; i++) {\n item = _TimeFloatValuePair__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setGetObjectTtfbMsecs(itemArr);\n }\n if (data.hasOwnProperty('getBucketOperationsPerSecond') && data.getBucketOperationsPerSecond !== null && data.getBucketOperationsPerSecond !== undefined) {\n itemArr = [];\n items = data.getBucketOperationsPerSecond;\n for (i = 0; i < items.length; i++) {\n item = _TimeFloatValuePair__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setGetBucketOperationsPerSecond(itemArr);\n }\n if (data.hasOwnProperty('listMultipartUploadsOperationsPerSecond') && data.listMultipartUploadsOperationsPerSecond !== null && data.listMultipartUploadsOperationsPerSecond !== undefined) {\n itemArr = [];\n items = data.listMultipartUploadsOperationsPerSecond;\n for (i = 0; i < items.length; i++) {\n item = _TimeFloatValuePair__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setListMultipartUploadsOperationsPerSecond(itemArr);\n }\n if (data.hasOwnProperty('multipartUploadStartOperationsPerSecond') && data.multipartUploadStartOperationsPerSecond !== null && data.multipartUploadStartOperationsPerSecond !== undefined) {\n itemArr = [];\n items = data.multipartUploadStartOperationsPerSecond;\n for (i = 0; i < items.length; i++) {\n item = _TimeFloatValuePair__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setMultipartUploadStartOperationsPerSecond(itemArr);\n }\n if (data.hasOwnProperty('selectObjectContentOperationsPerSecond') && data.selectObjectContentOperationsPerSecond !== null && data.selectObjectContentOperationsPerSecond !== undefined) {\n itemArr = [];\n items = data.selectObjectContentOperationsPerSecond;\n for (i = 0; i < items.length; i++) {\n item = _TimeFloatValuePair__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setSelectObjectContentOperationsPerSecond(itemArr);\n }\n if (data.hasOwnProperty('nfsReadRequestsPerSecond') && data.nfsReadRequestsPerSecond !== null && data.nfsReadRequestsPerSecond !== undefined) {\n itemArr = [];\n items = data.nfsReadRequestsPerSecond;\n for (i = 0; i < items.length; i++) {\n item = _TimeFloatValuePair__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setNfsReadRequestsPerSecond(itemArr);\n }\n if (data.hasOwnProperty('nfsWriteRequestsPerSecond') && data.nfsWriteRequestsPerSecond !== null && data.nfsWriteRequestsPerSecond !== undefined) {\n itemArr = [];\n items = data.nfsWriteRequestsPerSecond;\n for (i = 0; i < items.length; i++) {\n item = _TimeFloatValuePair__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setNfsWriteRequestsPerSecond(itemArr);\n }\n if (data.hasOwnProperty('nfsReadThroughputBytesPerSecond') && data.nfsReadThroughputBytesPerSecond !== null && data.nfsReadThroughputBytesPerSecond !== undefined) {\n itemArr = [];\n items = data.nfsReadThroughputBytesPerSecond;\n for (i = 0; i < items.length; i++) {\n item = _TimeFloatValuePair__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setNfsReadThroughputBytesPerSecond(itemArr);\n }\n if (data.hasOwnProperty('nfsWriteThroughputBytesPerSecond') && data.nfsWriteThroughputBytesPerSecond !== null && data.nfsWriteThroughputBytesPerSecond !== undefined) {\n itemArr = [];\n items = data.nfsWriteThroughputBytesPerSecond;\n for (i = 0; i < items.length; i++) {\n item = _TimeFloatValuePair__WEBPACK_IMPORTED_MODULE_4__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setNfsWriteThroughputBytesPerSecond(itemArr);\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}(_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_2__[\"default\"]);\n/**\n * Number of Objects in the Object store. This stat is updated every 10 minutes. It includes the count of the incomplete multipart uploads. \n * @memberof ObjectstoreStats\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nObjectstoreStats.prototype.objectCount = undefined;\n\n/**\n * Number of Buckets in the Object store. This stat is updated every 10 minutes. \n * @memberof ObjectstoreStats\n */\nObjectstoreStats.prototype.bucketCount = undefined;\n\n/**\n * Total storage in bytes used by the Objects and Buckets. This stat is updated every 10 minutes. It includes the storage used by the incomplete multipart uploads. \n * @memberof ObjectstoreStats\n */\nObjectstoreStats.prototype.storageUsageBytes = undefined;\n\n/**\n * Number of bytes written per second to the Object store from operations on the Objects and Buckets.\n * @memberof ObjectstoreStats\n */\nObjectstoreStats.prototype.inboundBytesPerSecond = undefined;\n\n/**\n * Number of bytes read per second from the Object store from operations on the Objects and Buckets.\n * @memberof ObjectstoreStats\n */\nObjectstoreStats.prototype.outboundBytesPerSecond = undefined;\n\n/**\n * Throughput of HTTP GET requests in bytes per second.\n * @memberof ObjectstoreStats\n */\nObjectstoreStats.prototype.getRequestThroughputBytesPerSecond = undefined;\n\n/**\n * Throughput of HTTP PUT requests in bytes per second.\n * @memberof ObjectstoreStats\n */\nObjectstoreStats.prototype.putRequestThroughputBytesPerSecond = undefined;\n\n/**\n * Number of HTTP POST requests per second on the Objects and Buckets of the Object store.\n * @memberof ObjectstoreStats\n */\nObjectstoreStats.prototype.postRequestsPerSecond = undefined;\n\n/**\n * Number of HTTP HEAD requests per second on the Objects and Buckets of the Object store.\n * @memberof ObjectstoreStats\n */\nObjectstoreStats.prototype.headRequestsPerSecond = undefined;\n\n/**\n * Number of HTTP GET requests per second on the Objects and Buckets of the Object store.\n * @memberof ObjectstoreStats\n */\nObjectstoreStats.prototype.getRequestsPerSecond = undefined;\n\n/**\n * Number of HTTP PUT requests per second on the Objects and Buckets of the Object store.\n * @memberof ObjectstoreStats\n */\nObjectstoreStats.prototype.putRequestsPerSecond = undefined;\n\n/**\n * Number of HTTP DELETE requests per second on the Objects and Buckets of the Object store.\n * @memberof ObjectstoreStats\n */\nObjectstoreStats.prototype.deleteRequestsPerSecond = undefined;\n\n/**\n * Number of operations per second on the objects of the Object store.\n * @memberof ObjectstoreStats\n */\nObjectstoreStats.prototype.objectOperationsPerSecond = undefined;\n\n/**\n * Time to the first byte in milliseconds for Get Object requests.\n * @memberof ObjectstoreStats\n */\nObjectstoreStats.prototype.getObjectTtfbMsecs = undefined;\n\n/**\n * Number of GetBucket operations per second.\n * @memberof ObjectstoreStats\n */\nObjectstoreStats.prototype.getBucketOperationsPerSecond = undefined;\n\n/**\n * The number of ListMultipartUploads operations per second.\n * @memberof ObjectstoreStats\n */\nObjectstoreStats.prototype.listMultipartUploadsOperationsPerSecond = undefined;\n\n/**\n * The number of CreateMultipartUpload operations per second.\n * @memberof ObjectstoreStats\n */\nObjectstoreStats.prototype.multipartUploadStartOperationsPerSecond = undefined;\n\n/**\n * The number of SelectObjectContent operations per second.\n * @memberof ObjectstoreStats\n */\nObjectstoreStats.prototype.selectObjectContentOperationsPerSecond = undefined;\n\n/**\n * Number of Network File System (NFS) read requests per second on the objects of the Object store.\n * @memberof ObjectstoreStats\n */\nObjectstoreStats.prototype.nfsReadRequestsPerSecond = undefined;\n\n/**\n * Number of Network File System (NFS) write requests per second on the objects of the Object store.\n * @memberof ObjectstoreStats\n */\nObjectstoreStats.prototype.nfsWriteRequestsPerSecond = undefined;\n\n/**\n * Throughput of Network File System (NFS) read operations in bytes per second on the objects of the Object store.\n * @memberof ObjectstoreStats\n */\nObjectstoreStats.prototype.nfsReadThroughputBytesPerSecond = undefined;\n\n/**\n * Throughput of Network File System (NFS) write operations in bytes per second on the objects of the Object store.\n * @memberof ObjectstoreStats\n */\nObjectstoreStats.prototype.nfsWriteThroughputBytesPerSecond = undefined;\n\n/**\n * A globally unique identifier of an instance that is suitable for external consumption. \n * @memberof ObjectstoreStats\n */\n_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_2__[\"default\"].prototype.extId = undefined;\n/**\n * A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource. \n * @memberof ObjectstoreStats\n */\n_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_2__[\"default\"].prototype.links = undefined;\n/**\n * A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server). \n * @memberof ObjectstoreStats\n */\n_common_v1_config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].prototype.tenantId = undefined;\n// Implement OneOfobjects.v4.stats.GetObjectstoreStatsApiResponsedata interface:\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/stats/ObjectstoreStats.js?");
662
+
663
+ /***/ }),
664
+
665
+ /***/ "./target/generated-sources/swagger/src/models/objects/v4/stats/TimeFloatValuePair.js":
666
+ /*!********************************************************************************************!*\
667
+ !*** ./target/generated-sources/swagger/src/models/objects/v4/stats/TimeFloatValuePair.js ***!
668
+ \********************************************************************************************/
669
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
670
+
671
+ "use strict";
672
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TimeFloatValuePair)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\nfunction _assertClassBrand(e, t, n) { if (\"function\" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError(\"Private element is not present on this object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The TimeFloatValuePair model module.\n * @module Ntnx/TimeFloatValuePair\n * @version 4.0.1\n * @class TimeFloatValuePair\n */\nvar _TimeFloatValuePair_brand = /*#__PURE__*/new WeakSet();\nvar TimeFloatValuePair = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>TimeFloatValuePair</code>.\n * A time value pair representing a stat associated with a given entity at a given point of date and time represented in extended ISO-8601 format.\n * @alias module:Ntnx/TimeFloatValuePair\n */\n function TimeFloatValuePair() {\n _classCallCheck(this, TimeFloatValuePair);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _TimeFloatValuePair_brand);\n this.$objectType = \"objects.v4.stats.TimeFloatValuePair\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v4.r0\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>TimeFloatValuePair</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/TimeFloatValuePair} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/TimeFloatValuePair} The populated <code>TimeFloatValuePair</code> instance.\n */\n return _createClass(TimeFloatValuePair, [{\n key: \"getValue\",\n value:\n /**\n * Returns Value of the stat at the recorded date and time in extended ISO-8601 format.\n * @return {Number}\n */\n function getValue() {\n return this.value;\n }\n\n /**\n * Sets Value of the stat at the recorded date and time in extended ISO-8601 format.\n * @param {Number} value Value of the stat at the recorded date and time in extended ISO-8601 format.\n */\n }, {\n key: \"setValue\",\n value: function setValue(value) {\n this.value = value;\n }\n\n /**\n * Returns The date and time at which the stat was recorded.The value should be in extended ISO-8601 format. For example, start time of 2022-04-23T01:23:45.678+09:00 would consider all stats starting at 1:23:45.678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html\n * @return {Date}\n */\n }, {\n key: \"getTimestamp\",\n value: function getTimestamp() {\n return this.timestamp;\n }\n\n /**\n * Sets The date and time at which the stat was recorded.The value should be in extended ISO-8601 format. For example, start time of 2022-04-23T01:23:45.678+09:00 would consider all stats starting at 1:23:45.678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html\n * @param {Date} timestamp The date and time at which the stat was recorded.The value should be in extended ISO-8601 format. For example, start time of 2022-04-23T01:23:45.678+09:00 would consider all stats starting at 1:23:45.678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html\n */\n }, {\n key: \"setTimestamp\",\n value: function setTimestamp(timestamp) {\n this.timestamp = timestamp;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}), typeof this.getTimestamp() !== 'undefined' && this.getTimestamp() !== null ? {\n 'timestamp': _assertClassBrand(_TimeFloatValuePair_brand, this, _handleDateType).call(this, this.getTimestamp(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}), typeof this.getTimestamp() !== 'undefined' && this.getTimestamp() !== null ? {\n 'timestamp': _assertClassBrand(_TimeFloatValuePair_brand, this, _handleDateType).call(this, this.getTimestamp(), false)\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"value\") {\n if (typeof this.value === 'undefined' || this.value === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"value\", \"undefined or null\");\n }\n }\n if (property === \"timestamp\") {\n if (typeof this.timestamp === 'undefined' || this.timestamp === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"timestamp\", \"undefined or null\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new TimeFloatValuePair();\n if (data.hasOwnProperty('value') && data.value !== null && data.value !== undefined) {\n obj.setValue(data['value']);\n }\n if (data.hasOwnProperty('timestamp') && data.timestamp !== null && data.timestamp !== undefined) {\n obj.setTimestamp(data['timestamp']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}();\n/**\n * Value of the stat at the recorded date and time in extended ISO-8601 format.\n * @memberof TimeFloatValuePair\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nTimeFloatValuePair.prototype.value = undefined;\n\n/**\n * The date and time at which the stat was recorded.The value should be in extended ISO-8601 format. For example, start time of 2022-04-23T01:23:45.678+09:00 would consider all stats starting at 1:23:45.678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html\n * @memberof TimeFloatValuePair\n */\nTimeFloatValuePair.prototype.timestamp = undefined;\nTimeFloatValuePair.prototype.$reserved = undefined;\nTimeFloatValuePair.prototype.$objectType = undefined;\nTimeFloatValuePair.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/objects/v4/stats/TimeFloatValuePair.js?");
552
673
 
553
674
  /***/ }),
554
675
 
@@ -559,7 +680,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
559
680
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
560
681
 
561
682
  "use strict";
562
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TaskReference)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The TaskReference model module.\n * @module Ntnx/TaskReference\n * @version 4.0.1-alpha-2\n * @class TaskReference\n */\nvar _TaskReference_brand = /*#__PURE__*/new WeakSet();\nvar TaskReference = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>TaskReference</code>.\n * A reference to a task tracking an asynchronous operation. The status of the task can be queried by making a GET request to the task URI provided in the metadata section of the API response.\n * @alias module:Ntnx/TaskReference\n */\n function TaskReference() {\n _classCallCheck(this, TaskReference);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _TaskReference_brand);\n this.$objectType = \"prism.v4.config.TaskReference\";\n this.$reserved = {\n '$fv': \"v4.r0.b1\"\n };\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>TaskReference</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/TaskReference} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/TaskReference} The populated <code>TaskReference</code> instance.\n */\n return _createClass(TaskReference, [{\n key: \"getExtId\",\n value:\n /**\n * Returns A globally unique identifier of a task.\n * @return {}\n */\n function getExtId() {\n return this.extId;\n }\n\n /**\n * Sets A globally unique identifier of a task.\n * @param {} extId A globally unique identifier of a task.\n */\n }, {\n key: \"setExtId\",\n value: function setExtId(extId) {\n this.extId = extId;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread({}, typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread({}, typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"extId\") {\n if (typeof this.extId === 'undefined' || this.extId === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"extId\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].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}/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"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}/\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data, obj) {\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new TaskReference();\n if (data.hasOwnProperty('extId') && data.extId !== null && data.extId !== undefined) {\n obj.setExtId(data['extId']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n if (!Object.keys(obj).includes(property) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n }]);\n}();\n/**\n * A globally unique identifier of a task.\n * @memberof TaskReference\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n\nTaskReference.prototype.extId = undefined;\nTaskReference.prototype.$reserved = undefined;\nTaskReference.prototype.$objectType = undefined;\nTaskReference.prototype.$unknownFields = undefined;\n\n// Implement OneOfobjects.v4.operations.TaskReferenceApiResponsedata interface:\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/prism/v4/config/TaskReference.js?");
683
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ TaskReference)\n/* harmony export */ });\n/* harmony import */ var _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../validation/ValidationScopes */ \"./target/generated-sources/swagger/src/models/validation/ValidationScopes.js\");\n/* harmony import */ var _utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/ValidationUtils */ \"./target/generated-sources/swagger/src/utils/ValidationUtils.js\");\n/* harmony import */ var _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../validation/ValidationError */ \"./target/generated-sources/swagger/src/models/validation/ValidationError.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }\nfunction _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n/**\n * The TaskReference model module.\n * @module Ntnx/TaskReference\n * @version 4.0.1\n * @class TaskReference\n */\nvar _TaskReference_brand = /*#__PURE__*/new WeakSet();\nvar TaskReference = /*#__PURE__*/function () {\n /**\n * Constructs a new <code>TaskReference</code>.\n * A reference to a task tracking an asynchronous operation. The status of the task can be queried by making a GET request to the task URI provided in the metadata section of the API response.\n * @alias module:Ntnx/TaskReference\n */\n function TaskReference() {\n _classCallCheck(this, TaskReference);\n /*\n * toJson method for a map type which supports map with primitive keys and values of object types\n * @param {Object} obj\n * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.\n * Otherwise, just returns the input object.\n */\n _classPrivateMethodInitSpec(this, _TaskReference_brand);\n this.$objectType = \"prism.v4.config.TaskReference\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v4.r0\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>TaskReference</code> from a plain JavaScript object, optionally creating a new instance.\n * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.\n * @param {Object} data The plain JavaScript object bearing properties of interest.\n * @param {module:Ntnx/TaskReference} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/TaskReference} The populated <code>TaskReference</code> instance.\n */\n return _createClass(TaskReference, [{\n key: \"getExtId\",\n value:\n /**\n * Returns A globally unique identifier of a task.\n * @return {string}\n */\n function getExtId() {\n return this.extId;\n }\n\n /**\n * Sets A globally unique identifier of a task.\n * @param {string} extId A globally unique identifier of a task.\n */\n }, {\n key: \"setExtId\",\n value: function setExtId(extId) {\n this.extId = extId;\n }\n }, {\n key: \"get$Reserved\",\n value: function get$Reserved() {\n return this.$reserved;\n }\n }, {\n key: \"get$ObjectType\",\n value: function get$ObjectType() {\n return this.$objectType;\n }\n }, {\n key: \"get$UnknownFields\",\n value: function get$UnknownFields() {\n return this.$unknownFields;\n }\n }, {\n key: \"toJson\",\n value: function toJson(forMutation) {\n if (forMutation === false) {\n return _objectSpread(_objectSpread({}, typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n return _objectSpread(_objectSpread({}, typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}), {}, {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n '$unknownFields': this.get$UnknownFields()\n });\n }\n }, {\n key: \"validate\",\n value: function validate(scope, properties) {\n var _this = this;\n var propList = [];\n if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _validation_ValidationScopes__WEBPACK_IMPORTED_MODULE_0__[\"default\"]) {\n //cases validate() and validate(scope)\n propList = [];\n } else if (arguments.length === 1) {\n //case validate(properties)\n propList = arguments[0];\n scope = null;\n } else {\n //case validate(scope, properties)\n propList = arguments[1];\n }\n var res = [];\n var err = null;\n propList.forEach(function (property) {\n err = _this.validateProperty(property, scope);\n if (err) {\n res.push(err);\n }\n });\n return new Promise(function (resolve, reject) {\n if (res.length !== 0) {\n reject(err);\n } else {\n resolve();\n }\n });\n }\n }, {\n key: \"validateProperty\",\n value: function validateProperty(scope, property) {\n if (property === \"extId\") {\n if (typeof this.extId === 'undefined' || this.extId === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"extId\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_1__[\"default\"].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}/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"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}/\");\n }\n }\n if (property === \"$reserved\") {\n if (typeof this.$reserved === 'undefined' || this.$reserved === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$reserved\", \"undefined or null\");\n }\n }\n if (property === \"$objectType\") {\n if (typeof this.$objectType === 'undefined' || this.$objectType === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$objectType\", \"undefined or null\");\n }\n }\n if (property === \"$unknownFields\") {\n if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"$unknownFields\", \"undefined or null\");\n }\n }\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](property, \"no such property exists\");\n }\n }], [{\n key: \"constructFromObject\",\n value: function constructFromObject(data) {\n var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new TaskReference();\n if (data.hasOwnProperty('extId') && data.extId !== null && data.extId !== undefined) {\n obj.setExtId(data['extId']);\n }\n if (data.hasOwnProperty('$reserved')) {\n obj.$reserved = data['$reserved'];\n }\n if (data.hasOwnProperty('$objectType')) {\n obj.$objectType = data['$objectType'];\n }\n if (data.hasOwnProperty('$unknownFields')) {\n obj.$unknownFields = data['$unknownFields'];\n }\n if (!callFromChild) {\n obj.$unknownFields = _objectSpread({}, data.$unknownFields);\n for (var property in data) {\n // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,\n // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).\n // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.\n // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.\n if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === \"$\" && property.endsWith(\"ItemDiscriminator\"))) {\n obj.$unknownFields[property] = data[property];\n }\n }\n }\n }\n return obj;\n }\n\n /**\n * Converts a given snake_case string to camelCase.\n * @param {string} snakeStr - The input string in snake_case format.\n * @returns {string} - The converted string in camelCase format.\n */\n }, {\n key: \"snakeToCamel\",\n value: function snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, function (match) {\n return match[1].toUpperCase();\n });\n }\n }]);\n}();\n/**\n * A globally unique identifier of a task.\n * @memberof TaskReference\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n k = _ref2[0],\n v = _ref2[1];\n return [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v];\n }));\n } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {\n return [entry[0], typeof entry[1].toJson !== \"undefined\" ? entry[1].toJson(forMutation) : entry[1]];\n }));\n }\n return obj;\n}\n/*\n* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting\n* @param {Object} obj Object to serialize\n* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization\n* @returns {Object|string} Returns serialized date object or original input object\n*/\nfunction _handleDateType(obj, isDateOnly) {\n if (obj instanceof Date && isDateOnly !== undefined) {\n return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();\n }\n return obj;\n}\n\nTaskReference.prototype.extId = undefined;\nTaskReference.prototype.$reserved = undefined;\nTaskReference.prototype.$objectType = undefined;\nTaskReference.prototype.$unknownFields = undefined;\n\n// Implement OneOfobjects.v4.config.CreateCertificateApiResponsedata interface:\n// Implement OneOfobjects.v4.config.CreateObjectstoreApiResponsedata interface:\n// Implement OneOfobjects.v4.config.DeleteObjectstoreApiResponsedata interface:\n// Implement OneOfobjects.v4.config.UpdateObjectstoreApiResponsedata interface:\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/prism/v4/config/TaskReference.js?");
563
684
 
564
685
  /***/ }),
565
686
 
@@ -570,7 +691,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
570
691
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
571
692
 
572
693
  "use strict";
573
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ValidationError)\n/* harmony export */ });\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\nvar ValidationError = /*#__PURE__*/function () {\n function ValidationError(name, message) {\n _classCallCheck(this, ValidationError);\n this.name = name;\n this.message = message;\n }\n return _createClass(ValidationError, [{\n key: \"getName\",\n value: function getName() {\n return this.name;\n }\n }, {\n key: \"setName\",\n value: function setName(name) {\n this.name = name;\n }\n }, {\n key: \"getMessage\",\n value: function getMessage() {\n return this.message;\n }\n }, {\n key: \"setMessage\",\n value: function setMessage(message) {\n this.message = message;\n }\n }, {\n key: \"toJson\",\n value: function toJson() {\n return {\n 'name': this.getName(),\n 'message': this.getMessage()\n };\n }\n }]);\n}();\n\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/validation/ValidationError.js?");
694
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ValidationError)\n/* harmony export */ });\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\nvar ValidationError = /*#__PURE__*/function () {\n function ValidationError(name, message) {\n _classCallCheck(this, ValidationError);\n this.name = name;\n this.message = message;\n }\n return _createClass(ValidationError, [{\n key: \"getName\",\n value: function getName() {\n return this.name;\n }\n }, {\n key: \"setName\",\n value: function setName(name) {\n this.name = name;\n }\n }, {\n key: \"getMessage\",\n value: function getMessage() {\n return this.message;\n }\n }, {\n key: \"setMessage\",\n value: function setMessage(message) {\n this.message = message;\n }\n }, {\n key: \"toJson\",\n value: function toJson() {\n return {\n 'name': this.getName(),\n 'message': this.getMessage()\n };\n }\n }]);\n}();\n\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/validation/ValidationError.js?");
574
695
 
575
696
  /***/ }),
576
697
 
@@ -592,7 +713,27 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
592
713
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
593
714
 
594
715
  "use strict";
595
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ValidationUtils)\n/* harmony export */ });\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1-alpha-2\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE\n *\n * Do not edit the class manually.\n *\n */\nvar ValidationUtils = /*#__PURE__*/function () {\n function ValidationUtils() {\n _classCallCheck(this, ValidationUtils);\n }\n return _createClass(ValidationUtils, null, [{\n key: \"validateMaximum\",\n value: function validateMaximum(value, maximum) {\n return !(maximum === null || value > maximum);\n }\n }, {\n key: \"validateMinimum\",\n value: function validateMinimum(value, minimum) {\n return !(minimum === null || value < minimum);\n }\n }, {\n key: \"validateExclusiveMaximum\",\n value: function validateExclusiveMaximum(value, eMaximum) {\n return !(eMaximum === null || value > eMaximum);\n }\n }, {\n key: \"validateExclusiveMinimum\",\n value: function validateExclusiveMinimum(value, eMinimum) {\n return !(eMinimum === null || value > eMinimum);\n }\n }, {\n key: \"validateMultipleOf\",\n value: function validateMultipleOf(value, multipleOf) {\n return !(multipleOf === null || value % multipleOf === 0);\n }\n }, {\n key: \"validateMaxLength\",\n value: function validateMaxLength(value, maxLength) {\n return !(maxLength === null || value.length > maxLength);\n }\n }, {\n key: \"validateMinLength\",\n value: function validateMinLength(value, minLength) {\n return !(minLength === null || value.length < minLength);\n }\n }, {\n key: \"validatePattern\",\n value: function validatePattern(value, pattern) {\n return !(pattern === null || value.match(pattern) === null);\n }\n }, {\n key: \"validateMaxItems\",\n value: function validateMaxItems(value, maxItems) {\n return !(maxItems === null || value.length > maxItems);\n }\n }, {\n key: \"validateMinItems\",\n value: function validateMinItems(value, minItems) {\n return !(minItems === null || value.length < minItems);\n }\n }, {\n key: \"validateUniqueItems\",\n value: function validateUniqueItems(value, uniqueItems) {\n return !(uniqueItems === null || !uniqueItems || value.length !== new Set(value).size);\n }\n }]);\n}();\n\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/utils/ValidationUtils.js?");
716
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ValidationUtils)\n/* harmony export */ });\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n/*\n * Nutanix Objects Storage Management APIs\n *\n * OpenAPI spec version: 4.0.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE\n *\n * Do not edit the class manually.\n *\n */\nvar ValidationUtils = /*#__PURE__*/function () {\n function ValidationUtils() {\n _classCallCheck(this, ValidationUtils);\n }\n return _createClass(ValidationUtils, null, [{\n key: \"validateMaximum\",\n value: function validateMaximum(value, maximum) {\n return !(maximum === null || value > maximum);\n }\n }, {\n key: \"validateMinimum\",\n value: function validateMinimum(value, minimum) {\n return !(minimum === null || value < minimum);\n }\n }, {\n key: \"validateExclusiveMaximum\",\n value: function validateExclusiveMaximum(value, eMaximum) {\n return !(eMaximum === null || value > eMaximum);\n }\n }, {\n key: \"validateExclusiveMinimum\",\n value: function validateExclusiveMinimum(value, eMinimum) {\n return !(eMinimum === null || value > eMinimum);\n }\n }, {\n key: \"validateMultipleOf\",\n value: function validateMultipleOf(value, multipleOf) {\n return !(multipleOf === null || value % multipleOf === 0);\n }\n }, {\n key: \"validateMaxLength\",\n value: function validateMaxLength(value, maxLength) {\n return !(maxLength === null || value.length > maxLength);\n }\n }, {\n key: \"validateMinLength\",\n value: function validateMinLength(value, minLength) {\n return !(minLength === null || value.length < minLength);\n }\n }, {\n key: \"validatePattern\",\n value: function validatePattern(value, pattern) {\n return !(pattern === null || value.match(pattern) === null);\n }\n }, {\n key: \"validateMaxItems\",\n value: function validateMaxItems(value, maxItems) {\n return !(maxItems === null || value.length > maxItems);\n }\n }, {\n key: \"validateMinItems\",\n value: function validateMinItems(value, minItems) {\n return !(minItems === null || value.length < minItems);\n }\n }, {\n key: \"validateUniqueItems\",\n value: function validateUniqueItems(value, uniqueItems) {\n return !(uniqueItems === null || !uniqueItems || value.length !== new Set(value).size);\n }\n }]);\n}();\n\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/utils/ValidationUtils.js?");
717
+
718
+ /***/ }),
719
+
720
+ /***/ "?41da":
721
+ /*!********************!*\
722
+ !*** fs (ignored) ***!
723
+ \********************/
724
+ /***/ (() => {
725
+
726
+ eval("/* (ignored) */\n\n//# sourceURL=webpack://Ntnx/fs_(ignored)?");
727
+
728
+ /***/ }),
729
+
730
+ /***/ "?aee4":
731
+ /*!***********************!*\
732
+ !*** https (ignored) ***!
733
+ \***********************/
734
+ /***/ (() => {
735
+
736
+ eval("/* (ignored) */\n\n//# sourceURL=webpack://Ntnx/https_(ignored)?");
596
737
 
597
738
  /***/ }),
598
739
 
@@ -616,16 +757,6 @@ eval("/* (ignored) */\n\n//# sourceURL=webpack://Ntnx/fs_(ignored)?");
616
757
 
617
758
  /***/ }),
618
759
 
619
- /***/ "?aee4":
620
- /*!***********************!*\
621
- !*** https (ignored) ***!
622
- \***********************/
623
- /***/ (() => {
624
-
625
- eval("/* (ignored) */\n\n//# sourceURL=webpack://Ntnx/https_(ignored)?");
626
-
627
- /***/ }),
628
-
629
760
  /***/ "?fdee":
630
761
  /*!****************************!*\
631
762
  !*** stream/web (ignored) ***!