oci-ocvp 2.5.2 → 2.8.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.
- package/lib/client.d.ts +51 -21
- package/lib/client.js +114 -42
- package/lib/client.js.map +1 -1
- package/lib/model/create-esxi-host-details.d.ts +7 -0
- package/lib/model/create-esxi-host-details.js.map +1 -1
- package/lib/model/create-sddc-details.d.ts +1 -1
- package/lib/model/esxi-host-summary.d.ts +5 -0
- package/lib/model/esxi-host-summary.js.map +1 -1
- package/lib/model/esxi-host.d.ts +5 -0
- package/lib/model/esxi-host.js.map +1 -1
- package/lib/model/sddc-summary.d.ts +1 -1
- package/lib/model/sddc.d.ts +2 -2
- package/lib/request/cancel-downgrade-hcx-request.d.ts +1 -1
- package/lib/request/change-sddc-compartment-request.d.ts +1 -1
- package/lib/request/create-esxi-host-request.d.ts +1 -1
- package/lib/request/create-sddc-request.d.ts +1 -1
- package/lib/request/delete-esxi-host-request.d.ts +1 -1
- package/lib/request/delete-sddc-request.d.ts +1 -1
- package/lib/request/downgrade-hcx-request.d.ts +1 -1
- package/lib/request/get-esxi-host-request.d.ts +1 -1
- package/lib/request/get-sddc-request.d.ts +1 -1
- package/lib/request/get-work-request-request.d.ts +1 -1
- package/lib/request/list-esxi-hosts-request.d.ts +1 -1
- package/lib/request/list-sddcs-request.d.ts +1 -1
- package/lib/request/list-supported-skus-request.d.ts +1 -1
- package/lib/request/list-supported-vmware-software-versions-request.d.ts +1 -1
- package/lib/request/list-work-request-errors-request.d.ts +1 -1
- package/lib/request/list-work-request-logs-request.d.ts +1 -1
- package/lib/request/list-work-requests-request.d.ts +1 -1
- package/lib/request/refresh-hcx-license-status-request.d.ts +1 -1
- package/lib/request/update-esxi-host-request.d.ts +1 -1
- package/lib/request/update-sddc-request.d.ts +1 -1
- package/lib/request/upgrade-hcx-request.d.ts +1 -1
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -54,6 +54,9 @@ const oci_common_1 = require("oci-common");
|
|
|
54
54
|
var EsxiHostApiKeys;
|
|
55
55
|
(function (EsxiHostApiKeys) {
|
|
56
56
|
})(EsxiHostApiKeys = exports.EsxiHostApiKeys || (exports.EsxiHostApiKeys = {}));
|
|
57
|
+
/**
|
|
58
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
59
|
+
*/
|
|
57
60
|
class EsxiHostClient {
|
|
58
61
|
constructor(params, clientConfiguration) {
|
|
59
62
|
this["_endpoint"] = "";
|
|
@@ -68,6 +71,13 @@ class EsxiHostClient {
|
|
|
68
71
|
? clientConfiguration.circuitBreaker.circuit
|
|
69
72
|
: null;
|
|
70
73
|
}
|
|
74
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
75
|
+
const specCircuitBreakerEnabled = true;
|
|
76
|
+
if (!this._circuitBreaker &&
|
|
77
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
78
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
79
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
80
|
+
}
|
|
71
81
|
this._httpClient =
|
|
72
82
|
params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
|
|
73
83
|
if (params.authenticationDetailsProvider &&
|
|
@@ -145,10 +155,11 @@ class EsxiHostClient {
|
|
|
145
155
|
Use the {@link WorkRequest} operations to track the
|
|
146
156
|
* creation of the ESXi host.
|
|
147
157
|
*
|
|
158
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
148
159
|
* @param CreateEsxiHostRequest
|
|
149
160
|
* @return CreateEsxiHostResponse
|
|
150
161
|
* @throws OciError when an error occurs
|
|
151
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
162
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/ocvp/CreateEsxiHost.ts.html |here} to see how to use CreateEsxiHost API.
|
|
152
163
|
*/
|
|
153
164
|
createEsxiHost(createEsxiHostRequest) {
|
|
154
165
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -161,7 +172,8 @@ class EsxiHostClient {
|
|
|
161
172
|
"opc-retry-token": createEsxiHostRequest.opcRetryToken,
|
|
162
173
|
"opc-request-id": createEsxiHostRequest.opcRequestId
|
|
163
174
|
};
|
|
164
|
-
const
|
|
175
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
176
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createEsxiHostRequest.retryConfiguration, specRetryConfiguration);
|
|
165
177
|
if (this.logger)
|
|
166
178
|
retrier.logger = this.logger;
|
|
167
179
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -214,10 +226,11 @@ class EsxiHostClient {
|
|
|
214
226
|
Use the {@link WorkRequest} operations to track the
|
|
215
227
|
* deletion of the ESXi host.
|
|
216
228
|
*
|
|
229
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
217
230
|
* @param DeleteEsxiHostRequest
|
|
218
231
|
* @return DeleteEsxiHostResponse
|
|
219
232
|
* @throws OciError when an error occurs
|
|
220
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
233
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/ocvp/DeleteEsxiHost.ts.html |here} to see how to use DeleteEsxiHost API.
|
|
221
234
|
*/
|
|
222
235
|
deleteEsxiHost(deleteEsxiHostRequest) {
|
|
223
236
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -232,7 +245,8 @@ class EsxiHostClient {
|
|
|
232
245
|
"if-match": deleteEsxiHostRequest.ifMatch,
|
|
233
246
|
"opc-request-id": deleteEsxiHostRequest.opcRequestId
|
|
234
247
|
};
|
|
235
|
-
const
|
|
248
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
249
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteEsxiHostRequest.retryConfiguration, specRetryConfiguration);
|
|
236
250
|
if (this.logger)
|
|
237
251
|
retrier.logger = this.logger;
|
|
238
252
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -270,10 +284,11 @@ class EsxiHostClient {
|
|
|
270
284
|
}
|
|
271
285
|
/**
|
|
272
286
|
* Gets the specified ESXi host's information.
|
|
287
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
273
288
|
* @param GetEsxiHostRequest
|
|
274
289
|
* @return GetEsxiHostResponse
|
|
275
290
|
* @throws OciError when an error occurs
|
|
276
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
291
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/ocvp/GetEsxiHost.ts.html |here} to see how to use GetEsxiHost API.
|
|
277
292
|
*/
|
|
278
293
|
getEsxiHost(getEsxiHostRequest) {
|
|
279
294
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -287,7 +302,8 @@ class EsxiHostClient {
|
|
|
287
302
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
288
303
|
"opc-request-id": getEsxiHostRequest.opcRequestId
|
|
289
304
|
};
|
|
290
|
-
const
|
|
305
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
306
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getEsxiHostRequest.retryConfiguration, specRetryConfiguration);
|
|
291
307
|
if (this.logger)
|
|
292
308
|
retrier.logger = this.logger;
|
|
293
309
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -338,10 +354,11 @@ class EsxiHostClient {
|
|
|
338
354
|
* ESXi hosts, you can specify the OCID of the Compute instance, not the
|
|
339
355
|
* ESXi host OCID.
|
|
340
356
|
*
|
|
357
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
341
358
|
* @param ListEsxiHostsRequest
|
|
342
359
|
* @return ListEsxiHostsResponse
|
|
343
360
|
* @throws OciError when an error occurs
|
|
344
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
361
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/ocvp/ListEsxiHosts.ts.html |here} to see how to use ListEsxiHosts API.
|
|
345
362
|
*/
|
|
346
363
|
listEsxiHosts(listEsxiHostsRequest) {
|
|
347
364
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -362,7 +379,8 @@ class EsxiHostClient {
|
|
|
362
379
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
363
380
|
"opc-request-id": listEsxiHostsRequest.opcRequestId
|
|
364
381
|
};
|
|
365
|
-
const
|
|
382
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
383
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listEsxiHostsRequest.retryConfiguration, specRetryConfiguration);
|
|
366
384
|
if (this.logger)
|
|
367
385
|
retrier.logger = this.logger;
|
|
368
386
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -404,10 +422,11 @@ class EsxiHostClient {
|
|
|
404
422
|
}
|
|
405
423
|
/**
|
|
406
424
|
* Updates the specified ESXi host.
|
|
425
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
407
426
|
* @param UpdateEsxiHostRequest
|
|
408
427
|
* @return UpdateEsxiHostResponse
|
|
409
428
|
* @throws OciError when an error occurs
|
|
410
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
429
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/ocvp/UpdateEsxiHost.ts.html |here} to see how to use UpdateEsxiHost API.
|
|
411
430
|
*/
|
|
412
431
|
updateEsxiHost(updateEsxiHostRequest) {
|
|
413
432
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -422,7 +441,8 @@ class EsxiHostClient {
|
|
|
422
441
|
"if-match": updateEsxiHostRequest.ifMatch,
|
|
423
442
|
"opc-request-id": updateEsxiHostRequest.opcRequestId
|
|
424
443
|
};
|
|
425
|
-
const
|
|
444
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
445
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateEsxiHostRequest.retryConfiguration, specRetryConfiguration);
|
|
426
446
|
if (this.logger)
|
|
427
447
|
retrier.logger = this.logger;
|
|
428
448
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -469,6 +489,9 @@ EsxiHostClient.serviceEndpointTemplate = "https://ocvps.{region}.oci.{secondLeve
|
|
|
469
489
|
var SddcApiKeys;
|
|
470
490
|
(function (SddcApiKeys) {
|
|
471
491
|
})(SddcApiKeys = exports.SddcApiKeys || (exports.SddcApiKeys = {}));
|
|
492
|
+
/**
|
|
493
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
494
|
+
*/
|
|
472
495
|
class SddcClient {
|
|
473
496
|
constructor(params, clientConfiguration) {
|
|
474
497
|
this["_endpoint"] = "";
|
|
@@ -483,6 +506,13 @@ class SddcClient {
|
|
|
483
506
|
? clientConfiguration.circuitBreaker.circuit
|
|
484
507
|
: null;
|
|
485
508
|
}
|
|
509
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
510
|
+
const specCircuitBreakerEnabled = true;
|
|
511
|
+
if (!this._circuitBreaker &&
|
|
512
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
513
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
514
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
515
|
+
}
|
|
486
516
|
this._httpClient =
|
|
487
517
|
params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
|
|
488
518
|
if (params.authenticationDetailsProvider &&
|
|
@@ -555,10 +585,11 @@ class SddcClient {
|
|
|
555
585
|
/**
|
|
556
586
|
* Cancel the pending SDDC downgrade from HCX Enterprise to HCX Advanced.
|
|
557
587
|
*
|
|
588
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
558
589
|
* @param CancelDowngradeHcxRequest
|
|
559
590
|
* @return CancelDowngradeHcxResponse
|
|
560
591
|
* @throws OciError when an error occurs
|
|
561
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
592
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/ocvp/CancelDowngradeHcx.ts.html |here} to see how to use CancelDowngradeHcx API.
|
|
562
593
|
*/
|
|
563
594
|
cancelDowngradeHcx(cancelDowngradeHcxRequest) {
|
|
564
595
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -574,7 +605,8 @@ class SddcClient {
|
|
|
574
605
|
"if-match": cancelDowngradeHcxRequest.ifMatch,
|
|
575
606
|
"opc-request-id": cancelDowngradeHcxRequest.opcRequestId
|
|
576
607
|
};
|
|
577
|
-
const
|
|
608
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
609
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelDowngradeHcxRequest.retryConfiguration, specRetryConfiguration);
|
|
578
610
|
if (this.logger)
|
|
579
611
|
retrier.logger = this.logger;
|
|
580
612
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -615,10 +647,11 @@ class SddcClient {
|
|
|
615
647
|
* about moving resources between compartments, see
|
|
616
648
|
* [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
|
617
649
|
*
|
|
650
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
618
651
|
* @param ChangeSddcCompartmentRequest
|
|
619
652
|
* @return ChangeSddcCompartmentResponse
|
|
620
653
|
* @throws OciError when an error occurs
|
|
621
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
654
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/ocvp/ChangeSddcCompartment.ts.html |here} to see how to use ChangeSddcCompartment API.
|
|
622
655
|
*/
|
|
623
656
|
changeSddcCompartment(changeSddcCompartmentRequest) {
|
|
624
657
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -634,7 +667,8 @@ class SddcClient {
|
|
|
634
667
|
"opc-request-id": changeSddcCompartmentRequest.opcRequestId,
|
|
635
668
|
"opc-retry-token": changeSddcCompartmentRequest.opcRetryToken
|
|
636
669
|
};
|
|
637
|
-
const
|
|
670
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
671
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeSddcCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
638
672
|
if (this.logger)
|
|
639
673
|
retrier.logger = this.logger;
|
|
640
674
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -674,10 +708,11 @@ class SddcClient {
|
|
|
674
708
|
* <p>
|
|
675
709
|
**Important:** You must configure the SDDC'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.
|
|
676
710
|
*
|
|
711
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
677
712
|
* @param CreateSddcRequest
|
|
678
713
|
* @return CreateSddcResponse
|
|
679
714
|
* @throws OciError when an error occurs
|
|
680
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
715
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/ocvp/CreateSddc.ts.html |here} to see how to use CreateSddc API.
|
|
681
716
|
*/
|
|
682
717
|
createSddc(createSddcRequest) {
|
|
683
718
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -690,7 +725,8 @@ class SddcClient {
|
|
|
690
725
|
"opc-retry-token": createSddcRequest.opcRetryToken,
|
|
691
726
|
"opc-request-id": createSddcRequest.opcRequestId
|
|
692
727
|
};
|
|
693
|
-
const
|
|
728
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
729
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createSddcRequest.retryConfiguration, specRetryConfiguration);
|
|
694
730
|
if (this.logger)
|
|
695
731
|
retrier.logger = this.logger;
|
|
696
732
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -735,10 +771,11 @@ class SddcClient {
|
|
|
735
771
|
Use the {@link WorkRequest} operations to track the
|
|
736
772
|
* deletion of the SDDC.
|
|
737
773
|
*
|
|
774
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
738
775
|
* @param DeleteSddcRequest
|
|
739
776
|
* @return DeleteSddcResponse
|
|
740
777
|
* @throws OciError when an error occurs
|
|
741
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
778
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/ocvp/DeleteSddc.ts.html |here} to see how to use DeleteSddc API.
|
|
742
779
|
*/
|
|
743
780
|
deleteSddc(deleteSddcRequest) {
|
|
744
781
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -753,7 +790,8 @@ class SddcClient {
|
|
|
753
790
|
"if-match": deleteSddcRequest.ifMatch,
|
|
754
791
|
"opc-request-id": deleteSddcRequest.opcRequestId
|
|
755
792
|
};
|
|
756
|
-
const
|
|
793
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
794
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteSddcRequest.retryConfiguration, specRetryConfiguration);
|
|
757
795
|
if (this.logger)
|
|
758
796
|
retrier.logger = this.logger;
|
|
759
797
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -795,10 +833,11 @@ class SddcClient {
|
|
|
795
833
|
* Downgrade remains in a `PENDING` state until the end of the current billing cycle. You can use {@link #cancelDowngradeHcx(CancelDowngradeHcxRequest) cancelDowngradeHcx}
|
|
796
834
|
* to cancel the downgrade while it's still in a `PENDING` state.
|
|
797
835
|
*
|
|
836
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
798
837
|
* @param DowngradeHcxRequest
|
|
799
838
|
* @return DowngradeHcxResponse
|
|
800
839
|
* @throws OciError when an error occurs
|
|
801
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
840
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/ocvp/DowngradeHcx.ts.html |here} to see how to use DowngradeHcx API.
|
|
802
841
|
*/
|
|
803
842
|
downgradeHcx(downgradeHcxRequest) {
|
|
804
843
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -814,7 +853,8 @@ class SddcClient {
|
|
|
814
853
|
"if-match": downgradeHcxRequest.ifMatch,
|
|
815
854
|
"opc-request-id": downgradeHcxRequest.opcRequestId
|
|
816
855
|
};
|
|
817
|
-
const
|
|
856
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
857
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, downgradeHcxRequest.retryConfiguration, specRetryConfiguration);
|
|
818
858
|
if (this.logger)
|
|
819
859
|
retrier.logger = this.logger;
|
|
820
860
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -853,10 +893,11 @@ class SddcClient {
|
|
|
853
893
|
}
|
|
854
894
|
/**
|
|
855
895
|
* Gets the specified SDDC's information.
|
|
896
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
856
897
|
* @param GetSddcRequest
|
|
857
898
|
* @return GetSddcResponse
|
|
858
899
|
* @throws OciError when an error occurs
|
|
859
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
900
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/ocvp/GetSddc.ts.html |here} to see how to use GetSddc API.
|
|
860
901
|
*/
|
|
861
902
|
getSddc(getSddcRequest) {
|
|
862
903
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -870,7 +911,8 @@ class SddcClient {
|
|
|
870
911
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
871
912
|
"opc-request-id": getSddcRequest.opcRequestId
|
|
872
913
|
};
|
|
873
|
-
const
|
|
914
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
915
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getSddcRequest.retryConfiguration, specRetryConfiguration);
|
|
874
916
|
if (this.logger)
|
|
875
917
|
retrier.logger = this.logger;
|
|
876
918
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -914,10 +956,11 @@ class SddcClient {
|
|
|
914
956
|
* Lists the SDDCs in the specified compartment. The list can be
|
|
915
957
|
* filtered by display name or availability domain.
|
|
916
958
|
*
|
|
959
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
917
960
|
* @param ListSddcsRequest
|
|
918
961
|
* @return ListSddcsResponse
|
|
919
962
|
* @throws OciError when an error occurs
|
|
920
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
963
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/ocvp/ListSddcs.ts.html |here} to see how to use ListSddcs API.
|
|
921
964
|
*/
|
|
922
965
|
listSddcs(listSddcsRequest) {
|
|
923
966
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -938,7 +981,8 @@ class SddcClient {
|
|
|
938
981
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
939
982
|
"opc-request-id": listSddcsRequest.opcRequestId
|
|
940
983
|
};
|
|
941
|
-
const
|
|
984
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
985
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSddcsRequest.retryConfiguration, specRetryConfiguration);
|
|
942
986
|
if (this.logger)
|
|
943
987
|
retrier.logger = this.logger;
|
|
944
988
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -981,10 +1025,11 @@ class SddcClient {
|
|
|
981
1025
|
/**
|
|
982
1026
|
* Lists supported SKUs.
|
|
983
1027
|
*
|
|
1028
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
984
1029
|
* @param ListSupportedSkusRequest
|
|
985
1030
|
* @return ListSupportedSkusResponse
|
|
986
1031
|
* @throws OciError when an error occurs
|
|
987
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1032
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/ocvp/ListSupportedSkus.ts.html |here} to see how to use ListSupportedSkus API.
|
|
988
1033
|
*/
|
|
989
1034
|
listSupportedSkus(listSupportedSkusRequest) {
|
|
990
1035
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1000,7 +1045,8 @@ class SddcClient {
|
|
|
1000
1045
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1001
1046
|
"opc-request-id": listSupportedSkusRequest.opcRequestId
|
|
1002
1047
|
};
|
|
1003
|
-
const
|
|
1048
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1049
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSupportedSkusRequest.retryConfiguration, specRetryConfiguration);
|
|
1004
1050
|
if (this.logger)
|
|
1005
1051
|
retrier.logger = this.logger;
|
|
1006
1052
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1044,10 +1090,11 @@ class SddcClient {
|
|
|
1044
1090
|
* Lists the versions of bundled VMware software supported by the Oracle Cloud
|
|
1045
1091
|
* VMware Solution.
|
|
1046
1092
|
*
|
|
1093
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1047
1094
|
* @param ListSupportedVmwareSoftwareVersionsRequest
|
|
1048
1095
|
* @return ListSupportedVmwareSoftwareVersionsResponse
|
|
1049
1096
|
* @throws OciError when an error occurs
|
|
1050
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1097
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/ocvp/ListSupportedVmwareSoftwareVersions.ts.html |here} to see how to use ListSupportedVmwareSoftwareVersions API.
|
|
1051
1098
|
*/
|
|
1052
1099
|
listSupportedVmwareSoftwareVersions(listSupportedVmwareSoftwareVersionsRequest) {
|
|
1053
1100
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1063,7 +1110,8 @@ class SddcClient {
|
|
|
1063
1110
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1064
1111
|
"opc-request-id": listSupportedVmwareSoftwareVersionsRequest.opcRequestId
|
|
1065
1112
|
};
|
|
1066
|
-
const
|
|
1113
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1114
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listSupportedVmwareSoftwareVersionsRequest.retryConfiguration, specRetryConfiguration);
|
|
1067
1115
|
if (this.logger)
|
|
1068
1116
|
retrier.logger = this.logger;
|
|
1069
1117
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1105,10 +1153,11 @@ class SddcClient {
|
|
|
1105
1153
|
}
|
|
1106
1154
|
/**
|
|
1107
1155
|
* Refresh HCX on-premise licenses status of the specified SDDC.
|
|
1156
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1108
1157
|
* @param RefreshHcxLicenseStatusRequest
|
|
1109
1158
|
* @return RefreshHcxLicenseStatusResponse
|
|
1110
1159
|
* @throws OciError when an error occurs
|
|
1111
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1160
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/ocvp/RefreshHcxLicenseStatus.ts.html |here} to see how to use RefreshHcxLicenseStatus API.
|
|
1112
1161
|
*/
|
|
1113
1162
|
refreshHcxLicenseStatus(refreshHcxLicenseStatusRequest) {
|
|
1114
1163
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1124,7 +1173,8 @@ class SddcClient {
|
|
|
1124
1173
|
"if-match": refreshHcxLicenseStatusRequest.ifMatch,
|
|
1125
1174
|
"opc-request-id": refreshHcxLicenseStatusRequest.opcRequestId
|
|
1126
1175
|
};
|
|
1127
|
-
const
|
|
1176
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1177
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, refreshHcxLicenseStatusRequest.retryConfiguration, specRetryConfiguration);
|
|
1128
1178
|
if (this.logger)
|
|
1129
1179
|
retrier.logger = this.logger;
|
|
1130
1180
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1168,10 +1218,11 @@ class SddcClient {
|
|
|
1168
1218
|
* the SDDC. For more information, see
|
|
1169
1219
|
* {@link #updateSddcDetails(UpdateSddcDetailsRequest) updateSddcDetails}.
|
|
1170
1220
|
*
|
|
1221
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1171
1222
|
* @param UpdateSddcRequest
|
|
1172
1223
|
* @return UpdateSddcResponse
|
|
1173
1224
|
* @throws OciError when an error occurs
|
|
1174
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1225
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/ocvp/UpdateSddc.ts.html |here} to see how to use UpdateSddc API.
|
|
1175
1226
|
*/
|
|
1176
1227
|
updateSddc(updateSddcRequest) {
|
|
1177
1228
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1186,7 +1237,8 @@ class SddcClient {
|
|
|
1186
1237
|
"if-match": updateSddcRequest.ifMatch,
|
|
1187
1238
|
"opc-request-id": updateSddcRequest.opcRequestId
|
|
1188
1239
|
};
|
|
1189
|
-
const
|
|
1240
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1241
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateSddcRequest.retryConfiguration, specRetryConfiguration);
|
|
1190
1242
|
if (this.logger)
|
|
1191
1243
|
retrier.logger = this.logger;
|
|
1192
1244
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1230,10 +1282,11 @@ class SddcClient {
|
|
|
1230
1282
|
/**
|
|
1231
1283
|
* Upgrade the specified SDDC from HCX Advanced to HCX Enterprise.
|
|
1232
1284
|
*
|
|
1285
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1233
1286
|
* @param UpgradeHcxRequest
|
|
1234
1287
|
* @return UpgradeHcxResponse
|
|
1235
1288
|
* @throws OciError when an error occurs
|
|
1236
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1289
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/ocvp/UpgradeHcx.ts.html |here} to see how to use UpgradeHcx API.
|
|
1237
1290
|
*/
|
|
1238
1291
|
upgradeHcx(upgradeHcxRequest) {
|
|
1239
1292
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1249,7 +1302,8 @@ class SddcClient {
|
|
|
1249
1302
|
"if-match": upgradeHcxRequest.ifMatch,
|
|
1250
1303
|
"opc-request-id": upgradeHcxRequest.opcRequestId
|
|
1251
1304
|
};
|
|
1252
|
-
const
|
|
1305
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1306
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, upgradeHcxRequest.retryConfiguration, specRetryConfiguration);
|
|
1253
1307
|
if (this.logger)
|
|
1254
1308
|
retrier.logger = this.logger;
|
|
1255
1309
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1291,6 +1345,9 @@ SddcClient.serviceEndpointTemplate = "https://ocvps.{region}.oci.{secondLevelDom
|
|
|
1291
1345
|
var WorkRequestApiKeys;
|
|
1292
1346
|
(function (WorkRequestApiKeys) {
|
|
1293
1347
|
})(WorkRequestApiKeys = exports.WorkRequestApiKeys || (exports.WorkRequestApiKeys = {}));
|
|
1348
|
+
/**
|
|
1349
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
1350
|
+
*/
|
|
1294
1351
|
class WorkRequestClient {
|
|
1295
1352
|
constructor(params, clientConfiguration) {
|
|
1296
1353
|
this["_endpoint"] = "";
|
|
@@ -1305,6 +1362,13 @@ class WorkRequestClient {
|
|
|
1305
1362
|
? clientConfiguration.circuitBreaker.circuit
|
|
1306
1363
|
: null;
|
|
1307
1364
|
}
|
|
1365
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
1366
|
+
const specCircuitBreakerEnabled = true;
|
|
1367
|
+
if (!this._circuitBreaker &&
|
|
1368
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
1369
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
1370
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
1371
|
+
}
|
|
1308
1372
|
this._httpClient =
|
|
1309
1373
|
params.httpClient || new common.FetchHttpClient(requestSigner, this._circuitBreaker);
|
|
1310
1374
|
if (params.authenticationDetailsProvider &&
|
|
@@ -1376,10 +1440,11 @@ class WorkRequestClient {
|
|
|
1376
1440
|
}
|
|
1377
1441
|
/**
|
|
1378
1442
|
* Gets the specified work request's information.
|
|
1443
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1379
1444
|
* @param GetWorkRequestRequest
|
|
1380
1445
|
* @return GetWorkRequestResponse
|
|
1381
1446
|
* @throws OciError when an error occurs
|
|
1382
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1447
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/ocvp/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
1383
1448
|
*/
|
|
1384
1449
|
getWorkRequest(getWorkRequestRequest) {
|
|
1385
1450
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1393,7 +1458,8 @@ class WorkRequestClient {
|
|
|
1393
1458
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1394
1459
|
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
1395
1460
|
};
|
|
1396
|
-
const
|
|
1461
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1462
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
1397
1463
|
if (this.logger)
|
|
1398
1464
|
retrier.logger = this.logger;
|
|
1399
1465
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1436,10 +1502,11 @@ class WorkRequestClient {
|
|
|
1436
1502
|
/**
|
|
1437
1503
|
* Lists the errors for the specified work request.
|
|
1438
1504
|
*
|
|
1505
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1439
1506
|
* @param ListWorkRequestErrorsRequest
|
|
1440
1507
|
* @return ListWorkRequestErrorsResponse
|
|
1441
1508
|
* @throws OciError when an error occurs
|
|
1442
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1509
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/ocvp/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
1443
1510
|
*/
|
|
1444
1511
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
1445
1512
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1456,7 +1523,8 @@ class WorkRequestClient {
|
|
|
1456
1523
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1457
1524
|
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
1458
1525
|
};
|
|
1459
|
-
const
|
|
1526
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1527
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
1460
1528
|
if (this.logger)
|
|
1461
1529
|
retrier.logger = this.logger;
|
|
1462
1530
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1499,10 +1567,11 @@ class WorkRequestClient {
|
|
|
1499
1567
|
/**
|
|
1500
1568
|
* Lists the logs for the specified work request.
|
|
1501
1569
|
*
|
|
1570
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1502
1571
|
* @param ListWorkRequestLogsRequest
|
|
1503
1572
|
* @return ListWorkRequestLogsResponse
|
|
1504
1573
|
* @throws OciError when an error occurs
|
|
1505
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1574
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/ocvp/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
1506
1575
|
*/
|
|
1507
1576
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1508
1577
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1519,7 +1588,8 @@ class WorkRequestClient {
|
|
|
1519
1588
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1520
1589
|
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
1521
1590
|
};
|
|
1522
|
-
const
|
|
1591
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1592
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
1523
1593
|
if (this.logger)
|
|
1524
1594
|
retrier.logger = this.logger;
|
|
1525
1595
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -1562,10 +1632,11 @@ class WorkRequestClient {
|
|
|
1562
1632
|
/**
|
|
1563
1633
|
* Lists the work requests in the specified compartment.
|
|
1564
1634
|
*
|
|
1635
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1565
1636
|
* @param ListWorkRequestsRequest
|
|
1566
1637
|
* @return ListWorkRequestsResponse
|
|
1567
1638
|
* @throws OciError when an error occurs
|
|
1568
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1639
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.8.0/ocvp/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
1569
1640
|
*/
|
|
1570
1641
|
listWorkRequests(listWorkRequestsRequest) {
|
|
1571
1642
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1582,7 +1653,8 @@ class WorkRequestClient {
|
|
|
1582
1653
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1583
1654
|
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
1584
1655
|
};
|
|
1585
|
-
const
|
|
1656
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1657
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
1586
1658
|
if (this.logger)
|
|
1587
1659
|
retrier.logger = this.logger;
|
|
1588
1660
|
const request = yield oci_common_1.composeRequest({
|