@nutanix-scratch/objects-js-client 4.0.1-alpha.2 → 4.0.1-beta.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.
Files changed (173) hide show
  1. package/LICENSE.txt +202 -49
  2. package/README.md +39 -27
  3. package/dist/Ntnx-Objects-js-client-prod.js +1 -1
  4. package/dist/Ntnx-Objects-js-client.js +151 -86
  5. package/dist/es/ApiClient.d.ts +8 -1
  6. package/dist/es/ApiClient.js +248 -188
  7. package/dist/es/Paginable.d.ts +1 -1
  8. package/dist/es/Paginable.js +9 -9
  9. package/dist/es/apis/objectstores-endpoints.d.ts +63 -95
  10. package/dist/es/apis/objectstores-endpoints.js +198 -166
  11. package/dist/es/index.d.ts +31 -21
  12. package/dist/es/index.js +89 -49
  13. package/dist/es/models/common/v1/config/FQDN.d.ts +24 -20
  14. package/dist/es/models/common/v1/config/FQDN.js +56 -21
  15. package/dist/es/models/common/v1/config/Flag.d.ts +32 -26
  16. package/dist/es/models/common/v1/config/Flag.js +65 -21
  17. package/dist/es/models/common/v1/config/IPAddress.d.ts +42 -26
  18. package/dist/es/models/common/v1/config/IPAddress.js +53 -21
  19. package/dist/es/models/common/v1/config/IPv4Address.d.ts +40 -26
  20. package/dist/es/models/common/v1/config/IPv4Address.js +64 -23
  21. package/dist/es/models/common/v1/config/IPv6Address.d.ts +40 -26
  22. package/dist/es/models/common/v1/config/IPv6Address.js +64 -23
  23. package/dist/es/models/common/v1/config/KVPair.d.ts +35 -26
  24. package/dist/es/models/common/v1/config/KVPair.js +70 -24
  25. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
  26. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +275 -0
  27. package/dist/es/models/common/v1/config/Message.d.ts +41 -38
  28. package/dist/es/models/common/v1/config/Message.js +57 -25
  29. package/dist/es/models/common/v1/config/MessageSeverity.js +7 -7
  30. package/dist/es/models/common/v1/config/Metadata.d.ts +46 -44
  31. package/dist/es/models/common/v1/config/Metadata.js +65 -27
  32. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +22 -20
  33. package/dist/es/models/common/v1/config/TenantAwareModel.js +51 -19
  34. package/dist/es/models/common/v1/response/ApiLink.d.ts +28 -26
  35. package/dist/es/models/common/v1/response/ApiLink.js +53 -21
  36. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
  37. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +71 -27
  38. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
  39. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +71 -31
  40. package/dist/es/models/objects/v4/config/Certificate.d.ts +99 -0
  41. package/dist/es/models/objects/v4/{operations → config}/Certificate.js +89 -42
  42. package/dist/es/models/objects/v4/{operations → config}/CertificateProjection.d.ts +2 -1
  43. package/dist/{lib/models/objects/v4/operations → es/models/objects/v4/config}/CertificateProjection.js +40 -17
  44. package/dist/es/models/objects/v4/config/CreateCertificateApiResponse.d.ts +99 -0
  45. package/dist/es/models/objects/v4/config/CreateCertificateApiResponse.js +343 -0
  46. package/dist/es/models/objects/v4/config/CreateObjectstoreApiResponse.d.ts +99 -0
  47. package/dist/{lib/models/objects/v4/operations/TaskReferenceApiResponse.js → es/models/objects/v4/config/CreateObjectstoreApiResponse.js} +86 -54
  48. package/dist/es/models/objects/v4/config/DeleteObjectstoreApiResponse.d.ts +99 -0
  49. package/dist/es/models/objects/v4/config/DeleteObjectstoreApiResponse.js +343 -0
  50. package/dist/es/models/objects/v4/config/GetCaApiResponse.d.ts +100 -0
  51. package/dist/es/models/objects/v4/{operations/TaskReferenceApiResponse.js → config/GetCaApiResponse.js} +88 -57
  52. package/dist/es/models/objects/v4/config/GetCertificateApiResponse.d.ts +99 -0
  53. package/dist/es/models/objects/v4/{operations/CertificateApiResponse.js → config/GetCertificateApiResponse.js} +88 -56
  54. package/dist/es/models/objects/v4/config/GetObjectstoreApiResponse.d.ts +99 -0
  55. package/dist/{lib/models/objects/v4/operations/ObjectstoreApiResponse.js → es/models/objects/v4/config/GetObjectstoreApiResponse.js} +89 -57
  56. package/dist/es/models/objects/v4/config/ListCertificatesApiResponse.d.ts +100 -0
  57. package/dist/es/models/objects/v4/{operations/CertificateListApiResponse.js → config/ListCertificatesApiResponse.js} +89 -57
  58. package/dist/es/models/objects/v4/config/ListObjectstoresApiResponse.d.ts +100 -0
  59. package/dist/es/models/objects/v4/{operations/ObjectstoreListApiResponse.js → config/ListObjectstoresApiResponse.js} +92 -60
  60. package/dist/es/models/objects/v4/config/ObjectStore.d.ts +313 -0
  61. package/dist/es/models/objects/v4/{operations/Objectstore.js → config/ObjectStore.js} +213 -157
  62. package/dist/es/models/objects/v4/config/ObjectStoreProjection.d.ts +151 -0
  63. package/dist/{lib/models/objects/v4/operations/ObjectstoreProjection.js → es/models/objects/v4/config/ObjectStoreProjection.js} +211 -65
  64. package/dist/es/models/objects/v4/{operations/StateEnum.d.ts → config/State.d.ts} +6 -6
  65. package/dist/es/models/objects/v4/config/State.js +133 -0
  66. package/dist/es/models/objects/v4/config/UpdateObjectstoreApiResponse.d.ts +99 -0
  67. package/dist/es/models/objects/v4/config/UpdateObjectstoreApiResponse.js +343 -0
  68. package/dist/es/models/objects/v4/error/AppMessage.d.ts +57 -48
  69. package/dist/es/models/objects/v4/error/AppMessage.js +61 -29
  70. package/dist/es/models/objects/v4/error/ErrorResponse.d.ts +23 -19
  71. package/dist/es/models/objects/v4/error/ErrorResponse.js +61 -25
  72. package/dist/es/models/objects/v4/error/SchemaValidationError.d.ts +53 -43
  73. package/dist/es/models/objects/v4/error/SchemaValidationError.js +62 -29
  74. package/dist/es/models/objects/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
  75. package/dist/es/models/objects/v4/error/SchemaValidationErrorMessage.js +55 -23
  76. package/dist/es/models/prism/v4/config/TaskReference.d.ts +24 -22
  77. package/dist/es/models/prism/v4/config/TaskReference.js +58 -23
  78. package/dist/es/models/validation/ValidationError.js +5 -5
  79. package/dist/es/utils/ValidationUtils.js +5 -5
  80. package/dist/lib/ApiClient.d.ts +8 -1
  81. package/dist/lib/ApiClient.js +248 -188
  82. package/dist/lib/Paginable.d.ts +1 -1
  83. package/dist/lib/Paginable.js +9 -9
  84. package/dist/lib/apis/objectstores-endpoints.d.ts +63 -95
  85. package/dist/lib/apis/objectstores-endpoints.js +198 -166
  86. package/dist/lib/index.d.ts +31 -21
  87. package/dist/lib/index.js +89 -49
  88. package/dist/lib/models/common/v1/config/FQDN.d.ts +24 -20
  89. package/dist/lib/models/common/v1/config/FQDN.js +56 -21
  90. package/dist/lib/models/common/v1/config/Flag.d.ts +32 -26
  91. package/dist/lib/models/common/v1/config/Flag.js +65 -21
  92. package/dist/lib/models/common/v1/config/IPAddress.d.ts +42 -26
  93. package/dist/lib/models/common/v1/config/IPAddress.js +53 -21
  94. package/dist/lib/models/common/v1/config/IPv4Address.d.ts +40 -26
  95. package/dist/lib/models/common/v1/config/IPv4Address.js +64 -23
  96. package/dist/lib/models/common/v1/config/IPv6Address.d.ts +40 -26
  97. package/dist/lib/models/common/v1/config/IPv6Address.js +64 -23
  98. package/dist/lib/models/common/v1/config/KVPair.d.ts +35 -26
  99. package/dist/lib/models/common/v1/config/KVPair.js +70 -24
  100. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
  101. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +275 -0
  102. package/dist/lib/models/common/v1/config/Message.d.ts +41 -38
  103. package/dist/lib/models/common/v1/config/Message.js +57 -25
  104. package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -7
  105. package/dist/lib/models/common/v1/config/Metadata.d.ts +46 -44
  106. package/dist/lib/models/common/v1/config/Metadata.js +65 -27
  107. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +22 -20
  108. package/dist/lib/models/common/v1/config/TenantAwareModel.js +51 -19
  109. package/dist/lib/models/common/v1/response/ApiLink.d.ts +28 -26
  110. package/dist/lib/models/common/v1/response/ApiLink.js +53 -21
  111. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
  112. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +71 -27
  113. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
  114. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +71 -31
  115. package/dist/lib/models/objects/v4/config/Certificate.d.ts +99 -0
  116. package/dist/lib/models/objects/v4/{operations → config}/Certificate.js +89 -42
  117. package/dist/lib/models/objects/v4/{operations → config}/CertificateProjection.d.ts +2 -1
  118. package/dist/{es/models/objects/v4/operations → lib/models/objects/v4/config}/CertificateProjection.js +40 -17
  119. package/dist/lib/models/objects/v4/config/CreateCertificateApiResponse.d.ts +99 -0
  120. package/dist/lib/models/objects/v4/config/CreateCertificateApiResponse.js +343 -0
  121. package/dist/lib/models/objects/v4/config/CreateObjectstoreApiResponse.d.ts +99 -0
  122. package/dist/lib/models/objects/v4/config/CreateObjectstoreApiResponse.js +343 -0
  123. package/dist/lib/models/objects/v4/config/DeleteObjectstoreApiResponse.d.ts +99 -0
  124. package/dist/lib/models/objects/v4/config/DeleteObjectstoreApiResponse.js +343 -0
  125. package/dist/lib/models/objects/v4/config/GetCaApiResponse.d.ts +100 -0
  126. package/dist/lib/models/objects/v4/{operations/CertificateApiResponse.js → config/GetCaApiResponse.js} +88 -57
  127. package/dist/lib/models/objects/v4/config/GetCertificateApiResponse.d.ts +99 -0
  128. package/dist/lib/models/objects/v4/config/GetCertificateApiResponse.js +343 -0
  129. package/dist/lib/models/objects/v4/config/GetObjectstoreApiResponse.d.ts +99 -0
  130. package/dist/{es/models/objects/v4/operations/ObjectstoreApiResponse.js → lib/models/objects/v4/config/GetObjectstoreApiResponse.js} +89 -57
  131. package/dist/lib/models/objects/v4/config/ListCertificatesApiResponse.d.ts +100 -0
  132. package/dist/lib/models/objects/v4/{operations/CertificateListApiResponse.js → config/ListCertificatesApiResponse.js} +89 -57
  133. package/dist/lib/models/objects/v4/config/ListObjectstoresApiResponse.d.ts +100 -0
  134. package/dist/lib/models/objects/v4/{operations/ObjectstoreListApiResponse.js → config/ListObjectstoresApiResponse.js} +92 -60
  135. package/dist/lib/models/objects/v4/config/ObjectStore.d.ts +313 -0
  136. package/dist/lib/models/objects/v4/{operations/Objectstore.js → config/ObjectStore.js} +213 -157
  137. package/dist/lib/models/objects/v4/config/ObjectStoreProjection.d.ts +151 -0
  138. package/dist/{es/models/objects/v4/operations/ObjectstoreProjection.js → lib/models/objects/v4/config/ObjectStoreProjection.js} +211 -65
  139. package/dist/lib/models/objects/v4/{operations/StateEnum.d.ts → config/State.d.ts} +6 -6
  140. package/dist/lib/models/objects/v4/config/State.js +133 -0
  141. package/dist/lib/models/objects/v4/config/UpdateObjectstoreApiResponse.d.ts +99 -0
  142. package/dist/lib/models/objects/v4/config/UpdateObjectstoreApiResponse.js +343 -0
  143. package/dist/lib/models/objects/v4/error/AppMessage.d.ts +57 -48
  144. package/dist/lib/models/objects/v4/error/AppMessage.js +61 -29
  145. package/dist/lib/models/objects/v4/error/ErrorResponse.d.ts +23 -19
  146. package/dist/lib/models/objects/v4/error/ErrorResponse.js +61 -25
  147. package/dist/lib/models/objects/v4/error/SchemaValidationError.d.ts +53 -43
  148. package/dist/lib/models/objects/v4/error/SchemaValidationError.js +62 -29
  149. package/dist/lib/models/objects/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
  150. package/dist/lib/models/objects/v4/error/SchemaValidationErrorMessage.js +55 -23
  151. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +24 -22
  152. package/dist/lib/models/prism/v4/config/TaskReference.js +58 -23
  153. package/dist/lib/models/validation/ValidationError.js +5 -5
  154. package/dist/lib/utils/ValidationUtils.js +5 -5
  155. package/package.json +1 -1
  156. package/dist/es/models/objects/v4/operations/Certificate.d.ts +0 -78
  157. package/dist/es/models/objects/v4/operations/CertificateApiResponse.d.ts +0 -59
  158. package/dist/es/models/objects/v4/operations/CertificateListApiResponse.d.ts +0 -59
  159. package/dist/es/models/objects/v4/operations/Objectstore.d.ts +0 -242
  160. package/dist/es/models/objects/v4/operations/ObjectstoreApiResponse.d.ts +0 -59
  161. package/dist/es/models/objects/v4/operations/ObjectstoreListApiResponse.d.ts +0 -59
  162. package/dist/es/models/objects/v4/operations/ObjectstoreProjection.d.ts +0 -50
  163. package/dist/es/models/objects/v4/operations/StateEnum.js +0 -145
  164. package/dist/es/models/objects/v4/operations/TaskReferenceApiResponse.d.ts +0 -59
  165. package/dist/lib/models/objects/v4/operations/Certificate.d.ts +0 -78
  166. package/dist/lib/models/objects/v4/operations/CertificateApiResponse.d.ts +0 -59
  167. package/dist/lib/models/objects/v4/operations/CertificateListApiResponse.d.ts +0 -59
  168. package/dist/lib/models/objects/v4/operations/Objectstore.d.ts +0 -242
  169. package/dist/lib/models/objects/v4/operations/ObjectstoreApiResponse.d.ts +0 -59
  170. package/dist/lib/models/objects/v4/operations/ObjectstoreListApiResponse.d.ts +0 -59
  171. package/dist/lib/models/objects/v4/operations/ObjectstoreProjection.d.ts +0 -50
  172. package/dist/lib/models/objects/v4/operations/StateEnum.js +0 -145
  173. 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 _Objectstore = _interopRequireDefault(require("../models/objects/v4/operations/Objectstore"));
10
- var _ApiLink = _interopRequireDefault(require("../models/common/v1/response/ApiLink"));
11
- var _TaskReferenceApiResponse = _interopRequireDefault(require("../models/objects/v4/operations/TaskReferenceApiResponse"));
12
- var _FQDN = _interopRequireDefault(require("../models/common/v1/config/FQDN"));
13
- var _Metadata = _interopRequireDefault(require("../models/common/v1/config/Metadata"));
14
- var _CertificateApiResponse = _interopRequireDefault(require("../models/objects/v4/operations/CertificateApiResponse"));
15
- var _ObjectstoreListApiResponse = _interopRequireDefault(require("../models/objects/v4/operations/ObjectstoreListApiResponse"));
16
- var _CertificateListApiResponse = _interopRequireDefault(require("../models/objects/v4/operations/CertificateListApiResponse"));
17
- var _ObjectstoreApiResponse = _interopRequireDefault(require("../models/objects/v4/operations/ObjectstoreApiResponse"));
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
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(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; }
22
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23
- 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); } }
24
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
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(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
28
- function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
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-alpha-2
36
+ * OpenAPI spec version: 4.0.1-beta-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.8.0.7344-RELEASE
40
+ * Open API Dev Platform Codegen version: 16.9.0.8546-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-alpha-2
47
+ * @version 4.0.1-beta-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 OBJECT_STORE_CREATE_CERT_ERROR 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, they will be generated for the new certificate. Optionally, a list of additional alternate FQDNs can be provided.
72
+ * 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 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, the existing certificate will be used as the new certificate. Optionally, a list of additional alternate FQDNs can be 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<TaskReferenceApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link TaskReferenceApiResponse } and HTTP response
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, opts) {
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
- 'publicCert': opts['publicCert'],
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 = ['multipart/form-data'];
136
+ var contentTypes = ['application/octet-stream'];
118
137
  var accepts = ['application/json'];
119
- var returnType = _TaskReferenceApiResponse["default"];
120
- return this.apiClient.callApi('/api/objects/v4.0.a2/operations/object-stores/{objectStoreExtId}/certificates', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
138
+ var returnType = _CreateCertificateApiResponse["default"];
139
+ return this.apiClient.callApi('/api/objects/v4.0.b1/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<Objectstore, 'name'>> & Partial<Objectstore> } body specification
145
+ * @param { Required<Pick<ObjectStore, 'name'>> & Partial<ObjectStore> } body specification
127
146
  * @param {Object} args Additional Arguments
128
- * @return {Promise<TaskReferenceApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link TaskReferenceApiResponse } and HTTP response
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 _Objectstore["default"] && typeof body.toJson === 'function') {
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 = _TaskReferenceApiResponse["default"];
160
- return this.apiClient.callApi('/api/objects/v4.0.a2/operations/object-stores', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
178
+ var returnType = _CreateObjectstoreApiResponse["default"];
179
+ return this.apiClient.callApi('/api/objects/v4.0.b1/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 OBJECT_STORE_INPUT, OBJECT_STORE_DELETE_INPUT_ERROR, OBJECT_STORE_AVAILABLE, OBJECT_STORE_DEPLOYMENT_ERROR or OBJECT_STORE_DELETE_ERROR and does not contain any buckets.
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<TaskReferenceApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link TaskReferenceApiResponse } and HTTP response
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: "deleteObjectstore",
172
- value: function deleteObjectstore(extId) {
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 deleteObjectstore");
197
+ throw new Error("Missing the required parameter 'extId' when calling deleteObjectstoreById");
179
198
  }
180
199
  var pathParams = {
181
200
  'extId': extId
@@ -192,31 +211,31 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
192
211
  var authNames = ['basicAuthScheme'];
193
212
  var contentTypes = [];
194
213
  var accepts = ['application/json'];
195
- var returnType = _TaskReferenceApiResponse["default"];
196
- return this.apiClient.callApi('/api/objects/v4.0.a2/operations/object-stores/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
214
+ var returnType = _DeleteObjectstoreApiResponse["default"];
215
+ return this.apiClient.callApi('/api/objects/v4.0.b1/config/object-stores/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
197
216
  }
198
217
 
199
218
  /**
200
- * Get the details of an Object store certificate
201
- * Get the details of the SSL certificate which can be used to connect to an Object store.
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
222
  * @param { String } extId The UUID of the certificate of an Object store.
204
223
  * @param {Object} args Additional Arguments
205
- * @return {Promise<CertificateApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CertificateApiResponse } and HTTP response
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: "getCertificate",
209
- value: function getCertificate(objectStoreExtId, extId) {
227
+ key: "getCaByCertificateId",
228
+ value: function getCaByCertificateId(objectStoreExtId, extId) {
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 getCertificate");
234
+ throw new Error("Missing the required parameter 'objectStoreExtId' when calling getCaByCertificateId");
216
235
  }
217
236
  // verify the required parameter 'extId' is set
218
237
  if (typeof extId === 'undefined' || extId === null) {
219
- throw new Error("Missing the required parameter 'extId' when calling getCertificate");
238
+ throw new Error("Missing the required parameter 'extId' when calling getCaByCertificateId");
220
239
  }
221
240
  var pathParams = {
222
241
  'objectStoreExtId': objectStoreExtId,
@@ -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 = _CertificateApiResponse["default"];
238
- return this.apiClient.callApi('/api/objects/v4.0.a2/operations/object-stores/{objectStoreExtId}/certificates/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
255
+ var accepts = ['application/octet-stream', 'application/json'];
256
+ var returnType = _GetCaApiResponse["default"];
257
+ return this.apiClient.callApi('/api/objects/v4.0.b1/config/object-stores/{objectStoreExtId}/certificates/{extId}/certificate-authority', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
239
258
  }
240
259
 
241
260
  /**
242
- * Get a list of the SSL certificates of an Object store
243
- * Get a list of the SSL certificates which can be used to access an Object store.
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 {Object} opts Optional parameters defined for the operation
246
- * @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.
247
- * @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.
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: "getCertificates",
269
- value: function getCertificates(objectStoreExtId, opts) {
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 getCertificates");
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 = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
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 = _CertificateListApiResponse["default"];
304
- return this.apiClient.callApi('/api/objects/v4.0.a2/operations/object-stores/{objectStoreExtId}/certificates', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
298
+ var returnType = _GetCertificateApiResponse["default"];
299
+ return this.apiClient.callApi('/api/objects/v4.0.b1/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. &#x60;state&#x60; string (State of the Object store) Enum for the state of the Object store. | Enum | Description | | ----------- | ----------- | | &#x60;\&quot;OBJECT_STORE_DEPLOYING\&quot;&#x60; | 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_ERROR state if the deployment fails. | | &#x60;\&quot;OBJECT_STORE_OPERATION_ERROR\&quot;&#x60; | 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. | | &#x60;\&quot;OBJECT_STORE_CREATE_CERT_ERROR\&quot;&#x60; | 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. | | &#x60;\&quot;OBJECT_STORE_OPERATION_PENDING\&quot;&#x60; | 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_ERROR state if the operation fails, or the OBJECT_STORE_AVAILABLE state if the operation is successful. | | &#x60;\&quot;OBJECT_STORE_INPUT\&quot;&#x60; | The Object store is in this state if it has not been deployed. | | &#x60;\&quot;OBJECT_STORE_CREATING_CERT\&quot;&#x60; | 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_CREATE_CERT_ERROR state if an error occurs while creating the certificate. | | &#x60;\&quot;OBJECT_STORE_AVAILABLE\&quot;&#x60; | 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. | | &#x60;\&quot;OBJECT_STORE_DELETE_INPUT_ERROR\&quot;&#x60; | An undeployed Object store enters this state if there is an error deleting it. Deleting the Object store can be retried from this state. | | &#x60;\&quot;OBJECT_STORE_DELETING_INPUT\&quot;&#x60; | An undeployed Object store being deleted is in this state. It will be either deleted or move to the OBJECT_STORE_DELETE_INPUT_ERROR state if the deletion fails. | | &#x60;\&quot;OBJECT_STORE_DELETE_ERROR\&quot;&#x60; | 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. | | &#x60;\&quot;OBJECT_STORE_DEPLOYMENT_ERROR\&quot;&#x60; | 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. | | &#x60;\&quot;OBJECT_STORE_DELETING\&quot;&#x60; | 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_DELETE_ERROR state if the deletion fails. |
304
+ * Get an Object store for the provided UUID. &#x60;state&#x60; string (State of the Object store) Enum for the state of the Object store. | Enum | Description | | ----------- | ----------- | | &#x60;\&quot;DEPLOYING_OBJECT_STORE\&quot;&#x60; | 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. | | &#x60;\&quot;OBJECT_STORE_OPERATION_FAILED\&quot;&#x60; | 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. | | &#x60;\&quot;OBJECT_STORE_CERT_CREATION_FAILED\&quot;&#x60; | 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. | | &#x60;\&quot;OBJECT_STORE_OPERATION_PENDING\&quot;&#x60; | 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. | | &#x60;\&quot;UNDEPLOYED_OBJECT_STORE\&quot;&#x60; | The Object store is in this state if it has not been deployed. | | &#x60;\&quot;CREATING_OBJECT_STORE_CERT\&quot;&#x60; | 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. | | &#x60;\&quot;OBJECT_STORE_AVAILABLE\&quot;&#x60; | 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. | | &#x60;\&quot;OBJECT_STORE_DELETION_FAILED\&quot;&#x60; | 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. | | &#x60;\&quot;OBJECT_STORE_DEPLOYMENT_FAILED\&quot;&#x60; | 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. | | &#x60;\&quot;DELETING_OBJECT_STORE\&quot;&#x60; | 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} opts Optional parameters defined for the operation
312
- * @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.
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: "getObjectstore",
319
- value: function getObjectstore(extId, opts) {
310
+ key: "getObjectstoreById",
311
+ value: function getObjectstoreById(extId) {
320
312
  var _this6 = this;
321
- var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
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 getObjectstore");
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 = _objectSpread({}, opts.hasOwnProperty('$expand') ? {
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,63 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
342
331
  var authNames = ['basicAuthScheme'];
343
332
  var contentTypes = [];
344
333
  var accepts = ['application/json'];
345
- var returnType = _ObjectstoreApiResponse["default"];
346
- return this.apiClient.callApi('/api/objects/v4.0.a2/operations/object-stores/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
334
+ var returnType = _GetObjectstoreApiResponse["default"];
335
+ return this.apiClient.callApi('/api/objects/v4.0.b1/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
349
+ * @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.
350
+ - alternateFqdns
351
+ - alternateFqdns/value
352
+ * @param {Object} args Additional Arguments
353
+ * @return {Promise<ListCertificatesApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListCertificatesApiResponse } and HTTP response
354
+ */
355
+ }, {
356
+ key: "listCertificatesByObjectstoreId",
357
+ value: function listCertificatesByObjectstoreId(objectStoreExtId, opts) {
358
+ var _this7 = this;
359
+ var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
360
+ opts = opts || {};
361
+ var postBody = null;
362
+ // verify the required parameter 'objectStoreExtId' is set
363
+ if (typeof objectStoreExtId === 'undefined' || objectStoreExtId === null) {
364
+ throw new Error("Missing the required parameter 'objectStoreExtId' when calling listCertificatesByObjectstoreId");
365
+ }
366
+ var pathParams = {
367
+ 'objectStoreExtId': objectStoreExtId
368
+ };
369
+ var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
370
+ '$page': opts['$page']
371
+ } : {}), opts.hasOwnProperty('$limit') ? {
372
+ '$limit': opts['$limit']
373
+ } : {}), opts.hasOwnProperty('$filter') ? {
374
+ '$filter': opts['$filter']
375
+ } : {}), opts.hasOwnProperty('$select') ? {
376
+ '$select': opts['$select']
377
+ } : {});
378
+ var headersToInclude = {};
379
+ Object.keys(argMap).forEach(function (header) {
380
+ if (!_classPrivateFieldGet(_headersToSkip, _this7).has(header.toLowerCase())) {
381
+ headersToInclude[header] = argMap[header];
382
+ }
383
+ });
384
+ var headerParams = _objectSpread({}, headersToInclude);
385
+ var formParams = {};
386
+ var authNames = ['basicAuthScheme'];
387
+ var contentTypes = [];
388
+ var accepts = ['application/json'];
389
+ var returnType = _ListCertificatesApiResponse["default"];
390
+ return this.apiClient.callApi('/api/objects/v4.0.b1/config/object-stores/{objectStoreExtId}/certificates', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
347
391
  }
348
392
 
349
393
  /**
@@ -355,8 +399,8 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
355
399
  * @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
400
  * 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
401
  * The filter can be applied to the following fields:<br>
358
- * - certificateReference<br>
359
- * - clusterReference<br>
402
+ * - certificateExtIds<br>
403
+ * - clusterExtId<br>
360
404
  * - creationTime<br>
361
405
  * - deploymentVersion<br>
362
406
  * - description<br>
@@ -364,9 +408,10 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
364
408
  * - lastUpdateTime<br>
365
409
  * - name<br>
366
410
  * - numWorkerNodes<br>
411
+ * - publicNetworkIps/ipv4/value<br>
412
+ * - publicNetworkIps/ipv6/value<br>
367
413
  * - publicNetworkReference<br>
368
414
  * - region<br>
369
- * - state<br>
370
415
  * - storageNetworkDnsIp/ipv4/value<br>
371
416
  * - storageNetworkDnsIp/ipv6/value<br>
372
417
  * - storageNetworkReference<br>
@@ -375,8 +420,7 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
375
420
  * - totalCapacityGiB
376
421
  * @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
422
  * The orderby can be applied to the following fields:<br>
378
- * - certificateReference<br>
379
- * - clusterReference<br>
423
+ * - clusterExtId<br>
380
424
  * - creationTime<br>
381
425
  * - deploymentVersion<br>
382
426
  * - description<br>
@@ -386,50 +430,38 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
386
430
  * - numWorkerNodes<br>
387
431
  * - publicNetworkReference<br>
388
432
  * - region<br>
389
- * - state<br>
390
- * - storageNetworkDnsIp/ipv4/value<br>
391
- * - storageNetworkDnsIp/ipv6/value<br>
392
433
  * - storageNetworkReference<br>
393
- * - storageNetworkVip/ipv4/value<br>
394
- * - storageNetworkVip/ipv6/value<br>
395
434
  * - totalCapacityGiB
396
435
  * @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
- - certificate
436
+ - certificates
398
437
  * @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
- - certificateReference
400
- - clusterReference
438
+ - certificateExtIds
439
+ - clusterExtId
401
440
  - creationTime
402
441
  - deploymentVersion
403
442
  - description
404
443
  - domain
405
- - extId
406
444
  - lastUpdateTime
407
- - links
408
- - metadata
409
445
  - name
410
446
  - numWorkerNodes
411
447
  - publicNetworkIps
448
+ - publicNetworkIps/ipv4/value
412
449
  - publicNetworkReference
413
450
  - region
414
451
  - state
415
- - storageNetworkDnsIp/ipv4/prefixLength
452
+ - storageNetworkDnsIp
416
453
  - storageNetworkDnsIp/ipv4/value
417
- - storageNetworkDnsIp/ipv6/prefixLength
418
- - storageNetworkDnsIp/ipv6/value
419
454
  - storageNetworkReference
420
- - storageNetworkVip/ipv4/prefixLength
455
+ - storageNetworkVip
421
456
  - storageNetworkVip/ipv4/value
422
- - storageNetworkVip/ipv6/prefixLength
423
- - storageNetworkVip/ipv6/value
424
- - tenantId
425
457
  - totalCapacityGiB
426
458
  * @param {Object} args Additional Arguments
427
- * @return {Promise<ObjectstoreListApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ObjectstoreListApiResponse } and HTTP response
459
+ * @return {Promise<ListObjectstoresApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListObjectstoresApiResponse } and HTTP response
428
460
  */
429
461
  }, {
430
- key: "getObjectstores",
431
- value: function getObjectstores(opts) {
432
- var _this7 = this;
462
+ key: "listObjectstores",
463
+ value: function listObjectstores(opts) {
464
+ var _this8 = this;
433
465
  var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
434
466
  opts = opts || {};
435
467
  var postBody = null;
@@ -449,7 +481,7 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
449
481
  } : {});
450
482
  var headersToInclude = {};
451
483
  Object.keys(argMap).forEach(function (header) {
452
- if (!_classPrivateFieldGet(_headersToSkip, _this7).has(header.toLowerCase())) {
484
+ if (!_classPrivateFieldGet(_headersToSkip, _this8).has(header.toLowerCase())) {
453
485
  headersToInclude[header] = argMap[header];
454
486
  }
455
487
  });
@@ -458,36 +490,36 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
458
490
  var authNames = ['basicAuthScheme'];
459
491
  var contentTypes = [];
460
492
  var accepts = ['application/json'];
461
- var returnType = _ObjectstoreListApiResponse["default"];
462
- return this.apiClient.callApi('/api/objects/v4.0.a2/operations/object-stores', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
493
+ var returnType = _ListObjectstoresApiResponse["default"];
494
+ return this.apiClient.callApi('/api/objects/v4.0.b1/config/object-stores', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
463
495
  }
464
496
 
465
497
  /**
466
498
  * Update an Object store
467
- * Update an Object store. The deployment of an Object store can be restarted from the state OBJECT_STORE_DEPLOYMENT_ERROR.
468
- * @param { Required<Pick<Objectstore, 'name'>> & Partial<Objectstore> } body specification
499
+ * Update an Object store. The deployment of an Object store can be restarted from the state OBJECT_STORE_DEPLOYMENT_FAILED.
500
+ * @param { Required<Pick<ObjectStore, 'name'>> & Partial<ObjectStore> } body specification
469
501
  * @param { String } extId The UUID of the Object store.
470
502
  * @param {Object} args Additional Arguments
471
- * @return {Promise<TaskReferenceApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link TaskReferenceApiResponse } and HTTP response
503
+ * @return {Promise<UpdateObjectstoreApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateObjectstoreApiResponse } and HTTP response
472
504
  */
473
505
  }, {
474
- key: "updateObjectstore",
475
- value: function updateObjectstore(extId, body) {
476
- var _this8 = this;
506
+ key: "updateObjectstoreById",
507
+ value: function updateObjectstoreById(extId, body) {
508
+ var _this9 = this;
477
509
  var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
478
510
  var postBody = null;
479
- if (body instanceof _Objectstore["default"] && typeof body.toJson === 'function') {
511
+ if (body instanceof _ObjectStore["default"] && typeof body.toJson === 'function') {
480
512
  postBody = body.toJson();
481
513
  } else {
482
514
  postBody = body;
483
515
  }
484
516
  // verify the required parameter 'extId' is set
485
517
  if (typeof extId === 'undefined' || extId === null) {
486
- throw new Error("Missing the required parameter 'extId' when calling updateObjectstore");
518
+ throw new Error("Missing the required parameter 'extId' when calling updateObjectstoreById");
487
519
  }
488
520
  // verify the required parameter 'body' is set
489
521
  if (typeof postBody === 'undefined' || postBody === null) {
490
- throw new Error("Invalid body when calling updateObjectstore");
522
+ throw new Error("Invalid body when calling updateObjectstoreById");
491
523
  }
492
524
  var pathParams = {
493
525
  'extId': extId
@@ -495,7 +527,7 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
495
527
  var queryParams = {};
496
528
  var headersToInclude = {};
497
529
  Object.keys(argMap).forEach(function (header) {
498
- if (!_classPrivateFieldGet(_headersToSkip, _this8).has(header.toLowerCase())) {
530
+ if (!_classPrivateFieldGet(_headersToSkip, _this9).has(header.toLowerCase())) {
499
531
  headersToInclude[header] = argMap[header];
500
532
  }
501
533
  });
@@ -505,8 +537,8 @@ var ObjectStoresApi = exports.ObjectStoresApi = /*#__PURE__*/function () {
505
537
  var authNames = ['basicAuthScheme'];
506
538
  var contentTypes = ['application/json'];
507
539
  var accepts = ['application/json'];
508
- var returnType = _TaskReferenceApiResponse["default"];
509
- return this.apiClient.callApi('/api/objects/v4.0.a2/operations/object-stores/{extId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
540
+ var returnType = _UpdateObjectstoreApiResponse["default"];
541
+ return this.apiClient.callApi('/api/objects/v4.0.b1/config/object-stores/{extId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
510
542
  }
511
543
  }], [{
512
544
  key: "ApiClient",