@nutanix-scratch/objects-js-client 4.0.1 → 4.0.3
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 +31 -18
- package/dist/Ntnx-Objects-js-client-prod.js +1 -1
- package/dist/Ntnx-Objects-js-client.js +289 -283
- 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 +5 -69
- package/dist/es/apis/objectstores-endpoints.js +406 -479
- package/dist/es/apis/stats-endpoints.d.ts +3 -25
- package/dist/es/apis/stats-endpoints.js +75 -107
- package/dist/es/index.js +120 -120
- 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.js +7 -9
- package/dist/es/models/common/v1/stats/TimeIntValuePair.d.ts +2 -8
- package/dist/es/models/common/v1/stats/TimeIntValuePair.js +165 -206
- package/dist/es/models/objects/v4/config/Certificate.d.ts +1 -58
- package/dist/es/models/objects/v4/config/Certificate.js +319 -381
- package/dist/es/models/objects/v4/config/CertificateProjection.d.ts +1 -1
- package/dist/es/models/objects/v4/config/CertificateProjection.js +73 -102
- package/dist/es/models/objects/v4/config/CreateCertificateApiResponse.d.ts +2 -45
- package/dist/es/models/objects/v4/config/CreateCertificateApiResponse.js +185 -240
- package/dist/es/models/objects/v4/config/CreateObjectstoreApiResponse.d.ts +2 -43
- package/dist/es/models/objects/v4/config/CreateObjectstoreApiResponse.js +185 -240
- package/dist/es/models/objects/v4/config/DeleteObjectstoreApiResponse.d.ts +2 -43
- package/dist/es/models/objects/v4/config/DeleteObjectstoreApiResponse.js +185 -240
- package/dist/es/models/objects/v4/config/GetCaApiResponse.d.ts +2 -43
- package/dist/es/models/objects/v4/config/GetCaApiResponse.js +185 -240
- package/dist/es/models/objects/v4/config/GetCertificateApiResponse.d.ts +2 -43
- package/dist/es/models/objects/v4/config/GetCertificateApiResponse.js +185 -240
- package/dist/es/models/objects/v4/config/GetObjectstoreApiResponse.d.ts +2 -45
- package/dist/es/models/objects/v4/config/GetObjectstoreApiResponse.js +185 -240
- package/dist/es/models/objects/v4/config/ListCertificatesApiResponse.d.ts +2 -43
- package/dist/es/models/objects/v4/config/ListCertificatesApiResponse.js +211 -266
- package/dist/es/models/objects/v4/config/ListObjectstoresApiResponse.d.ts +2 -43
- package/dist/es/models/objects/v4/config/ListObjectstoresApiResponse.js +211 -266
- package/dist/es/models/objects/v4/config/ObjectStore.d.ts +1 -96
- package/dist/es/models/objects/v4/config/ObjectStore.js +628 -711
- package/dist/es/models/objects/v4/config/ObjectStoreProjection.d.ts +1 -152
- package/dist/es/models/objects/v4/config/ObjectStoreProjection.js +221 -238
- 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 +185 -240
- package/dist/es/models/objects/v4/error/AppMessage.d.ts +5 -15
- package/dist/es/models/objects/v4/error/AppMessage.js +264 -313
- package/dist/es/models/objects/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/es/models/objects/v4/error/ErrorResponse.js +174 -217
- package/dist/es/models/objects/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/es/models/objects/v4/error/SchemaValidationError.js +248 -299
- package/dist/es/models/objects/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/es/models/objects/v4/error/SchemaValidationErrorMessage.js +190 -233
- package/dist/es/models/objects/v4/stats/GetObjectstoreStatsApiResponse.d.ts +2 -43
- package/dist/es/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js +185 -240
- package/dist/es/models/objects/v4/stats/ObjectstoreStats.d.ts +1 -169
- package/dist/es/models/objects/v4/stats/ObjectstoreStats.js +957 -1129
- package/dist/es/models/objects/v4/stats/TimeFloatValuePair.d.ts +2 -8
- package/dist/es/models/objects/v4/stats/TimeFloatValuePair.js +165 -206
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +5 -10
- package/dist/es/models/prism/v4/config/TaskReference.js +143 -182
- 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 +5 -69
- package/dist/lib/apis/objectstores-endpoints.js +406 -479
- package/dist/lib/apis/stats-endpoints.d.ts +3 -25
- package/dist/lib/apis/stats-endpoints.js +75 -107
- package/dist/lib/index.js +120 -120
- 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.js +7 -9
- package/dist/lib/models/common/v1/stats/TimeIntValuePair.d.ts +2 -8
- package/dist/lib/models/common/v1/stats/TimeIntValuePair.js +165 -206
- package/dist/lib/models/objects/v4/config/Certificate.d.ts +1 -58
- package/dist/lib/models/objects/v4/config/Certificate.js +319 -381
- package/dist/lib/models/objects/v4/config/CertificateProjection.d.ts +1 -1
- package/dist/lib/models/objects/v4/config/CertificateProjection.js +73 -102
- package/dist/lib/models/objects/v4/config/CreateCertificateApiResponse.d.ts +2 -45
- package/dist/lib/models/objects/v4/config/CreateCertificateApiResponse.js +185 -240
- package/dist/lib/models/objects/v4/config/CreateObjectstoreApiResponse.d.ts +2 -43
- package/dist/lib/models/objects/v4/config/CreateObjectstoreApiResponse.js +185 -240
- package/dist/lib/models/objects/v4/config/DeleteObjectstoreApiResponse.d.ts +2 -43
- package/dist/lib/models/objects/v4/config/DeleteObjectstoreApiResponse.js +185 -240
- package/dist/lib/models/objects/v4/config/GetCaApiResponse.d.ts +2 -43
- package/dist/lib/models/objects/v4/config/GetCaApiResponse.js +185 -240
- package/dist/lib/models/objects/v4/config/GetCertificateApiResponse.d.ts +2 -43
- package/dist/lib/models/objects/v4/config/GetCertificateApiResponse.js +185 -240
- package/dist/lib/models/objects/v4/config/GetObjectstoreApiResponse.d.ts +2 -45
- package/dist/lib/models/objects/v4/config/GetObjectstoreApiResponse.js +185 -240
- package/dist/lib/models/objects/v4/config/ListCertificatesApiResponse.d.ts +2 -43
- package/dist/lib/models/objects/v4/config/ListCertificatesApiResponse.js +211 -266
- package/dist/lib/models/objects/v4/config/ListObjectstoresApiResponse.d.ts +2 -43
- package/dist/lib/models/objects/v4/config/ListObjectstoresApiResponse.js +211 -266
- package/dist/lib/models/objects/v4/config/ObjectStore.d.ts +1 -96
- package/dist/lib/models/objects/v4/config/ObjectStore.js +628 -711
- package/dist/lib/models/objects/v4/config/ObjectStoreProjection.d.ts +1 -152
- package/dist/lib/models/objects/v4/config/ObjectStoreProjection.js +221 -238
- 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 +185 -240
- package/dist/lib/models/objects/v4/error/AppMessage.d.ts +5 -15
- package/dist/lib/models/objects/v4/error/AppMessage.js +264 -313
- package/dist/lib/models/objects/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/lib/models/objects/v4/error/ErrorResponse.js +174 -217
- package/dist/lib/models/objects/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/lib/models/objects/v4/error/SchemaValidationError.js +248 -299
- package/dist/lib/models/objects/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/lib/models/objects/v4/error/SchemaValidationErrorMessage.js +190 -233
- package/dist/lib/models/objects/v4/stats/GetObjectstoreStatsApiResponse.d.ts +2 -43
- package/dist/lib/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js +185 -240
- package/dist/lib/models/objects/v4/stats/ObjectstoreStats.d.ts +1 -169
- package/dist/lib/models/objects/v4/stats/ObjectstoreStats.js +957 -1129
- package/dist/lib/models/objects/v4/stats/TimeFloatValuePair.d.ts +2 -8
- package/dist/lib/models/objects/v4/stats/TimeFloatValuePair.js +165 -206
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +5 -10
- package/dist/lib/models/prism/v4/config/TaskReference.js +143 -182
- 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,50 +3,28 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _IPAddress = _interopRequireDefault(require("../../../common/v1/config/IPAddress"));
|
|
8
8
|
var _Metadata = _interopRequireDefault(require("../../../common/v1/config/Metadata"));
|
|
9
9
|
var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
|
|
10
10
|
var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
|
|
11
11
|
var _CertificateProjection = _interopRequireDefault(require("./CertificateProjection"));
|
|
12
|
-
var
|
|
12
|
+
var _ObjectStore = _interopRequireDefault(require("./ObjectStore"));
|
|
13
13
|
var _State = _interopRequireDefault(require("./State"));
|
|
14
14
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
15
15
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
16
16
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
17
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : {
|
|
18
|
-
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); }
|
|
19
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
20
|
-
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."); }
|
|
21
|
-
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; } }
|
|
22
|
-
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; }
|
|
23
|
-
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; } }
|
|
24
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
25
|
-
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; }
|
|
26
|
-
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; }
|
|
27
|
-
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; }
|
|
28
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
29
|
-
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); } }
|
|
30
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
31
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
32
|
-
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); }
|
|
33
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
34
|
-
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); }
|
|
35
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
36
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
37
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
38
|
-
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); }
|
|
39
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
40
18
|
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
41
19
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
42
20
|
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"); } /*
|
|
43
21
|
* Nutanix Objects Storage Management APIs
|
|
44
22
|
*
|
|
45
|
-
* OpenAPI spec version: 4.0.
|
|
23
|
+
* OpenAPI spec version: 4.0.3
|
|
46
24
|
*
|
|
47
25
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
48
26
|
*
|
|
49
|
-
* Open API Dev Platform Codegen version:
|
|
27
|
+
* Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
|
|
50
28
|
*
|
|
51
29
|
* Do not edit the class manually.
|
|
52
30
|
*
|
|
@@ -54,14 +32,14 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
|
54
32
|
/**
|
|
55
33
|
* The ObjectStoreProjection model module.
|
|
56
34
|
* @module Ntnx/ObjectStoreProjection
|
|
57
|
-
* @version 4.0.
|
|
35
|
+
* @version 4.0.3
|
|
58
36
|
* @class ObjectStoreProjection
|
|
59
37
|
* @extends ObjectStore
|
|
60
38
|
*
|
|
61
39
|
* @param { string } name The name of the Object store.
|
|
62
40
|
*/
|
|
63
41
|
var _ObjectStoreProjection_brand = /*#__PURE__*/new WeakSet();
|
|
64
|
-
|
|
42
|
+
class ObjectStoreProjection extends _ObjectStore.default {
|
|
65
43
|
/**
|
|
66
44
|
* Constructs a new <code>ObjectStoreProjection</code>.
|
|
67
45
|
* @alias module:Ntnx/ObjectStoreProjection
|
|
@@ -69,25 +47,22 @@ var ObjectStoreProjection = exports["default"] = /*#__PURE__*/function (_ObjectS
|
|
|
69
47
|
*
|
|
70
48
|
* @param { string } name The name of the Object store.
|
|
71
49
|
*/
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
_classCallCheck(this, ObjectStoreProjection);
|
|
75
|
-
_this = _callSuper(this, ObjectStoreProjection, [name]);
|
|
50
|
+
constructor(name) {
|
|
51
|
+
super(name);
|
|
76
52
|
/*
|
|
77
53
|
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
78
54
|
* @param {Object} obj
|
|
79
55
|
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
80
56
|
* Otherwise, just returns the input object.
|
|
81
57
|
*/
|
|
82
|
-
_classPrivateMethodInitSpec(
|
|
83
|
-
|
|
58
|
+
_classPrivateMethodInitSpec(this, _ObjectStoreProjection_brand);
|
|
59
|
+
this.$objectType = "objects.v4.config.ObjectStoreProjection";
|
|
84
60
|
/** @type {object<string, any>} */
|
|
85
|
-
|
|
61
|
+
this.$reserved = {
|
|
86
62
|
'$fv': "v4.r0"
|
|
87
63
|
};
|
|
88
64
|
/** @type {object<string, any>} */
|
|
89
|
-
|
|
90
|
-
return _this;
|
|
65
|
+
this.$unknownFields = {};
|
|
91
66
|
}
|
|
92
67
|
|
|
93
68
|
/**
|
|
@@ -98,230 +73,238 @@ var ObjectStoreProjection = exports["default"] = /*#__PURE__*/function (_ObjectS
|
|
|
98
73
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
99
74
|
* @return {module:Ntnx/ObjectStoreProjection} The populated <code>ObjectStoreProjection</code> instance.
|
|
100
75
|
*/
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
76
|
+
static constructFromObject(data, obj = null, callFromChild = false) {
|
|
77
|
+
let items, item, i, itemArr, discriminator;
|
|
78
|
+
if (data) {
|
|
79
|
+
obj = obj || new ObjectStoreProjection();
|
|
80
|
+
_ObjectStore.default.constructFromObject(data, obj, true);
|
|
81
|
+
if (data.hasOwnProperty('certificateProjection') && data.certificateProjection !== null && data.certificateProjection !== undefined) {
|
|
82
|
+
itemArr = [];
|
|
83
|
+
items = data.certificateProjection;
|
|
84
|
+
for (i = 0; i < items.length; i++) {
|
|
85
|
+
item = _CertificateProjection.default.constructFromObject(items[i], undefined);
|
|
86
|
+
itemArr.push(item);
|
|
87
|
+
}
|
|
88
|
+
obj.setCertificateProjection(itemArr);
|
|
89
|
+
}
|
|
90
|
+
if (!callFromChild) {
|
|
91
|
+
obj.$unknownFields = {
|
|
92
|
+
...data.$unknownFields
|
|
93
|
+
};
|
|
94
|
+
for (const property in data) {
|
|
95
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
96
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
97
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
98
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
99
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
100
|
+
obj.$unknownFields[property] = data[property];
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
110
104
|
}
|
|
105
|
+
return obj;
|
|
106
|
+
}
|
|
111
107
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
108
|
+
/**
|
|
109
|
+
* Converts a given snake_case string to camelCase.
|
|
110
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
111
|
+
* @returns {string} - The converted string in camelCase format.
|
|
112
|
+
*/
|
|
113
|
+
static snakeToCamel(snakeStr) {
|
|
114
|
+
return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @return {CertificateProjection[]}
|
|
119
|
+
*/
|
|
120
|
+
getCertificateProjection() {
|
|
121
|
+
return this.certificateProjection;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @param {CertificateProjection[]} certificateProjection
|
|
126
|
+
*/
|
|
127
|
+
setCertificateProjection(certificateProjection) {
|
|
128
|
+
this.certificateProjection = certificateProjection;
|
|
129
|
+
}
|
|
130
|
+
toJson(forMutation) {
|
|
131
|
+
if (forMutation === false) {
|
|
132
|
+
return {
|
|
133
|
+
...(typeof this.getCertificateProjection() !== 'undefined' && this.getCertificateProjection() !== null ? {
|
|
134
|
+
'certificateProjection': this.getCertificateProjection().map(item => item.toJson(false))
|
|
135
|
+
} : {}),
|
|
136
|
+
...(typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {
|
|
129
137
|
'metadata': this.getMetadata().toJson(false)
|
|
130
|
-
} : {}),
|
|
138
|
+
} : {}),
|
|
139
|
+
...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
131
140
|
'name': this.getName()
|
|
132
|
-
} : {}),
|
|
141
|
+
} : {}),
|
|
142
|
+
...(typeof this.getCreationTime() !== 'undefined' && this.getCreationTime() !== null ? {
|
|
133
143
|
'creationTime': _assertClassBrand(_ObjectStoreProjection_brand, this, _handleDateType).call(this, this.getCreationTime(), false)
|
|
134
|
-
} : {}),
|
|
144
|
+
} : {}),
|
|
145
|
+
...(typeof this.getLastUpdateTime() !== 'undefined' && this.getLastUpdateTime() !== null ? {
|
|
135
146
|
'lastUpdateTime': _assertClassBrand(_ObjectStoreProjection_brand, this, _handleDateType).call(this, this.getLastUpdateTime(), false)
|
|
136
|
-
} : {}),
|
|
147
|
+
} : {}),
|
|
148
|
+
...(typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
|
|
137
149
|
'description': this.getDescription()
|
|
138
|
-
} : {}),
|
|
150
|
+
} : {}),
|
|
151
|
+
...(typeof this.getDeploymentVersion() !== 'undefined' && this.getDeploymentVersion() !== null ? {
|
|
139
152
|
'deploymentVersion': this.getDeploymentVersion()
|
|
140
|
-
} : {}),
|
|
153
|
+
} : {}),
|
|
154
|
+
...(typeof this.getDomain() !== 'undefined' && this.getDomain() !== null ? {
|
|
141
155
|
'domain': this.getDomain()
|
|
142
|
-
} : {}),
|
|
156
|
+
} : {}),
|
|
157
|
+
...(typeof this.getRegion() !== 'undefined' && this.getRegion() !== null ? {
|
|
143
158
|
'region': this.getRegion()
|
|
144
|
-
} : {}),
|
|
159
|
+
} : {}),
|
|
160
|
+
...(typeof this.getNumWorkerNodes() !== 'undefined' && this.getNumWorkerNodes() !== null ? {
|
|
145
161
|
'numWorkerNodes': this.getNumWorkerNodes()
|
|
146
|
-
} : {}),
|
|
162
|
+
} : {}),
|
|
163
|
+
...(typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {
|
|
147
164
|
'clusterExtId': this.getClusterExtId()
|
|
148
|
-
} : {}),
|
|
165
|
+
} : {}),
|
|
166
|
+
...(typeof this.getStorageNetworkReference() !== 'undefined' && this.getStorageNetworkReference() !== null ? {
|
|
149
167
|
'storageNetworkReference': this.getStorageNetworkReference()
|
|
150
|
-
} : {}),
|
|
168
|
+
} : {}),
|
|
169
|
+
...(typeof this.getStorageNetworkVip() !== 'undefined' && this.getStorageNetworkVip() !== null ? {
|
|
151
170
|
'storageNetworkVip': this.getStorageNetworkVip().toJson(false)
|
|
152
|
-
} : {}),
|
|
171
|
+
} : {}),
|
|
172
|
+
...(typeof this.getStorageNetworkDnsIp() !== 'undefined' && this.getStorageNetworkDnsIp() !== null ? {
|
|
153
173
|
'storageNetworkDnsIp': this.getStorageNetworkDnsIp().toJson(false)
|
|
154
|
-
} : {}),
|
|
174
|
+
} : {}),
|
|
175
|
+
...(typeof this.getPublicNetworkReference() !== 'undefined' && this.getPublicNetworkReference() !== null ? {
|
|
155
176
|
'publicNetworkReference': this.getPublicNetworkReference()
|
|
156
|
-
} : {}),
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
177
|
+
} : {}),
|
|
178
|
+
...(typeof this.getPublicNetworkIps() !== 'undefined' && this.getPublicNetworkIps() !== null ? {
|
|
179
|
+
'publicNetworkIps': this.getPublicNetworkIps().map(item => item.toJson(false))
|
|
180
|
+
} : {}),
|
|
181
|
+
...(typeof this.getTotalCapacityGiB() !== 'undefined' && this.getTotalCapacityGiB() !== null ? {
|
|
161
182
|
'totalCapacityGiB': this.getTotalCapacityGiB()
|
|
162
|
-
} : {}),
|
|
183
|
+
} : {}),
|
|
184
|
+
...(typeof this.getState() !== 'undefined' && this.getState() !== null ? {
|
|
163
185
|
'state': this.getState()
|
|
164
|
-
} : {}),
|
|
186
|
+
} : {}),
|
|
187
|
+
...(typeof this.getCertificateExtIds() !== 'undefined' && this.getCertificateExtIds() !== null ? {
|
|
165
188
|
'certificateExtIds': this.getCertificateExtIds()
|
|
166
|
-
} : {}),
|
|
189
|
+
} : {}),
|
|
190
|
+
...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
167
191
|
'extId': this.getExtId()
|
|
168
|
-
} : {}),
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
192
|
+
} : {}),
|
|
193
|
+
...(typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
194
|
+
'links': this.getLinks().map(item => item.toJson(false))
|
|
195
|
+
} : {}),
|
|
196
|
+
...(typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
173
197
|
'tenantId': this.getTenantId()
|
|
174
|
-
} : {}),
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
} : {}),
|
|
198
|
+
} : {}),
|
|
199
|
+
'$reserved': this.get$Reserved(),
|
|
200
|
+
'$objectType': this.get$ObjectType(),
|
|
201
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
202
|
+
'$unknownFields': {}
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
return {
|
|
206
|
+
...(typeof this.getCertificateProjection() !== 'undefined' && this.getCertificateProjection() !== null ? {
|
|
207
|
+
'certificateProjection': this.getCertificateProjection().map(item => item.toJson(false))
|
|
208
|
+
} : {}),
|
|
209
|
+
...(typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {
|
|
185
210
|
'metadata': this.getMetadata().toJson(false)
|
|
186
|
-
} : {}),
|
|
211
|
+
} : {}),
|
|
212
|
+
...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
187
213
|
'name': this.getName()
|
|
188
|
-
} : {}),
|
|
214
|
+
} : {}),
|
|
215
|
+
...(typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
|
|
189
216
|
'description': this.getDescription()
|
|
190
|
-
} : {}),
|
|
217
|
+
} : {}),
|
|
218
|
+
...(typeof this.getDeploymentVersion() !== 'undefined' && this.getDeploymentVersion() !== null ? {
|
|
191
219
|
'deploymentVersion': this.getDeploymentVersion()
|
|
192
|
-
} : {}),
|
|
220
|
+
} : {}),
|
|
221
|
+
...(typeof this.getDomain() !== 'undefined' && this.getDomain() !== null ? {
|
|
193
222
|
'domain': this.getDomain()
|
|
194
|
-
} : {}),
|
|
223
|
+
} : {}),
|
|
224
|
+
...(typeof this.getRegion() !== 'undefined' && this.getRegion() !== null ? {
|
|
195
225
|
'region': this.getRegion()
|
|
196
|
-
} : {}),
|
|
226
|
+
} : {}),
|
|
227
|
+
...(typeof this.getNumWorkerNodes() !== 'undefined' && this.getNumWorkerNodes() !== null ? {
|
|
197
228
|
'numWorkerNodes': this.getNumWorkerNodes()
|
|
198
|
-
} : {}),
|
|
229
|
+
} : {}),
|
|
230
|
+
...(typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {
|
|
199
231
|
'clusterExtId': this.getClusterExtId()
|
|
200
|
-
} : {}),
|
|
232
|
+
} : {}),
|
|
233
|
+
...(typeof this.getStorageNetworkReference() !== 'undefined' && this.getStorageNetworkReference() !== null ? {
|
|
201
234
|
'storageNetworkReference': this.getStorageNetworkReference()
|
|
202
|
-
} : {}),
|
|
235
|
+
} : {}),
|
|
236
|
+
...(typeof this.getStorageNetworkVip() !== 'undefined' && this.getStorageNetworkVip() !== null ? {
|
|
203
237
|
'storageNetworkVip': this.getStorageNetworkVip().toJson(false)
|
|
204
|
-
} : {}),
|
|
238
|
+
} : {}),
|
|
239
|
+
...(typeof this.getStorageNetworkDnsIp() !== 'undefined' && this.getStorageNetworkDnsIp() !== null ? {
|
|
205
240
|
'storageNetworkDnsIp': this.getStorageNetworkDnsIp().toJson(false)
|
|
206
|
-
} : {}),
|
|
241
|
+
} : {}),
|
|
242
|
+
...(typeof this.getPublicNetworkReference() !== 'undefined' && this.getPublicNetworkReference() !== null ? {
|
|
207
243
|
'publicNetworkReference': this.getPublicNetworkReference()
|
|
208
|
-
} : {}),
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
244
|
+
} : {}),
|
|
245
|
+
...(typeof this.getPublicNetworkIps() !== 'undefined' && this.getPublicNetworkIps() !== null ? {
|
|
246
|
+
'publicNetworkIps': this.getPublicNetworkIps().map(item => item.toJson(false))
|
|
247
|
+
} : {}),
|
|
248
|
+
...(typeof this.getTotalCapacityGiB() !== 'undefined' && this.getTotalCapacityGiB() !== null ? {
|
|
213
249
|
'totalCapacityGiB': this.getTotalCapacityGiB()
|
|
214
|
-
} : {}),
|
|
250
|
+
} : {}),
|
|
251
|
+
...(typeof this.getState() !== 'undefined' && this.getState() !== null ? {
|
|
215
252
|
'state': this.getState()
|
|
216
|
-
} : {}),
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}
|
|
253
|
+
} : {}),
|
|
254
|
+
'$reserved': this.get$Reserved(),
|
|
255
|
+
'$objectType': this.get$ObjectType(),
|
|
256
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
257
|
+
'$unknownFields': {}
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
validate(scope, properties) {
|
|
261
|
+
let propList = [];
|
|
262
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
|
|
263
|
+
//cases validate() and validate(scope)
|
|
264
|
+
propList = ["name"];
|
|
265
|
+
} else if (arguments.length === 1) {
|
|
266
|
+
//case validate(properties)
|
|
267
|
+
propList = arguments[0];
|
|
268
|
+
scope = null;
|
|
269
|
+
} else {
|
|
270
|
+
//case validate(scope, properties)
|
|
271
|
+
propList = arguments[1];
|
|
221
272
|
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
//cases validate() and validate(scope)
|
|
229
|
-
propList = ["name"];
|
|
230
|
-
} else if (arguments.length === 1) {
|
|
231
|
-
//case validate(properties)
|
|
232
|
-
propList = arguments[0];
|
|
233
|
-
scope = null;
|
|
234
|
-
} else {
|
|
235
|
-
//case validate(scope, properties)
|
|
236
|
-
propList = arguments[1];
|
|
273
|
+
let res = [];
|
|
274
|
+
let err = null;
|
|
275
|
+
propList.forEach(property => {
|
|
276
|
+
err = this.validateProperty(property, scope);
|
|
277
|
+
if (err) {
|
|
278
|
+
res.push(err);
|
|
237
279
|
}
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
err
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
}
|
|
245
|
-
});
|
|
246
|
-
return new Promise(function (resolve, reject) {
|
|
247
|
-
if (res.length !== 0) {
|
|
248
|
-
reject(err);
|
|
249
|
-
} else {
|
|
250
|
-
resolve();
|
|
251
|
-
}
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
}, {
|
|
255
|
-
key: "validateProperty",
|
|
256
|
-
value: function validateProperty(scope, property) {
|
|
257
|
-
if (property === "certificateProjection") {
|
|
258
|
-
if (typeof this.certificateProjection === 'undefined' || this.certificateProjection === null) {
|
|
259
|
-
return new _ValidationError["default"]("certificateProjection", "undefined or null");
|
|
260
|
-
}
|
|
280
|
+
});
|
|
281
|
+
return new Promise(function (resolve, reject) {
|
|
282
|
+
if (res.length !== 0) {
|
|
283
|
+
reject(err);
|
|
284
|
+
} else {
|
|
285
|
+
resolve();
|
|
261
286
|
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
269
|
-
var items, item, i, itemArr, discriminator;
|
|
270
|
-
if (data) {
|
|
271
|
-
obj = obj || new ObjectStoreProjection();
|
|
272
|
-
_ObjectStore2["default"].constructFromObject(data, obj, true);
|
|
273
|
-
if (data.hasOwnProperty('certificateProjection') && data.certificateProjection !== null && data.certificateProjection !== undefined) {
|
|
274
|
-
itemArr = [];
|
|
275
|
-
items = data.certificateProjection;
|
|
276
|
-
for (i = 0; i < items.length; i++) {
|
|
277
|
-
item = _CertificateProjection["default"].constructFromObject(items[i], undefined);
|
|
278
|
-
itemArr.push(item);
|
|
279
|
-
}
|
|
280
|
-
obj.setCertificateProjection(itemArr);
|
|
281
|
-
}
|
|
282
|
-
if (!callFromChild) {
|
|
283
|
-
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
284
|
-
for (var property in data) {
|
|
285
|
-
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
286
|
-
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
287
|
-
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
288
|
-
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
289
|
-
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
290
|
-
obj.$unknownFields[property] = data[property];
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
}
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
validateProperty(scope, property) {
|
|
290
|
+
if (property === "certificateProjection") {
|
|
291
|
+
if (typeof this.certificateProjection === 'undefined' || this.certificateProjection === null) {
|
|
292
|
+
return new _ValidationError.default("certificateProjection", "undefined or null");
|
|
294
293
|
}
|
|
295
|
-
return obj;
|
|
296
294
|
}
|
|
295
|
+
return new _ValidationError.default(property, "no such property exists");
|
|
296
|
+
}
|
|
297
|
+
}
|
|
297
298
|
|
|
298
|
-
/**
|
|
299
|
-
* Converts a given snake_case string to camelCase.
|
|
300
|
-
* @param {string} snakeStr - The input string in snake_case format.
|
|
301
|
-
* @returns {string} - The converted string in camelCase format.
|
|
302
|
-
*/
|
|
303
|
-
}, {
|
|
304
|
-
key: "snakeToCamel",
|
|
305
|
-
value: function snakeToCamel(snakeStr) {
|
|
306
|
-
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
307
|
-
return match[1].toUpperCase();
|
|
308
|
-
});
|
|
309
|
-
}
|
|
310
|
-
}]);
|
|
311
|
-
}(_ObjectStore2["default"]);
|
|
312
299
|
/**
|
|
313
300
|
* @memberof ObjectStoreProjection
|
|
314
301
|
*/
|
|
302
|
+
exports.default = ObjectStoreProjection;
|
|
315
303
|
function _toJsonMapType(obj, forMutation) {
|
|
316
304
|
if (obj instanceof Map) {
|
|
317
|
-
return Object.fromEntries(Array.from(obj,
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
v = _ref2[1];
|
|
321
|
-
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
322
|
-
}));
|
|
323
|
-
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
324
|
-
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
305
|
+
return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
|
|
306
|
+
} else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
|
|
307
|
+
return Object.fromEntries(Array.from(Object.entries(obj), entry => {
|
|
325
308
|
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
326
309
|
}));
|
|
327
310
|
}
|
|
@@ -344,101 +327,101 @@ ObjectStoreProjection.prototype.certificateProjection = undefined;
|
|
|
344
327
|
/**
|
|
345
328
|
* @memberof ObjectStoreProjection
|
|
346
329
|
*/
|
|
347
|
-
|
|
330
|
+
_ObjectStore.default.prototype.metadata = undefined;
|
|
348
331
|
/**
|
|
349
332
|
* The name of the Object store.
|
|
350
333
|
* @memberof ObjectStoreProjection
|
|
351
334
|
*/
|
|
352
|
-
|
|
335
|
+
_ObjectStore.default.prototype.name = undefined;
|
|
353
336
|
/**
|
|
354
337
|
* The time when the Object store was created.
|
|
355
338
|
* @memberof ObjectStoreProjection
|
|
356
339
|
*/
|
|
357
|
-
|
|
340
|
+
_ObjectStore.default.prototype.creationTime = undefined;
|
|
358
341
|
/**
|
|
359
342
|
* The time when the Object store was last updated.
|
|
360
343
|
* @memberof ObjectStoreProjection
|
|
361
344
|
*/
|
|
362
|
-
|
|
345
|
+
_ObjectStore.default.prototype.lastUpdateTime = undefined;
|
|
363
346
|
/**
|
|
364
347
|
* A brief description of the Object store.
|
|
365
348
|
* @memberof ObjectStoreProjection
|
|
366
349
|
*/
|
|
367
|
-
|
|
350
|
+
_ObjectStore.default.prototype.description = undefined;
|
|
368
351
|
/**
|
|
369
352
|
* Object store deployment version.
|
|
370
353
|
* @memberof ObjectStoreProjection
|
|
371
354
|
*/
|
|
372
|
-
|
|
355
|
+
_ObjectStore.default.prototype.deploymentVersion = undefined;
|
|
373
356
|
/**
|
|
374
357
|
* The DNS domain/subdomain the Object store belongs to. All the Object stores under one Prism Central must have the same domain name. The domain name must consist of at least 2 parts separated by a '.'. Each part can contain upper and lower case letters, digits, hyphens, or underscores. Each part can be up to 63 characters long. The domain must begin and end with an alphanumeric character. For example - 'objects-0.pc_nutanix.com'.
|
|
375
358
|
* @memberof ObjectStoreProjection
|
|
376
359
|
*/
|
|
377
|
-
|
|
360
|
+
_ObjectStore.default.prototype.domain = undefined;
|
|
378
361
|
/**
|
|
379
362
|
* The region in which the Object store is deployed.
|
|
380
363
|
* @memberof ObjectStoreProjection
|
|
381
364
|
*/
|
|
382
|
-
|
|
365
|
+
_ObjectStore.default.prototype.region = undefined;
|
|
383
366
|
/**
|
|
384
367
|
* The number of worker nodes (VMs) to be created for the Object store. Each worker node requires 10 vCPUs and 32 GiB of memory.
|
|
385
368
|
* @memberof ObjectStoreProjection
|
|
386
369
|
*/
|
|
387
|
-
|
|
370
|
+
_ObjectStore.default.prototype.numWorkerNodes = undefined;
|
|
388
371
|
/**
|
|
389
372
|
* UUID of the AHV or ESXi cluster.
|
|
390
373
|
* @memberof ObjectStoreProjection
|
|
391
374
|
*/
|
|
392
|
-
|
|
375
|
+
_ObjectStore.default.prototype.clusterExtId = undefined;
|
|
393
376
|
/**
|
|
394
377
|
* Reference to the Storage Network of the Object store. This is the subnet UUID for an AHV cluster or the IPAM name for an ESXi cluster.
|
|
395
378
|
* @memberof ObjectStoreProjection
|
|
396
379
|
*/
|
|
397
|
-
|
|
380
|
+
_ObjectStore.default.prototype.storageNetworkReference = undefined;
|
|
398
381
|
/**
|
|
399
382
|
* @memberof ObjectStoreProjection
|
|
400
383
|
*/
|
|
401
|
-
|
|
384
|
+
_ObjectStore.default.prototype.storageNetworkVip = undefined;
|
|
402
385
|
/**
|
|
403
386
|
* @memberof ObjectStoreProjection
|
|
404
387
|
*/
|
|
405
|
-
|
|
388
|
+
_ObjectStore.default.prototype.storageNetworkDnsIp = undefined;
|
|
406
389
|
/**
|
|
407
390
|
* Public network reference of the Object store. This is the subnet UUID for an AHV cluster or the IPAM name for an ESXi cluster.
|
|
408
391
|
* @memberof ObjectStoreProjection
|
|
409
392
|
*/
|
|
410
|
-
|
|
393
|
+
_ObjectStore.default.prototype.publicNetworkReference = undefined;
|
|
411
394
|
/**
|
|
412
395
|
* A list of static IP addresses used as public IPs to access the Object store.
|
|
413
396
|
* @memberof ObjectStoreProjection
|
|
414
397
|
*/
|
|
415
|
-
|
|
398
|
+
_ObjectStore.default.prototype.publicNetworkIps = undefined;
|
|
416
399
|
/**
|
|
417
400
|
* Size of the Object store in GiB.
|
|
418
401
|
* @memberof ObjectStoreProjection
|
|
419
402
|
*/
|
|
420
|
-
|
|
403
|
+
_ObjectStore.default.prototype.totalCapacityGiB = undefined;
|
|
421
404
|
/**
|
|
422
405
|
* @memberof ObjectStoreProjection
|
|
423
406
|
*/
|
|
424
|
-
|
|
407
|
+
_ObjectStore.default.prototype.state = undefined;
|
|
425
408
|
/**
|
|
426
409
|
* A list of the UUIDs of the certificates of an Object store.
|
|
427
410
|
* @memberof ObjectStoreProjection
|
|
428
411
|
*/
|
|
429
|
-
|
|
412
|
+
_ObjectStore.default.prototype.certificateExtIds = undefined;
|
|
430
413
|
/**
|
|
431
414
|
* A globally unique identifier of an instance that is suitable for external consumption.
|
|
432
415
|
* @memberof ObjectStoreProjection
|
|
433
416
|
*/
|
|
434
|
-
_ExternalizableAbstractModel
|
|
417
|
+
_ExternalizableAbstractModel.default.prototype.extId = undefined;
|
|
435
418
|
/**
|
|
436
419
|
* 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.
|
|
437
420
|
* @memberof ObjectStoreProjection
|
|
438
421
|
*/
|
|
439
|
-
_ExternalizableAbstractModel
|
|
422
|
+
_ExternalizableAbstractModel.default.prototype.links = undefined;
|
|
440
423
|
/**
|
|
441
|
-
* 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
|
|
424
|
+
* 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).
|
|
442
425
|
* @memberof ObjectStoreProjection
|
|
443
426
|
*/
|
|
444
|
-
_TenantAwareModel
|
|
427
|
+
_TenantAwareModel.default.prototype.tenantId = undefined;
|