@nutanix-scratch/objects-js-client 4.0.1-alpha.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/LICENSE.txt +49 -0
- package/README.md +200 -0
- package/dist/Ntnx-Objects-js-client-prod.js +1 -0
- package/dist/Ntnx-Objects-js-client.js +729 -0
- package/dist/es/ApiClient.d.ts +159 -0
- package/dist/es/ApiClient.js +1211 -0
- package/dist/es/Paginable.d.ts +95 -0
- package/dist/es/Paginable.js +287 -0
- package/dist/es/apis/objectstores-endpoints.d.ts +231 -0
- package/dist/es/apis/objectstores-endpoints.js +522 -0
- package/dist/es/index.d.ts +64 -0
- package/dist/es/index.js +252 -0
- package/dist/es/models/common/v1/config/FQDN.d.ts +48 -0
- package/dist/es/models/common/v1/config/FQDN.js +242 -0
- package/dist/es/models/common/v1/config/Flag.d.ts +58 -0
- package/dist/es/models/common/v1/config/Flag.js +275 -0
- package/dist/es/models/common/v1/config/IPAddress.d.ts +61 -0
- package/dist/es/models/common/v1/config/IPAddress.js +291 -0
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +62 -0
- package/dist/es/models/common/v1/config/IPv4Address.js +288 -0
- package/dist/es/models/common/v1/config/IPv6Address.d.ts +62 -0
- package/dist/es/models/common/v1/config/IPv6Address.js +288 -0
- package/dist/es/models/common/v1/config/KVPair.d.ts +62 -0
- package/dist/es/models/common/v1/config/KVPair.js +332 -0
- package/dist/es/models/common/v1/config/Message.d.ts +84 -0
- package/dist/es/models/common/v1/config/Message.js +354 -0
- package/dist/es/models/common/v1/config/MessageSeverity.d.ts +19 -0
- package/dist/es/models/common/v1/config/MessageSeverity.js +91 -0
- package/dist/es/models/common/v1/config/Metadata.d.ts +98 -0
- package/dist/es/models/common/v1/config/Metadata.js +411 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +50 -0
- package/dist/es/models/common/v1/config/TenantAwareModel.js +243 -0
- package/dist/es/models/common/v1/response/ApiLink.d.ts +62 -0
- package/dist/es/models/common/v1/response/ApiLink.js +280 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +98 -0
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +438 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +42 -0
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +270 -0
- package/dist/es/models/objects/v4/error/AppMessage.d.ts +108 -0
- package/dist/es/models/objects/v4/error/AppMessage.js +432 -0
- package/dist/es/models/objects/v4/error/ErrorResponse.d.ts +48 -0
- package/dist/es/models/objects/v4/error/ErrorResponse.js +288 -0
- package/dist/es/models/objects/v4/error/SchemaValidationError.d.ts +98 -0
- package/dist/es/models/objects/v4/error/SchemaValidationError.js +407 -0
- package/dist/es/models/objects/v4/error/SchemaValidationErrorMessage.d.ts +74 -0
- package/dist/es/models/objects/v4/error/SchemaValidationErrorMessage.js +318 -0
- package/dist/es/models/objects/v4/operations/Certificate.d.ts +78 -0
- package/dist/es/models/objects/v4/operations/Certificate.js +411 -0
- package/dist/es/models/objects/v4/operations/CertificateApiResponse.d.ts +59 -0
- package/dist/es/models/objects/v4/operations/CertificateApiResponse.js +311 -0
- package/dist/es/models/objects/v4/operations/CertificateListApiResponse.d.ts +59 -0
- package/dist/es/models/objects/v4/operations/CertificateListApiResponse.js +338 -0
- package/dist/es/models/objects/v4/operations/CertificateProjection.d.ts +9 -0
- package/dist/es/models/objects/v4/operations/CertificateProjection.js +131 -0
- package/dist/es/models/objects/v4/operations/Objectstore.d.ts +242 -0
- package/dist/es/models/objects/v4/operations/Objectstore.js +945 -0
- package/dist/es/models/objects/v4/operations/ObjectstoreApiResponse.d.ts +59 -0
- package/dist/es/models/objects/v4/operations/ObjectstoreApiResponse.js +311 -0
- package/dist/es/models/objects/v4/operations/ObjectstoreListApiResponse.d.ts +59 -0
- package/dist/es/models/objects/v4/operations/ObjectstoreListApiResponse.js +338 -0
- package/dist/es/models/objects/v4/operations/ObjectstoreProjection.d.ts +50 -0
- package/dist/es/models/objects/v4/operations/ObjectstoreProjection.js +298 -0
- package/dist/es/models/objects/v4/operations/StateEnum.d.ts +19 -0
- package/dist/es/models/objects/v4/operations/StateEnum.js +145 -0
- package/dist/es/models/objects/v4/operations/TaskReferenceApiResponse.d.ts +59 -0
- package/dist/es/models/objects/v4/operations/TaskReferenceApiResponse.js +311 -0
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +50 -0
- package/dist/es/models/prism/v4/config/TaskReference.js +247 -0
- package/dist/es/models/validation/ValidationError.d.ts +13 -0
- package/dist/es/models/validation/ValidationError.js +60 -0
- package/dist/es/models/validation/ValidationScopes.d.ts +9 -0
- package/dist/es/models/validation/ValidationScopes.js +38 -0
- package/dist/es/utils/ValidationUtils.d.ts +13 -0
- package/dist/es/utils/ValidationUtils.js +85 -0
- package/dist/lib/ApiClient.d.ts +159 -0
- package/dist/lib/ApiClient.js +1211 -0
- package/dist/lib/Paginable.d.ts +95 -0
- package/dist/lib/Paginable.js +287 -0
- package/dist/lib/apis/objectstores-endpoints.d.ts +231 -0
- package/dist/lib/apis/objectstores-endpoints.js +522 -0
- package/dist/lib/index.d.ts +64 -0
- package/dist/lib/index.js +252 -0
- package/dist/lib/models/common/v1/config/FQDN.d.ts +48 -0
- package/dist/lib/models/common/v1/config/FQDN.js +242 -0
- package/dist/lib/models/common/v1/config/Flag.d.ts +58 -0
- package/dist/lib/models/common/v1/config/Flag.js +275 -0
- package/dist/lib/models/common/v1/config/IPAddress.d.ts +61 -0
- package/dist/lib/models/common/v1/config/IPAddress.js +291 -0
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +62 -0
- package/dist/lib/models/common/v1/config/IPv4Address.js +288 -0
- package/dist/lib/models/common/v1/config/IPv6Address.d.ts +62 -0
- package/dist/lib/models/common/v1/config/IPv6Address.js +288 -0
- package/dist/lib/models/common/v1/config/KVPair.d.ts +62 -0
- package/dist/lib/models/common/v1/config/KVPair.js +332 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +84 -0
- package/dist/lib/models/common/v1/config/Message.js +354 -0
- package/dist/lib/models/common/v1/config/MessageSeverity.d.ts +19 -0
- package/dist/lib/models/common/v1/config/MessageSeverity.js +91 -0
- package/dist/lib/models/common/v1/config/Metadata.d.ts +98 -0
- package/dist/lib/models/common/v1/config/Metadata.js +411 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +50 -0
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +243 -0
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +62 -0
- package/dist/lib/models/common/v1/response/ApiLink.js +280 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +98 -0
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +438 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +42 -0
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +270 -0
- package/dist/lib/models/objects/v4/error/AppMessage.d.ts +108 -0
- package/dist/lib/models/objects/v4/error/AppMessage.js +432 -0
- package/dist/lib/models/objects/v4/error/ErrorResponse.d.ts +48 -0
- package/dist/lib/models/objects/v4/error/ErrorResponse.js +288 -0
- package/dist/lib/models/objects/v4/error/SchemaValidationError.d.ts +98 -0
- package/dist/lib/models/objects/v4/error/SchemaValidationError.js +407 -0
- package/dist/lib/models/objects/v4/error/SchemaValidationErrorMessage.d.ts +74 -0
- package/dist/lib/models/objects/v4/error/SchemaValidationErrorMessage.js +318 -0
- package/dist/lib/models/objects/v4/operations/Certificate.d.ts +78 -0
- package/dist/lib/models/objects/v4/operations/Certificate.js +411 -0
- package/dist/lib/models/objects/v4/operations/CertificateApiResponse.d.ts +59 -0
- package/dist/lib/models/objects/v4/operations/CertificateApiResponse.js +311 -0
- package/dist/lib/models/objects/v4/operations/CertificateListApiResponse.d.ts +59 -0
- package/dist/lib/models/objects/v4/operations/CertificateListApiResponse.js +338 -0
- package/dist/lib/models/objects/v4/operations/CertificateProjection.d.ts +9 -0
- package/dist/lib/models/objects/v4/operations/CertificateProjection.js +131 -0
- package/dist/lib/models/objects/v4/operations/Objectstore.d.ts +242 -0
- package/dist/lib/models/objects/v4/operations/Objectstore.js +945 -0
- package/dist/lib/models/objects/v4/operations/ObjectstoreApiResponse.d.ts +59 -0
- package/dist/lib/models/objects/v4/operations/ObjectstoreApiResponse.js +311 -0
- package/dist/lib/models/objects/v4/operations/ObjectstoreListApiResponse.d.ts +59 -0
- package/dist/lib/models/objects/v4/operations/ObjectstoreListApiResponse.js +338 -0
- package/dist/lib/models/objects/v4/operations/ObjectstoreProjection.d.ts +50 -0
- package/dist/lib/models/objects/v4/operations/ObjectstoreProjection.js +298 -0
- package/dist/lib/models/objects/v4/operations/StateEnum.d.ts +19 -0
- package/dist/lib/models/objects/v4/operations/StateEnum.js +145 -0
- package/dist/lib/models/objects/v4/operations/TaskReferenceApiResponse.d.ts +59 -0
- package/dist/lib/models/objects/v4/operations/TaskReferenceApiResponse.js +311 -0
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +50 -0
- package/dist/lib/models/prism/v4/config/TaskReference.js +247 -0
- package/dist/lib/models/validation/ValidationError.d.ts +13 -0
- package/dist/lib/models/validation/ValidationError.js +60 -0
- package/dist/lib/models/validation/ValidationScopes.d.ts +9 -0
- package/dist/lib/models/validation/ValidationScopes.js +38 -0
- package/dist/lib/utils/ValidationUtils.d.ts +13 -0
- package/dist/lib/utils/ValidationUtils.js +85 -0
- package/package.json +53 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _IPAddress = _interopRequireDefault(require("../../../common/v1/config/IPAddress"));
|
|
8
|
+
var _Metadata = _interopRequireDefault(require("../../../common/v1/config/Metadata"));
|
|
9
|
+
var _CertificateProjection = _interopRequireDefault(require("./CertificateProjection"));
|
|
10
|
+
var _Objectstore2 = _interopRequireDefault(require("./Objectstore"));
|
|
11
|
+
var _StateEnum = _interopRequireDefault(require("./StateEnum"));
|
|
12
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
13
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
14
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
16
|
+
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); }
|
|
17
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
18
|
+
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."); }
|
|
19
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
20
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
21
|
+
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; } }
|
|
22
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
23
|
+
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; }
|
|
24
|
+
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; }
|
|
25
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
26
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
27
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
28
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
29
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
30
|
+
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); }
|
|
31
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
32
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
33
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
34
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
35
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
36
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
37
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
38
|
+
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
|
39
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } /*
|
|
40
|
+
* Nutanix Objects Storage Management APIs
|
|
41
|
+
*
|
|
42
|
+
* OpenAPI spec version: 4.0.1-alpha-2
|
|
43
|
+
*
|
|
44
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
45
|
+
*
|
|
46
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
47
|
+
*
|
|
48
|
+
* Do not edit the class manually.
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* The ObjectstoreProjection model module.
|
|
53
|
+
* @module Ntnx/ObjectstoreProjection
|
|
54
|
+
* @version 4.0.1-alpha-2
|
|
55
|
+
* @class ObjectstoreProjection
|
|
56
|
+
*
|
|
57
|
+
* @param { String } name The name of the Object store.
|
|
58
|
+
*/
|
|
59
|
+
var _ObjectstoreProjection_brand = /*#__PURE__*/new WeakSet();
|
|
60
|
+
var ObjectstoreProjection = exports["default"] = /*#__PURE__*/function (_Objectstore) {
|
|
61
|
+
/**
|
|
62
|
+
* Constructs a new <code>ObjectstoreProjection</code>.
|
|
63
|
+
* @alias module:Ntnx/ObjectstoreProjection
|
|
64
|
+
* @extends module:Ntnx/Objectstore
|
|
65
|
+
*
|
|
66
|
+
* @param { String } name The name of the Object store.
|
|
67
|
+
*/
|
|
68
|
+
function ObjectstoreProjection(name) {
|
|
69
|
+
var _this;
|
|
70
|
+
_classCallCheck(this, ObjectstoreProjection);
|
|
71
|
+
_this = _callSuper(this, ObjectstoreProjection, [name]);
|
|
72
|
+
/*
|
|
73
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
74
|
+
* @param {Object} obj
|
|
75
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
76
|
+
* Otherwise, just returns the input object.
|
|
77
|
+
*/
|
|
78
|
+
_classPrivateMethodInitSpec(_this, _ObjectstoreProjection_brand);
|
|
79
|
+
_this.$objectType = "objects.v4.operations.ObjectstoreProjection";
|
|
80
|
+
_this.$reserved = {
|
|
81
|
+
'$fv': "v4.r0.a2"
|
|
82
|
+
};
|
|
83
|
+
_this.$unknownFields = {};
|
|
84
|
+
return _this;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Constructs a <code>ObjectstoreProjection</code> from a plain JavaScript object, optionally creating a new instance.
|
|
89
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
90
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
91
|
+
* @param {module:Ntnx/ObjectstoreProjection} obj Optional instance to populate.
|
|
92
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
93
|
+
* @return {module:Ntnx/ObjectstoreProjection} The populated <code>ObjectstoreProjection</code> instance.
|
|
94
|
+
*/
|
|
95
|
+
_inherits(ObjectstoreProjection, _Objectstore);
|
|
96
|
+
return _createClass(ObjectstoreProjection, [{
|
|
97
|
+
key: "getCertificateProjection",
|
|
98
|
+
value:
|
|
99
|
+
/**
|
|
100
|
+
* @return {}
|
|
101
|
+
*/
|
|
102
|
+
function getCertificateProjection() {
|
|
103
|
+
return this.certificateProjection;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @param {} certificateProjection
|
|
108
|
+
*/
|
|
109
|
+
}, {
|
|
110
|
+
key: "setCertificateProjection",
|
|
111
|
+
value: function setCertificateProjection(certificateProjection) {
|
|
112
|
+
this.certificateProjection = certificateProjection;
|
|
113
|
+
}
|
|
114
|
+
}, {
|
|
115
|
+
key: "toJson",
|
|
116
|
+
value: function toJson(forMutation) {
|
|
117
|
+
if (forMutation === false) {
|
|
118
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getCertificateProjection() !== 'undefined' && this.getCertificateProjection() !== null ? {
|
|
119
|
+
'certificateProjection': this.getCertificateProjection().toJson(false)
|
|
120
|
+
} : {}), typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {
|
|
121
|
+
'metadata': this.getMetadata().toJson(false)
|
|
122
|
+
} : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
123
|
+
'name': this.getName()
|
|
124
|
+
} : {}), typeof this.getCreationTime() !== 'undefined' && this.getCreationTime() !== null ? {
|
|
125
|
+
'creationTime': this.getCreationTime()
|
|
126
|
+
} : {}), typeof this.getLastUpdateTime() !== 'undefined' && this.getLastUpdateTime() !== null ? {
|
|
127
|
+
'lastUpdateTime': this.getLastUpdateTime()
|
|
128
|
+
} : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
|
|
129
|
+
'description': this.getDescription()
|
|
130
|
+
} : {}), typeof this.getDeploymentVersion() !== 'undefined' && this.getDeploymentVersion() !== null ? {
|
|
131
|
+
'deploymentVersion': this.getDeploymentVersion()
|
|
132
|
+
} : {}), typeof this.getDomain() !== 'undefined' && this.getDomain() !== null ? {
|
|
133
|
+
'domain': this.getDomain()
|
|
134
|
+
} : {}), typeof this.getRegion() !== 'undefined' && this.getRegion() !== null ? {
|
|
135
|
+
'region': this.getRegion()
|
|
136
|
+
} : {}), typeof this.getNumWorkerNodes() !== 'undefined' && this.getNumWorkerNodes() !== null ? {
|
|
137
|
+
'numWorkerNodes': this.getNumWorkerNodes()
|
|
138
|
+
} : {}), typeof this.getClusterReference() !== 'undefined' && this.getClusterReference() !== null ? {
|
|
139
|
+
'clusterReference': this.getClusterReference()
|
|
140
|
+
} : {}), typeof this.getStorageNetworkReference() !== 'undefined' && this.getStorageNetworkReference() !== null ? {
|
|
141
|
+
'storageNetworkReference': this.getStorageNetworkReference()
|
|
142
|
+
} : {}), typeof this.getStorageNetworkVip() !== 'undefined' && this.getStorageNetworkVip() !== null ? {
|
|
143
|
+
'storageNetworkVip': this.getStorageNetworkVip().toJson(false)
|
|
144
|
+
} : {}), typeof this.getStorageNetworkDnsIp() !== 'undefined' && this.getStorageNetworkDnsIp() !== null ? {
|
|
145
|
+
'storageNetworkDnsIp': this.getStorageNetworkDnsIp().toJson(false)
|
|
146
|
+
} : {}), typeof this.getPublicNetworkReference() !== 'undefined' && this.getPublicNetworkReference() !== null ? {
|
|
147
|
+
'publicNetworkReference': this.getPublicNetworkReference()
|
|
148
|
+
} : {}), typeof this.getPublicNetworkIps() !== 'undefined' && this.getPublicNetworkIps() !== null ? {
|
|
149
|
+
'publicNetworkIps': this.getPublicNetworkIps().map(function (item) {
|
|
150
|
+
return item.toJson(false);
|
|
151
|
+
})
|
|
152
|
+
} : {}), typeof this.getTotalCapacityGiB() !== 'undefined' && this.getTotalCapacityGiB() !== null ? {
|
|
153
|
+
'totalCapacityGiB': this.getTotalCapacityGiB()
|
|
154
|
+
} : {}), typeof this.getState() !== 'undefined' && this.getState() !== null ? {
|
|
155
|
+
'state': this.getState()
|
|
156
|
+
} : {}), typeof this.getCertificateReference() !== 'undefined' && this.getCertificateReference() !== null ? {
|
|
157
|
+
'certificateReference': this.getCertificateReference()
|
|
158
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
159
|
+
'extId': this.getExtId()
|
|
160
|
+
} : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
161
|
+
'links': this.getLinks().map(function (item) {
|
|
162
|
+
return item.toJson(false);
|
|
163
|
+
})
|
|
164
|
+
} : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
165
|
+
'tenantId': this.getTenantId()
|
|
166
|
+
} : {}), {}, {
|
|
167
|
+
'$reserved': this.get$Reserved(),
|
|
168
|
+
'$objectType': this.get$ObjectType(),
|
|
169
|
+
'$unknownFields': this.get$UnknownFields()
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getCertificateProjection() !== 'undefined' && this.getCertificateProjection() !== null ? {
|
|
173
|
+
'certificateProjection': this.getCertificateProjection().toJson(false)
|
|
174
|
+
} : {}), typeof this.getMetadata() !== 'undefined' && this.getMetadata() !== null ? {
|
|
175
|
+
'metadata': this.getMetadata().toJson(false)
|
|
176
|
+
} : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
177
|
+
'name': this.getName()
|
|
178
|
+
} : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
|
|
179
|
+
'description': this.getDescription()
|
|
180
|
+
} : {}), typeof this.getDeploymentVersion() !== 'undefined' && this.getDeploymentVersion() !== null ? {
|
|
181
|
+
'deploymentVersion': this.getDeploymentVersion()
|
|
182
|
+
} : {}), typeof this.getDomain() !== 'undefined' && this.getDomain() !== null ? {
|
|
183
|
+
'domain': this.getDomain()
|
|
184
|
+
} : {}), typeof this.getRegion() !== 'undefined' && this.getRegion() !== null ? {
|
|
185
|
+
'region': this.getRegion()
|
|
186
|
+
} : {}), typeof this.getNumWorkerNodes() !== 'undefined' && this.getNumWorkerNodes() !== null ? {
|
|
187
|
+
'numWorkerNodes': this.getNumWorkerNodes()
|
|
188
|
+
} : {}), typeof this.getClusterReference() !== 'undefined' && this.getClusterReference() !== null ? {
|
|
189
|
+
'clusterReference': this.getClusterReference()
|
|
190
|
+
} : {}), typeof this.getStorageNetworkReference() !== 'undefined' && this.getStorageNetworkReference() !== null ? {
|
|
191
|
+
'storageNetworkReference': this.getStorageNetworkReference()
|
|
192
|
+
} : {}), typeof this.getStorageNetworkVip() !== 'undefined' && this.getStorageNetworkVip() !== null ? {
|
|
193
|
+
'storageNetworkVip': this.getStorageNetworkVip().toJson(false)
|
|
194
|
+
} : {}), typeof this.getStorageNetworkDnsIp() !== 'undefined' && this.getStorageNetworkDnsIp() !== null ? {
|
|
195
|
+
'storageNetworkDnsIp': this.getStorageNetworkDnsIp().toJson(false)
|
|
196
|
+
} : {}), typeof this.getPublicNetworkReference() !== 'undefined' && this.getPublicNetworkReference() !== null ? {
|
|
197
|
+
'publicNetworkReference': this.getPublicNetworkReference()
|
|
198
|
+
} : {}), typeof this.getPublicNetworkIps() !== 'undefined' && this.getPublicNetworkIps() !== null ? {
|
|
199
|
+
'publicNetworkIps': this.getPublicNetworkIps().map(function (item) {
|
|
200
|
+
return item.toJson(false);
|
|
201
|
+
})
|
|
202
|
+
} : {}), typeof this.getTotalCapacityGiB() !== 'undefined' && this.getTotalCapacityGiB() !== null ? {
|
|
203
|
+
'totalCapacityGiB': this.getTotalCapacityGiB()
|
|
204
|
+
} : {}), typeof this.getState() !== 'undefined' && this.getState() !== null ? {
|
|
205
|
+
'state': this.getState()
|
|
206
|
+
} : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
207
|
+
'extId': this.getExtId()
|
|
208
|
+
} : {}), {}, {
|
|
209
|
+
'$reserved': this.get$Reserved(),
|
|
210
|
+
'$objectType': this.get$ObjectType(),
|
|
211
|
+
'$unknownFields': this.get$UnknownFields()
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
}, {
|
|
215
|
+
key: "validate",
|
|
216
|
+
value: function validate(scope, properties) {
|
|
217
|
+
var _this2 = this;
|
|
218
|
+
var propList = [];
|
|
219
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
|
|
220
|
+
//cases validate() and validate(scope)
|
|
221
|
+
propList = ["name"];
|
|
222
|
+
} else if (arguments.length === 1) {
|
|
223
|
+
//case validate(properties)
|
|
224
|
+
propList = arguments[0];
|
|
225
|
+
scope = null;
|
|
226
|
+
} else {
|
|
227
|
+
//case validate(scope, properties)
|
|
228
|
+
propList = arguments[1];
|
|
229
|
+
}
|
|
230
|
+
var res = [];
|
|
231
|
+
var err = null;
|
|
232
|
+
propList.forEach(function (property) {
|
|
233
|
+
err = _this2.validateProperty(property, scope);
|
|
234
|
+
if (err) {
|
|
235
|
+
res.push(err);
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
return new Promise(function (resolve, reject) {
|
|
239
|
+
if (res.length !== 0) {
|
|
240
|
+
reject(err);
|
|
241
|
+
} else {
|
|
242
|
+
resolve();
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
}, {
|
|
247
|
+
key: "validateProperty",
|
|
248
|
+
value: function validateProperty(scope, property) {
|
|
249
|
+
if (property === "certificateProjection") {
|
|
250
|
+
if (typeof this.certificateProjection === 'undefined' || this.certificateProjection === null) {
|
|
251
|
+
return new _ValidationError["default"]("certificateProjection", "undefined or null");
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
return new _ValidationError["default"](property, "no such property exists");
|
|
255
|
+
}
|
|
256
|
+
}], [{
|
|
257
|
+
key: "constructFromObject",
|
|
258
|
+
value: function constructFromObject(data, obj) {
|
|
259
|
+
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
260
|
+
var items, item, i, itemArr, discriminator;
|
|
261
|
+
if (data) {
|
|
262
|
+
obj = obj || new ObjectstoreProjection();
|
|
263
|
+
_Objectstore2["default"].constructFromObject(data, obj, true);
|
|
264
|
+
if (data.hasOwnProperty('certificateProjection') && data.certificateProjection !== null && data.certificateProjection !== undefined) {
|
|
265
|
+
obj.setCertificateProjection(_CertificateProjection["default"].constructFromObject(data['certificateProjection']));
|
|
266
|
+
}
|
|
267
|
+
if (!callFromChild) {
|
|
268
|
+
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
269
|
+
for (var property in data) {
|
|
270
|
+
if (!Object.keys(obj).includes(property) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
271
|
+
obj.$unknownFields[property] = data[property];
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
return obj;
|
|
277
|
+
}
|
|
278
|
+
}]);
|
|
279
|
+
}(_Objectstore2["default"]);
|
|
280
|
+
/**
|
|
281
|
+
* @memberof ObjectstoreProjection
|
|
282
|
+
*/
|
|
283
|
+
function _toJsonMapType(obj, forMutation) {
|
|
284
|
+
if (obj instanceof Map) {
|
|
285
|
+
return Object.fromEntries(Array.from(obj, function (_ref) {
|
|
286
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
287
|
+
k = _ref2[0],
|
|
288
|
+
v = _ref2[1];
|
|
289
|
+
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
290
|
+
}));
|
|
291
|
+
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
292
|
+
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
293
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
294
|
+
}));
|
|
295
|
+
}
|
|
296
|
+
return obj;
|
|
297
|
+
}
|
|
298
|
+
ObjectstoreProjection.prototype.certificateProjection = undefined;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default StateEnum;
|
|
2
|
+
/**
|
|
3
|
+
* *
|
|
4
|
+
*/
|
|
5
|
+
type StateEnum = string;
|
|
6
|
+
declare namespace StateEnum {
|
|
7
|
+
/**
|
|
8
|
+
* Returns a <code>StateEnum</code> enum value from a JavaScript object name.
|
|
9
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
10
|
+
* @return {StateEnum} The enum <code>StateEnum</code> value.
|
|
11
|
+
*/
|
|
12
|
+
function constructFromObject(obj: any): string;
|
|
13
|
+
/**
|
|
14
|
+
* Validates <code>StateEnum</code> enum value.
|
|
15
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
16
|
+
* @return {null} Throws error for invalid value.
|
|
17
|
+
*/
|
|
18
|
+
function validate(obj: any): null;
|
|
19
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
8
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
9
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
/*
|
|
12
|
+
* Nutanix Objects Storage Management APIs
|
|
13
|
+
*
|
|
14
|
+
* OpenAPI spec version: 4.0.1-alpha-2
|
|
15
|
+
*
|
|
16
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
17
|
+
*
|
|
18
|
+
* Open API Dev Platform Codegen version: 16.8.0.7344-RELEASE
|
|
19
|
+
*
|
|
20
|
+
* Do not edit the class manually.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Enum class StateEnum.
|
|
26
|
+
* @enum {string}
|
|
27
|
+
* @readonly
|
|
28
|
+
*/
|
|
29
|
+
var StateEnum = {
|
|
30
|
+
/**
|
|
31
|
+
* value: "$UNKNOWN"
|
|
32
|
+
* @const
|
|
33
|
+
*/
|
|
34
|
+
$UNKNOWN: "$UNKNOWN",
|
|
35
|
+
/**
|
|
36
|
+
* value: "$REDACTED"
|
|
37
|
+
* @const
|
|
38
|
+
*/
|
|
39
|
+
$REDACTED: "$REDACTED",
|
|
40
|
+
/**
|
|
41
|
+
* The Object store deployment has failed.
|
|
42
|
+
* @const
|
|
43
|
+
*/
|
|
44
|
+
OBJECT_STORE_DEPLOYMENT_ERROR: "OBJECT_STORE_DEPLOYMENT_ERROR",
|
|
45
|
+
/**
|
|
46
|
+
* Creating the Object store certificate has failed.
|
|
47
|
+
* @const
|
|
48
|
+
*/
|
|
49
|
+
OBJECT_STORE_CREATE_CERT_ERROR: "OBJECT_STORE_CREATE_CERT_ERROR",
|
|
50
|
+
/**
|
|
51
|
+
* There was an error deleting the Object store.
|
|
52
|
+
* @const
|
|
53
|
+
*/
|
|
54
|
+
OBJECT_STORE_DELETE_ERROR: "OBJECT_STORE_DELETE_ERROR",
|
|
55
|
+
/**
|
|
56
|
+
* There was an error deleting the undeployed Object store.
|
|
57
|
+
* @const
|
|
58
|
+
*/
|
|
59
|
+
OBJECT_STORE_DELETE_INPUT_ERROR: "OBJECT_STORE_DELETE_INPUT_ERROR",
|
|
60
|
+
/**
|
|
61
|
+
* The Object store is not deployed.
|
|
62
|
+
* @const
|
|
63
|
+
*/
|
|
64
|
+
OBJECT_STORE_INPUT: "OBJECT_STORE_INPUT",
|
|
65
|
+
/**
|
|
66
|
+
* The Object store is being deployed.
|
|
67
|
+
* @const
|
|
68
|
+
*/
|
|
69
|
+
OBJECT_STORE_DEPLOYING: "OBJECT_STORE_DEPLOYING",
|
|
70
|
+
/**
|
|
71
|
+
* A certificate is being created for the Object store.
|
|
72
|
+
* @const
|
|
73
|
+
*/
|
|
74
|
+
OBJECT_STORE_CREATING_CERT: "OBJECT_STORE_CREATING_CERT",
|
|
75
|
+
/**
|
|
76
|
+
* A deployed Object store is being deleted.
|
|
77
|
+
* @const
|
|
78
|
+
*/
|
|
79
|
+
OBJECT_STORE_DELETING: "OBJECT_STORE_DELETING",
|
|
80
|
+
/**
|
|
81
|
+
* An undeployed Object store is being deleted.
|
|
82
|
+
* @const
|
|
83
|
+
*/
|
|
84
|
+
OBJECT_STORE_DELETING_INPUT: "OBJECT_STORE_DELETING_INPUT",
|
|
85
|
+
/**
|
|
86
|
+
* There are no ongoing operations on the deployed Object store.
|
|
87
|
+
* @const
|
|
88
|
+
*/
|
|
89
|
+
OBJECT_STORE_AVAILABLE: "OBJECT_STORE_AVAILABLE",
|
|
90
|
+
/**
|
|
91
|
+
* There is an ongoing operation on the Object store.
|
|
92
|
+
* @const
|
|
93
|
+
*/
|
|
94
|
+
OBJECT_STORE_OPERATION_PENDING: "OBJECT_STORE_OPERATION_PENDING",
|
|
95
|
+
/**
|
|
96
|
+
* There was an error while performing an operation on the Object store.
|
|
97
|
+
* @const
|
|
98
|
+
*/
|
|
99
|
+
OBJECT_STORE_OPERATION_ERROR: "OBJECT_STORE_OPERATION_ERROR"
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Returns a <code>StateEnum</code> enum value from a JavaScript object name.
|
|
104
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
105
|
+
* @return {StateEnum} The enum <code>StateEnum</code> value.
|
|
106
|
+
*/
|
|
107
|
+
StateEnum.constructFromObject = function (obj) {
|
|
108
|
+
if (typeof obj === 'string' || obj instanceof String) {
|
|
109
|
+
var enumVal = Object.keys(StateEnum).find(function (key) {
|
|
110
|
+
return StateEnum[key] === obj;
|
|
111
|
+
});
|
|
112
|
+
return enumVal === undefined || enumVal === null ? StateEnum.$UNKNOWN : StateEnum[enumVal];
|
|
113
|
+
} else {
|
|
114
|
+
throw new Error("Received object name is not an instance of String");
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Validates <code>StateEnum</code> enum value.
|
|
120
|
+
* @param {Object} obj The plain JavaScript object containing the name of the enum value.
|
|
121
|
+
* @return {null} Throws error for invalid value.
|
|
122
|
+
*/
|
|
123
|
+
StateEnum.validate = function (obj) {
|
|
124
|
+
switch (obj) {
|
|
125
|
+
case StateEnum.$UNKNOWN:
|
|
126
|
+
case StateEnum.$REDACTED:
|
|
127
|
+
case StateEnum.OBJECT_STORE_DEPLOYMENT_ERROR:
|
|
128
|
+
case StateEnum.OBJECT_STORE_CREATE_CERT_ERROR:
|
|
129
|
+
case StateEnum.OBJECT_STORE_DELETE_ERROR:
|
|
130
|
+
case StateEnum.OBJECT_STORE_DELETE_INPUT_ERROR:
|
|
131
|
+
case StateEnum.OBJECT_STORE_INPUT:
|
|
132
|
+
case StateEnum.OBJECT_STORE_DEPLOYING:
|
|
133
|
+
case StateEnum.OBJECT_STORE_CREATING_CERT:
|
|
134
|
+
case StateEnum.OBJECT_STORE_DELETING:
|
|
135
|
+
case StateEnum.OBJECT_STORE_DELETING_INPUT:
|
|
136
|
+
case StateEnum.OBJECT_STORE_AVAILABLE:
|
|
137
|
+
case StateEnum.OBJECT_STORE_OPERATION_PENDING:
|
|
138
|
+
case StateEnum.OBJECT_STORE_OPERATION_ERROR:
|
|
139
|
+
return;
|
|
140
|
+
default:
|
|
141
|
+
throw new Error("Invalid : must be StateEnum.{ $UNKNOWN|$REDACTED|OBJECT_STORE_DEPLOYMENT_ERROR|OBJECT_STORE_CREATE_CERT_ERROR|OBJECT_STORE_DELETE_ERROR|OBJECT_STORE_DELETE_INPUT_ERROR|OBJECT_STORE_INPUT|OBJECT_STORE_DEPLOYING|OBJECT_STORE_CREATING_CERT|OBJECT_STORE_DELETING|OBJECT_STORE_DELETING_INPUT|OBJECT_STORE_AVAILABLE|OBJECT_STORE_OPERATION_PENDING|OBJECT_STORE_OPERATION_ERROR }");
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
Object.freeze(StateEnum);
|
|
145
|
+
var _default = exports["default"] = StateEnum;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The TaskReferenceApiResponse model module.
|
|
3
|
+
* @module Ntnx/TaskReferenceApiResponse
|
|
4
|
+
* @version 4.0.1-alpha-2
|
|
5
|
+
* @class TaskReferenceApiResponse
|
|
6
|
+
*/
|
|
7
|
+
export default class TaskReferenceApiResponse extends Paginable {
|
|
8
|
+
/**
|
|
9
|
+
* Constructs a <code>TaskReferenceApiResponse</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/TaskReferenceApiResponse} obj Optional instance to populate.
|
|
13
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
14
|
+
* @return {module:Ntnx/TaskReferenceApiResponse} The populated <code>TaskReferenceApiResponse</code> instance.
|
|
15
|
+
*/
|
|
16
|
+
static constructFromObject(data: any, obj: any, callFromChild?: boolean): any;
|
|
17
|
+
$objectType: string;
|
|
18
|
+
$reserved: {
|
|
19
|
+
$fv: string;
|
|
20
|
+
};
|
|
21
|
+
$unknownFields: {};
|
|
22
|
+
/**
|
|
23
|
+
* @return {}
|
|
24
|
+
*/
|
|
25
|
+
getMetadata(): any;
|
|
26
|
+
/**
|
|
27
|
+
* @param {} metadata
|
|
28
|
+
*/
|
|
29
|
+
setMetadata(metadata: any): void;
|
|
30
|
+
metadata: any;
|
|
31
|
+
/**
|
|
32
|
+
* @return {}
|
|
33
|
+
*/
|
|
34
|
+
getData(): any;
|
|
35
|
+
/**
|
|
36
|
+
* @param {} data
|
|
37
|
+
*/
|
|
38
|
+
setData(data: any): void;
|
|
39
|
+
data: any;
|
|
40
|
+
get$Reserved(): {
|
|
41
|
+
$fv: string;
|
|
42
|
+
};
|
|
43
|
+
get$ObjectType(): string;
|
|
44
|
+
get$UnknownFields(): {};
|
|
45
|
+
toJson(forMutation: any): {
|
|
46
|
+
$reserved: {
|
|
47
|
+
$fv: string;
|
|
48
|
+
};
|
|
49
|
+
$objectType: string;
|
|
50
|
+
$unknownFields: {};
|
|
51
|
+
data?: any;
|
|
52
|
+
metadata?: any;
|
|
53
|
+
};
|
|
54
|
+
validate(scope: any, properties: any, ...args: any[]): Promise<any>;
|
|
55
|
+
validateProperty(scope: any, property: any): ValidationError;
|
|
56
|
+
#private;
|
|
57
|
+
}
|
|
58
|
+
import Paginable from "../../../../Paginable";
|
|
59
|
+
import ValidationError from "../../../validation/ValidationError";
|