@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.
- package/LICENSE.txt +202 -49
- package/README.md +39 -27
- package/dist/Ntnx-Objects-js-client-prod.js +1 -1
- package/dist/Ntnx-Objects-js-client.js +227 -96
- package/dist/es/ApiClient.d.ts +8 -1
- package/dist/es/ApiClient.js +249 -189
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +9 -9
- package/dist/es/apis/objectstores-endpoints.d.ts +66 -95
- package/dist/es/apis/objectstores-endpoints.js +205 -170
- package/dist/es/apis/stats-endpoints.d.ts +69 -0
- package/dist/es/apis/stats-endpoints.js +154 -0
- package/dist/es/index.d.ts +43 -21
- package/dist/es/index.js +135 -47
- package/dist/es/models/common/v1/config/FQDN.d.ts +24 -20
- package/dist/es/models/common/v1/config/FQDN.js +56 -21
- package/dist/es/models/common/v1/config/Flag.d.ts +32 -26
- package/dist/es/models/common/v1/config/Flag.js +65 -21
- package/dist/es/models/common/v1/config/IPAddress.d.ts +42 -26
- package/dist/es/models/common/v1/config/IPAddress.js +53 -21
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +40 -26
- package/dist/es/models/common/v1/config/IPv4Address.js +64 -23
- package/dist/es/models/common/v1/config/IPv6Address.d.ts +40 -26
- package/dist/es/models/common/v1/config/IPv6Address.js +64 -23
- package/dist/es/models/common/v1/config/KVPair.d.ts +35 -26
- package/dist/es/models/common/v1/config/KVPair.js +70 -24
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/es/models/common/v1/config/Message.d.ts +41 -38
- package/dist/es/models/common/v1/config/Message.js +57 -25
- package/dist/es/models/common/v1/config/MessageSeverity.js +7 -7
- package/dist/es/models/common/v1/config/Metadata.d.ts +46 -44
- package/dist/es/models/common/v1/config/Metadata.js +65 -27
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +22 -20
- package/dist/es/models/common/v1/config/TenantAwareModel.js +51 -19
- package/dist/es/models/common/v1/response/ApiLink.d.ts +28 -26
- package/dist/es/models/common/v1/response/ApiLink.js +53 -21
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +71 -27
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +71 -31
- package/dist/es/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
- package/dist/es/models/common/v1/stats/DownSamplingOperator.js +109 -0
- package/dist/es/models/common/v1/stats/TimeIntValuePair.d.ts +64 -0
- package/dist/es/models/common/v1/stats/TimeIntValuePair.js +313 -0
- package/dist/es/models/objects/v4/config/Certificate.d.ts +146 -0
- package/dist/es/models/objects/v4/{operations → config}/Certificate.js +184 -43
- package/dist/es/models/objects/v4/{operations → config}/CertificateProjection.d.ts +2 -1
- package/dist/{lib/models/objects/v4/operations → es/models/objects/v4/config}/CertificateProjection.js +41 -17
- package/dist/es/models/objects/v4/config/CreateCertificateApiResponse.d.ts +101 -0
- package/dist/es/models/objects/v4/config/CreateCertificateApiResponse.js +343 -0
- package/dist/es/models/objects/v4/config/CreateObjectstoreApiResponse.d.ts +99 -0
- package/dist/{lib/models/objects/v4/operations/TaskReferenceApiResponse.js → es/models/objects/v4/config/CreateObjectstoreApiResponse.js} +86 -54
- package/dist/es/models/objects/v4/config/DeleteObjectstoreApiResponse.d.ts +99 -0
- package/dist/es/models/objects/v4/config/DeleteObjectstoreApiResponse.js +343 -0
- package/dist/es/models/objects/v4/config/GetCaApiResponse.d.ts +98 -0
- package/dist/es/models/objects/v4/{operations/TaskReferenceApiResponse.js → config/GetCaApiResponse.js} +88 -57
- package/dist/es/models/objects/v4/config/GetCertificateApiResponse.d.ts +99 -0
- package/dist/es/models/objects/v4/{operations/CertificateApiResponse.js → config/GetCertificateApiResponse.js} +88 -56
- package/dist/es/models/objects/v4/config/GetObjectstoreApiResponse.d.ts +101 -0
- package/dist/{lib/models/objects/v4/operations/ObjectstoreApiResponse.js → es/models/objects/v4/config/GetObjectstoreApiResponse.js} +89 -57
- package/dist/es/models/objects/v4/config/ListCertificatesApiResponse.d.ts +100 -0
- package/dist/es/models/objects/v4/{operations/CertificateListApiResponse.js → config/ListCertificatesApiResponse.js} +89 -57
- package/dist/es/models/objects/v4/config/ListObjectstoresApiResponse.d.ts +100 -0
- package/dist/es/models/objects/v4/{operations/ObjectstoreListApiResponse.js → config/ListObjectstoresApiResponse.js} +92 -60
- package/dist/es/models/objects/v4/config/ObjectStore.d.ts +313 -0
- package/dist/es/models/objects/v4/{operations/Objectstore.js → config/ObjectStore.js} +213 -157
- package/dist/es/models/objects/v4/config/ObjectStoreProjection.d.ts +174 -0
- package/dist/{lib/models/objects/v4/operations/ObjectstoreProjection.js → es/models/objects/v4/config/ObjectStoreProjection.js} +211 -65
- package/dist/es/models/objects/v4/{operations/StateEnum.d.ts → config/State.d.ts} +6 -6
- package/dist/es/models/objects/v4/config/State.js +133 -0
- package/dist/es/models/objects/v4/config/UpdateObjectstoreApiResponse.d.ts +99 -0
- package/dist/es/models/objects/v4/config/UpdateObjectstoreApiResponse.js +343 -0
- package/dist/es/models/objects/v4/error/AppMessage.d.ts +57 -48
- package/dist/es/models/objects/v4/error/AppMessage.js +61 -29
- package/dist/es/models/objects/v4/error/ErrorResponse.d.ts +23 -19
- package/dist/es/models/objects/v4/error/ErrorResponse.js +62 -25
- package/dist/es/models/objects/v4/error/SchemaValidationError.d.ts +53 -43
- package/dist/es/models/objects/v4/error/SchemaValidationError.js +62 -29
- package/dist/es/models/objects/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
- package/dist/es/models/objects/v4/error/SchemaValidationErrorMessage.js +55 -23
- package/dist/es/models/objects/v4/stats/GetObjectstoreStatsApiResponse.d.ts +99 -0
- package/dist/es/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js +343 -0
- package/dist/es/models/objects/v4/stats/ObjectstoreStats.d.ts +423 -0
- package/dist/es/models/objects/v4/stats/ObjectstoreStats.js +1425 -0
- package/dist/es/models/objects/v4/stats/TimeFloatValuePair.d.ts +64 -0
- package/dist/es/models/objects/v4/stats/TimeFloatValuePair.js +313 -0
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +22 -20
- package/dist/es/models/prism/v4/config/TaskReference.js +55 -20
- package/dist/es/models/validation/ValidationError.js +5 -5
- package/dist/es/utils/ValidationUtils.js +5 -5
- package/dist/lib/ApiClient.d.ts +8 -1
- package/dist/lib/ApiClient.js +249 -189
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +9 -9
- package/dist/lib/apis/objectstores-endpoints.d.ts +66 -95
- package/dist/lib/apis/objectstores-endpoints.js +205 -170
- package/dist/lib/apis/stats-endpoints.d.ts +69 -0
- package/dist/lib/apis/stats-endpoints.js +154 -0
- package/dist/lib/index.d.ts +43 -21
- package/dist/lib/index.js +135 -47
- package/dist/lib/models/common/v1/config/FQDN.d.ts +24 -20
- package/dist/lib/models/common/v1/config/FQDN.js +56 -21
- package/dist/lib/models/common/v1/config/Flag.d.ts +32 -26
- package/dist/lib/models/common/v1/config/Flag.js +65 -21
- package/dist/lib/models/common/v1/config/IPAddress.d.ts +42 -26
- package/dist/lib/models/common/v1/config/IPAddress.js +53 -21
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +40 -26
- package/dist/lib/models/common/v1/config/IPv4Address.js +64 -23
- package/dist/lib/models/common/v1/config/IPv6Address.d.ts +40 -26
- package/dist/lib/models/common/v1/config/IPv6Address.js +64 -23
- package/dist/lib/models/common/v1/config/KVPair.d.ts +35 -26
- package/dist/lib/models/common/v1/config/KVPair.js +70 -24
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +41 -38
- package/dist/lib/models/common/v1/config/Message.js +57 -25
- package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -7
- package/dist/lib/models/common/v1/config/Metadata.d.ts +46 -44
- package/dist/lib/models/common/v1/config/Metadata.js +65 -27
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +22 -20
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +51 -19
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +28 -26
- package/dist/lib/models/common/v1/response/ApiLink.js +53 -21
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +71 -27
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +71 -31
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +109 -0
- package/dist/lib/models/common/v1/stats/TimeIntValuePair.d.ts +64 -0
- package/dist/lib/models/common/v1/stats/TimeIntValuePair.js +313 -0
- package/dist/lib/models/objects/v4/config/Certificate.d.ts +146 -0
- package/dist/lib/models/objects/v4/{operations → config}/Certificate.js +184 -43
- package/dist/lib/models/objects/v4/{operations → config}/CertificateProjection.d.ts +2 -1
- package/dist/{es/models/objects/v4/operations → lib/models/objects/v4/config}/CertificateProjection.js +41 -17
- package/dist/lib/models/objects/v4/config/CreateCertificateApiResponse.d.ts +101 -0
- package/dist/lib/models/objects/v4/config/CreateCertificateApiResponse.js +343 -0
- package/dist/lib/models/objects/v4/config/CreateObjectstoreApiResponse.d.ts +99 -0
- package/dist/lib/models/objects/v4/config/CreateObjectstoreApiResponse.js +343 -0
- package/dist/lib/models/objects/v4/config/DeleteObjectstoreApiResponse.d.ts +99 -0
- package/dist/lib/models/objects/v4/config/DeleteObjectstoreApiResponse.js +343 -0
- package/dist/lib/models/objects/v4/config/GetCaApiResponse.d.ts +98 -0
- package/dist/lib/models/objects/v4/{operations/CertificateApiResponse.js → config/GetCaApiResponse.js} +88 -57
- package/dist/lib/models/objects/v4/config/GetCertificateApiResponse.d.ts +99 -0
- package/dist/lib/models/objects/v4/config/GetCertificateApiResponse.js +343 -0
- package/dist/lib/models/objects/v4/config/GetObjectstoreApiResponse.d.ts +101 -0
- package/dist/{es/models/objects/v4/operations/ObjectstoreApiResponse.js → lib/models/objects/v4/config/GetObjectstoreApiResponse.js} +89 -57
- package/dist/lib/models/objects/v4/config/ListCertificatesApiResponse.d.ts +100 -0
- package/dist/lib/models/objects/v4/{operations/CertificateListApiResponse.js → config/ListCertificatesApiResponse.js} +89 -57
- package/dist/lib/models/objects/v4/config/ListObjectstoresApiResponse.d.ts +100 -0
- package/dist/lib/models/objects/v4/{operations/ObjectstoreListApiResponse.js → config/ListObjectstoresApiResponse.js} +92 -60
- package/dist/lib/models/objects/v4/config/ObjectStore.d.ts +313 -0
- package/dist/lib/models/objects/v4/{operations/Objectstore.js → config/ObjectStore.js} +213 -157
- package/dist/lib/models/objects/v4/config/ObjectStoreProjection.d.ts +174 -0
- package/dist/{es/models/objects/v4/operations/ObjectstoreProjection.js → lib/models/objects/v4/config/ObjectStoreProjection.js} +211 -65
- package/dist/lib/models/objects/v4/{operations/StateEnum.d.ts → config/State.d.ts} +6 -6
- package/dist/lib/models/objects/v4/config/State.js +133 -0
- package/dist/lib/models/objects/v4/config/UpdateObjectstoreApiResponse.d.ts +99 -0
- package/dist/lib/models/objects/v4/config/UpdateObjectstoreApiResponse.js +343 -0
- package/dist/lib/models/objects/v4/error/AppMessage.d.ts +57 -48
- package/dist/lib/models/objects/v4/error/AppMessage.js +61 -29
- package/dist/lib/models/objects/v4/error/ErrorResponse.d.ts +23 -19
- package/dist/lib/models/objects/v4/error/ErrorResponse.js +62 -25
- package/dist/lib/models/objects/v4/error/SchemaValidationError.d.ts +53 -43
- package/dist/lib/models/objects/v4/error/SchemaValidationError.js +62 -29
- package/dist/lib/models/objects/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
- package/dist/lib/models/objects/v4/error/SchemaValidationErrorMessage.js +55 -23
- package/dist/lib/models/objects/v4/stats/GetObjectstoreStatsApiResponse.d.ts +99 -0
- package/dist/lib/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js +343 -0
- package/dist/lib/models/objects/v4/stats/ObjectstoreStats.d.ts +423 -0
- package/dist/lib/models/objects/v4/stats/ObjectstoreStats.js +1425 -0
- package/dist/lib/models/objects/v4/stats/TimeFloatValuePair.d.ts +64 -0
- package/dist/lib/models/objects/v4/stats/TimeFloatValuePair.js +313 -0
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +22 -20
- package/dist/lib/models/prism/v4/config/TaskReference.js +55 -20
- package/dist/lib/models/validation/ValidationError.js +5 -5
- package/dist/lib/utils/ValidationUtils.js +5 -5
- package/package.json +1 -1
- package/dist/es/models/objects/v4/operations/Certificate.d.ts +0 -78
- package/dist/es/models/objects/v4/operations/CertificateApiResponse.d.ts +0 -59
- package/dist/es/models/objects/v4/operations/CertificateListApiResponse.d.ts +0 -59
- package/dist/es/models/objects/v4/operations/Objectstore.d.ts +0 -242
- package/dist/es/models/objects/v4/operations/ObjectstoreApiResponse.d.ts +0 -59
- package/dist/es/models/objects/v4/operations/ObjectstoreListApiResponse.d.ts +0 -59
- package/dist/es/models/objects/v4/operations/ObjectstoreProjection.d.ts +0 -50
- package/dist/es/models/objects/v4/operations/StateEnum.js +0 -145
- package/dist/es/models/objects/v4/operations/TaskReferenceApiResponse.d.ts +0 -59
- package/dist/lib/models/objects/v4/operations/Certificate.d.ts +0 -78
- package/dist/lib/models/objects/v4/operations/CertificateApiResponse.d.ts +0 -59
- package/dist/lib/models/objects/v4/operations/CertificateListApiResponse.d.ts +0 -59
- package/dist/lib/models/objects/v4/operations/Objectstore.d.ts +0 -242
- package/dist/lib/models/objects/v4/operations/ObjectstoreApiResponse.d.ts +0 -59
- package/dist/lib/models/objects/v4/operations/ObjectstoreListApiResponse.d.ts +0 -59
- package/dist/lib/models/objects/v4/operations/ObjectstoreProjection.d.ts +0 -50
- package/dist/lib/models/objects/v4/operations/StateEnum.js +0 -145
- package/dist/lib/models/objects/v4/operations/TaskReferenceApiResponse.d.ts +0 -59
|
@@ -6,101 +6,102 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiResponseMetadata = _interopRequireDefault(require("../../../common/v1/response/ApiResponseMetadata"));
|
|
8
8
|
var _ErrorResponse = _interopRequireDefault(require("../error/ErrorResponse"));
|
|
9
|
-
var _TaskReference = _interopRequireDefault(require("../../../prism/v4/config/TaskReference"));
|
|
10
9
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
11
10
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
12
11
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
13
12
|
var _Paginable2 = _interopRequireDefault(require("../../../../Paginable"));
|
|
14
|
-
function _interopRequireDefault(
|
|
15
|
-
function _slicedToArray(
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
16
15
|
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."); }
|
|
17
|
-
function _unsupportedIterableToArray(
|
|
18
|
-
function _arrayLikeToArray(
|
|
16
|
+
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; } }
|
|
17
|
+
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; }
|
|
19
18
|
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; } }
|
|
20
|
-
function _arrayWithHoles(
|
|
19
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
21
20
|
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); }
|
|
22
21
|
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
22
|
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(
|
|
25
|
-
function _classCallCheck(
|
|
26
|
-
function _defineProperties(
|
|
27
|
-
function _createClass(
|
|
23
|
+
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; }
|
|
24
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
25
|
+
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); } }
|
|
26
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
28
27
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
29
28
|
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
29
|
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(
|
|
32
|
-
function _assertThisInitialized(
|
|
30
|
+
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); }
|
|
31
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
33
32
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
34
|
-
function _getPrototypeOf(
|
|
35
|
-
function _inherits(
|
|
36
|
-
function _setPrototypeOf(
|
|
37
|
-
function _classPrivateMethodInitSpec(
|
|
38
|
-
function _checkPrivateRedeclaration(
|
|
33
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
34
|
+
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); }
|
|
35
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
36
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
37
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
39
38
|
function _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"); } /*
|
|
40
39
|
* Nutanix Objects Storage Management APIs
|
|
41
40
|
*
|
|
42
|
-
* OpenAPI spec version: 4.0.1
|
|
41
|
+
* OpenAPI spec version: 4.0.1
|
|
43
42
|
*
|
|
44
43
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
45
44
|
*
|
|
46
|
-
* Open API Dev Platform Codegen version: 16.
|
|
45
|
+
* Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE
|
|
47
46
|
*
|
|
48
47
|
* Do not edit the class manually.
|
|
49
48
|
*
|
|
50
49
|
*/
|
|
51
50
|
/**
|
|
52
|
-
* The
|
|
53
|
-
* @module Ntnx/
|
|
54
|
-
* @version 4.0.1
|
|
55
|
-
* @class
|
|
51
|
+
* The GetCaApiResponse model module.
|
|
52
|
+
* @module Ntnx/GetCaApiResponse
|
|
53
|
+
* @version 4.0.1
|
|
54
|
+
* @class GetCaApiResponse
|
|
56
55
|
*/
|
|
57
|
-
var
|
|
58
|
-
var
|
|
56
|
+
var _GetCaApiResponse_brand = /*#__PURE__*/new WeakSet();
|
|
57
|
+
var GetCaApiResponse = exports["default"] = /*#__PURE__*/function (_Paginable) {
|
|
59
58
|
/**
|
|
60
|
-
* Constructs a new <code>
|
|
61
|
-
* REST response for all response codes in API path /objects/v4.0
|
|
62
|
-
* @alias module:Ntnx/
|
|
59
|
+
* Constructs a new <code>GetCaApiResponse</code>.
|
|
60
|
+
* REST response for all response codes in API path /objects/v4.0/config/object-stores/{objectStoreExtId}/certificates/{certificateExtId}/certificate-authority Get operation
|
|
61
|
+
* @alias module:Ntnx/GetCaApiResponse
|
|
63
62
|
*/
|
|
64
|
-
function
|
|
63
|
+
function GetCaApiResponse() {
|
|
65
64
|
var _this;
|
|
66
|
-
_classCallCheck(this,
|
|
67
|
-
_this = _callSuper(this,
|
|
65
|
+
_classCallCheck(this, GetCaApiResponse);
|
|
66
|
+
_this = _callSuper(this, GetCaApiResponse);
|
|
68
67
|
/*
|
|
69
68
|
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
70
69
|
* @param {Object} obj
|
|
71
70
|
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
72
71
|
* Otherwise, just returns the input object.
|
|
73
72
|
*/
|
|
74
|
-
_classPrivateMethodInitSpec(_this,
|
|
75
|
-
_this.$objectType = "objects.v4.
|
|
73
|
+
_classPrivateMethodInitSpec(_this, _GetCaApiResponse_brand);
|
|
74
|
+
_this.$objectType = "objects.v4.config.GetCaApiResponse";
|
|
75
|
+
/** @type {object<string, any>} */
|
|
76
76
|
_this.$reserved = {
|
|
77
|
-
'$fv': "v4.r0
|
|
77
|
+
'$fv': "v4.r0"
|
|
78
78
|
};
|
|
79
|
+
/** @type {object<string, any>} */
|
|
79
80
|
_this.$unknownFields = {};
|
|
80
81
|
return _this;
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
/**
|
|
84
|
-
* Constructs a <code>
|
|
85
|
+
* Constructs a <code>GetCaApiResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
85
86
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
86
87
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
87
|
-
* @param {module:Ntnx/
|
|
88
|
+
* @param {module:Ntnx/GetCaApiResponse} obj Optional instance to populate.
|
|
88
89
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
89
|
-
* @return {module:Ntnx/
|
|
90
|
+
* @return {module:Ntnx/GetCaApiResponse} The populated <code>GetCaApiResponse</code> instance.
|
|
90
91
|
*/
|
|
91
|
-
_inherits(
|
|
92
|
-
return _createClass(
|
|
92
|
+
_inherits(GetCaApiResponse, _Paginable);
|
|
93
|
+
return _createClass(GetCaApiResponse, [{
|
|
93
94
|
key: "getMetadata",
|
|
94
95
|
value:
|
|
95
96
|
/**
|
|
96
|
-
* @return {}
|
|
97
|
+
* @return {ApiResponseMetadata}
|
|
97
98
|
*/
|
|
98
99
|
function getMetadata() {
|
|
99
100
|
return this.metadata;
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
/**
|
|
103
|
-
* @param {} metadata
|
|
104
|
+
* @param {ApiResponseMetadata} metadata
|
|
104
105
|
*/
|
|
105
106
|
}, {
|
|
106
107
|
key: "setMetadata",
|
|
@@ -109,7 +110,7 @@ var TaskReferenceApiResponse = exports["default"] = /*#__PURE__*/function (_Pagi
|
|
|
109
110
|
}
|
|
110
111
|
|
|
111
112
|
/**
|
|
112
|
-
* @return {}
|
|
113
|
+
* @return {string | ErrorResponse}
|
|
113
114
|
*/
|
|
114
115
|
}, {
|
|
115
116
|
key: "getData",
|
|
@@ -118,7 +119,7 @@ var TaskReferenceApiResponse = exports["default"] = /*#__PURE__*/function (_Pagi
|
|
|
118
119
|
}
|
|
119
120
|
|
|
120
121
|
/**
|
|
121
|
-
* @param {} data
|
|
122
|
+
* @param {string | ErrorResponse} data
|
|
122
123
|
*/
|
|
123
124
|
}, {
|
|
124
125
|
key: "setData",
|
|
@@ -149,7 +150,7 @@ var TaskReferenceApiResponse = exports["default"] = /*#__PURE__*/function (_Pagi
|
|
|
149
150
|
} : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {
|
|
150
151
|
'data': typeof this.getData().toJson !== "undefined" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(function (item) {
|
|
151
152
|
return typeof item.toJson !== "undefined" ? item.toJson(false) : item;
|
|
152
|
-
}) : _assertClassBrand(
|
|
153
|
+
}) : _assertClassBrand(_GetCaApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)
|
|
153
154
|
} : {}), {}, {
|
|
154
155
|
'$reserved': this.get$Reserved(),
|
|
155
156
|
'$objectType': this.get$ObjectType(),
|
|
@@ -161,7 +162,7 @@ var TaskReferenceApiResponse = exports["default"] = /*#__PURE__*/function (_Pagi
|
|
|
161
162
|
} : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {
|
|
162
163
|
'data': typeof this.getData().toJson !== "undefined" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {
|
|
163
164
|
return typeof item.toJson !== "undefined" ? item.toJson() : item;
|
|
164
|
-
}) : _assertClassBrand(
|
|
165
|
+
}) : _assertClassBrand(_GetCaApiResponse_brand, this, _toJsonMapType).call(this, this.getData())
|
|
165
166
|
} : {}), {}, {
|
|
166
167
|
'$reserved': this.get$Reserved(),
|
|
167
168
|
'$objectType': this.get$ObjectType(),
|
|
@@ -232,11 +233,12 @@ var TaskReferenceApiResponse = exports["default"] = /*#__PURE__*/function (_Pagi
|
|
|
232
233
|
}
|
|
233
234
|
}], [{
|
|
234
235
|
key: "constructFromObject",
|
|
235
|
-
value: function constructFromObject(data
|
|
236
|
+
value: function constructFromObject(data) {
|
|
237
|
+
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
236
238
|
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
237
239
|
var items, item, i, itemArr, discriminator;
|
|
238
240
|
if (data) {
|
|
239
|
-
obj = obj || new
|
|
241
|
+
obj = obj || new GetCaApiResponse();
|
|
240
242
|
if (data.hasOwnProperty('metadata')) {
|
|
241
243
|
_Paginable2["default"].constructFromObject(data['metadata'], obj);
|
|
242
244
|
}
|
|
@@ -250,8 +252,8 @@ var TaskReferenceApiResponse = exports["default"] = /*#__PURE__*/function (_Pagi
|
|
|
250
252
|
discriminator = _typeof(data['data']);
|
|
251
253
|
}
|
|
252
254
|
switch (discriminator) {
|
|
253
|
-
case '
|
|
254
|
-
obj.setData(
|
|
255
|
+
case 'Map':
|
|
256
|
+
obj.setData(data['data']);
|
|
255
257
|
break;
|
|
256
258
|
case 'objects.v4.error.ErrorResponse':
|
|
257
259
|
obj.setData(_ErrorResponse["default"].constructFromObject(data['data'], undefined));
|
|
@@ -272,7 +274,11 @@ var TaskReferenceApiResponse = exports["default"] = /*#__PURE__*/function (_Pagi
|
|
|
272
274
|
if (!callFromChild) {
|
|
273
275
|
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
274
276
|
for (var property in data) {
|
|
275
|
-
if
|
|
277
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
278
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
279
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
280
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
281
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
276
282
|
obj.$unknownFields[property] = data[property];
|
|
277
283
|
}
|
|
278
284
|
}
|
|
@@ -280,10 +286,23 @@ var TaskReferenceApiResponse = exports["default"] = /*#__PURE__*/function (_Pagi
|
|
|
280
286
|
}
|
|
281
287
|
return obj;
|
|
282
288
|
}
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Converts a given snake_case string to camelCase.
|
|
292
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
293
|
+
* @returns {string} - The converted string in camelCase format.
|
|
294
|
+
*/
|
|
295
|
+
}, {
|
|
296
|
+
key: "snakeToCamel",
|
|
297
|
+
value: function snakeToCamel(snakeStr) {
|
|
298
|
+
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
299
|
+
return match[1].toUpperCase();
|
|
300
|
+
});
|
|
301
|
+
}
|
|
283
302
|
}]);
|
|
284
303
|
}(_Paginable2["default"]);
|
|
285
304
|
/**
|
|
286
|
-
* @memberof
|
|
305
|
+
* @memberof GetCaApiResponse
|
|
287
306
|
*/
|
|
288
307
|
function _toJsonMapType(obj, forMutation) {
|
|
289
308
|
if (obj instanceof Map) {
|
|
@@ -300,12 +319,24 @@ function _toJsonMapType(obj, forMutation) {
|
|
|
300
319
|
}
|
|
301
320
|
return obj;
|
|
302
321
|
}
|
|
303
|
-
|
|
322
|
+
/*
|
|
323
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
324
|
+
* @param {Object} obj Object to serialize
|
|
325
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
326
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
327
|
+
*/
|
|
328
|
+
function _handleDateType(obj, isDateOnly) {
|
|
329
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
330
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
331
|
+
}
|
|
332
|
+
return obj;
|
|
333
|
+
}
|
|
334
|
+
GetCaApiResponse.prototype.metadata = undefined;
|
|
304
335
|
|
|
305
336
|
/**
|
|
306
|
-
* @memberof
|
|
337
|
+
* @memberof GetCaApiResponse
|
|
307
338
|
*/
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
339
|
+
GetCaApiResponse.prototype.data = undefined;
|
|
340
|
+
GetCaApiResponse.prototype.$reserved = undefined;
|
|
341
|
+
GetCaApiResponse.prototype.$objectType = undefined;
|
|
342
|
+
GetCaApiResponse.prototype.$unknownFields = undefined;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The GetCertificateApiResponse model module.
|
|
3
|
+
* @module Ntnx/GetCertificateApiResponse
|
|
4
|
+
* @version 4.0.1
|
|
5
|
+
* @class GetCertificateApiResponse
|
|
6
|
+
*/
|
|
7
|
+
export default class GetCertificateApiResponse extends Paginable {
|
|
8
|
+
/**
|
|
9
|
+
* Constructs a <code>GetCertificateApiResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
10
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
11
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
12
|
+
* @param {module:Ntnx/GetCertificateApiResponse} obj Optional instance to populate.
|
|
13
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
14
|
+
* @return {module:Ntnx/GetCertificateApiResponse} The populated <code>GetCertificateApiResponse</code> instance.
|
|
15
|
+
*/
|
|
16
|
+
static constructFromObject(data: any, obj?: any, callFromChild?: boolean): any;
|
|
17
|
+
/**
|
|
18
|
+
* Converts a given snake_case string to camelCase.
|
|
19
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
20
|
+
* @returns {string} - The converted string in camelCase format.
|
|
21
|
+
*/
|
|
22
|
+
static snakeToCamel(snakeStr: string): string;
|
|
23
|
+
$objectType: string;
|
|
24
|
+
/** @type {object<string, any>} */
|
|
25
|
+
$reserved: object;
|
|
26
|
+
/** @type {object<string, any>} */
|
|
27
|
+
$unknownFields: object;
|
|
28
|
+
/**
|
|
29
|
+
* @return {ApiResponseMetadata}
|
|
30
|
+
*/
|
|
31
|
+
getMetadata(): ApiResponseMetadata;
|
|
32
|
+
/**
|
|
33
|
+
* @param {ApiResponseMetadata} metadata
|
|
34
|
+
*/
|
|
35
|
+
setMetadata(metadata: ApiResponseMetadata): void;
|
|
36
|
+
metadata: ApiResponseMetadata;
|
|
37
|
+
/**
|
|
38
|
+
* @return {Certificate | ErrorResponse}
|
|
39
|
+
*/
|
|
40
|
+
getData(): Certificate | ErrorResponse;
|
|
41
|
+
/**
|
|
42
|
+
* @param {Certificate | ErrorResponse} data
|
|
43
|
+
*/
|
|
44
|
+
setData(data: Certificate | ErrorResponse): void;
|
|
45
|
+
data: Certificate | ErrorResponse;
|
|
46
|
+
get$Reserved(): any;
|
|
47
|
+
get$ObjectType(): string;
|
|
48
|
+
get$UnknownFields(): any;
|
|
49
|
+
toJson(forMutation: any): {
|
|
50
|
+
$reserved: any;
|
|
51
|
+
$objectType: string;
|
|
52
|
+
$unknownFields: any;
|
|
53
|
+
data?: any;
|
|
54
|
+
metadata?: {
|
|
55
|
+
$reserved: any;
|
|
56
|
+
$objectType: string;
|
|
57
|
+
$unknownFields: any;
|
|
58
|
+
extraInfo?: {
|
|
59
|
+
$reserved: any;
|
|
60
|
+
$objectType: string;
|
|
61
|
+
$unknownFields: any;
|
|
62
|
+
value?: any;
|
|
63
|
+
name?: string;
|
|
64
|
+
}[];
|
|
65
|
+
messages?: {
|
|
66
|
+
$reserved: any;
|
|
67
|
+
$objectType: string;
|
|
68
|
+
$unknownFields: any;
|
|
69
|
+
severity?: string;
|
|
70
|
+
locale?: string;
|
|
71
|
+
message?: string;
|
|
72
|
+
code?: string;
|
|
73
|
+
}[];
|
|
74
|
+
totalAvailableResults?: number;
|
|
75
|
+
links?: {
|
|
76
|
+
$reserved: any;
|
|
77
|
+
$objectType: string;
|
|
78
|
+
$unknownFields: any;
|
|
79
|
+
rel?: string;
|
|
80
|
+
href?: string;
|
|
81
|
+
}[];
|
|
82
|
+
flags?: {
|
|
83
|
+
$reserved: any;
|
|
84
|
+
$objectType: string;
|
|
85
|
+
$unknownFields: any;
|
|
86
|
+
value?: boolean;
|
|
87
|
+
name?: string;
|
|
88
|
+
}[];
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
validate(scope: any, properties: any, ...args: any[]): Promise<any>;
|
|
92
|
+
validateProperty(scope: any, property: any): ValidationError;
|
|
93
|
+
#private;
|
|
94
|
+
}
|
|
95
|
+
import Paginable from "../../../../Paginable";
|
|
96
|
+
import ApiResponseMetadata from "../../../common/v1/response/ApiResponseMetadata";
|
|
97
|
+
import Certificate from "./Certificate";
|
|
98
|
+
import ErrorResponse from "../error/ErrorResponse";
|
|
99
|
+
import ValidationError from "../../../validation/ValidationError";
|