@nutanix-scratch/multidomain-js-client 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/LICENSE.txt +202 -0
  2. package/README.md +224 -0
  3. package/dist/Ntnx-Multidomain-js-client-prod.js +1 -0
  4. package/dist/Ntnx-Multidomain-js-client.js +713 -0
  5. package/dist/es/ApiClient.d.ts +194 -0
  6. package/dist/es/ApiClient.js +1449 -0
  7. package/dist/es/Paginable.d.ts +95 -0
  8. package/dist/es/Paginable.js +248 -0
  9. package/dist/es/apis/externalrepositories-endpoints.d.ts +84 -0
  10. package/dist/es/apis/externalrepositories-endpoints.js +267 -0
  11. package/dist/es/index.d.ts +60 -0
  12. package/dist/es/index.js +236 -0
  13. package/dist/es/models/common/v1/config/FQDN.d.ts +47 -0
  14. package/dist/es/models/common/v1/config/FQDN.js +238 -0
  15. package/dist/es/models/common/v1/config/Flag.d.ts +58 -0
  16. package/dist/es/models/common/v1/config/Flag.js +278 -0
  17. package/dist/es/models/common/v1/config/IPAddressOrFQDN.d.ts +70 -0
  18. package/dist/es/models/common/v1/config/IPAddressOrFQDN.js +313 -0
  19. package/dist/es/models/common/v1/config/IPv4Address.d.ts +70 -0
  20. package/dist/es/models/common/v1/config/IPv4Address.js +288 -0
  21. package/dist/es/models/common/v1/config/IPv6Address.d.ts +70 -0
  22. package/dist/es/models/common/v1/config/IPv6Address.js +288 -0
  23. package/dist/es/models/common/v1/config/KVPair.d.ts +65 -0
  24. package/dist/es/models/common/v1/config/KVPair.js +333 -0
  25. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +53 -0
  26. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +236 -0
  27. package/dist/es/models/common/v1/config/Message.d.ts +79 -0
  28. package/dist/es/models/common/v1/config/Message.js +341 -0
  29. package/dist/es/models/common/v1/config/MessageSeverity.d.ts +19 -0
  30. package/dist/es/models/common/v1/config/MessageSeverity.js +89 -0
  31. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +47 -0
  32. package/dist/es/models/common/v1/config/TenantAwareModel.js +235 -0
  33. package/dist/es/models/common/v1/response/ApiLink.d.ts +58 -0
  34. package/dist/es/models/common/v1/response/ApiLink.js +271 -0
  35. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +95 -0
  36. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +419 -0
  37. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +34 -0
  38. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +262 -0
  39. package/dist/es/models/multidomain/v4/config/CreateExternalRepositoryApiResponse.d.ts +58 -0
  40. package/dist/es/models/multidomain/v4/config/CreateExternalRepositoryApiResponse.js +288 -0
  41. package/dist/es/models/multidomain/v4/config/DeleteExternalRepositoryApiResponse.d.ts +58 -0
  42. package/dist/es/models/multidomain/v4/config/DeleteExternalRepositoryApiResponse.js +288 -0
  43. package/dist/es/models/multidomain/v4/config/ExternalRepository.d.ts +59 -0
  44. package/dist/es/models/multidomain/v4/config/ExternalRepository.js +328 -0
  45. package/dist/es/models/multidomain/v4/config/GetExternalRepositoryApiResponse.d.ts +58 -0
  46. package/dist/es/models/multidomain/v4/config/GetExternalRepositoryApiResponse.js +288 -0
  47. package/dist/es/models/multidomain/v4/config/ListExternalRepositoriesApiResponse.d.ts +58 -0
  48. package/dist/es/models/multidomain/v4/config/ListExternalRepositoriesApiResponse.js +310 -0
  49. package/dist/es/models/multidomain/v4/config/NFSServerAddress.d.ts +71 -0
  50. package/dist/es/models/multidomain/v4/config/NFSServerAddress.js +279 -0
  51. package/dist/es/models/multidomain/v4/config/NfsRepository.d.ts +73 -0
  52. package/dist/es/models/multidomain/v4/config/NfsRepository.js +299 -0
  53. package/dist/es/models/multidomain/v4/config/UpdateExternalRepositoryApiResponse.d.ts +58 -0
  54. package/dist/es/models/multidomain/v4/config/UpdateExternalRepositoryApiResponse.js +288 -0
  55. package/dist/es/models/multidomain/v4/error/AppMessage.d.ts +107 -0
  56. package/dist/es/models/multidomain/v4/error/AppMessage.js +415 -0
  57. package/dist/es/models/multidomain/v4/error/ErrorResponse.d.ts +47 -0
  58. package/dist/es/models/multidomain/v4/error/ErrorResponse.js +277 -0
  59. package/dist/es/models/multidomain/v4/error/SchemaValidationError.d.ts +92 -0
  60. package/dist/es/models/multidomain/v4/error/SchemaValidationError.js +389 -0
  61. package/dist/es/models/multidomain/v4/error/SchemaValidationErrorMessage.d.ts +69 -0
  62. package/dist/es/models/multidomain/v4/error/SchemaValidationErrorMessage.js +307 -0
  63. package/dist/es/models/prism/v4/config/TaskReference.d.ts +47 -0
  64. package/dist/es/models/prism/v4/config/TaskReference.js +242 -0
  65. package/dist/es/models/validation/ValidationError.d.ts +13 -0
  66. package/dist/es/models/validation/ValidationError.js +44 -0
  67. package/dist/es/models/validation/ValidationScopes.d.ts +9 -0
  68. package/dist/es/models/validation/ValidationScopes.js +38 -0
  69. package/dist/es/utils/ValidationUtils.d.ts +13 -0
  70. package/dist/es/utils/ValidationUtils.js +55 -0
  71. package/dist/lib/ApiClient.d.ts +194 -0
  72. package/dist/lib/ApiClient.js +1449 -0
  73. package/dist/lib/Paginable.d.ts +95 -0
  74. package/dist/lib/Paginable.js +248 -0
  75. package/dist/lib/apis/externalrepositories-endpoints.d.ts +84 -0
  76. package/dist/lib/apis/externalrepositories-endpoints.js +267 -0
  77. package/dist/lib/index.d.ts +60 -0
  78. package/dist/lib/index.js +236 -0
  79. package/dist/lib/models/common/v1/config/FQDN.d.ts +47 -0
  80. package/dist/lib/models/common/v1/config/FQDN.js +238 -0
  81. package/dist/lib/models/common/v1/config/Flag.d.ts +58 -0
  82. package/dist/lib/models/common/v1/config/Flag.js +278 -0
  83. package/dist/lib/models/common/v1/config/IPAddressOrFQDN.d.ts +70 -0
  84. package/dist/lib/models/common/v1/config/IPAddressOrFQDN.js +313 -0
  85. package/dist/lib/models/common/v1/config/IPv4Address.d.ts +70 -0
  86. package/dist/lib/models/common/v1/config/IPv4Address.js +288 -0
  87. package/dist/lib/models/common/v1/config/IPv6Address.d.ts +70 -0
  88. package/dist/lib/models/common/v1/config/IPv6Address.js +288 -0
  89. package/dist/lib/models/common/v1/config/KVPair.d.ts +65 -0
  90. package/dist/lib/models/common/v1/config/KVPair.js +333 -0
  91. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +53 -0
  92. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +236 -0
  93. package/dist/lib/models/common/v1/config/Message.d.ts +79 -0
  94. package/dist/lib/models/common/v1/config/Message.js +341 -0
  95. package/dist/lib/models/common/v1/config/MessageSeverity.d.ts +19 -0
  96. package/dist/lib/models/common/v1/config/MessageSeverity.js +89 -0
  97. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +47 -0
  98. package/dist/lib/models/common/v1/config/TenantAwareModel.js +235 -0
  99. package/dist/lib/models/common/v1/response/ApiLink.d.ts +58 -0
  100. package/dist/lib/models/common/v1/response/ApiLink.js +271 -0
  101. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +95 -0
  102. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +419 -0
  103. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +34 -0
  104. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +262 -0
  105. package/dist/lib/models/multidomain/v4/config/CreateExternalRepositoryApiResponse.d.ts +58 -0
  106. package/dist/lib/models/multidomain/v4/config/CreateExternalRepositoryApiResponse.js +288 -0
  107. package/dist/lib/models/multidomain/v4/config/DeleteExternalRepositoryApiResponse.d.ts +58 -0
  108. package/dist/lib/models/multidomain/v4/config/DeleteExternalRepositoryApiResponse.js +288 -0
  109. package/dist/lib/models/multidomain/v4/config/ExternalRepository.d.ts +59 -0
  110. package/dist/lib/models/multidomain/v4/config/ExternalRepository.js +328 -0
  111. package/dist/lib/models/multidomain/v4/config/GetExternalRepositoryApiResponse.d.ts +58 -0
  112. package/dist/lib/models/multidomain/v4/config/GetExternalRepositoryApiResponse.js +288 -0
  113. package/dist/lib/models/multidomain/v4/config/ListExternalRepositoriesApiResponse.d.ts +58 -0
  114. package/dist/lib/models/multidomain/v4/config/ListExternalRepositoriesApiResponse.js +310 -0
  115. package/dist/lib/models/multidomain/v4/config/NFSServerAddress.d.ts +71 -0
  116. package/dist/lib/models/multidomain/v4/config/NFSServerAddress.js +279 -0
  117. package/dist/lib/models/multidomain/v4/config/NfsRepository.d.ts +73 -0
  118. package/dist/lib/models/multidomain/v4/config/NfsRepository.js +299 -0
  119. package/dist/lib/models/multidomain/v4/config/UpdateExternalRepositoryApiResponse.d.ts +58 -0
  120. package/dist/lib/models/multidomain/v4/config/UpdateExternalRepositoryApiResponse.js +288 -0
  121. package/dist/lib/models/multidomain/v4/error/AppMessage.d.ts +107 -0
  122. package/dist/lib/models/multidomain/v4/error/AppMessage.js +415 -0
  123. package/dist/lib/models/multidomain/v4/error/ErrorResponse.d.ts +47 -0
  124. package/dist/lib/models/multidomain/v4/error/ErrorResponse.js +277 -0
  125. package/dist/lib/models/multidomain/v4/error/SchemaValidationError.d.ts +92 -0
  126. package/dist/lib/models/multidomain/v4/error/SchemaValidationError.js +389 -0
  127. package/dist/lib/models/multidomain/v4/error/SchemaValidationErrorMessage.d.ts +69 -0
  128. package/dist/lib/models/multidomain/v4/error/SchemaValidationErrorMessage.js +307 -0
  129. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +47 -0
  130. package/dist/lib/models/prism/v4/config/TaskReference.js +242 -0
  131. package/dist/lib/models/validation/ValidationError.d.ts +13 -0
  132. package/dist/lib/models/validation/ValidationError.js +44 -0
  133. package/dist/lib/models/validation/ValidationScopes.d.ts +9 -0
  134. package/dist/lib/models/validation/ValidationScopes.js +38 -0
  135. package/dist/lib/utils/ValidationUtils.d.ts +13 -0
  136. package/dist/lib/utils/ValidationUtils.js +55 -0
  137. package/package.json +53 -0
@@ -0,0 +1,713 @@
1
+ /*
2
+ * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
3
+ * This devtool is neither made for production nor for readable output files.
4
+ * It uses "eval()" calls to create a separate source file in the browser devtools.
5
+ * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
6
+ * or disable the default devtool with "devtool: false".
7
+ * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
8
+ */
9
+ (function webpackUniversalModuleDefinition(root, factory) {
10
+ if(typeof exports === 'object' && typeof module === 'object')
11
+ module.exports = factory();
12
+ else if(typeof define === 'function' && define.amd)
13
+ define([], factory);
14
+ else if(typeof exports === 'object')
15
+ exports["Ntnx"] = factory();
16
+ else
17
+ root["Ntnx"] = root["Ntnx"] || {}, root["Ntnx"]["Multidomain"] = factory();
18
+ })(Object(typeof self === 'undefined' ? this : self), () => {
19
+ return /******/ (() => { // webpackBootstrap
20
+ /******/ var __webpack_modules__ = ({
21
+
22
+ /***/ "./node_modules/component-emitter/index.js"
23
+ /*!*************************************************!*\
24
+ !*** ./node_modules/component-emitter/index.js ***!
25
+ \*************************************************/
26
+ (module) {
27
+
28
+ eval("{/**\n * Expose `Emitter`.\n */\n\nif (true) {\n module.exports = Emitter;\n}\n\n/**\n * Initialize a new `Emitter`.\n *\n * @api public\n */\n\nfunction Emitter(obj) {\n if (obj) return mixin(obj);\n}\n;\n\n/**\n * Mixin the emitter properties.\n *\n * @param {Object} obj\n * @return {Object}\n * @api private\n */\n\nfunction mixin(obj) {\n for (var key in Emitter.prototype) {\n obj[key] = Emitter.prototype[key];\n }\n return obj;\n}\n\n/**\n * Listen on the given `event` with `fn`.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.on = Emitter.prototype.addEventListener = function (event, fn) {\n this._callbacks = this._callbacks || {};\n (this._callbacks['$' + event] = this._callbacks['$' + event] || []).push(fn);\n return this;\n};\n\n/**\n * Adds an `event` listener that will be invoked a single\n * time then automatically removed.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.once = function (event, fn) {\n function on() {\n this.off(event, on);\n fn.apply(this, arguments);\n }\n on.fn = fn;\n this.on(event, on);\n return this;\n};\n\n/**\n * Remove the given callback for `event` or all\n * registered callbacks.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.off = Emitter.prototype.removeListener = Emitter.prototype.removeAllListeners = Emitter.prototype.removeEventListener = function (event, fn) {\n this._callbacks = this._callbacks || {};\n\n // all\n if (0 == arguments.length) {\n this._callbacks = {};\n return this;\n }\n\n // specific event\n var callbacks = this._callbacks['$' + event];\n if (!callbacks) return this;\n\n // remove all handlers\n if (1 == arguments.length) {\n delete this._callbacks['$' + event];\n return this;\n }\n\n // remove specific handler\n var cb;\n for (var i = 0; i < callbacks.length; i++) {\n cb = callbacks[i];\n if (cb === fn || cb.fn === fn) {\n callbacks.splice(i, 1);\n break;\n }\n }\n\n // Remove event specific arrays for event types that no\n // one is subscribed for to avoid memory leak.\n if (callbacks.length === 0) {\n delete this._callbacks['$' + event];\n }\n return this;\n};\n\n/**\n * Emit `event` with the given args.\n *\n * @param {String} event\n * @param {Mixed} ...\n * @return {Emitter}\n */\n\nEmitter.prototype.emit = function (event) {\n this._callbacks = this._callbacks || {};\n var args = new Array(arguments.length - 1),\n callbacks = this._callbacks['$' + event];\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n if (callbacks) {\n callbacks = callbacks.slice(0);\n for (var i = 0, len = callbacks.length; i < len; ++i) {\n callbacks[i].apply(this, args);\n }\n }\n return this;\n};\n\n/**\n * Return array of callbacks for `event`.\n *\n * @param {String} event\n * @return {Array}\n * @api public\n */\n\nEmitter.prototype.listeners = function (event) {\n this._callbacks = this._callbacks || {};\n return this._callbacks['$' + event] || [];\n};\n\n/**\n * Check if this emitter has `event` handlers.\n *\n * @param {String} event\n * @return {Boolean}\n * @api public\n */\n\nEmitter.prototype.hasListeners = function (event) {\n return !!this.listeners(event).length;\n};\n\n//# sourceURL=webpack://Ntnx/./node_modules/component-emitter/index.js?\n}");
29
+
30
+ /***/ },
31
+
32
+ /***/ "./node_modules/fast-safe-stringify/index.js"
33
+ /*!***************************************************!*\
34
+ !*** ./node_modules/fast-safe-stringify/index.js ***!
35
+ \***************************************************/
36
+ (module) {
37
+
38
+ eval("{module.exports = stringify;\nstringify.default = stringify;\nstringify.stable = deterministicStringify;\nstringify.stableStringify = deterministicStringify;\nvar LIMIT_REPLACE_NODE = '[...]';\nvar CIRCULAR_REPLACE_NODE = '[Circular]';\nvar arr = [];\nvar replacerStack = [];\nfunction defaultOptions() {\n return {\n depthLimit: Number.MAX_SAFE_INTEGER,\n edgesLimit: Number.MAX_SAFE_INTEGER\n };\n}\n\n// Regular stringify\nfunction stringify(obj, replacer, spacer, options) {\n if (typeof options === 'undefined') {\n options = defaultOptions();\n }\n decirc(obj, '', 0, [], undefined, 0, options);\n var res;\n try {\n if (replacerStack.length === 0) {\n res = JSON.stringify(obj, replacer, spacer);\n } else {\n res = JSON.stringify(obj, replaceGetterValues(replacer), spacer);\n }\n } catch (_) {\n return JSON.stringify('[unable to serialize, circular reference is too complex to analyze]');\n } finally {\n while (arr.length !== 0) {\n var part = arr.pop();\n if (part.length === 4) {\n Object.defineProperty(part[0], part[1], part[3]);\n } else {\n part[0][part[1]] = part[2];\n }\n }\n }\n return res;\n}\nfunction setReplace(replace, val, k, parent) {\n var propertyDescriptor = Object.getOwnPropertyDescriptor(parent, k);\n if (propertyDescriptor.get !== undefined) {\n if (propertyDescriptor.configurable) {\n Object.defineProperty(parent, k, {\n value: replace\n });\n arr.push([parent, k, val, propertyDescriptor]);\n } else {\n replacerStack.push([val, k, replace]);\n }\n } else {\n parent[k] = replace;\n arr.push([parent, k, val]);\n }\n}\nfunction decirc(val, k, edgeIndex, stack, parent, depth, options) {\n depth += 1;\n var i;\n if (typeof val === 'object' && val !== null) {\n for (i = 0; i < stack.length; i++) {\n if (stack[i] === val) {\n setReplace(CIRCULAR_REPLACE_NODE, val, k, parent);\n return;\n }\n }\n if (typeof options.depthLimit !== 'undefined' && depth > options.depthLimit) {\n setReplace(LIMIT_REPLACE_NODE, val, k, parent);\n return;\n }\n if (typeof options.edgesLimit !== 'undefined' && edgeIndex + 1 > options.edgesLimit) {\n setReplace(LIMIT_REPLACE_NODE, val, k, parent);\n return;\n }\n stack.push(val);\n // Optimize for Arrays. Big arrays could kill the performance otherwise!\n if (Array.isArray(val)) {\n for (i = 0; i < val.length; i++) {\n decirc(val[i], i, i, stack, val, depth, options);\n }\n } else {\n var keys = Object.keys(val);\n for (i = 0; i < keys.length; i++) {\n var key = keys[i];\n decirc(val[key], key, i, stack, val, depth, options);\n }\n }\n stack.pop();\n }\n}\n\n// Stable-stringify\nfunction compareFunction(a, b) {\n if (a < b) {\n return -1;\n }\n if (a > b) {\n return 1;\n }\n return 0;\n}\nfunction deterministicStringify(obj, replacer, spacer, options) {\n if (typeof options === 'undefined') {\n options = defaultOptions();\n }\n var tmp = deterministicDecirc(obj, '', 0, [], undefined, 0, options) || obj;\n var res;\n try {\n if (replacerStack.length === 0) {\n res = JSON.stringify(tmp, replacer, spacer);\n } else {\n res = JSON.stringify(tmp, replaceGetterValues(replacer), spacer);\n }\n } catch (_) {\n return JSON.stringify('[unable to serialize, circular reference is too complex to analyze]');\n } finally {\n // Ensure that we restore the object as it was.\n while (arr.length !== 0) {\n var part = arr.pop();\n if (part.length === 4) {\n Object.defineProperty(part[0], part[1], part[3]);\n } else {\n part[0][part[1]] = part[2];\n }\n }\n }\n return res;\n}\nfunction deterministicDecirc(val, k, edgeIndex, stack, parent, depth, options) {\n depth += 1;\n var i;\n if (typeof val === 'object' && val !== null) {\n for (i = 0; i < stack.length; i++) {\n if (stack[i] === val) {\n setReplace(CIRCULAR_REPLACE_NODE, val, k, parent);\n return;\n }\n }\n try {\n if (typeof val.toJSON === 'function') {\n return;\n }\n } catch (_) {\n return;\n }\n if (typeof options.depthLimit !== 'undefined' && depth > options.depthLimit) {\n setReplace(LIMIT_REPLACE_NODE, val, k, parent);\n return;\n }\n if (typeof options.edgesLimit !== 'undefined' && edgeIndex + 1 > options.edgesLimit) {\n setReplace(LIMIT_REPLACE_NODE, val, k, parent);\n return;\n }\n stack.push(val);\n // Optimize for Arrays. Big arrays could kill the performance otherwise!\n if (Array.isArray(val)) {\n for (i = 0; i < val.length; i++) {\n deterministicDecirc(val[i], i, i, stack, val, depth, options);\n }\n } else {\n // Create a temporary object in the required way\n var tmp = {};\n var keys = Object.keys(val).sort(compareFunction);\n for (i = 0; i < keys.length; i++) {\n var key = keys[i];\n deterministicDecirc(val[key], key, i, stack, val, depth, options);\n tmp[key] = val[key];\n }\n if (typeof parent !== 'undefined') {\n arr.push([parent, k, val]);\n parent[k] = tmp;\n } else {\n return tmp;\n }\n }\n stack.pop();\n }\n}\n\n// wraps replacer function to handle values we couldn't replace\n// and mark them as replaced value\nfunction replaceGetterValues(replacer) {\n replacer = typeof replacer !== 'undefined' ? replacer : function (k, v) {\n return v;\n };\n return function (key, val) {\n if (replacerStack.length > 0) {\n for (var i = 0; i < replacerStack.length; i++) {\n var part = replacerStack[i];\n if (part[1] === key && part[0] === val) {\n val = part[2];\n replacerStack.splice(i, 1);\n break;\n }\n }\n }\n return replacer.call(this, key, val);\n };\n}\n\n//# sourceURL=webpack://Ntnx/./node_modules/fast-safe-stringify/index.js?\n}");
39
+
40
+ /***/ },
41
+
42
+ /***/ "./node_modules/path/path.js"
43
+ /*!***********************************!*\
44
+ !*** ./node_modules/path/path.js ***!
45
+ \***********************************/
46
+ (module, __unused_webpack_exports, __webpack_require__) {
47
+
48
+ "use strict";
49
+ eval("{// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\nvar isWindows = process.platform === 'win32';\nvar util = __webpack_require__(/*! util */ \"./node_modules/util/util.js\");\n\n// resolves . and .. elements in a path array with directory names there\n// must be no slashes or device names (c:\\) in the array\n// (so also no leading and trailing slashes - it does not distinguish\n// relative and absolute paths)\nfunction normalizeArray(parts, allowAboveRoot) {\n var res = [];\n for (var i = 0; i < parts.length; i++) {\n var p = parts[i];\n\n // ignore empty parts\n if (!p || p === '.') continue;\n if (p === '..') {\n if (res.length && res[res.length - 1] !== '..') {\n res.pop();\n } else if (allowAboveRoot) {\n res.push('..');\n }\n } else {\n res.push(p);\n }\n }\n return res;\n}\n\n// returns an array with empty elements removed from either end of the input\n// array or the original array if no elements need to be removed\nfunction trimArray(arr) {\n var lastIndex = arr.length - 1;\n var start = 0;\n for (; start <= lastIndex; start++) {\n if (arr[start]) break;\n }\n var end = lastIndex;\n for (; end >= 0; end--) {\n if (arr[end]) break;\n }\n if (start === 0 && end === lastIndex) return arr;\n if (start > end) return [];\n return arr.slice(start, end + 1);\n}\n\n// Regex to split a windows path into three parts: [*, device, slash,\n// tail] windows-only\nvar splitDeviceRe = /^([a-zA-Z]:|[\\\\\\/]{2}[^\\\\\\/]+[\\\\\\/]+[^\\\\\\/]+)?([\\\\\\/])?([\\s\\S]*?)$/;\n\n// Regex to split the tail part of the above into [*, dir, basename, ext]\nvar splitTailRe = /^([\\s\\S]*?)((?:\\.{1,2}|[^\\\\\\/]+?|)(\\.[^.\\/\\\\]*|))(?:[\\\\\\/]*)$/;\nvar win32 = {};\n\n// Function to split a filename into [root, dir, basename, ext]\nfunction win32SplitPath(filename) {\n // Separate device+slash from tail\n var result = splitDeviceRe.exec(filename),\n device = (result[1] || '') + (result[2] || ''),\n tail = result[3] || '';\n // Split the tail into dir, basename and extension\n var result2 = splitTailRe.exec(tail),\n dir = result2[1],\n basename = result2[2],\n ext = result2[3];\n return [device, dir, basename, ext];\n}\nfunction win32StatPath(path) {\n var result = splitDeviceRe.exec(path),\n device = result[1] || '',\n isUnc = !!device && device[1] !== ':';\n return {\n device: device,\n isUnc: isUnc,\n isAbsolute: isUnc || !!result[2],\n // UNC paths are always absolute\n tail: result[3]\n };\n}\nfunction normalizeUNCRoot(device) {\n return '\\\\\\\\' + device.replace(/^[\\\\\\/]+/, '').replace(/[\\\\\\/]+/g, '\\\\');\n}\n\n// path.resolve([from ...], to)\nwin32.resolve = function () {\n var resolvedDevice = '',\n resolvedTail = '',\n resolvedAbsolute = false;\n for (var i = arguments.length - 1; i >= -1; i--) {\n var path;\n if (i >= 0) {\n path = arguments[i];\n } else if (!resolvedDevice) {\n path = process.cwd();\n } else {\n // Windows has the concept of drive-specific current working\n // directories. If we've resolved a drive letter but not yet an\n // absolute path, get cwd for that drive. We're sure the device is not\n // an unc path at this points, because unc paths are always absolute.\n path = process.env['=' + resolvedDevice];\n // Verify that a drive-local cwd was found and that it actually points\n // to our drive. If not, default to the drive's root.\n if (!path || path.substr(0, 3).toLowerCase() !== resolvedDevice.toLowerCase() + '\\\\') {\n path = resolvedDevice + '\\\\';\n }\n }\n\n // Skip empty and invalid entries\n if (!util.isString(path)) {\n throw new TypeError('Arguments to path.resolve must be strings');\n } else if (!path) {\n continue;\n }\n var result = win32StatPath(path),\n device = result.device,\n isUnc = result.isUnc,\n isAbsolute = result.isAbsolute,\n tail = result.tail;\n if (device && resolvedDevice && device.toLowerCase() !== resolvedDevice.toLowerCase()) {\n // This path points to another device so it is not applicable\n continue;\n }\n if (!resolvedDevice) {\n resolvedDevice = device;\n }\n if (!resolvedAbsolute) {\n resolvedTail = tail + '\\\\' + resolvedTail;\n resolvedAbsolute = isAbsolute;\n }\n if (resolvedDevice && resolvedAbsolute) {\n break;\n }\n }\n\n // Convert slashes to backslashes when `resolvedDevice` points to an UNC\n // root. Also squash multiple slashes into a single one where appropriate.\n if (isUnc) {\n resolvedDevice = normalizeUNCRoot(resolvedDevice);\n }\n\n // At this point the path should be resolved to a full absolute path,\n // but handle relative paths to be safe (might happen when process.cwd()\n // fails)\n\n // Normalize the tail path\n resolvedTail = normalizeArray(resolvedTail.split(/[\\\\\\/]+/), !resolvedAbsolute).join('\\\\');\n return resolvedDevice + (resolvedAbsolute ? '\\\\' : '') + resolvedTail || '.';\n};\nwin32.normalize = function (path) {\n var result = win32StatPath(path),\n device = result.device,\n isUnc = result.isUnc,\n isAbsolute = result.isAbsolute,\n tail = result.tail,\n trailingSlash = /[\\\\\\/]$/.test(tail);\n\n // Normalize the tail path\n tail = normalizeArray(tail.split(/[\\\\\\/]+/), !isAbsolute).join('\\\\');\n if (!tail && !isAbsolute) {\n tail = '.';\n }\n if (tail && trailingSlash) {\n tail += '\\\\';\n }\n\n // Convert slashes to backslashes when `device` points to an UNC root.\n // Also squash multiple slashes into a single one where appropriate.\n if (isUnc) {\n device = normalizeUNCRoot(device);\n }\n return device + (isAbsolute ? '\\\\' : '') + tail;\n};\nwin32.isAbsolute = function (path) {\n return win32StatPath(path).isAbsolute;\n};\nwin32.join = function () {\n var paths = [];\n for (var i = 0; i < arguments.length; i++) {\n var arg = arguments[i];\n if (!util.isString(arg)) {\n throw new TypeError('Arguments to path.join must be strings');\n }\n if (arg) {\n paths.push(arg);\n }\n }\n var joined = paths.join('\\\\');\n\n // Make sure that the joined path doesn't start with two slashes, because\n // normalize() will mistake it for an UNC path then.\n //\n // This step is skipped when it is very clear that the user actually\n // intended to point at an UNC path. This is assumed when the first\n // non-empty string arguments starts with exactly two slashes followed by\n // at least one more non-slash character.\n //\n // Note that for normalize() to treat a path as an UNC path it needs to\n // have at least 2 components, so we don't filter for that here.\n // This means that the user can use join to construct UNC paths from\n // a server name and a share name; for example:\n // path.join('//server', 'share') -> '\\\\\\\\server\\\\share\\')\n if (!/^[\\\\\\/]{2}[^\\\\\\/]/.test(paths[0])) {\n joined = joined.replace(/^[\\\\\\/]{2,}/, '\\\\');\n }\n return win32.normalize(joined);\n};\n\n// path.relative(from, to)\n// it will solve the relative path from 'from' to 'to', for instance:\n// from = 'C:\\\\orandea\\\\test\\\\aaa'\n// to = 'C:\\\\orandea\\\\impl\\\\bbb'\n// The output of the function should be: '..\\\\..\\\\impl\\\\bbb'\nwin32.relative = function (from, to) {\n from = win32.resolve(from);\n to = win32.resolve(to);\n\n // windows is not case sensitive\n var lowerFrom = from.toLowerCase();\n var lowerTo = to.toLowerCase();\n var toParts = trimArray(to.split('\\\\'));\n var lowerFromParts = trimArray(lowerFrom.split('\\\\'));\n var lowerToParts = trimArray(lowerTo.split('\\\\'));\n var length = Math.min(lowerFromParts.length, lowerToParts.length);\n var samePartsLength = length;\n for (var i = 0; i < length; i++) {\n if (lowerFromParts[i] !== lowerToParts[i]) {\n samePartsLength = i;\n break;\n }\n }\n if (samePartsLength == 0) {\n return to;\n }\n var outputParts = [];\n for (var i = samePartsLength; i < lowerFromParts.length; i++) {\n outputParts.push('..');\n }\n outputParts = outputParts.concat(toParts.slice(samePartsLength));\n return outputParts.join('\\\\');\n};\nwin32._makeLong = function (path) {\n // Note: this will *probably* throw somewhere.\n if (!util.isString(path)) return path;\n if (!path) {\n return '';\n }\n var resolvedPath = win32.resolve(path);\n if (/^[a-zA-Z]\\:\\\\/.test(resolvedPath)) {\n // path is local filesystem path, which needs to be converted\n // to long UNC path.\n return '\\\\\\\\?\\\\' + resolvedPath;\n } else if (/^\\\\\\\\[^?.]/.test(resolvedPath)) {\n // path is network UNC path, which needs to be converted\n // to long UNC path.\n return '\\\\\\\\?\\\\UNC\\\\' + resolvedPath.substring(2);\n }\n return path;\n};\nwin32.dirname = function (path) {\n var result = win32SplitPath(path),\n root = result[0],\n dir = result[1];\n if (!root && !dir) {\n // No dirname whatsoever\n return '.';\n }\n if (dir) {\n // It has a dirname, strip trailing slash\n dir = dir.substr(0, dir.length - 1);\n }\n return root + dir;\n};\nwin32.basename = function (path, ext) {\n var f = win32SplitPath(path)[2];\n // TODO: make this comparison case-insensitive on windows?\n if (ext && f.substr(-1 * ext.length) === ext) {\n f = f.substr(0, f.length - ext.length);\n }\n return f;\n};\nwin32.extname = function (path) {\n return win32SplitPath(path)[3];\n};\nwin32.format = function (pathObject) {\n if (!util.isObject(pathObject)) {\n throw new TypeError(\"Parameter 'pathObject' must be an object, not \" + typeof pathObject);\n }\n var root = pathObject.root || '';\n if (!util.isString(root)) {\n throw new TypeError(\"'pathObject.root' must be a string or undefined, not \" + typeof pathObject.root);\n }\n var dir = pathObject.dir;\n var base = pathObject.base || '';\n if (!dir) {\n return base;\n }\n if (dir[dir.length - 1] === win32.sep) {\n return dir + base;\n }\n return dir + win32.sep + base;\n};\nwin32.parse = function (pathString) {\n if (!util.isString(pathString)) {\n throw new TypeError(\"Parameter 'pathString' must be a string, not \" + typeof pathString);\n }\n var allParts = win32SplitPath(pathString);\n if (!allParts || allParts.length !== 4) {\n throw new TypeError(\"Invalid path '\" + pathString + \"'\");\n }\n return {\n root: allParts[0],\n dir: allParts[0] + allParts[1].slice(0, -1),\n base: allParts[2],\n ext: allParts[3],\n name: allParts[2].slice(0, allParts[2].length - allParts[3].length)\n };\n};\nwin32.sep = '\\\\';\nwin32.delimiter = ';';\n\n// Split a filename into [root, dir, basename, ext], unix version\n// 'root' is just a slash, or nothing.\nvar splitPathRe = /^(\\/?|)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?|)(\\.[^.\\/]*|))(?:[\\/]*)$/;\nvar posix = {};\nfunction posixSplitPath(filename) {\n return splitPathRe.exec(filename).slice(1);\n}\n\n// path.resolve([from ...], to)\n// posix version\nposix.resolve = function () {\n var resolvedPath = '',\n resolvedAbsolute = false;\n for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n var path = i >= 0 ? arguments[i] : process.cwd();\n\n // Skip empty and invalid entries\n if (!util.isString(path)) {\n throw new TypeError('Arguments to path.resolve must be strings');\n } else if (!path) {\n continue;\n }\n resolvedPath = path + '/' + resolvedPath;\n resolvedAbsolute = path[0] === '/';\n }\n\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n\n // Normalize the path\n resolvedPath = normalizeArray(resolvedPath.split('/'), !resolvedAbsolute).join('/');\n return (resolvedAbsolute ? '/' : '') + resolvedPath || '.';\n};\n\n// path.normalize(path)\n// posix version\nposix.normalize = function (path) {\n var isAbsolute = posix.isAbsolute(path),\n trailingSlash = path && path[path.length - 1] === '/';\n\n // Normalize the path\n path = normalizeArray(path.split('/'), !isAbsolute).join('/');\n if (!path && !isAbsolute) {\n path = '.';\n }\n if (path && trailingSlash) {\n path += '/';\n }\n return (isAbsolute ? '/' : '') + path;\n};\n\n// posix version\nposix.isAbsolute = function (path) {\n return path.charAt(0) === '/';\n};\n\n// posix version\nposix.join = function () {\n var path = '';\n for (var i = 0; i < arguments.length; i++) {\n var segment = arguments[i];\n if (!util.isString(segment)) {\n throw new TypeError('Arguments to path.join must be strings');\n }\n if (segment) {\n if (!path) {\n path += segment;\n } else {\n path += '/' + segment;\n }\n }\n }\n return posix.normalize(path);\n};\n\n// path.relative(from, to)\n// posix version\nposix.relative = function (from, to) {\n from = posix.resolve(from).substr(1);\n to = posix.resolve(to).substr(1);\n var fromParts = trimArray(from.split('/'));\n var toParts = trimArray(to.split('/'));\n var length = Math.min(fromParts.length, toParts.length);\n var samePartsLength = length;\n for (var i = 0; i < length; i++) {\n if (fromParts[i] !== toParts[i]) {\n samePartsLength = i;\n break;\n }\n }\n var outputParts = [];\n for (var i = samePartsLength; i < fromParts.length; i++) {\n outputParts.push('..');\n }\n outputParts = outputParts.concat(toParts.slice(samePartsLength));\n return outputParts.join('/');\n};\nposix._makeLong = function (path) {\n return path;\n};\nposix.dirname = function (path) {\n var result = posixSplitPath(path),\n root = result[0],\n dir = result[1];\n if (!root && !dir) {\n // No dirname whatsoever\n return '.';\n }\n if (dir) {\n // It has a dirname, strip trailing slash\n dir = dir.substr(0, dir.length - 1);\n }\n return root + dir;\n};\nposix.basename = function (path, ext) {\n var f = posixSplitPath(path)[2];\n // TODO: make this comparison case-insensitive on windows?\n if (ext && f.substr(-1 * ext.length) === ext) {\n f = f.substr(0, f.length - ext.length);\n }\n return f;\n};\nposix.extname = function (path) {\n return posixSplitPath(path)[3];\n};\nposix.format = function (pathObject) {\n if (!util.isObject(pathObject)) {\n throw new TypeError(\"Parameter 'pathObject' must be an object, not \" + typeof pathObject);\n }\n var root = pathObject.root || '';\n if (!util.isString(root)) {\n throw new TypeError(\"'pathObject.root' must be a string or undefined, not \" + typeof pathObject.root);\n }\n var dir = pathObject.dir ? pathObject.dir + posix.sep : '';\n var base = pathObject.base || '';\n return dir + base;\n};\nposix.parse = function (pathString) {\n if (!util.isString(pathString)) {\n throw new TypeError(\"Parameter 'pathString' must be a string, not \" + typeof pathString);\n }\n var allParts = posixSplitPath(pathString);\n if (!allParts || allParts.length !== 4) {\n throw new TypeError(\"Invalid path '\" + pathString + \"'\");\n }\n allParts[1] = allParts[1] || '';\n allParts[2] = allParts[2] || '';\n allParts[3] = allParts[3] || '';\n return {\n root: allParts[0],\n dir: allParts[0] + allParts[1].slice(0, -1),\n base: allParts[2],\n ext: allParts[3],\n name: allParts[2].slice(0, allParts[2].length - allParts[3].length)\n };\n};\nposix.sep = '/';\nposix.delimiter = ':';\nif (isWindows) module.exports = win32;else /* posix */\n module.exports = posix;\nmodule.exports.posix = posix;\nmodule.exports.win32 = win32;\n\n//# sourceURL=webpack://Ntnx/./node_modules/path/path.js?\n}");
50
+
51
+ /***/ },
52
+
53
+ /***/ "./node_modules/superagent-retry-delay/src/index.js"
54
+ /*!**********************************************************!*\
55
+ !*** ./node_modules/superagent-retry-delay/src/index.js ***!
56
+ \**********************************************************/
57
+ (module) {
58
+
59
+ eval("{/**\n * Add to the request prototype.\n */\n\nmodule.exports = function (superagent) {\n const Request = superagent.Request;\n Request.prototype.oldRetry = Request.prototype.retry;\n Request.prototype.retry = retry;\n Request.prototype.callback = callback;\n return superagent;\n};\n\n/**\n * Works out whether we should retry, based on the number of retries, on any passed\n * errors and response and compared against a list of allowed error statuses.\n *\n * @param {Error} err\n * @param {Response} res\n * @param {Number[]} allowedStatuses\n * @param {retryCallback} retryCallback\n * @callback retryCallback\n */\nfunction shouldRetry(err, res, allowedStatuses, retryCallback) {\n if (retryCallback) {\n return retryCallback(err, res);\n }\n const ERROR_CODES = [\"ECONNRESET\", \"ETIMEDOUT\", \"EADDRINFO\", \"ESOCKETTIMEDOUT\", \"ENOTFOUND\", \"ECONNREFUSED\"];\n if (err && err.code && ~ERROR_CODES.indexOf(err.code)) {\n return true;\n }\n if (res && res.status) {\n const status = res.status;\n if (status >= 500) {\n return true;\n }\n if ((status >= 400 || status < 200) && allowedStatuses.indexOf(status) === -1) {\n return true;\n }\n }\n\n // Superagent timeout\n if (err && \"timeout\" in err && err.code === \"ECONNABORTED\") {\n return true;\n }\n return err && \"crossDomain\" in err;\n}\n\n/**\n * Override Request callback to set a timeout on the call to retry.\n *\n * This overrides crucial behaviour: it will retry on ANY error (eg 401...) due to shouldRetry having\n * different behaviour.\n *\n * @param err\n * @param res\n * @return {Object}\n */\nfunction callback(err, res) {\n if (this._maxRetries && this._retries++ < this._maxRetries && shouldRetry(err, res, this._allowedStatuses, this._retryCallback)) {\n let delay;\n if (!this._retries) {\n delay = 0;\n } else {\n delay = this._retryDelays[this._retries - 1];\n }\n const req = this;\n return setTimeout(function () {\n return req._retry();\n }, delay);\n }\n const fn = this._callback;\n this.clearTimeout();\n if (err) {\n if (this._maxRetries) err.retries = this._retries - 1;\n this.emit(\"error\", err);\n }\n fn(err, res);\n}\n\n/**\n * Override Request retry to also set delays between requests.\n *\n * In milliseconds.\n *\n * @param {Number} retries\n * @param {Number[] || Number} delays\n * @param {Number[]} allowedStatuses\n * @param {retryCallback} retryCallback\n * @callback retryCallback\n * @return {retry}\n */\nfunction retry(retries, delays, allowedStatuses, retryCallback) {\n if (arguments.length === 0 || retries === true) {\n retries = 1;\n }\n if (retries <= 0) {\n retries = 0;\n }\n if (typeof delays === \"number\") {\n delays = [delays];\n }\n const numberOfDelays = delays.length;\n const diff = retries - numberOfDelays;\n if (diff !== 0) {\n if (diff < 0) {\n throw new Error(\"Cannot have more delays than retries\");\n } else {\n // Extrapolate delays list until there is a delay for each retry\n const finalDelay = delays[numberOfDelays - 1];\n for (let i = 0; i < diff + 1; i++) {\n delays.push(finalDelay);\n }\n }\n }\n this._maxRetries = retries;\n this._retries = 0;\n this._retryDelays = delays || [0];\n this._allowedStatuses = allowedStatuses || [];\n this._retryCallback = retryCallback;\n return this;\n}\n\n//# sourceURL=webpack://Ntnx/./node_modules/superagent-retry-delay/src/index.js?\n}");
60
+
61
+ /***/ },
62
+
63
+ /***/ "./node_modules/superagent/lib/agent-base.js"
64
+ /*!***************************************************!*\
65
+ !*** ./node_modules/superagent/lib/agent-base.js ***!
66
+ \***************************************************/
67
+ (module) {
68
+
69
+ "use strict";
70
+ eval("{\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n return arr2;\n}\nfunction Agent() {\n this._defaults = [];\n}\n['use', 'on', 'once', 'set', 'query', 'type', 'accept', 'auth', 'withCredentials', 'sortQuery', 'retry', 'ok', 'redirects', 'timeout', 'buffer', 'serialize', 'parse', 'ca', 'key', 'pfx', 'cert', 'disableTLSCerts'].forEach(function (fn) {\n // Default setting for all requests from this agent\n Agent.prototype[fn] = function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n this._defaults.push({\n fn: fn,\n args: args\n });\n return this;\n };\n});\nAgent.prototype._setDefaults = function (req) {\n this._defaults.forEach(function (def) {\n req[def.fn].apply(req, _toConsumableArray(def.args));\n });\n};\nmodule.exports = Agent;\n\n//# sourceURL=webpack://Ntnx/./node_modules/superagent/lib/agent-base.js?\n}");
71
+
72
+ /***/ },
73
+
74
+ /***/ "./node_modules/superagent/lib/client.js"
75
+ /*!***********************************************!*\
76
+ !*** ./node_modules/superagent/lib/client.js ***!
77
+ \***********************************************/
78
+ (module, exports, __webpack_require__) {
79
+
80
+ "use strict";
81
+ eval("{\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n return _typeof(obj);\n}\n\n/**\n * Root reference for iframes.\n */\nvar root;\nif (typeof window !== 'undefined') {\n // Browser window\n root = window;\n} else if (typeof self === 'undefined') {\n // Other environments\n console.warn('Using browser-only version of superagent in non-browser environment');\n root = void 0;\n} else {\n // Web Worker\n root = self;\n}\nvar Emitter = __webpack_require__(/*! component-emitter */ \"./node_modules/component-emitter/index.js\");\nvar safeStringify = __webpack_require__(/*! fast-safe-stringify */ \"./node_modules/fast-safe-stringify/index.js\");\nvar RequestBase = __webpack_require__(/*! ./request-base */ \"./node_modules/superagent/lib/request-base.js\");\nvar isObject = __webpack_require__(/*! ./is-object */ \"./node_modules/superagent/lib/is-object.js\");\nvar ResponseBase = __webpack_require__(/*! ./response-base */ \"./node_modules/superagent/lib/response-base.js\");\nvar Agent = __webpack_require__(/*! ./agent-base */ \"./node_modules/superagent/lib/agent-base.js\");\n/**\n * Noop.\n */\n\nfunction noop() {}\n/**\n * Expose `request`.\n */\n\nmodule.exports = function (method, url) {\n // callback\n if (typeof url === 'function') {\n return new exports.Request('GET', method).end(url);\n } // url first\n\n if (arguments.length === 1) {\n return new exports.Request('GET', method);\n }\n return new exports.Request(method, url);\n};\nexports = module.exports;\nvar request = exports;\nexports.Request = Request;\n/**\n * Determine XHR.\n */\n\nrequest.getXHR = function () {\n if (root.XMLHttpRequest && (!root.location || root.location.protocol !== 'file:' || !root.ActiveXObject)) {\n return new XMLHttpRequest();\n }\n try {\n return new ActiveXObject('Microsoft.XMLHTTP');\n } catch (_unused) {}\n try {\n return new ActiveXObject('Msxml2.XMLHTTP.6.0');\n } catch (_unused2) {}\n try {\n return new ActiveXObject('Msxml2.XMLHTTP.3.0');\n } catch (_unused3) {}\n try {\n return new ActiveXObject('Msxml2.XMLHTTP');\n } catch (_unused4) {}\n throw new Error('Browser-only version of superagent could not find XHR');\n};\n/**\n * Removes leading and trailing whitespace, added to support IE.\n *\n * @param {String} s\n * @return {String}\n * @api private\n */\n\nvar trim = ''.trim ? function (s) {\n return s.trim();\n} : function (s) {\n return s.replace(/(^\\s*|\\s*$)/g, '');\n};\n/**\n * Serialize the given `obj`.\n *\n * @param {Object} obj\n * @return {String}\n * @api private\n */\n\nfunction serialize(obj) {\n if (!isObject(obj)) return obj;\n var pairs = [];\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) pushEncodedKeyValuePair(pairs, key, obj[key]);\n }\n return pairs.join('&');\n}\n/**\n * Helps 'serialize' with serializing arrays.\n * Mutates the pairs array.\n *\n * @param {Array} pairs\n * @param {String} key\n * @param {Mixed} val\n */\n\nfunction pushEncodedKeyValuePair(pairs, key, val) {\n if (val === undefined) return;\n if (val === null) {\n pairs.push(encodeURI(key));\n return;\n }\n if (Array.isArray(val)) {\n val.forEach(function (v) {\n pushEncodedKeyValuePair(pairs, key, v);\n });\n } else if (isObject(val)) {\n for (var subkey in val) {\n if (Object.prototype.hasOwnProperty.call(val, subkey)) pushEncodedKeyValuePair(pairs, \"\".concat(key, \"[\").concat(subkey, \"]\"), val[subkey]);\n }\n } else {\n pairs.push(encodeURI(key) + '=' + encodeURIComponent(val));\n }\n}\n/**\n * Expose serialization method.\n */\n\nrequest.serializeObject = serialize;\n/**\n * Parse the given x-www-form-urlencoded `str`.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nfunction parseString(str) {\n var obj = {};\n var pairs = str.split('&');\n var pair;\n var pos;\n for (var i = 0, len = pairs.length; i < len; ++i) {\n pair = pairs[i];\n pos = pair.indexOf('=');\n if (pos === -1) {\n obj[decodeURIComponent(pair)] = '';\n } else {\n obj[decodeURIComponent(pair.slice(0, pos))] = decodeURIComponent(pair.slice(pos + 1));\n }\n }\n return obj;\n}\n/**\n * Expose parser.\n */\n\nrequest.parseString = parseString;\n/**\n * Default MIME type map.\n *\n * superagent.types.xml = 'application/xml';\n *\n */\n\nrequest.types = {\n html: 'text/html',\n json: 'application/json',\n xml: 'text/xml',\n urlencoded: 'application/x-www-form-urlencoded',\n form: 'application/x-www-form-urlencoded',\n 'form-data': 'application/x-www-form-urlencoded'\n};\n/**\n * Default serialization map.\n *\n * superagent.serialize['application/xml'] = function(obj){\n * return 'generated xml here';\n * };\n *\n */\n\nrequest.serialize = {\n 'application/x-www-form-urlencoded': serialize,\n 'application/json': safeStringify\n};\n/**\n * Default parsers.\n *\n * superagent.parse['application/xml'] = function(str){\n * return { object parsed from str };\n * };\n *\n */\n\nrequest.parse = {\n 'application/x-www-form-urlencoded': parseString,\n 'application/json': JSON.parse\n};\n/**\n * Parse the given header `str` into\n * an object containing the mapped fields.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nfunction parseHeader(str) {\n var lines = str.split(/\\r?\\n/);\n var fields = {};\n var index;\n var line;\n var field;\n var val;\n for (var i = 0, len = lines.length; i < len; ++i) {\n line = lines[i];\n index = line.indexOf(':');\n if (index === -1) {\n // could be empty line, just skip it\n continue;\n }\n field = line.slice(0, index).toLowerCase();\n val = trim(line.slice(index + 1));\n fields[field] = val;\n }\n return fields;\n}\n/**\n * Check if `mime` is json or has +json structured syntax suffix.\n *\n * @param {String} mime\n * @return {Boolean}\n * @api private\n */\n\nfunction isJSON(mime) {\n // should match /json or +json\n // but not /json-seq\n return /[/+]json($|[^-\\w])/.test(mime);\n}\n/**\n * Initialize a new `Response` with the given `xhr`.\n *\n * - set flags (.ok, .error, etc)\n * - parse header\n *\n * Examples:\n *\n * Aliasing `superagent` as `request` is nice:\n *\n * request = superagent;\n *\n * We can use the promise-like API, or pass callbacks:\n *\n * request.get('/').end(function(res){});\n * request.get('/', function(res){});\n *\n * Sending data can be chained:\n *\n * request\n * .post('/user')\n * .send({ name: 'tj' })\n * .end(function(res){});\n *\n * Or passed to `.send()`:\n *\n * request\n * .post('/user')\n * .send({ name: 'tj' }, function(res){});\n *\n * Or passed to `.post()`:\n *\n * request\n * .post('/user', { name: 'tj' })\n * .end(function(res){});\n *\n * Or further reduced to a single call for simple cases:\n *\n * request\n * .post('/user', { name: 'tj' }, function(res){});\n *\n * @param {XMLHTTPRequest} xhr\n * @param {Object} options\n * @api private\n */\n\nfunction Response(req) {\n this.req = req;\n this.xhr = this.req.xhr; // responseText is accessible only if responseType is '' or 'text' and on older browsers\n\n this.text = this.req.method !== 'HEAD' && (this.xhr.responseType === '' || this.xhr.responseType === 'text') || typeof this.xhr.responseType === 'undefined' ? this.xhr.responseText : null;\n this.statusText = this.req.xhr.statusText;\n var status = this.xhr.status; // handle IE9 bug: http://stackoverflow.com/questions/10046972/msie-returns-status-code-of-1223-for-ajax-request\n\n if (status === 1223) {\n status = 204;\n }\n this._setStatusProperties(status);\n this.headers = parseHeader(this.xhr.getAllResponseHeaders());\n this.header = this.headers; // getAllResponseHeaders sometimes falsely returns \"\" for CORS requests, but\n // getResponseHeader still works. so we get content-type even if getting\n // other headers fails.\n\n this.header['content-type'] = this.xhr.getResponseHeader('content-type');\n this._setHeaderProperties(this.header);\n if (this.text === null && req._responseType) {\n this.body = this.xhr.response;\n } else {\n this.body = this.req.method === 'HEAD' ? null : this._parseBody(this.text ? this.text : this.xhr.response);\n }\n} // eslint-disable-next-line new-cap\n\nResponseBase(Response.prototype);\n/**\n * Parse the given body `str`.\n *\n * Used for auto-parsing of bodies. Parsers\n * are defined on the `superagent.parse` object.\n *\n * @param {String} str\n * @return {Mixed}\n * @api private\n */\n\nResponse.prototype._parseBody = function (str) {\n var parse = request.parse[this.type];\n if (this.req._parser) {\n return this.req._parser(this, str);\n }\n if (!parse && isJSON(this.type)) {\n parse = request.parse['application/json'];\n }\n return parse && str && (str.length > 0 || str instanceof Object) ? parse(str) : null;\n};\n/**\n * Return an `Error` representative of this response.\n *\n * @return {Error}\n * @api public\n */\n\nResponse.prototype.toError = function () {\n var req = this.req;\n var method = req.method;\n var url = req.url;\n var msg = \"cannot \".concat(method, \" \").concat(url, \" (\").concat(this.status, \")\");\n var err = new Error(msg);\n err.status = this.status;\n err.method = method;\n err.url = url;\n return err;\n};\n/**\n * Expose `Response`.\n */\n\nrequest.Response = Response;\n/**\n * Initialize a new `Request` with the given `method` and `url`.\n *\n * @param {String} method\n * @param {String} url\n * @api public\n */\n\nfunction Request(method, url) {\n var self = this;\n this._query = this._query || [];\n this.method = method;\n this.url = url;\n this.header = {}; // preserves header name case\n\n this._header = {}; // coerces header names to lowercase\n\n this.on('end', function () {\n var err = null;\n var res = null;\n try {\n res = new Response(self);\n } catch (err_) {\n err = new Error('Parser is unable to parse the response');\n err.parse = true;\n err.original = err_; // issue #675: return the raw response if the response parsing fails\n\n if (self.xhr) {\n // ie9 doesn't have 'response' property\n err.rawResponse = typeof self.xhr.responseType === 'undefined' ? self.xhr.responseText : self.xhr.response; // issue #876: return the http status code if the response parsing fails\n\n err.status = self.xhr.status ? self.xhr.status : null;\n err.statusCode = err.status; // backwards-compat only\n } else {\n err.rawResponse = null;\n err.status = null;\n }\n return self.callback(err);\n }\n self.emit('response', res);\n var new_err;\n try {\n if (!self._isResponseOK(res)) {\n new_err = new Error(res.statusText || res.text || 'Unsuccessful HTTP response');\n }\n } catch (err_) {\n new_err = err_; // ok() callback can throw\n } // #1000 don't catch errors from the callback to avoid double calling it\n\n if (new_err) {\n new_err.original = err;\n new_err.response = res;\n new_err.status = res.status;\n self.callback(new_err, res);\n } else {\n self.callback(null, res);\n }\n });\n}\n/**\n * Mixin `Emitter` and `RequestBase`.\n */\n// eslint-disable-next-line new-cap\n\nEmitter(Request.prototype); // eslint-disable-next-line new-cap\n\nRequestBase(Request.prototype);\n/**\n * Set Content-Type to `type`, mapping values from `request.types`.\n *\n * Examples:\n *\n * superagent.types.xml = 'application/xml';\n *\n * request.post('/')\n * .type('xml')\n * .send(xmlstring)\n * .end(callback);\n *\n * request.post('/')\n * .type('application/xml')\n * .send(xmlstring)\n * .end(callback);\n *\n * @param {String} type\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.type = function (type) {\n this.set('Content-Type', request.types[type] || type);\n return this;\n};\n/**\n * Set Accept to `type`, mapping values from `request.types`.\n *\n * Examples:\n *\n * superagent.types.json = 'application/json';\n *\n * request.get('/agent')\n * .accept('json')\n * .end(callback);\n *\n * request.get('/agent')\n * .accept('application/json')\n * .end(callback);\n *\n * @param {String} accept\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.accept = function (type) {\n this.set('Accept', request.types[type] || type);\n return this;\n};\n/**\n * Set Authorization field value with `user` and `pass`.\n *\n * @param {String} user\n * @param {String} [pass] optional in case of using 'bearer' as type\n * @param {Object} options with 'type' property 'auto', 'basic' or 'bearer' (default 'basic')\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.auth = function (user, pass, options) {\n if (arguments.length === 1) pass = '';\n if (_typeof(pass) === 'object' && pass !== null) {\n // pass is optional and can be replaced with options\n options = pass;\n pass = '';\n }\n if (!options) {\n options = {\n type: typeof btoa === 'function' ? 'basic' : 'auto'\n };\n }\n var encoder = function encoder(string) {\n if (typeof btoa === 'function') {\n return btoa(string);\n }\n throw new Error('Cannot use basic auth, btoa is not a function');\n };\n return this._auth(user, pass, options, encoder);\n};\n/**\n * Add query-string `val`.\n *\n * Examples:\n *\n * request.get('/shoes')\n * .query('size=10')\n * .query({ color: 'blue' })\n *\n * @param {Object|String} val\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.query = function (val) {\n if (typeof val !== 'string') val = serialize(val);\n if (val) this._query.push(val);\n return this;\n};\n/**\n * Queue the given `file` as an attachment to the specified `field`,\n * with optional `options` (or filename).\n *\n * ``` js\n * request.post('/upload')\n * .attach('content', new Blob(['<a id=\"a\"><b id=\"b\">hey!</b></a>'], { type: \"text/html\"}))\n * .end(callback);\n * ```\n *\n * @param {String} field\n * @param {Blob|File} file\n * @param {String|Object} options\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.attach = function (field, file, options) {\n if (file) {\n if (this._data) {\n throw new Error(\"superagent can't mix .send() and .attach()\");\n }\n this._getFormData().append(field, file, options || file.name);\n }\n return this;\n};\nRequest.prototype._getFormData = function () {\n if (!this._formData) {\n this._formData = new root.FormData();\n }\n return this._formData;\n};\n/**\n * Invoke the callback with `err` and `res`\n * and handle arity check.\n *\n * @param {Error} err\n * @param {Response} res\n * @api private\n */\n\nRequest.prototype.callback = function (err, res) {\n if (this._shouldRetry(err, res)) {\n return this._retry();\n }\n var fn = this._callback;\n this.clearTimeout();\n if (err) {\n if (this._maxRetries) err.retries = this._retries - 1;\n this.emit('error', err);\n }\n fn(err, res);\n};\n/**\n * Invoke callback with x-domain error.\n *\n * @api private\n */\n\nRequest.prototype.crossDomainError = function () {\n var err = new Error('Request has been terminated\\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.');\n err.crossDomain = true;\n err.status = this.status;\n err.method = this.method;\n err.url = this.url;\n this.callback(err);\n}; // This only warns, because the request is still likely to work\n\nRequest.prototype.agent = function () {\n console.warn('This is not supported in browser version of superagent');\n return this;\n};\nRequest.prototype.ca = Request.prototype.agent;\nRequest.prototype.buffer = Request.prototype.ca; // This throws, because it can't send/receive data as expected\n\nRequest.prototype.write = function () {\n throw new Error('Streaming is not supported in browser version of superagent');\n};\nRequest.prototype.pipe = Request.prototype.write;\n/**\n * Check if `obj` is a host object,\n * we don't want to serialize these :)\n *\n * @param {Object} obj host object\n * @return {Boolean} is a host object\n * @api private\n */\n\nRequest.prototype._isHost = function (obj) {\n // Native objects stringify to [object File], [object Blob], [object FormData], etc.\n return obj && _typeof(obj) === 'object' && !Array.isArray(obj) && Object.prototype.toString.call(obj) !== '[object Object]';\n};\n/**\n * Initiate request, invoking callback `fn(res)`\n * with an instanceof `Response`.\n *\n * @param {Function} fn\n * @return {Request} for chaining\n * @api public\n */\n\nRequest.prototype.end = function (fn) {\n if (this._endCalled) {\n console.warn('Warning: .end() was called twice. This is not supported in superagent');\n }\n this._endCalled = true; // store callback\n\n this._callback = fn || noop; // querystring\n\n this._finalizeQueryString();\n this._end();\n};\nRequest.prototype._setUploadTimeout = function () {\n var self = this; // upload timeout it's wokrs only if deadline timeout is off\n\n if (this._uploadTimeout && !this._uploadTimeoutTimer) {\n this._uploadTimeoutTimer = setTimeout(function () {\n self._timeoutError('Upload timeout of ', self._uploadTimeout, 'ETIMEDOUT');\n }, this._uploadTimeout);\n }\n}; // eslint-disable-next-line complexity\n\nRequest.prototype._end = function () {\n if (this._aborted) return this.callback(new Error('The request has been aborted even before .end() was called'));\n var self = this;\n this.xhr = request.getXHR();\n var xhr = this.xhr;\n var data = this._formData || this._data;\n this._setTimeouts(); // state change\n\n xhr.onreadystatechange = function () {\n var readyState = xhr.readyState;\n if (readyState >= 2 && self._responseTimeoutTimer) {\n clearTimeout(self._responseTimeoutTimer);\n }\n if (readyState !== 4) {\n return;\n } // In IE9, reads to any property (e.g. status) off of an aborted XHR will\n // result in the error \"Could not complete the operation due to error c00c023f\"\n\n var status;\n try {\n status = xhr.status;\n } catch (_unused5) {\n status = 0;\n }\n if (!status) {\n if (self.timedout || self._aborted) return;\n return self.crossDomainError();\n }\n self.emit('end');\n }; // progress\n\n var handleProgress = function handleProgress(direction, e) {\n if (e.total > 0) {\n e.percent = e.loaded / e.total * 100;\n if (e.percent === 100) {\n clearTimeout(self._uploadTimeoutTimer);\n }\n }\n e.direction = direction;\n self.emit('progress', e);\n };\n if (this.hasListeners('progress')) {\n try {\n xhr.addEventListener('progress', handleProgress.bind(null, 'download'));\n if (xhr.upload) {\n xhr.upload.addEventListener('progress', handleProgress.bind(null, 'upload'));\n }\n } catch (_unused6) {// Accessing xhr.upload fails in IE from a web worker, so just pretend it doesn't exist.\n // Reported here:\n // https://connect.microsoft.com/IE/feedback/details/837245/xmlhttprequest-upload-throws-invalid-argument-when-used-from-web-worker-context\n }\n }\n if (xhr.upload) {\n this._setUploadTimeout();\n } // initiate request\n\n try {\n if (this.username && this.password) {\n xhr.open(this.method, this.url, true, this.username, this.password);\n } else {\n xhr.open(this.method, this.url, true);\n }\n } catch (err) {\n // see #1149\n return this.callback(err);\n } // CORS\n\n if (this._withCredentials) xhr.withCredentials = true; // body\n\n if (!this._formData && this.method !== 'GET' && this.method !== 'HEAD' && typeof data !== 'string' && !this._isHost(data)) {\n // serialize stuff\n var contentType = this._header['content-type'];\n var _serialize = this._serializer || request.serialize[contentType ? contentType.split(';')[0] : ''];\n if (!_serialize && isJSON(contentType)) {\n _serialize = request.serialize['application/json'];\n }\n if (_serialize) data = _serialize(data);\n } // set header fields\n\n for (var field in this.header) {\n if (this.header[field] === null) continue;\n if (Object.prototype.hasOwnProperty.call(this.header, field)) xhr.setRequestHeader(field, this.header[field]);\n }\n if (this._responseType) {\n xhr.responseType = this._responseType;\n } // send stuff\n\n this.emit('request', this); // IE11 xhr.send(undefined) sends 'undefined' string as POST payload (instead of nothing)\n // We need null here if data is undefined\n\n xhr.send(typeof data === 'undefined' ? null : data);\n};\nrequest.agent = function () {\n return new Agent();\n};\n['GET', 'POST', 'OPTIONS', 'PATCH', 'PUT', 'DELETE'].forEach(function (method) {\n Agent.prototype[method.toLowerCase()] = function (url, fn) {\n var req = new request.Request(method, url);\n this._setDefaults(req);\n if (fn) {\n req.end(fn);\n }\n return req;\n };\n});\nAgent.prototype.del = Agent.prototype.delete;\n/**\n * GET `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} [data] or fn\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nrequest.get = function (url, data, fn) {\n var req = request('GET', url);\n if (typeof data === 'function') {\n fn = data;\n data = null;\n }\n if (data) req.query(data);\n if (fn) req.end(fn);\n return req;\n};\n/**\n * HEAD `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} [data] or fn\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nrequest.head = function (url, data, fn) {\n var req = request('HEAD', url);\n if (typeof data === 'function') {\n fn = data;\n data = null;\n }\n if (data) req.query(data);\n if (fn) req.end(fn);\n return req;\n};\n/**\n * OPTIONS query to `url` with optional callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} [data] or fn\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nrequest.options = function (url, data, fn) {\n var req = request('OPTIONS', url);\n if (typeof data === 'function') {\n fn = data;\n data = null;\n }\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n/**\n * DELETE `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed} [data]\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nfunction del(url, data, fn) {\n var req = request('DELETE', url);\n if (typeof data === 'function') {\n fn = data;\n data = null;\n }\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n}\nrequest.del = del;\nrequest.delete = del;\n/**\n * PATCH `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed} [data]\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nrequest.patch = function (url, data, fn) {\n var req = request('PATCH', url);\n if (typeof data === 'function') {\n fn = data;\n data = null;\n }\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n/**\n * POST `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed} [data]\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nrequest.post = function (url, data, fn) {\n var req = request('POST', url);\n if (typeof data === 'function') {\n fn = data;\n data = null;\n }\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n/**\n * PUT `url` with optional `data` and callback `fn(res)`.\n *\n * @param {String} url\n * @param {Mixed|Function} [data] or fn\n * @param {Function} [fn]\n * @return {Request}\n * @api public\n */\n\nrequest.put = function (url, data, fn) {\n var req = request('PUT', url);\n if (typeof data === 'function') {\n fn = data;\n data = null;\n }\n if (data) req.send(data);\n if (fn) req.end(fn);\n return req;\n};\n\n//# sourceURL=webpack://Ntnx/./node_modules/superagent/lib/client.js?\n}");
82
+
83
+ /***/ },
84
+
85
+ /***/ "./node_modules/superagent/lib/is-object.js"
86
+ /*!**************************************************!*\
87
+ !*** ./node_modules/superagent/lib/is-object.js ***!
88
+ \**************************************************/
89
+ (module) {
90
+
91
+ "use strict";
92
+ eval("{\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n return _typeof(obj);\n}\n\n/**\n * Check if `obj` is an object.\n *\n * @param {Object} obj\n * @return {Boolean}\n * @api private\n */\nfunction isObject(obj) {\n return obj !== null && _typeof(obj) === 'object';\n}\nmodule.exports = isObject;\n\n//# sourceURL=webpack://Ntnx/./node_modules/superagent/lib/is-object.js?\n}");
93
+
94
+ /***/ },
95
+
96
+ /***/ "./node_modules/superagent/lib/request-base.js"
97
+ /*!*****************************************************!*\
98
+ !*** ./node_modules/superagent/lib/request-base.js ***!
99
+ \*****************************************************/
100
+ (module, __unused_webpack_exports, __webpack_require__) {
101
+
102
+ "use strict";
103
+ eval("{\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n return _typeof(obj);\n}\n\n/**\n * Module of mixed-in functions shared between node and client code\n */\nvar isObject = __webpack_require__(/*! ./is-object */ \"./node_modules/superagent/lib/is-object.js\");\n/**\n * Expose `RequestBase`.\n */\n\nmodule.exports = RequestBase;\n/**\n * Initialize a new `RequestBase`.\n *\n * @api public\n */\n\nfunction RequestBase(obj) {\n if (obj) return mixin(obj);\n}\n/**\n * Mixin the prototype properties.\n *\n * @param {Object} obj\n * @return {Object}\n * @api private\n */\n\nfunction mixin(obj) {\n for (var key in RequestBase.prototype) {\n if (Object.prototype.hasOwnProperty.call(RequestBase.prototype, key)) obj[key] = RequestBase.prototype[key];\n }\n return obj;\n}\n/**\n * Clear previous timeout.\n *\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.clearTimeout = function () {\n clearTimeout(this._timer);\n clearTimeout(this._responseTimeoutTimer);\n clearTimeout(this._uploadTimeoutTimer);\n delete this._timer;\n delete this._responseTimeoutTimer;\n delete this._uploadTimeoutTimer;\n return this;\n};\n/**\n * Override default response body parser\n *\n * This function will be called to convert incoming data into request.body\n *\n * @param {Function}\n * @api public\n */\n\nRequestBase.prototype.parse = function (fn) {\n this._parser = fn;\n return this;\n};\n/**\n * Set format of binary response body.\n * In browser valid formats are 'blob' and 'arraybuffer',\n * which return Blob and ArrayBuffer, respectively.\n *\n * In Node all values result in Buffer.\n *\n * Examples:\n *\n * req.get('/')\n * .responseType('blob')\n * .end(callback);\n *\n * @param {String} val\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.responseType = function (val) {\n this._responseType = val;\n return this;\n};\n/**\n * Override default request body serializer\n *\n * This function will be called to convert data set via .send or .attach into payload to send\n *\n * @param {Function}\n * @api public\n */\n\nRequestBase.prototype.serialize = function (fn) {\n this._serializer = fn;\n return this;\n};\n/**\n * Set timeouts.\n *\n * - response timeout is time between sending request and receiving the first byte of the response. Includes DNS and connection time.\n * - deadline is the time from start of the request to receiving response body in full. If the deadline is too short large files may not load at all on slow connections.\n * - upload is the time since last bit of data was sent or received. This timeout works only if deadline timeout is off\n *\n * Value of 0 or false means no timeout.\n *\n * @param {Number|Object} ms or {response, deadline}\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.timeout = function (options) {\n if (!options || _typeof(options) !== 'object') {\n this._timeout = options;\n this._responseTimeout = 0;\n this._uploadTimeout = 0;\n return this;\n }\n for (var option in options) {\n if (Object.prototype.hasOwnProperty.call(options, option)) {\n switch (option) {\n case 'deadline':\n this._timeout = options.deadline;\n break;\n case 'response':\n this._responseTimeout = options.response;\n break;\n case 'upload':\n this._uploadTimeout = options.upload;\n break;\n default:\n console.warn('Unknown timeout option', option);\n }\n }\n }\n return this;\n};\n/**\n * Set number of retry attempts on error.\n *\n * Failed requests will be retried 'count' times if timeout or err.code >= 500.\n *\n * @param {Number} count\n * @param {Function} [fn]\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.retry = function (count, fn) {\n // Default to 1 if no count passed or true\n if (arguments.length === 0 || count === true) count = 1;\n if (count <= 0) count = 0;\n this._maxRetries = count;\n this._retries = 0;\n this._retryCallback = fn;\n return this;\n};\nvar ERROR_CODES = ['ECONNRESET', 'ETIMEDOUT', 'EADDRINFO', 'ESOCKETTIMEDOUT'];\n/**\n * Determine if a request should be retried.\n * (Borrowed from segmentio/superagent-retry)\n *\n * @param {Error} err an error\n * @param {Response} [res] response\n * @returns {Boolean} if segment should be retried\n */\n\nRequestBase.prototype._shouldRetry = function (err, res) {\n if (!this._maxRetries || this._retries++ >= this._maxRetries) {\n return false;\n }\n if (this._retryCallback) {\n try {\n var override = this._retryCallback(err, res);\n if (override === true) return true;\n if (override === false) return false; // undefined falls back to defaults\n } catch (err_) {\n console.error(err_);\n }\n }\n if (res && res.status && res.status >= 500 && res.status !== 501) return true;\n if (err) {\n if (err.code && ERROR_CODES.includes(err.code)) return true; // Superagent timeout\n\n if (err.timeout && err.code === 'ECONNABORTED') return true;\n if (err.crossDomain) return true;\n }\n return false;\n};\n/**\n * Retry request\n *\n * @return {Request} for chaining\n * @api private\n */\n\nRequestBase.prototype._retry = function () {\n this.clearTimeout(); // node\n\n if (this.req) {\n this.req = null;\n this.req = this.request();\n }\n this._aborted = false;\n this.timedout = false;\n this.timedoutError = null;\n return this._end();\n};\n/**\n * Promise support\n *\n * @param {Function} resolve\n * @param {Function} [reject]\n * @return {Request}\n */\n\nRequestBase.prototype.then = function (resolve, reject) {\n var _this = this;\n if (!this._fullfilledPromise) {\n var self = this;\n if (this._endCalled) {\n console.warn('Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises');\n }\n this._fullfilledPromise = new Promise(function (resolve, reject) {\n self.on('abort', function () {\n if (_this._maxRetries && _this._maxRetries > _this._retries) {\n return;\n }\n if (_this.timedout && _this.timedoutError) {\n reject(_this.timedoutError);\n return;\n }\n var err = new Error('Aborted');\n err.code = 'ABORTED';\n err.status = _this.status;\n err.method = _this.method;\n err.url = _this.url;\n reject(err);\n });\n self.end(function (err, res) {\n if (err) reject(err);else resolve(res);\n });\n });\n }\n return this._fullfilledPromise.then(resolve, reject);\n};\nRequestBase.prototype.catch = function (cb) {\n return this.then(undefined, cb);\n};\n/**\n * Allow for extension\n */\n\nRequestBase.prototype.use = function (fn) {\n fn(this);\n return this;\n};\nRequestBase.prototype.ok = function (cb) {\n if (typeof cb !== 'function') throw new Error('Callback required');\n this._okCallback = cb;\n return this;\n};\nRequestBase.prototype._isResponseOK = function (res) {\n if (!res) {\n return false;\n }\n if (this._okCallback) {\n return this._okCallback(res);\n }\n return res.status >= 200 && res.status < 300;\n};\n/**\n * Get request header `field`.\n * Case-insensitive.\n *\n * @param {String} field\n * @return {String}\n * @api public\n */\n\nRequestBase.prototype.get = function (field) {\n return this._header[field.toLowerCase()];\n};\n/**\n * Get case-insensitive header `field` value.\n * This is a deprecated internal API. Use `.get(field)` instead.\n *\n * (getHeader is no longer used internally by the superagent code base)\n *\n * @param {String} field\n * @return {String}\n * @api private\n * @deprecated\n */\n\nRequestBase.prototype.getHeader = RequestBase.prototype.get;\n/**\n * Set header `field` to `val`, or multiple fields with one object.\n * Case-insensitive.\n *\n * Examples:\n *\n * req.get('/')\n * .set('Accept', 'application/json')\n * .set('X-API-Key', 'foobar')\n * .end(callback);\n *\n * req.get('/')\n * .set({ Accept: 'application/json', 'X-API-Key': 'foobar' })\n * .end(callback);\n *\n * @param {String|Object} field\n * @param {String} val\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.set = function (field, val) {\n if (isObject(field)) {\n for (var key in field) {\n if (Object.prototype.hasOwnProperty.call(field, key)) this.set(key, field[key]);\n }\n return this;\n }\n this._header[field.toLowerCase()] = val;\n this.header[field] = val;\n return this;\n};\n/**\n * Remove header `field`.\n * Case-insensitive.\n *\n * Example:\n *\n * req.get('/')\n * .unset('User-Agent')\n * .end(callback);\n *\n * @param {String} field field name\n */\n\nRequestBase.prototype.unset = function (field) {\n delete this._header[field.toLowerCase()];\n delete this.header[field];\n return this;\n};\n/**\n * Write the field `name` and `val`, or multiple fields with one object\n * for \"multipart/form-data\" request bodies.\n *\n * ``` js\n * request.post('/upload')\n * .field('foo', 'bar')\n * .end(callback);\n *\n * request.post('/upload')\n * .field({ foo: 'bar', baz: 'qux' })\n * .end(callback);\n * ```\n *\n * @param {String|Object} name name of field\n * @param {String|Blob|File|Buffer|fs.ReadStream} val value of field\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.field = function (name, val) {\n // name should be either a string or an object.\n if (name === null || undefined === name) {\n throw new Error('.field(name, val) name can not be empty');\n }\n if (this._data) {\n throw new Error(\".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()\");\n }\n if (isObject(name)) {\n for (var key in name) {\n if (Object.prototype.hasOwnProperty.call(name, key)) this.field(key, name[key]);\n }\n return this;\n }\n if (Array.isArray(val)) {\n for (var i in val) {\n if (Object.prototype.hasOwnProperty.call(val, i)) this.field(name, val[i]);\n }\n return this;\n } // val should be defined now\n\n if (val === null || undefined === val) {\n throw new Error('.field(name, val) val can not be empty');\n }\n if (typeof val === 'boolean') {\n val = String(val);\n }\n this._getFormData().append(name, val);\n return this;\n};\n/**\n * Abort the request, and clear potential timeout.\n *\n * @return {Request} request\n * @api public\n */\n\nRequestBase.prototype.abort = function () {\n if (this._aborted) {\n return this;\n }\n this._aborted = true;\n if (this.xhr) this.xhr.abort(); // browser\n\n if (this.req) this.req.abort(); // node\n\n this.clearTimeout();\n this.emit('abort');\n return this;\n};\nRequestBase.prototype._auth = function (user, pass, options, base64Encoder) {\n switch (options.type) {\n case 'basic':\n this.set('Authorization', \"Basic \".concat(base64Encoder(\"\".concat(user, \":\").concat(pass))));\n break;\n case 'auto':\n this.username = user;\n this.password = pass;\n break;\n case 'bearer':\n // usage would be .auth(accessToken, { type: 'bearer' })\n this.set('Authorization', \"Bearer \".concat(user));\n break;\n default:\n break;\n }\n return this;\n};\n/**\n * Enable transmission of cookies with x-domain requests.\n *\n * Note that for this to work the origin must not be\n * using \"Access-Control-Allow-Origin\" with a wildcard,\n * and also must set \"Access-Control-Allow-Credentials\"\n * to \"true\".\n *\n * @api public\n */\n\nRequestBase.prototype.withCredentials = function (on) {\n // This is browser-only functionality. Node side is no-op.\n if (on === undefined) on = true;\n this._withCredentials = on;\n return this;\n};\n/**\n * Set the max redirects to `n`. Does nothing in browser XHR implementation.\n *\n * @param {Number} n\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.redirects = function (n) {\n this._maxRedirects = n;\n return this;\n};\n/**\n * Maximum size of buffered response body, in bytes. Counts uncompressed size.\n * Default 200MB.\n *\n * @param {Number} n number of bytes\n * @return {Request} for chaining\n */\n\nRequestBase.prototype.maxResponseSize = function (n) {\n if (typeof n !== 'number') {\n throw new TypeError('Invalid argument');\n }\n this._maxResponseSize = n;\n return this;\n};\n/**\n * Convert to a plain javascript object (not JSON string) of scalar properties.\n * Note as this method is designed to return a useful non-this value,\n * it cannot be chained.\n *\n * @return {Object} describing method, url, and data of this request\n * @api public\n */\n\nRequestBase.prototype.toJSON = function () {\n return {\n method: this.method,\n url: this.url,\n data: this._data,\n headers: this._header\n };\n};\n/**\n * Send `data` as the request body, defaulting the `.type()` to \"json\" when\n * an object is given.\n *\n * Examples:\n *\n * // manual json\n * request.post('/user')\n * .type('json')\n * .send('{\"name\":\"tj\"}')\n * .end(callback)\n *\n * // auto json\n * request.post('/user')\n * .send({ name: 'tj' })\n * .end(callback)\n *\n * // manual x-www-form-urlencoded\n * request.post('/user')\n * .type('form')\n * .send('name=tj')\n * .end(callback)\n *\n * // auto x-www-form-urlencoded\n * request.post('/user')\n * .type('form')\n * .send({ name: 'tj' })\n * .end(callback)\n *\n * // defaults to x-www-form-urlencoded\n * request.post('/user')\n * .send('name=tobi')\n * .send('species=ferret')\n * .end(callback)\n *\n * @param {String|Object} data\n * @return {Request} for chaining\n * @api public\n */\n// eslint-disable-next-line complexity\n\nRequestBase.prototype.send = function (data) {\n var isObj = isObject(data);\n var type = this._header['content-type'];\n if (this._formData) {\n throw new Error(\".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()\");\n }\n if (isObj && !this._data) {\n if (Array.isArray(data)) {\n this._data = [];\n } else if (!this._isHost(data)) {\n this._data = {};\n }\n } else if (data && this._data && this._isHost(this._data)) {\n throw new Error(\"Can't merge these send calls\");\n } // merge\n\n if (isObj && isObject(this._data)) {\n for (var key in data) {\n if (Object.prototype.hasOwnProperty.call(data, key)) this._data[key] = data[key];\n }\n } else if (typeof data === 'string') {\n // default to x-www-form-urlencoded\n if (!type) this.type('form');\n type = this._header['content-type'];\n if (type === 'application/x-www-form-urlencoded') {\n this._data = this._data ? \"\".concat(this._data, \"&\").concat(data) : data;\n } else {\n this._data = (this._data || '') + data;\n }\n } else {\n this._data = data;\n }\n if (!isObj || this._isHost(data)) {\n return this;\n } // default to json\n\n if (!type) this.type('json');\n return this;\n};\n/**\n * Sort `querystring` by the sort function\n *\n *\n * Examples:\n *\n * // default order\n * request.get('/user')\n * .query('name=Nick')\n * .query('search=Manny')\n * .sortQuery()\n * .end(callback)\n *\n * // customized sort function\n * request.get('/user')\n * .query('name=Nick')\n * .query('search=Manny')\n * .sortQuery(function(a, b){\n * return a.length - b.length;\n * })\n * .end(callback)\n *\n *\n * @param {Function} sort\n * @return {Request} for chaining\n * @api public\n */\n\nRequestBase.prototype.sortQuery = function (sort) {\n // _sort default to true but otherwise can be a function or boolean\n this._sort = typeof sort === 'undefined' ? true : sort;\n return this;\n};\n/**\n * Compose querystring to append to req.url\n *\n * @api private\n */\n\nRequestBase.prototype._finalizeQueryString = function () {\n var query = this._query.join('&');\n if (query) {\n this.url += (this.url.includes('?') ? '&' : '?') + query;\n }\n this._query.length = 0; // Makes the call idempotent\n\n if (this._sort) {\n var index = this.url.indexOf('?');\n if (index >= 0) {\n var queryArr = this.url.slice(index + 1).split('&');\n if (typeof this._sort === 'function') {\n queryArr.sort(this._sort);\n } else {\n queryArr.sort();\n }\n this.url = this.url.slice(0, index) + '?' + queryArr.join('&');\n }\n }\n}; // For backwards compat only\n\nRequestBase.prototype._appendQueryString = function () {\n console.warn('Unsupported');\n};\n/**\n * Invoke callback with timeout error.\n *\n * @api private\n */\n\nRequestBase.prototype._timeoutError = function (reason, timeout, errno) {\n if (this._aborted) {\n return;\n }\n var err = new Error(\"\".concat(reason + timeout, \"ms exceeded\"));\n err.timeout = timeout;\n err.code = 'ECONNABORTED';\n err.errno = errno;\n this.timedout = true;\n this.timedoutError = err;\n this.abort();\n this.callback(err);\n};\nRequestBase.prototype._setTimeouts = function () {\n var self = this; // deadline\n\n if (this._timeout && !this._timer) {\n this._timer = setTimeout(function () {\n self._timeoutError('Timeout of ', self._timeout, 'ETIME');\n }, this._timeout);\n } // response timeout\n\n if (this._responseTimeout && !this._responseTimeoutTimer) {\n this._responseTimeoutTimer = setTimeout(function () {\n self._timeoutError('Response timeout of ', self._responseTimeout, 'ETIMEDOUT');\n }, this._responseTimeout);\n }\n};\n\n//# sourceURL=webpack://Ntnx/./node_modules/superagent/lib/request-base.js?\n}");
104
+
105
+ /***/ },
106
+
107
+ /***/ "./node_modules/superagent/lib/response-base.js"
108
+ /*!******************************************************!*\
109
+ !*** ./node_modules/superagent/lib/response-base.js ***!
110
+ \******************************************************/
111
+ (module, __unused_webpack_exports, __webpack_require__) {
112
+
113
+ "use strict";
114
+ eval("{\n\n/**\n * Module dependencies.\n */\nvar utils = __webpack_require__(/*! ./utils */ \"./node_modules/superagent/lib/utils.js\");\n/**\n * Expose `ResponseBase`.\n */\n\nmodule.exports = ResponseBase;\n/**\n * Initialize a new `ResponseBase`.\n *\n * @api public\n */\n\nfunction ResponseBase(obj) {\n if (obj) return mixin(obj);\n}\n/**\n * Mixin the prototype properties.\n *\n * @param {Object} obj\n * @return {Object}\n * @api private\n */\n\nfunction mixin(obj) {\n for (var key in ResponseBase.prototype) {\n if (Object.prototype.hasOwnProperty.call(ResponseBase.prototype, key)) obj[key] = ResponseBase.prototype[key];\n }\n return obj;\n}\n/**\n * Get case-insensitive `field` value.\n *\n * @param {String} field\n * @return {String}\n * @api public\n */\n\nResponseBase.prototype.get = function (field) {\n return this.header[field.toLowerCase()];\n};\n/**\n * Set header related properties:\n *\n * - `.type` the content type without params\n *\n * A response of \"Content-Type: text/plain; charset=utf-8\"\n * will provide you with a `.type` of \"text/plain\".\n *\n * @param {Object} header\n * @api private\n */\n\nResponseBase.prototype._setHeaderProperties = function (header) {\n // TODO: moar!\n // TODO: make this a util\n // content-type\n var ct = header['content-type'] || '';\n this.type = utils.type(ct); // params\n\n var params = utils.params(ct);\n for (var key in params) {\n if (Object.prototype.hasOwnProperty.call(params, key)) this[key] = params[key];\n }\n this.links = {}; // links\n\n try {\n if (header.link) {\n this.links = utils.parseLinks(header.link);\n }\n } catch (_unused) {// ignore\n }\n};\n/**\n * Set flags such as `.ok` based on `status`.\n *\n * For example a 2xx response will give you a `.ok` of __true__\n * whereas 5xx will be __false__ and `.error` will be __true__. The\n * `.clientError` and `.serverError` are also available to be more\n * specific, and `.statusType` is the class of error ranging from 1..5\n * sometimes useful for mapping respond colors etc.\n *\n * \"sugar\" properties are also defined for common cases. Currently providing:\n *\n * - .noContent\n * - .badRequest\n * - .unauthorized\n * - .notAcceptable\n * - .notFound\n *\n * @param {Number} status\n * @api private\n */\n\nResponseBase.prototype._setStatusProperties = function (status) {\n var type = status / 100 | 0; // status / class\n\n this.statusCode = status;\n this.status = this.statusCode;\n this.statusType = type; // basics\n\n this.info = type === 1;\n this.ok = type === 2;\n this.redirect = type === 3;\n this.clientError = type === 4;\n this.serverError = type === 5;\n this.error = type === 4 || type === 5 ? this.toError() : false; // sugar\n\n this.created = status === 201;\n this.accepted = status === 202;\n this.noContent = status === 204;\n this.badRequest = status === 400;\n this.unauthorized = status === 401;\n this.notAcceptable = status === 406;\n this.forbidden = status === 403;\n this.notFound = status === 404;\n this.unprocessableEntity = status === 422;\n};\n\n//# sourceURL=webpack://Ntnx/./node_modules/superagent/lib/response-base.js?\n}");
115
+
116
+ /***/ },
117
+
118
+ /***/ "./node_modules/superagent/lib/utils.js"
119
+ /*!**********************************************!*\
120
+ !*** ./node_modules/superagent/lib/utils.js ***!
121
+ \**********************************************/
122
+ (__unused_webpack_module, exports) {
123
+
124
+ "use strict";
125
+ eval("{\n\n/**\n * Return the mime type for the given `str`.\n *\n * @param {String} str\n * @return {String}\n * @api private\n */\nexports.type = function (str) {\n return str.split(/ *; */).shift();\n};\n/**\n * Return header field parameters.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nexports.params = function (str) {\n return str.split(/ *; */).reduce(function (obj, str) {\n var parts = str.split(/ *= */);\n var key = parts.shift();\n var val = parts.shift();\n if (key && val) obj[key] = val;\n return obj;\n }, {});\n};\n/**\n * Parse Link header fields.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nexports.parseLinks = function (str) {\n return str.split(/ *, */).reduce(function (obj, str) {\n var parts = str.split(/ *; */);\n var url = parts[0].slice(1, -1);\n var rel = parts[1].split(/ *= */)[1].slice(1, -1);\n obj[rel] = url;\n return obj;\n }, {});\n};\n/**\n * Strip content related fields from `header`.\n *\n * @param {Object} header\n * @return {Object} header\n * @api private\n */\n\nexports.cleanHeader = function (header, changesOrigin) {\n delete header['content-type'];\n delete header['content-length'];\n delete header['transfer-encoding'];\n delete header.host; // secuirty\n\n if (changesOrigin) {\n delete header.authorization;\n delete header.cookie;\n }\n return header;\n};\n\n//# sourceURL=webpack://Ntnx/./node_modules/superagent/lib/utils.js?\n}");
126
+
127
+ /***/ },
128
+
129
+ /***/ "./node_modules/util/node_modules/inherits/inherits_browser.js"
130
+ /*!*********************************************************************!*\
131
+ !*** ./node_modules/util/node_modules/inherits/inherits_browser.js ***!
132
+ \*********************************************************************/
133
+ (module) {
134
+
135
+ eval("{if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor;\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor;\n var TempCtor = function () {};\n TempCtor.prototype = superCtor.prototype;\n ctor.prototype = new TempCtor();\n ctor.prototype.constructor = ctor;\n };\n}\n\n//# sourceURL=webpack://Ntnx/./node_modules/util/node_modules/inherits/inherits_browser.js?\n}");
136
+
137
+ /***/ },
138
+
139
+ /***/ "./node_modules/util/support/isBufferBrowser.js"
140
+ /*!******************************************************!*\
141
+ !*** ./node_modules/util/support/isBufferBrowser.js ***!
142
+ \******************************************************/
143
+ (module) {
144
+
145
+ eval("{module.exports = function isBuffer(arg) {\n return arg && typeof arg === 'object' && typeof arg.copy === 'function' && typeof arg.fill === 'function' && typeof arg.readUInt8 === 'function';\n};\n\n//# sourceURL=webpack://Ntnx/./node_modules/util/support/isBufferBrowser.js?\n}");
146
+
147
+ /***/ },
148
+
149
+ /***/ "./node_modules/util/util.js"
150
+ /*!***********************************!*\
151
+ !*** ./node_modules/util/util.js ***!
152
+ \***********************************/
153
+ (__unused_webpack_module, exports, __webpack_require__) {
154
+
155
+ eval("{// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar formatRegExp = /%[sdj%]/g;\nexports.format = function (f) {\n if (!isString(f)) {\n var objects = [];\n for (var i = 0; i < arguments.length; i++) {\n objects.push(inspect(arguments[i]));\n }\n return objects.join(' ');\n }\n var i = 1;\n var args = arguments;\n var len = args.length;\n var str = String(f).replace(formatRegExp, function (x) {\n if (x === '%%') return '%';\n if (i >= len) return x;\n switch (x) {\n case '%s':\n return String(args[i++]);\n case '%d':\n return Number(args[i++]);\n case '%j':\n try {\n return JSON.stringify(args[i++]);\n } catch (_) {\n return '[Circular]';\n }\n default:\n return x;\n }\n });\n for (var x = args[i]; i < len; x = args[++i]) {\n if (isNull(x) || !isObject(x)) {\n str += ' ' + x;\n } else {\n str += ' ' + inspect(x);\n }\n }\n return str;\n};\n\n// Mark that a method should not be used.\n// Returns a modified function which warns once by default.\n// If --no-deprecation is set, then it is a no-op.\nexports.deprecate = function (fn, msg) {\n // Allow for deprecating things in the process of starting up.\n if (isUndefined(__webpack_require__.g.process)) {\n return function () {\n return exports.deprecate(fn, msg).apply(this, arguments);\n };\n }\n if (process.noDeprecation === true) {\n return fn;\n }\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (process.throwDeprecation) {\n throw new Error(msg);\n } else if (process.traceDeprecation) {\n console.trace(msg);\n } else {\n console.error(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n return deprecated;\n};\nvar debugs = {};\nvar debugEnviron;\nexports.debuglog = function (set) {\n if (isUndefined(debugEnviron)) debugEnviron = process.env.NODE_DEBUG || '';\n set = set.toUpperCase();\n if (!debugs[set]) {\n if (new RegExp('\\\\b' + set + '\\\\b', 'i').test(debugEnviron)) {\n var pid = process.pid;\n debugs[set] = function () {\n var msg = exports.format.apply(exports, arguments);\n console.error('%s %d: %s', set, pid, msg);\n };\n } else {\n debugs[set] = function () {};\n }\n }\n return debugs[set];\n};\n\n/**\n * Echos the value of a value. Trys to print the value out\n * in the best way possible given the different types.\n *\n * @param {Object} obj The object to print out.\n * @param {Object} opts Optional options object that alters the output.\n */\n/* legacy: obj, showHidden, depth, colors*/\nfunction inspect(obj, opts) {\n // default options\n var ctx = {\n seen: [],\n stylize: stylizeNoColor\n };\n // legacy...\n if (arguments.length >= 3) ctx.depth = arguments[2];\n if (arguments.length >= 4) ctx.colors = arguments[3];\n if (isBoolean(opts)) {\n // legacy...\n ctx.showHidden = opts;\n } else if (opts) {\n // got an \"options\" object\n exports._extend(ctx, opts);\n }\n // set default options\n if (isUndefined(ctx.showHidden)) ctx.showHidden = false;\n if (isUndefined(ctx.depth)) ctx.depth = 2;\n if (isUndefined(ctx.colors)) ctx.colors = false;\n if (isUndefined(ctx.customInspect)) ctx.customInspect = true;\n if (ctx.colors) ctx.stylize = stylizeWithColor;\n return formatValue(ctx, obj, ctx.depth);\n}\nexports.inspect = inspect;\n\n// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics\ninspect.colors = {\n 'bold': [1, 22],\n 'italic': [3, 23],\n 'underline': [4, 24],\n 'inverse': [7, 27],\n 'white': [37, 39],\n 'grey': [90, 39],\n 'black': [30, 39],\n 'blue': [34, 39],\n 'cyan': [36, 39],\n 'green': [32, 39],\n 'magenta': [35, 39],\n 'red': [31, 39],\n 'yellow': [33, 39]\n};\n\n// Don't use 'blue' not visible on cmd.exe\ninspect.styles = {\n 'special': 'cyan',\n 'number': 'yellow',\n 'boolean': 'yellow',\n 'undefined': 'grey',\n 'null': 'bold',\n 'string': 'green',\n 'date': 'magenta',\n // \"name\": intentionally not styling\n 'regexp': 'red'\n};\nfunction stylizeWithColor(str, styleType) {\n var style = inspect.styles[styleType];\n if (style) {\n return '\\u001b[' + inspect.colors[style][0] + 'm' + str + '\\u001b[' + inspect.colors[style][1] + 'm';\n } else {\n return str;\n }\n}\nfunction stylizeNoColor(str, styleType) {\n return str;\n}\nfunction arrayToHash(array) {\n var hash = {};\n array.forEach(function (val, idx) {\n hash[val] = true;\n });\n return hash;\n}\nfunction formatValue(ctx, value, recurseTimes) {\n // Provide a hook for user-specified inspect functions.\n // Check that value is an object with an inspect function on it\n if (ctx.customInspect && value && isFunction(value.inspect) &&\n // Filter out the util module, it's inspect function is special\n value.inspect !== exports.inspect &&\n // Also filter out any prototype objects using the circular check.\n !(value.constructor && value.constructor.prototype === value)) {\n var ret = value.inspect(recurseTimes, ctx);\n if (!isString(ret)) {\n ret = formatValue(ctx, ret, recurseTimes);\n }\n return ret;\n }\n\n // Primitive types cannot have properties\n var primitive = formatPrimitive(ctx, value);\n if (primitive) {\n return primitive;\n }\n\n // Look up the keys of the object.\n var keys = Object.keys(value);\n var visibleKeys = arrayToHash(keys);\n if (ctx.showHidden) {\n keys = Object.getOwnPropertyNames(value);\n }\n\n // IE doesn't make error fields non-enumerable\n // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx\n if (isError(value) && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {\n return formatError(value);\n }\n\n // Some type of object without properties can be shortcutted.\n if (keys.length === 0) {\n if (isFunction(value)) {\n var name = value.name ? ': ' + value.name : '';\n return ctx.stylize('[Function' + name + ']', 'special');\n }\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n }\n if (isDate(value)) {\n return ctx.stylize(Date.prototype.toString.call(value), 'date');\n }\n if (isError(value)) {\n return formatError(value);\n }\n }\n var base = '',\n array = false,\n braces = ['{', '}'];\n\n // Make Array say that they are Array\n if (isArray(value)) {\n array = true;\n braces = ['[', ']'];\n }\n\n // Make functions say that they are functions\n if (isFunction(value)) {\n var n = value.name ? ': ' + value.name : '';\n base = ' [Function' + n + ']';\n }\n\n // Make RegExps say that they are RegExps\n if (isRegExp(value)) {\n base = ' ' + RegExp.prototype.toString.call(value);\n }\n\n // Make dates with properties first say the date\n if (isDate(value)) {\n base = ' ' + Date.prototype.toUTCString.call(value);\n }\n\n // Make error with message first say the error\n if (isError(value)) {\n base = ' ' + formatError(value);\n }\n if (keys.length === 0 && (!array || value.length == 0)) {\n return braces[0] + base + braces[1];\n }\n if (recurseTimes < 0) {\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n } else {\n return ctx.stylize('[Object]', 'special');\n }\n }\n ctx.seen.push(value);\n var output;\n if (array) {\n output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\n } else {\n output = keys.map(function (key) {\n return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);\n });\n }\n ctx.seen.pop();\n return reduceToSingleString(output, base, braces);\n}\nfunction formatPrimitive(ctx, value) {\n if (isUndefined(value)) return ctx.stylize('undefined', 'undefined');\n if (isString(value)) {\n var simple = '\\'' + JSON.stringify(value).replace(/^\"|\"$/g, '').replace(/'/g, \"\\\\'\").replace(/\\\\\"/g, '\"') + '\\'';\n return ctx.stylize(simple, 'string');\n }\n if (isNumber(value)) return ctx.stylize('' + value, 'number');\n if (isBoolean(value)) return ctx.stylize('' + value, 'boolean');\n // For some reason typeof null is \"object\", so special case here.\n if (isNull(value)) return ctx.stylize('null', 'null');\n}\nfunction formatError(value) {\n return '[' + Error.prototype.toString.call(value) + ']';\n}\nfunction formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\n var output = [];\n for (var i = 0, l = value.length; i < l; ++i) {\n if (hasOwnProperty(value, String(i))) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(i), true));\n } else {\n output.push('');\n }\n }\n keys.forEach(function (key) {\n if (!key.match(/^\\d+$/)) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, key, true));\n }\n });\n return output;\n}\nfunction formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\n var name, str, desc;\n desc = Object.getOwnPropertyDescriptor(value, key) || {\n value: value[key]\n };\n if (desc.get) {\n if (desc.set) {\n str = ctx.stylize('[Getter/Setter]', 'special');\n } else {\n str = ctx.stylize('[Getter]', 'special');\n }\n } else {\n if (desc.set) {\n str = ctx.stylize('[Setter]', 'special');\n }\n }\n if (!hasOwnProperty(visibleKeys, key)) {\n name = '[' + key + ']';\n }\n if (!str) {\n if (ctx.seen.indexOf(desc.value) < 0) {\n if (isNull(recurseTimes)) {\n str = formatValue(ctx, desc.value, null);\n } else {\n str = formatValue(ctx, desc.value, recurseTimes - 1);\n }\n if (str.indexOf('\\n') > -1) {\n if (array) {\n str = str.split('\\n').map(function (line) {\n return ' ' + line;\n }).join('\\n').substr(2);\n } else {\n str = '\\n' + str.split('\\n').map(function (line) {\n return ' ' + line;\n }).join('\\n');\n }\n }\n } else {\n str = ctx.stylize('[Circular]', 'special');\n }\n }\n if (isUndefined(name)) {\n if (array && key.match(/^\\d+$/)) {\n return str;\n }\n name = JSON.stringify('' + key);\n if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n name = name.substr(1, name.length - 2);\n name = ctx.stylize(name, 'name');\n } else {\n name = name.replace(/'/g, \"\\\\'\").replace(/\\\\\"/g, '\"').replace(/(^\"|\"$)/g, \"'\");\n name = ctx.stylize(name, 'string');\n }\n }\n return name + ': ' + str;\n}\nfunction reduceToSingleString(output, base, braces) {\n var numLinesEst = 0;\n var length = output.reduce(function (prev, cur) {\n numLinesEst++;\n if (cur.indexOf('\\n') >= 0) numLinesEst++;\n return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, '').length + 1;\n }, 0);\n if (length > 60) {\n return braces[0] + (base === '' ? '' : base + '\\n ') + ' ' + output.join(',\\n ') + ' ' + braces[1];\n }\n return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];\n}\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\nfunction isArray(ar) {\n return Array.isArray(ar);\n}\nexports.isArray = isArray;\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\nfunction isRegExp(re) {\n return isObject(re) && objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\nfunction isDate(d) {\n return isObject(d) && objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\nfunction isError(e) {\n return isObject(e) && (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\nfunction isPrimitive(arg) {\n return arg === null || typeof arg === 'boolean' || typeof arg === 'number' || typeof arg === 'string' || typeof arg === 'symbol' ||\n // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\nexports.isBuffer = __webpack_require__(/*! ./support/isBuffer */ \"./node_modules/util/support/isBufferBrowser.js\");\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\nfunction pad(n) {\n return n < 10 ? '0' + n.toString(10) : n.toString(10);\n}\nvar months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];\n\n// 26 Feb 16:19:34\nfunction timestamp() {\n var d = new Date();\n var time = [pad(d.getHours()), pad(d.getMinutes()), pad(d.getSeconds())].join(':');\n return [d.getDate(), months[d.getMonth()], time].join(' ');\n}\n\n// log is just a thin wrapper to console.log that prepends a timestamp\nexports.log = function () {\n console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));\n};\n\n/**\n * Inherit the prototype methods from one constructor into another.\n *\n * The Function.prototype.inherits from lang.js rewritten as a standalone\n * function (not on Function.prototype). NOTE: If this file is to be loaded\n * during bootstrapping this function needs to be rewritten using some native\n * functions as prototype setup using normal JavaScript does not work as\n * expected during bootstrapping (see mirror.js in r114903).\n *\n * @param {function} ctor Constructor function which needs to inherit the\n * prototype.\n * @param {function} superCtor Constructor function to inherit prototype from.\n */\nexports.inherits = __webpack_require__(/*! inherits */ \"./node_modules/util/node_modules/inherits/inherits_browser.js\");\nexports._extend = function (origin, add) {\n // Don't do anything if add isn't an object\n if (!add || !isObject(add)) return origin;\n var keys = Object.keys(add);\n var i = keys.length;\n while (i--) {\n origin[keys[i]] = add[keys[i]];\n }\n return origin;\n};\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\n//# sourceURL=webpack://Ntnx/./node_modules/util/util.js?\n}");
156
+
157
+ /***/ },
158
+
159
+ /***/ "./node_modules/uuid/dist/esm-browser/regex.js"
160
+ /*!*****************************************************!*\
161
+ !*** ./node_modules/uuid/dist/esm-browser/regex.js ***!
162
+ \*****************************************************/
163
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
164
+
165
+ "use strict";
166
+ 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 default export */ const __WEBPACK_DEFAULT_EXPORT__ = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i);\n\n//# sourceURL=webpack://Ntnx/./node_modules/uuid/dist/esm-browser/regex.js?\n}");
167
+
168
+ /***/ },
169
+
170
+ /***/ "./node_modules/uuid/dist/esm-browser/rng.js"
171
+ /*!***************************************************!*\
172
+ !*** ./node_modules/uuid/dist/esm-browser/rng.js ***!
173
+ \***************************************************/
174
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
175
+
176
+ "use strict";
177
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ rng)\n/* harmony export */ });\n// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nvar getRandomValues;\nvar rnds8 = new Uint8Array(16);\nfunction rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation. Also,\n // find the complete implementation of crypto (msCrypto) on IE11.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n return getRandomValues(rnds8);\n}\n\n//# sourceURL=webpack://Ntnx/./node_modules/uuid/dist/esm-browser/rng.js?\n}");
178
+
179
+ /***/ },
180
+
181
+ /***/ "./node_modules/uuid/dist/esm-browser/stringify.js"
182
+ /*!*********************************************************!*\
183
+ !*** ./node_modules/uuid/dist/esm-browser/stringify.js ***!
184
+ \*********************************************************/
185
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
186
+
187
+ "use strict";
188
+ 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 _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ \"./node_modules/uuid/dist/esm-browser/validate.js\");\n\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\nfunction stringify(arr) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!(0,_validate_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n return uuid;\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (stringify);\n\n//# sourceURL=webpack://Ntnx/./node_modules/uuid/dist/esm-browser/stringify.js?\n}");
189
+
190
+ /***/ },
191
+
192
+ /***/ "./node_modules/uuid/dist/esm-browser/v4.js"
193
+ /*!**************************************************!*\
194
+ !*** ./node_modules/uuid/dist/esm-browser/v4.js ***!
195
+ \**************************************************/
196
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
197
+
198
+ "use strict";
199
+ 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 _rng_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rng.js */ \"./node_modules/uuid/dist/esm-browser/rng.js\");\n/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ \"./node_modules/uuid/dist/esm-browser/stringify.js\");\n\n\nfunction v4(options, buf, offset) {\n options = options || {};\n var rnds = options.random || (options.rng || _rng_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n return buf;\n }\n return (0,_stringify_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(rnds);\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (v4);\n\n//# sourceURL=webpack://Ntnx/./node_modules/uuid/dist/esm-browser/v4.js?\n}");
200
+
201
+ /***/ },
202
+
203
+ /***/ "./node_modules/uuid/dist/esm-browser/validate.js"
204
+ /*!********************************************************!*\
205
+ !*** ./node_modules/uuid/dist/esm-browser/validate.js ***!
206
+ \********************************************************/
207
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
208
+
209
+ "use strict";
210
+ 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 _regex_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./regex.js */ \"./node_modules/uuid/dist/esm-browser/regex.js\");\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && _regex_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"].test(uuid);\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (validate);\n\n//# sourceURL=webpack://Ntnx/./node_modules/uuid/dist/esm-browser/validate.js?\n}");
211
+
212
+ /***/ },
213
+
214
+ /***/ "./target/generated-sources/swagger/src/ApiClient.js"
215
+ /*!***********************************************************!*\
216
+ !*** ./target/generated-sources/swagger/src/ApiClient.js ***!
217
+ \***********************************************************/
218
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
219
+
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_2__ = __webpack_require__(/*! uuid */ \"./node_modules/uuid/dist/esm-browser/v4.js\");\n/* harmony import */ var superagent_retry_delay__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! superagent-retry-delay */ \"./node_modules/superagent-retry-delay/src/index.js\");\n/* harmony import */ var superagent_retry_delay__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(superagent_retry_delay__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! https */ \"?aee4\");\n/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(https__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! fs */ \"?e583\");\n/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! path */ \"./node_modules/path/path.js\");\n/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! buffer */ \"?bdc3\");\n/* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(buffer__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _models_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_8__ = __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_9__ = __webpack_require__(/*! ./models/common/v1/config/Flag */ \"./target/generated-sources/swagger/src/models/common/v1/config/Flag.js\");\nvar _ApiClient;\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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\nsuperagent_retry_delay__WEBPACK_IMPORTED_MODULE_3___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.2.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 _host = /*#__PURE__*/new WeakMap();\nvar _negotiationCompleted = /*#__PURE__*/new WeakMap();\nvar _negotiatedVersion = /*#__PURE__*/new WeakMap();\nvar _LOG_LEVEL = /*#__PURE__*/new WeakMap();\nvar _ApiClient_brand = /*#__PURE__*/new WeakSet();\nclass ApiClient {\n /**\n * @alias module:ApiClient\n * @class\n */\n constructor() {\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, _host, void 0);\n _classPrivateFieldInitSpec(this, _negotiationCompleted, void 0);\n _classPrivateFieldInitSpec(this, _negotiatedVersion, 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 _classPrivateFieldSet(_host, this, 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\n /**\n * A boolean value that indicates whether cross-site Access-Control requests should be made using auth credentials.\n * @type {Boolean}\n * @default false\n */\n this.withCredentials = false;\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 _classPrivateFieldSet(_negotiatedVersion, this, null);\n\n /**\n * Allow SDK to fetch version info and negotiate version\n */\n this.allowVersionNegotiation = true;\n _classPrivateFieldSet(_negotiationCompleted, this, false);\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 set verifySsl(verifySsl) {\n this.requestAgent = verifySsl ? null : new (https__WEBPACK_IMPORTED_MODULE_4___default().Agent)({\n rejectUnauthorized: verifySsl\n });\n _classPrivateFieldSet(_verifySslFlag, this, verifySsl);\n }\n get verifySsl() {\n return _classPrivateFieldGet(_verifySslFlag, this);\n }\n\n /**\n * Set the hostname for base URL\n * @param {String} hostname the hostname\n */\n set host(hostname) {\n _classPrivateFieldSet(_host, this, hostname);\n // Reset negotiation flags when host changes\n _classPrivateFieldSet(_negotiationCompleted, this, false);\n _classPrivateFieldSet(_negotiatedVersion, this, null);\n }\n\n /**\n * Get the hostname for base URL\n * @returns {String} the hostname\n */\n get host() {\n return _classPrivateFieldGet(_host, this);\n }\n\n /**\n * Configure log file to write activity logs\n * @param logfile The destination file (write stream / string)\n */\n set loggerFile(logfile) {\n if (logfile !== null && typeof logfile !== 'undefined') {\n if (typeof logfile === 'string' || logfile instanceof String) {\n logfile = fs__WEBPACK_IMPORTED_MODULE_5___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 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 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 buildUrl(path, pathParams) {\n if (!path.match(/^\\//)) {\n path = '/' + path;\n }\n if (typeof _classPrivateFieldGet(_negotiatedVersion, this) !== 'undefined' && _classPrivateFieldGet(_negotiatedVersion, this) !== null && _classPrivateFieldGet(_negotiatedVersion, this).match(/v\\d+\\.\\d+(\\.[a|b]\\d+)?/) !== null && _classPrivateFieldGet(_negotiatedVersion, this) !== \"v4.2\") {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).INFO, null, \"Changing uri\", path, \"to negotiated version\", _classPrivateFieldGet(_negotiatedVersion, this));\n var uriRegExp = new RegExp(\"(?<=/[-\\\\w]+/)v\\\\d+\\\\.\\\\d+(\\\\.[a|b]\\\\d+)?(?=/.*)\", \"i\");\n path = path.replace(uriRegExp, _classPrivateFieldGet(_negotiatedVersion, this));\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 let 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, (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 * 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 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 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 addEtagToReservedMap(response, data) {\n if (response.hasOwnProperty(\"headers\") && response.headers.hasOwnProperty(\"etag\")) {\n let etagRef = response.headers.etag;\n if (data.getData() !== undefined) {\n if (Array.isArray(data.getData()) && data.getData().length > 0) {\n for (var item of data.getData()) {\n if (item.hasOwnProperty(\"$reserved\") && item.get$Reserved() !== undefined) {\n item.get$Reserved()[\"ETag\"] = etagRef;\n }\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 static getEtag(object) {\n let 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 static getValueForCaseInsensitiveKeyMatch(object, key) {\n if (object && key) {\n const searchKey = key.toLowerCase();\n const matchedKey = Object.keys(object).find(key => key.toLowerCase() === searchKey);\n return matchedKey ? object[matchedKey] : null;\n }\n return null;\n }\n\n /**\n * Get SDK's negotiated version.\n * @returns {String} negotiated version.\n */\n getNegotiatedVersion() {\n return _classPrivateFieldGet(_negotiatedVersion, this);\n }\n /**\n * Call relevant options api and negotiate version\n * Negotiated version available via getNegotiatedVersion()\n * @param {ApiClient} selfInstance\n * @param {Array.<String>} authNames An array of allowed authentication type names i.e. basicAuthScheme\n * @returns {Promise<ApiClient>} a {@link https://www.promisejs.org/|Promise}\n */\n negotiateVersion(selfInstance, authNames) {\n return new Promise(resolve => {\n if (this.allowVersionNegotiation === true && _classPrivateFieldGet(_negotiationCompleted, this) === false) {\n this.callApiInternal('/api/multidomain/unversioned/info', 'OPTIONS', {}, {}, {}, {}, null, authNames, [], ['application/json'], Object).then(({\n data,\n response\n }) => {\n if (response.status === 200 && data.hasOwnProperty(\"data\") && data.data !== null) {\n const serverVersion = data.data;\n const minimumSupportedVersion = \"v4.2\";\n\n // Check if server version is below minimum supported version\n if (_assertClassBrand(_ApiClient_brand, this, _isSmallerMinorVersion).call(this, _assertClassBrand(_ApiClient_brand, this, _getVersionDetails).call(this, serverVersion), _assertClassBrand(_ApiClient_brand, this, _getVersionDetails).call(this, minimumSupportedVersion))) {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).WARN, null, \"Server version\", serverVersion, \"is below minimum supported version\", minimumSupportedVersion, \". Version negotiation will not be performed.\");\n _classPrivateFieldSet(_negotiatedVersion, this, null);\n _classPrivateFieldSet(_negotiationCompleted, this, false);\n resolve(selfInstance);\n return;\n }\n _classPrivateFieldSet(_negotiatedVersion, this, _assertClassBrand(_ApiClient_brand, this, _performNegotiationBetweenVersions).call(this, \"v4.2\", serverVersion));\n _classPrivateFieldSet(_negotiationCompleted, this, true);\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).INFO, null, \"Negotiated Version with server :\", _classPrivateFieldGet(_negotiatedVersion, this));\n resolve(selfInstance);\n } else {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).ERROR, null, \"Could not fetch supported versions from server\");\n _classPrivateFieldSet(_negotiatedVersion, this, null);\n _classPrivateFieldSet(_negotiationCompleted, this, false);\n resolve(selfInstance);\n }\n }).catch(error => {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).ERROR, null, \"Could not fetch supported versions from server\");\n _classPrivateFieldSet(_negotiatedVersion, this, null);\n _classPrivateFieldSet(_negotiationCompleted, this, false);\n resolve(selfInstance);\n });\n } else {\n resolve(selfInstance);\n }\n });\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 /**\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 callApi(path, httpMethod, pathParams, queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, returnType) {\n return this.negotiateVersion(this, authNames).then(function (selfInstance) {\n return selfInstance.callApiInternal(path, httpMethod, pathParams, queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, returnType);\n });\n }\n callApiInternal(path, httpMethod, pathParams, queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, returnType) {\n var url = this.buildUrl(path, pathParams);\n const isBrowser = typeof window !== \"undefined\" && typeof window.document !== \"undefined\";\n let binaryMediaTypes = ['application/octet-stream', 'application/pdf', 'application/zip'];\n if (accepts && accepts.length > 0 && accepts.some(accept => binaryMediaTypes.includes(accept)) && isBrowser && this.downloadDestination) {\n return new Promise((resolve, reject) => {\n // Prepare request for browser download\n const fetchParams = _assertClassBrand(_ApiClient_brand, this, _prepareDownloadBrowserParams).call(this, url, httpMethod, queryParams, headerParams, bodyParam, authNames, contentTypes, accepts);\n fetch(fetchParams.url, fetchParams.options).then(response => {\n if (!response.ok) {\n const err = new Error(`HTTP error ${response.status}`);\n err.status = response.status;\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).ERROR, null, \"Error downloading file:\", err);\n reject(err);\n }\n if (!(this.downloadDestination instanceof WritableStream)) {\n let errMsg = \"Incompatible downloadDestination for Browser Environment, must be WritableStream\";\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).ERROR, null, errMsg);\n reject(errMsg);\n }\n const reader = response.body.getReader();\n const writer = this.downloadDestination.getWriter();\n const pump = () => {\n return reader.read().then(({\n done,\n value\n }) => {\n if (done) {\n writer.close();\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).INFO, null, \"Finished streaming response\");\n resolve({\n data: {},\n response\n });\n }\n return writer.write(value).then(pump);\n });\n };\n return pump();\n }).catch(error => {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).ERROR, null, \"Caught the following error :\", error);\n reject(error);\n });\n });\n }\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 const status = res.status;\n if (status >= 400 && !(status === 408 || status === 429 || status === 503 || status === 504)) {\n this._maxRetries = 0;\n }\n if (res.status === 401 && this.header[\"Cookie\"]) {\n this.unset(\"Cookie\");\n this._maxRetries = 1;\n }\n if (status === 429) {\n let retryAfter = res.headers['retry-after'];\n if (retryAfter) {\n let 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 let requestId = (0,uuid__WEBPACK_IMPORTED_MODULE_2__[\"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 if (!isBrowser) {\n this.downloadDestination = '.';\n request.set(_assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, {\n 'User-Agent': 'Nutanix-multidomain-js-client/4.2.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 let 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(chunk) {\n request.write(chunk);\n },\n close() {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).INFO, null, \"READABLE STREAM CLOSED\");\n },\n 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 // removed by dead control flow\n{}\n return new Promise((resolve, reject) => {\n request.on('error', err => {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, null, \"Caught the following error :\", err);\n reject(err);\n }).on('response', response => {\n _assertClassBrand(_ApiClient_brand, this, _handleApiResponseForPromise).call(this, response, path, queryParams, returnType, resolve, reject);\n });\n });\n } else if (['POST', 'PUT', 'PATCH'].includes(httpMethod.toUpperCase()) && 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 if (accept) {\n request.accept(accept);\n }\n return new Promise((resolve, reject) => {\n request.buffer(false).redirects(0).retry(this.maxRetryAttempts, this.retryInterval, []).withCredentials(this.withCredentials).on('error', err => {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, null, \"Caught the following error :\", err);\n }).end((error, response) => {\n if (error) {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, null, \"Caught error during the request!\");\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).ERROR, null, error);\n // Reset negotiation flags on 404 to allow future negotiation attempts\n if (error.status === 404) {\n _classPrivateFieldSet(_negotiationCompleted, this, false);\n _classPrivateFieldSet(_negotiatedVersion, this, null);\n }\n if (error.response !== null && typeof error.response !== 'undefined') {\n error.data = _assertClassBrand(_ApiClient_brand, this, _deserialize).call(this, error.response, returnType);\n } else {\n error.data = _assertClassBrand(_ApiClient_brand, this, _wrapErrorInResponse).call(this, error);\n }\n reject(error);\n } else {\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 let contentType = '';\n if (response.headers.hasOwnProperty('content-type')) {\n contentType = response.headers[\"content-type\"];\n }\n let fetchStream = binaryMediaTypes.includes(contentType);\n if (fetchStream) {\n /*\n * Browser environment :\n * Already handled\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 * 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 let tempFilename = this.downloadDestination + '/downloaded_file_' + Date.now() + '.txt'; // temporary filename\n let stream = fs__WEBPACK_IMPORTED_MODULE_5___default().createWriteStream(tempFilename);\n _assertClassBrand(_ApiClient_brand, this, _processDownloadedFile).call(this, 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 let tempFilename = this.downloadDestination + '/downloaded_file_' + Date.now() + '.txt'; // temporary filename\n let context = this;\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).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, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).INFO, null, \"Writing X-Redirect-Token into Cookie\");\n redirectRequest.set(\"Cookie\", response.headers[\"x-redirect-token\"]);\n }\n if (this.requestAgent) {\n redirectRequest.agent(this.requestAgent);\n }\n redirectRequest.redirects(0);\n redirectRequest.withCredentials(this.withCredentials);\n redirectRequest.buffer(false);\n let redirectedStream = fs__WEBPACK_IMPORTED_MODULE_5___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, this, _handleApiResponseForPromise).call(this, response, path, queryParams, returnType, resolve, reject);\n }\n }\n });\n });\n }\n static 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 let 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 static 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 static parseQueryParam(path, queryParams, param, defaultValue) {\n let 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 const escapedParam = param.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n const regexResult = path.match(new RegExp(`${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 static 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(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 static 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* 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 let 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_7__.Blob === 'function' && param instanceof buffer__WEBPACK_IMPORTED_MODULE_7__.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 authNames.forEach(authName => {\n var auth = this.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 (this.username || this.password) {\n request.auth(this.username || '', this.password || '');\n }\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).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, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).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, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, null, \"oauth2 applied to request\");\n break;\n default:\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).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_7__.Blob([response.text], {\n type: response.headers['content-type']\n });\n let flag = new _models_common_v1_config_Flag__WEBPACK_IMPORTED_MODULE_9__[\"default\"]();\n flag.name = \"hasError\";\n flag.value = false;\n let flags = [flag];\n let metadata = new _models_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_8__[\"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 const page = parseInt(this.constructor.parseQueryParam(path, queryParams, '$page', \"0\"), 10);\n // Retrieve current limit (results per page) number, defaults to 50\n const 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 _performNegotiationBetweenVersions(sdk, server) {\n if (!sdk || !server) {\n return sdk;\n }\n let sdkProps = _assertClassBrand(_ApiClient_brand, this, _getVersionDetails).call(this, sdk);\n let serverProps = _assertClassBrand(_ApiClient_brand, this, _getVersionDetails).call(this, server);\n // if major version is different, then do not negotiate\n // maintain sdk version\n if (!sdkProps[\"family\"] === serverProps[\"family\"]) {\n return sdk;\n }\n // if sdk version is smaller than highest server version, then maintain sdk version\n if (_assertClassBrand(_ApiClient_brand, this, _isSmallerMinorVersion).call(this, sdkProps, serverProps)) {\n return sdk;\n }\n // since sdk version is higher than highest server version, use server version\n return server;\n}\nfunction _isSmallerMinorVersion(p1, p2) {\n // if revision different, then compare revision\n if (parseInt(p1[\"revision\"]) != parseInt(p2[\"revision\"])) {\n return parseInt(p1[\"revision\"]) < parseInt(p2[\"revision\"]);\n }\n // revision is same, so compare version_type (release_type + release_type_revision)\n if (p1[\"versionType\"] === \"released\") {\n return false;\n }\n let p1ReleaseType = p1[\"versionType\"].substring(0, 1);\n let p2ReleaseType = p2[\"versionType\"].substring(0, 1);\n let p1ReleaseTypeRevision = parseInt(p1[\"versionType\"].substring(1));\n let p2ReleaseTypeRevision = p2[\"versionType\"] === \"released\" ? 0 : parseInt(p2[\"versionType\"].substring(1));\n if (p1ReleaseType === p2ReleaseType) {\n // release type is same, so compare release type revision\n return p1ReleaseTypeRevision < p2ReleaseTypeRevision;\n }\n // release type is different, so alpha must be smallest and released must be largest\n return p1ReleaseType === \"a\" || p2[\"versionType\"] === \"released\";\n}\nfunction _getVersionDetails(version) {\n let ret = {};\n if (\"unversioned\" === version) {\n ret[\"family\"] = \"unversioned\";\n ret[\"versionType\"] = \"released\";\n } else {\n let versionParts = version.toString().split('.');\n if (\"unversioned\" === versionParts[0]) {\n ret[\"family\"] = \"unversioned\";\n ret[\"versionType\"] = versionParts[1];\n } else {\n ret[\"family\"] = versionParts[0].substring(1);\n ret[\"revision\"] = versionParts[1];\n if (versionParts.length == 2) {\n ret[\"versionType\"] = \"released\";\n } else {\n ret[\"versionType\"] = versionParts[2];\n }\n }\n }\n return ret;\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 let finalCookie = \"\";\n let cookieList = response.headers[\"set-cookie\"];\n if (cookieList.length > 0) {\n // add all cookies separated by ;\n for (let cookieItem of cookieList) {\n cookieItem = cookieItem.split(\";\")[0];\n if (cookieItem.includes(\"=\")) {\n cookieItem.trim();\n finalCookie = finalCookie.concat(cookieItem).concat(\";\");\n }\n }\n // remove trailing ;\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, ...messages) {\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(message => {\n return typeof message === \"string\" ? message : mapper ? mapper(message) : JSON.stringify(message);\n });\n let message = messages.join(' ');\n message = new Date().toISOString() + ' ' + 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}\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 let output = '\\n';\n if (obj) {\n Object.keys(obj).forEach(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,\n 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,\n response\n });\n } else {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).ERROR, null, data);\n reject({\n ...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 _prepareDownloadBrowserParams(url, httpMethod, queryParams, headerParams, bodyParam, authNames, contentTypes, accepts) {\n let authHeaders = {};\n\n // Apply authentication logic\n authNames.forEach(authName => {\n const auth = this.authentications[authName];\n switch (auth.type) {\n case 'basic':\n let username = '';\n let password = '';\n if (auth.username || auth.password) {\n username = auth.username || '';\n password = auth.password || '';\n } else if (this.username || this.password) {\n username = this.username || '';\n password = this.password || '';\n }\n if (username || password) {\n const credentials = btoa(`${username}:${password}`);\n authHeaders['Authorization'] = `Basic ${credentials}`;\n }\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, null, \"Basic Auth applied to request\");\n break;\n case 'apiKey':\n if (auth.apiKey) {\n let apiKeyValue = '';\n if (auth.apiKeyPrefix) {\n apiKeyValue = auth.apiKeyPrefix + ' ' + auth.apiKey;\n } else {\n apiKeyValue = auth.apiKey;\n }\n if (auth['in'] === 'header') {\n authHeaders[auth.name] = 'Bearer ' + apiKeyValue;\n } else if (auth['in'] === 'query') {\n queryParams[auth.name] = apiKeyValue;\n }\n }\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, null, \"apiKey applied to request\");\n break;\n case 'oauth2':\n if (auth.accessToken) {\n authHeaders['Authorization'] = 'Bearer ' + auth.accessToken;\n }\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, null, \"oauth2 applied to request\");\n break;\n default:\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).ERROR, null, \"Unknown authentication type:\", auth.type);\n throw new Error('Unknown authentication type: ' + auth.type);\n }\n });\n\n // set query parameters\n if (httpMethod.toUpperCase() === 'GET' && this.cache === false) {\n queryParams['cache'] = 'false';\n }\n\n // Build URL with query parameters\n const normalizedParams = _assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, queryParams);\n const queryString = Object.keys(normalizedParams).map(key => `${encodeURIComponent(key)}=${encodeURIComponent(normalizedParams[key])}`).join('&');\n let finalUrl = url;\n if (queryString) {\n finalUrl += (finalUrl.includes('?') ? '&' : '?') + queryString;\n }\n const finalHeaders = {\n ...this.defaultHeaders,\n ..._assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, headerParams),\n ...authHeaders\n };\n\n // set header parameters\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 let requestId = (0,uuid__WEBPACK_IMPORTED_MODULE_2__[\"default\"])();\n finalHeaders['NTNX-Request-Id'] = requestId;\n }\n\n //Add cookies if they exist\n if (_classPrivateFieldGet(_cookie, this) != null) {\n finalHeaders['Cookie'] = _assertClassBrand(_ApiClient_brand, this, _normalizeParams).call(this, {\n 'Cookie': _classPrivateFieldGet(_cookie, this)\n });\n }\n\n // Set content type\n var contentType = headerParams.hasOwnProperty(\"Content-Type\") ? headerParams[\"Content-Type\"] : _assertClassBrand(_ApiClient_brand, this, _jsonPreferredMime).call(this, contentTypes);\n finalHeaders['Content-Type'] = contentType;\n\n // Set Accept Header\n var accept = headerParams.hasOwnProperty(\"Accept\") && headerParams[\"Accept\"] != undefined ? headerParams[\"Accept\"] : accepts.join(', ');\n if (accept) {\n finalHeaders['Accept'] = accept;\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 :\", finalHeaders);\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).DEBUG, null, \"Request Body :\", bodyParam || \"\");\n return {\n url: finalUrl,\n options: {\n method: httpMethod,\n headers: finalHeaders,\n body: bodyParam,\n credentials: this.withCredentials ? 'include' : 'same-origin'\n }\n };\n}\nfunction _processDownloadedFile(response, stream, tempFilename, resolve, reject, returnType) {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).INFO, null, \"Streaming response to : \", tempFilename);\n try {\n response.on('data', 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 let data = new returnType();\n // Fetch filename\n let filename = \"\";\n if (typeof response.headers['content-disposition'] !== 'undefined' && response.headers['content-disposition'] !== null) {\n let match = response.headers['content-disposition'].match(/.*filename=\\\"(?<filename>.*)\\\".*/);\n let filepath = path__WEBPACK_IMPORTED_MODULE_6___default().parse(match.groups['filename']);\n filename = this.downloadDestination + '/' + filepath.name + '_' + Date.now() + filepath.ext;\n data.data = {\n \"path\": path__WEBPACK_IMPORTED_MODULE_6___default().parse(filename),\n $objectType: \"Path\"\n };\n let flag = new _models_common_v1_config_Flag__WEBPACK_IMPORTED_MODULE_9__[\"default\"]();\n flag.name = \"hasError\";\n flag.value = false;\n let flags = [flag];\n let metadata = new _models_common_v1_response_ApiResponseMetadata__WEBPACK_IMPORTED_MODULE_8__[\"default\"]();\n metadata.flags = flags;\n data.metadata = metadata;\n }\n response.on('end', () => {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).INFO, null, \"Finished streaming response\");\n if (filename.length !== 0) {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).INFO, null, \"Content-Disposition header found [\", filename, \"] is final filename\");\n stream.close();\n fs__WEBPACK_IMPORTED_MODULE_5___default().renameSync(tempFilename, filename);\n resolve({\n data,\n response\n });\n } else {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).ERROR, null, \"Content-Disposition header not found [\", tempFilename, \"] is final filename\");\n resolve({\n data,\n response\n });\n }\n });\n response.on('error', err => {\n _assertClassBrand(_ApiClient_brand, this, _log).call(this, _classPrivateFieldGet(_LOG_LEVEL, this).ERROR, null, \"Caught the following error :\", err);\n error.data = _assertClassBrand(_ApiClient_brand, this, _wrapErrorInResponse).call(this, error);\n reject(err);\n });\n}\nApiClient.instance = new ApiClient();\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/ApiClient.js?\n}");
222
+
223
+ /***/ },
224
+
225
+ /***/ "./target/generated-sources/swagger/src/Paginable.js"
226
+ /*!***********************************************************!*\
227
+ !*** ./target/generated-sources/swagger/src/Paginable.js ***!
228
+ \***********************************************************/
229
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
230
+
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\");\n/*\n * Nutanix Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-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.2.1\n*/\nclass Paginable {\n /**\n * Constructs a new <code>Paginable</code>.\n * @alias module:Paginable\n * @class\n */\n constructor() {}\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 static constructFromObject(metadata, obj) {\n if (metadata) {\n obj = obj || new Paginable();\n if (metadata.hasOwnProperty('links') && metadata['links'] !== null && metadata['links'] !== undefined) {\n for (const link of metadata['links']) {\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 }\n if (metadata.hasOwnProperty('totalAvailableResults')) {\n obj.resultsTotal = metadata['totalAvailableResults'];\n }\n }\n return obj;\n }\n\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 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 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 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 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 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 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 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 isLastPage() {\n return this.currentPage() === this.countPages() - 1;\n }\n populatePaginationMetadata(apiClient, page, resultsPerPage) {\n this.apiClient = apiClient;\n this.page = page;\n this.resultsPerPage = resultsPerPage;\n }\n _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 const postBody = {};\n const pathParams = {};\n const queryParams = {};\n const headerParams = {};\n const formParams = {};\n const authNames = [];\n const contentTypes = [];\n const accepts = ['application/json'];\n const returnType = this.constructor;\n return this.apiClient.callApi(path, 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n}\n\n/**\n* The link to first page, if any\n* @type {String}\n* @memberOf Paginable\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?\n}");
233
+
234
+ /***/ },
235
+
236
+ /***/ "./target/generated-sources/swagger/src/apis/externalrepositories-endpoints.js"
237
+ /*!*************************************************************************************!*\
238
+ !*** ./target/generated-sources/swagger/src/apis/externalrepositories-endpoints.js ***!
239
+ \*************************************************************************************/
240
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
241
+
242
+ "use strict";
243
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ExternalRepositoriesApi: () => (/* binding */ ExternalRepositoriesApi)\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_multidomain_v4_config_ListExternalRepositoriesApiResponse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../models/multidomain/v4/config/ListExternalRepositoriesApiResponse */ \"./target/generated-sources/swagger/src/models/multidomain/v4/config/ListExternalRepositoriesApiResponse.js\");\n/* harmony import */ var _models_multidomain_v4_config_CreateExternalRepositoryApiResponse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../models/multidomain/v4/config/CreateExternalRepositoryApiResponse */ \"./target/generated-sources/swagger/src/models/multidomain/v4/config/CreateExternalRepositoryApiResponse.js\");\n/* harmony import */ var _models_multidomain_v4_config_DeleteExternalRepositoryApiResponse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../models/multidomain/v4/config/DeleteExternalRepositoryApiResponse */ \"./target/generated-sources/swagger/src/models/multidomain/v4/config/DeleteExternalRepositoryApiResponse.js\");\n/* harmony import */ var _models_multidomain_v4_config_ExternalRepository__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../models/multidomain/v4/config/ExternalRepository */ \"./target/generated-sources/swagger/src/models/multidomain/v4/config/ExternalRepository.js\");\n/* harmony import */ var _models_multidomain_v4_config_GetExternalRepositoryApiResponse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../models/multidomain/v4/config/GetExternalRepositoryApiResponse */ \"./target/generated-sources/swagger/src/models/multidomain/v4/config/GetExternalRepositoryApiResponse.js\");\n/* harmony import */ var _models_multidomain_v4_config_UpdateExternalRepositoryApiResponse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../models/multidomain/v4/config/UpdateExternalRepositoryApiResponse */ \"./target/generated-sources/swagger/src/models/multidomain/v4/config/UpdateExternalRepositoryApiResponse.js\");\n/*\n * Nutanix Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * ExternalRepositories service.\n * @version 4.2.1\n * @class ExternalRepositoriesApi\n */\nclass ExternalRepositoriesApi {\n #headersToSkip;\n\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 static get ApiClient() {\n return _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient;\n }\n\n /**\n * Constructs a new ExternalRepositoriesApi. \n * @alias module:api/ExternalRepositoriesApi\n * @class\n * @param {module:ApiClient} [apiClient] Optional API client implementation to use,\n * default to {@link module:ApiClient#instance} if unspecified.\n */\n constructor(apiClient) {\n this.apiClient = apiClient || _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.instance;\n this.#headersToSkip = new Set();\n this.#headersToSkip.add('authorization');\n this.#headersToSkip.add('cookie');\n this.#headersToSkip.add('host');\n this.#headersToSkip.add('user-agent');\n }\n\n /**\n * Create an External repository.\n * Create an External repository.\n * @param { Required<Pick<ExternalRepository, 'name' | 'location'>> & Partial<ExternalRepository> } body specification\n * @param {Object} args Additional Arguments\n * @return {Promise<CreateExternalRepositoryApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateExternalRepositoryApiResponse } and HTTP response\n */\n createExternalRepository(body, ...args) {\n let argMap = args.length > 0 ? args[0] : {};\n let postBody = null;\n if (body instanceof _models_multidomain_v4_config_ExternalRepository__WEBPACK_IMPORTED_MODULE_4__[\"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 createExternalRepository\");\n }\n const pathParams = {};\n const queryParams = {};\n let headersToInclude = {};\n Object.keys(argMap).forEach(header => {\n if (!this.#headersToSkip.has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n const headerParams = {\n ...headersToInclude\n };\n const formParams = {};\n _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.addEtagReferenceToHeader(body, headerParams);\n const authNames = ['basicAuthScheme'];\n const contentTypes = ['application/json'];\n const accepts = ['application/json'];\n const returnType = _models_multidomain_v4_config_CreateExternalRepositoryApiResponse__WEBPACK_IMPORTED_MODULE_2__[\"default\"];\n return this.apiClient.callApi('/api/multidomain/v4.2/config/external-repositories', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n\n /**\n * Delete an External repository.\n * Delete an External repository by id.\n * @param { String } extId External Repository identifier.\n * @param {Object} args Additional Arguments\n * @return {Promise<DeleteExternalRepositoryApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteExternalRepositoryApiResponse } and HTTP response\n */\n deleteExternalRepositoryById(extId, ...args) {\n let argMap = args.length > 0 ? args[0] : {};\n const 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 deleteExternalRepositoryById\");\n }\n const pathParams = {\n 'extId': extId\n };\n const queryParams = {};\n let headersToInclude = {};\n Object.keys(argMap).forEach(header => {\n if (!this.#headersToSkip.has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n const headerParams = {\n ...headersToInclude\n };\n const formParams = {};\n const authNames = ['basicAuthScheme'];\n const contentTypes = [];\n const accepts = ['application/json'];\n const returnType = _models_multidomain_v4_config_DeleteExternalRepositoryApiResponse__WEBPACK_IMPORTED_MODULE_3__[\"default\"];\n return this.apiClient.callApi('/api/multidomain/v4.2/config/external-repositories/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n\n /**\n * Get an External repository by id.\n * Get an External repository by id.\n * @param { String } extId External Repository identifier.\n * @param {Object} args Additional Arguments\n * @return {Promise<GetExternalRepositoryApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetExternalRepositoryApiResponse } and HTTP response\n */\n getExternalRepositoryById(extId, ...args) {\n let argMap = args.length > 0 ? args[0] : {};\n const 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 getExternalRepositoryById\");\n }\n const pathParams = {\n 'extId': extId\n };\n const queryParams = {};\n let headersToInclude = {};\n Object.keys(argMap).forEach(header => {\n if (!this.#headersToSkip.has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n const headerParams = {\n ...headersToInclude\n };\n const formParams = {};\n const authNames = ['basicAuthScheme'];\n const contentTypes = [];\n const accepts = ['application/json'];\n const returnType = _models_multidomain_v4_config_GetExternalRepositoryApiResponse__WEBPACK_IMPORTED_MODULE_5__[\"default\"];\n return this.apiClient.callApi('/api/multidomain/v4.2/config/external-repositories/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n\n /**\n * List External repositories.\n * Get all External repositories.\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'.\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.\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 * @param {Object} args Additional Arguments\n * @return {Promise<ListExternalRepositoriesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListExternalRepositoriesApiResponse } and HTTP response\n */\n listExternalRepositories(opts, ...args) {\n let argMap = args.length > 0 ? args[0] : {};\n opts = opts || {};\n const postBody = null;\n const pathParams = {};\n const queryParams = {\n ...(opts.hasOwnProperty('$page') ? {\n '$page': opts['$page']\n } : {}),\n ...(opts.hasOwnProperty('$limit') ? {\n '$limit': opts['$limit']\n } : {}),\n ...(opts.hasOwnProperty('$filter') ? {\n '$filter': opts['$filter']\n } : {}),\n ...(opts.hasOwnProperty('$orderby') ? {\n '$orderby': opts['$orderby']\n } : {}),\n ...(opts.hasOwnProperty('$select') ? {\n '$select': opts['$select']\n } : {})\n };\n let headersToInclude = {};\n Object.keys(argMap).forEach(header => {\n if (!this.#headersToSkip.has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n const headerParams = {\n ...headersToInclude\n };\n const formParams = {};\n const authNames = ['basicAuthScheme'];\n const contentTypes = [];\n const accepts = ['application/json'];\n const returnType = _models_multidomain_v4_config_ListExternalRepositoriesApiResponse__WEBPACK_IMPORTED_MODULE_1__[\"default\"];\n return this.apiClient.callApi('/api/multidomain/v4.2/config/external-repositories', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n\n /**\n * Update an External repository.\n * Task Id corresponding to the External repository update operation.\n * @param { Required<Pick<ExternalRepository, 'name' | 'location'>> & Partial<ExternalRepository> } body specification\n * @param { String } extId External Repository identifier.\n * @param {Object} args Additional Arguments\n * @return {Promise<UpdateExternalRepositoryApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateExternalRepositoryApiResponse } and HTTP response\n */\n updateExternalRepositoryById(extId, body, ...args) {\n let argMap = args.length > 0 ? args[0] : {};\n let postBody = null;\n if (body instanceof _models_multidomain_v4_config_ExternalRepository__WEBPACK_IMPORTED_MODULE_4__[\"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 updateExternalRepositoryById\");\n }\n // verify the required parameter 'body' is set\n if (typeof postBody === 'undefined' || postBody === null) {\n throw new Error(\"Invalid body when calling updateExternalRepositoryById\");\n }\n const pathParams = {\n 'extId': extId\n };\n const queryParams = {};\n let headersToInclude = {};\n Object.keys(argMap).forEach(header => {\n if (!this.#headersToSkip.has(header.toLowerCase())) {\n headersToInclude[header] = argMap[header];\n }\n });\n const headerParams = {\n ...headersToInclude\n };\n const formParams = {};\n _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient.addEtagReferenceToHeader(body, headerParams);\n const authNames = ['basicAuthScheme'];\n const contentTypes = ['application/json'];\n const accepts = ['application/json'];\n const returnType = _models_multidomain_v4_config_UpdateExternalRepositoryApiResponse__WEBPACK_IMPORTED_MODULE_6__[\"default\"];\n return this.apiClient.callApi('/api/multidomain/v4.2/config/external-repositories/{extId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);\n }\n}\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/apis/externalrepositories-endpoints.js?\n}");
244
+
245
+ /***/ },
246
+
247
+ /***/ "./target/generated-sources/swagger/src/index.js"
248
+ /*!*******************************************************!*\
249
+ !*** ./target/generated-sources/swagger/src/index.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 */ 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_multidomain_v4_error_AppMessage__WEBPACK_IMPORTED_MODULE_23__[\"default\"]),\n/* harmony export */ CreateExternalRepositoryApiResponse: () => (/* reexport safe */ _models_multidomain_v4_config_CreateExternalRepositoryApiResponse__WEBPACK_IMPORTED_MODULE_15__[\"default\"]),\n/* harmony export */ DeleteExternalRepositoryApiResponse: () => (/* reexport safe */ _models_multidomain_v4_config_DeleteExternalRepositoryApiResponse__WEBPACK_IMPORTED_MODULE_16__[\"default\"]),\n/* harmony export */ ErrorResponse: () => (/* reexport safe */ _models_multidomain_v4_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_24__[\"default\"]),\n/* harmony export */ ExternalRepositoriesApi: () => (/* reexport safe */ _apis_externalrepositories_endpoints__WEBPACK_IMPORTED_MODULE_1__.ExternalRepositoriesApi),\n/* harmony export */ ExternalRepository: () => (/* reexport safe */ _models_multidomain_v4_config_ExternalRepository__WEBPACK_IMPORTED_MODULE_17__[\"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 */ GetExternalRepositoryApiResponse: () => (/* reexport safe */ _models_multidomain_v4_config_GetExternalRepositoryApiResponse__WEBPACK_IMPORTED_MODULE_18__[\"default\"]),\n/* harmony export */ IPAddressOrFQDN: () => (/* reexport safe */ _models_common_v1_config_IPAddressOrFQDN__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 */ ListExternalRepositoriesApiResponse: () => (/* reexport safe */ _models_multidomain_v4_config_ListExternalRepositoriesApiResponse__WEBPACK_IMPORTED_MODULE_19__[\"default\"]),\n/* harmony export */ MapOfStringWrapper: () => (/* reexport safe */ _models_common_v1_config_MapOfStringWrapper__WEBPACK_IMPORTED_MODULE_8__[\"default\"]),\n/* harmony export */ Message: () => (/* reexport safe */ _models_common_v1_config_Message__WEBPACK_IMPORTED_MODULE_9__[\"default\"]),\n/* harmony export */ MessageSeverity: () => (/* reexport safe */ _models_common_v1_config_MessageSeverity__WEBPACK_IMPORTED_MODULE_10__[\"default\"]),\n/* harmony export */ NFSServerAddress: () => (/* reexport safe */ _models_multidomain_v4_config_NFSServerAddress__WEBPACK_IMPORTED_MODULE_20__[\"default\"]),\n/* harmony export */ NfsRepository: () => (/* reexport safe */ _models_multidomain_v4_config_NfsRepository__WEBPACK_IMPORTED_MODULE_21__[\"default\"]),\n/* harmony export */ SchemaValidationError: () => (/* reexport safe */ _models_multidomain_v4_error_SchemaValidationError__WEBPACK_IMPORTED_MODULE_25__[\"default\"]),\n/* harmony export */ SchemaValidationErrorMessage: () => (/* reexport safe */ _models_multidomain_v4_error_SchemaValidationErrorMessage__WEBPACK_IMPORTED_MODULE_26__[\"default\"]),\n/* harmony export */ TaskReference: () => (/* reexport safe */ _models_prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_27__[\"default\"]),\n/* harmony export */ TenantAwareModel: () => (/* reexport safe */ _models_common_v1_config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_11__[\"default\"]),\n/* harmony export */ UpdateExternalRepositoryApiResponse: () => (/* reexport safe */ _models_multidomain_v4_config_UpdateExternalRepositoryApiResponse__WEBPACK_IMPORTED_MODULE_22__[\"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_externalrepositories_endpoints__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./apis/externalrepositories-endpoints */ \"./target/generated-sources/swagger/src/apis/externalrepositories-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_IPAddressOrFQDN__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./models/common/v1/config/IPAddressOrFQDN */ \"./target/generated-sources/swagger/src/models/common/v1/config/IPAddressOrFQDN.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_MapOfStringWrapper__WEBPACK_IMPORTED_MODULE_8__ = __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_9__ = __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_10__ = __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_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_multidomain_v4_config_CreateExternalRepositoryApiResponse__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./models/multidomain/v4/config/CreateExternalRepositoryApiResponse */ \"./target/generated-sources/swagger/src/models/multidomain/v4/config/CreateExternalRepositoryApiResponse.js\");\n/* harmony import */ var _models_multidomain_v4_config_DeleteExternalRepositoryApiResponse__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./models/multidomain/v4/config/DeleteExternalRepositoryApiResponse */ \"./target/generated-sources/swagger/src/models/multidomain/v4/config/DeleteExternalRepositoryApiResponse.js\");\n/* harmony import */ var _models_multidomain_v4_config_ExternalRepository__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./models/multidomain/v4/config/ExternalRepository */ \"./target/generated-sources/swagger/src/models/multidomain/v4/config/ExternalRepository.js\");\n/* harmony import */ var _models_multidomain_v4_config_GetExternalRepositoryApiResponse__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./models/multidomain/v4/config/GetExternalRepositoryApiResponse */ \"./target/generated-sources/swagger/src/models/multidomain/v4/config/GetExternalRepositoryApiResponse.js\");\n/* harmony import */ var _models_multidomain_v4_config_ListExternalRepositoriesApiResponse__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./models/multidomain/v4/config/ListExternalRepositoriesApiResponse */ \"./target/generated-sources/swagger/src/models/multidomain/v4/config/ListExternalRepositoriesApiResponse.js\");\n/* harmony import */ var _models_multidomain_v4_config_NFSServerAddress__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./models/multidomain/v4/config/NFSServerAddress */ \"./target/generated-sources/swagger/src/models/multidomain/v4/config/NFSServerAddress.js\");\n/* harmony import */ var _models_multidomain_v4_config_NfsRepository__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./models/multidomain/v4/config/NfsRepository */ \"./target/generated-sources/swagger/src/models/multidomain/v4/config/NfsRepository.js\");\n/* harmony import */ var _models_multidomain_v4_config_UpdateExternalRepositoryApiResponse__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./models/multidomain/v4/config/UpdateExternalRepositoryApiResponse */ \"./target/generated-sources/swagger/src/models/multidomain/v4/config/UpdateExternalRepositoryApiResponse.js\");\n/* harmony import */ var _models_multidomain_v4_error_AppMessage__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./models/multidomain/v4/error/AppMessage */ \"./target/generated-sources/swagger/src/models/multidomain/v4/error/AppMessage.js\");\n/* harmony import */ var _models_multidomain_v4_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./models/multidomain/v4/error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/multidomain/v4/error/ErrorResponse.js\");\n/* harmony import */ var _models_multidomain_v4_error_SchemaValidationError__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./models/multidomain/v4/error/SchemaValidationError */ \"./target/generated-sources/swagger/src/models/multidomain/v4/error/SchemaValidationError.js\");\n/* harmony import */ var _models_multidomain_v4_error_SchemaValidationErrorMessage__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./models/multidomain/v4/error/SchemaValidationErrorMessage */ \"./target/generated-sources/swagger/src/models/multidomain/v4/error/SchemaValidationErrorMessage.js\");\n/* harmony import */ var _models_prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_27__ = __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/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n ApiClient: _ApiClient__WEBPACK_IMPORTED_MODULE_0__.ApiClient,\n ExternalRepositoriesApi: _apis_externalrepositories_endpoints__WEBPACK_IMPORTED_MODULE_1__.ExternalRepositoriesApi,\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 IPAddressOrFQDN: _models_common_v1_config_IPAddressOrFQDN__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 MapOfStringWrapper: _models_common_v1_config_MapOfStringWrapper__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n Message: _models_common_v1_config_Message__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n MessageSeverity: _models_common_v1_config_MessageSeverity__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 CreateExternalRepositoryApiResponse: _models_multidomain_v4_config_CreateExternalRepositoryApiResponse__WEBPACK_IMPORTED_MODULE_15__[\"default\"],\n DeleteExternalRepositoryApiResponse: _models_multidomain_v4_config_DeleteExternalRepositoryApiResponse__WEBPACK_IMPORTED_MODULE_16__[\"default\"],\n ExternalRepository: _models_multidomain_v4_config_ExternalRepository__WEBPACK_IMPORTED_MODULE_17__[\"default\"],\n GetExternalRepositoryApiResponse: _models_multidomain_v4_config_GetExternalRepositoryApiResponse__WEBPACK_IMPORTED_MODULE_18__[\"default\"],\n ListExternalRepositoriesApiResponse: _models_multidomain_v4_config_ListExternalRepositoriesApiResponse__WEBPACK_IMPORTED_MODULE_19__[\"default\"],\n NFSServerAddress: _models_multidomain_v4_config_NFSServerAddress__WEBPACK_IMPORTED_MODULE_20__[\"default\"],\n NfsRepository: _models_multidomain_v4_config_NfsRepository__WEBPACK_IMPORTED_MODULE_21__[\"default\"],\n UpdateExternalRepositoryApiResponse: _models_multidomain_v4_config_UpdateExternalRepositoryApiResponse__WEBPACK_IMPORTED_MODULE_22__[\"default\"],\n AppMessage: _models_multidomain_v4_error_AppMessage__WEBPACK_IMPORTED_MODULE_23__[\"default\"],\n ErrorResponse: _models_multidomain_v4_error_ErrorResponse__WEBPACK_IMPORTED_MODULE_24__[\"default\"],\n SchemaValidationError: _models_multidomain_v4_error_SchemaValidationError__WEBPACK_IMPORTED_MODULE_25__[\"default\"],\n SchemaValidationErrorMessage: _models_multidomain_v4_error_SchemaValidationErrorMessage__WEBPACK_IMPORTED_MODULE_26__[\"default\"],\n TaskReference: _models_prism_v4_config_TaskReference__WEBPACK_IMPORTED_MODULE_27__[\"default\"]\n});\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/index.js?\n}");
255
+
256
+ /***/ },
257
+
258
+ /***/ "./target/generated-sources/swagger/src/models/common/v1/config/FQDN.js"
259
+ /*!******************************************************************************!*\
260
+ !*** ./target/generated-sources/swagger/src/models/common/v1/config/FQDN.js ***!
261
+ \******************************************************************************/
262
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
263
+
264
+ "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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-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.2.1\n * @class FQDN\n */\nvar _FQDN_brand = /*#__PURE__*/new WeakSet();\nclass FQDN {\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 constructor() {\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 static constructFromObject(data, obj = null, callFromChild = false) {\n let 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 = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\n /**\n * Returns The fully qualified domain name of the host. \n * @return {string}\n */\n 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 setValue(value) {\n this.value = value;\n }\n get$Reserved() {\n return this.$reserved;\n }\n get$ObjectType() {\n return this.$objectType;\n }\n get$UnknownFields() {\n return this.$unknownFields;\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n ...(typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 let res = [];\n let err = null;\n propList.forEach(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 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-zA-Z0-9À-ÿ]+(?:-[a-zA-Z0-9À-ÿ]+)*\\\\.)+[a-zA-ZÀ-ÿ]{2,63}$/)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_2__[\"default\"](\"value\", \"does not satisfy required pattern: /^([a-zA-Z0-9À-ÿ]+(?:-[a-zA-Z0-9À-ÿ]+)*\\\\.)+[a-zA-ZÀ-ÿ]{2,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\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, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\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?\n}");
266
+
267
+ /***/ },
268
+
269
+ /***/ "./target/generated-sources/swagger/src/models/common/v1/config/Flag.js"
270
+ /*!******************************************************************************!*\
271
+ !*** ./target/generated-sources/swagger/src/models/common/v1/config/Flag.js ***!
272
+ \******************************************************************************/
273
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
274
+
275
+ "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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-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.2.1\n * @class Flag\n */\nvar _Flag_brand = /*#__PURE__*/new WeakSet();\nclass Flag {\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 constructor() {\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 static constructFromObject(data, obj = null, callFromChild = false) {\n let 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 = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\n /**\n * Returns Name of the flag. \n * @return {string}\n */\n getName() {\n return this.name;\n }\n\n /**\n * Sets Name of the flag. \n * @param {string} name Name of the flag. \n */\n setName(name) {\n this.name = name;\n }\n\n /**\n * Returns Value of the flag. \n * @return {boolean}\n */\n getValue() {\n return this.value;\n }\n\n /**\n * Sets Value of the flag. \n * @param {boolean} value Value of the flag. \n */\n setValue(value) {\n this.value = value;\n }\n get$Reserved() {\n return this.$reserved;\n }\n get$ObjectType() {\n return this.$objectType;\n }\n get$UnknownFields() {\n return this.$unknownFields;\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}),\n ...(typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n ...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}),\n ...(typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 let res = [];\n let err = null;\n propList.forEach(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 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\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, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\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?\n}");
277
+
278
+ /***/ },
279
+
280
+ /***/ "./target/generated-sources/swagger/src/models/common/v1/config/IPAddressOrFQDN.js"
281
+ /*!*****************************************************************************************!*\
282
+ !*** ./target/generated-sources/swagger/src/models/common/v1/config/IPAddressOrFQDN.js ***!
283
+ \*****************************************************************************************/
284
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
285
+
286
+ "use strict";
287
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ IPAddressOrFQDN)\n/* harmony export */ });\n/* harmony import */ var _FQDN__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./FQDN */ \"./target/generated-sources/swagger/src/models/common/v1/config/FQDN.js\");\n/* harmony import */ var _IPv4Address__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./IPv4Address */ \"./target/generated-sources/swagger/src/models/common/v1/config/IPv4Address.js\");\n/* harmony import */ var _IPv6Address__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./IPv6Address */ \"./target/generated-sources/swagger/src/models/common/v1/config/IPv6Address.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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n/**\n * The IPAddressOrFQDN model module.\n * @module Ntnx/IPAddressOrFQDN\n * @version 4.2.1\n * @class IPAddressOrFQDN\n */\nvar _IPAddressOrFQDN_brand = /*#__PURE__*/new WeakSet();\nclass IPAddressOrFQDN {\n /**\n * Constructs a new <code>IPAddressOrFQDN</code>.\n * An unique address that identifies a device on the internet or a local network in IPv4/IPv6 format or a Fully Qualified Domain Name. \n * @alias module:Ntnx/IPAddressOrFQDN\n */\n constructor() {\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, _IPAddressOrFQDN_brand);\n this.$objectType = \"common.v1.config.IPAddressOrFQDN\";\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>IPAddressOrFQDN</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/IPAddressOrFQDN} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/IPAddressOrFQDN} The populated <code>IPAddressOrFQDN</code> instance.\n */\n static constructFromObject(data, obj = null, callFromChild = false) {\n let items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new IPAddressOrFQDN();\n if (data.hasOwnProperty('ipv4') && data.ipv4 !== null && data.ipv4 !== undefined) {\n obj.setIpv4(_IPv4Address__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['ipv4']));\n }\n if (data.hasOwnProperty('ipv6') && data.ipv6 !== null && data.ipv6 !== undefined) {\n obj.setIpv6(_IPv6Address__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['ipv6']));\n }\n if (data.hasOwnProperty('fqdn') && data.fqdn !== null && data.fqdn !== undefined) {\n obj.setFqdn(_FQDN__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['fqdn']));\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 = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\n /**\n * @return {IPv4Address}\n */\n getIpv4() {\n return this.ipv4;\n }\n\n /**\n * @param {IPv4Address} ipv4\n */\n setIpv4(ipv4) {\n this.ipv4 = ipv4;\n }\n\n /**\n * @return {IPv6Address}\n */\n getIpv6() {\n return this.ipv6;\n }\n\n /**\n * @param {IPv6Address} ipv6\n */\n setIpv6(ipv6) {\n this.ipv6 = ipv6;\n }\n\n /**\n * @return {FQDN}\n */\n getFqdn() {\n return this.fqdn;\n }\n\n /**\n * @param {FQDN} fqdn\n */\n setFqdn(fqdn) {\n this.fqdn = fqdn;\n }\n get$Reserved() {\n return this.$reserved;\n }\n get$ObjectType() {\n return this.$objectType;\n }\n get$UnknownFields() {\n return this.$unknownFields;\n }\n hasIpv4() {\n return !(typeof this.ipv4 === 'undefined' || this.ipv4 === null);\n }\n hasIpv6() {\n return !(typeof this.ipv6 === 'undefined' || this.ipv6 === null);\n }\n hasFqdn() {\n return !(typeof this.fqdn === 'undefined' || this.fqdn === null);\n }\n isValid() {\n return this.hasIpv4() || this.hasIpv6() || this.hasFqdn();\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(typeof this.getIpv4() !== 'undefined' && this.getIpv4() !== null ? {\n 'ipv4': this.getIpv4().toJson(false)\n } : {}),\n ...(typeof this.getIpv6() !== 'undefined' && this.getIpv6() !== null ? {\n 'ipv6': this.getIpv6().toJson(false)\n } : {}),\n ...(typeof this.getFqdn() !== 'undefined' && this.getFqdn() !== null ? {\n 'fqdn': this.getFqdn().toJson(false)\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n ...(typeof this.getIpv4() !== 'undefined' && this.getIpv4() !== null ? {\n 'ipv4': this.getIpv4().toJson(false)\n } : {}),\n ...(typeof this.getIpv6() !== 'undefined' && this.getIpv6() !== null ? {\n 'ipv6': this.getIpv6().toJson(false)\n } : {}),\n ...(typeof this.getFqdn() !== 'undefined' && this.getFqdn() !== null ? {\n 'fqdn': this.getFqdn().toJson(false)\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 let res = [];\n let err = null;\n propList.forEach(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 validateProperty(scope, property) {\n if (property === \"ipv4\") {\n if (typeof this.ipv4 === 'undefined' || this.ipv4 === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"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_5__[\"default\"](\"ipv6\", \"undefined or null\");\n }\n }\n if (property === \"fqdn\") {\n if (typeof this.fqdn === 'undefined' || this.fqdn === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"fqdn\", \"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\n/**\n * @memberof IPAddressOrFQDN\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\nIPAddressOrFQDN.prototype.ipv4 = undefined;\n\n/**\n * @memberof IPAddressOrFQDN\n */\nIPAddressOrFQDN.prototype.ipv6 = undefined;\n\n/**\n * @memberof IPAddressOrFQDN\n */\nIPAddressOrFQDN.prototype.fqdn = undefined;\nIPAddressOrFQDN.prototype.$reserved = undefined;\nIPAddressOrFQDN.prototype.$objectType = undefined;\nIPAddressOrFQDN.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/common/v1/config/IPAddressOrFQDN.js?\n}");
288
+
289
+ /***/ },
290
+
291
+ /***/ "./target/generated-sources/swagger/src/models/common/v1/config/IPv4Address.js"
292
+ /*!*************************************************************************************!*\
293
+ !*** ./target/generated-sources/swagger/src/models/common/v1/config/IPv4Address.js ***!
294
+ \*************************************************************************************/
295
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
296
+
297
+ "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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-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.2.1\n * @class IPv4Address\n * \n * @param { string } value The IPv4 address of the host. \n */\nvar _IPv4Address_brand = /*#__PURE__*/new WeakSet();\nclass IPv4Address {\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 constructor(value) {\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 static constructFromObject(data, obj = null, callFromChild = false) {\n let 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 = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\n /**\n * Returns The IPv4 address of the host. \n * @return {string}\n */\n 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 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 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 setPrefixLength(prefixLength) {\n this.prefixLength = prefixLength;\n }\n get$Reserved() {\n return this.$reserved;\n }\n get$ObjectType() {\n return this.$objectType;\n }\n get$UnknownFields() {\n return this.$unknownFields;\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}),\n ...(typeof this.getPrefixLength() !== 'undefined' && this.getPrefixLength() !== null ? {\n 'prefixLength': this.getPrefixLength()\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n ...(typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}),\n ...(typeof this.getPrefixLength() !== 'undefined' && this.getPrefixLength() !== null ? {\n 'prefixLength': this.getPrefixLength()\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 let res = [];\n let err = null;\n propList.forEach(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 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\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, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\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?\n}");
299
+
300
+ /***/ },
301
+
302
+ /***/ "./target/generated-sources/swagger/src/models/common/v1/config/IPv6Address.js"
303
+ /*!*************************************************************************************!*\
304
+ !*** ./target/generated-sources/swagger/src/models/common/v1/config/IPv6Address.js ***!
305
+ \*************************************************************************************/
306
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
307
+
308
+ "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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-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.2.1\n * @class IPv6Address\n * \n * @param { string } value The IPv6 address of the host. \n */\nvar _IPv6Address_brand = /*#__PURE__*/new WeakSet();\nclass IPv6Address {\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 constructor(value) {\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 static constructFromObject(data, obj = null, callFromChild = false) {\n let 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 = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\n /**\n * Returns The IPv6 address of the host. \n * @return {string}\n */\n 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 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 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 setPrefixLength(prefixLength) {\n this.prefixLength = prefixLength;\n }\n get$Reserved() {\n return this.$reserved;\n }\n get$ObjectType() {\n return this.$objectType;\n }\n get$UnknownFields() {\n return this.$unknownFields;\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}),\n ...(typeof this.getPrefixLength() !== 'undefined' && this.getPrefixLength() !== null ? {\n 'prefixLength': this.getPrefixLength()\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n ...(typeof this.getValue() !== 'undefined' && this.getValue() !== null ? {\n 'value': this.getValue()\n } : {}),\n ...(typeof this.getPrefixLength() !== 'undefined' && this.getPrefixLength() !== null ? {\n 'prefixLength': this.getPrefixLength()\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 let res = [];\n let err = null;\n propList.forEach(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 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\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, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\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?\n}");
310
+
311
+ /***/ },
312
+
313
+ /***/ "./target/generated-sources/swagger/src/models/common/v1/config/KVPair.js"
314
+ /*!********************************************************************************!*\
315
+ !*** ./target/generated-sources/swagger/src/models/common/v1/config/KVPair.js ***!
316
+ \********************************************************************************/
317
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
318
+
319
+ "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 _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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-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.2.1\n * @class KVPair\n */\nvar _KVPair_brand = /*#__PURE__*/new WeakSet();\nclass KVPair {\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 constructor() {\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 static constructFromObject(data, obj = null, callFromChild = false) {\n let 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 = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\n /**\n * Returns The key of the key-value pair. \n * @return {string}\n */\n 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 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 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 setValue(value) {\n this.value = value;\n }\n get$Reserved() {\n return this.$reserved;\n }\n get$ObjectType() {\n return this.$objectType;\n }\n get$UnknownFields() {\n return this.$unknownFields;\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}),\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(item => typeof item.toJson !== \"undefined\" ? item.toJson(false) : item) : _assertClassBrand(_KVPair_brand, this, _toJsonMapType).call(this, this.getValue(), false)\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n ...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}),\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(item => typeof item.toJson !== \"undefined\" ? item.toJson() : item) : _assertClassBrand(_KVPair_brand, this, _toJsonMapType).call(this, this.getValue())\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 let res = [];\n let err = null;\n propList.forEach(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 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\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, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\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?\n}");
321
+
322
+ /***/ },
323
+
324
+ /***/ "./target/generated-sources/swagger/src/models/common/v1/config/MapOfStringWrapper.js"
325
+ /*!********************************************************************************************!*\
326
+ !*** ./target/generated-sources/swagger/src/models/common/v1/config/MapOfStringWrapper.js ***!
327
+ \********************************************************************************************/
328
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
329
+
330
+ "use strict";
331
+ 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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-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.2.1\n * @class MapOfStringWrapper\n */\nvar _MapOfStringWrapper_brand = /*#__PURE__*/new WeakSet();\nclass MapOfStringWrapper {\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 constructor() {\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 static constructFromObject(data, obj = null, callFromChild = false) {\n let 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 = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\n /**\n * Returns A map with string keys and values. \n * @return {Object<string, string>}\n */\n 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 setMap(map) {\n this.map = map;\n }\n get$Reserved() {\n return this.$reserved;\n }\n get$ObjectType() {\n return this.$objectType;\n }\n get$UnknownFields() {\n return this.$unknownFields;\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(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 ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n ...(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 ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 let res = [];\n let err = null;\n propList.forEach(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 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\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, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\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?\n}");
332
+
333
+ /***/ },
334
+
335
+ /***/ "./target/generated-sources/swagger/src/models/common/v1/config/Message.js"
336
+ /*!*********************************************************************************!*\
337
+ !*** ./target/generated-sources/swagger/src/models/common/v1/config/Message.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 */ 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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-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.2.1\n * @class Message\n */\nvar _Message_brand = /*#__PURE__*/new WeakSet();\nclass Message {\n /**\n * Constructs a new <code>Message</code>.\n * @alias module:Ntnx/Message\n */\n constructor() {\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 static constructFromObject(data, obj = null, callFromChild = false) {\n let 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 = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\n /**\n * Returns A code that uniquely identifies a message. \n * @return {string}\n */\n 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 setCode(code) {\n this.code = code;\n }\n\n /**\n * Returns The description of the message. \n * @return {string}\n */\n 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 setMessage(message) {\n this.message = message;\n }\n\n /**\n * Returns The locale for the message description. \n * @return {string}\n */\n 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 setLocale(locale) {\n this.locale = locale;\n }\n\n /**\n * @return {MessageSeverity}\n */\n getSeverity() {\n return this.severity;\n }\n\n /**\n * @param {MessageSeverity} severity\n */\n setSeverity(severity) {\n this.severity = severity;\n }\n get$Reserved() {\n return this.$reserved;\n }\n get$ObjectType() {\n return this.$objectType;\n }\n get$UnknownFields() {\n return this.$unknownFields;\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(typeof this.getCode() !== 'undefined' && this.getCode() !== null ? {\n 'code': this.getCode()\n } : {}),\n ...(typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}),\n ...(typeof this.getLocale() !== 'undefined' && this.getLocale() !== null ? {\n 'locale': this.getLocale()\n } : {}),\n ...(typeof this.getSeverity() !== 'undefined' && this.getSeverity() !== null ? {\n 'severity': this.getSeverity()\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n ...(typeof this.getCode() !== 'undefined' && this.getCode() !== null ? {\n 'code': this.getCode()\n } : {}),\n ...(typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}),\n ...(typeof this.getLocale() !== 'undefined' && this.getLocale() !== null ? {\n 'locale': this.getLocale()\n } : {}),\n ...(typeof this.getSeverity() !== 'undefined' && this.getSeverity() !== null ? {\n 'severity': this.getSeverity()\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 let res = [];\n let err = null;\n propList.forEach(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 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\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, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\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?\n}");
343
+
344
+ /***/ },
345
+
346
+ /***/ "./target/generated-sources/swagger/src/models/common/v1/config/MessageSeverity.js"
347
+ /*!*****************************************************************************************!*\
348
+ !*** ./target/generated-sources/swagger/src/models/common/v1/config/MessageSeverity.js ***!
349
+ \*****************************************************************************************/
350
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
351
+
352
+ "use strict";
353
+ 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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-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 */\nconst 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 let enumVal = Object.keys(MessageSeverity).find(key => MessageSeverity[key] === obj);\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?\n}");
354
+
355
+ /***/ },
356
+
357
+ /***/ "./target/generated-sources/swagger/src/models/common/v1/config/TenantAwareModel.js"
358
+ /*!******************************************************************************************!*\
359
+ !*** ./target/generated-sources/swagger/src/models/common/v1/config/TenantAwareModel.js ***!
360
+ \******************************************************************************************/
361
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
362
+
363
+ "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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-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.2.1\n * @class TenantAwareModel\n */\nvar _TenantAwareModel_brand = /*#__PURE__*/new WeakSet();\nclass TenantAwareModel {\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 constructor() {\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 static constructFromObject(data, obj = null, callFromChild = false) {\n let 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 = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\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 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 setTenantId(tenantId) {\n this.tenantId = tenantId;\n }\n get$Reserved() {\n return this.$reserved;\n }\n get$ObjectType() {\n return this.$objectType;\n }\n get$UnknownFields() {\n return this.$unknownFields;\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {\n 'tenantId': this.getTenantId()\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 let res = [];\n let err = null;\n propList.forEach(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 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\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, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\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?\n}");
365
+
366
+ /***/ },
367
+
368
+ /***/ "./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js"
369
+ /*!***********************************************************************************!*\
370
+ !*** ./target/generated-sources/swagger/src/models/common/v1/response/ApiLink.js ***!
371
+ \***********************************************************************************/
372
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
373
+
374
+ "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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-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.2.1\n * @class ApiLink\n */\nvar _ApiLink_brand = /*#__PURE__*/new WeakSet();\nclass ApiLink {\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 constructor() {\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 static constructFromObject(data, obj = null, callFromChild = false) {\n let 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 = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\n /**\n * Returns The URL at which the entity described by the link can be accessed. \n * @return {string}\n */\n 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 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 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 setRel(rel) {\n this.rel = rel;\n }\n get$Reserved() {\n return this.$reserved;\n }\n get$ObjectType() {\n return this.$objectType;\n }\n get$UnknownFields() {\n return this.$unknownFields;\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(typeof this.getHref() !== 'undefined' && this.getHref() !== null ? {\n 'href': this.getHref()\n } : {}),\n ...(typeof this.getRel() !== 'undefined' && this.getRel() !== null ? {\n 'rel': this.getRel()\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n ...(typeof this.getHref() !== 'undefined' && this.getHref() !== null ? {\n 'href': this.getHref()\n } : {}),\n ...(typeof this.getRel() !== 'undefined' && this.getRel() !== null ? {\n 'rel': this.getRel()\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 let res = [];\n let err = null;\n propList.forEach(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 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\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, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\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?\n}");
376
+
377
+ /***/ },
378
+
379
+ /***/ "./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js"
380
+ /*!***********************************************************************************************!*\
381
+ !*** ./target/generated-sources/swagger/src/models/common/v1/response/ApiResponseMetadata.js ***!
382
+ \***********************************************************************************************/
383
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
384
+
385
+ "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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-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.2.1\n * @class ApiResponseMetadata\n */\nvar _ApiResponseMetadata_brand = /*#__PURE__*/new WeakSet();\nclass ApiResponseMetadata {\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 constructor() {\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 static constructFromObject(data, obj = null, callFromChild = false) {\n let 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 = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\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 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 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 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 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 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 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 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 setMessages(messages) {\n this.messages = messages;\n }\n\n /**\n * Returns An array of entity-specific metadata \n * @return {KVPair[]}\n */\n 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 setExtraInfo(extraInfo) {\n this.extraInfo = extraInfo;\n }\n get$Reserved() {\n return this.$reserved;\n }\n get$ObjectType() {\n return this.$objectType;\n }\n get$UnknownFields() {\n return this.$unknownFields;\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(typeof this.getFlags() !== 'undefined' && this.getFlags() !== null ? {\n 'flags': this.getFlags().map(item => item.toJson(false))\n } : {}),\n ...(typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(item => item.toJson(false))\n } : {}),\n ...(typeof this.getTotalAvailableResults() !== 'undefined' && this.getTotalAvailableResults() !== null ? {\n 'totalAvailableResults': this.getTotalAvailableResults()\n } : {}),\n ...(typeof this.getMessages() !== 'undefined' && this.getMessages() !== null ? {\n 'messages': this.getMessages().map(item => item.toJson(false))\n } : {}),\n ...(typeof this.getExtraInfo() !== 'undefined' && this.getExtraInfo() !== null ? {\n 'extraInfo': this.getExtraInfo().map(item => item.toJson(false))\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n ...(typeof this.getFlags() !== 'undefined' && this.getFlags() !== null ? {\n 'flags': this.getFlags().map(item => item.toJson(false))\n } : {}),\n ...(typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(item => item.toJson(false))\n } : {}),\n ...(typeof this.getTotalAvailableResults() !== 'undefined' && this.getTotalAvailableResults() !== null ? {\n 'totalAvailableResults': this.getTotalAvailableResults()\n } : {}),\n ...(typeof this.getMessages() !== 'undefined' && this.getMessages() !== null ? {\n 'messages': this.getMessages().map(item => item.toJson(false))\n } : {}),\n ...(typeof this.getExtraInfo() !== 'undefined' && this.getExtraInfo() !== null ? {\n 'extraInfo': this.getExtraInfo().map(item => item.toJson(false))\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 let res = [];\n let err = null;\n propList.forEach(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 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\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, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\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?\n}");
387
+
388
+ /***/ },
389
+
390
+ /***/ "./target/generated-sources/swagger/src/models/common/v1/response/ExternalizableAbstractModel.js"
391
+ /*!*******************************************************************************************************!*\
392
+ !*** ./target/generated-sources/swagger/src/models/common/v1/response/ExternalizableAbstractModel.js ***!
393
+ \*******************************************************************************************************/
394
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
395
+
396
+ "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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-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.2.1\n * @class ExternalizableAbstractModel\n * @extends TenantAwareModel\n */\nvar _ExternalizableAbstractModel_brand = /*#__PURE__*/new WeakSet();\nclass ExternalizableAbstractModel extends _config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\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 constructor() {\n super();\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 }\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 static constructFromObject(data, obj = null, callFromChild = false) {\n let 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 = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\n /**\n * Returns A globally unique identifier of an instance that is suitable for external consumption. \n * @return {string}\n */\n 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 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 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 setLinks(links) {\n this.links = links;\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}),\n ...(typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(item => 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 ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 let res = [];\n let err = null;\n propList.forEach(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 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\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, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\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?\n}");
398
+
399
+ /***/ },
400
+
401
+ /***/ "./target/generated-sources/swagger/src/models/multidomain/v4/config/CreateExternalRepositoryApiResponse.js"
402
+ /*!******************************************************************************************************************!*\
403
+ !*** ./target/generated-sources/swagger/src/models/multidomain/v4/config/CreateExternalRepositoryApiResponse.js ***!
404
+ \******************************************************************************************************************/
405
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
406
+
407
+ "use strict";
408
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ CreateExternalRepositoryApiResponse)\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/multidomain/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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The CreateExternalRepositoryApiResponse model module.\n * @module Ntnx/CreateExternalRepositoryApiResponse\n * @version 4.2.1\n * @class CreateExternalRepositoryApiResponse\n */\nvar _CreateExternalRepositoryApiResponse_brand = /*#__PURE__*/new WeakSet();\nclass CreateExternalRepositoryApiResponse extends _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"] {\n /**\n * Constructs a new <code>CreateExternalRepositoryApiResponse</code>.\n * REST response for all response codes in API path /multidomain/v4.2/config/external-repositories Post operation\n * @alias module:Ntnx/CreateExternalRepositoryApiResponse\n */\n constructor() {\n super();\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, _CreateExternalRepositoryApiResponse_brand);\n this.$objectType = \"multidomain.v4.config.CreateExternalRepositoryApiResponse\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v4.r2\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>CreateExternalRepositoryApiResponse</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/CreateExternalRepositoryApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/CreateExternalRepositoryApiResponse} The populated <code>CreateExternalRepositoryApiResponse</code> instance.\n */\n static constructFromObject(data, obj = null, callFromChild = false) {\n let items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new CreateExternalRepositoryApiResponse();\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 'multidomain.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 = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\n /**\n * @return {ApiResponseMetadata}\n */\n getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {ApiResponseMetadata} metadata\n */\n setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {TaskReference | ErrorResponse}\n */\n getData() {\n return this.data;\n }\n\n /**\n * @param {TaskReference | ErrorResponse} data\n */\n setData(data) {\n this.data = data;\n }\n get$Reserved() {\n return this.$reserved;\n }\n get$ObjectType() {\n return this.$objectType;\n }\n get$UnknownFields() {\n return this.$unknownFields;\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}),\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(item => typeof item.toJson !== \"undefined\" ? item.toJson(false) : item) : _assertClassBrand(_CreateExternalRepositoryApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n ...(typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}),\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(item => typeof item.toJson !== \"undefined\" ? item.toJson() : item) : _assertClassBrand(_CreateExternalRepositoryApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 let res = [];\n let err = null;\n propList.forEach(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 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\n/**\n * @memberof CreateExternalRepositoryApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\nCreateExternalRepositoryApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof CreateExternalRepositoryApiResponse\n */\nCreateExternalRepositoryApiResponse.prototype.data = undefined;\nCreateExternalRepositoryApiResponse.prototype.$reserved = undefined;\nCreateExternalRepositoryApiResponse.prototype.$objectType = undefined;\nCreateExternalRepositoryApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/multidomain/v4/config/CreateExternalRepositoryApiResponse.js?\n}");
409
+
410
+ /***/ },
411
+
412
+ /***/ "./target/generated-sources/swagger/src/models/multidomain/v4/config/DeleteExternalRepositoryApiResponse.js"
413
+ /*!******************************************************************************************************************!*\
414
+ !*** ./target/generated-sources/swagger/src/models/multidomain/v4/config/DeleteExternalRepositoryApiResponse.js ***!
415
+ \******************************************************************************************************************/
416
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
417
+
418
+ "use strict";
419
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ DeleteExternalRepositoryApiResponse)\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/multidomain/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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The DeleteExternalRepositoryApiResponse model module.\n * @module Ntnx/DeleteExternalRepositoryApiResponse\n * @version 4.2.1\n * @class DeleteExternalRepositoryApiResponse\n */\nvar _DeleteExternalRepositoryApiResponse_brand = /*#__PURE__*/new WeakSet();\nclass DeleteExternalRepositoryApiResponse extends _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"] {\n /**\n * Constructs a new <code>DeleteExternalRepositoryApiResponse</code>.\n * REST response for all response codes in API path /multidomain/v4.2/config/external-repositories/{extId} Delete operation\n * @alias module:Ntnx/DeleteExternalRepositoryApiResponse\n */\n constructor() {\n super();\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, _DeleteExternalRepositoryApiResponse_brand);\n this.$objectType = \"multidomain.v4.config.DeleteExternalRepositoryApiResponse\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v4.r2\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>DeleteExternalRepositoryApiResponse</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/DeleteExternalRepositoryApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/DeleteExternalRepositoryApiResponse} The populated <code>DeleteExternalRepositoryApiResponse</code> instance.\n */\n static constructFromObject(data, obj = null, callFromChild = false) {\n let items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new DeleteExternalRepositoryApiResponse();\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 'multidomain.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 = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\n /**\n * @return {ApiResponseMetadata}\n */\n getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {ApiResponseMetadata} metadata\n */\n setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {TaskReference | ErrorResponse}\n */\n getData() {\n return this.data;\n }\n\n /**\n * @param {TaskReference | ErrorResponse} data\n */\n setData(data) {\n this.data = data;\n }\n get$Reserved() {\n return this.$reserved;\n }\n get$ObjectType() {\n return this.$objectType;\n }\n get$UnknownFields() {\n return this.$unknownFields;\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}),\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(item => typeof item.toJson !== \"undefined\" ? item.toJson(false) : item) : _assertClassBrand(_DeleteExternalRepositoryApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n ...(typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}),\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(item => typeof item.toJson !== \"undefined\" ? item.toJson() : item) : _assertClassBrand(_DeleteExternalRepositoryApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 let res = [];\n let err = null;\n propList.forEach(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 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\n/**\n * @memberof DeleteExternalRepositoryApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\nDeleteExternalRepositoryApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof DeleteExternalRepositoryApiResponse\n */\nDeleteExternalRepositoryApiResponse.prototype.data = undefined;\nDeleteExternalRepositoryApiResponse.prototype.$reserved = undefined;\nDeleteExternalRepositoryApiResponse.prototype.$objectType = undefined;\nDeleteExternalRepositoryApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/multidomain/v4/config/DeleteExternalRepositoryApiResponse.js?\n}");
420
+
421
+ /***/ },
422
+
423
+ /***/ "./target/generated-sources/swagger/src/models/multidomain/v4/config/ExternalRepository.js"
424
+ /*!*************************************************************************************************!*\
425
+ !*** ./target/generated-sources/swagger/src/models/multidomain/v4/config/ExternalRepository.js ***!
426
+ \*************************************************************************************************/
427
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
428
+
429
+ "use strict";
430
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ExternalRepository)\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_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../common/v1/response/ExternalizableAbstractModel */ \"./target/generated-sources/swagger/src/models/common/v1/response/ExternalizableAbstractModel.js\");\n/* harmony import */ var _NfsRepository__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./NfsRepository */ \"./target/generated-sources/swagger/src/models/multidomain/v4/config/NfsRepository.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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n/**\n * The ExternalRepository model module.\n * @module Ntnx/ExternalRepository\n * @version 4.2.1\n * @class ExternalRepository\n * @extends ExternalizableAbstractModel\n * \n * @param { string } name External repository name.\n * @param { NfsRepository } location location Details.\n * \n */\nvar _ExternalRepository_brand = /*#__PURE__*/new WeakSet();\nclass ExternalRepository extends _common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"] {\n /**\n * Constructs a new <code>ExternalRepository</code>.\n * @alias module:Ntnx/ExternalRepository\n * @extends module:Ntnx/ExternalizableAbstractModel\n * \n * @param { string } name External repository name.\n * @param { NfsRepository } location location Details.\n * \n */\n constructor(name, location) {\n super();\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, _ExternalRepository_brand);\n this.name = name;\n this.location = location;\n this.$objectType = \"multidomain.v4.config.ExternalRepository\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v4.r2\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>ExternalRepository</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/ExternalRepository} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ExternalRepository} The populated <code>ExternalRepository</code> instance.\n */\n static constructFromObject(data, obj = null, callFromChild = false) {\n let items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ExternalRepository();\n _common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data, obj, true);\n if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {\n obj.setName(data['name']);\n }\n if (data.hasOwnProperty('location') && data.location !== null && data.location !== undefined) {\n if (data['location'].hasOwnProperty('$objectType')) {\n discriminator = data['location']['$objectType'];\n } else {\n discriminator = typeof data['location'];\n }\n switch (discriminator) {\n case 'multidomain.v4.config.NfsRepository':\n obj.setLocation(_NfsRepository__WEBPACK_IMPORTED_MODULE_2__[\"default\"].constructFromObject(data['location'], undefined));\n break;\n default:\n throw \"Unknown datatype \" + discriminator + \" in data\";\n }\n }\n if (data.hasOwnProperty('ownerExtId') && data.ownerExtId !== null && data.ownerExtId !== undefined) {\n obj.setOwnerExtId(data['ownerExtId']);\n }\n if (!callFromChild) {\n obj.$unknownFields = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\n /**\n * Returns External repository name.\n * @return {string}\n */\n getName() {\n return this.name;\n }\n\n /**\n * Sets External repository name.\n * @param {string} name External repository name.\n */\n setName(name) {\n this.name = name;\n }\n\n /**\n * Returns location Details.\n * @return {NfsRepository}\n */\n getLocation() {\n return this.location;\n }\n\n /**\n * Sets location Details.\n * @param {NfsRepository} location location Details.\n */\n setLocation(location) {\n this.location = location;\n }\n\n /**\n * Returns External identifier of the owner of the repository.\n * @return {string}\n */\n getOwnerExtId() {\n return this.ownerExtId;\n }\n\n /**\n * Sets External identifier of the owner of the repository.\n * @param {string} ownerExtId External identifier of the owner of the repository.\n */\n setOwnerExtId(ownerExtId) {\n this.ownerExtId = ownerExtId;\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}),\n ...(typeof this.getLocation() !== 'undefined' && this.getLocation() !== null ? {\n 'location': typeof this.getLocation().toJson !== \"undefined\" ? this.getLocation().toJson(false) : Array.isArray(this.getLocation()) ? this.getLocation().map(item => typeof item.toJson !== \"undefined\" ? item.toJson(false) : item) : _assertClassBrand(_ExternalRepository_brand, this, _toJsonMapType).call(this, this.getLocation(), false)\n } : {}),\n ...(typeof this.getOwnerExtId() !== 'undefined' && this.getOwnerExtId() !== null ? {\n 'ownerExtId': this.getOwnerExtId()\n } : {}),\n ...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}),\n ...(typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {\n 'links': this.getLinks().map(item => 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 ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n ...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {\n 'name': this.getName()\n } : {}),\n ...(typeof this.getLocation() !== 'undefined' && this.getLocation() !== null ? {\n 'location': typeof this.getLocation().toJson !== \"undefined\" ? this.getLocation().toJson() : Array.isArray(this.getLocation()) ? this.getLocation().map(item => typeof item.toJson !== \"undefined\" ? item.toJson() : item) : _assertClassBrand(_ExternalRepository_brand, this, _toJsonMapType).call(this, this.getLocation())\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 = [\"name\", \"location\"];\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 let res = [];\n let err = null;\n propList.forEach(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 validateProperty(scope, property) {\n if (property === \"name\") {\n if (typeof this.name === 'undefined' || this.name === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"name\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"].validateMaxLength(this.name, 255)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"name\", \"does not satisfy required maxLength constraint: 255\");\n }\n }\n if (property === \"location\") {\n if (typeof this.location === 'undefined' || this.location === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"location\", \"undefined or null\");\n }\n }\n if (property === \"ownerExtId\") {\n if (typeof this.ownerExtId === 'undefined' || this.ownerExtId === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_5__[\"default\"](\"ownerExtId\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"].validatePattern(this.ownerExtId, /^[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_5__[\"default\"](\"ownerExtId\", \"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_5__[\"default\"](property, \"no such property exists\");\n }\n}\n\n/**\n * External repository name.\n * @memberof ExternalRepository\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\nExternalRepository.prototype.name = undefined;\n\n/**\n * location Details.\n * @memberof ExternalRepository\n */\nExternalRepository.prototype.location = undefined;\n\n/**\n * External identifier of the owner of the repository.\n * @memberof ExternalRepository\n */\nExternalRepository.prototype.ownerExtId = undefined;\n\n/**\n * A globally unique identifier of an instance that is suitable for external consumption. \n * @memberof ExternalRepository\n */\n_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_1__[\"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 ExternalRepository\n */\n_common_v1_response_ExternalizableAbstractModel__WEBPACK_IMPORTED_MODULE_1__[\"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 ExternalRepository\n */\n_common_v1_config_TenantAwareModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"].prototype.tenantId = undefined;\n// Implement OneOfmultidomain.v4.config.GetExternalRepositoryApiResponsedata interface:\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/multidomain/v4/config/ExternalRepository.js?\n}");
431
+
432
+ /***/ },
433
+
434
+ /***/ "./target/generated-sources/swagger/src/models/multidomain/v4/config/GetExternalRepositoryApiResponse.js"
435
+ /*!***************************************************************************************************************!*\
436
+ !*** ./target/generated-sources/swagger/src/models/multidomain/v4/config/GetExternalRepositoryApiResponse.js ***!
437
+ \***************************************************************************************************************/
438
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
439
+
440
+ "use strict";
441
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ GetExternalRepositoryApiResponse)\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 _ExternalRepository__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ExternalRepository */ \"./target/generated-sources/swagger/src/models/multidomain/v4/config/ExternalRepository.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/multidomain/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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The GetExternalRepositoryApiResponse model module.\n * @module Ntnx/GetExternalRepositoryApiResponse\n * @version 4.2.1\n * @class GetExternalRepositoryApiResponse\n */\nvar _GetExternalRepositoryApiResponse_brand = /*#__PURE__*/new WeakSet();\nclass GetExternalRepositoryApiResponse extends _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"] {\n /**\n * Constructs a new <code>GetExternalRepositoryApiResponse</code>.\n * REST response for all response codes in API path /multidomain/v4.2/config/external-repositories/{extId} Get operation\n * @alias module:Ntnx/GetExternalRepositoryApiResponse\n */\n constructor() {\n super();\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, _GetExternalRepositoryApiResponse_brand);\n this.$objectType = \"multidomain.v4.config.GetExternalRepositoryApiResponse\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v4.r2\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>GetExternalRepositoryApiResponse</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/GetExternalRepositoryApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/GetExternalRepositoryApiResponse} The populated <code>GetExternalRepositoryApiResponse</code> instance.\n */\n static constructFromObject(data, obj = null, callFromChild = false) {\n let items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new GetExternalRepositoryApiResponse();\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 'multidomain.v4.config.ExternalRepository':\n obj.setData(_ExternalRepository__WEBPACK_IMPORTED_MODULE_1__[\"default\"].constructFromObject(data['data'], undefined));\n break;\n case 'multidomain.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 = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\n /**\n * @return {ApiResponseMetadata}\n */\n getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {ApiResponseMetadata} metadata\n */\n setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {ExternalRepository | ErrorResponse}\n */\n getData() {\n return this.data;\n }\n\n /**\n * @param {ExternalRepository | ErrorResponse} data\n */\n setData(data) {\n this.data = data;\n }\n get$Reserved() {\n return this.$reserved;\n }\n get$ObjectType() {\n return this.$objectType;\n }\n get$UnknownFields() {\n return this.$unknownFields;\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}),\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(item => typeof item.toJson !== \"undefined\" ? item.toJson(false) : item) : _assertClassBrand(_GetExternalRepositoryApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n ...(typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}),\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(item => typeof item.toJson !== \"undefined\" ? item.toJson() : item) : _assertClassBrand(_GetExternalRepositoryApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 let res = [];\n let err = null;\n propList.forEach(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 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\n/**\n * @memberof GetExternalRepositoryApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\nGetExternalRepositoryApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof GetExternalRepositoryApiResponse\n */\nGetExternalRepositoryApiResponse.prototype.data = undefined;\nGetExternalRepositoryApiResponse.prototype.$reserved = undefined;\nGetExternalRepositoryApiResponse.prototype.$objectType = undefined;\nGetExternalRepositoryApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/multidomain/v4/config/GetExternalRepositoryApiResponse.js?\n}");
442
+
443
+ /***/ },
444
+
445
+ /***/ "./target/generated-sources/swagger/src/models/multidomain/v4/config/ListExternalRepositoriesApiResponse.js"
446
+ /*!******************************************************************************************************************!*\
447
+ !*** ./target/generated-sources/swagger/src/models/multidomain/v4/config/ListExternalRepositoriesApiResponse.js ***!
448
+ \******************************************************************************************************************/
449
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
450
+
451
+ "use strict";
452
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ListExternalRepositoriesApiResponse)\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 _ExternalRepository__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ExternalRepository */ \"./target/generated-sources/swagger/src/models/multidomain/v4/config/ExternalRepository.js\");\n/* harmony import */ var _error_ErrorResponse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../error/ErrorResponse */ \"./target/generated-sources/swagger/src/models/multidomain/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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The ListExternalRepositoriesApiResponse model module.\n * @module Ntnx/ListExternalRepositoriesApiResponse\n * @version 4.2.1\n * @class ListExternalRepositoriesApiResponse\n */\nvar _ListExternalRepositoriesApiResponse_brand = /*#__PURE__*/new WeakSet();\nclass ListExternalRepositoriesApiResponse extends _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"] {\n /**\n * Constructs a new <code>ListExternalRepositoriesApiResponse</code>.\n * REST response for all response codes in API path /multidomain/v4.2/config/external-repositories Get operation\n * @alias module:Ntnx/ListExternalRepositoriesApiResponse\n */\n constructor() {\n super();\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, _ListExternalRepositoriesApiResponse_brand);\n this.$objectType = \"multidomain.v4.config.ListExternalRepositoriesApiResponse\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v4.r2\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>ListExternalRepositoriesApiResponse</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/ListExternalRepositoriesApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/ListExternalRepositoriesApiResponse} The populated <code>ListExternalRepositoriesApiResponse</code> instance.\n */\n static constructFromObject(data, obj = null, callFromChild = false) {\n let items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new ListExternalRepositoriesApiResponse();\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 (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 'multidomain.v4.config.ExternalRepository':\n item = _ExternalRepository__WEBPACK_IMPORTED_MODULE_1__[\"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 'multidomain.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 }\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 = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\n /**\n * @return {ApiResponseMetadata}\n */\n getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {ApiResponseMetadata} metadata\n */\n setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {ExternalRepository[] | ErrorResponse}\n */\n getData() {\n return this.data;\n }\n\n /**\n * @param {ExternalRepository[] | ErrorResponse} data\n */\n setData(data) {\n this.data = data;\n }\n get$Reserved() {\n return this.$reserved;\n }\n get$ObjectType() {\n return this.$objectType;\n }\n get$UnknownFields() {\n return this.$unknownFields;\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}),\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(item => typeof item.toJson !== \"undefined\" ? item.toJson(false) : item) : _assertClassBrand(_ListExternalRepositoriesApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n ...(typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}),\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(item => typeof item.toJson !== \"undefined\" ? item.toJson() : item) : _assertClassBrand(_ListExternalRepositoriesApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 let res = [];\n let err = null;\n propList.forEach(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 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\n/**\n * @memberof ListExternalRepositoriesApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\nListExternalRepositoriesApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof ListExternalRepositoriesApiResponse\n */\nListExternalRepositoriesApiResponse.prototype.data = undefined;\nListExternalRepositoriesApiResponse.prototype.$reserved = undefined;\nListExternalRepositoriesApiResponse.prototype.$objectType = undefined;\nListExternalRepositoriesApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/multidomain/v4/config/ListExternalRepositoriesApiResponse.js?\n}");
453
+
454
+ /***/ },
455
+
456
+ /***/ "./target/generated-sources/swagger/src/models/multidomain/v4/config/NFSServerAddress.js"
457
+ /*!***********************************************************************************************!*\
458
+ !*** ./target/generated-sources/swagger/src/models/multidomain/v4/config/NFSServerAddress.js ***!
459
+ \***********************************************************************************************/
460
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
461
+
462
+ "use strict";
463
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ NFSServerAddress)\n/* harmony export */ });\n/* harmony import */ var _common_v1_config_IPAddressOrFQDN__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../common/v1/config/IPAddressOrFQDN */ \"./target/generated-sources/swagger/src/models/common/v1/config/IPAddressOrFQDN.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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n/**\n * The NFSServerAddress model module.\n * @module Ntnx/NFSServerAddress\n * @version 4.2.1\n * @class NFSServerAddress\n * \n * @param { IPAddressOrFQDN } address \n * \n * @param { Number } port Server port number.\n */\nvar _NFSServerAddress_brand = /*#__PURE__*/new WeakSet();\nclass NFSServerAddress {\n /**\n * Constructs a new <code>NFSServerAddress</code>.\n * NFS server address details in FQDN:Port Number format.\n * @alias module:Ntnx/NFSServerAddress\n * \n * @param { IPAddressOrFQDN } address \n * \n * @param { Number } port Server port number.\n */\n constructor(address, port) {\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, _NFSServerAddress_brand);\n this.address = address;\n this.port = port;\n this.$objectType = \"multidomain.v4.config.NFSServerAddress\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v4.r2\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>NFSServerAddress</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/NFSServerAddress} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/NFSServerAddress} The populated <code>NFSServerAddress</code> instance.\n */\n static constructFromObject(data, obj = null, callFromChild = false) {\n let items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new NFSServerAddress();\n if (data.hasOwnProperty('address') && data.address !== null && data.address !== undefined) {\n obj.setAddress(_common_v1_config_IPAddressOrFQDN__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(data['address']));\n }\n if (data.hasOwnProperty('port') && data.port !== null && data.port !== undefined) {\n obj.setPort(data['port']);\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 = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\n /**\n * @return {IPAddressOrFQDN}\n */\n getAddress() {\n return this.address;\n }\n\n /**\n * @param {IPAddressOrFQDN} address\n */\n setAddress(address) {\n this.address = address;\n }\n\n /**\n * Returns Server port number.\n * @return {Number}\n */\n getPort() {\n return this.port;\n }\n\n /**\n * Sets Server port number.\n * @param {Number} port Server port number.\n */\n setPort(port) {\n this.port = port;\n }\n get$Reserved() {\n return this.$reserved;\n }\n get$ObjectType() {\n return this.$objectType;\n }\n get$UnknownFields() {\n return this.$unknownFields;\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(typeof this.getAddress() !== 'undefined' && this.getAddress() !== null ? {\n 'address': this.getAddress().toJson(false)\n } : {}),\n ...(typeof this.getPort() !== 'undefined' && this.getPort() !== null ? {\n 'port': this.getPort()\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n ...(typeof this.getAddress() !== 'undefined' && this.getAddress() !== null ? {\n 'address': this.getAddress().toJson(false)\n } : {}),\n ...(typeof this.getPort() !== 'undefined' && this.getPort() !== null ? {\n 'port': this.getPort()\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 = [\"address\", \"port\"];\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 let res = [];\n let err = null;\n propList.forEach(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 validateProperty(scope, property) {\n if (property === \"address\") {\n if (typeof this.address === 'undefined' || this.address === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"address\", \"undefined or null\");\n }\n }\n if (property === \"port\") {\n if (typeof this.port === 'undefined' || this.port === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"port\", \"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\n/**\n * @memberof NFSServerAddress\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\nNFSServerAddress.prototype.address = undefined;\n\n/**\n * Server port number.\n * @memberof NFSServerAddress\n */\nNFSServerAddress.prototype.port = undefined;\nNFSServerAddress.prototype.$reserved = undefined;\nNFSServerAddress.prototype.$objectType = undefined;\nNFSServerAddress.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/multidomain/v4/config/NFSServerAddress.js?\n}");
464
+
465
+ /***/ },
466
+
467
+ /***/ "./target/generated-sources/swagger/src/models/multidomain/v4/config/NfsRepository.js"
468
+ /*!********************************************************************************************!*\
469
+ !*** ./target/generated-sources/swagger/src/models/multidomain/v4/config/NfsRepository.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 */ NfsRepository)\n/* harmony export */ });\n/* harmony import */ var _NFSServerAddress__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./NFSServerAddress */ \"./target/generated-sources/swagger/src/models/multidomain/v4/config/NFSServerAddress.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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n/**\n * The NfsRepository model module.\n * @module Ntnx/NfsRepository\n * @version 4.2.1\n * @class NfsRepository\n * \n * @param { string } exportName NFS repository export name details.\n * \n * @param { NFSServerAddress[] } addresses List of NFS server addresses.\n */\nvar _NfsRepository_brand = /*#__PURE__*/new WeakSet();\nclass NfsRepository {\n /**\n * Constructs a new <code>NfsRepository</code>.\n * NFS configuration details.\n * @alias module:Ntnx/NfsRepository\n * \n * @param { string } exportName NFS repository export name details.\n * \n * @param { NFSServerAddress[] } addresses List of NFS server addresses.\n */\n constructor(exportName, addresses) {\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, _NfsRepository_brand);\n this.exportName = exportName;\n this.addresses = addresses;\n this.$objectType = \"multidomain.v4.config.NfsRepository\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v4.r2\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>NfsRepository</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/NfsRepository} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/NfsRepository} The populated <code>NfsRepository</code> instance.\n */\n static constructFromObject(data, obj = null, callFromChild = false) {\n let items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new NfsRepository();\n if (data.hasOwnProperty('exportName') && data.exportName !== null && data.exportName !== undefined) {\n obj.setExportName(data['exportName']);\n }\n if (data.hasOwnProperty('addresses') && data.addresses !== null && data.addresses !== undefined) {\n itemArr = [];\n items = data.addresses;\n for (i = 0; i < items.length; i++) {\n item = _NFSServerAddress__WEBPACK_IMPORTED_MODULE_0__[\"default\"].constructFromObject(items[i], undefined);\n itemArr.push(item);\n }\n obj.setAddresses(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 = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\n /**\n * Returns NFS repository export name details.\n * @return {string}\n */\n getExportName() {\n return this.exportName;\n }\n\n /**\n * Sets NFS repository export name details.\n * @param {string} exportName NFS repository export name details.\n */\n setExportName(exportName) {\n this.exportName = exportName;\n }\n\n /**\n * Returns List of NFS server addresses.\n * @return {NFSServerAddress[]}\n */\n getAddresses() {\n return this.addresses;\n }\n\n /**\n * Sets List of NFS server addresses.\n * @param {NFSServerAddress[]} addresses List of NFS server addresses.\n */\n setAddresses(addresses) {\n this.addresses = addresses;\n }\n get$Reserved() {\n return this.$reserved;\n }\n get$ObjectType() {\n return this.$objectType;\n }\n get$UnknownFields() {\n return this.$unknownFields;\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(typeof this.getExportName() !== 'undefined' && this.getExportName() !== null ? {\n 'exportName': this.getExportName()\n } : {}),\n ...(typeof this.getAddresses() !== 'undefined' && this.getAddresses() !== null ? {\n 'addresses': this.getAddresses().map(item => item.toJson(false))\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n ...(typeof this.getExportName() !== 'undefined' && this.getExportName() !== null ? {\n 'exportName': this.getExportName()\n } : {}),\n ...(typeof this.getAddresses() !== 'undefined' && this.getAddresses() !== null ? {\n 'addresses': this.getAddresses().map(item => item.toJson(false))\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 = [\"exportName\", \"addresses\"];\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 let res = [];\n let err = null;\n propList.forEach(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 validateProperty(scope, property) {\n if (property === \"exportName\") {\n if (typeof this.exportName === 'undefined' || this.exportName === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"exportName\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__[\"default\"].validateMaxLength(this.exportName, 255)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"exportName\", \"does not satisfy required maxLength constraint: 255\");\n }\n }\n if (property === \"addresses\") {\n if (typeof this.addresses === 'undefined' || this.addresses === null) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"addresses\", \"undefined or null\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__[\"default\"].validateMaxItems(this.addresses, 10)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"addresses\", \"does not satisfy required maxItems constraint: 10\");\n }\n if (!_utils_ValidationUtils__WEBPACK_IMPORTED_MODULE_2__[\"default\"].validateMinItems(this.addresses, 1)) {\n return new _validation_ValidationError__WEBPACK_IMPORTED_MODULE_3__[\"default\"](\"addresses\", \"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_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\n/**\n * NFS repository export name details.\n * @memberof NfsRepository\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\nNfsRepository.prototype.exportName = undefined;\n\n/**\n * List of NFS server addresses.\n * @memberof NfsRepository\n */\nNfsRepository.prototype.addresses = undefined;\nNfsRepository.prototype.$reserved = undefined;\nNfsRepository.prototype.$objectType = undefined;\nNfsRepository.prototype.$unknownFields = undefined;\n\n// Implement OneOfmultidomain.v4.config.ExternalRepositorylocation interface:\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/multidomain/v4/config/NfsRepository.js?\n}");
475
+
476
+ /***/ },
477
+
478
+ /***/ "./target/generated-sources/swagger/src/models/multidomain/v4/config/UpdateExternalRepositoryApiResponse.js"
479
+ /*!******************************************************************************************************************!*\
480
+ !*** ./target/generated-sources/swagger/src/models/multidomain/v4/config/UpdateExternalRepositoryApiResponse.js ***!
481
+ \******************************************************************************************************************/
482
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
483
+
484
+ "use strict";
485
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ UpdateExternalRepositoryApiResponse)\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/multidomain/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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\n\n\n\n\n\n\n\n/**\n * The UpdateExternalRepositoryApiResponse model module.\n * @module Ntnx/UpdateExternalRepositoryApiResponse\n * @version 4.2.1\n * @class UpdateExternalRepositoryApiResponse\n */\nvar _UpdateExternalRepositoryApiResponse_brand = /*#__PURE__*/new WeakSet();\nclass UpdateExternalRepositoryApiResponse extends _Paginable__WEBPACK_IMPORTED_MODULE_6__[\"default\"] {\n /**\n * Constructs a new <code>UpdateExternalRepositoryApiResponse</code>.\n * REST response for all response codes in API path /multidomain/v4.2/config/external-repositories/{extId} Put operation\n * @alias module:Ntnx/UpdateExternalRepositoryApiResponse\n */\n constructor() {\n super();\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, _UpdateExternalRepositoryApiResponse_brand);\n this.$objectType = \"multidomain.v4.config.UpdateExternalRepositoryApiResponse\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v4.r2\"\n };\n /** @type {object<string, any>} */\n this.$unknownFields = {};\n }\n\n /**\n * Constructs a <code>UpdateExternalRepositoryApiResponse</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/UpdateExternalRepositoryApiResponse} obj Optional instance to populate.\n * @param callFromChild {Boolean} Flag to recognise calling instance\n * @return {module:Ntnx/UpdateExternalRepositoryApiResponse} The populated <code>UpdateExternalRepositoryApiResponse</code> instance.\n */\n static constructFromObject(data, obj = null, callFromChild = false) {\n let items, item, i, itemArr, discriminator;\n if (data) {\n obj = obj || new UpdateExternalRepositoryApiResponse();\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 'multidomain.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 = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\n /**\n * @return {ApiResponseMetadata}\n */\n getMetadata() {\n return this.metadata;\n }\n\n /**\n * @param {ApiResponseMetadata} metadata\n */\n setMetadata(metadata) {\n this.metadata = metadata;\n }\n\n /**\n * @return {TaskReference | ErrorResponse}\n */\n getData() {\n return this.data;\n }\n\n /**\n * @param {TaskReference | ErrorResponse} data\n */\n setData(data) {\n this.data = data;\n }\n get$Reserved() {\n return this.$reserved;\n }\n get$ObjectType() {\n return this.$objectType;\n }\n get$UnknownFields() {\n return this.$unknownFields;\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}),\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(item => typeof item.toJson !== \"undefined\" ? item.toJson(false) : item) : _assertClassBrand(_UpdateExternalRepositoryApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n ...(typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {\n 'metadata': this.getMetadata().toJson(false)\n } : {}),\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(item => typeof item.toJson !== \"undefined\" ? item.toJson() : item) : _assertClassBrand(_UpdateExternalRepositoryApiResponse_brand, this, _toJsonMapType).call(this, this.getData())\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 let res = [];\n let err = null;\n propList.forEach(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 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\n/**\n * @memberof UpdateExternalRepositoryApiResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\nUpdateExternalRepositoryApiResponse.prototype.metadata = undefined;\n\n/**\n * @memberof UpdateExternalRepositoryApiResponse\n */\nUpdateExternalRepositoryApiResponse.prototype.data = undefined;\nUpdateExternalRepositoryApiResponse.prototype.$reserved = undefined;\nUpdateExternalRepositoryApiResponse.prototype.$objectType = undefined;\nUpdateExternalRepositoryApiResponse.prototype.$unknownFields = undefined;\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/multidomain/v4/config/UpdateExternalRepositoryApiResponse.js?\n}");
486
+
487
+ /***/ },
488
+
489
+ /***/ "./target/generated-sources/swagger/src/models/multidomain/v4/error/AppMessage.js"
490
+ /*!****************************************************************************************!*\
491
+ !*** ./target/generated-sources/swagger/src/models/multidomain/v4/error/AppMessage.js ***!
492
+ \****************************************************************************************/
493
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
494
+
495
+ "use strict";
496
+ 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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-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.2.1\n * @class AppMessage\n */\nvar _AppMessage_brand = /*#__PURE__*/new WeakSet();\nclass AppMessage {\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 constructor() {\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 = \"multidomain.v4.error.AppMessage\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v4.r2\"\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 static constructFromObject(data, obj = null, callFromChild = false) {\n let 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 = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\n /**\n * Returns The message string.\n * @return {string}\n */\n getMessage() {\n return this.message;\n }\n\n /**\n * Sets The message string.\n * @param {string} message The message string.\n */\n setMessage(message) {\n this.message = message;\n }\n\n /**\n * @return {MessageSeverity}\n */\n getSeverity() {\n return this.severity;\n }\n\n /**\n * @param {MessageSeverity} severity\n */\n setSeverity(severity) {\n this.severity = severity;\n }\n\n /**\n * Returns The code associated with this message. This string is typically prefixed with the namespace to which the endpoint belongs. For example: VMM-40000\n * @return {string}\n */\n getCode() {\n return this.code;\n }\n\n /**\n * Sets The code associated with this message. This string is typically prefixed with the namespace to which the endpoint belongs. For example: VMM-40000\n * @param {string} code The code associated with this message. This string is typically prefixed with the namespace to which the endpoint belongs. For example: VMM-40000\n */\n 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 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 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 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 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 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 setArgumentsMap(argumentsMap) {\n this.argumentsMap = argumentsMap;\n }\n get$Reserved() {\n return this.$reserved;\n }\n get$ObjectType() {\n return this.$objectType;\n }\n get$UnknownFields() {\n return this.$unknownFields;\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}),\n ...(typeof this.getSeverity() !== 'undefined' && this.getSeverity() !== null ? {\n 'severity': this.getSeverity()\n } : {}),\n ...(typeof this.getCode() !== 'undefined' && this.getCode() !== null ? {\n 'code': this.getCode()\n } : {}),\n ...(typeof this.getLocale() !== 'undefined' && this.getLocale() !== null ? {\n 'locale': this.getLocale()\n } : {}),\n ...(typeof this.getErrorGroup() !== 'undefined' && this.getErrorGroup() !== null ? {\n 'errorGroup': this.getErrorGroup()\n } : {}),\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 ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n ...(typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}),\n ...(typeof this.getSeverity() !== 'undefined' && this.getSeverity() !== null ? {\n 'severity': this.getSeverity()\n } : {}),\n ...(typeof this.getCode() !== 'undefined' && this.getCode() !== null ? {\n 'code': this.getCode()\n } : {}),\n ...(typeof this.getLocale() !== 'undefined' && this.getLocale() !== null ? {\n 'locale': this.getLocale()\n } : {}),\n ...(typeof this.getErrorGroup() !== 'undefined' && this.getErrorGroup() !== null ? {\n 'errorGroup': this.getErrorGroup()\n } : {}),\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 ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 let res = [];\n let err = null;\n propList.forEach(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 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\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, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\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 with the namespace to which the endpoint belongs. 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/multidomain/v4/error/AppMessage.js?\n}");
497
+
498
+ /***/ },
499
+
500
+ /***/ "./target/generated-sources/swagger/src/models/multidomain/v4/error/ErrorResponse.js"
501
+ /*!*******************************************************************************************!*\
502
+ !*** ./target/generated-sources/swagger/src/models/multidomain/v4/error/ErrorResponse.js ***!
503
+ \*******************************************************************************************/
504
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
505
+
506
+ "use strict";
507
+ 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/multidomain/v4/error/AppMessage.js\");\n/* harmony import */ var _SchemaValidationError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SchemaValidationError */ \"./target/generated-sources/swagger/src/models/multidomain/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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-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.2.1\n * @class ErrorResponse\n */\nvar _ErrorResponse_brand = /*#__PURE__*/new WeakSet();\nclass ErrorResponse {\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 constructor() {\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 = \"multidomain.v4.error.ErrorResponse\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v4.r2\"\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 static constructFromObject(data, obj = null, callFromChild = false) {\n let 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 'multidomain.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 'multidomain.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 = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\n /**\n * @return {AppMessage[] | SchemaValidationError}\n */\n getError() {\n return this.error;\n }\n\n /**\n * @param {AppMessage[] | SchemaValidationError} error\n */\n setError(error) {\n this.error = error;\n }\n get$Reserved() {\n return this.$reserved;\n }\n get$ObjectType() {\n return this.$objectType;\n }\n get$UnknownFields() {\n return this.$unknownFields;\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(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(item => typeof item.toJson !== \"undefined\" ? item.toJson(false) : item) : _assertClassBrand(_ErrorResponse_brand, this, _toJsonMapType).call(this, this.getError(), false)\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n ...(typeof this.getError() !== 'undefined' && this.getError() !== null ? {\n 'error': typeof this.getError().toJson !== \"undefined\" ? this.getError().toJson() : Array.isArray(this.getError()) ? this.getError().map(item => typeof item.toJson !== \"undefined\" ? item.toJson() : item) : _assertClassBrand(_ErrorResponse_brand, this, _toJsonMapType).call(this, this.getError())\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 let res = [];\n let err = null;\n propList.forEach(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 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\n/**\n * @memberof ErrorResponse\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\nErrorResponse.prototype.error = undefined;\nErrorResponse.prototype.$reserved = undefined;\nErrorResponse.prototype.$objectType = undefined;\nErrorResponse.prototype.$unknownFields = undefined;\n\n// Implement OneOfmultidomain.v4.config.UpdateExternalRepositoryApiResponsedata interface:\n// Implement OneOfmultidomain.v4.config.ListExternalRepositoriesApiResponsedata interface:\n// Implement OneOfmultidomain.v4.config.DeleteExternalRepositoryApiResponsedata interface:\n// Implement OneOfmultidomain.v4.config.CreateExternalRepositoryApiResponsedata interface:\n// Implement OneOfmultidomain.v4.config.GetExternalRepositoryApiResponsedata interface:\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/multidomain/v4/error/ErrorResponse.js?\n}");
508
+
509
+ /***/ },
510
+
511
+ /***/ "./target/generated-sources/swagger/src/models/multidomain/v4/error/SchemaValidationError.js"
512
+ /*!***************************************************************************************************!*\
513
+ !*** ./target/generated-sources/swagger/src/models/multidomain/v4/error/SchemaValidationError.js ***!
514
+ \***************************************************************************************************/
515
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
516
+
517
+ "use strict";
518
+ 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/multidomain/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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-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.2.1\n * @class SchemaValidationError\n */\nvar _SchemaValidationError_brand = /*#__PURE__*/new WeakSet();\nclass SchemaValidationError {\n /**\n * Constructs a new <code>SchemaValidationError</code>.\n * This schema is generated from SchemaValidationError.java\n * @alias module:Ntnx/SchemaValidationError\n */\n constructor() {\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 = \"multidomain.v4.error.SchemaValidationError\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v4.r2\"\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 static constructFromObject(data, obj = null, callFromChild = false) {\n let 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 = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\n /**\n * Returns Timestamp of the response.\n * @return {Date}\n */\n getTimestamp() {\n return this.timestamp;\n }\n\n /**\n * Sets Timestamp of the response.\n * @param {Date} timestamp Timestamp of the response.\n */\n setTimestamp(timestamp) {\n this.timestamp = timestamp;\n }\n\n /**\n * Returns The HTTP status code of the response.\n * @return {Number}\n */\n 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 setStatusCode(statusCode) {\n this.statusCode = statusCode;\n }\n\n /**\n * Returns The generic error message for the response.\n * @return {string}\n */\n 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 setError(error) {\n this.error = error;\n }\n\n /**\n * Returns API path on which the request was made.\n * @return {string}\n */\n 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 setPath(path) {\n this.path = path;\n }\n\n /**\n * Returns List of validation error messages\n * @return {SchemaValidationErrorMessage[]}\n */\n 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 setValidationErrorMessages(validationErrorMessages) {\n this.validationErrorMessages = validationErrorMessages;\n }\n get$Reserved() {\n return this.$reserved;\n }\n get$ObjectType() {\n return this.$objectType;\n }\n get$UnknownFields() {\n return this.$unknownFields;\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(typeof this.getTimestamp() !== 'undefined' && this.getTimestamp() !== null ? {\n 'timestamp': _assertClassBrand(_SchemaValidationError_brand, this, _handleDateType).call(this, this.getTimestamp(), false)\n } : {}),\n ...(typeof this.getStatusCode() !== 'undefined' && this.getStatusCode() !== null ? {\n 'statusCode': this.getStatusCode()\n } : {}),\n ...(typeof this.getError() !== 'undefined' && this.getError() !== null ? {\n 'error': this.getError()\n } : {}),\n ...(typeof this.getPath() !== 'undefined' && this.getPath() !== null ? {\n 'path': this.getPath()\n } : {}),\n ...(typeof this.getValidationErrorMessages() !== 'undefined' && this.getValidationErrorMessages() !== null ? {\n 'validationErrorMessages': this.getValidationErrorMessages().map(item => item.toJson(false))\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n ...(typeof this.getTimestamp() !== 'undefined' && this.getTimestamp() !== null ? {\n 'timestamp': _assertClassBrand(_SchemaValidationError_brand, this, _handleDateType).call(this, this.getTimestamp(), false)\n } : {}),\n ...(typeof this.getStatusCode() !== 'undefined' && this.getStatusCode() !== null ? {\n 'statusCode': this.getStatusCode()\n } : {}),\n ...(typeof this.getError() !== 'undefined' && this.getError() !== null ? {\n 'error': this.getError()\n } : {}),\n ...(typeof this.getPath() !== 'undefined' && this.getPath() !== null ? {\n 'path': this.getPath()\n } : {}),\n ...(typeof this.getValidationErrorMessages() !== 'undefined' && this.getValidationErrorMessages() !== null ? {\n 'validationErrorMessages': this.getValidationErrorMessages().map(item => item.toJson(false))\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 let res = [];\n let err = null;\n propList.forEach(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 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\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, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\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 OneOfmultidomain.v4.error.ErrorResponseerror interface:\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/multidomain/v4/error/SchemaValidationError.js?\n}");
519
+
520
+ /***/ },
521
+
522
+ /***/ "./target/generated-sources/swagger/src/models/multidomain/v4/error/SchemaValidationErrorMessage.js"
523
+ /*!**********************************************************************************************************!*\
524
+ !*** ./target/generated-sources/swagger/src/models/multidomain/v4/error/SchemaValidationErrorMessage.js ***!
525
+ \**********************************************************************************************************/
526
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
527
+
528
+ "use strict";
529
+ 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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-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.2.1\n * @class SchemaValidationErrorMessage\n */\nvar _SchemaValidationErrorMessage_brand = /*#__PURE__*/new WeakSet();\nclass SchemaValidationErrorMessage {\n /**\n * Constructs a new <code>SchemaValidationErrorMessage</code>.\n * This schema is generated from SchemaValidationErrorMessage.java\n * @alias module:Ntnx/SchemaValidationErrorMessage\n */\n constructor() {\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 = \"multidomain.v4.error.SchemaValidationErrorMessage\";\n /** @type {object<string, any>} */\n this.$reserved = {\n '$fv': \"v4.r2\"\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 static constructFromObject(data, obj = null, callFromChild = false) {\n let 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 = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\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 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 setLocation(location) {\n this.location = location;\n }\n\n /**\n * Returns The detailed message for the validation error.\n * @return {string}\n */\n 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 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 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 setAttributePath(attributePath) {\n this.attributePath = attributePath;\n }\n get$Reserved() {\n return this.$reserved;\n }\n get$ObjectType() {\n return this.$objectType;\n }\n get$UnknownFields() {\n return this.$unknownFields;\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(typeof this.getLocation() !== 'undefined' && this.getLocation() !== null ? {\n 'location': this.getLocation()\n } : {}),\n ...(typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}),\n ...(typeof this.getAttributePath() !== 'undefined' && this.getAttributePath() !== null ? {\n 'attributePath': this.getAttributePath()\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n ...(typeof this.getLocation() !== 'undefined' && this.getLocation() !== null ? {\n 'location': this.getLocation()\n } : {}),\n ...(typeof this.getMessage() !== 'undefined' && this.getMessage() !== null ? {\n 'message': this.getMessage()\n } : {}),\n ...(typeof this.getAttributePath() !== 'undefined' && this.getAttributePath() !== null ? {\n 'attributePath': this.getAttributePath()\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 let res = [];\n let err = null;\n propList.forEach(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 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\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, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\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/multidomain/v4/error/SchemaValidationErrorMessage.js?\n}");
530
+
531
+ /***/ },
532
+
533
+ /***/ "./target/generated-sources/swagger/src/models/prism/v4/config/TaskReference.js"
534
+ /*!**************************************************************************************!*\
535
+ !*** ./target/generated-sources/swagger/src/models/prism/v4/config/TaskReference.js ***!
536
+ \**************************************************************************************/
537
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
538
+
539
+ "use strict";
540
+ 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 _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 Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-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.2.1\n * @class TaskReference\n */\nvar _TaskReference_brand = /*#__PURE__*/new WeakSet();\nclass TaskReference {\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 constructor() {\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.r2\"\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 static constructFromObject(data, obj = null, callFromChild = false) {\n let 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 = {\n ...data.$unknownFields\n };\n for (const 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 static snakeToCamel(snakeStr) {\n return snakeStr.replace(/(_\\w)/g, match => match[1].toUpperCase());\n }\n\n /**\n * Returns A globally unique identifier for a task.\n * @return {string}\n */\n getExtId() {\n return this.extId;\n }\n\n /**\n * Sets A globally unique identifier for a task.\n * @param {string} extId A globally unique identifier for a task.\n */\n setExtId(extId) {\n this.extId = extId;\n }\n get$Reserved() {\n return this.$reserved;\n }\n get$ObjectType() {\n return this.$objectType;\n }\n get$UnknownFields() {\n return this.$unknownFields;\n }\n toJson(forMutation) {\n if (forMutation === false) {\n return {\n ...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n return {\n ...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {\n 'extId': this.getExtId()\n } : {}),\n '$reserved': this.get$Reserved(),\n '$objectType': this.get$ObjectType(),\n ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),\n '$unknownFields': {}\n };\n }\n validate(scope, properties) {\n let 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 let res = [];\n let err = null;\n propList.forEach(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 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\n/**\n * A globally unique identifier for a task.\n * @memberof TaskReference\n */\nfunction _toJsonMapType(obj, forMutation) {\n if (obj instanceof Map) {\n return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== \"undefined\" ? v.toJson(forMutation) : v]));\n } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {\n return Object.fromEntries(Array.from(Object.entries(obj), 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}\nTaskReference.prototype.extId = undefined;\nTaskReference.prototype.$reserved = undefined;\nTaskReference.prototype.$objectType = undefined;\nTaskReference.prototype.$unknownFields = undefined;\n\n// Implement OneOfmultidomain.v4.config.UpdateExternalRepositoryApiResponsedata interface:\n// Implement OneOfmultidomain.v4.config.DeleteExternalRepositoryApiResponsedata interface:\n// Implement OneOfmultidomain.v4.config.CreateExternalRepositoryApiResponsedata interface:\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/prism/v4/config/TaskReference.js?\n}");
541
+
542
+ /***/ },
543
+
544
+ /***/ "./target/generated-sources/swagger/src/models/validation/ValidationError.js"
545
+ /*!***********************************************************************************!*\
546
+ !*** ./target/generated-sources/swagger/src/models/validation/ValidationError.js ***!
547
+ \***********************************************************************************/
548
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
549
+
550
+ "use strict";
551
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ValidationError)\n/* harmony export */ });\n/*\n * Nutanix Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\nclass ValidationError {\n constructor(name, message) {\n this.name = name;\n this.message = message;\n }\n getName() {\n return this.name;\n }\n setName(name) {\n this.name = name;\n }\n getMessage() {\n return this.message;\n }\n setMessage(message) {\n this.message = message;\n }\n toJson() {\n return {\n 'name': this.getName(),\n 'message': this.getMessage()\n };\n }\n}\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/validation/ValidationError.js?\n}");
552
+
553
+ /***/ },
554
+
555
+ /***/ "./target/generated-sources/swagger/src/models/validation/ValidationScopes.js"
556
+ /*!************************************************************************************!*\
557
+ !*** ./target/generated-sources/swagger/src/models/validation/ValidationScopes.js ***!
558
+ \************************************************************************************/
559
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
560
+
561
+ "use strict";
562
+ 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/**\n* Enum class ValidationScopes.\n* @enum {}\n* @readonly\n*/\n\nconst ValidationScopes = {\n /**\n * value: {DEFAULT}\n * @const\n */\n DEFAULT: \"DEFAULT\"\n};\nValidationScopes.constructFromObject = function (obj) {\n if (typeof obj === 'string' || obj instanceof String) {\n return ValidationScopes[obj];\n } else {\n throw new Error(\"Received object name is not an instance of String\");\n }\n};\nValidationScopes.validate = function (obj) {\n if (typeof obj !== 'undefined' && obj !== null) {\n switch (obj) {\n case ValidationScopes.DEFAULT:\n return;\n default:\n throw new Error(\"Invalid : must be ValidationScopes.{ }\");\n }\n }\n};\nObject.freeze(ValidationScopes);\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ValidationScopes);\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/models/validation/ValidationScopes.js?\n}");
563
+
564
+ /***/ },
565
+
566
+ /***/ "./target/generated-sources/swagger/src/utils/ValidationUtils.js"
567
+ /*!***********************************************************************!*\
568
+ !*** ./target/generated-sources/swagger/src/utils/ValidationUtils.js ***!
569
+ \***********************************************************************/
570
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
571
+
572
+ "use strict";
573
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ ValidationUtils)\n/* harmony export */ });\n/*\n * Nutanix Multidomain Versioned APIs\n *\n * OpenAPI spec version: 4.2.1\n *\n * NOTE: This class is auto generated by the Open API Dev Platform.\n *\n * Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE\n *\n * Do not edit the class manually.\n *\n */\n\nclass ValidationUtils {\n static validateMaximum(value, maximum) {\n return !(maximum === null || value > maximum);\n }\n static validateMinimum(value, minimum) {\n return !(minimum === null || value < minimum);\n }\n static validateExclusiveMaximum(value, eMaximum) {\n return !(eMaximum === null || value > eMaximum);\n }\n static validateExclusiveMinimum(value, eMinimum) {\n return !(eMinimum === null || value > eMinimum);\n }\n static validateMultipleOf(value, multipleOf) {\n return !(multipleOf === null || value % multipleOf === 0);\n }\n static validateMaxLength(value, maxLength) {\n return !(maxLength === null || value.length > maxLength);\n }\n static validateMinLength(value, minLength) {\n return !(minLength === null || value.length < minLength);\n }\n static validatePattern(value, pattern) {\n return !(pattern === null || value.match(pattern) === null);\n }\n static validateMaxItems(value, maxItems) {\n return !(maxItems === null || value.length > maxItems);\n }\n static validateMinItems(value, minItems) {\n return !(minItems === null || value.length < minItems);\n }\n static validateUniqueItems(value, uniqueItems) {\n return !(uniqueItems === null || !uniqueItems || value.length !== new Set(value).size);\n }\n}\n\n//# sourceURL=webpack://Ntnx/./target/generated-sources/swagger/src/utils/ValidationUtils.js?\n}");
574
+
575
+ /***/ },
576
+
577
+ /***/ "?aee4"
578
+ /*!***********************!*\
579
+ !*** https (ignored) ***!
580
+ \***********************/
581
+ () {
582
+
583
+ eval("{/* (ignored) */\n\n//# sourceURL=webpack://Ntnx/https_(ignored)?\n}");
584
+
585
+ /***/ },
586
+
587
+ /***/ "?bdc3"
588
+ /*!************************!*\
589
+ !*** buffer (ignored) ***!
590
+ \************************/
591
+ () {
592
+
593
+ eval("{/* (ignored) */\n\n//# sourceURL=webpack://Ntnx/buffer_(ignored)?\n}");
594
+
595
+ /***/ },
596
+
597
+ /***/ "?e583"
598
+ /*!********************!*\
599
+ !*** fs (ignored) ***!
600
+ \********************/
601
+ () {
602
+
603
+ eval("{/* (ignored) */\n\n//# sourceURL=webpack://Ntnx/fs_(ignored)?\n}");
604
+
605
+ /***/ },
606
+
607
+ /***/ "?fdee"
608
+ /*!****************************!*\
609
+ !*** stream/web (ignored) ***!
610
+ \****************************/
611
+ () {
612
+
613
+ eval("{/* (ignored) */\n\n//# sourceURL=webpack://Ntnx/stream/web_(ignored)?\n}");
614
+
615
+ /***/ }
616
+
617
+ /******/ });
618
+ /************************************************************************/
619
+ /******/ // The module cache
620
+ /******/ var __webpack_module_cache__ = {};
621
+ /******/
622
+ /******/ // The require function
623
+ /******/ function __webpack_require__(moduleId) {
624
+ /******/ // Check if module is in cache
625
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
626
+ /******/ if (cachedModule !== undefined) {
627
+ /******/ return cachedModule.exports;
628
+ /******/ }
629
+ /******/ // Check if module exists (development only)
630
+ /******/ if (__webpack_modules__[moduleId] === undefined) {
631
+ /******/ var e = new Error("Cannot find module '" + moduleId + "'");
632
+ /******/ e.code = 'MODULE_NOT_FOUND';
633
+ /******/ throw e;
634
+ /******/ }
635
+ /******/ // Create a new module (and put it into the cache)
636
+ /******/ var module = __webpack_module_cache__[moduleId] = {
637
+ /******/ // no module.id needed
638
+ /******/ // no module.loaded needed
639
+ /******/ exports: {}
640
+ /******/ };
641
+ /******/
642
+ /******/ // Execute the module function
643
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
644
+ /******/
645
+ /******/ // Return the exports of the module
646
+ /******/ return module.exports;
647
+ /******/ }
648
+ /******/
649
+ /************************************************************************/
650
+ /******/ /* webpack/runtime/compat get default export */
651
+ /******/ (() => {
652
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
653
+ /******/ __webpack_require__.n = (module) => {
654
+ /******/ var getter = module && module.__esModule ?
655
+ /******/ () => (module['default']) :
656
+ /******/ () => (module);
657
+ /******/ __webpack_require__.d(getter, { a: getter });
658
+ /******/ return getter;
659
+ /******/ };
660
+ /******/ })();
661
+ /******/
662
+ /******/ /* webpack/runtime/define property getters */
663
+ /******/ (() => {
664
+ /******/ // define getter functions for harmony exports
665
+ /******/ __webpack_require__.d = (exports, definition) => {
666
+ /******/ for(var key in definition) {
667
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
668
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
669
+ /******/ }
670
+ /******/ }
671
+ /******/ };
672
+ /******/ })();
673
+ /******/
674
+ /******/ /* webpack/runtime/global */
675
+ /******/ (() => {
676
+ /******/ __webpack_require__.g = (function() {
677
+ /******/ if (typeof globalThis === 'object') return globalThis;
678
+ /******/ try {
679
+ /******/ return this || new Function('return this')();
680
+ /******/ } catch (e) {
681
+ /******/ if (typeof window === 'object') return window;
682
+ /******/ }
683
+ /******/ })();
684
+ /******/ })();
685
+ /******/
686
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
687
+ /******/ (() => {
688
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
689
+ /******/ })();
690
+ /******/
691
+ /******/ /* webpack/runtime/make namespace object */
692
+ /******/ (() => {
693
+ /******/ // define __esModule on exports
694
+ /******/ __webpack_require__.r = (exports) => {
695
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
696
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
697
+ /******/ }
698
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
699
+ /******/ };
700
+ /******/ })();
701
+ /******/
702
+ /************************************************************************/
703
+ /******/
704
+ /******/ // startup
705
+ /******/ // Load entry module and return exports
706
+ /******/ // This entry module can't be inlined because the eval devtool is used.
707
+ /******/ var __webpack_exports__ = __webpack_require__("./target/generated-sources/swagger/src/index.js");
708
+ /******/ __webpack_exports__ = __webpack_exports__["default"];
709
+ /******/
710
+ /******/ return __webpack_exports__;
711
+ /******/ })()
712
+ ;
713
+ });