@nutanix-scratch/objects-js-client 4.0.1-alpha.2 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +202 -49
- package/README.md +39 -27
- package/dist/Ntnx-Objects-js-client-prod.js +1 -1
- package/dist/Ntnx-Objects-js-client.js +227 -96
- package/dist/es/ApiClient.d.ts +8 -1
- package/dist/es/ApiClient.js +249 -189
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +9 -9
- package/dist/es/apis/objectstores-endpoints.d.ts +66 -95
- package/dist/es/apis/objectstores-endpoints.js +205 -170
- package/dist/es/apis/stats-endpoints.d.ts +69 -0
- package/dist/es/apis/stats-endpoints.js +154 -0
- package/dist/es/index.d.ts +43 -21
- package/dist/es/index.js +135 -47
- package/dist/es/models/common/v1/config/FQDN.d.ts +24 -20
- package/dist/es/models/common/v1/config/FQDN.js +56 -21
- package/dist/es/models/common/v1/config/Flag.d.ts +32 -26
- package/dist/es/models/common/v1/config/Flag.js +65 -21
- package/dist/es/models/common/v1/config/IPAddress.d.ts +42 -26
- package/dist/es/models/common/v1/config/IPAddress.js +53 -21
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +40 -26
- package/dist/es/models/common/v1/config/IPv4Address.js +64 -23
- package/dist/es/models/common/v1/config/IPv6Address.d.ts +40 -26
- package/dist/es/models/common/v1/config/IPv6Address.js +64 -23
- package/dist/es/models/common/v1/config/KVPair.d.ts +35 -26
- package/dist/es/models/common/v1/config/KVPair.js +70 -24
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/es/models/common/v1/config/Message.d.ts +41 -38
- package/dist/es/models/common/v1/config/Message.js +57 -25
- package/dist/es/models/common/v1/config/MessageSeverity.js +7 -7
- package/dist/es/models/common/v1/config/Metadata.d.ts +46 -44
- package/dist/es/models/common/v1/config/Metadata.js +65 -27
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +22 -20
- package/dist/es/models/common/v1/config/TenantAwareModel.js +51 -19
- package/dist/es/models/common/v1/response/ApiLink.d.ts +28 -26
- package/dist/es/models/common/v1/response/ApiLink.js +53 -21
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +71 -27
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +71 -31
- package/dist/es/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
- package/dist/es/models/common/v1/stats/DownSamplingOperator.js +109 -0
- package/dist/es/models/common/v1/stats/TimeIntValuePair.d.ts +64 -0
- package/dist/es/models/common/v1/stats/TimeIntValuePair.js +313 -0
- package/dist/es/models/objects/v4/config/Certificate.d.ts +146 -0
- package/dist/es/models/objects/v4/{operations → config}/Certificate.js +184 -43
- package/dist/es/models/objects/v4/{operations → config}/CertificateProjection.d.ts +2 -1
- package/dist/{lib/models/objects/v4/operations → es/models/objects/v4/config}/CertificateProjection.js +41 -17
- package/dist/es/models/objects/v4/config/CreateCertificateApiResponse.d.ts +101 -0
- package/dist/es/models/objects/v4/config/CreateCertificateApiResponse.js +343 -0
- package/dist/es/models/objects/v4/config/CreateObjectstoreApiResponse.d.ts +99 -0
- package/dist/{lib/models/objects/v4/operations/TaskReferenceApiResponse.js → es/models/objects/v4/config/CreateObjectstoreApiResponse.js} +86 -54
- package/dist/es/models/objects/v4/config/DeleteObjectstoreApiResponse.d.ts +99 -0
- package/dist/es/models/objects/v4/config/DeleteObjectstoreApiResponse.js +343 -0
- package/dist/es/models/objects/v4/config/GetCaApiResponse.d.ts +98 -0
- package/dist/es/models/objects/v4/{operations/TaskReferenceApiResponse.js → config/GetCaApiResponse.js} +88 -57
- package/dist/es/models/objects/v4/config/GetCertificateApiResponse.d.ts +99 -0
- package/dist/es/models/objects/v4/{operations/CertificateApiResponse.js → config/GetCertificateApiResponse.js} +88 -56
- package/dist/es/models/objects/v4/config/GetObjectstoreApiResponse.d.ts +101 -0
- package/dist/{lib/models/objects/v4/operations/ObjectstoreApiResponse.js → es/models/objects/v4/config/GetObjectstoreApiResponse.js} +89 -57
- package/dist/es/models/objects/v4/config/ListCertificatesApiResponse.d.ts +100 -0
- package/dist/es/models/objects/v4/{operations/CertificateListApiResponse.js → config/ListCertificatesApiResponse.js} +89 -57
- package/dist/es/models/objects/v4/config/ListObjectstoresApiResponse.d.ts +100 -0
- package/dist/es/models/objects/v4/{operations/ObjectstoreListApiResponse.js → config/ListObjectstoresApiResponse.js} +92 -60
- package/dist/es/models/objects/v4/config/ObjectStore.d.ts +313 -0
- package/dist/es/models/objects/v4/{operations/Objectstore.js → config/ObjectStore.js} +213 -157
- package/dist/es/models/objects/v4/config/ObjectStoreProjection.d.ts +174 -0
- package/dist/{lib/models/objects/v4/operations/ObjectstoreProjection.js → es/models/objects/v4/config/ObjectStoreProjection.js} +211 -65
- package/dist/es/models/objects/v4/{operations/StateEnum.d.ts → config/State.d.ts} +6 -6
- package/dist/es/models/objects/v4/config/State.js +133 -0
- package/dist/es/models/objects/v4/config/UpdateObjectstoreApiResponse.d.ts +99 -0
- package/dist/es/models/objects/v4/config/UpdateObjectstoreApiResponse.js +343 -0
- package/dist/es/models/objects/v4/error/AppMessage.d.ts +57 -48
- package/dist/es/models/objects/v4/error/AppMessage.js +61 -29
- package/dist/es/models/objects/v4/error/ErrorResponse.d.ts +23 -19
- package/dist/es/models/objects/v4/error/ErrorResponse.js +62 -25
- package/dist/es/models/objects/v4/error/SchemaValidationError.d.ts +53 -43
- package/dist/es/models/objects/v4/error/SchemaValidationError.js +62 -29
- package/dist/es/models/objects/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
- package/dist/es/models/objects/v4/error/SchemaValidationErrorMessage.js +55 -23
- package/dist/es/models/objects/v4/stats/GetObjectstoreStatsApiResponse.d.ts +99 -0
- package/dist/es/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js +343 -0
- package/dist/es/models/objects/v4/stats/ObjectstoreStats.d.ts +423 -0
- package/dist/es/models/objects/v4/stats/ObjectstoreStats.js +1425 -0
- package/dist/es/models/objects/v4/stats/TimeFloatValuePair.d.ts +64 -0
- package/dist/es/models/objects/v4/stats/TimeFloatValuePair.js +313 -0
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +22 -20
- package/dist/es/models/prism/v4/config/TaskReference.js +55 -20
- package/dist/es/models/validation/ValidationError.js +5 -5
- package/dist/es/utils/ValidationUtils.js +5 -5
- package/dist/lib/ApiClient.d.ts +8 -1
- package/dist/lib/ApiClient.js +249 -189
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +9 -9
- package/dist/lib/apis/objectstores-endpoints.d.ts +66 -95
- package/dist/lib/apis/objectstores-endpoints.js +205 -170
- package/dist/lib/apis/stats-endpoints.d.ts +69 -0
- package/dist/lib/apis/stats-endpoints.js +154 -0
- package/dist/lib/index.d.ts +43 -21
- package/dist/lib/index.js +135 -47
- package/dist/lib/models/common/v1/config/FQDN.d.ts +24 -20
- package/dist/lib/models/common/v1/config/FQDN.js +56 -21
- package/dist/lib/models/common/v1/config/Flag.d.ts +32 -26
- package/dist/lib/models/common/v1/config/Flag.js +65 -21
- package/dist/lib/models/common/v1/config/IPAddress.d.ts +42 -26
- package/dist/lib/models/common/v1/config/IPAddress.js +53 -21
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +40 -26
- package/dist/lib/models/common/v1/config/IPv4Address.js +64 -23
- package/dist/lib/models/common/v1/config/IPv6Address.d.ts +40 -26
- package/dist/lib/models/common/v1/config/IPv6Address.js +64 -23
- package/dist/lib/models/common/v1/config/KVPair.d.ts +35 -26
- package/dist/lib/models/common/v1/config/KVPair.js +70 -24
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +41 -38
- package/dist/lib/models/common/v1/config/Message.js +57 -25
- package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -7
- package/dist/lib/models/common/v1/config/Metadata.d.ts +46 -44
- package/dist/lib/models/common/v1/config/Metadata.js +65 -27
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +22 -20
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +51 -19
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +28 -26
- package/dist/lib/models/common/v1/response/ApiLink.js +53 -21
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +71 -27
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +71 -31
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +109 -0
- package/dist/lib/models/common/v1/stats/TimeIntValuePair.d.ts +64 -0
- package/dist/lib/models/common/v1/stats/TimeIntValuePair.js +313 -0
- package/dist/lib/models/objects/v4/config/Certificate.d.ts +146 -0
- package/dist/lib/models/objects/v4/{operations → config}/Certificate.js +184 -43
- package/dist/lib/models/objects/v4/{operations → config}/CertificateProjection.d.ts +2 -1
- package/dist/{es/models/objects/v4/operations → lib/models/objects/v4/config}/CertificateProjection.js +41 -17
- package/dist/lib/models/objects/v4/config/CreateCertificateApiResponse.d.ts +101 -0
- package/dist/lib/models/objects/v4/config/CreateCertificateApiResponse.js +343 -0
- package/dist/lib/models/objects/v4/config/CreateObjectstoreApiResponse.d.ts +99 -0
- package/dist/lib/models/objects/v4/config/CreateObjectstoreApiResponse.js +343 -0
- package/dist/lib/models/objects/v4/config/DeleteObjectstoreApiResponse.d.ts +99 -0
- package/dist/lib/models/objects/v4/config/DeleteObjectstoreApiResponse.js +343 -0
- package/dist/lib/models/objects/v4/config/GetCaApiResponse.d.ts +98 -0
- package/dist/lib/models/objects/v4/{operations/CertificateApiResponse.js → config/GetCaApiResponse.js} +88 -57
- package/dist/lib/models/objects/v4/config/GetCertificateApiResponse.d.ts +99 -0
- package/dist/lib/models/objects/v4/config/GetCertificateApiResponse.js +343 -0
- package/dist/lib/models/objects/v4/config/GetObjectstoreApiResponse.d.ts +101 -0
- package/dist/{es/models/objects/v4/operations/ObjectstoreApiResponse.js → lib/models/objects/v4/config/GetObjectstoreApiResponse.js} +89 -57
- package/dist/lib/models/objects/v4/config/ListCertificatesApiResponse.d.ts +100 -0
- package/dist/lib/models/objects/v4/{operations/CertificateListApiResponse.js → config/ListCertificatesApiResponse.js} +89 -57
- package/dist/lib/models/objects/v4/config/ListObjectstoresApiResponse.d.ts +100 -0
- package/dist/lib/models/objects/v4/{operations/ObjectstoreListApiResponse.js → config/ListObjectstoresApiResponse.js} +92 -60
- package/dist/lib/models/objects/v4/config/ObjectStore.d.ts +313 -0
- package/dist/lib/models/objects/v4/{operations/Objectstore.js → config/ObjectStore.js} +213 -157
- package/dist/lib/models/objects/v4/config/ObjectStoreProjection.d.ts +174 -0
- package/dist/{es/models/objects/v4/operations/ObjectstoreProjection.js → lib/models/objects/v4/config/ObjectStoreProjection.js} +211 -65
- package/dist/lib/models/objects/v4/{operations/StateEnum.d.ts → config/State.d.ts} +6 -6
- package/dist/lib/models/objects/v4/config/State.js +133 -0
- package/dist/lib/models/objects/v4/config/UpdateObjectstoreApiResponse.d.ts +99 -0
- package/dist/lib/models/objects/v4/config/UpdateObjectstoreApiResponse.js +343 -0
- package/dist/lib/models/objects/v4/error/AppMessage.d.ts +57 -48
- package/dist/lib/models/objects/v4/error/AppMessage.js +61 -29
- package/dist/lib/models/objects/v4/error/ErrorResponse.d.ts +23 -19
- package/dist/lib/models/objects/v4/error/ErrorResponse.js +62 -25
- package/dist/lib/models/objects/v4/error/SchemaValidationError.d.ts +53 -43
- package/dist/lib/models/objects/v4/error/SchemaValidationError.js +62 -29
- package/dist/lib/models/objects/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
- package/dist/lib/models/objects/v4/error/SchemaValidationErrorMessage.js +55 -23
- package/dist/lib/models/objects/v4/stats/GetObjectstoreStatsApiResponse.d.ts +99 -0
- package/dist/lib/models/objects/v4/stats/GetObjectstoreStatsApiResponse.js +343 -0
- package/dist/lib/models/objects/v4/stats/ObjectstoreStats.d.ts +423 -0
- package/dist/lib/models/objects/v4/stats/ObjectstoreStats.js +1425 -0
- package/dist/lib/models/objects/v4/stats/TimeFloatValuePair.d.ts +64 -0
- package/dist/lib/models/objects/v4/stats/TimeFloatValuePair.js +313 -0
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +22 -20
- package/dist/lib/models/prism/v4/config/TaskReference.js +55 -20
- package/dist/lib/models/validation/ValidationError.js +5 -5
- package/dist/lib/utils/ValidationUtils.js +5 -5
- package/package.json +1 -1
- package/dist/es/models/objects/v4/operations/Certificate.d.ts +0 -78
- package/dist/es/models/objects/v4/operations/CertificateApiResponse.d.ts +0 -59
- package/dist/es/models/objects/v4/operations/CertificateListApiResponse.d.ts +0 -59
- package/dist/es/models/objects/v4/operations/Objectstore.d.ts +0 -242
- package/dist/es/models/objects/v4/operations/ObjectstoreApiResponse.d.ts +0 -59
- package/dist/es/models/objects/v4/operations/ObjectstoreListApiResponse.d.ts +0 -59
- package/dist/es/models/objects/v4/operations/ObjectstoreProjection.d.ts +0 -50
- package/dist/es/models/objects/v4/operations/StateEnum.js +0 -145
- package/dist/es/models/objects/v4/operations/TaskReferenceApiResponse.d.ts +0 -59
- package/dist/lib/models/objects/v4/operations/Certificate.d.ts +0 -78
- package/dist/lib/models/objects/v4/operations/CertificateApiResponse.d.ts +0 -59
- package/dist/lib/models/objects/v4/operations/CertificateListApiResponse.d.ts +0 -59
- package/dist/lib/models/objects/v4/operations/Objectstore.d.ts +0 -242
- package/dist/lib/models/objects/v4/operations/ObjectstoreApiResponse.d.ts +0 -59
- package/dist/lib/models/objects/v4/operations/ObjectstoreListApiResponse.d.ts +0 -59
- package/dist/lib/models/objects/v4/operations/ObjectstoreProjection.d.ts +0 -50
- package/dist/lib/models/objects/v4/operations/StateEnum.js +0 -145
- package/dist/lib/models/objects/v4/operations/TaskReferenceApiResponse.d.ts +0 -59
|
@@ -6,43 +6,45 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.ObjectStoresApi = void 0;
|
|
8
8
|
var _ApiClient = require("../ApiClient");
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
|
|
9
|
+
var _GetCertificateApiResponse = _interopRequireDefault(require("../models/objects/v4/config/GetCertificateApiResponse"));
|
|
10
|
+
var _ObjectStore = _interopRequireDefault(require("../models/objects/v4/config/ObjectStore"));
|
|
11
|
+
var _CreateObjectstoreApiResponse = _interopRequireDefault(require("../models/objects/v4/config/CreateObjectstoreApiResponse"));
|
|
12
|
+
var _ListCertificatesApiResponse = _interopRequireDefault(require("../models/objects/v4/config/ListCertificatesApiResponse"));
|
|
13
|
+
var _DeleteObjectstoreApiResponse = _interopRequireDefault(require("../models/objects/v4/config/DeleteObjectstoreApiResponse"));
|
|
14
|
+
var _UpdateObjectstoreApiResponse = _interopRequireDefault(require("../models/objects/v4/config/UpdateObjectstoreApiResponse"));
|
|
15
|
+
var _GetObjectstoreApiResponse = _interopRequireDefault(require("../models/objects/v4/config/GetObjectstoreApiResponse"));
|
|
16
|
+
var _CreateCertificateApiResponse = _interopRequireDefault(require("../models/objects/v4/config/CreateCertificateApiResponse"));
|
|
17
|
+
var _GetCaApiResponse = _interopRequireDefault(require("../models/objects/v4/config/GetCaApiResponse"));
|
|
18
|
+
var _ListObjectstoresApiResponse = _interopRequireDefault(require("../models/objects/v4/config/ListObjectstoresApiResponse"));
|
|
19
|
+
var _path2 = _interopRequireDefault(require("path"));
|
|
20
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
19
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; }
|
|
20
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; }
|
|
21
|
-
function _defineProperty(
|
|
22
|
-
function _classCallCheck(
|
|
23
|
-
function _defineProperties(
|
|
24
|
-
function _createClass(
|
|
23
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
24
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
25
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
26
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
25
27
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
26
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); }
|
|
27
|
-
function _classPrivateFieldInitSpec(
|
|
28
|
-
function _checkPrivateRedeclaration(
|
|
29
|
+
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
30
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
29
31
|
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
30
32
|
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
31
33
|
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"); } /*
|
|
32
34
|
* Nutanix Objects Storage Management APIs
|
|
33
35
|
*
|
|
34
|
-
* OpenAPI spec version: 4.0.1
|
|
36
|
+
* OpenAPI spec version: 4.0.1
|
|
35
37
|
*
|
|
36
38
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
37
39
|
*
|
|
38
|
-
* Open API Dev Platform Codegen version: 16.
|
|
40
|
+
* Open API Dev Platform Codegen version: 16.9.1.8738-RELEASE
|
|
39
41
|
*
|
|
40
42
|
* Do not edit the class manually.
|
|
41
43
|
*
|
|
42
44
|
*/
|
|
43
45
|
/**
|
|
44
46
|
* ObjectStores service.
|
|
45
|
-
* @version 4.0.1
|
|
47
|
+
* @version 4.0.1
|
|
46
48
|
* @class ObjectStoresApi
|
|
47
49
|
*/
|
|
48
50
|
var _headersToSkip = /*#__PURE__*/new WeakMap();
|
|
@@ -67,31 +69,56 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
|
|
|
67
69
|
|
|
68
70
|
/**
|
|
69
71
|
* Create a SSL certificate for an Object store
|
|
70
|
-
* This operation creates a new default certificate and keys. It also creates the alternate FQDNs for the Object store. The certificate of an Object store can be created when it is in a OBJECT_STORE_AVAILABLE or
|
|
72
|
+
* This operation creates a new default certificate and keys. It also creates the alternate FQDNs and alternate IPs for the Object store. The certificate of an Object store can be created when it is in a OBJECT_STORE_AVAILABLE or OBJECT_STORE_CERT_CREATION_FAILED state. If the publicCert, privateKey, and ca values are provided in the request body, these values are used to create the new certificate. If these values are not provided, a new certificate will be generated if 'shouldGenerate' is set to true and if it is set to false, the existing certificate will be used as the new certificate. Optionally, a list of additional alternate FQDNs and alternate IPs can be provided. These alternateFqdns and alternateIps must be included in the CA certificate if it has been provided.
|
|
73
|
+
* @param { Partial<String | ReadableStream> } body Accepts file path as a string or a file stream
|
|
71
74
|
* @param { String } objectStoreExtId The UUID of the Object store.
|
|
72
|
-
* @param {Object} opts Optional parameters defined for the operation
|
|
73
|
-
* @param { String } opts.publicCert
|
|
74
|
-
* @param { String } opts.privateKey
|
|
75
|
-
* @param { common.v1.config.Metadata } opts.metadata
|
|
76
|
-
* @param { Array } opts.alternateFqdns
|
|
77
|
-
* @param { String } opts.tenantId
|
|
78
|
-
* @param { Array } opts.links
|
|
79
|
-
* @param { String } opts.extId
|
|
80
|
-
* @param { String } opts.ca
|
|
81
75
|
* @param {Object} args Additional Arguments
|
|
82
|
-
* @return {Promise<
|
|
76
|
+
* @return {Promise<CreateCertificateApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateCertificateApiResponse } and HTTP response
|
|
83
77
|
*/
|
|
84
78
|
return _createClass(ObjectStoresApi, [{
|
|
85
79
|
key: "createCertificate",
|
|
86
|
-
value: function createCertificate(objectStoreExtId,
|
|
80
|
+
value: function createCertificate(objectStoreExtId, body) {
|
|
87
81
|
var _this = this;
|
|
88
82
|
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
89
|
-
opts = opts || {};
|
|
90
83
|
var postBody = null;
|
|
84
|
+
var fs;
|
|
85
|
+
try {
|
|
86
|
+
fs = require('fs');
|
|
87
|
+
} catch (err) {}
|
|
88
|
+
if (typeof body.pipe === 'function') {
|
|
89
|
+
postBody = body;
|
|
90
|
+
argMap["Content-Length"] = fs.statSync(body.path).size;
|
|
91
|
+
if (!argMap.hasOwnProperty("Content-Disposition")) {
|
|
92
|
+
argMap["Content-Disposition"] = 'attachment; filename="' + _path2["default"].parse(body.path).base + '"';
|
|
93
|
+
}
|
|
94
|
+
} else if (typeof body === 'string') {
|
|
95
|
+
// body is a path string
|
|
96
|
+
var _path;
|
|
97
|
+
try {
|
|
98
|
+
_path = require('path');
|
|
99
|
+
} catch (err) {
|
|
100
|
+
throw new Error('Cannot find module \'path\'. Ensure you are using a Node.js environment. If not, use ReadableStream for body parameter.');
|
|
101
|
+
}
|
|
102
|
+
try {
|
|
103
|
+
postBody = fs.createReadStream(body);
|
|
104
|
+
argMap["Content-Length"] = fs.statSync(body).size;
|
|
105
|
+
if (!argMap.hasOwnProperty("Content-Disposition")) {
|
|
106
|
+
argMap["Content-Disposition"] = 'attachment; filename="' + _path.basename(body) + '"';
|
|
107
|
+
}
|
|
108
|
+
} catch (err) {
|
|
109
|
+
throw new Error('Cannot read file: ' + body + '. Error: ' + err.message);
|
|
110
|
+
}
|
|
111
|
+
} else {
|
|
112
|
+
postBody = body;
|
|
113
|
+
}
|
|
91
114
|
// verify the required parameter 'objectStoreExtId' is set
|
|
92
115
|
if (typeof objectStoreExtId === 'undefined' || objectStoreExtId === null) {
|
|
93
116
|
throw new Error("Missing the required parameter 'objectStoreExtId' when calling createCertificate");
|
|
94
117
|
}
|
|
118
|
+
// verify the required parameter 'body' is set
|
|
119
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
120
|
+
throw new Error("Invalid body when calling createCertificate");
|
|
121
|
+
}
|
|
95
122
|
var pathParams = {
|
|
96
123
|
'objectStoreExtId': objectStoreExtId
|
|
97
124
|
};
|
|
@@ -103,29 +130,21 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
|
|
|
103
130
|
}
|
|
104
131
|
});
|
|
105
132
|
var headerParams = _objectSpread({}, headersToInclude);
|
|
106
|
-
var formParams = {
|
|
107
|
-
|
|
108
|
-
'privateKey': opts['privateKey'],
|
|
109
|
-
'metadata': opts['metadata'],
|
|
110
|
-
'alternateFqdns': this.apiClient.buildCollectionParam(opts['alternateFqdns'], 'multi'),
|
|
111
|
-
'tenantId': opts['tenantId'],
|
|
112
|
-
'links': this.apiClient.buildCollectionParam(opts['links'], 'multi'),
|
|
113
|
-
'extId': opts['extId'],
|
|
114
|
-
'ca': opts['ca']
|
|
115
|
-
};
|
|
133
|
+
var formParams = {};
|
|
134
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
116
135
|
var authNames = ['basicAuthScheme'];
|
|
117
|
-
var contentTypes = ['
|
|
136
|
+
var contentTypes = ['application/octet-stream'];
|
|
118
137
|
var accepts = ['application/json'];
|
|
119
|
-
var returnType =
|
|
120
|
-
return this.apiClient.callApi('/api/objects/v4.0
|
|
138
|
+
var returnType = _CreateCertificateApiResponse["default"];
|
|
139
|
+
return this.apiClient.callApi('/api/objects/v4.0/config/object-stores/{objectStoreExtId}/certificates', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
121
140
|
}
|
|
122
141
|
|
|
123
142
|
/**
|
|
124
143
|
* Create an Object store
|
|
125
144
|
* Run the prechecks, create and start the deployment of an Object store on Prism Central.
|
|
126
|
-
* @param { Required<Pick<
|
|
145
|
+
* @param { Required<Pick<ObjectStore, 'name'>> & Partial<ObjectStore> } body specification
|
|
127
146
|
* @param {Object} args Additional Arguments
|
|
128
|
-
* @return {Promise<
|
|
147
|
+
* @return {Promise<CreateObjectstoreApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateObjectstoreApiResponse } and HTTP response
|
|
129
148
|
*/
|
|
130
149
|
}, {
|
|
131
150
|
key: "createObjectstore",
|
|
@@ -133,7 +152,7 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
|
|
|
133
152
|
var _this2 = this;
|
|
134
153
|
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
135
154
|
var postBody = null;
|
|
136
|
-
if (body instanceof
|
|
155
|
+
if (body instanceof _ObjectStore["default"] && typeof body.toJson === 'function') {
|
|
137
156
|
postBody = body.toJson();
|
|
138
157
|
} else {
|
|
139
158
|
postBody = body;
|
|
@@ -156,26 +175,26 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
|
|
|
156
175
|
var authNames = ['basicAuthScheme'];
|
|
157
176
|
var contentTypes = ['application/json'];
|
|
158
177
|
var accepts = ['application/json'];
|
|
159
|
-
var returnType =
|
|
160
|
-
return this.apiClient.callApi('/api/objects/v4.0
|
|
178
|
+
var returnType = _CreateObjectstoreApiResponse["default"];
|
|
179
|
+
return this.apiClient.callApi('/api/objects/v4.0/config/object-stores', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
161
180
|
}
|
|
162
181
|
|
|
163
182
|
/**
|
|
164
183
|
* Delete an Object store
|
|
165
|
-
* Send a request to delete an Object store for the provided UUID and clean up its data. An Object store can only be deleted when it is in the state
|
|
184
|
+
* Send a request to delete an Object store for the provided UUID and clean up its data. An Object store can only be deleted when it is in the state UNDEPLOYED_OBJECT_STORE, OBJECT_STORE_AVAILABLE, OBJECT_STORE_DEPLOYMENT_FAILED or OBJECT_STORE_DELETION_FAILED and does not contain any buckets.
|
|
166
185
|
* @param { String } extId The UUID of the Object store.
|
|
167
186
|
* @param {Object} args Additional Arguments
|
|
168
|
-
* @return {Promise<
|
|
187
|
+
* @return {Promise<DeleteObjectstoreApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteObjectstoreApiResponse } and HTTP response
|
|
169
188
|
*/
|
|
170
189
|
}, {
|
|
171
|
-
key: "
|
|
172
|
-
value: function
|
|
190
|
+
key: "deleteObjectstoreById",
|
|
191
|
+
value: function deleteObjectstoreById(extId) {
|
|
173
192
|
var _this3 = this;
|
|
174
193
|
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
175
194
|
var postBody = null;
|
|
176
195
|
// verify the required parameter 'extId' is set
|
|
177
196
|
if (typeof extId === 'undefined' || extId === null) {
|
|
178
|
-
throw new Error("Missing the required parameter 'extId' when calling
|
|
197
|
+
throw new Error("Missing the required parameter 'extId' when calling deleteObjectstoreById");
|
|
179
198
|
}
|
|
180
199
|
var pathParams = {
|
|
181
200
|
'extId': extId
|
|
@@ -192,35 +211,35 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
|
|
|
192
211
|
var authNames = ['basicAuthScheme'];
|
|
193
212
|
var contentTypes = [];
|
|
194
213
|
var accepts = ['application/json'];
|
|
195
|
-
var returnType =
|
|
196
|
-
return this.apiClient.callApi('/api/objects/v4.0
|
|
214
|
+
var returnType = _DeleteObjectstoreApiResponse["default"];
|
|
215
|
+
return this.apiClient.callApi('/api/objects/v4.0/config/object-stores/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
197
216
|
}
|
|
198
217
|
|
|
199
218
|
/**
|
|
200
|
-
*
|
|
201
|
-
*
|
|
219
|
+
* Download the certificate authority
|
|
220
|
+
* Download the certificate authority of an Object store certificate.
|
|
202
221
|
* @param { String } objectStoreExtId The UUID of the Object store.
|
|
203
|
-
* @param { String }
|
|
222
|
+
* @param { String } certificateExtId The UUID of the certificate of an Object store.
|
|
204
223
|
* @param {Object} args Additional Arguments
|
|
205
|
-
* @return {Promise<
|
|
224
|
+
* @return {Promise<GetCaApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetCaApiResponse } and HTTP response
|
|
206
225
|
*/
|
|
207
226
|
}, {
|
|
208
|
-
key: "
|
|
209
|
-
value: function
|
|
227
|
+
key: "getCaByCertificateId",
|
|
228
|
+
value: function getCaByCertificateId(objectStoreExtId, certificateExtId) {
|
|
210
229
|
var _this4 = this;
|
|
211
230
|
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
212
231
|
var postBody = null;
|
|
213
232
|
// verify the required parameter 'objectStoreExtId' is set
|
|
214
233
|
if (typeof objectStoreExtId === 'undefined' || objectStoreExtId === null) {
|
|
215
|
-
throw new Error("Missing the required parameter 'objectStoreExtId' when calling
|
|
234
|
+
throw new Error("Missing the required parameter 'objectStoreExtId' when calling getCaByCertificateId");
|
|
216
235
|
}
|
|
217
|
-
// verify the required parameter '
|
|
218
|
-
if (typeof
|
|
219
|
-
throw new Error("Missing the required parameter '
|
|
236
|
+
// verify the required parameter 'certificateExtId' is set
|
|
237
|
+
if (typeof certificateExtId === 'undefined' || certificateExtId === null) {
|
|
238
|
+
throw new Error("Missing the required parameter 'certificateExtId' when calling getCaByCertificateId");
|
|
220
239
|
}
|
|
221
240
|
var pathParams = {
|
|
222
241
|
'objectStoreExtId': objectStoreExtId,
|
|
223
|
-
'
|
|
242
|
+
'certificateExtId': certificateExtId
|
|
224
243
|
};
|
|
225
244
|
var queryParams = {};
|
|
226
245
|
var headersToInclude = {};
|
|
@@ -233,62 +252,38 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
|
|
|
233
252
|
var formParams = {};
|
|
234
253
|
var authNames = ['basicAuthScheme'];
|
|
235
254
|
var contentTypes = [];
|
|
236
|
-
var accepts = ['application/json'];
|
|
237
|
-
var returnType =
|
|
238
|
-
return this.apiClient.callApi('/api/objects/v4.0
|
|
255
|
+
var accepts = ['application/octet-stream', 'application/json'];
|
|
256
|
+
var returnType = _GetCaApiResponse["default"];
|
|
257
|
+
return this.apiClient.callApi('/api/objects/v4.0/config/object-stores/{objectStoreExtId}/certificates/{certificateExtId}/certificate-authority', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
239
258
|
}
|
|
240
259
|
|
|
241
260
|
/**
|
|
242
|
-
* Get
|
|
243
|
-
* Get
|
|
261
|
+
* Get the details of an Object store certificate
|
|
262
|
+
* Get the details of the SSL certificate which can be used to connect to an Object store.
|
|
244
263
|
* @param { String } objectStoreExtId The UUID of the Object store.
|
|
245
|
-
* @param {
|
|
246
|
-
* @param {
|
|
247
|
-
|
|
248
|
-
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
249
|
-
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>
|
|
250
|
-
* The filter can be applied to the following fields:<br>
|
|
251
|
-
* - ca
|
|
252
|
-
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>
|
|
253
|
-
* The orderby can be applied to the following fields:<br>
|
|
254
|
-
* - ca
|
|
255
|
-
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
256
|
-
- alternateFqdns
|
|
257
|
-
- ca
|
|
258
|
-
- extId
|
|
259
|
-
- links
|
|
260
|
-
- metadata
|
|
261
|
-
- privateKey
|
|
262
|
-
- publicCert
|
|
263
|
-
- tenantId
|
|
264
|
-
* @param {Object} args Additional Arguments
|
|
265
|
-
* @return {Promise<CertificateListApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CertificateListApiResponse } and HTTP response
|
|
264
|
+
* @param { String } extId The UUID of the certificate of an Object store.
|
|
265
|
+
* @param {Object} args Additional Arguments
|
|
266
|
+
* @return {Promise<GetCertificateApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetCertificateApiResponse } and HTTP response
|
|
266
267
|
*/
|
|
267
268
|
}, {
|
|
268
|
-
key: "
|
|
269
|
-
value: function
|
|
269
|
+
key: "getCertificateById",
|
|
270
|
+
value: function getCertificateById(objectStoreExtId, extId) {
|
|
270
271
|
var _this5 = this;
|
|
271
272
|
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
272
|
-
opts = opts || {};
|
|
273
273
|
var postBody = null;
|
|
274
274
|
// verify the required parameter 'objectStoreExtId' is set
|
|
275
275
|
if (typeof objectStoreExtId === 'undefined' || objectStoreExtId === null) {
|
|
276
|
-
throw new Error("Missing the required parameter 'objectStoreExtId' when calling
|
|
276
|
+
throw new Error("Missing the required parameter 'objectStoreExtId' when calling getCertificateById");
|
|
277
|
+
}
|
|
278
|
+
// verify the required parameter 'extId' is set
|
|
279
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
280
|
+
throw new Error("Missing the required parameter 'extId' when calling getCertificateById");
|
|
277
281
|
}
|
|
278
282
|
var pathParams = {
|
|
279
|
-
'objectStoreExtId': objectStoreExtId
|
|
283
|
+
'objectStoreExtId': objectStoreExtId,
|
|
284
|
+
'extId': extId
|
|
280
285
|
};
|
|
281
|
-
var queryParams =
|
|
282
|
-
'$page': opts['$page']
|
|
283
|
-
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
284
|
-
'$limit': opts['$limit']
|
|
285
|
-
} : {}), opts.hasOwnProperty('$filter') ? {
|
|
286
|
-
'$filter': opts['$filter']
|
|
287
|
-
} : {}), opts.hasOwnProperty('$orderby') ? {
|
|
288
|
-
'$orderby': opts['$orderby']
|
|
289
|
-
} : {}), opts.hasOwnProperty('$select') ? {
|
|
290
|
-
'$select': opts['$select']
|
|
291
|
-
} : {});
|
|
286
|
+
var queryParams = {};
|
|
292
287
|
var headersToInclude = {};
|
|
293
288
|
Object.keys(argMap).forEach(function (header) {
|
|
294
289
|
if (!_classPrivateFieldGet(_headersToSkip, _this5).has(header.toLowerCase())) {
|
|
@@ -300,37 +295,31 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
|
|
|
300
295
|
var authNames = ['basicAuthScheme'];
|
|
301
296
|
var contentTypes = [];
|
|
302
297
|
var accepts = ['application/json'];
|
|
303
|
-
var returnType =
|
|
304
|
-
return this.apiClient.callApi('/api/objects/v4.0
|
|
298
|
+
var returnType = _GetCertificateApiResponse["default"];
|
|
299
|
+
return this.apiClient.callApi('/api/objects/v4.0/config/object-stores/{objectStoreExtId}/certificates/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
305
300
|
}
|
|
306
301
|
|
|
307
302
|
/**
|
|
308
303
|
* Get an Object store
|
|
309
|
-
* Get an Object store for the provided UUID.
|
|
304
|
+
* Get an Object store for the provided UUID. `state` string (State of the Object store) Enum for the state of the Object store. | Enum | Description | | ----------- | ----------- | | `\"DEPLOYING_OBJECT_STORE\"` | The Object store will be in this state during an ongoing deployment of the Object store. The Object store will be unavailable through S3 APIs in this state. The Object store will move to the OBJECT_STORE_AVAILABLE state if the deployment succeeds, and to the OBJECT_STORE_DEPLOYMENT_FAILED state if the deployment fails. | | `\"OBJECT_STORE_OPERATION_FAILED\"` | The Object store is in this state when there is an error while performing an operation on the Object store. The Object store may not be available through S3 APIs in this state. | | `\"OBJECT_STORE_CERT_CREATION_FAILED\"` | An Object store enters this state if there is an error while creating the Object store certificate. Creating a new certificate can be retried from this state. The Object store may not be available through S3 APIs in this state. | | `\"OBJECT_STORE_OPERATION_PENDING\"` | The Object store is in this state during an ongoing operation on the Object store. The Object store may not be available through S3 APIs in this state. The Object store will enter the OBJECT_STORE_OPERATION_FAILED state if the operation fails, or the OBJECT_STORE_AVAILABLE state if the operation is successful. | | `\"UNDEPLOYED_OBJECT_STORE\"` | The Object store is in this state if it has not been deployed. | | `\"CREATING_OBJECT_STORE_CERT\"` | The Object store is in this state during a certificate creation for the Object store. The Object store will be unavailable through S3 APIs in this state. It will move to the OBJECT_STORE_AVAILABLE state if the certificate was created successfully, or to the OBJECT_STORE_CERT_CREATION_FAILED state if an error occurs while creating the certificate. | | `\"OBJECT_STORE_AVAILABLE\"` | An Object store is in this state if its deployment was successful, and there are no ongoing operations on the Object store. The Object store will be available through S3 APIs in this state. In this state, the Object store can be deleted or a new certificate can be created for this Object store. | | `\"OBJECT_STORE_DELETION_FAILED\"` | An Object store enters this state if there is an error deleting the Object store. The Object store will not be available through S3 APIs in this state. Deleting the Object store can be retried from this state. | | `\"OBJECT_STORE_DEPLOYMENT_FAILED\"` | An Object store enters this state when its deployment fails. The Object store deployment can be retried or the Object store can be deleted from this state. | | `\"DELETING_OBJECT_STORE\"` | A deployed Object store is in this state when the Object store is being deleted. The Object store will be unavailable through S3 APIs in this state. It can be either deleted or move to the OBJECT_STORE_DELETION_FAILED state if the deletion fails. |
|
|
310
305
|
* @param { String } extId The UUID of the Object store.
|
|
311
|
-
* @param {Object}
|
|
312
|
-
* @
|
|
313
|
-
- certificate
|
|
314
|
-
* @param {Object} args Additional Arguments
|
|
315
|
-
* @return {Promise<ObjectstoreApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ObjectstoreApiResponse } and HTTP response
|
|
306
|
+
* @param {Object} args Additional Arguments
|
|
307
|
+
* @return {Promise<GetObjectstoreApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetObjectstoreApiResponse } and HTTP response
|
|
316
308
|
*/
|
|
317
309
|
}, {
|
|
318
|
-
key: "
|
|
319
|
-
value: function
|
|
310
|
+
key: "getObjectstoreById",
|
|
311
|
+
value: function getObjectstoreById(extId) {
|
|
320
312
|
var _this6 = this;
|
|
321
|
-
var argMap = (arguments.length <=
|
|
322
|
-
opts = opts || {};
|
|
313
|
+
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
323
314
|
var postBody = null;
|
|
324
315
|
// verify the required parameter 'extId' is set
|
|
325
316
|
if (typeof extId === 'undefined' || extId === null) {
|
|
326
|
-
throw new Error("Missing the required parameter 'extId' when calling
|
|
317
|
+
throw new Error("Missing the required parameter 'extId' when calling getObjectstoreById");
|
|
327
318
|
}
|
|
328
319
|
var pathParams = {
|
|
329
320
|
'extId': extId
|
|
330
321
|
};
|
|
331
|
-
var queryParams =
|
|
332
|
-
'$expand': opts['$expand']
|
|
333
|
-
} : {});
|
|
322
|
+
var queryParams = {};
|
|
334
323
|
var headersToInclude = {};
|
|
335
324
|
Object.keys(argMap).forEach(function (header) {
|
|
336
325
|
if (!_classPrivateFieldGet(_headersToSkip, _this6).has(header.toLowerCase())) {
|
|
@@ -342,8 +331,66 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
|
|
|
342
331
|
var authNames = ['basicAuthScheme'];
|
|
343
332
|
var contentTypes = [];
|
|
344
333
|
var accepts = ['application/json'];
|
|
345
|
-
var returnType =
|
|
346
|
-
return this.apiClient.callApi('/api/objects/v4.0
|
|
334
|
+
var returnType = _GetObjectstoreApiResponse["default"];
|
|
335
|
+
return this.apiClient.callApi('/api/objects/v4.0/config/object-stores/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Get a list of the SSL certificates of an Object store
|
|
340
|
+
* Get a list of the SSL certificates which can be used to access an Object store.
|
|
341
|
+
* @param { String } objectStoreExtId The UUID of the Object store.
|
|
342
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
343
|
+
* @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
|
|
344
|
+
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
345
|
+
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
346
|
+
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>
|
|
347
|
+
* The filter can be applied to the following fields:<br>
|
|
348
|
+
* - alternateFqdns/value<br>
|
|
349
|
+
* - alternateIps/ipv4/value
|
|
350
|
+
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
351
|
+
- alternateFqdns
|
|
352
|
+
- alternateFqdns/value
|
|
353
|
+
- alternateIps
|
|
354
|
+
- alternateIps/ipv4/value
|
|
355
|
+
* @param {Object} args Additional Arguments
|
|
356
|
+
* @return {Promise<ListCertificatesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListCertificatesApiResponse } and HTTP response
|
|
357
|
+
*/
|
|
358
|
+
}, {
|
|
359
|
+
key: "listCertificatesByObjectstoreId",
|
|
360
|
+
value: function listCertificatesByObjectstoreId(objectStoreExtId, opts) {
|
|
361
|
+
var _this7 = this;
|
|
362
|
+
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
363
|
+
opts = opts || {};
|
|
364
|
+
var postBody = null;
|
|
365
|
+
// verify the required parameter 'objectStoreExtId' is set
|
|
366
|
+
if (typeof objectStoreExtId === 'undefined' || objectStoreExtId === null) {
|
|
367
|
+
throw new Error("Missing the required parameter 'objectStoreExtId' when calling listCertificatesByObjectstoreId");
|
|
368
|
+
}
|
|
369
|
+
var pathParams = {
|
|
370
|
+
'objectStoreExtId': objectStoreExtId
|
|
371
|
+
};
|
|
372
|
+
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
373
|
+
'$page': opts['$page']
|
|
374
|
+
} : {}), opts.hasOwnProperty('$limit') ? {
|
|
375
|
+
'$limit': opts['$limit']
|
|
376
|
+
} : {}), opts.hasOwnProperty('$filter') ? {
|
|
377
|
+
'$filter': opts['$filter']
|
|
378
|
+
} : {}), opts.hasOwnProperty('$select') ? {
|
|
379
|
+
'$select': opts['$select']
|
|
380
|
+
} : {});
|
|
381
|
+
var headersToInclude = {};
|
|
382
|
+
Object.keys(argMap).forEach(function (header) {
|
|
383
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this7).has(header.toLowerCase())) {
|
|
384
|
+
headersToInclude[header] = argMap[header];
|
|
385
|
+
}
|
|
386
|
+
});
|
|
387
|
+
var headerParams = _objectSpread({}, headersToInclude);
|
|
388
|
+
var formParams = {};
|
|
389
|
+
var authNames = ['basicAuthScheme'];
|
|
390
|
+
var contentTypes = [];
|
|
391
|
+
var accepts = ['application/json'];
|
|
392
|
+
var returnType = _ListCertificatesApiResponse["default"];
|
|
393
|
+
return this.apiClient.callApi('/api/objects/v4.0/config/object-stores/{objectStoreExtId}/certificates', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
347
394
|
}
|
|
348
395
|
|
|
349
396
|
/**
|
|
@@ -355,8 +402,8 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
|
|
|
355
402
|
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
356
403
|
* For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.<br>
|
|
357
404
|
* The filter can be applied to the following fields:<br>
|
|
358
|
-
* -
|
|
359
|
-
* -
|
|
405
|
+
* - certificateExtIds<br>
|
|
406
|
+
* - clusterExtId<br>
|
|
360
407
|
* - creationTime<br>
|
|
361
408
|
* - deploymentVersion<br>
|
|
362
409
|
* - description<br>
|
|
@@ -364,9 +411,10 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
|
|
|
364
411
|
* - lastUpdateTime<br>
|
|
365
412
|
* - name<br>
|
|
366
413
|
* - numWorkerNodes<br>
|
|
414
|
+
* - publicNetworkIps/ipv4/value<br>
|
|
415
|
+
* - publicNetworkIps/ipv6/value<br>
|
|
367
416
|
* - publicNetworkReference<br>
|
|
368
417
|
* - region<br>
|
|
369
|
-
* - state<br>
|
|
370
418
|
* - storageNetworkDnsIp/ipv4/value<br>
|
|
371
419
|
* - storageNetworkDnsIp/ipv6/value<br>
|
|
372
420
|
* - storageNetworkReference<br>
|
|
@@ -375,8 +423,7 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
|
|
|
375
423
|
* - totalCapacityGiB
|
|
376
424
|
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.<br>
|
|
377
425
|
* The orderby can be applied to the following fields:<br>
|
|
378
|
-
* -
|
|
379
|
-
* - clusterReference<br>
|
|
426
|
+
* - clusterExtId<br>
|
|
380
427
|
* - creationTime<br>
|
|
381
428
|
* - deploymentVersion<br>
|
|
382
429
|
* - description<br>
|
|
@@ -386,50 +433,38 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
|
|
|
386
433
|
* - numWorkerNodes<br>
|
|
387
434
|
* - publicNetworkReference<br>
|
|
388
435
|
* - region<br>
|
|
389
|
-
* - state<br>
|
|
390
|
-
* - storageNetworkDnsIp/ipv4/value<br>
|
|
391
|
-
* - storageNetworkDnsIp/ipv6/value<br>
|
|
392
436
|
* - storageNetworkReference<br>
|
|
393
|
-
* - storageNetworkVip/ipv4/value<br>
|
|
394
|
-
* - storageNetworkVip/ipv6/value<br>
|
|
395
437
|
* - totalCapacityGiB
|
|
396
438
|
* @param { String } opts.$expand A URL query parameter that allows clients to request related resources when a resource that satisfies a particular request is retrieved. Each expanded item is evaluated relative to the entity containing the property being expanded. Other query options can be applied to an expanded property by appending a semicolon-separated list of query options, enclosed in parentheses, to the property name. Permissible system query options are $filter, $select and $orderby. The following expansion keys are supported.
|
|
397
|
-
-
|
|
439
|
+
- certificates
|
|
398
440
|
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
399
|
-
-
|
|
400
|
-
-
|
|
441
|
+
- certificateExtIds
|
|
442
|
+
- clusterExtId
|
|
401
443
|
- creationTime
|
|
402
444
|
- deploymentVersion
|
|
403
445
|
- description
|
|
404
446
|
- domain
|
|
405
|
-
- extId
|
|
406
447
|
- lastUpdateTime
|
|
407
|
-
- links
|
|
408
|
-
- metadata
|
|
409
448
|
- name
|
|
410
449
|
- numWorkerNodes
|
|
411
450
|
- publicNetworkIps
|
|
451
|
+
- publicNetworkIps/ipv4/value
|
|
412
452
|
- publicNetworkReference
|
|
413
453
|
- region
|
|
414
454
|
- state
|
|
415
|
-
- storageNetworkDnsIp
|
|
455
|
+
- storageNetworkDnsIp
|
|
416
456
|
- storageNetworkDnsIp/ipv4/value
|
|
417
|
-
- storageNetworkDnsIp/ipv6/prefixLength
|
|
418
|
-
- storageNetworkDnsIp/ipv6/value
|
|
419
457
|
- storageNetworkReference
|
|
420
|
-
- storageNetworkVip
|
|
458
|
+
- storageNetworkVip
|
|
421
459
|
- storageNetworkVip/ipv4/value
|
|
422
|
-
- storageNetworkVip/ipv6/prefixLength
|
|
423
|
-
- storageNetworkVip/ipv6/value
|
|
424
|
-
- tenantId
|
|
425
460
|
- totalCapacityGiB
|
|
426
461
|
* @param {Object} args Additional Arguments
|
|
427
|
-
* @return {Promise<
|
|
462
|
+
* @return {Promise<ListObjectstoresApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListObjectstoresApiResponse } and HTTP response
|
|
428
463
|
*/
|
|
429
464
|
}, {
|
|
430
|
-
key: "
|
|
431
|
-
value: function
|
|
432
|
-
var
|
|
465
|
+
key: "listObjectstores",
|
|
466
|
+
value: function listObjectstores(opts) {
|
|
467
|
+
var _this8 = this;
|
|
433
468
|
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
434
469
|
opts = opts || {};
|
|
435
470
|
var postBody = null;
|
|
@@ -449,7 +484,7 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
|
|
|
449
484
|
} : {});
|
|
450
485
|
var headersToInclude = {};
|
|
451
486
|
Object.keys(argMap).forEach(function (header) {
|
|
452
|
-
if (!_classPrivateFieldGet(_headersToSkip,
|
|
487
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this8).has(header.toLowerCase())) {
|
|
453
488
|
headersToInclude[header] = argMap[header];
|
|
454
489
|
}
|
|
455
490
|
});
|
|
@@ -458,36 +493,36 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
|
|
|
458
493
|
var authNames = ['basicAuthScheme'];
|
|
459
494
|
var contentTypes = [];
|
|
460
495
|
var accepts = ['application/json'];
|
|
461
|
-
var returnType =
|
|
462
|
-
return this.apiClient.callApi('/api/objects/v4.0
|
|
496
|
+
var returnType = _ListObjectstoresApiResponse["default"];
|
|
497
|
+
return this.apiClient.callApi('/api/objects/v4.0/config/object-stores', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
463
498
|
}
|
|
464
499
|
|
|
465
500
|
/**
|
|
466
501
|
* Update an Object store
|
|
467
|
-
* Update an Object store. The deployment of an Object store can be restarted from the state
|
|
468
|
-
* @param { Required<Pick<
|
|
502
|
+
* Update an Object store. The deployment of an Object store can be restarted from the state OBJECT_STORE_DEPLOYMENT_FAILED.
|
|
503
|
+
* @param { Required<Pick<ObjectStore, 'name'>> & Partial<ObjectStore> } body specification
|
|
469
504
|
* @param { String } extId The UUID of the Object store.
|
|
470
505
|
* @param {Object} args Additional Arguments
|
|
471
|
-
* @return {Promise<
|
|
506
|
+
* @return {Promise<UpdateObjectstoreApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateObjectstoreApiResponse } and HTTP response
|
|
472
507
|
*/
|
|
473
508
|
}, {
|
|
474
|
-
key: "
|
|
475
|
-
value: function
|
|
476
|
-
var
|
|
509
|
+
key: "updateObjectstoreById",
|
|
510
|
+
value: function updateObjectstoreById(extId, body) {
|
|
511
|
+
var _this9 = this;
|
|
477
512
|
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
478
513
|
var postBody = null;
|
|
479
|
-
if (body instanceof
|
|
514
|
+
if (body instanceof _ObjectStore["default"] && typeof body.toJson === 'function') {
|
|
480
515
|
postBody = body.toJson();
|
|
481
516
|
} else {
|
|
482
517
|
postBody = body;
|
|
483
518
|
}
|
|
484
519
|
// verify the required parameter 'extId' is set
|
|
485
520
|
if (typeof extId === 'undefined' || extId === null) {
|
|
486
|
-
throw new Error("Missing the required parameter 'extId' when calling
|
|
521
|
+
throw new Error("Missing the required parameter 'extId' when calling updateObjectstoreById");
|
|
487
522
|
}
|
|
488
523
|
// verify the required parameter 'body' is set
|
|
489
524
|
if (typeof postBody === 'undefined' || postBody === null) {
|
|
490
|
-
throw new Error("Invalid body when calling
|
|
525
|
+
throw new Error("Invalid body when calling updateObjectstoreById");
|
|
491
526
|
}
|
|
492
527
|
var pathParams = {
|
|
493
528
|
'extId': extId
|
|
@@ -495,7 +530,7 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
|
|
|
495
530
|
var queryParams = {};
|
|
496
531
|
var headersToInclude = {};
|
|
497
532
|
Object.keys(argMap).forEach(function (header) {
|
|
498
|
-
if (!_classPrivateFieldGet(_headersToSkip,
|
|
533
|
+
if (!_classPrivateFieldGet(_headersToSkip, _this9).has(header.toLowerCase())) {
|
|
499
534
|
headersToInclude[header] = argMap[header];
|
|
500
535
|
}
|
|
501
536
|
});
|
|
@@ -505,8 +540,8 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
|
|
|
505
540
|
var authNames = ['basicAuthScheme'];
|
|
506
541
|
var contentTypes = ['application/json'];
|
|
507
542
|
var accepts = ['application/json'];
|
|
508
|
-
var returnType =
|
|
509
|
-
return this.apiClient.callApi('/api/objects/v4.0
|
|
543
|
+
var returnType = _UpdateObjectstoreApiResponse["default"];
|
|
544
|
+
return this.apiClient.callApi('/api/objects/v4.0/config/object-stores/{extId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
510
545
|
}
|
|
511
546
|
}], [{
|
|
512
547
|
key: "ApiClient",
|