@nutanix-scratch/objects-js-client 4.0.1-beta.1 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -20
- package/dist/Ntnx-Objects-js-client-prod.js +1 -1
- package/dist/Ntnx-Objects-js-client.js +331 -259
- package/dist/es/ApiClient.d.ts +35 -7
- package/dist/es/ApiClient.js +862 -684
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +144 -183
- package/dist/es/apis/objectstores-endpoints.d.ts +9 -70
- package/dist/es/apis/objectstores-endpoints.js +407 -477
- package/dist/es/apis/stats-endpoints.d.ts +46 -0
- package/dist/es/apis/stats-endpoints.js +122 -0
- package/dist/es/index.d.ts +13 -1
- package/dist/es/index.js +152 -104
- package/dist/es/models/common/v1/config/FQDN.d.ts +2 -7
- package/dist/es/models/common/v1/config/FQDN.js +141 -180
- package/dist/es/models/common/v1/config/Flag.d.ts +2 -8
- package/dist/es/models/common/v1/config/Flag.js +170 -211
- package/dist/es/models/common/v1/config/IPAddress.d.ts +2 -20
- package/dist/es/models/common/v1/config/IPAddress.js +170 -217
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +2 -8
- package/dist/es/models/common/v1/config/IPv4Address.js +174 -215
- package/dist/es/models/common/v1/config/IPv6Address.d.ts +2 -8
- package/dist/es/models/common/v1/config/IPv6Address.js +174 -215
- package/dist/es/models/common/v1/config/KVPair.d.ts +2 -8
- package/dist/es/models/common/v1/config/KVPair.js +225 -270
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +139 -178
- package/dist/es/models/common/v1/config/Message.d.ts +2 -10
- package/dist/es/models/common/v1/config/Message.js +213 -258
- package/dist/es/models/common/v1/config/MessageSeverity.js +7 -9
- package/dist/es/models/common/v1/config/Metadata.d.ts +2 -11
- package/dist/es/models/common/v1/config/Metadata.js +261 -308
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +5 -10
- package/dist/es/models/common/v1/config/TenantAwareModel.js +138 -178
- package/dist/es/models/common/v1/response/ApiLink.d.ts +2 -8
- package/dist/es/models/common/v1/response/ApiLink.js +165 -206
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +281 -344
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +155 -203
- package/dist/es/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
- package/dist/es/models/common/v1/stats/DownSamplingOperator.js +107 -0
- package/dist/es/models/common/v1/stats/TimeIntValuePair.d.ts +58 -0
- package/dist/es/models/common/v1/stats/TimeIntValuePair.js +272 -0
- package/dist/es/models/objects/v4/config/Certificate.d.ts +24 -34
- package/dist/es/models/objects/v4/config/Certificate.js +342 -310
- package/dist/es/models/objects/v4/config/CertificateProjection.d.ts +1 -1
- package/dist/es/models/objects/v4/config/CertificateProjection.js +75 -103
- package/dist/es/models/objects/v4/config/CreateCertificateApiResponse.d.ts +2 -43
- package/dist/es/models/objects/v4/config/CreateCertificateApiResponse.js +187 -242
- package/dist/es/models/objects/v4/config/CreateObjectstoreApiResponse.d.ts +2 -43
- package/dist/es/models/objects/v4/config/CreateObjectstoreApiResponse.js +187 -242
- package/dist/es/models/objects/v4/config/DeleteObjectstoreApiResponse.d.ts +2 -43
- package/dist/es/models/objects/v4/config/DeleteObjectstoreApiResponse.js +187 -242
- package/dist/es/models/objects/v4/config/GetCaApiResponse.d.ts +2 -45
- package/dist/es/models/objects/v4/config/GetCaApiResponse.js +187 -242
- package/dist/es/models/objects/v4/config/GetCertificateApiResponse.d.ts +2 -43
- package/dist/es/models/objects/v4/config/GetCertificateApiResponse.js +187 -242
- package/dist/es/models/objects/v4/config/GetObjectstoreApiResponse.d.ts +2 -43
- package/dist/es/models/objects/v4/config/GetObjectstoreApiResponse.js +187 -242
- package/dist/es/models/objects/v4/config/ListCertificatesApiResponse.d.ts +2 -43
- package/dist/es/models/objects/v4/config/ListCertificatesApiResponse.js +213 -268
- package/dist/es/models/objects/v4/config/ListObjectstoresApiResponse.d.ts +2 -43
- package/dist/es/models/objects/v4/config/ListObjectstoresApiResponse.js +213 -268
- package/dist/es/models/objects/v4/config/ObjectStore.d.ts +1 -96
- package/dist/es/models/objects/v4/config/ObjectStore.js +629 -712
- package/dist/es/models/objects/v4/config/ObjectStoreProjection.d.ts +1 -129
- package/dist/es/models/objects/v4/config/ObjectStoreProjection.js +222 -239
- package/dist/es/models/objects/v4/config/State.js +7 -9
- package/dist/es/models/objects/v4/config/UpdateObjectstoreApiResponse.d.ts +2 -43
- package/dist/es/models/objects/v4/config/UpdateObjectstoreApiResponse.js +187 -242
- package/dist/es/models/objects/v4/error/AppMessage.d.ts +5 -15
- package/dist/es/models/objects/v4/error/AppMessage.js +265 -314
- package/dist/es/models/objects/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/es/models/objects/v4/error/ErrorResponse.js +177 -219
- package/dist/es/models/objects/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/es/models/objects/v4/error/SchemaValidationError.js +249 -300
- package/dist/es/models/objects/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/es/models/objects/v4/error/SchemaValidationErrorMessage.js +191 -234
- package/dist/es/models/objects/v4/stats/GetObjectstoreStatsApiResponse.d.ts +58 -0
- package/dist/es/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js +288 -0
- package/dist/es/models/objects/v4/stats/ObjectstoreStats.d.ts +255 -0
- package/dist/es/models/objects/v4/stats/ObjectstoreStats.js +1253 -0
- package/dist/es/models/objects/v4/stats/TimeFloatValuePair.d.ts +58 -0
- package/dist/es/models/objects/v4/stats/TimeFloatValuePair.js +272 -0
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +2 -7
- package/dist/es/models/prism/v4/config/TaskReference.js +142 -181
- package/dist/es/models/validation/ValidationError.js +26 -42
- package/dist/es/models/validation/ValidationScopes.js +3 -3
- package/dist/es/utils/ValidationUtils.js +39 -69
- package/dist/lib/ApiClient.d.ts +35 -7
- package/dist/lib/ApiClient.js +862 -684
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +144 -183
- package/dist/lib/apis/objectstores-endpoints.d.ts +9 -70
- package/dist/lib/apis/objectstores-endpoints.js +407 -477
- package/dist/lib/apis/stats-endpoints.d.ts +46 -0
- package/dist/lib/apis/stats-endpoints.js +122 -0
- package/dist/lib/index.d.ts +13 -1
- package/dist/lib/index.js +152 -104
- package/dist/lib/models/common/v1/config/FQDN.d.ts +2 -7
- package/dist/lib/models/common/v1/config/FQDN.js +141 -180
- package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
- package/dist/lib/models/common/v1/config/Flag.js +170 -211
- package/dist/lib/models/common/v1/config/IPAddress.d.ts +2 -20
- package/dist/lib/models/common/v1/config/IPAddress.js +170 -217
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +2 -8
- package/dist/lib/models/common/v1/config/IPv4Address.js +174 -215
- package/dist/lib/models/common/v1/config/IPv6Address.d.ts +2 -8
- package/dist/lib/models/common/v1/config/IPv6Address.js +174 -215
- package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
- package/dist/lib/models/common/v1/config/KVPair.js +225 -270
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
- package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
- package/dist/lib/models/common/v1/config/Message.js +213 -258
- package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
- package/dist/lib/models/common/v1/config/Metadata.d.ts +2 -11
- package/dist/lib/models/common/v1/config/Metadata.js +261 -308
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +5 -10
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +138 -178
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
- package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +155 -203
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +107 -0
- package/dist/lib/models/common/v1/stats/TimeIntValuePair.d.ts +58 -0
- package/dist/lib/models/common/v1/stats/TimeIntValuePair.js +272 -0
- package/dist/lib/models/objects/v4/config/Certificate.d.ts +24 -34
- package/dist/lib/models/objects/v4/config/Certificate.js +342 -310
- package/dist/lib/models/objects/v4/config/CertificateProjection.d.ts +1 -1
- package/dist/lib/models/objects/v4/config/CertificateProjection.js +75 -103
- package/dist/lib/models/objects/v4/config/CreateCertificateApiResponse.d.ts +2 -43
- package/dist/lib/models/objects/v4/config/CreateCertificateApiResponse.js +187 -242
- package/dist/lib/models/objects/v4/config/CreateObjectstoreApiResponse.d.ts +2 -43
- package/dist/lib/models/objects/v4/config/CreateObjectstoreApiResponse.js +187 -242
- package/dist/lib/models/objects/v4/config/DeleteObjectstoreApiResponse.d.ts +2 -43
- package/dist/lib/models/objects/v4/config/DeleteObjectstoreApiResponse.js +187 -242
- package/dist/lib/models/objects/v4/config/GetCaApiResponse.d.ts +2 -45
- package/dist/lib/models/objects/v4/config/GetCaApiResponse.js +187 -242
- package/dist/lib/models/objects/v4/config/GetCertificateApiResponse.d.ts +2 -43
- package/dist/lib/models/objects/v4/config/GetCertificateApiResponse.js +187 -242
- package/dist/lib/models/objects/v4/config/GetObjectstoreApiResponse.d.ts +2 -43
- package/dist/lib/models/objects/v4/config/GetObjectstoreApiResponse.js +187 -242
- package/dist/lib/models/objects/v4/config/ListCertificatesApiResponse.d.ts +2 -43
- package/dist/lib/models/objects/v4/config/ListCertificatesApiResponse.js +213 -268
- package/dist/lib/models/objects/v4/config/ListObjectstoresApiResponse.d.ts +2 -43
- package/dist/lib/models/objects/v4/config/ListObjectstoresApiResponse.js +213 -268
- package/dist/lib/models/objects/v4/config/ObjectStore.d.ts +1 -96
- package/dist/lib/models/objects/v4/config/ObjectStore.js +629 -712
- package/dist/lib/models/objects/v4/config/ObjectStoreProjection.d.ts +1 -129
- package/dist/lib/models/objects/v4/config/ObjectStoreProjection.js +222 -239
- package/dist/lib/models/objects/v4/config/State.js +7 -9
- package/dist/lib/models/objects/v4/config/UpdateObjectstoreApiResponse.d.ts +2 -43
- package/dist/lib/models/objects/v4/config/UpdateObjectstoreApiResponse.js +187 -242
- package/dist/lib/models/objects/v4/error/AppMessage.d.ts +5 -15
- package/dist/lib/models/objects/v4/error/AppMessage.js +265 -314
- package/dist/lib/models/objects/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/lib/models/objects/v4/error/ErrorResponse.js +177 -219
- package/dist/lib/models/objects/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/lib/models/objects/v4/error/SchemaValidationError.js +249 -300
- package/dist/lib/models/objects/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/lib/models/objects/v4/error/SchemaValidationErrorMessage.js +191 -234
- package/dist/lib/models/objects/v4/stats/GetObjectstoreStatsApiResponse.d.ts +58 -0
- package/dist/lib/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js +288 -0
- package/dist/lib/models/objects/v4/stats/ObjectstoreStats.d.ts +255 -0
- package/dist/lib/models/objects/v4/stats/ObjectstoreStats.js +1253 -0
- package/dist/lib/models/objects/v4/stats/TimeFloatValuePair.d.ts +58 -0
- package/dist/lib/models/objects/v4/stats/TimeFloatValuePair.js +272 -0
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +2 -7
- package/dist/lib/models/prism/v4/config/TaskReference.js +142 -181
- package/dist/lib/models/validation/ValidationError.js +26 -42
- package/dist/lib/models/validation/ValidationScopes.js +3 -3
- package/dist/lib/utils/ValidationUtils.js +39 -69
- package/package.json +2 -2
|
@@ -3,46 +3,24 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _ApiResponseMetadata = _interopRequireDefault(require("../../../common/v1/response/ApiResponseMetadata"));
|
|
8
8
|
var _ErrorResponse = _interopRequireDefault(require("../error/ErrorResponse"));
|
|
9
9
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
10
10
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
11
11
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
12
|
-
var
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : {
|
|
14
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
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."); }
|
|
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; }
|
|
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; } }
|
|
19
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
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); }
|
|
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; }
|
|
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; }
|
|
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; }
|
|
27
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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); }
|
|
29
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
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; }
|
|
32
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
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); }
|
|
12
|
+
var _Paginable = _interopRequireDefault(require("../../../../Paginable"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
36
14
|
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
37
15
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
38
16
|
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"); } /*
|
|
39
17
|
* Nutanix Objects Storage Management APIs
|
|
40
18
|
*
|
|
41
|
-
* OpenAPI spec version: 4.0.
|
|
19
|
+
* OpenAPI spec version: 4.0.2
|
|
42
20
|
*
|
|
43
21
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
44
22
|
*
|
|
45
|
-
* Open API Dev Platform Codegen version:
|
|
23
|
+
* Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
|
|
46
24
|
*
|
|
47
25
|
* Do not edit the class manually.
|
|
48
26
|
*
|
|
@@ -50,35 +28,32 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
|
50
28
|
/**
|
|
51
29
|
* The GetCaApiResponse model module.
|
|
52
30
|
* @module Ntnx/GetCaApiResponse
|
|
53
|
-
* @version 4.0.
|
|
31
|
+
* @version 4.0.2
|
|
54
32
|
* @class GetCaApiResponse
|
|
55
33
|
*/
|
|
56
34
|
var _GetCaApiResponse_brand = /*#__PURE__*/new WeakSet();
|
|
57
|
-
|
|
35
|
+
class GetCaApiResponse extends _Paginable.default {
|
|
58
36
|
/**
|
|
59
37
|
* Constructs a new <code>GetCaApiResponse</code>.
|
|
60
|
-
* REST response for all response codes in API path /objects/v4.0
|
|
38
|
+
* REST response for all response codes in API path /objects/v4.0/config/object-stores/{objectStoreExtId}/certificates/{certificateExtId}/certificate-authority Get operation
|
|
61
39
|
* @alias module:Ntnx/GetCaApiResponse
|
|
62
40
|
*/
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
_classCallCheck(this, GetCaApiResponse);
|
|
66
|
-
_this = _callSuper(this, GetCaApiResponse);
|
|
41
|
+
constructor() {
|
|
42
|
+
super();
|
|
67
43
|
/*
|
|
68
44
|
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
69
45
|
* @param {Object} obj
|
|
70
46
|
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
71
47
|
* Otherwise, just returns the input object.
|
|
72
48
|
*/
|
|
73
|
-
_classPrivateMethodInitSpec(
|
|
74
|
-
|
|
49
|
+
_classPrivateMethodInitSpec(this, _GetCaApiResponse_brand);
|
|
50
|
+
this.$objectType = "objects.v4.config.GetCaApiResponse";
|
|
75
51
|
/** @type {object<string, any>} */
|
|
76
|
-
|
|
77
|
-
'$fv': "v4.r0
|
|
52
|
+
this.$reserved = {
|
|
53
|
+
'$fv': "v4.r0"
|
|
78
54
|
};
|
|
79
55
|
/** @type {object<string, any>} */
|
|
80
|
-
|
|
81
|
-
return _this;
|
|
56
|
+
this.$unknownFields = {};
|
|
82
57
|
}
|
|
83
58
|
|
|
84
59
|
/**
|
|
@@ -89,231 +64,201 @@ var GetCaApiResponse = exports["default"] = /*#__PURE__*/function (_Paginable) {
|
|
|
89
64
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
90
65
|
* @return {module:Ntnx/GetCaApiResponse} The populated <code>GetCaApiResponse</code> instance.
|
|
91
66
|
*/
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
67
|
+
static constructFromObject(data, obj = null, callFromChild = false) {
|
|
68
|
+
let items, item, i, itemArr, discriminator;
|
|
69
|
+
if (data) {
|
|
70
|
+
obj = obj || new GetCaApiResponse();
|
|
71
|
+
if (data.hasOwnProperty('metadata')) {
|
|
72
|
+
_Paginable.default.constructFromObject(data['metadata'], obj);
|
|
73
|
+
}
|
|
74
|
+
if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {
|
|
75
|
+
obj.setMetadata(_ApiResponseMetadata.default.constructFromObject(data['metadata']));
|
|
76
|
+
}
|
|
77
|
+
if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {
|
|
78
|
+
if (data['data'].hasOwnProperty('$objectType')) {
|
|
79
|
+
discriminator = data['data']['$objectType'];
|
|
80
|
+
} else {
|
|
81
|
+
discriminator = typeof data['data'];
|
|
82
|
+
}
|
|
83
|
+
switch (discriminator) {
|
|
84
|
+
case 'Map':
|
|
85
|
+
obj.setData(data['data']);
|
|
86
|
+
break;
|
|
87
|
+
case 'objects.v4.error.ErrorResponse':
|
|
88
|
+
obj.setData(_ErrorResponse.default.constructFromObject(data['data'], undefined));
|
|
89
|
+
break;
|
|
90
|
+
default:
|
|
91
|
+
throw "Unknown datatype " + discriminator + " in data";
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
if (data.hasOwnProperty('$reserved')) {
|
|
95
|
+
obj.$reserved = data['$reserved'];
|
|
96
|
+
}
|
|
97
|
+
if (data.hasOwnProperty('$objectType')) {
|
|
98
|
+
obj.$objectType = data['$objectType'];
|
|
99
|
+
}
|
|
100
|
+
if (data.hasOwnProperty('$unknownFields')) {
|
|
101
|
+
obj.$unknownFields = data['$unknownFields'];
|
|
102
|
+
}
|
|
103
|
+
if (!callFromChild) {
|
|
104
|
+
obj.$unknownFields = {
|
|
105
|
+
...data.$unknownFields
|
|
106
|
+
};
|
|
107
|
+
for (const property in data) {
|
|
108
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
109
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
110
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
111
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
112
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
113
|
+
obj.$unknownFields[property] = data[property];
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
101
117
|
}
|
|
118
|
+
return obj;
|
|
119
|
+
}
|
|
102
120
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
121
|
+
/**
|
|
122
|
+
* Converts a given snake_case string to camelCase.
|
|
123
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
124
|
+
* @returns {string} - The converted string in camelCase format.
|
|
125
|
+
*/
|
|
126
|
+
static snakeToCamel(snakeStr) {
|
|
127
|
+
return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
|
|
128
|
+
}
|
|
111
129
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
return this.data;
|
|
119
|
-
}
|
|
130
|
+
/**
|
|
131
|
+
* @return {ApiResponseMetadata}
|
|
132
|
+
*/
|
|
133
|
+
getMetadata() {
|
|
134
|
+
return this.metadata;
|
|
135
|
+
}
|
|
120
136
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
137
|
+
/**
|
|
138
|
+
* @param {ApiResponseMetadata} metadata
|
|
139
|
+
*/
|
|
140
|
+
setMetadata(metadata) {
|
|
141
|
+
this.metadata = metadata;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @return {string | ErrorResponse}
|
|
146
|
+
*/
|
|
147
|
+
getData() {
|
|
148
|
+
return this.data;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @param {string | ErrorResponse} data
|
|
153
|
+
*/
|
|
154
|
+
setData(data) {
|
|
155
|
+
this.data = data;
|
|
156
|
+
}
|
|
157
|
+
get$Reserved() {
|
|
158
|
+
return this.$reserved;
|
|
159
|
+
}
|
|
160
|
+
get$ObjectType() {
|
|
161
|
+
return this.$objectType;
|
|
162
|
+
}
|
|
163
|
+
get$UnknownFields() {
|
|
164
|
+
return this.$unknownFields;
|
|
165
|
+
}
|
|
166
|
+
toJson(forMutation) {
|
|
167
|
+
if (forMutation === false) {
|
|
168
|
+
return {
|
|
169
|
+
...(typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {
|
|
149
170
|
'metadata': this.getMetadata().toJson(false)
|
|
150
|
-
} : {}),
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
} : {}), {}, {
|
|
155
|
-
'$reserved': this.get$Reserved(),
|
|
156
|
-
'$objectType': this.get$ObjectType(),
|
|
157
|
-
'$unknownFields': this.get$UnknownFields()
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {
|
|
161
|
-
'metadata': this.getMetadata().toJson(false)
|
|
162
|
-
} : {}), typeof this.getData() !== 'undefined' && this.getData() !== null ? {
|
|
163
|
-
'data': typeof this.getData().toJson !== "undefined" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(function (item) {
|
|
164
|
-
return typeof item.toJson !== "undefined" ? item.toJson() : item;
|
|
165
|
-
}) : _assertClassBrand(_GetCaApiResponse_brand, this, _toJsonMapType).call(this, this.getData())
|
|
166
|
-
} : {}), {}, {
|
|
171
|
+
} : {}),
|
|
172
|
+
...(typeof this.getData() !== 'undefined' && this.getData() !== null ? {
|
|
173
|
+
'data': typeof this.getData().toJson !== "undefined" ? this.getData().toJson(false) : Array.isArray(this.getData()) ? this.getData().map(item => typeof item.toJson !== "undefined" ? item.toJson(false) : item) : _assertClassBrand(_GetCaApiResponse_brand, this, _toJsonMapType).call(this, this.getData(), false)
|
|
174
|
+
} : {}),
|
|
167
175
|
'$reserved': this.get$Reserved(),
|
|
168
176
|
'$objectType': this.get$ObjectType(),
|
|
169
|
-
|
|
170
|
-
|
|
177
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
178
|
+
'$unknownFields': {}
|
|
179
|
+
};
|
|
171
180
|
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
if (res.length !== 0) {
|
|
198
|
-
reject(err);
|
|
199
|
-
} else {
|
|
200
|
-
resolve();
|
|
201
|
-
}
|
|
202
|
-
});
|
|
181
|
+
return {
|
|
182
|
+
...(typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {
|
|
183
|
+
'metadata': this.getMetadata().toJson(false)
|
|
184
|
+
} : {}),
|
|
185
|
+
...(typeof this.getData() !== 'undefined' && this.getData() !== null ? {
|
|
186
|
+
'data': typeof this.getData().toJson !== "undefined" ? this.getData().toJson() : Array.isArray(this.getData()) ? this.getData().map(item => typeof item.toJson !== "undefined" ? item.toJson() : item) : _assertClassBrand(_GetCaApiResponse_brand, this, _toJsonMapType).call(this, this.getData())
|
|
187
|
+
} : {}),
|
|
188
|
+
'$reserved': this.get$Reserved(),
|
|
189
|
+
'$objectType': this.get$ObjectType(),
|
|
190
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
191
|
+
'$unknownFields': {}
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
validate(scope, properties) {
|
|
195
|
+
let propList = [];
|
|
196
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
|
|
197
|
+
//cases validate() and validate(scope)
|
|
198
|
+
propList = [];
|
|
199
|
+
} else if (arguments.length === 1) {
|
|
200
|
+
//case validate(properties)
|
|
201
|
+
propList = arguments[0];
|
|
202
|
+
scope = null;
|
|
203
|
+
} else {
|
|
204
|
+
//case validate(scope, properties)
|
|
205
|
+
propList = arguments[1];
|
|
203
206
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
}
|
|
207
|
+
let res = [];
|
|
208
|
+
let err = null;
|
|
209
|
+
propList.forEach(property => {
|
|
210
|
+
err = this.validateProperty(property, scope);
|
|
211
|
+
if (err) {
|
|
212
|
+
res.push(err);
|
|
211
213
|
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
});
|
|
215
|
+
return new Promise(function (resolve, reject) {
|
|
216
|
+
if (res.length !== 0) {
|
|
217
|
+
reject(err);
|
|
218
|
+
} else {
|
|
219
|
+
resolve();
|
|
216
220
|
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
validateProperty(scope, property) {
|
|
224
|
+
if (property === "metadata") {
|
|
225
|
+
if (typeof this.metadata === 'undefined' || this.metadata === null) {
|
|
226
|
+
return new _ValidationError.default("metadata", "undefined or null");
|
|
221
227
|
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
228
|
+
}
|
|
229
|
+
if (property === "data") {
|
|
230
|
+
if (typeof this.data === 'undefined' || this.data === null) {
|
|
231
|
+
return new _ValidationError.default("data", "undefined or null");
|
|
226
232
|
}
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
233
|
+
}
|
|
234
|
+
if (property === "$reserved") {
|
|
235
|
+
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
236
|
+
return new _ValidationError.default("$reserved", "undefined or null");
|
|
231
237
|
}
|
|
232
|
-
return new _ValidationError["default"](property, "no such property exists");
|
|
233
238
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
238
|
-
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
239
|
-
var items, item, i, itemArr, discriminator;
|
|
240
|
-
if (data) {
|
|
241
|
-
obj = obj || new GetCaApiResponse();
|
|
242
|
-
if (data.hasOwnProperty('metadata')) {
|
|
243
|
-
_Paginable2["default"].constructFromObject(data['metadata'], obj);
|
|
244
|
-
}
|
|
245
|
-
if (data.hasOwnProperty('metadata') && data.metadata !== null && data.metadata !== undefined) {
|
|
246
|
-
obj.setMetadata(_ApiResponseMetadata["default"].constructFromObject(data['metadata']));
|
|
247
|
-
}
|
|
248
|
-
if (data.hasOwnProperty('data') && data.data !== null && data.data !== undefined) {
|
|
249
|
-
if (data['data'].hasOwnProperty('$objectType')) {
|
|
250
|
-
discriminator = data['data']['$objectType'];
|
|
251
|
-
} else {
|
|
252
|
-
discriminator = _typeof(data['data']);
|
|
253
|
-
}
|
|
254
|
-
switch (discriminator) {
|
|
255
|
-
case 'Map':
|
|
256
|
-
obj.setData(data['data']);
|
|
257
|
-
break;
|
|
258
|
-
case 'objects.v4.error.ErrorResponse':
|
|
259
|
-
obj.setData(_ErrorResponse["default"].constructFromObject(data['data'], undefined));
|
|
260
|
-
break;
|
|
261
|
-
default:
|
|
262
|
-
throw "Unknown datatype " + discriminator + " in data";
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
if (data.hasOwnProperty('$reserved')) {
|
|
266
|
-
obj.$reserved = data['$reserved'];
|
|
267
|
-
}
|
|
268
|
-
if (data.hasOwnProperty('$objectType')) {
|
|
269
|
-
obj.$objectType = data['$objectType'];
|
|
270
|
-
}
|
|
271
|
-
if (data.hasOwnProperty('$unknownFields')) {
|
|
272
|
-
obj.$unknownFields = data['$unknownFields'];
|
|
273
|
-
}
|
|
274
|
-
if (!callFromChild) {
|
|
275
|
-
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
276
|
-
for (var property in data) {
|
|
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"))) {
|
|
282
|
-
obj.$unknownFields[property] = data[property];
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}
|
|
239
|
+
if (property === "$objectType") {
|
|
240
|
+
if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
|
|
241
|
+
return new _ValidationError.default("$objectType", "undefined or null");
|
|
286
242
|
}
|
|
287
|
-
return obj;
|
|
288
243
|
}
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
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
|
-
});
|
|
244
|
+
if (property === "$unknownFields") {
|
|
245
|
+
if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
|
|
246
|
+
return new _ValidationError.default("$unknownFields", "undefined or null");
|
|
247
|
+
}
|
|
301
248
|
}
|
|
302
|
-
|
|
303
|
-
}
|
|
249
|
+
return new _ValidationError.default(property, "no such property exists");
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
304
253
|
/**
|
|
305
254
|
* @memberof GetCaApiResponse
|
|
306
255
|
*/
|
|
256
|
+
exports.default = GetCaApiResponse;
|
|
307
257
|
function _toJsonMapType(obj, forMutation) {
|
|
308
258
|
if (obj instanceof Map) {
|
|
309
|
-
return Object.fromEntries(Array.from(obj,
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
v = _ref2[1];
|
|
313
|
-
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
314
|
-
}));
|
|
315
|
-
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
316
|
-
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
259
|
+
return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
|
|
260
|
+
} else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
|
|
261
|
+
return Object.fromEntries(Array.from(Object.entries(obj), entry => {
|
|
317
262
|
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
318
263
|
}));
|
|
319
264
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The GetCertificateApiResponse model module.
|
|
3
3
|
* @module Ntnx/GetCertificateApiResponse
|
|
4
|
-
* @version 4.0.
|
|
4
|
+
* @version 4.0.2
|
|
5
5
|
* @class GetCertificateApiResponse
|
|
6
6
|
*/
|
|
7
7
|
export default class GetCertificateApiResponse extends Paginable {
|
|
@@ -46,48 +46,7 @@ export default class GetCertificateApiResponse extends Paginable {
|
|
|
46
46
|
get$Reserved(): any;
|
|
47
47
|
get$ObjectType(): string;
|
|
48
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
|
-
};
|
|
49
|
+
toJson(forMutation: any): any;
|
|
91
50
|
validate(scope: any, properties: any, ...args: any[]): Promise<any>;
|
|
92
51
|
validateProperty(scope: any, property: any): ValidationError;
|
|
93
52
|
#private;
|