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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/LICENSE.txt +202 -49
  2. package/README.md +39 -27
  3. package/dist/Ntnx-Objects-js-client-prod.js +1 -1
  4. package/dist/Ntnx-Objects-js-client.js +227 -96
  5. package/dist/es/ApiClient.d.ts +8 -1
  6. package/dist/es/ApiClient.js +249 -189
  7. package/dist/es/Paginable.d.ts +1 -1
  8. package/dist/es/Paginable.js +9 -9
  9. package/dist/es/apis/objectstores-endpoints.d.ts +66 -95
  10. package/dist/es/apis/objectstores-endpoints.js +205 -170
  11. package/dist/es/apis/stats-endpoints.d.ts +69 -0
  12. package/dist/es/apis/stats-endpoints.js +154 -0
  13. package/dist/es/index.d.ts +43 -21
  14. package/dist/es/index.js +135 -47
  15. package/dist/es/models/common/v1/config/FQDN.d.ts +24 -20
  16. package/dist/es/models/common/v1/config/FQDN.js +56 -21
  17. package/dist/es/models/common/v1/config/Flag.d.ts +32 -26
  18. package/dist/es/models/common/v1/config/Flag.js +65 -21
  19. package/dist/es/models/common/v1/config/IPAddress.d.ts +42 -26
  20. package/dist/es/models/common/v1/config/IPAddress.js +53 -21
  21. package/dist/es/models/common/v1/config/IPv4Address.d.ts +40 -26
  22. package/dist/es/models/common/v1/config/IPv4Address.js +64 -23
  23. package/dist/es/models/common/v1/config/IPv6Address.d.ts +40 -26
  24. package/dist/es/models/common/v1/config/IPv6Address.js +64 -23
  25. package/dist/es/models/common/v1/config/KVPair.d.ts +35 -26
  26. package/dist/es/models/common/v1/config/KVPair.js +70 -24
  27. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
  28. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +275 -0
  29. package/dist/es/models/common/v1/config/Message.d.ts +41 -38
  30. package/dist/es/models/common/v1/config/Message.js +57 -25
  31. package/dist/es/models/common/v1/config/MessageSeverity.js +7 -7
  32. package/dist/es/models/common/v1/config/Metadata.d.ts +46 -44
  33. package/dist/es/models/common/v1/config/Metadata.js +65 -27
  34. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +22 -20
  35. package/dist/es/models/common/v1/config/TenantAwareModel.js +51 -19
  36. package/dist/es/models/common/v1/response/ApiLink.d.ts +28 -26
  37. package/dist/es/models/common/v1/response/ApiLink.js +53 -21
  38. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
  39. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +71 -27
  40. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
  41. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +71 -31
  42. package/dist/es/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
  43. package/dist/es/models/common/v1/stats/DownSamplingOperator.js +109 -0
  44. package/dist/es/models/common/v1/stats/TimeIntValuePair.d.ts +64 -0
  45. package/dist/es/models/common/v1/stats/TimeIntValuePair.js +313 -0
  46. package/dist/es/models/objects/v4/config/Certificate.d.ts +146 -0
  47. package/dist/es/models/objects/v4/{operations → config}/Certificate.js +184 -43
  48. package/dist/es/models/objects/v4/{operations → config}/CertificateProjection.d.ts +2 -1
  49. package/dist/{lib/models/objects/v4/operations → es/models/objects/v4/config}/CertificateProjection.js +41 -17
  50. package/dist/es/models/objects/v4/config/CreateCertificateApiResponse.d.ts +101 -0
  51. package/dist/es/models/objects/v4/config/CreateCertificateApiResponse.js +343 -0
  52. package/dist/es/models/objects/v4/config/CreateObjectstoreApiResponse.d.ts +99 -0
  53. package/dist/{lib/models/objects/v4/operations/TaskReferenceApiResponse.js → es/models/objects/v4/config/CreateObjectstoreApiResponse.js} +86 -54
  54. package/dist/es/models/objects/v4/config/DeleteObjectstoreApiResponse.d.ts +99 -0
  55. package/dist/es/models/objects/v4/config/DeleteObjectstoreApiResponse.js +343 -0
  56. package/dist/es/models/objects/v4/config/GetCaApiResponse.d.ts +98 -0
  57. package/dist/es/models/objects/v4/{operations/TaskReferenceApiResponse.js → config/GetCaApiResponse.js} +88 -57
  58. package/dist/es/models/objects/v4/config/GetCertificateApiResponse.d.ts +99 -0
  59. package/dist/es/models/objects/v4/{operations/CertificateApiResponse.js → config/GetCertificateApiResponse.js} +88 -56
  60. package/dist/es/models/objects/v4/config/GetObjectstoreApiResponse.d.ts +101 -0
  61. package/dist/{lib/models/objects/v4/operations/ObjectstoreApiResponse.js → es/models/objects/v4/config/GetObjectstoreApiResponse.js} +89 -57
  62. package/dist/es/models/objects/v4/config/ListCertificatesApiResponse.d.ts +100 -0
  63. package/dist/es/models/objects/v4/{operations/CertificateListApiResponse.js → config/ListCertificatesApiResponse.js} +89 -57
  64. package/dist/es/models/objects/v4/config/ListObjectstoresApiResponse.d.ts +100 -0
  65. package/dist/es/models/objects/v4/{operations/ObjectstoreListApiResponse.js → config/ListObjectstoresApiResponse.js} +92 -60
  66. package/dist/es/models/objects/v4/config/ObjectStore.d.ts +313 -0
  67. package/dist/es/models/objects/v4/{operations/Objectstore.js → config/ObjectStore.js} +213 -157
  68. package/dist/es/models/objects/v4/config/ObjectStoreProjection.d.ts +174 -0
  69. package/dist/{lib/models/objects/v4/operations/ObjectstoreProjection.js → es/models/objects/v4/config/ObjectStoreProjection.js} +211 -65
  70. package/dist/es/models/objects/v4/{operations/StateEnum.d.ts → config/State.d.ts} +6 -6
  71. package/dist/es/models/objects/v4/config/State.js +133 -0
  72. package/dist/es/models/objects/v4/config/UpdateObjectstoreApiResponse.d.ts +99 -0
  73. package/dist/es/models/objects/v4/config/UpdateObjectstoreApiResponse.js +343 -0
  74. package/dist/es/models/objects/v4/error/AppMessage.d.ts +57 -48
  75. package/dist/es/models/objects/v4/error/AppMessage.js +61 -29
  76. package/dist/es/models/objects/v4/error/ErrorResponse.d.ts +23 -19
  77. package/dist/es/models/objects/v4/error/ErrorResponse.js +62 -25
  78. package/dist/es/models/objects/v4/error/SchemaValidationError.d.ts +53 -43
  79. package/dist/es/models/objects/v4/error/SchemaValidationError.js +62 -29
  80. package/dist/es/models/objects/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
  81. package/dist/es/models/objects/v4/error/SchemaValidationErrorMessage.js +55 -23
  82. package/dist/es/models/objects/v4/stats/GetObjectstoreStatsApiResponse.d.ts +99 -0
  83. package/dist/es/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js +343 -0
  84. package/dist/es/models/objects/v4/stats/ObjectstoreStats.d.ts +423 -0
  85. package/dist/es/models/objects/v4/stats/ObjectstoreStats.js +1425 -0
  86. package/dist/es/models/objects/v4/stats/TimeFloatValuePair.d.ts +64 -0
  87. package/dist/es/models/objects/v4/stats/TimeFloatValuePair.js +313 -0
  88. package/dist/es/models/prism/v4/config/TaskReference.d.ts +22 -20
  89. package/dist/es/models/prism/v4/config/TaskReference.js +55 -20
  90. package/dist/es/models/validation/ValidationError.js +5 -5
  91. package/dist/es/utils/ValidationUtils.js +5 -5
  92. package/dist/lib/ApiClient.d.ts +8 -1
  93. package/dist/lib/ApiClient.js +249 -189
  94. package/dist/lib/Paginable.d.ts +1 -1
  95. package/dist/lib/Paginable.js +9 -9
  96. package/dist/lib/apis/objectstores-endpoints.d.ts +66 -95
  97. package/dist/lib/apis/objectstores-endpoints.js +205 -170
  98. package/dist/lib/apis/stats-endpoints.d.ts +69 -0
  99. package/dist/lib/apis/stats-endpoints.js +154 -0
  100. package/dist/lib/index.d.ts +43 -21
  101. package/dist/lib/index.js +135 -47
  102. package/dist/lib/models/common/v1/config/FQDN.d.ts +24 -20
  103. package/dist/lib/models/common/v1/config/FQDN.js +56 -21
  104. package/dist/lib/models/common/v1/config/Flag.d.ts +32 -26
  105. package/dist/lib/models/common/v1/config/Flag.js +65 -21
  106. package/dist/lib/models/common/v1/config/IPAddress.d.ts +42 -26
  107. package/dist/lib/models/common/v1/config/IPAddress.js +53 -21
  108. package/dist/lib/models/common/v1/config/IPv4Address.d.ts +40 -26
  109. package/dist/lib/models/common/v1/config/IPv4Address.js +64 -23
  110. package/dist/lib/models/common/v1/config/IPv6Address.d.ts +40 -26
  111. package/dist/lib/models/common/v1/config/IPv6Address.js +64 -23
  112. package/dist/lib/models/common/v1/config/KVPair.d.ts +35 -26
  113. package/dist/lib/models/common/v1/config/KVPair.js +70 -24
  114. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
  115. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +275 -0
  116. package/dist/lib/models/common/v1/config/Message.d.ts +41 -38
  117. package/dist/lib/models/common/v1/config/Message.js +57 -25
  118. package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -7
  119. package/dist/lib/models/common/v1/config/Metadata.d.ts +46 -44
  120. package/dist/lib/models/common/v1/config/Metadata.js +65 -27
  121. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +22 -20
  122. package/dist/lib/models/common/v1/config/TenantAwareModel.js +51 -19
  123. package/dist/lib/models/common/v1/response/ApiLink.d.ts +28 -26
  124. package/dist/lib/models/common/v1/response/ApiLink.js +53 -21
  125. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
  126. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +71 -27
  127. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
  128. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +71 -31
  129. package/dist/lib/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
  130. package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +109 -0
  131. package/dist/lib/models/common/v1/stats/TimeIntValuePair.d.ts +64 -0
  132. package/dist/lib/models/common/v1/stats/TimeIntValuePair.js +313 -0
  133. package/dist/lib/models/objects/v4/config/Certificate.d.ts +146 -0
  134. package/dist/lib/models/objects/v4/{operations → config}/Certificate.js +184 -43
  135. package/dist/lib/models/objects/v4/{operations → config}/CertificateProjection.d.ts +2 -1
  136. package/dist/{es/models/objects/v4/operations → lib/models/objects/v4/config}/CertificateProjection.js +41 -17
  137. package/dist/lib/models/objects/v4/config/CreateCertificateApiResponse.d.ts +101 -0
  138. package/dist/lib/models/objects/v4/config/CreateCertificateApiResponse.js +343 -0
  139. package/dist/lib/models/objects/v4/config/CreateObjectstoreApiResponse.d.ts +99 -0
  140. package/dist/lib/models/objects/v4/config/CreateObjectstoreApiResponse.js +343 -0
  141. package/dist/lib/models/objects/v4/config/DeleteObjectstoreApiResponse.d.ts +99 -0
  142. package/dist/lib/models/objects/v4/config/DeleteObjectstoreApiResponse.js +343 -0
  143. package/dist/lib/models/objects/v4/config/GetCaApiResponse.d.ts +98 -0
  144. package/dist/lib/models/objects/v4/{operations/CertificateApiResponse.js → config/GetCaApiResponse.js} +88 -57
  145. package/dist/lib/models/objects/v4/config/GetCertificateApiResponse.d.ts +99 -0
  146. package/dist/lib/models/objects/v4/config/GetCertificateApiResponse.js +343 -0
  147. package/dist/lib/models/objects/v4/config/GetObjectstoreApiResponse.d.ts +101 -0
  148. package/dist/{es/models/objects/v4/operations/ObjectstoreApiResponse.js → lib/models/objects/v4/config/GetObjectstoreApiResponse.js} +89 -57
  149. package/dist/lib/models/objects/v4/config/ListCertificatesApiResponse.d.ts +100 -0
  150. package/dist/lib/models/objects/v4/{operations/CertificateListApiResponse.js → config/ListCertificatesApiResponse.js} +89 -57
  151. package/dist/lib/models/objects/v4/config/ListObjectstoresApiResponse.d.ts +100 -0
  152. package/dist/lib/models/objects/v4/{operations/ObjectstoreListApiResponse.js → config/ListObjectstoresApiResponse.js} +92 -60
  153. package/dist/lib/models/objects/v4/config/ObjectStore.d.ts +313 -0
  154. package/dist/lib/models/objects/v4/{operations/Objectstore.js → config/ObjectStore.js} +213 -157
  155. package/dist/lib/models/objects/v4/config/ObjectStoreProjection.d.ts +174 -0
  156. package/dist/{es/models/objects/v4/operations/ObjectstoreProjection.js → lib/models/objects/v4/config/ObjectStoreProjection.js} +211 -65
  157. package/dist/lib/models/objects/v4/{operations/StateEnum.d.ts → config/State.d.ts} +6 -6
  158. package/dist/lib/models/objects/v4/config/State.js +133 -0
  159. package/dist/lib/models/objects/v4/config/UpdateObjectstoreApiResponse.d.ts +99 -0
  160. package/dist/lib/models/objects/v4/config/UpdateObjectstoreApiResponse.js +343 -0
  161. package/dist/lib/models/objects/v4/error/AppMessage.d.ts +57 -48
  162. package/dist/lib/models/objects/v4/error/AppMessage.js +61 -29
  163. package/dist/lib/models/objects/v4/error/ErrorResponse.d.ts +23 -19
  164. package/dist/lib/models/objects/v4/error/ErrorResponse.js +62 -25
  165. package/dist/lib/models/objects/v4/error/SchemaValidationError.d.ts +53 -43
  166. package/dist/lib/models/objects/v4/error/SchemaValidationError.js +62 -29
  167. package/dist/lib/models/objects/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
  168. package/dist/lib/models/objects/v4/error/SchemaValidationErrorMessage.js +55 -23
  169. package/dist/lib/models/objects/v4/stats/GetObjectstoreStatsApiResponse.d.ts +99 -0
  170. package/dist/lib/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js +343 -0
  171. package/dist/lib/models/objects/v4/stats/ObjectstoreStats.d.ts +423 -0
  172. package/dist/lib/models/objects/v4/stats/ObjectstoreStats.js +1425 -0
  173. package/dist/lib/models/objects/v4/stats/TimeFloatValuePair.d.ts +64 -0
  174. package/dist/lib/models/objects/v4/stats/TimeFloatValuePair.js +313 -0
  175. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +22 -20
  176. package/dist/lib/models/prism/v4/config/TaskReference.js +55 -20
  177. package/dist/lib/models/validation/ValidationError.js +5 -5
  178. package/dist/lib/utils/ValidationUtils.js +5 -5
  179. package/package.json +1 -1
  180. package/dist/es/models/objects/v4/operations/Certificate.d.ts +0 -78
  181. package/dist/es/models/objects/v4/operations/CertificateApiResponse.d.ts +0 -59
  182. package/dist/es/models/objects/v4/operations/CertificateListApiResponse.d.ts +0 -59
  183. package/dist/es/models/objects/v4/operations/Objectstore.d.ts +0 -242
  184. package/dist/es/models/objects/v4/operations/ObjectstoreApiResponse.d.ts +0 -59
  185. package/dist/es/models/objects/v4/operations/ObjectstoreListApiResponse.d.ts +0 -59
  186. package/dist/es/models/objects/v4/operations/ObjectstoreProjection.d.ts +0 -50
  187. package/dist/es/models/objects/v4/operations/StateEnum.js +0 -145
  188. package/dist/es/models/objects/v4/operations/TaskReferenceApiResponse.d.ts +0 -59
  189. package/dist/lib/models/objects/v4/operations/Certificate.d.ts +0 -78
  190. package/dist/lib/models/objects/v4/operations/CertificateApiResponse.d.ts +0 -59
  191. package/dist/lib/models/objects/v4/operations/CertificateListApiResponse.d.ts +0 -59
  192. package/dist/lib/models/objects/v4/operations/Objectstore.d.ts +0 -242
  193. package/dist/lib/models/objects/v4/operations/ObjectstoreApiResponse.d.ts +0 -59
  194. package/dist/lib/models/objects/v4/operations/ObjectstoreListApiResponse.d.ts +0 -59
  195. package/dist/lib/models/objects/v4/operations/ObjectstoreProjection.d.ts +0 -50
  196. package/dist/lib/models/objects/v4/operations/StateEnum.js +0 -145
  197. package/dist/lib/models/objects/v4/operations/TaskReferenceApiResponse.d.ts +0 -59
@@ -5,44 +5,46 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _FQDN = _interopRequireDefault(require("../../../common/v1/config/FQDN"));
8
+ var _IPAddress = _interopRequireDefault(require("../../../common/v1/config/IPAddress"));
8
9
  var _Metadata = _interopRequireDefault(require("../../../common/v1/config/Metadata"));
10
+ var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
9
11
  var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
10
12
  var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
11
13
  var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
12
14
  var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
13
15
  var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
15
17
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
16
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
18
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
17
19
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
18
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
19
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
20
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
21
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
20
22
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
21
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
23
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
22
24
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
23
25
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
24
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
25
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
26
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
27
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
26
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
27
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
28
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
29
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
28
30
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
29
31
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
30
32
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
31
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
32
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
33
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
34
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
33
35
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
34
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
35
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
36
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
37
- function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
38
- function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
36
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
37
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
38
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
39
+ function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
40
+ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
39
41
  * Nutanix Objects Storage Management APIs
40
42
  *
41
- * OpenAPI spec version: 4.0.1-alpha-2
43
+ * OpenAPI spec version: 4.0.1
42
44
  *
43
45
  * NOTE: This class is auto generated by the Open API Dev Platform.
44
46
  *
45
- * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
47
+ * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE
46
48
  *
47
49
  * Do not edit the class manually.
48
50
  *
@@ -50,8 +52,9 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
50
52
  /**
51
53
  * The Certificate model module.
52
54
  * @module Ntnx/Certificate
53
- * @version 4.0.1-alpha-2
55
+ * @version 4.0.1
54
56
  * @class Certificate
57
+ * @extends ExternalizableAbstractModel
55
58
  */
56
59
  var _Certificate_brand = /*#__PURE__*/new WeakSet();
57
60
  var Certificate = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
@@ -71,10 +74,12 @@ var Certificate = exports["default"] = /*#__PURE__*/function (_ExternalizableAbs
71
74
  * Otherwise, just returns the input object.
72
75
  */
73
76
  _classPrivateMethodInitSpec(_this, _Certificate_brand);
74
- _this.$objectType = "objects.v4.operations.Certificate";
77
+ _this.$objectType = "objects.v4.config.Certificate";
78
+ /** @type {object<string, any>} */
75
79
  _this.$reserved = {
76
- '$fv': "v4.r0.a2"
80
+ '$fv': "v4.r0"
77
81
  };
82
+ /** @type {object<string, any>} */
78
83
  _this.$unknownFields = {};
79
84
  return _this;
80
85
  }
@@ -92,14 +97,14 @@ var Certificate = exports["default"] = /*#__PURE__*/function (_ExternalizableAbs
92
97
  key: "getMetadata",
93
98
  value:
94
99
  /**
95
- * @return {}
100
+ * @return {Metadata}
96
101
  */
97
102
  function getMetadata() {
98
103
  return this.metadata;
99
104
  }
100
105
 
101
106
  /**
102
- * @param {} metadata
107
+ * @param {Metadata} metadata
103
108
  */
104
109
  }, {
105
110
  key: "setMetadata",
@@ -109,7 +114,7 @@ var Certificate = exports["default"] = /*#__PURE__*/function (_ExternalizableAbs
109
114
 
110
115
  /**
111
116
  * Returns The public certificate to upload.
112
- * @return {}
117
+ * @return {string}
113
118
  */
114
119
  }, {
115
120
  key: "getPublicCert",
@@ -119,7 +124,7 @@ var Certificate = exports["default"] = /*#__PURE__*/function (_ExternalizableAbs
119
124
 
120
125
  /**
121
126
  * Sets The public certificate to upload.
122
- * @param {} publicCert The public certificate to upload.
127
+ * @param {string} publicCert The public certificate to upload.
123
128
  */
124
129
  }, {
125
130
  key: "setPublicCert",
@@ -129,7 +134,7 @@ var Certificate = exports["default"] = /*#__PURE__*/function (_ExternalizableAbs
129
134
 
130
135
  /**
131
136
  * Returns The private key to upload.
132
- * @return {}
137
+ * @return {string}
133
138
  */
134
139
  }, {
135
140
  key: "getPrivateKey",
@@ -139,7 +144,7 @@ var Certificate = exports["default"] = /*#__PURE__*/function (_ExternalizableAbs
139
144
 
140
145
  /**
141
146
  * Sets The private key to upload.
142
- * @param {} privateKey The private key to upload.
147
+ * @param {string} privateKey The private key to upload.
143
148
  */
144
149
  }, {
145
150
  key: "setPrivateKey",
@@ -148,8 +153,8 @@ var Certificate = exports["default"] = /*#__PURE__*/function (_ExternalizableAbs
148
153
  }
149
154
 
150
155
  /**
151
- * Returns CA file to upload.
152
- * @return {}
156
+ * Returns The CA certificate or chain to upload.
157
+ * @return {string}
153
158
  */
154
159
  }, {
155
160
  key: "getCa",
@@ -158,8 +163,8 @@ var Certificate = exports["default"] = /*#__PURE__*/function (_ExternalizableAbs
158
163
  }
159
164
 
160
165
  /**
161
- * Sets CA file to upload.
162
- * @param {} ca CA file to upload.
166
+ * Sets The CA certificate or chain to upload.
167
+ * @param {string} ca The CA certificate or chain to upload.
163
168
  */
164
169
  }, {
165
170
  key: "setCa",
@@ -169,7 +174,7 @@ var Certificate = exports["default"] = /*#__PURE__*/function (_ExternalizableAbs
169
174
 
170
175
  /**
171
176
  * Returns The list of alternate FQDNs for accessing the Object store. The FQDNs must consist of at least 2 parts separated by a '.'. Each part can contain upper and lower case letters, digits, hyphens or underscores but must begin and end with a letter. Each part can be up to 63 characters long. For e.g 'objects-0.pc_nutanix.com'.
172
- * @return {}
177
+ * @return {FQDN[]}
173
178
  */
174
179
  }, {
175
180
  key: "getAlternateFqdns",
@@ -179,18 +184,58 @@ var Certificate = exports["default"] = /*#__PURE__*/function (_ExternalizableAbs
179
184
 
180
185
  /**
181
186
  * Sets The list of alternate FQDNs for accessing the Object store. The FQDNs must consist of at least 2 parts separated by a '.'. Each part can contain upper and lower case letters, digits, hyphens or underscores but must begin and end with a letter. Each part can be up to 63 characters long. For e.g 'objects-0.pc_nutanix.com'.
182
- * @param {} alternateFqdns The list of alternate FQDNs for accessing the Object store. The FQDNs must consist of at least 2 parts separated by a '.'. Each part can contain upper and lower case letters, digits, hyphens or underscores but must begin and end with a letter. Each part can be up to 63 characters long. For e.g 'objects-0.pc_nutanix.com'.
187
+ * @param {FQDN[]} alternateFqdns The list of alternate FQDNs for accessing the Object store. The FQDNs must consist of at least 2 parts separated by a '.'. Each part can contain upper and lower case letters, digits, hyphens or underscores but must begin and end with a letter. Each part can be up to 63 characters long. For e.g 'objects-0.pc_nutanix.com'.
183
188
  */
184
189
  }, {
185
190
  key: "setAlternateFqdns",
186
191
  value: function setAlternateFqdns(alternateFqdns) {
187
192
  this.alternateFqdns = alternateFqdns;
188
193
  }
194
+
195
+ /**
196
+ * Returns If true, the certificate is generated with the provided alternate FQDNs and IPs.
197
+ * @return {boolean}
198
+ */
199
+ }, {
200
+ key: "getShouldGenerate",
201
+ value: function getShouldGenerate() {
202
+ return this.shouldGenerate;
203
+ }
204
+
205
+ /**
206
+ * Sets If true, the certificate is generated with the provided alternate FQDNs and IPs.
207
+ * @param {boolean} shouldGenerate If true, the certificate is generated with the provided alternate FQDNs and IPs.
208
+ */
209
+ }, {
210
+ key: "setShouldGenerate",
211
+ value: function setShouldGenerate(shouldGenerate) {
212
+ this.shouldGenerate = shouldGenerate;
213
+ }
214
+
215
+ /**
216
+ * Returns A list of the IPs included as Subject Alternative Names (SANs) in the certificate. The IPs must be among the public IPs of the Object store (publicNetworkIps).
217
+ * @return {IPAddress[]}
218
+ */
219
+ }, {
220
+ key: "getAlternateIps",
221
+ value: function getAlternateIps() {
222
+ return this.alternateIps;
223
+ }
224
+
225
+ /**
226
+ * Sets A list of the IPs included as Subject Alternative Names (SANs) in the certificate. The IPs must be among the public IPs of the Object store (publicNetworkIps).
227
+ * @param {IPAddress[]} alternateIps A list of the IPs included as Subject Alternative Names (SANs) in the certificate. The IPs must be among the public IPs of the Object store (publicNetworkIps).
228
+ */
229
+ }, {
230
+ key: "setAlternateIps",
231
+ value: function setAlternateIps(alternateIps) {
232
+ this.alternateIps = alternateIps;
233
+ }
189
234
  }, {
190
235
  key: "toJson",
191
236
  value: function toJson(forMutation) {
192
237
  if (forMutation === false) {
193
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {
238
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {
194
239
  'metadata': this.getMetadata().toJson(false)
195
240
  } : {}), typeof this.getPublicCert() !== 'undefined' && this.getPublicCert() !== null ? {
196
241
  'publicCert': this.getPublicCert()
@@ -202,6 +247,12 @@ var Certificate = exports["default"] = /*#__PURE__*/function (_ExternalizableAbs
202
247
  'alternateFqdns': this.getAlternateFqdns().map(function (item) {
203
248
  return item.toJson(false);
204
249
  })
250
+ } : {}), typeof this.getShouldGenerate() !== 'undefined' && this.getShouldGenerate() !== null ? {
251
+ 'shouldGenerate': this.getShouldGenerate()
252
+ } : {}), typeof this.getAlternateIps() !== 'undefined' && this.getAlternateIps() !== null ? {
253
+ 'alternateIps': this.getAlternateIps().map(function (item) {
254
+ return item.toJson(false);
255
+ })
205
256
  } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
206
257
  'extId': this.getExtId()
207
258
  } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
@@ -216,7 +267,7 @@ var Certificate = exports["default"] = /*#__PURE__*/function (_ExternalizableAbs
216
267
  '$unknownFields': this.get$UnknownFields()
217
268
  });
218
269
  }
219
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {
270
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {
220
271
  'metadata': this.getMetadata().toJson(false)
221
272
  } : {}), typeof this.getPublicCert() !== 'undefined' && this.getPublicCert() !== null ? {
222
273
  'publicCert': this.getPublicCert()
@@ -228,8 +279,12 @@ var Certificate = exports["default"] = /*#__PURE__*/function (_ExternalizableAbs
228
279
  'alternateFqdns': this.getAlternateFqdns().map(function (item) {
229
280
  return item.toJson(false);
230
281
  })
231
- } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
232
- 'extId': this.getExtId()
282
+ } : {}), typeof this.getShouldGenerate() !== 'undefined' && this.getShouldGenerate() !== null ? {
283
+ 'shouldGenerate': this.getShouldGenerate()
284
+ } : {}), typeof this.getAlternateIps() !== 'undefined' && this.getAlternateIps() !== null ? {
285
+ 'alternateIps': this.getAlternateIps().map(function (item) {
286
+ return item.toJson(false);
287
+ })
233
288
  } : {}), {}, {
234
289
  '$reserved': this.get$Reserved(),
235
290
  '$objectType': this.get$ObjectType(),
@@ -313,18 +368,35 @@ var Certificate = exports["default"] = /*#__PURE__*/function (_ExternalizableAbs
313
368
  if (typeof this.alternateFqdns === 'undefined' || this.alternateFqdns === null) {
314
369
  return new _ValidationError["default"]("alternateFqdns", "undefined or null");
315
370
  }
316
- if (!_ValidationUtils["default"].validateMaxItems(this.alternateFqdns, 1000)) {
317
- return new _ValidationError["default"]("alternateFqdns", "does not satisfy required maxItems constraint: 1000");
371
+ if (!_ValidationUtils["default"].validateMaxItems(this.alternateFqdns, 999)) {
372
+ return new _ValidationError["default"]("alternateFqdns", "does not satisfy required maxItems constraint: 999");
318
373
  }
319
374
  if (!_ValidationUtils["default"].validateMinItems(this.alternateFqdns, 1)) {
320
375
  return new _ValidationError["default"]("alternateFqdns", "does not satisfy required minItems constraint: 1");
321
376
  }
322
377
  }
378
+ if (property === "shouldGenerate") {
379
+ if (typeof this.shouldGenerate === 'undefined' || this.shouldGenerate === null) {
380
+ return new _ValidationError["default"]("shouldGenerate", "undefined or null");
381
+ }
382
+ }
383
+ if (property === "alternateIps") {
384
+ if (typeof this.alternateIps === 'undefined' || this.alternateIps === null) {
385
+ return new _ValidationError["default"]("alternateIps", "undefined or null");
386
+ }
387
+ if (!_ValidationUtils["default"].validateMaxItems(this.alternateIps, 1000)) {
388
+ return new _ValidationError["default"]("alternateIps", "does not satisfy required maxItems constraint: 1000");
389
+ }
390
+ if (!_ValidationUtils["default"].validateMinItems(this.alternateIps, 1)) {
391
+ return new _ValidationError["default"]("alternateIps", "does not satisfy required minItems constraint: 1");
392
+ }
393
+ }
323
394
  return new _ValidationError["default"](property, "no such property exists");
324
395
  }
325
396
  }], [{
326
397
  key: "constructFromObject",
327
- value: function constructFromObject(data, obj) {
398
+ value: function constructFromObject(data) {
399
+ var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
328
400
  var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
329
401
  var items, item, i, itemArr, discriminator;
330
402
  if (data) {
@@ -351,10 +423,26 @@ var Certificate = exports["default"] = /*#__PURE__*/function (_ExternalizableAbs
351
423
  }
352
424
  obj.setAlternateFqdns(itemArr);
353
425
  }
426
+ if (data.hasOwnProperty('shouldGenerate') && data.shouldGenerate !== null && data.shouldGenerate !== undefined) {
427
+ obj.setShouldGenerate(data['shouldGenerate']);
428
+ }
429
+ if (data.hasOwnProperty('alternateIps') && data.alternateIps !== null && data.alternateIps !== undefined) {
430
+ itemArr = [];
431
+ items = data.alternateIps;
432
+ for (i = 0; i < items.length; i++) {
433
+ item = _IPAddress["default"].constructFromObject(items[i], undefined);
434
+ itemArr.push(item);
435
+ }
436
+ obj.setAlternateIps(itemArr);
437
+ }
354
438
  if (!callFromChild) {
355
439
  obj.$unknownFields = _objectSpread({}, data.$unknownFields);
356
440
  for (var property in data) {
357
- if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
441
+ // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
442
+ // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
443
+ // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
444
+ // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
445
+ if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
358
446
  obj.$unknownFields[property] = data[property];
359
447
  }
360
448
  }
@@ -362,6 +450,19 @@ var Certificate = exports["default"] = /*#__PURE__*/function (_ExternalizableAbs
362
450
  }
363
451
  return obj;
364
452
  }
453
+
454
+ /**
455
+ * Converts a given snake_case string to camelCase.
456
+ * @param {string} snakeStr - The input string in snake_case format.
457
+ * @returns {string} - The converted string in camelCase format.
458
+ */
459
+ }, {
460
+ key: "snakeToCamel",
461
+ value: function snakeToCamel(snakeStr) {
462
+ return snakeStr.replace(/(_\w)/g, function (match) {
463
+ return match[1].toUpperCase();
464
+ });
465
+ }
365
466
  }]);
366
467
  }(_ExternalizableAbstractModel["default"]);
367
468
  /**
@@ -382,6 +483,18 @@ function _toJsonMapType(obj, forMutation) {
382
483
  }
383
484
  return obj;
384
485
  }
486
+ /*
487
+ * toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
488
+ * @param {Object} obj Object to serialize
489
+ * @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
490
+ * @returns {Object|string} Returns serialized date object or original input object
491
+ */
492
+ function _handleDateType(obj, isDateOnly) {
493
+ if (obj instanceof Date && isDateOnly !== undefined) {
494
+ return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
495
+ }
496
+ return obj;
497
+ }
385
498
  Certificate.prototype.metadata = undefined;
386
499
 
387
500
  /**
@@ -397,7 +510,7 @@ Certificate.prototype.publicCert = undefined;
397
510
  Certificate.prototype.privateKey = undefined;
398
511
 
399
512
  /**
400
- * CA file to upload.
513
+ * The CA certificate or chain to upload.
401
514
  * @memberof Certificate
402
515
  */
403
516
  Certificate.prototype.ca = undefined;
@@ -408,4 +521,32 @@ Certificate.prototype.ca = undefined;
408
521
  */
409
522
  Certificate.prototype.alternateFqdns = undefined;
410
523
 
411
- // Implement OneOfobjects.v4.operations.CertificateApiResponsedata interface:
524
+ /**
525
+ * If true, the certificate is generated with the provided alternate FQDNs and IPs.
526
+ * @memberof Certificate
527
+ * @default false
528
+ */
529
+ Certificate.prototype.shouldGenerate = false;
530
+
531
+ /**
532
+ * A list of the IPs included as Subject Alternative Names (SANs) in the certificate. The IPs must be among the public IPs of the Object store (publicNetworkIps).
533
+ * @memberof Certificate
534
+ */
535
+ Certificate.prototype.alternateIps = undefined;
536
+
537
+ /**
538
+ * A globally unique identifier of an instance that is suitable for external consumption.
539
+ * @memberof Certificate
540
+ */
541
+ _ExternalizableAbstractModel["default"].prototype.extId = undefined;
542
+ /**
543
+ * 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.
544
+ * @memberof Certificate
545
+ */
546
+ _ExternalizableAbstractModel["default"].prototype.links = undefined;
547
+ /**
548
+ * 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).
549
+ * @memberof Certificate
550
+ */
551
+ _TenantAwareModel["default"].prototype.tenantId = undefined;
552
+ // Implement OneOfobjects.v4.config.GetCertificateApiResponsedata interface:
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * The CertificateProjection model module.
3
3
  * @module Ntnx/CertificateProjection
4
- * @version 4.0.1-alpha-2
4
+ * @version 4.0.1
5
5
  * @class CertificateProjection
6
+ * @extends Certificate
6
7
  */
7
8
  export default class CertificateProjection extends Certificate {
8
9
  }
@@ -6,34 +6,37 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports["default"] = void 0;
8
8
  var _FQDN = _interopRequireDefault(require("../../../common/v1/config/FQDN"));
9
+ var _IPAddress = _interopRequireDefault(require("../../../common/v1/config/IPAddress"));
9
10
  var _Metadata = _interopRequireDefault(require("../../../common/v1/config/Metadata"));
11
+ var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
12
+ var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
10
13
  var _Certificate2 = _interopRequireDefault(require("./Certificate"));
11
14
  var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
12
15
  var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
13
16
  var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
15
18
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
19
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
18
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
20
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
20
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
21
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
22
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
23
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
21
24
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
22
25
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
23
26
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
24
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
25
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
27
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
28
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
26
29
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
27
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
28
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
29
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } /*
30
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
31
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
32
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /*
30
33
  * Nutanix Objects Storage Management APIs
31
34
  *
32
- * OpenAPI spec version: 4.0.1-alpha-2
35
+ * OpenAPI spec version: 4.0.1
33
36
  *
34
37
  * NOTE: This class is auto generated by the Open API Dev Platform.
35
38
  *
36
- * Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
39
+ * Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE
37
40
  *
38
41
  * Do not edit the class manually.
39
42
  *
@@ -41,8 +44,9 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Objec
41
44
  /**
42
45
  * The CertificateProjection model module.
43
46
  * @module Ntnx/CertificateProjection
44
- * @version 4.0.1-alpha-2
47
+ * @version 4.0.1
45
48
  * @class CertificateProjection
49
+ * @extends Certificate
46
50
  */
47
51
  var CertificateProjection = exports["default"] = /*#__PURE__*/function (_Certificate) {
48
52
  /**
@@ -54,10 +58,12 @@ var CertificateProjection = exports["default"] = /*#__PURE__*/function (_Certifi
54
58
  var _this;
55
59
  _classCallCheck(this, CertificateProjection);
56
60
  _this = _callSuper(this, CertificateProjection);
57
- _this.$objectType = "objects.v4.operations.CertificateProjection";
61
+ _this.$objectType = "objects.v4.config.CertificateProjection";
62
+ /** @type {object<string, any>} */
58
63
  _this.$reserved = {
59
- '$fv': "v4.r0.a2"
64
+ '$fv': "v4.r0"
60
65
  };
66
+ /** @type {object<string, any>} */
61
67
  _this.$unknownFields = {};
62
68
  return _this;
63
69
  }
@@ -110,7 +116,8 @@ var CertificateProjection = exports["default"] = /*#__PURE__*/function (_Certifi
110
116
  }
111
117
  }], [{
112
118
  key: "constructFromObject",
113
- value: function constructFromObject(data, obj) {
119
+ value: function constructFromObject(data) {
120
+ var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
114
121
  var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
115
122
  var items, item, i, itemArr, discriminator;
116
123
  if (data) {
@@ -119,7 +126,11 @@ var CertificateProjection = exports["default"] = /*#__PURE__*/function (_Certifi
119
126
  if (!callFromChild) {
120
127
  obj.$unknownFields = _objectSpread({}, data.$unknownFields);
121
128
  for (var property in data) {
122
- if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
129
+ // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
130
+ // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
131
+ // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
132
+ // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
133
+ if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
123
134
  obj.$unknownFields[property] = data[property];
124
135
  }
125
136
  }
@@ -127,5 +138,18 @@ var CertificateProjection = exports["default"] = /*#__PURE__*/function (_Certifi
127
138
  }
128
139
  return obj;
129
140
  }
141
+
142
+ /**
143
+ * Converts a given snake_case string to camelCase.
144
+ * @param {string} snakeStr - The input string in snake_case format.
145
+ * @returns {string} - The converted string in camelCase format.
146
+ */
147
+ }, {
148
+ key: "snakeToCamel",
149
+ value: function snakeToCamel(snakeStr) {
150
+ return snakeStr.replace(/(_\w)/g, function (match) {
151
+ return match[1].toUpperCase();
152
+ });
153
+ }
130
154
  }]);
131
155
  }(_Certificate2["default"]);