oci-ocvp 2.74.0 → 2.75.0

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 (305) hide show
  1. package/index.d.ts +4 -1
  2. package/index.js +5 -2
  3. package/index.js.map +1 -1
  4. package/lib/client.d.ts +193 -32
  5. package/lib/client.js +751 -85
  6. package/lib/client.js.map +1 -1
  7. package/lib/cluster-waiter.d.ts +31 -0
  8. package/lib/cluster-waiter.js +67 -0
  9. package/lib/cluster-waiter.js.map +1 -0
  10. package/lib/esxihost-waiter.d.ts +1 -1
  11. package/lib/esxihost-waiter.js +1 -1
  12. package/lib/model/action-types.d.ts +1 -1
  13. package/lib/model/action-types.js +1 -1
  14. package/lib/model/change-sddc-compartment-details.d.ts +1 -1
  15. package/lib/model/change-sddc-compartment-details.js +1 -1
  16. package/lib/model/{supported-sku-summary.d.ts → cluster-collection.d.ts} +8 -9
  17. package/lib/model/{supported-sku-summary-collection.js → cluster-collection.js} +10 -10
  18. package/lib/model/cluster-collection.js.map +1 -0
  19. package/lib/model/cluster-summary.d.ts +137 -0
  20. package/lib/model/{supported-sku-summary.js → cluster-summary.js} +8 -8
  21. package/lib/model/cluster-summary.js.map +1 -0
  22. package/lib/model/cluster.d.ts +208 -0
  23. package/lib/model/cluster.js +89 -0
  24. package/lib/model/cluster.js.map +1 -0
  25. package/lib/model/{sku.d.ts → commitment.d.ts} +6 -6
  26. package/lib/model/commitment.js +43 -0
  27. package/lib/model/commitment.js.map +1 -0
  28. package/lib/model/create-cluster-details.d.ts +138 -0
  29. package/lib/model/create-cluster-details.js +69 -0
  30. package/lib/model/create-cluster-details.js.map +1 -0
  31. package/lib/model/create-esxi-host-details.d.ts +21 -30
  32. package/lib/model/create-esxi-host-details.js +1 -1
  33. package/lib/model/create-esxi-host-details.js.map +1 -1
  34. package/lib/model/create-sddc-details.d.ts +11 -142
  35. package/lib/model/create-sddc-details.js +5 -9
  36. package/lib/model/create-sddc-details.js.map +1 -1
  37. package/lib/model/{datastore-summary.d.ts → datastore-details.d.ts} +5 -5
  38. package/lib/model/{datastore-summary.js → datastore-details.js} +8 -8
  39. package/lib/model/{datastore-summary.js.map → datastore-details.js.map} +1 -1
  40. package/lib/model/datastore-info.d.ts +1 -1
  41. package/lib/model/datastore-info.js +1 -1
  42. package/lib/model/datastore-types.d.ts +1 -1
  43. package/lib/model/datastore-types.js +1 -1
  44. package/lib/model/downgrade-hcx-details.d.ts +1 -1
  45. package/lib/model/downgrade-hcx-details.js +1 -1
  46. package/lib/model/esxi-host-collection.d.ts +1 -1
  47. package/lib/model/esxi-host-collection.js +1 -1
  48. package/lib/model/esxi-host-summary.d.ts +15 -9
  49. package/lib/model/esxi-host-summary.js +1 -1
  50. package/lib/model/esxi-host-summary.js.map +1 -1
  51. package/lib/model/esxi-host.d.ts +21 -10
  52. package/lib/model/esxi-host.js +1 -1
  53. package/lib/model/esxi-host.js.map +1 -1
  54. package/lib/model/hcx-license-status.d.ts +1 -1
  55. package/lib/model/hcx-license-status.js +1 -1
  56. package/lib/model/hcx-license-summary.d.ts +1 -1
  57. package/lib/model/hcx-license-summary.js +1 -1
  58. package/lib/model/{sddc-types.d.ts → hcx-modes.d.ts} +9 -8
  59. package/lib/model/{sku.js → hcx-modes.js} +15 -16
  60. package/lib/model/hcx-modes.js.map +1 -0
  61. package/lib/model/index.d.ts +37 -11
  62. package/lib/model/index.js +39 -12
  63. package/lib/model/index.js.map +1 -1
  64. package/lib/model/initial-cluster-configuration.d.ts +102 -0
  65. package/lib/model/initial-cluster-configuration.js +69 -0
  66. package/lib/model/initial-cluster-configuration.js.map +1 -0
  67. package/lib/model/initial-configuration.d.ts +29 -0
  68. package/lib/model/initial-configuration.js +63 -0
  69. package/lib/model/initial-configuration.js.map +1 -0
  70. package/lib/model/lifecycle-states.d.ts +1 -1
  71. package/lib/model/lifecycle-states.js +1 -1
  72. package/lib/model/network-configuration.d.ts +183 -0
  73. package/lib/model/network-configuration.js +31 -0
  74. package/lib/model/network-configuration.js.map +1 -0
  75. package/lib/model/operation-status.d.ts +1 -1
  76. package/lib/model/operation-status.js +1 -1
  77. package/lib/model/operation-types.d.ts +5 -1
  78. package/lib/model/operation-types.js +5 -1
  79. package/lib/model/operation-types.js.map +1 -1
  80. package/lib/model/password-types.d.ts +31 -0
  81. package/lib/model/password-types.js +42 -0
  82. package/lib/model/password-types.js.map +1 -0
  83. package/lib/model/replace-host-details.d.ts +32 -0
  84. package/lib/model/replace-host-details.js +31 -0
  85. package/lib/model/replace-host-details.js.map +1 -0
  86. package/lib/model/sddc-collection.d.ts +1 -1
  87. package/lib/model/sddc-collection.js +1 -1
  88. package/lib/model/sddc-password.d.ts +32 -0
  89. package/lib/model/sddc-password.js +31 -0
  90. package/lib/model/sddc-password.js.map +1 -0
  91. package/lib/model/sddc-summary.d.ts +5 -25
  92. package/lib/model/sddc-summary.js +1 -1
  93. package/lib/model/sddc-summary.js.map +1 -1
  94. package/lib/model/sddc.d.ts +26 -263
  95. package/lib/model/sddc.js +7 -31
  96. package/lib/model/sddc.js.map +1 -1
  97. package/lib/model/sort-orders.d.ts +1 -1
  98. package/lib/model/sort-orders.js +1 -1
  99. package/lib/model/supported-commitment-summary-collection.d.ts +29 -0
  100. package/lib/model/supported-commitment-summary-collection.js +63 -0
  101. package/lib/model/supported-commitment-summary-collection.js.map +1 -0
  102. package/lib/model/{supported-sku-summary-collection.d.ts → supported-commitment-summary.d.ts} +8 -8
  103. package/lib/model/supported-commitment-summary.js +31 -0
  104. package/lib/model/supported-commitment-summary.js.map +1 -0
  105. package/lib/model/supported-esxi-software-version-summary.d.ts +38 -0
  106. package/lib/model/supported-esxi-software-version-summary.js +31 -0
  107. package/lib/model/supported-esxi-software-version-summary.js.map +1 -0
  108. package/lib/model/supported-host-shape-collection.d.ts +1 -1
  109. package/lib/model/supported-host-shape-collection.js +1 -1
  110. package/lib/model/supported-host-shape-summary.d.ts +9 -14
  111. package/lib/model/supported-host-shape-summary.js +5 -11
  112. package/lib/model/supported-host-shape-summary.js.map +1 -1
  113. package/lib/model/supported-vmware-software-version-collection.d.ts +1 -1
  114. package/lib/model/supported-vmware-software-version-collection.js +1 -1
  115. package/lib/model/supported-vmware-software-version-summary.d.ts +7 -1
  116. package/lib/model/supported-vmware-software-version-summary.js +35 -3
  117. package/lib/model/supported-vmware-software-version-summary.js.map +1 -1
  118. package/lib/model/update-cluster-details.d.ts +75 -0
  119. package/lib/model/update-cluster-details.js +59 -0
  120. package/lib/model/update-cluster-details.js.map +1 -0
  121. package/lib/model/update-esxi-host-details.d.ts +5 -5
  122. package/lib/model/update-esxi-host-details.js +1 -1
  123. package/lib/model/update-sddc-details.d.ts +11 -64
  124. package/lib/model/update-sddc-details.js +1 -1
  125. package/lib/model/update-sddc-details.js.map +1 -1
  126. package/lib/model/vsphere-license.d.ts +1 -1
  127. package/lib/model/vsphere-license.js +1 -1
  128. package/lib/model/vsphere-types.d.ts +30 -0
  129. package/lib/model/{sddc-types.js → vsphere-types.js} +14 -14
  130. package/lib/model/vsphere-types.js.map +1 -0
  131. package/lib/model/vsphere-upgrade-object.d.ts +1 -1
  132. package/lib/model/vsphere-upgrade-object.js +1 -1
  133. package/lib/model/work-request-collection.d.ts +1 -1
  134. package/lib/model/work-request-collection.js +1 -1
  135. package/lib/model/work-request-error-collection.d.ts +1 -1
  136. package/lib/model/work-request-error-collection.js +1 -1
  137. package/lib/model/work-request-error.d.ts +1 -1
  138. package/lib/model/work-request-error.js +1 -1
  139. package/lib/model/work-request-log-entry-collection.d.ts +1 -1
  140. package/lib/model/work-request-log-entry-collection.js +1 -1
  141. package/lib/model/work-request-log-entry.d.ts +1 -1
  142. package/lib/model/work-request-log-entry.js +1 -1
  143. package/lib/model/work-request-resource.d.ts +1 -1
  144. package/lib/model/work-request-resource.js +1 -1
  145. package/lib/model/work-request.d.ts +1 -1
  146. package/lib/model/work-request.js +1 -1
  147. package/lib/request/cancel-downgrade-hcx-request.d.ts +2 -2
  148. package/lib/request/cancel-downgrade-hcx-request.js +1 -1
  149. package/lib/request/change-sddc-compartment-request.d.ts +2 -2
  150. package/lib/request/change-sddc-compartment-request.js +1 -1
  151. package/lib/request/create-cluster-request.d.ts +38 -0
  152. package/lib/request/{list-supported-skus-request.js → create-cluster-request.js} +2 -2
  153. package/lib/request/create-cluster-request.js.map +1 -0
  154. package/lib/request/create-esxi-host-request.d.ts +2 -2
  155. package/lib/request/create-esxi-host-request.js +1 -1
  156. package/lib/request/create-sddc-request.d.ts +2 -2
  157. package/lib/request/create-sddc-request.js +1 -1
  158. package/lib/request/delete-cluster-request.d.ts +38 -0
  159. package/lib/{response/list-supported-skus-response.js → request/delete-cluster-request.js} +2 -2
  160. package/lib/request/delete-cluster-request.js.map +1 -0
  161. package/lib/request/delete-esxi-host-request.d.ts +2 -2
  162. package/lib/request/delete-esxi-host-request.js +1 -1
  163. package/lib/request/delete-sddc-request.d.ts +2 -2
  164. package/lib/request/delete-sddc-request.js +1 -1
  165. package/lib/request/downgrade-hcx-request.d.ts +2 -2
  166. package/lib/request/downgrade-hcx-request.js +1 -1
  167. package/lib/request/get-cluster-request.d.ts +29 -0
  168. package/lib/request/get-cluster-request.js +15 -0
  169. package/lib/request/get-cluster-request.js.map +1 -0
  170. package/lib/request/get-esxi-host-request.d.ts +2 -2
  171. package/lib/request/get-esxi-host-request.js +1 -1
  172. package/lib/request/get-sddc-request.d.ts +2 -2
  173. package/lib/request/get-sddc-request.js +1 -1
  174. package/lib/request/get-work-request-request.d.ts +2 -2
  175. package/lib/request/get-work-request-request.js +1 -1
  176. package/lib/request/index.d.ts +19 -3
  177. package/lib/request/index.js +4 -2
  178. package/lib/request/index.js.map +1 -1
  179. package/lib/request/inplace-upgrade-request.d.ts +47 -0
  180. package/lib/request/inplace-upgrade-request.js +15 -0
  181. package/lib/request/inplace-upgrade-request.js.map +1 -0
  182. package/lib/request/list-clusters-request.d.ts +80 -0
  183. package/lib/request/list-clusters-request.js +24 -0
  184. package/lib/request/list-clusters-request.js.map +1 -0
  185. package/lib/request/list-esxi-hosts-request.d.ts +7 -2
  186. package/lib/request/list-esxi-hosts-request.js +1 -1
  187. package/lib/request/list-esxi-hosts-request.js.map +1 -1
  188. package/lib/request/list-sddcs-request.d.ts +2 -2
  189. package/lib/request/list-sddcs-request.js +1 -1
  190. package/lib/request/{list-supported-skus-request.d.ts → list-supported-commitments-request.d.ts} +3 -3
  191. package/lib/request/list-supported-commitments-request.js +15 -0
  192. package/lib/request/list-supported-commitments-request.js.map +1 -0
  193. package/lib/request/list-supported-host-shapes-request.d.ts +9 -5
  194. package/lib/request/list-supported-host-shapes-request.js +1 -1
  195. package/lib/request/list-supported-vmware-software-versions-request.d.ts +10 -2
  196. package/lib/request/list-supported-vmware-software-versions-request.js +1 -1
  197. package/lib/request/list-work-request-errors-request.d.ts +2 -2
  198. package/lib/request/list-work-request-errors-request.js +1 -1
  199. package/lib/request/list-work-request-logs-request.d.ts +2 -2
  200. package/lib/request/list-work-request-logs-request.js +1 -1
  201. package/lib/request/list-work-requests-request.d.ts +2 -2
  202. package/lib/request/list-work-requests-request.js +1 -1
  203. package/lib/request/refresh-hcx-license-status-request.d.ts +2 -2
  204. package/lib/request/refresh-hcx-license-status-request.js +1 -1
  205. package/lib/request/replace-host-request.d.ts +52 -0
  206. package/lib/request/replace-host-request.js +15 -0
  207. package/lib/request/replace-host-request.js.map +1 -0
  208. package/lib/request/retrieve-password-request.d.ts +52 -0
  209. package/lib/request/retrieve-password-request.js +15 -0
  210. package/lib/request/retrieve-password-request.js.map +1 -0
  211. package/lib/request/swap-billing-request.d.ts +2 -2
  212. package/lib/request/swap-billing-request.js +1 -1
  213. package/lib/request/update-cluster-request.d.ts +43 -0
  214. package/lib/request/update-cluster-request.js +15 -0
  215. package/lib/request/update-cluster-request.js.map +1 -0
  216. package/lib/request/update-esxi-host-request.d.ts +2 -2
  217. package/lib/request/update-esxi-host-request.js +1 -1
  218. package/lib/request/update-sddc-request.d.ts +2 -2
  219. package/lib/request/update-sddc-request.js +1 -1
  220. package/lib/request/upgrade-hcx-request.d.ts +2 -2
  221. package/lib/request/upgrade-hcx-request.js +1 -1
  222. package/lib/response/cancel-downgrade-hcx-response.d.ts +1 -1
  223. package/lib/response/cancel-downgrade-hcx-response.js +1 -1
  224. package/lib/response/change-sddc-compartment-response.d.ts +1 -1
  225. package/lib/response/change-sddc-compartment-response.js +1 -1
  226. package/lib/response/create-cluster-response.d.ts +25 -0
  227. package/lib/response/create-cluster-response.js +15 -0
  228. package/lib/response/create-cluster-response.js.map +1 -0
  229. package/lib/response/create-esxi-host-response.d.ts +1 -1
  230. package/lib/response/create-esxi-host-response.js +1 -1
  231. package/lib/response/create-sddc-response.d.ts +1 -1
  232. package/lib/response/create-sddc-response.js +1 -1
  233. package/lib/response/delete-cluster-response.d.ts +25 -0
  234. package/lib/response/delete-cluster-response.js +15 -0
  235. package/lib/response/delete-cluster-response.js.map +1 -0
  236. package/lib/response/delete-esxi-host-response.d.ts +1 -1
  237. package/lib/response/delete-esxi-host-response.js +1 -1
  238. package/lib/response/delete-sddc-response.d.ts +1 -1
  239. package/lib/response/delete-sddc-response.js +1 -1
  240. package/lib/response/downgrade-hcx-response.d.ts +1 -1
  241. package/lib/response/downgrade-hcx-response.js +1 -1
  242. package/lib/response/get-cluster-response.d.ts +30 -0
  243. package/lib/response/get-cluster-response.js +15 -0
  244. package/lib/response/get-cluster-response.js.map +1 -0
  245. package/lib/response/get-esxi-host-response.d.ts +1 -1
  246. package/lib/response/get-esxi-host-response.js +1 -1
  247. package/lib/response/get-sddc-response.d.ts +1 -1
  248. package/lib/response/get-sddc-response.js +1 -1
  249. package/lib/response/get-work-request-response.d.ts +1 -1
  250. package/lib/response/get-work-request-response.js +1 -1
  251. package/lib/response/index.d.ts +19 -3
  252. package/lib/response/index.js +1 -1
  253. package/lib/response/inplace-upgrade-response.d.ts +25 -0
  254. package/lib/response/inplace-upgrade-response.js +15 -0
  255. package/lib/response/inplace-upgrade-response.js.map +1 -0
  256. package/lib/response/{list-supported-skus-response.d.ts → list-clusters-response.d.ts} +4 -4
  257. package/lib/response/list-clusters-response.js +15 -0
  258. package/lib/response/list-clusters-response.js.map +1 -0
  259. package/lib/response/list-esxi-hosts-response.d.ts +1 -1
  260. package/lib/response/list-esxi-hosts-response.js +1 -1
  261. package/lib/response/list-sddcs-response.d.ts +1 -1
  262. package/lib/response/list-sddcs-response.js +1 -1
  263. package/lib/response/list-supported-commitments-response.d.ts +32 -0
  264. package/lib/response/list-supported-commitments-response.js +15 -0
  265. package/lib/response/list-supported-commitments-response.js.map +1 -0
  266. package/lib/response/list-supported-host-shapes-response.d.ts +1 -1
  267. package/lib/response/list-supported-host-shapes-response.js +1 -1
  268. package/lib/response/list-supported-vmware-software-versions-response.d.ts +1 -1
  269. package/lib/response/list-supported-vmware-software-versions-response.js +1 -1
  270. package/lib/response/list-work-request-errors-response.d.ts +1 -1
  271. package/lib/response/list-work-request-errors-response.js +1 -1
  272. package/lib/response/list-work-request-logs-response.d.ts +1 -1
  273. package/lib/response/list-work-request-logs-response.js +1 -1
  274. package/lib/response/list-work-requests-response.d.ts +1 -1
  275. package/lib/response/list-work-requests-response.js +1 -1
  276. package/lib/response/refresh-hcx-license-status-response.d.ts +1 -1
  277. package/lib/response/refresh-hcx-license-status-response.js +1 -1
  278. package/lib/response/replace-host-response.d.ts +25 -0
  279. package/lib/response/replace-host-response.js +15 -0
  280. package/lib/response/replace-host-response.js.map +1 -0
  281. package/lib/response/retrieve-password-response.d.ts +30 -0
  282. package/lib/response/retrieve-password-response.js +15 -0
  283. package/lib/response/retrieve-password-response.js.map +1 -0
  284. package/lib/response/swap-billing-response.d.ts +1 -1
  285. package/lib/response/swap-billing-response.js +1 -1
  286. package/lib/response/update-cluster-response.d.ts +30 -0
  287. package/lib/response/update-cluster-response.js +15 -0
  288. package/lib/response/update-cluster-response.js.map +1 -0
  289. package/lib/response/update-esxi-host-response.d.ts +1 -1
  290. package/lib/response/update-esxi-host-response.js +1 -1
  291. package/lib/response/update-sddc-response.d.ts +1 -1
  292. package/lib/response/update-sddc-response.js +1 -1
  293. package/lib/response/upgrade-hcx-response.d.ts +1 -1
  294. package/lib/response/upgrade-hcx-response.js +1 -1
  295. package/lib/sddc-waiter.d.ts +1 -1
  296. package/lib/sddc-waiter.js +1 -1
  297. package/lib/workrequest-waiter.d.ts +1 -1
  298. package/lib/workrequest-waiter.js +1 -1
  299. package/package.json +3 -3
  300. package/lib/model/sddc-types.js.map +0 -1
  301. package/lib/model/sku.js.map +0 -1
  302. package/lib/model/supported-sku-summary-collection.js.map +0 -1
  303. package/lib/model/supported-sku-summary.js.map +0 -1
  304. package/lib/request/list-supported-skus-request.js.map +0 -1
  305. package/lib/response/list-supported-skus-response.js.map +0 -1
package/lib/client.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Use the Oracle Cloud VMware API to create SDDCs and manage ESXi hosts and software.
5
5
  For more information, see [Oracle Cloud VMware Solution](/iaas/Content/VMware/Concepts/ocvsoverview.htm).
6
6
 
7
- * OpenAPI spec version: 20200501
7
+ * OpenAPI spec version: 20230701
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OracleSDKGenerator.
@@ -42,9 +42,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
42
42
  });
43
43
  };
44
44
  Object.defineProperty(exports, "__esModule", { value: true });
45
- exports.WorkRequestClient = exports.WorkRequestApiKeys = exports.SddcClient = exports.SddcApiKeys = exports.EsxiHostClient = exports.EsxiHostApiKeys = void 0;
45
+ exports.WorkRequestClient = exports.WorkRequestApiKeys = exports.SddcClient = exports.SddcApiKeys = exports.EsxiHostClient = exports.EsxiHostApiKeys = exports.ClusterClient = exports.ClusterApiKeys = void 0;
46
46
  const common = require("oci-common");
47
47
  const model = __importStar(require("./model"));
48
+ const cluster_waiter_1 = require("./cluster-waiter");
48
49
  const esxihost_waiter_1 = require("./esxihost-waiter");
49
50
  const sddc_waiter_1 = require("./sddc-waiter");
50
51
  const workrequest_waiter_1 = require("./workrequest-waiter");
@@ -52,6 +53,474 @@ const oci_common_1 = require("oci-common");
52
53
  // ===============================================
53
54
  // This file is autogenerated - Please do not edit
54
55
  // ===============================================
56
+ var ClusterApiKeys;
57
+ (function (ClusterApiKeys) {
58
+ })(ClusterApiKeys = exports.ClusterApiKeys || (exports.ClusterApiKeys = {}));
59
+ /**
60
+ * This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
61
+ */
62
+ class ClusterClient {
63
+ constructor(params, clientConfiguration) {
64
+ this["_realmSpecificEndpointTemplateEnabled"] = false;
65
+ this["_endpoint"] = "";
66
+ this["_defaultHeaders"] = {};
67
+ this._circuitBreaker = null;
68
+ this._httpOptions = undefined;
69
+ this._bodyDuplexMode = undefined;
70
+ this.targetService = "Cluster";
71
+ this._regionId = "";
72
+ this._lastSetRegionOrRegionId = "";
73
+ const requestSigner = params.authenticationDetailsProvider
74
+ ? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
75
+ : null;
76
+ if (clientConfiguration) {
77
+ this._clientConfiguration = clientConfiguration;
78
+ this._circuitBreaker = clientConfiguration.circuitBreaker
79
+ ? clientConfiguration.circuitBreaker.circuit
80
+ : null;
81
+ this._httpOptions = clientConfiguration.httpOptions
82
+ ? clientConfiguration.httpOptions
83
+ : undefined;
84
+ this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
85
+ ? clientConfiguration.bodyDuplexMode
86
+ : undefined;
87
+ }
88
+ // if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
89
+ const specCircuitBreakerEnabled = true;
90
+ if (!this._circuitBreaker &&
91
+ common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
92
+ (specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
93
+ this._circuitBreaker = new common.CircuitBreaker().circuit;
94
+ }
95
+ this._httpClient =
96
+ params.httpClient ||
97
+ new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
98
+ if (params.authenticationDetailsProvider &&
99
+ common.isRegionProvider(params.authenticationDetailsProvider)) {
100
+ const provider = params.authenticationDetailsProvider;
101
+ if (provider.getRegion()) {
102
+ this.region = provider.getRegion();
103
+ }
104
+ }
105
+ }
106
+ /**
107
+ * Get the endpoint that is being used to call (ex, https://www.example.com).
108
+ */
109
+ get endpoint() {
110
+ return this._endpoint;
111
+ }
112
+ /**
113
+ * Sets the endpoint to call (ex, https://www.example.com).
114
+ * @param endpoint The endpoint of the service.
115
+ */
116
+ set endpoint(endpoint) {
117
+ this._endpoint = endpoint;
118
+ this._endpoint = this._endpoint + "/20230701";
119
+ if (this.logger)
120
+ this.logger.info(`ClusterClient endpoint set to ${this._endpoint}`);
121
+ }
122
+ get logger() {
123
+ return common.LOG.logger;
124
+ }
125
+ /**
126
+ * Determines whether realm specific endpoint should be used or not.
127
+ * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
128
+ * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
129
+ */
130
+ set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
131
+ this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
132
+ if (this.logger)
133
+ this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
134
+ if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
135
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ClusterClient.serviceEndpointTemplate, this._region, ClusterClient.endpointServiceName);
136
+ }
137
+ else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
138
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ClusterClient.serviceEndpointTemplate, this._regionId, ClusterClient.endpointServiceName);
139
+ }
140
+ }
141
+ /**
142
+ * Sets the region to call (ex, Region.US_PHOENIX_1).
143
+ * Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
144
+ * @param region The region of the service.
145
+ */
146
+ set region(region) {
147
+ this._region = region;
148
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ClusterClient.serviceEndpointTemplate, region, ClusterClient.endpointServiceName);
149
+ this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
150
+ }
151
+ /**
152
+ * Sets the regionId to call (ex, 'us-phoenix-1').
153
+ *
154
+ * Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
155
+ * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
156
+ * and then call {@link #endpoint(String) endpoint}.
157
+ * @param regionId The public region ID.
158
+ */
159
+ set regionId(regionId) {
160
+ this._regionId = regionId;
161
+ this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ClusterClient.serviceEndpointTemplate, regionId, ClusterClient.endpointServiceName);
162
+ this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
163
+ }
164
+ /**
165
+ * Creates a new ClusterWaiter for resources for this service.
166
+ *
167
+ * @param config The waiter configuration for termination and delay strategy
168
+ * @return The service waiters.
169
+ */
170
+ createWaiters(config) {
171
+ this._waiters = new cluster_waiter_1.ClusterWaiter(this, config);
172
+ return this._waiters;
173
+ }
174
+ /**
175
+ * Gets the waiters available for resources for this service.
176
+ *
177
+ * @return The service waiters.
178
+ */
179
+ getWaiters() {
180
+ if (this._waiters) {
181
+ return this._waiters;
182
+ }
183
+ throw Error("Waiters do not exist. Please create waiters.");
184
+ }
185
+ /**
186
+ * Create a vSphere Cluster in software-defined data center (SDDC).
187
+ * <p>
188
+ Use the {@link WorkRequest} operations to track the
189
+ * creation of the Cluster.
190
+ * <p>
191
+ **Important:** You must configure the Cluster's networking resources with the security rules detailed in [Security Rules for Oracle Cloud VMware Solution SDDCs](https://docs.cloud.oracle.com/iaas/Content/VMware/Reference/ocvssecurityrules.htm). Otherwise, provisioning the SDDC will fail. The rules are based on the requirements set by VMware.
192
+ *
193
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
194
+ * @param CreateClusterRequest
195
+ * @return CreateClusterResponse
196
+ * @throws OciError when an error occurs
197
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/CreateCluster.ts.html |here} to see how to use CreateCluster API.
198
+ */
199
+ createCluster(createClusterRequest) {
200
+ return __awaiter(this, void 0, void 0, function* () {
201
+ if (this.logger)
202
+ this.logger.debug("Calling operation ClusterClient#createCluster.");
203
+ const operationName = "createCluster";
204
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Cluster/CreateCluster";
205
+ const pathParams = {};
206
+ const queryParams = {};
207
+ let headerParams = {
208
+ "Content-Type": common.Constants.APPLICATION_JSON,
209
+ "opc-retry-token": createClusterRequest.opcRetryToken,
210
+ "opc-request-id": createClusterRequest.opcRequestId
211
+ };
212
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
213
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createClusterRequest.retryConfiguration, specRetryConfiguration);
214
+ if (this.logger)
215
+ retrier.logger = this.logger;
216
+ const request = yield oci_common_1.composeRequest({
217
+ baseEndpoint: this._endpoint,
218
+ defaultHeaders: this._defaultHeaders,
219
+ path: "/clusters",
220
+ method: "POST",
221
+ bodyContent: common.ObjectSerializer.serialize(createClusterRequest.createClusterDetails, "CreateClusterDetails", model.CreateClusterDetails.getJsonObj),
222
+ pathParams: pathParams,
223
+ headerParams: headerParams,
224
+ queryParams: queryParams
225
+ });
226
+ try {
227
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
228
+ const sdkResponse = oci_common_1.composeResponse({
229
+ responseObject: {},
230
+ responseHeaders: [
231
+ {
232
+ value: response.headers.get("opc-work-request-id"),
233
+ key: "opcWorkRequestId",
234
+ dataType: "string"
235
+ },
236
+ {
237
+ value: response.headers.get("opc-request-id"),
238
+ key: "opcRequestId",
239
+ dataType: "string"
240
+ }
241
+ ]
242
+ });
243
+ return sdkResponse;
244
+ }
245
+ catch (err) {
246
+ throw err;
247
+ }
248
+ });
249
+ }
250
+ /**
251
+ * Deletes the specified Cluster, along with the other resources that were
252
+ * created with the Cluster. For example: the Compute instances, DNS records,
253
+ * and so on.
254
+ * <p>
255
+ Use the {@link WorkRequest} operations to track the
256
+ * deletion of the Cluster.
257
+ *
258
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
259
+ * @param DeleteClusterRequest
260
+ * @return DeleteClusterResponse
261
+ * @throws OciError when an error occurs
262
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/DeleteCluster.ts.html |here} to see how to use DeleteCluster API.
263
+ */
264
+ deleteCluster(deleteClusterRequest) {
265
+ return __awaiter(this, void 0, void 0, function* () {
266
+ if (this.logger)
267
+ this.logger.debug("Calling operation ClusterClient#deleteCluster.");
268
+ const operationName = "deleteCluster";
269
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Cluster/DeleteCluster";
270
+ const pathParams = {
271
+ "{clusterId}": deleteClusterRequest.clusterId
272
+ };
273
+ const queryParams = {};
274
+ let headerParams = {
275
+ "Content-Type": common.Constants.APPLICATION_JSON,
276
+ "if-match": deleteClusterRequest.ifMatch,
277
+ "opc-request-id": deleteClusterRequest.opcRequestId
278
+ };
279
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
280
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteClusterRequest.retryConfiguration, specRetryConfiguration);
281
+ if (this.logger)
282
+ retrier.logger = this.logger;
283
+ const request = yield oci_common_1.composeRequest({
284
+ baseEndpoint: this._endpoint,
285
+ defaultHeaders: this._defaultHeaders,
286
+ path: "/clusters/{clusterId}",
287
+ method: "DELETE",
288
+ pathParams: pathParams,
289
+ headerParams: headerParams,
290
+ queryParams: queryParams
291
+ });
292
+ try {
293
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
294
+ const sdkResponse = oci_common_1.composeResponse({
295
+ responseObject: {},
296
+ responseHeaders: [
297
+ {
298
+ value: response.headers.get("opc-work-request-id"),
299
+ key: "opcWorkRequestId",
300
+ dataType: "string"
301
+ },
302
+ {
303
+ value: response.headers.get("opc-request-id"),
304
+ key: "opcRequestId",
305
+ dataType: "string"
306
+ }
307
+ ]
308
+ });
309
+ return sdkResponse;
310
+ }
311
+ catch (err) {
312
+ throw err;
313
+ }
314
+ });
315
+ }
316
+ /**
317
+ * Gets the specified Cluster's information.
318
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
319
+ * @param GetClusterRequest
320
+ * @return GetClusterResponse
321
+ * @throws OciError when an error occurs
322
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/GetCluster.ts.html |here} to see how to use GetCluster API.
323
+ */
324
+ getCluster(getClusterRequest) {
325
+ return __awaiter(this, void 0, void 0, function* () {
326
+ if (this.logger)
327
+ this.logger.debug("Calling operation ClusterClient#getCluster.");
328
+ const operationName = "getCluster";
329
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Cluster/GetCluster";
330
+ const pathParams = {
331
+ "{clusterId}": getClusterRequest.clusterId
332
+ };
333
+ const queryParams = {};
334
+ let headerParams = {
335
+ "Content-Type": common.Constants.APPLICATION_JSON,
336
+ "opc-request-id": getClusterRequest.opcRequestId
337
+ };
338
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
339
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getClusterRequest.retryConfiguration, specRetryConfiguration);
340
+ if (this.logger)
341
+ retrier.logger = this.logger;
342
+ const request = yield oci_common_1.composeRequest({
343
+ baseEndpoint: this._endpoint,
344
+ defaultHeaders: this._defaultHeaders,
345
+ path: "/clusters/{clusterId}",
346
+ method: "GET",
347
+ pathParams: pathParams,
348
+ headerParams: headerParams,
349
+ queryParams: queryParams
350
+ });
351
+ try {
352
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
353
+ const sdkResponse = oci_common_1.composeResponse({
354
+ responseObject: {},
355
+ body: yield response.json(),
356
+ bodyKey: "cluster",
357
+ bodyModel: model.Cluster,
358
+ type: "model.Cluster",
359
+ responseHeaders: [
360
+ {
361
+ value: response.headers.get("etag"),
362
+ key: "etag",
363
+ dataType: "string"
364
+ },
365
+ {
366
+ value: response.headers.get("opc-request-id"),
367
+ key: "opcRequestId",
368
+ dataType: "string"
369
+ }
370
+ ]
371
+ });
372
+ return sdkResponse;
373
+ }
374
+ catch (err) {
375
+ throw err;
376
+ }
377
+ });
378
+ }
379
+ /**
380
+ * Lists the Clusters in the specified compartment.
381
+ *
382
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
383
+ * @param ListClustersRequest
384
+ * @return ListClustersResponse
385
+ * @throws OciError when an error occurs
386
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/ListClusters.ts.html |here} to see how to use ListClusters API.
387
+ */
388
+ listClusters(listClustersRequest) {
389
+ return __awaiter(this, void 0, void 0, function* () {
390
+ if (this.logger)
391
+ this.logger.debug("Calling operation ClusterClient#listClusters.");
392
+ const operationName = "listClusters";
393
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/ClusterSummary/ListClusters";
394
+ const pathParams = {};
395
+ const queryParams = {
396
+ "sddcId": listClustersRequest.sddcId,
397
+ "displayName": listClustersRequest.displayName,
398
+ "limit": listClustersRequest.limit,
399
+ "page": listClustersRequest.page,
400
+ "sortOrder": listClustersRequest.sortOrder,
401
+ "sortBy": listClustersRequest.sortBy,
402
+ "lifecycleState": listClustersRequest.lifecycleState,
403
+ "compartmentId": listClustersRequest.compartmentId
404
+ };
405
+ let headerParams = {
406
+ "Content-Type": common.Constants.APPLICATION_JSON,
407
+ "opc-request-id": listClustersRequest.opcRequestId
408
+ };
409
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
410
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listClustersRequest.retryConfiguration, specRetryConfiguration);
411
+ if (this.logger)
412
+ retrier.logger = this.logger;
413
+ const request = yield oci_common_1.composeRequest({
414
+ baseEndpoint: this._endpoint,
415
+ defaultHeaders: this._defaultHeaders,
416
+ path: "/clusters",
417
+ method: "GET",
418
+ pathParams: pathParams,
419
+ headerParams: headerParams,
420
+ queryParams: queryParams
421
+ });
422
+ try {
423
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
424
+ const sdkResponse = oci_common_1.composeResponse({
425
+ responseObject: {},
426
+ body: yield response.json(),
427
+ bodyKey: "clusterCollection",
428
+ bodyModel: model.ClusterCollection,
429
+ type: "model.ClusterCollection",
430
+ responseHeaders: [
431
+ {
432
+ value: response.headers.get("opc-request-id"),
433
+ key: "opcRequestId",
434
+ dataType: "string"
435
+ },
436
+ {
437
+ value: response.headers.get("opc-next-page"),
438
+ key: "opcNextPage",
439
+ dataType: "string"
440
+ }
441
+ ]
442
+ });
443
+ return sdkResponse;
444
+ }
445
+ catch (err) {
446
+ throw err;
447
+ }
448
+ });
449
+ }
450
+ /**
451
+ * Updates the specified Cluster.
452
+ * <p>
453
+ **Important:** Updating a Cluster affects only certain attributes in the `Cluster`
454
+ * object and does not affect the VMware environment currently running in
455
+ * the Cluster.
456
+ *
457
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
458
+ * @param UpdateClusterRequest
459
+ * @return UpdateClusterResponse
460
+ * @throws OciError when an error occurs
461
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/UpdateCluster.ts.html |here} to see how to use UpdateCluster API.
462
+ */
463
+ updateCluster(updateClusterRequest) {
464
+ return __awaiter(this, void 0, void 0, function* () {
465
+ if (this.logger)
466
+ this.logger.debug("Calling operation ClusterClient#updateCluster.");
467
+ const operationName = "updateCluster";
468
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Cluster/UpdateCluster";
469
+ const pathParams = {
470
+ "{clusterId}": updateClusterRequest.clusterId
471
+ };
472
+ const queryParams = {};
473
+ let headerParams = {
474
+ "Content-Type": common.Constants.APPLICATION_JSON,
475
+ "if-match": updateClusterRequest.ifMatch,
476
+ "opc-request-id": updateClusterRequest.opcRequestId
477
+ };
478
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
479
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateClusterRequest.retryConfiguration, specRetryConfiguration);
480
+ if (this.logger)
481
+ retrier.logger = this.logger;
482
+ const request = yield oci_common_1.composeRequest({
483
+ baseEndpoint: this._endpoint,
484
+ defaultHeaders: this._defaultHeaders,
485
+ path: "/clusters/{clusterId}",
486
+ method: "PUT",
487
+ bodyContent: common.ObjectSerializer.serialize(updateClusterRequest.updateClusterDetails, "UpdateClusterDetails", model.UpdateClusterDetails.getJsonObj),
488
+ pathParams: pathParams,
489
+ headerParams: headerParams,
490
+ queryParams: queryParams
491
+ });
492
+ try {
493
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
494
+ const sdkResponse = oci_common_1.composeResponse({
495
+ responseObject: {},
496
+ body: yield response.json(),
497
+ bodyKey: "cluster",
498
+ bodyModel: model.Cluster,
499
+ type: "model.Cluster",
500
+ responseHeaders: [
501
+ {
502
+ value: response.headers.get("etag"),
503
+ key: "etag",
504
+ dataType: "string"
505
+ },
506
+ {
507
+ value: response.headers.get("opc-request-id"),
508
+ key: "opcRequestId",
509
+ dataType: "string"
510
+ }
511
+ ]
512
+ });
513
+ return sdkResponse;
514
+ }
515
+ catch (err) {
516
+ throw err;
517
+ }
518
+ });
519
+ }
520
+ }
521
+ exports.ClusterClient = ClusterClient;
522
+ ClusterClient.serviceEndpointTemplate = "https://ocvps.{region}.oci.{secondLevelDomain}";
523
+ ClusterClient.endpointServiceName = "";
55
524
  var EsxiHostApiKeys;
56
525
  (function (EsxiHostApiKeys) {
57
526
  })(EsxiHostApiKeys = exports.EsxiHostApiKeys || (exports.EsxiHostApiKeys = {}));
@@ -114,7 +583,7 @@ class EsxiHostClient {
114
583
  */
115
584
  set endpoint(endpoint) {
116
585
  this._endpoint = endpoint;
117
- this._endpoint = this._endpoint + "/20200501";
586
+ this._endpoint = this._endpoint + "/20230701";
118
587
  if (this.logger)
119
588
  this.logger.info(`EsxiHostClient endpoint set to ${this._endpoint}`);
120
589
  }
@@ -193,14 +662,14 @@ class EsxiHostClient {
193
662
  * @param CreateEsxiHostRequest
194
663
  * @return CreateEsxiHostResponse
195
664
  * @throws OciError when an error occurs
196
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/ocvp/CreateEsxiHost.ts.html |here} to see how to use CreateEsxiHost API.
665
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/CreateEsxiHost.ts.html |here} to see how to use CreateEsxiHost API.
197
666
  */
198
667
  createEsxiHost(createEsxiHostRequest) {
199
668
  return __awaiter(this, void 0, void 0, function* () {
200
669
  if (this.logger)
201
670
  this.logger.debug("Calling operation EsxiHostClient#createEsxiHost.");
202
671
  const operationName = "createEsxiHost";
203
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20200501/EsxiHost/CreateEsxiHost";
672
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/EsxiHost/CreateEsxiHost";
204
673
  const pathParams = {};
205
674
  const queryParams = {};
206
675
  let headerParams = {
@@ -266,14 +735,14 @@ class EsxiHostClient {
266
735
  * @param DeleteEsxiHostRequest
267
736
  * @return DeleteEsxiHostResponse
268
737
  * @throws OciError when an error occurs
269
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/ocvp/DeleteEsxiHost.ts.html |here} to see how to use DeleteEsxiHost API.
738
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/DeleteEsxiHost.ts.html |here} to see how to use DeleteEsxiHost API.
270
739
  */
271
740
  deleteEsxiHost(deleteEsxiHostRequest) {
272
741
  return __awaiter(this, void 0, void 0, function* () {
273
742
  if (this.logger)
274
743
  this.logger.debug("Calling operation EsxiHostClient#deleteEsxiHost.");
275
744
  const operationName = "deleteEsxiHost";
276
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20200501/EsxiHost/DeleteEsxiHost";
745
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/EsxiHost/DeleteEsxiHost";
277
746
  const pathParams = {
278
747
  "{esxiHostId}": deleteEsxiHostRequest.esxiHostId
279
748
  };
@@ -326,14 +795,14 @@ class EsxiHostClient {
326
795
  * @param GetEsxiHostRequest
327
796
  * @return GetEsxiHostResponse
328
797
  * @throws OciError when an error occurs
329
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/ocvp/GetEsxiHost.ts.html |here} to see how to use GetEsxiHost API.
798
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/GetEsxiHost.ts.html |here} to see how to use GetEsxiHost API.
330
799
  */
331
800
  getEsxiHost(getEsxiHostRequest) {
332
801
  return __awaiter(this, void 0, void 0, function* () {
333
802
  if (this.logger)
334
803
  this.logger.debug("Calling operation EsxiHostClient#getEsxiHost.");
335
804
  const operationName = "getEsxiHost";
336
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20200501/EsxiHost/GetEsxiHost";
805
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/EsxiHost/GetEsxiHost";
337
806
  const pathParams = {
338
807
  "{esxiHostId}": getEsxiHostRequest.esxiHostId
339
808
  };
@@ -383,6 +852,68 @@ class EsxiHostClient {
383
852
  }
384
853
  });
385
854
  }
855
+ /**
856
+ * In-place upgrade a ESXi host.
857
+ *
858
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
859
+ * @param InplaceUpgradeRequest
860
+ * @return InplaceUpgradeResponse
861
+ * @throws OciError when an error occurs
862
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/InplaceUpgrade.ts.html |here} to see how to use InplaceUpgrade API.
863
+ */
864
+ inplaceUpgrade(inplaceUpgradeRequest) {
865
+ return __awaiter(this, void 0, void 0, function* () {
866
+ if (this.logger)
867
+ this.logger.debug("Calling operation EsxiHostClient#inplaceUpgrade.");
868
+ const operationName = "inplaceUpgrade";
869
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/EsxiHost/InplaceUpgrade";
870
+ const pathParams = {
871
+ "{esxiHostId}": inplaceUpgradeRequest.esxiHostId
872
+ };
873
+ const queryParams = {};
874
+ let headerParams = {
875
+ "Content-Type": common.Constants.APPLICATION_JSON,
876
+ "opc-retry-token": inplaceUpgradeRequest.opcRetryToken,
877
+ "if-match": inplaceUpgradeRequest.ifMatch,
878
+ "opc-request-id": inplaceUpgradeRequest.opcRequestId
879
+ };
880
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
881
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, inplaceUpgradeRequest.retryConfiguration, specRetryConfiguration);
882
+ if (this.logger)
883
+ retrier.logger = this.logger;
884
+ const request = yield oci_common_1.composeRequest({
885
+ baseEndpoint: this._endpoint,
886
+ defaultHeaders: this._defaultHeaders,
887
+ path: "/esxiHosts/{esxiHostId}/actions/inplaceUpgrade",
888
+ method: "POST",
889
+ pathParams: pathParams,
890
+ headerParams: headerParams,
891
+ queryParams: queryParams
892
+ });
893
+ try {
894
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
895
+ const sdkResponse = oci_common_1.composeResponse({
896
+ responseObject: {},
897
+ responseHeaders: [
898
+ {
899
+ value: response.headers.get("opc-work-request-id"),
900
+ key: "opcWorkRequestId",
901
+ dataType: "string"
902
+ },
903
+ {
904
+ value: response.headers.get("opc-request-id"),
905
+ key: "opcRequestId",
906
+ dataType: "string"
907
+ }
908
+ ]
909
+ });
910
+ return sdkResponse;
911
+ }
912
+ catch (err) {
913
+ throw err;
914
+ }
915
+ });
916
+ }
386
917
  /**
387
918
  * Lists the ESXi hosts in the specified SDDC. The list can be filtered
388
919
  * by Compute instance OCID or ESXi display name.
@@ -398,17 +929,18 @@ class EsxiHostClient {
398
929
  * @param ListEsxiHostsRequest
399
930
  * @return ListEsxiHostsResponse
400
931
  * @throws OciError when an error occurs
401
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/ocvp/ListEsxiHosts.ts.html |here} to see how to use ListEsxiHosts API.
932
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/ListEsxiHosts.ts.html |here} to see how to use ListEsxiHosts API.
402
933
  */
403
934
  listEsxiHosts(listEsxiHostsRequest) {
404
935
  return __awaiter(this, void 0, void 0, function* () {
405
936
  if (this.logger)
406
937
  this.logger.debug("Calling operation EsxiHostClient#listEsxiHosts.");
407
938
  const operationName = "listEsxiHosts";
408
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20200501/EsxiHostSummary/ListEsxiHosts";
939
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/EsxiHostSummary/ListEsxiHosts";
409
940
  const pathParams = {};
410
941
  const queryParams = {
411
942
  "sddcId": listEsxiHostsRequest.sddcId,
943
+ "clusterId": listEsxiHostsRequest.clusterId,
412
944
  "computeInstanceId": listEsxiHostsRequest.computeInstanceId,
413
945
  "displayName": listEsxiHostsRequest.displayName,
414
946
  "limit": listEsxiHostsRequest.limit,
@@ -465,6 +997,69 @@ class EsxiHostClient {
465
997
  }
466
998
  });
467
999
  }
1000
+ /**
1001
+ * Replace a faulty ESXi host whose underlying bare metal is broken
1002
+ *
1003
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1004
+ * @param ReplaceHostRequest
1005
+ * @return ReplaceHostResponse
1006
+ * @throws OciError when an error occurs
1007
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/ReplaceHost.ts.html |here} to see how to use ReplaceHost API.
1008
+ */
1009
+ replaceHost(replaceHostRequest) {
1010
+ return __awaiter(this, void 0, void 0, function* () {
1011
+ if (this.logger)
1012
+ this.logger.debug("Calling operation EsxiHostClient#replaceHost.");
1013
+ const operationName = "replaceHost";
1014
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/EsxiHost/ReplaceHost";
1015
+ const pathParams = {
1016
+ "{esxiHostId}": replaceHostRequest.esxiHostId
1017
+ };
1018
+ const queryParams = {};
1019
+ let headerParams = {
1020
+ "Content-Type": common.Constants.APPLICATION_JSON,
1021
+ "opc-retry-token": replaceHostRequest.opcRetryToken,
1022
+ "if-match": replaceHostRequest.ifMatch,
1023
+ "opc-request-id": replaceHostRequest.opcRequestId
1024
+ };
1025
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1026
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, replaceHostRequest.retryConfiguration, specRetryConfiguration);
1027
+ if (this.logger)
1028
+ retrier.logger = this.logger;
1029
+ const request = yield oci_common_1.composeRequest({
1030
+ baseEndpoint: this._endpoint,
1031
+ defaultHeaders: this._defaultHeaders,
1032
+ path: "/esxiHosts/{esxiHostId}/actions/replaceHost",
1033
+ method: "POST",
1034
+ bodyContent: common.ObjectSerializer.serialize(replaceHostRequest.replaceHostDetails, "ReplaceHostDetails", model.ReplaceHostDetails.getJsonObj),
1035
+ pathParams: pathParams,
1036
+ headerParams: headerParams,
1037
+ queryParams: queryParams
1038
+ });
1039
+ try {
1040
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
1041
+ const sdkResponse = oci_common_1.composeResponse({
1042
+ responseObject: {},
1043
+ responseHeaders: [
1044
+ {
1045
+ value: response.headers.get("opc-work-request-id"),
1046
+ key: "opcWorkRequestId",
1047
+ dataType: "string"
1048
+ },
1049
+ {
1050
+ value: response.headers.get("opc-request-id"),
1051
+ key: "opcRequestId",
1052
+ dataType: "string"
1053
+ }
1054
+ ]
1055
+ });
1056
+ return sdkResponse;
1057
+ }
1058
+ catch (err) {
1059
+ throw err;
1060
+ }
1061
+ });
1062
+ }
468
1063
  /**
469
1064
  * Swap billing between two Active ESXi hosts.
470
1065
  *
@@ -472,14 +1067,14 @@ class EsxiHostClient {
472
1067
  * @param SwapBillingRequest
473
1068
  * @return SwapBillingResponse
474
1069
  * @throws OciError when an error occurs
475
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/ocvp/SwapBilling.ts.html |here} to see how to use SwapBilling API.
1070
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/SwapBilling.ts.html |here} to see how to use SwapBilling API.
476
1071
  */
477
1072
  swapBilling(swapBillingRequest) {
478
1073
  return __awaiter(this, void 0, void 0, function* () {
479
1074
  if (this.logger)
480
1075
  this.logger.debug("Calling operation EsxiHostClient#swapBilling.");
481
1076
  const operationName = "swapBilling";
482
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20200501/EsxiHost/SwapBilling";
1077
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/EsxiHost/SwapBilling";
483
1078
  const pathParams = {
484
1079
  "{esxiHostId}": swapBillingRequest.esxiHostId
485
1080
  };
@@ -535,14 +1130,14 @@ class EsxiHostClient {
535
1130
  * @param UpdateEsxiHostRequest
536
1131
  * @return UpdateEsxiHostResponse
537
1132
  * @throws OciError when an error occurs
538
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/ocvp/UpdateEsxiHost.ts.html |here} to see how to use UpdateEsxiHost API.
1133
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/UpdateEsxiHost.ts.html |here} to see how to use UpdateEsxiHost API.
539
1134
  */
540
1135
  updateEsxiHost(updateEsxiHostRequest) {
541
1136
  return __awaiter(this, void 0, void 0, function* () {
542
1137
  if (this.logger)
543
1138
  this.logger.debug("Calling operation EsxiHostClient#updateEsxiHost.");
544
1139
  const operationName = "updateEsxiHost";
545
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20200501/EsxiHost/UpdateEsxiHost";
1140
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/EsxiHost/UpdateEsxiHost";
546
1141
  const pathParams = {
547
1142
  "{esxiHostId}": updateEsxiHostRequest.esxiHostId
548
1143
  };
@@ -660,7 +1255,7 @@ class SddcClient {
660
1255
  */
661
1256
  set endpoint(endpoint) {
662
1257
  this._endpoint = endpoint;
663
- this._endpoint = this._endpoint + "/20200501";
1258
+ this._endpoint = this._endpoint + "/20230701";
664
1259
  if (this.logger)
665
1260
  this.logger.info(`SddcClient endpoint set to ${this._endpoint}`);
666
1261
  }
@@ -734,14 +1329,14 @@ class SddcClient {
734
1329
  * @param CancelDowngradeHcxRequest
735
1330
  * @return CancelDowngradeHcxResponse
736
1331
  * @throws OciError when an error occurs
737
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/ocvp/CancelDowngradeHcx.ts.html |here} to see how to use CancelDowngradeHcx API.
1332
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/CancelDowngradeHcx.ts.html |here} to see how to use CancelDowngradeHcx API.
738
1333
  */
739
1334
  cancelDowngradeHcx(cancelDowngradeHcxRequest) {
740
1335
  return __awaiter(this, void 0, void 0, function* () {
741
1336
  if (this.logger)
742
1337
  this.logger.debug("Calling operation SddcClient#cancelDowngradeHcx.");
743
1338
  const operationName = "cancelDowngradeHcx";
744
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20200501/Sddc/CancelDowngradeHcx";
1339
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/CancelDowngradeHcx";
745
1340
  const pathParams = {
746
1341
  "{sddcId}": cancelDowngradeHcxRequest.sddcId
747
1342
  };
@@ -798,14 +1393,14 @@ class SddcClient {
798
1393
  * @param ChangeSddcCompartmentRequest
799
1394
  * @return ChangeSddcCompartmentResponse
800
1395
  * @throws OciError when an error occurs
801
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/ocvp/ChangeSddcCompartment.ts.html |here} to see how to use ChangeSddcCompartment API.
1396
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/ChangeSddcCompartment.ts.html |here} to see how to use ChangeSddcCompartment API.
802
1397
  */
803
1398
  changeSddcCompartment(changeSddcCompartmentRequest) {
804
1399
  return __awaiter(this, void 0, void 0, function* () {
805
1400
  if (this.logger)
806
1401
  this.logger.debug("Calling operation SddcClient#changeSddcCompartment.");
807
1402
  const operationName = "changeSddcCompartment";
808
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20200501/Sddc/ChangeSddcCompartment";
1403
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/ChangeSddcCompartment";
809
1404
  const pathParams = {
810
1405
  "{sddcId}": changeSddcCompartmentRequest.sddcId
811
1406
  };
@@ -861,14 +1456,14 @@ class SddcClient {
861
1456
  * @param CreateSddcRequest
862
1457
  * @return CreateSddcResponse
863
1458
  * @throws OciError when an error occurs
864
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/ocvp/CreateSddc.ts.html |here} to see how to use CreateSddc API.
1459
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/CreateSddc.ts.html |here} to see how to use CreateSddc API.
865
1460
  */
866
1461
  createSddc(createSddcRequest) {
867
1462
  return __awaiter(this, void 0, void 0, function* () {
868
1463
  if (this.logger)
869
1464
  this.logger.debug("Calling operation SddcClient#createSddc.");
870
1465
  const operationName = "createSddc";
871
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20200501/Sddc/CreateSddc";
1466
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/CreateSddc";
872
1467
  const pathParams = {};
873
1468
  const queryParams = {};
874
1469
  let headerParams = {
@@ -926,14 +1521,14 @@ class SddcClient {
926
1521
  * @param DeleteSddcRequest
927
1522
  * @return DeleteSddcResponse
928
1523
  * @throws OciError when an error occurs
929
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/ocvp/DeleteSddc.ts.html |here} to see how to use DeleteSddc API.
1524
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/DeleteSddc.ts.html |here} to see how to use DeleteSddc API.
930
1525
  */
931
1526
  deleteSddc(deleteSddcRequest) {
932
1527
  return __awaiter(this, void 0, void 0, function* () {
933
1528
  if (this.logger)
934
1529
  this.logger.debug("Calling operation SddcClient#deleteSddc.");
935
1530
  const operationName = "deleteSddc";
936
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20200501/Sddc/DeleteSddc";
1531
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/DeleteSddc";
937
1532
  const pathParams = {
938
1533
  "{sddcId}": deleteSddcRequest.sddcId
939
1534
  };
@@ -991,14 +1586,14 @@ class SddcClient {
991
1586
  * @param DowngradeHcxRequest
992
1587
  * @return DowngradeHcxResponse
993
1588
  * @throws OciError when an error occurs
994
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/ocvp/DowngradeHcx.ts.html |here} to see how to use DowngradeHcx API.
1589
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/DowngradeHcx.ts.html |here} to see how to use DowngradeHcx API.
995
1590
  */
996
1591
  downgradeHcx(downgradeHcxRequest) {
997
1592
  return __awaiter(this, void 0, void 0, function* () {
998
1593
  if (this.logger)
999
1594
  this.logger.debug("Calling operation SddcClient#downgradeHcx.");
1000
1595
  const operationName = "downgradeHcx";
1001
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20200501/Sddc/DowngradeHcx";
1596
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/DowngradeHcx";
1002
1597
  const pathParams = {
1003
1598
  "{sddcId}": downgradeHcxRequest.sddcId
1004
1599
  };
@@ -1053,14 +1648,14 @@ class SddcClient {
1053
1648
  * @param GetSddcRequest
1054
1649
  * @return GetSddcResponse
1055
1650
  * @throws OciError when an error occurs
1056
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/ocvp/GetSddc.ts.html |here} to see how to use GetSddc API.
1651
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/GetSddc.ts.html |here} to see how to use GetSddc API.
1057
1652
  */
1058
1653
  getSddc(getSddcRequest) {
1059
1654
  return __awaiter(this, void 0, void 0, function* () {
1060
1655
  if (this.logger)
1061
1656
  this.logger.debug("Calling operation SddcClient#getSddc.");
1062
1657
  const operationName = "getSddc";
1063
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20200501/Sddc/GetSddc";
1658
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/GetSddc";
1064
1659
  const pathParams = {
1065
1660
  "{sddcId}": getSddcRequest.sddcId
1066
1661
  };
@@ -1118,14 +1713,14 @@ class SddcClient {
1118
1713
  * @param ListSddcsRequest
1119
1714
  * @return ListSddcsResponse
1120
1715
  * @throws OciError when an error occurs
1121
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/ocvp/ListSddcs.ts.html |here} to see how to use ListSddcs API.
1716
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/ListSddcs.ts.html |here} to see how to use ListSddcs API.
1122
1717
  */
1123
1718
  listSddcs(listSddcsRequest) {
1124
1719
  return __awaiter(this, void 0, void 0, function* () {
1125
1720
  if (this.logger)
1126
1721
  this.logger.debug("Calling operation SddcClient#listSddcs.");
1127
1722
  const operationName = "listSddcs";
1128
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20200501/SddcSummary/ListSddcs";
1723
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/SddcSummary/ListSddcs";
1129
1724
  const pathParams = {};
1130
1725
  const queryParams = {
1131
1726
  "compartmentId": listSddcsRequest.compartmentId,
@@ -1183,40 +1778,39 @@ class SddcClient {
1183
1778
  });
1184
1779
  }
1185
1780
  /**
1186
- * Lists supported compute shapes for ESXi hosts.
1781
+ * Lists supported Commitments.
1187
1782
  *
1188
1783
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1189
- * @param ListSupportedHostShapesRequest
1190
- * @return ListSupportedHostShapesResponse
1784
+ * @param ListSupportedCommitmentsRequest
1785
+ * @return ListSupportedCommitmentsResponse
1191
1786
  * @throws OciError when an error occurs
1192
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/ocvp/ListSupportedHostShapes.ts.html |here} to see how to use ListSupportedHostShapes API.
1787
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/ListSupportedCommitments.ts.html |here} to see how to use ListSupportedCommitments API.
1193
1788
  */
1194
- listSupportedHostShapes(listSupportedHostShapesRequest) {
1789
+ listSupportedCommitments(listSupportedCommitmentsRequest) {
1195
1790
  return __awaiter(this, void 0, void 0, function* () {
1196
1791
  if (this.logger)
1197
- this.logger.debug("Calling operation SddcClient#listSupportedHostShapes.");
1198
- const operationName = "listSupportedHostShapes";
1199
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20200501/SupportedHostShapeSummary/ListSupportedHostShapes";
1792
+ this.logger.debug("Calling operation SddcClient#listSupportedCommitments.");
1793
+ const operationName = "listSupportedCommitments";
1794
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/SupportedCommitmentSummary/ListSupportedCommitments";
1200
1795
  const pathParams = {};
1201
1796
  const queryParams = {
1202
- "compartmentId": listSupportedHostShapesRequest.compartmentId,
1203
- "limit": listSupportedHostShapesRequest.limit,
1204
- "page": listSupportedHostShapesRequest.page,
1205
- "name": listSupportedHostShapesRequest.name,
1206
- "sddcType": listSupportedHostShapesRequest.sddcType
1797
+ "compartmentId": listSupportedCommitmentsRequest.compartmentId,
1798
+ "limit": listSupportedCommitmentsRequest.limit,
1799
+ "page": listSupportedCommitmentsRequest.page,
1800
+ "hostShapeName": listSupportedCommitmentsRequest.hostShapeName
1207
1801
  };
1208
1802
  let headerParams = {
1209
1803
  "Content-Type": common.Constants.APPLICATION_JSON,
1210
- "opc-request-id": listSupportedHostShapesRequest.opcRequestId
1804
+ "opc-request-id": listSupportedCommitmentsRequest.opcRequestId
1211
1805
  };
1212
1806
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1213
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSupportedHostShapesRequest.retryConfiguration, specRetryConfiguration);
1807
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSupportedCommitmentsRequest.retryConfiguration, specRetryConfiguration);
1214
1808
  if (this.logger)
1215
1809
  retrier.logger = this.logger;
1216
1810
  const request = yield oci_common_1.composeRequest({
1217
1811
  baseEndpoint: this._endpoint,
1218
1812
  defaultHeaders: this._defaultHeaders,
1219
- path: "/supportedHostShapes",
1813
+ path: "/supportedCommitments",
1220
1814
  method: "GET",
1221
1815
  pathParams: pathParams,
1222
1816
  headerParams: headerParams,
@@ -1227,9 +1821,9 @@ class SddcClient {
1227
1821
  const sdkResponse = oci_common_1.composeResponse({
1228
1822
  responseObject: {},
1229
1823
  body: yield response.json(),
1230
- bodyKey: "supportedHostShapeCollection",
1231
- bodyModel: model.SupportedHostShapeCollection,
1232
- type: "model.SupportedHostShapeCollection",
1824
+ bodyKey: "supportedCommitmentSummaryCollection",
1825
+ bodyModel: model.SupportedCommitmentSummaryCollection,
1826
+ type: "model.SupportedCommitmentSummaryCollection",
1233
1827
  responseHeaders: [
1234
1828
  {
1235
1829
  value: response.headers.get("opc-request-id"),
@@ -1251,39 +1845,41 @@ class SddcClient {
1251
1845
  });
1252
1846
  }
1253
1847
  /**
1254
- * Lists supported SKUs.
1848
+ * Lists supported compute shapes for ESXi hosts.
1255
1849
  *
1256
1850
  * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
1257
- * @param ListSupportedSkusRequest
1258
- * @return ListSupportedSkusResponse
1851
+ * @param ListSupportedHostShapesRequest
1852
+ * @return ListSupportedHostShapesResponse
1259
1853
  * @throws OciError when an error occurs
1260
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/ocvp/ListSupportedSkus.ts.html |here} to see how to use ListSupportedSkus API.
1854
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/ListSupportedHostShapes.ts.html |here} to see how to use ListSupportedHostShapes API.
1261
1855
  */
1262
- listSupportedSkus(listSupportedSkusRequest) {
1856
+ listSupportedHostShapes(listSupportedHostShapesRequest) {
1263
1857
  return __awaiter(this, void 0, void 0, function* () {
1264
1858
  if (this.logger)
1265
- this.logger.debug("Calling operation SddcClient#listSupportedSkus.");
1266
- const operationName = "listSupportedSkus";
1267
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20200501/SupportedSkuSummary/ListSupportedSkus";
1859
+ this.logger.debug("Calling operation SddcClient#listSupportedHostShapes.");
1860
+ const operationName = "listSupportedHostShapes";
1861
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/SupportedHostShapeSummary/ListSupportedHostShapes";
1268
1862
  const pathParams = {};
1269
1863
  const queryParams = {
1270
- "compartmentId": listSupportedSkusRequest.compartmentId,
1271
- "limit": listSupportedSkusRequest.limit,
1272
- "page": listSupportedSkusRequest.page,
1273
- "hostShapeName": listSupportedSkusRequest.hostShapeName
1864
+ "compartmentId": listSupportedHostShapesRequest.compartmentId,
1865
+ "limit": listSupportedHostShapesRequest.limit,
1866
+ "page": listSupportedHostShapesRequest.page,
1867
+ "name": listSupportedHostShapesRequest.name,
1868
+ "isSingleHostSddcSupported": listSupportedHostShapesRequest.isSingleHostSddcSupported,
1869
+ "initialHostShapeName": listSupportedHostShapesRequest.initialHostShapeName
1274
1870
  };
1275
1871
  let headerParams = {
1276
1872
  "Content-Type": common.Constants.APPLICATION_JSON,
1277
- "opc-request-id": listSupportedSkusRequest.opcRequestId
1873
+ "opc-request-id": listSupportedHostShapesRequest.opcRequestId
1278
1874
  };
1279
1875
  const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
1280
- const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSupportedSkusRequest.retryConfiguration, specRetryConfiguration);
1876
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSupportedHostShapesRequest.retryConfiguration, specRetryConfiguration);
1281
1877
  if (this.logger)
1282
1878
  retrier.logger = this.logger;
1283
1879
  const request = yield oci_common_1.composeRequest({
1284
1880
  baseEndpoint: this._endpoint,
1285
1881
  defaultHeaders: this._defaultHeaders,
1286
- path: "/supportedSkus",
1882
+ path: "/supportedHostShapes",
1287
1883
  method: "GET",
1288
1884
  pathParams: pathParams,
1289
1885
  headerParams: headerParams,
@@ -1294,9 +1890,9 @@ class SddcClient {
1294
1890
  const sdkResponse = oci_common_1.composeResponse({
1295
1891
  responseObject: {},
1296
1892
  body: yield response.json(),
1297
- bodyKey: "supportedSkuSummaryCollection",
1298
- bodyModel: model.SupportedSkuSummaryCollection,
1299
- type: "model.SupportedSkuSummaryCollection",
1893
+ bodyKey: "supportedHostShapeCollection",
1894
+ bodyModel: model.SupportedHostShapeCollection,
1895
+ type: "model.SupportedHostShapeCollection",
1300
1896
  responseHeaders: [
1301
1897
  {
1302
1898
  value: response.headers.get("opc-request-id"),
@@ -1325,19 +1921,21 @@ class SddcClient {
1325
1921
  * @param ListSupportedVmwareSoftwareVersionsRequest
1326
1922
  * @return ListSupportedVmwareSoftwareVersionsResponse
1327
1923
  * @throws OciError when an error occurs
1328
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/ocvp/ListSupportedVmwareSoftwareVersions.ts.html |here} to see how to use ListSupportedVmwareSoftwareVersions API.
1924
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/ListSupportedVmwareSoftwareVersions.ts.html |here} to see how to use ListSupportedVmwareSoftwareVersions API.
1329
1925
  */
1330
1926
  listSupportedVmwareSoftwareVersions(listSupportedVmwareSoftwareVersionsRequest) {
1331
1927
  return __awaiter(this, void 0, void 0, function* () {
1332
1928
  if (this.logger)
1333
1929
  this.logger.debug("Calling operation SddcClient#listSupportedVmwareSoftwareVersions.");
1334
1930
  const operationName = "listSupportedVmwareSoftwareVersions";
1335
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20200501/SupportedVmwareSoftwareVersionSummary/ListSupportedVmwareSoftwareVersions";
1931
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/SupportedVmwareSoftwareVersionSummary/ListSupportedVmwareSoftwareVersions";
1336
1932
  const pathParams = {};
1337
1933
  const queryParams = {
1338
1934
  "compartmentId": listSupportedVmwareSoftwareVersionsRequest.compartmentId,
1339
1935
  "limit": listSupportedVmwareSoftwareVersionsRequest.limit,
1340
- "page": listSupportedVmwareSoftwareVersionsRequest.page
1936
+ "page": listSupportedVmwareSoftwareVersionsRequest.page,
1937
+ "version": listSupportedVmwareSoftwareVersionsRequest.version,
1938
+ "hostShapeName": listSupportedVmwareSoftwareVersionsRequest.hostShapeName
1341
1939
  };
1342
1940
  let headerParams = {
1343
1941
  "Content-Type": common.Constants.APPLICATION_JSON,
@@ -1390,14 +1988,14 @@ class SddcClient {
1390
1988
  * @param RefreshHcxLicenseStatusRequest
1391
1989
  * @return RefreshHcxLicenseStatusResponse
1392
1990
  * @throws OciError when an error occurs
1393
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/ocvp/RefreshHcxLicenseStatus.ts.html |here} to see how to use RefreshHcxLicenseStatus API.
1991
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/RefreshHcxLicenseStatus.ts.html |here} to see how to use RefreshHcxLicenseStatus API.
1394
1992
  */
1395
1993
  refreshHcxLicenseStatus(refreshHcxLicenseStatusRequest) {
1396
1994
  return __awaiter(this, void 0, void 0, function* () {
1397
1995
  if (this.logger)
1398
1996
  this.logger.debug("Calling operation SddcClient#refreshHcxLicenseStatus.");
1399
1997
  const operationName = "refreshHcxLicenseStatus";
1400
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20200501/Sddc/RefreshHcxLicenseStatus";
1998
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/RefreshHcxLicenseStatus";
1401
1999
  const pathParams = {
1402
2000
  "{sddcId}": refreshHcxLicenseStatusRequest.sddcId
1403
2001
  };
@@ -1445,6 +2043,74 @@ class SddcClient {
1445
2043
  }
1446
2044
  });
1447
2045
  }
2046
+ /**
2047
+ * Retrieve the SDDC password.
2048
+ *
2049
+ * This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
2050
+ * @param RetrievePasswordRequest
2051
+ * @return RetrievePasswordResponse
2052
+ * @throws OciError when an error occurs
2053
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/RetrievePassword.ts.html |here} to see how to use RetrievePassword API.
2054
+ */
2055
+ retrievePassword(retrievePasswordRequest) {
2056
+ return __awaiter(this, void 0, void 0, function* () {
2057
+ if (this.logger)
2058
+ this.logger.debug("Calling operation SddcClient#retrievePassword.");
2059
+ const operationName = "retrievePassword";
2060
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/RetrievePassword";
2061
+ const pathParams = {
2062
+ "{sddcId}": retrievePasswordRequest.sddcId
2063
+ };
2064
+ const queryParams = {
2065
+ "type": retrievePasswordRequest.type
2066
+ };
2067
+ let headerParams = {
2068
+ "Content-Type": common.Constants.APPLICATION_JSON,
2069
+ "if-match": retrievePasswordRequest.ifMatch,
2070
+ "opc-request-id": retrievePasswordRequest.opcRequestId,
2071
+ "opc-retry-token": retrievePasswordRequest.opcRetryToken
2072
+ };
2073
+ const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
2074
+ const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, retrievePasswordRequest.retryConfiguration, specRetryConfiguration);
2075
+ if (this.logger)
2076
+ retrier.logger = this.logger;
2077
+ const request = yield oci_common_1.composeRequest({
2078
+ baseEndpoint: this._endpoint,
2079
+ defaultHeaders: this._defaultHeaders,
2080
+ path: "/sddcs/{sddcId}/actions/retrievePassword",
2081
+ method: "POST",
2082
+ pathParams: pathParams,
2083
+ headerParams: headerParams,
2084
+ queryParams: queryParams
2085
+ });
2086
+ try {
2087
+ const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
2088
+ const sdkResponse = oci_common_1.composeResponse({
2089
+ responseObject: {},
2090
+ body: yield response.json(),
2091
+ bodyKey: "sddcPassword",
2092
+ bodyModel: model.SddcPassword,
2093
+ type: "model.SddcPassword",
2094
+ responseHeaders: [
2095
+ {
2096
+ value: response.headers.get("etag"),
2097
+ key: "etag",
2098
+ dataType: "string"
2099
+ },
2100
+ {
2101
+ value: response.headers.get("opc-request-id"),
2102
+ key: "opcRequestId",
2103
+ dataType: "string"
2104
+ }
2105
+ ]
2106
+ });
2107
+ return sdkResponse;
2108
+ }
2109
+ catch (err) {
2110
+ throw err;
2111
+ }
2112
+ });
2113
+ }
1448
2114
  /**
1449
2115
  * Updates the specified SDDC.
1450
2116
  * <p>
@@ -1457,14 +2123,14 @@ class SddcClient {
1457
2123
  * @param UpdateSddcRequest
1458
2124
  * @return UpdateSddcResponse
1459
2125
  * @throws OciError when an error occurs
1460
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/ocvp/UpdateSddc.ts.html |here} to see how to use UpdateSddc API.
2126
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/UpdateSddc.ts.html |here} to see how to use UpdateSddc API.
1461
2127
  */
1462
2128
  updateSddc(updateSddcRequest) {
1463
2129
  return __awaiter(this, void 0, void 0, function* () {
1464
2130
  if (this.logger)
1465
2131
  this.logger.debug("Calling operation SddcClient#updateSddc.");
1466
2132
  const operationName = "updateSddc";
1467
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20200501/Sddc/UpdateSddc";
2133
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/UpdateSddc";
1468
2134
  const pathParams = {
1469
2135
  "{sddcId}": updateSddcRequest.sddcId
1470
2136
  };
@@ -1523,14 +2189,14 @@ class SddcClient {
1523
2189
  * @param UpgradeHcxRequest
1524
2190
  * @return UpgradeHcxResponse
1525
2191
  * @throws OciError when an error occurs
1526
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/ocvp/UpgradeHcx.ts.html |here} to see how to use UpgradeHcx API.
2192
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/UpgradeHcx.ts.html |here} to see how to use UpgradeHcx API.
1527
2193
  */
1528
2194
  upgradeHcx(upgradeHcxRequest) {
1529
2195
  return __awaiter(this, void 0, void 0, function* () {
1530
2196
  if (this.logger)
1531
2197
  this.logger.debug("Calling operation SddcClient#upgradeHcx.");
1532
2198
  const operationName = "upgradeHcx";
1533
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20200501/Sddc/UpgradeHcx";
2199
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/UpgradeHcx";
1534
2200
  const pathParams = {
1535
2201
  "{sddcId}": upgradeHcxRequest.sddcId
1536
2202
  };
@@ -1644,7 +2310,7 @@ class WorkRequestClient {
1644
2310
  */
1645
2311
  set endpoint(endpoint) {
1646
2312
  this._endpoint = endpoint;
1647
- this._endpoint = this._endpoint + "/20200501";
2313
+ this._endpoint = this._endpoint + "/20230701";
1648
2314
  if (this.logger)
1649
2315
  this.logger.info(`WorkRequestClient endpoint set to ${this._endpoint}`);
1650
2316
  }
@@ -1717,14 +2383,14 @@ class WorkRequestClient {
1717
2383
  * @param GetWorkRequestRequest
1718
2384
  * @return GetWorkRequestResponse
1719
2385
  * @throws OciError when an error occurs
1720
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/ocvp/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
2386
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
1721
2387
  */
1722
2388
  getWorkRequest(getWorkRequestRequest) {
1723
2389
  return __awaiter(this, void 0, void 0, function* () {
1724
2390
  if (this.logger)
1725
2391
  this.logger.debug("Calling operation WorkRequestClient#getWorkRequest.");
1726
2392
  const operationName = "getWorkRequest";
1727
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20200501/WorkRequest/GetWorkRequest";
2393
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/WorkRequest/GetWorkRequest";
1728
2394
  const pathParams = {
1729
2395
  "{workRequestId}": getWorkRequestRequest.workRequestId
1730
2396
  };
@@ -1781,14 +2447,14 @@ class WorkRequestClient {
1781
2447
  * @param ListWorkRequestErrorsRequest
1782
2448
  * @return ListWorkRequestErrorsResponse
1783
2449
  * @throws OciError when an error occurs
1784
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/ocvp/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
2450
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
1785
2451
  */
1786
2452
  listWorkRequestErrors(listWorkRequestErrorsRequest) {
1787
2453
  return __awaiter(this, void 0, void 0, function* () {
1788
2454
  if (this.logger)
1789
2455
  this.logger.debug("Calling operation WorkRequestClient#listWorkRequestErrors.");
1790
2456
  const operationName = "listWorkRequestErrors";
1791
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20200501/WorkRequestError/ListWorkRequestErrors";
2457
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/WorkRequestError/ListWorkRequestErrors";
1792
2458
  const pathParams = {
1793
2459
  "{workRequestId}": listWorkRequestErrorsRequest.workRequestId
1794
2460
  };
@@ -1848,14 +2514,14 @@ class WorkRequestClient {
1848
2514
  * @param ListWorkRequestLogsRequest
1849
2515
  * @return ListWorkRequestLogsResponse
1850
2516
  * @throws OciError when an error occurs
1851
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/ocvp/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
2517
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
1852
2518
  */
1853
2519
  listWorkRequestLogs(listWorkRequestLogsRequest) {
1854
2520
  return __awaiter(this, void 0, void 0, function* () {
1855
2521
  if (this.logger)
1856
2522
  this.logger.debug("Calling operation WorkRequestClient#listWorkRequestLogs.");
1857
2523
  const operationName = "listWorkRequestLogs";
1858
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20200501/WorkRequestLogEntry/ListWorkRequestLogs";
2524
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/WorkRequestLogEntry/ListWorkRequestLogs";
1859
2525
  const pathParams = {
1860
2526
  "{workRequestId}": listWorkRequestLogsRequest.workRequestId
1861
2527
  };
@@ -1915,14 +2581,14 @@ class WorkRequestClient {
1915
2581
  * @param ListWorkRequestsRequest
1916
2582
  * @return ListWorkRequestsResponse
1917
2583
  * @throws OciError when an error occurs
1918
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.74.0/ocvp/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
2584
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.75.0/ocvp/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
1919
2585
  */
1920
2586
  listWorkRequests(listWorkRequestsRequest) {
1921
2587
  return __awaiter(this, void 0, void 0, function* () {
1922
2588
  if (this.logger)
1923
2589
  this.logger.debug("Calling operation WorkRequestClient#listWorkRequests.");
1924
2590
  const operationName = "listWorkRequests";
1925
- const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20200501/WorkRequest/ListWorkRequests";
2591
+ const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/WorkRequest/ListWorkRequests";
1926
2592
  const pathParams = {};
1927
2593
  const queryParams = {
1928
2594
  "compartmentId": listWorkRequestsRequest.compartmentId,