oci-mysql 2.79.1 → 2.81.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 +58 -52
- package/lib/client.js +278 -110
- package/lib/client.js.map +1 -1
- package/lib/model/anonymous-transactions-handling.js +4 -2
- package/lib/model/anonymous-transactions-handling.js.map +1 -1
- package/lib/model/ca-certificate.js +4 -2
- package/lib/model/ca-certificate.js.map +1 -1
- package/lib/model/channel-source.js +4 -2
- package/lib/model/channel-source.js.map +1 -1
- package/lib/model/channel-target.js +4 -2
- package/lib/model/channel-target.js.map +1 -1
- package/lib/model/create-channel-source-details.js +4 -2
- package/lib/model/create-channel-source-details.js.map +1 -1
- package/lib/model/create-channel-target-details.js +4 -2
- package/lib/model/create-channel-target-details.js.map +1 -1
- package/lib/model/create-db-system-source-details.js +4 -2
- package/lib/model/create-db-system-source-details.js.map +1 -1
- package/lib/model/db-system-source.js +4 -2
- package/lib/model/db-system-source.js.map +1 -1
- package/lib/model/update-channel-source-details.js +4 -2
- package/lib/model/update-channel-source-details.js.map +1 -1
- package/lib/model/update-channel-target-details.js +4 -2
- package/lib/model/update-channel-target-details.js.map +1 -1
- package/lib/request/add-heat-wave-cluster-request.d.ts +1 -1
- package/lib/request/change-backup-compartment-request.d.ts +1 -1
- package/lib/request/create-backup-request.d.ts +1 -1
- package/lib/request/create-channel-request.d.ts +1 -1
- package/lib/request/create-configuration-request.d.ts +1 -1
- package/lib/request/create-db-system-request.d.ts +1 -1
- package/lib/request/create-replica-request.d.ts +1 -1
- package/lib/request/delete-backup-request.d.ts +1 -1
- package/lib/request/delete-channel-request.d.ts +1 -1
- package/lib/request/delete-configuration-request.d.ts +1 -1
- package/lib/request/delete-db-system-request.d.ts +1 -1
- package/lib/request/delete-heat-wave-cluster-request.d.ts +1 -1
- package/lib/request/delete-replica-request.d.ts +1 -1
- package/lib/request/generate-heat-wave-cluster-memory-estimate-request.d.ts +1 -1
- package/lib/request/get-backup-request.d.ts +1 -1
- package/lib/request/get-channel-request.d.ts +1 -1
- package/lib/request/get-configuration-request.d.ts +1 -1
- package/lib/request/get-db-system-request.d.ts +1 -1
- package/lib/request/get-heat-wave-cluster-memory-estimate-request.d.ts +1 -1
- package/lib/request/get-heat-wave-cluster-request.d.ts +1 -1
- package/lib/request/get-replica-request.d.ts +1 -1
- package/lib/request/get-work-request-request.d.ts +1 -1
- package/lib/request/list-backups-request.d.ts +1 -1
- package/lib/request/list-channels-request.d.ts +1 -1
- package/lib/request/list-configurations-request.d.ts +1 -1
- package/lib/request/list-db-systems-request.d.ts +1 -1
- package/lib/request/list-replicas-request.d.ts +1 -1
- package/lib/request/list-shapes-request.d.ts +1 -1
- package/lib/request/list-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/reset-channel-request.d.ts +1 -1
- package/lib/request/restart-db-system-request.d.ts +1 -1
- package/lib/request/restart-heat-wave-cluster-request.d.ts +1 -1
- package/lib/request/resume-channel-request.d.ts +1 -1
- package/lib/request/start-db-system-request.d.ts +1 -1
- package/lib/request/start-heat-wave-cluster-request.d.ts +1 -1
- package/lib/request/stop-db-system-request.d.ts +1 -1
- package/lib/request/stop-heat-wave-cluster-request.d.ts +1 -1
- package/lib/request/update-backup-request.d.ts +1 -1
- package/lib/request/update-channel-request.d.ts +1 -1
- package/lib/request/update-configuration-request.d.ts +1 -1
- package/lib/request/update-db-system-request.d.ts +1 -1
- package/lib/request/update-heat-wave-cluster-request.d.ts +1 -1
- package/lib/request/update-replica-request.d.ts +1 -1
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -63,7 +63,7 @@ var ChannelsApiKeys;
|
|
|
63
63
|
*/
|
|
64
64
|
class ChannelsClient {
|
|
65
65
|
constructor(params, clientConfiguration) {
|
|
66
|
-
this["_realmSpecificEndpointTemplateEnabled"] =
|
|
66
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
67
67
|
this["_endpoint"] = "";
|
|
68
68
|
this["_defaultHeaders"] = {};
|
|
69
69
|
this._circuitBreaker = null;
|
|
@@ -122,7 +122,11 @@ class ChannelsClient {
|
|
|
122
122
|
set endpoint(endpoint) {
|
|
123
123
|
this._endpoint = endpoint;
|
|
124
124
|
this._endpoint = this._endpoint + "/20190415";
|
|
125
|
-
|
|
125
|
+
if (this.logger)
|
|
126
|
+
this.logger.info(`ChannelsClient endpoint set to ${this._endpoint}`);
|
|
127
|
+
}
|
|
128
|
+
get logger() {
|
|
129
|
+
return common.LOG.logger;
|
|
126
130
|
}
|
|
127
131
|
/**
|
|
128
132
|
* Determines whether realm specific endpoint should be used or not.
|
|
@@ -131,7 +135,8 @@ class ChannelsClient {
|
|
|
131
135
|
*/
|
|
132
136
|
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
133
137
|
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
134
|
-
|
|
138
|
+
if (this.logger)
|
|
139
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
135
140
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
136
141
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ChannelsClient.serviceEndpointTemplate, this._region, ChannelsClient.endpointServiceName);
|
|
137
142
|
}
|
|
@@ -198,11 +203,12 @@ class ChannelsClient {
|
|
|
198
203
|
* @param CreateChannelRequest
|
|
199
204
|
* @return CreateChannelResponse
|
|
200
205
|
* @throws OciError when an error occurs
|
|
201
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
206
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/CreateChannel.ts.html |here} to see how to use CreateChannel API.
|
|
202
207
|
*/
|
|
203
208
|
createChannel(createChannelRequest) {
|
|
204
209
|
return __awaiter(this, void 0, void 0, function* () {
|
|
205
|
-
|
|
210
|
+
if (this.logger)
|
|
211
|
+
this.logger.debug("Calling operation ChannelsClient#createChannel.");
|
|
206
212
|
const operationName = "createChannel";
|
|
207
213
|
const apiReferenceLink = "";
|
|
208
214
|
const pathParams = {};
|
|
@@ -214,6 +220,8 @@ class ChannelsClient {
|
|
|
214
220
|
};
|
|
215
221
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
216
222
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createChannelRequest.retryConfiguration, specRetryConfiguration);
|
|
223
|
+
if (this.logger)
|
|
224
|
+
retrier.logger = this.logger;
|
|
217
225
|
const request = yield oci_common_2.composeRequest({
|
|
218
226
|
baseEndpoint: this._endpoint,
|
|
219
227
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -263,11 +271,12 @@ class ChannelsClient {
|
|
|
263
271
|
* @param DeleteChannelRequest
|
|
264
272
|
* @return DeleteChannelResponse
|
|
265
273
|
* @throws OciError when an error occurs
|
|
266
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
274
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/DeleteChannel.ts.html |here} to see how to use DeleteChannel API.
|
|
267
275
|
*/
|
|
268
276
|
deleteChannel(deleteChannelRequest) {
|
|
269
277
|
return __awaiter(this, void 0, void 0, function* () {
|
|
270
|
-
|
|
278
|
+
if (this.logger)
|
|
279
|
+
this.logger.debug("Calling operation ChannelsClient#deleteChannel.");
|
|
271
280
|
const operationName = "deleteChannel";
|
|
272
281
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/Channel/DeleteChannel";
|
|
273
282
|
const pathParams = {
|
|
@@ -281,6 +290,8 @@ class ChannelsClient {
|
|
|
281
290
|
};
|
|
282
291
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
283
292
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteChannelRequest.retryConfiguration, specRetryConfiguration);
|
|
293
|
+
if (this.logger)
|
|
294
|
+
retrier.logger = this.logger;
|
|
284
295
|
const request = yield oci_common_2.composeRequest({
|
|
285
296
|
baseEndpoint: this._endpoint,
|
|
286
297
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -323,11 +334,12 @@ class ChannelsClient {
|
|
|
323
334
|
* @param GetChannelRequest
|
|
324
335
|
* @return GetChannelResponse
|
|
325
336
|
* @throws OciError when an error occurs
|
|
326
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
337
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/GetChannel.ts.html |here} to see how to use GetChannel API.
|
|
327
338
|
*/
|
|
328
339
|
getChannel(getChannelRequest) {
|
|
329
340
|
return __awaiter(this, void 0, void 0, function* () {
|
|
330
|
-
|
|
341
|
+
if (this.logger)
|
|
342
|
+
this.logger.debug("Calling operation ChannelsClient#getChannel.");
|
|
331
343
|
const operationName = "getChannel";
|
|
332
344
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/Channel/GetChannel";
|
|
333
345
|
const pathParams = {
|
|
@@ -341,6 +353,8 @@ class ChannelsClient {
|
|
|
341
353
|
};
|
|
342
354
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
343
355
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getChannelRequest.retryConfiguration, specRetryConfiguration);
|
|
356
|
+
if (this.logger)
|
|
357
|
+
retrier.logger = this.logger;
|
|
344
358
|
const request = yield oci_common_2.composeRequest({
|
|
345
359
|
baseEndpoint: this._endpoint,
|
|
346
360
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -384,11 +398,12 @@ class ChannelsClient {
|
|
|
384
398
|
* @param ListChannelsRequest
|
|
385
399
|
* @return ListChannelsResponse
|
|
386
400
|
* @throws OciError when an error occurs
|
|
387
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
401
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/ListChannels.ts.html |here} to see how to use ListChannels API.
|
|
388
402
|
*/
|
|
389
403
|
listChannels(listChannelsRequest) {
|
|
390
404
|
return __awaiter(this, void 0, void 0, function* () {
|
|
391
|
-
|
|
405
|
+
if (this.logger)
|
|
406
|
+
this.logger.debug("Calling operation ChannelsClient#listChannels.");
|
|
392
407
|
const operationName = "listChannels";
|
|
393
408
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/ChannelSummary/ListChannels";
|
|
394
409
|
const pathParams = {};
|
|
@@ -410,6 +425,8 @@ class ChannelsClient {
|
|
|
410
425
|
};
|
|
411
426
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
412
427
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listChannelsRequest.retryConfiguration, specRetryConfiguration);
|
|
428
|
+
if (this.logger)
|
|
429
|
+
retrier.logger = this.logger;
|
|
413
430
|
const request = yield oci_common_2.composeRequest({
|
|
414
431
|
baseEndpoint: this._endpoint,
|
|
415
432
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -495,11 +512,12 @@ class ChannelsClient {
|
|
|
495
512
|
* @param ResetChannelRequest
|
|
496
513
|
* @return ResetChannelResponse
|
|
497
514
|
* @throws OciError when an error occurs
|
|
498
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
515
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/ResetChannel.ts.html |here} to see how to use ResetChannel API.
|
|
499
516
|
*/
|
|
500
517
|
resetChannel(resetChannelRequest) {
|
|
501
518
|
return __awaiter(this, void 0, void 0, function* () {
|
|
502
|
-
|
|
519
|
+
if (this.logger)
|
|
520
|
+
this.logger.debug("Calling operation ChannelsClient#resetChannel.");
|
|
503
521
|
const operationName = "resetChannel";
|
|
504
522
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/Channel/ResetChannel";
|
|
505
523
|
const pathParams = {
|
|
@@ -514,6 +532,8 @@ class ChannelsClient {
|
|
|
514
532
|
};
|
|
515
533
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
516
534
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, resetChannelRequest.retryConfiguration, specRetryConfiguration);
|
|
535
|
+
if (this.logger)
|
|
536
|
+
retrier.logger = this.logger;
|
|
517
537
|
const request = yield oci_common_2.composeRequest({
|
|
518
538
|
baseEndpoint: this._endpoint,
|
|
519
539
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -556,11 +576,12 @@ class ChannelsClient {
|
|
|
556
576
|
* @param ResumeChannelRequest
|
|
557
577
|
* @return ResumeChannelResponse
|
|
558
578
|
* @throws OciError when an error occurs
|
|
559
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
579
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/ResumeChannel.ts.html |here} to see how to use ResumeChannel API.
|
|
560
580
|
*/
|
|
561
581
|
resumeChannel(resumeChannelRequest) {
|
|
562
582
|
return __awaiter(this, void 0, void 0, function* () {
|
|
563
|
-
|
|
583
|
+
if (this.logger)
|
|
584
|
+
this.logger.debug("Calling operation ChannelsClient#resumeChannel.");
|
|
564
585
|
const operationName = "resumeChannel";
|
|
565
586
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/Channel/ResumeChannel";
|
|
566
587
|
const pathParams = {
|
|
@@ -575,6 +596,8 @@ class ChannelsClient {
|
|
|
575
596
|
};
|
|
576
597
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
577
598
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, resumeChannelRequest.retryConfiguration, specRetryConfiguration);
|
|
599
|
+
if (this.logger)
|
|
600
|
+
retrier.logger = this.logger;
|
|
578
601
|
const request = yield oci_common_2.composeRequest({
|
|
579
602
|
baseEndpoint: this._endpoint,
|
|
580
603
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -618,11 +641,12 @@ class ChannelsClient {
|
|
|
618
641
|
* @param UpdateChannelRequest
|
|
619
642
|
* @return UpdateChannelResponse
|
|
620
643
|
* @throws OciError when an error occurs
|
|
621
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
644
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/UpdateChannel.ts.html |here} to see how to use UpdateChannel API.
|
|
622
645
|
*/
|
|
623
646
|
updateChannel(updateChannelRequest) {
|
|
624
647
|
return __awaiter(this, void 0, void 0, function* () {
|
|
625
|
-
|
|
648
|
+
if (this.logger)
|
|
649
|
+
this.logger.debug("Calling operation ChannelsClient#updateChannel.");
|
|
626
650
|
const operationName = "updateChannel";
|
|
627
651
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/Channel/UpdateChannel";
|
|
628
652
|
const pathParams = {
|
|
@@ -637,6 +661,8 @@ class ChannelsClient {
|
|
|
637
661
|
};
|
|
638
662
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
639
663
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateChannelRequest.retryConfiguration, specRetryConfiguration);
|
|
664
|
+
if (this.logger)
|
|
665
|
+
retrier.logger = this.logger;
|
|
640
666
|
const request = yield oci_common_2.composeRequest({
|
|
641
667
|
baseEndpoint: this._endpoint,
|
|
642
668
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -683,7 +709,7 @@ var DbBackupsApiKeys;
|
|
|
683
709
|
*/
|
|
684
710
|
class DbBackupsClient {
|
|
685
711
|
constructor(params, clientConfiguration) {
|
|
686
|
-
this["_realmSpecificEndpointTemplateEnabled"] =
|
|
712
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
687
713
|
this["_endpoint"] = "";
|
|
688
714
|
this["_defaultHeaders"] = {};
|
|
689
715
|
this._circuitBreaker = null;
|
|
@@ -742,7 +768,11 @@ class DbBackupsClient {
|
|
|
742
768
|
set endpoint(endpoint) {
|
|
743
769
|
this._endpoint = endpoint;
|
|
744
770
|
this._endpoint = this._endpoint + "/20190415";
|
|
745
|
-
|
|
771
|
+
if (this.logger)
|
|
772
|
+
this.logger.info(`DbBackupsClient endpoint set to ${this._endpoint}`);
|
|
773
|
+
}
|
|
774
|
+
get logger() {
|
|
775
|
+
return common.LOG.logger;
|
|
746
776
|
}
|
|
747
777
|
/**
|
|
748
778
|
* Determines whether realm specific endpoint should be used or not.
|
|
@@ -751,7 +781,8 @@ class DbBackupsClient {
|
|
|
751
781
|
*/
|
|
752
782
|
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
753
783
|
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
754
|
-
|
|
784
|
+
if (this.logger)
|
|
785
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
755
786
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
756
787
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DbBackupsClient.serviceEndpointTemplate, this._region, DbBackupsClient.endpointServiceName);
|
|
757
788
|
}
|
|
@@ -819,11 +850,12 @@ class DbBackupsClient {
|
|
|
819
850
|
* @param ChangeBackupCompartmentRequest
|
|
820
851
|
* @return ChangeBackupCompartmentResponse
|
|
821
852
|
* @throws OciError when an error occurs
|
|
822
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
853
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/ChangeBackupCompartment.ts.html |here} to see how to use ChangeBackupCompartment API.
|
|
823
854
|
*/
|
|
824
855
|
changeBackupCompartment(changeBackupCompartmentRequest) {
|
|
825
856
|
return __awaiter(this, void 0, void 0, function* () {
|
|
826
|
-
|
|
857
|
+
if (this.logger)
|
|
858
|
+
this.logger.debug("Calling operation DbBackupsClient#changeBackupCompartment.");
|
|
827
859
|
const operationName = "changeBackupCompartment";
|
|
828
860
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/Backup/ChangeBackupCompartment";
|
|
829
861
|
const pathParams = {
|
|
@@ -838,6 +870,8 @@ class DbBackupsClient {
|
|
|
838
870
|
};
|
|
839
871
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
840
872
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeBackupCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
873
|
+
if (this.logger)
|
|
874
|
+
retrier.logger = this.logger;
|
|
841
875
|
const request = yield oci_common_2.composeRequest({
|
|
842
876
|
baseEndpoint: this._endpoint,
|
|
843
877
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -879,11 +913,12 @@ class DbBackupsClient {
|
|
|
879
913
|
* @param CreateBackupRequest
|
|
880
914
|
* @return CreateBackupResponse
|
|
881
915
|
* @throws OciError when an error occurs
|
|
882
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
916
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/CreateBackup.ts.html |here} to see how to use CreateBackup API.
|
|
883
917
|
*/
|
|
884
918
|
createBackup(createBackupRequest) {
|
|
885
919
|
return __awaiter(this, void 0, void 0, function* () {
|
|
886
|
-
|
|
920
|
+
if (this.logger)
|
|
921
|
+
this.logger.debug("Calling operation DbBackupsClient#createBackup.");
|
|
887
922
|
const operationName = "createBackup";
|
|
888
923
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/Backup/CreateBackup";
|
|
889
924
|
const pathParams = {};
|
|
@@ -895,6 +930,8 @@ class DbBackupsClient {
|
|
|
895
930
|
};
|
|
896
931
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
897
932
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createBackupRequest.retryConfiguration, specRetryConfiguration);
|
|
933
|
+
if (this.logger)
|
|
934
|
+
retrier.logger = this.logger;
|
|
898
935
|
const request = yield oci_common_2.composeRequest({
|
|
899
936
|
baseEndpoint: this._endpoint,
|
|
900
937
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -945,11 +982,12 @@ class DbBackupsClient {
|
|
|
945
982
|
* @param DeleteBackupRequest
|
|
946
983
|
* @return DeleteBackupResponse
|
|
947
984
|
* @throws OciError when an error occurs
|
|
948
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
985
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/DeleteBackup.ts.html |here} to see how to use DeleteBackup API.
|
|
949
986
|
*/
|
|
950
987
|
deleteBackup(deleteBackupRequest) {
|
|
951
988
|
return __awaiter(this, void 0, void 0, function* () {
|
|
952
|
-
|
|
989
|
+
if (this.logger)
|
|
990
|
+
this.logger.debug("Calling operation DbBackupsClient#deleteBackup.");
|
|
953
991
|
const operationName = "deleteBackup";
|
|
954
992
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/Backup/DeleteBackup";
|
|
955
993
|
const pathParams = {
|
|
@@ -963,6 +1001,8 @@ class DbBackupsClient {
|
|
|
963
1001
|
};
|
|
964
1002
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
965
1003
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteBackupRequest.retryConfiguration, specRetryConfiguration);
|
|
1004
|
+
if (this.logger)
|
|
1005
|
+
retrier.logger = this.logger;
|
|
966
1006
|
const request = yield oci_common_2.composeRequest({
|
|
967
1007
|
baseEndpoint: this._endpoint,
|
|
968
1008
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1002,11 +1042,12 @@ class DbBackupsClient {
|
|
|
1002
1042
|
* @param GetBackupRequest
|
|
1003
1043
|
* @return GetBackupResponse
|
|
1004
1044
|
* @throws OciError when an error occurs
|
|
1005
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1045
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/GetBackup.ts.html |here} to see how to use GetBackup API.
|
|
1006
1046
|
*/
|
|
1007
1047
|
getBackup(getBackupRequest) {
|
|
1008
1048
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1009
|
-
|
|
1049
|
+
if (this.logger)
|
|
1050
|
+
this.logger.debug("Calling operation DbBackupsClient#getBackup.");
|
|
1010
1051
|
const operationName = "getBackup";
|
|
1011
1052
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/Backup/GetBackup";
|
|
1012
1053
|
const pathParams = {
|
|
@@ -1020,6 +1061,8 @@ class DbBackupsClient {
|
|
|
1020
1061
|
};
|
|
1021
1062
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1022
1063
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getBackupRequest.retryConfiguration, specRetryConfiguration);
|
|
1064
|
+
if (this.logger)
|
|
1065
|
+
retrier.logger = this.logger;
|
|
1023
1066
|
const request = yield oci_common_2.composeRequest({
|
|
1024
1067
|
baseEndpoint: this._endpoint,
|
|
1025
1068
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1064,11 +1107,12 @@ class DbBackupsClient {
|
|
|
1064
1107
|
* @param ListBackupsRequest
|
|
1065
1108
|
* @return ListBackupsResponse
|
|
1066
1109
|
* @throws OciError when an error occurs
|
|
1067
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1110
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/ListBackups.ts.html |here} to see how to use ListBackups API.
|
|
1068
1111
|
*/
|
|
1069
1112
|
listBackups(listBackupsRequest) {
|
|
1070
1113
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1071
|
-
|
|
1114
|
+
if (this.logger)
|
|
1115
|
+
this.logger.debug("Calling operation DbBackupsClient#listBackups.");
|
|
1072
1116
|
const operationName = "listBackups";
|
|
1073
1117
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BackupSummary/ListBackups";
|
|
1074
1118
|
const pathParams = {};
|
|
@@ -1090,6 +1134,8 @@ class DbBackupsClient {
|
|
|
1090
1134
|
};
|
|
1091
1135
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1092
1136
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listBackupsRequest.retryConfiguration, specRetryConfiguration);
|
|
1137
|
+
if (this.logger)
|
|
1138
|
+
retrier.logger = this.logger;
|
|
1093
1139
|
const request = yield oci_common_2.composeRequest({
|
|
1094
1140
|
baseEndpoint: this._endpoint,
|
|
1095
1141
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1173,11 +1219,12 @@ class DbBackupsClient {
|
|
|
1173
1219
|
* @param UpdateBackupRequest
|
|
1174
1220
|
* @return UpdateBackupResponse
|
|
1175
1221
|
* @throws OciError when an error occurs
|
|
1176
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1222
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/UpdateBackup.ts.html |here} to see how to use UpdateBackup API.
|
|
1177
1223
|
*/
|
|
1178
1224
|
updateBackup(updateBackupRequest) {
|
|
1179
1225
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1180
|
-
|
|
1226
|
+
if (this.logger)
|
|
1227
|
+
this.logger.debug("Calling operation DbBackupsClient#updateBackup.");
|
|
1181
1228
|
const operationName = "updateBackup";
|
|
1182
1229
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/Backup/UpdateBackup";
|
|
1183
1230
|
const pathParams = {
|
|
@@ -1191,6 +1238,8 @@ class DbBackupsClient {
|
|
|
1191
1238
|
};
|
|
1192
1239
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1193
1240
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateBackupRequest.retryConfiguration, specRetryConfiguration);
|
|
1241
|
+
if (this.logger)
|
|
1242
|
+
retrier.logger = this.logger;
|
|
1194
1243
|
const request = yield oci_common_2.composeRequest({
|
|
1195
1244
|
baseEndpoint: this._endpoint,
|
|
1196
1245
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1241,7 +1290,7 @@ var DbSystemApiKeys;
|
|
|
1241
1290
|
*/
|
|
1242
1291
|
class DbSystemClient {
|
|
1243
1292
|
constructor(params, clientConfiguration) {
|
|
1244
|
-
this["_realmSpecificEndpointTemplateEnabled"] =
|
|
1293
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
1245
1294
|
this["_endpoint"] = "";
|
|
1246
1295
|
this["_defaultHeaders"] = {};
|
|
1247
1296
|
this._circuitBreaker = null;
|
|
@@ -1300,7 +1349,11 @@ class DbSystemClient {
|
|
|
1300
1349
|
set endpoint(endpoint) {
|
|
1301
1350
|
this._endpoint = endpoint;
|
|
1302
1351
|
this._endpoint = this._endpoint + "/20190415";
|
|
1303
|
-
|
|
1352
|
+
if (this.logger)
|
|
1353
|
+
this.logger.info(`DbSystemClient endpoint set to ${this._endpoint}`);
|
|
1354
|
+
}
|
|
1355
|
+
get logger() {
|
|
1356
|
+
return common.LOG.logger;
|
|
1304
1357
|
}
|
|
1305
1358
|
/**
|
|
1306
1359
|
* Determines whether realm specific endpoint should be used or not.
|
|
@@ -1309,7 +1362,8 @@ class DbSystemClient {
|
|
|
1309
1362
|
*/
|
|
1310
1363
|
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
1311
1364
|
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
1312
|
-
|
|
1365
|
+
if (this.logger)
|
|
1366
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
1313
1367
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
1314
1368
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DbSystemClient.serviceEndpointTemplate, this._region, DbSystemClient.endpointServiceName);
|
|
1315
1369
|
}
|
|
@@ -1376,11 +1430,12 @@ class DbSystemClient {
|
|
|
1376
1430
|
* @param AddHeatWaveClusterRequest
|
|
1377
1431
|
* @return AddHeatWaveClusterResponse
|
|
1378
1432
|
* @throws OciError when an error occurs
|
|
1379
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1433
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/AddHeatWaveCluster.ts.html |here} to see how to use AddHeatWaveCluster API.
|
|
1380
1434
|
*/
|
|
1381
1435
|
addHeatWaveCluster(addHeatWaveClusterRequest) {
|
|
1382
1436
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1383
|
-
|
|
1437
|
+
if (this.logger)
|
|
1438
|
+
this.logger.debug("Calling operation DbSystemClient#addHeatWaveCluster.");
|
|
1384
1439
|
const operationName = "addHeatWaveCluster";
|
|
1385
1440
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/HeatWaveCluster/AddHeatWaveCluster";
|
|
1386
1441
|
const pathParams = {
|
|
@@ -1395,6 +1450,8 @@ class DbSystemClient {
|
|
|
1395
1450
|
};
|
|
1396
1451
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1397
1452
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, addHeatWaveClusterRequest.retryConfiguration, specRetryConfiguration);
|
|
1453
|
+
if (this.logger)
|
|
1454
|
+
retrier.logger = this.logger;
|
|
1398
1455
|
const request = yield oci_common_2.composeRequest({
|
|
1399
1456
|
baseEndpoint: this._endpoint,
|
|
1400
1457
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1445,11 +1502,12 @@ class DbSystemClient {
|
|
|
1445
1502
|
* @param CreateDbSystemRequest
|
|
1446
1503
|
* @return CreateDbSystemResponse
|
|
1447
1504
|
* @throws OciError when an error occurs
|
|
1448
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1505
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/CreateDbSystem.ts.html |here} to see how to use CreateDbSystem API.
|
|
1449
1506
|
*/
|
|
1450
1507
|
createDbSystem(createDbSystemRequest) {
|
|
1451
1508
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1452
|
-
|
|
1509
|
+
if (this.logger)
|
|
1510
|
+
this.logger.debug("Calling operation DbSystemClient#createDbSystem.");
|
|
1453
1511
|
const operationName = "createDbSystem";
|
|
1454
1512
|
const apiReferenceLink = "";
|
|
1455
1513
|
const pathParams = {};
|
|
@@ -1461,6 +1519,8 @@ class DbSystemClient {
|
|
|
1461
1519
|
};
|
|
1462
1520
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1463
1521
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createDbSystemRequest.retryConfiguration, specRetryConfiguration);
|
|
1522
|
+
if (this.logger)
|
|
1523
|
+
retrier.logger = this.logger;
|
|
1464
1524
|
const request = yield oci_common_2.composeRequest({
|
|
1465
1525
|
baseEndpoint: this._endpoint,
|
|
1466
1526
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1517,11 +1577,12 @@ class DbSystemClient {
|
|
|
1517
1577
|
* @param DeleteDbSystemRequest
|
|
1518
1578
|
* @return DeleteDbSystemResponse
|
|
1519
1579
|
* @throws OciError when an error occurs
|
|
1520
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1580
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/DeleteDbSystem.ts.html |here} to see how to use DeleteDbSystem API.
|
|
1521
1581
|
*/
|
|
1522
1582
|
deleteDbSystem(deleteDbSystemRequest) {
|
|
1523
1583
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1524
|
-
|
|
1584
|
+
if (this.logger)
|
|
1585
|
+
this.logger.debug("Calling operation DbSystemClient#deleteDbSystem.");
|
|
1525
1586
|
const operationName = "deleteDbSystem";
|
|
1526
1587
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/DbSystem/DeleteDbSystem";
|
|
1527
1588
|
const pathParams = {
|
|
@@ -1535,6 +1596,8 @@ class DbSystemClient {
|
|
|
1535
1596
|
};
|
|
1536
1597
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1537
1598
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteDbSystemRequest.retryConfiguration, specRetryConfiguration);
|
|
1599
|
+
if (this.logger)
|
|
1600
|
+
retrier.logger = this.logger;
|
|
1538
1601
|
const request = yield oci_common_2.composeRequest({
|
|
1539
1602
|
baseEndpoint: this._endpoint,
|
|
1540
1603
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1576,11 +1639,12 @@ class DbSystemClient {
|
|
|
1576
1639
|
* @param DeleteHeatWaveClusterRequest
|
|
1577
1640
|
* @return DeleteHeatWaveClusterResponse
|
|
1578
1641
|
* @throws OciError when an error occurs
|
|
1579
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1642
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/DeleteHeatWaveCluster.ts.html |here} to see how to use DeleteHeatWaveCluster API.
|
|
1580
1643
|
*/
|
|
1581
1644
|
deleteHeatWaveCluster(deleteHeatWaveClusterRequest) {
|
|
1582
1645
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1583
|
-
|
|
1646
|
+
if (this.logger)
|
|
1647
|
+
this.logger.debug("Calling operation DbSystemClient#deleteHeatWaveCluster.");
|
|
1584
1648
|
const operationName = "deleteHeatWaveCluster";
|
|
1585
1649
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/HeatWaveCluster/DeleteHeatWaveCluster";
|
|
1586
1650
|
const pathParams = {
|
|
@@ -1594,6 +1658,8 @@ class DbSystemClient {
|
|
|
1594
1658
|
};
|
|
1595
1659
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1596
1660
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteHeatWaveClusterRequest.retryConfiguration, specRetryConfiguration);
|
|
1661
|
+
if (this.logger)
|
|
1662
|
+
retrier.logger = this.logger;
|
|
1597
1663
|
const request = yield oci_common_2.composeRequest({
|
|
1598
1664
|
baseEndpoint: this._endpoint,
|
|
1599
1665
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1634,11 +1700,12 @@ class DbSystemClient {
|
|
|
1634
1700
|
* @param GenerateHeatWaveClusterMemoryEstimateRequest
|
|
1635
1701
|
* @return GenerateHeatWaveClusterMemoryEstimateResponse
|
|
1636
1702
|
* @throws OciError when an error occurs
|
|
1637
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1703
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/GenerateHeatWaveClusterMemoryEstimate.ts.html |here} to see how to use GenerateHeatWaveClusterMemoryEstimate API.
|
|
1638
1704
|
*/
|
|
1639
1705
|
generateHeatWaveClusterMemoryEstimate(generateHeatWaveClusterMemoryEstimateRequest) {
|
|
1640
1706
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1641
|
-
|
|
1707
|
+
if (this.logger)
|
|
1708
|
+
this.logger.debug("Calling operation DbSystemClient#generateHeatWaveClusterMemoryEstimate.");
|
|
1642
1709
|
const operationName = "generateHeatWaveClusterMemoryEstimate";
|
|
1643
1710
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/HeatWaveClusterMemoryEstimate/GenerateHeatWaveClusterMemoryEstimate";
|
|
1644
1711
|
const pathParams = {
|
|
@@ -1652,6 +1719,8 @@ class DbSystemClient {
|
|
|
1652
1719
|
};
|
|
1653
1720
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1654
1721
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, generateHeatWaveClusterMemoryEstimateRequest.retryConfiguration, specRetryConfiguration);
|
|
1722
|
+
if (this.logger)
|
|
1723
|
+
retrier.logger = this.logger;
|
|
1655
1724
|
const request = yield oci_common_2.composeRequest({
|
|
1656
1725
|
baseEndpoint: this._endpoint,
|
|
1657
1726
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1695,11 +1764,12 @@ class DbSystemClient {
|
|
|
1695
1764
|
* @param GetDbSystemRequest
|
|
1696
1765
|
* @return GetDbSystemResponse
|
|
1697
1766
|
* @throws OciError when an error occurs
|
|
1698
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1767
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/GetDbSystem.ts.html |here} to see how to use GetDbSystem API.
|
|
1699
1768
|
*/
|
|
1700
1769
|
getDbSystem(getDbSystemRequest) {
|
|
1701
1770
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1702
|
-
|
|
1771
|
+
if (this.logger)
|
|
1772
|
+
this.logger.debug("Calling operation DbSystemClient#getDbSystem.");
|
|
1703
1773
|
const operationName = "getDbSystem";
|
|
1704
1774
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/DbSystem/GetDbSystem";
|
|
1705
1775
|
const pathParams = {
|
|
@@ -1713,6 +1783,8 @@ class DbSystemClient {
|
|
|
1713
1783
|
};
|
|
1714
1784
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1715
1785
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDbSystemRequest.retryConfiguration, specRetryConfiguration);
|
|
1786
|
+
if (this.logger)
|
|
1787
|
+
retrier.logger = this.logger;
|
|
1716
1788
|
const request = yield oci_common_2.composeRequest({
|
|
1717
1789
|
baseEndpoint: this._endpoint,
|
|
1718
1790
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1756,11 +1828,12 @@ class DbSystemClient {
|
|
|
1756
1828
|
* @param GetHeatWaveClusterRequest
|
|
1757
1829
|
* @return GetHeatWaveClusterResponse
|
|
1758
1830
|
* @throws OciError when an error occurs
|
|
1759
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1831
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/GetHeatWaveCluster.ts.html |here} to see how to use GetHeatWaveCluster API.
|
|
1760
1832
|
*/
|
|
1761
1833
|
getHeatWaveCluster(getHeatWaveClusterRequest) {
|
|
1762
1834
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1763
|
-
|
|
1835
|
+
if (this.logger)
|
|
1836
|
+
this.logger.debug("Calling operation DbSystemClient#getHeatWaveCluster.");
|
|
1764
1837
|
const operationName = "getHeatWaveCluster";
|
|
1765
1838
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/HeatWaveCluster/GetHeatWaveCluster";
|
|
1766
1839
|
const pathParams = {
|
|
@@ -1774,6 +1847,8 @@ class DbSystemClient {
|
|
|
1774
1847
|
};
|
|
1775
1848
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1776
1849
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getHeatWaveClusterRequest.retryConfiguration, specRetryConfiguration);
|
|
1850
|
+
if (this.logger)
|
|
1851
|
+
retrier.logger = this.logger;
|
|
1777
1852
|
const request = yield oci_common_2.composeRequest({
|
|
1778
1853
|
baseEndpoint: this._endpoint,
|
|
1779
1854
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1819,11 +1894,12 @@ class DbSystemClient {
|
|
|
1819
1894
|
* @param GetHeatWaveClusterMemoryEstimateRequest
|
|
1820
1895
|
* @return GetHeatWaveClusterMemoryEstimateResponse
|
|
1821
1896
|
* @throws OciError when an error occurs
|
|
1822
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1897
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/GetHeatWaveClusterMemoryEstimate.ts.html |here} to see how to use GetHeatWaveClusterMemoryEstimate API.
|
|
1823
1898
|
*/
|
|
1824
1899
|
getHeatWaveClusterMemoryEstimate(getHeatWaveClusterMemoryEstimateRequest) {
|
|
1825
1900
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1826
|
-
|
|
1901
|
+
if (this.logger)
|
|
1902
|
+
this.logger.debug("Calling operation DbSystemClient#getHeatWaveClusterMemoryEstimate.");
|
|
1827
1903
|
const operationName = "getHeatWaveClusterMemoryEstimate";
|
|
1828
1904
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/HeatWaveClusterMemoryEstimate/GetHeatWaveClusterMemoryEstimate";
|
|
1829
1905
|
const pathParams = {
|
|
@@ -1836,6 +1912,8 @@ class DbSystemClient {
|
|
|
1836
1912
|
};
|
|
1837
1913
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1838
1914
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getHeatWaveClusterMemoryEstimateRequest.retryConfiguration, specRetryConfiguration);
|
|
1915
|
+
if (this.logger)
|
|
1916
|
+
retrier.logger = this.logger;
|
|
1839
1917
|
const request = yield oci_common_2.composeRequest({
|
|
1840
1918
|
baseEndpoint: this._endpoint,
|
|
1841
1919
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1876,11 +1954,12 @@ class DbSystemClient {
|
|
|
1876
1954
|
* @param ListDbSystemsRequest
|
|
1877
1955
|
* @return ListDbSystemsResponse
|
|
1878
1956
|
* @throws OciError when an error occurs
|
|
1879
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1957
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/ListDbSystems.ts.html |here} to see how to use ListDbSystems API.
|
|
1880
1958
|
*/
|
|
1881
1959
|
listDbSystems(listDbSystemsRequest) {
|
|
1882
1960
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1883
|
-
|
|
1961
|
+
if (this.logger)
|
|
1962
|
+
this.logger.debug("Calling operation DbSystemClient#listDbSystems.");
|
|
1884
1963
|
const operationName = "listDbSystems";
|
|
1885
1964
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/DbSystemSummary/ListDbSystems";
|
|
1886
1965
|
const pathParams = {};
|
|
@@ -1904,6 +1983,8 @@ class DbSystemClient {
|
|
|
1904
1983
|
};
|
|
1905
1984
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1906
1985
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listDbSystemsRequest.retryConfiguration, specRetryConfiguration);
|
|
1986
|
+
if (this.logger)
|
|
1987
|
+
retrier.logger = this.logger;
|
|
1907
1988
|
const request = yield oci_common_2.composeRequest({
|
|
1908
1989
|
baseEndpoint: this._endpoint,
|
|
1909
1990
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -1987,11 +2068,12 @@ class DbSystemClient {
|
|
|
1987
2068
|
* @param RestartDbSystemRequest
|
|
1988
2069
|
* @return RestartDbSystemResponse
|
|
1989
2070
|
* @throws OciError when an error occurs
|
|
1990
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2071
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/RestartDbSystem.ts.html |here} to see how to use RestartDbSystem API.
|
|
1991
2072
|
*/
|
|
1992
2073
|
restartDbSystem(restartDbSystemRequest) {
|
|
1993
2074
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1994
|
-
|
|
2075
|
+
if (this.logger)
|
|
2076
|
+
this.logger.debug("Calling operation DbSystemClient#restartDbSystem.");
|
|
1995
2077
|
const operationName = "restartDbSystem";
|
|
1996
2078
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/DbSystem/RestartDbSystem";
|
|
1997
2079
|
const pathParams = {
|
|
@@ -2006,6 +2088,8 @@ class DbSystemClient {
|
|
|
2006
2088
|
};
|
|
2007
2089
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2008
2090
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restartDbSystemRequest.retryConfiguration, specRetryConfiguration);
|
|
2091
|
+
if (this.logger)
|
|
2092
|
+
retrier.logger = this.logger;
|
|
2009
2093
|
const request = yield oci_common_2.composeRequest({
|
|
2010
2094
|
baseEndpoint: this._endpoint,
|
|
2011
2095
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2046,11 +2130,12 @@ class DbSystemClient {
|
|
|
2046
2130
|
* @param RestartHeatWaveClusterRequest
|
|
2047
2131
|
* @return RestartHeatWaveClusterResponse
|
|
2048
2132
|
* @throws OciError when an error occurs
|
|
2049
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2133
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/RestartHeatWaveCluster.ts.html |here} to see how to use RestartHeatWaveCluster API.
|
|
2050
2134
|
*/
|
|
2051
2135
|
restartHeatWaveCluster(restartHeatWaveClusterRequest) {
|
|
2052
2136
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2053
|
-
|
|
2137
|
+
if (this.logger)
|
|
2138
|
+
this.logger.debug("Calling operation DbSystemClient#restartHeatWaveCluster.");
|
|
2054
2139
|
const operationName = "restartHeatWaveCluster";
|
|
2055
2140
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/HeatWaveCluster/RestartHeatWaveCluster";
|
|
2056
2141
|
const pathParams = {
|
|
@@ -2065,6 +2150,8 @@ class DbSystemClient {
|
|
|
2065
2150
|
};
|
|
2066
2151
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2067
2152
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, restartHeatWaveClusterRequest.retryConfiguration, specRetryConfiguration);
|
|
2153
|
+
if (this.logger)
|
|
2154
|
+
retrier.logger = this.logger;
|
|
2068
2155
|
const request = yield oci_common_2.composeRequest({
|
|
2069
2156
|
baseEndpoint: this._endpoint,
|
|
2070
2157
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2104,11 +2191,12 @@ class DbSystemClient {
|
|
|
2104
2191
|
* @param StartDbSystemRequest
|
|
2105
2192
|
* @return StartDbSystemResponse
|
|
2106
2193
|
* @throws OciError when an error occurs
|
|
2107
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2194
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/StartDbSystem.ts.html |here} to see how to use StartDbSystem API.
|
|
2108
2195
|
*/
|
|
2109
2196
|
startDbSystem(startDbSystemRequest) {
|
|
2110
2197
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2111
|
-
|
|
2198
|
+
if (this.logger)
|
|
2199
|
+
this.logger.debug("Calling operation DbSystemClient#startDbSystem.");
|
|
2112
2200
|
const operationName = "startDbSystem";
|
|
2113
2201
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/DbSystem/StartDbSystem";
|
|
2114
2202
|
const pathParams = {
|
|
@@ -2123,6 +2211,8 @@ class DbSystemClient {
|
|
|
2123
2211
|
};
|
|
2124
2212
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2125
2213
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, startDbSystemRequest.retryConfiguration, specRetryConfiguration);
|
|
2214
|
+
if (this.logger)
|
|
2215
|
+
retrier.logger = this.logger;
|
|
2126
2216
|
const request = yield oci_common_2.composeRequest({
|
|
2127
2217
|
baseEndpoint: this._endpoint,
|
|
2128
2218
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2162,11 +2252,12 @@ class DbSystemClient {
|
|
|
2162
2252
|
* @param StartHeatWaveClusterRequest
|
|
2163
2253
|
* @return StartHeatWaveClusterResponse
|
|
2164
2254
|
* @throws OciError when an error occurs
|
|
2165
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2255
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/StartHeatWaveCluster.ts.html |here} to see how to use StartHeatWaveCluster API.
|
|
2166
2256
|
*/
|
|
2167
2257
|
startHeatWaveCluster(startHeatWaveClusterRequest) {
|
|
2168
2258
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2169
|
-
|
|
2259
|
+
if (this.logger)
|
|
2260
|
+
this.logger.debug("Calling operation DbSystemClient#startHeatWaveCluster.");
|
|
2170
2261
|
const operationName = "startHeatWaveCluster";
|
|
2171
2262
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/HeatWaveCluster/StartHeatWaveCluster";
|
|
2172
2263
|
const pathParams = {
|
|
@@ -2181,6 +2272,8 @@ class DbSystemClient {
|
|
|
2181
2272
|
};
|
|
2182
2273
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2183
2274
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, startHeatWaveClusterRequest.retryConfiguration, specRetryConfiguration);
|
|
2275
|
+
if (this.logger)
|
|
2276
|
+
retrier.logger = this.logger;
|
|
2184
2277
|
const request = yield oci_common_2.composeRequest({
|
|
2185
2278
|
baseEndpoint: this._endpoint,
|
|
2186
2279
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2223,11 +2316,12 @@ class DbSystemClient {
|
|
|
2223
2316
|
* @param StopDbSystemRequest
|
|
2224
2317
|
* @return StopDbSystemResponse
|
|
2225
2318
|
* @throws OciError when an error occurs
|
|
2226
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2319
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/StopDbSystem.ts.html |here} to see how to use StopDbSystem API.
|
|
2227
2320
|
*/
|
|
2228
2321
|
stopDbSystem(stopDbSystemRequest) {
|
|
2229
2322
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2230
|
-
|
|
2323
|
+
if (this.logger)
|
|
2324
|
+
this.logger.debug("Calling operation DbSystemClient#stopDbSystem.");
|
|
2231
2325
|
const operationName = "stopDbSystem";
|
|
2232
2326
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/DbSystem/StopDbSystem";
|
|
2233
2327
|
const pathParams = {
|
|
@@ -2242,6 +2336,8 @@ class DbSystemClient {
|
|
|
2242
2336
|
};
|
|
2243
2337
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2244
2338
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, stopDbSystemRequest.retryConfiguration, specRetryConfiguration);
|
|
2339
|
+
if (this.logger)
|
|
2340
|
+
retrier.logger = this.logger;
|
|
2245
2341
|
const request = yield oci_common_2.composeRequest({
|
|
2246
2342
|
baseEndpoint: this._endpoint,
|
|
2247
2343
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2282,11 +2378,12 @@ class DbSystemClient {
|
|
|
2282
2378
|
* @param StopHeatWaveClusterRequest
|
|
2283
2379
|
* @return StopHeatWaveClusterResponse
|
|
2284
2380
|
* @throws OciError when an error occurs
|
|
2285
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2381
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/StopHeatWaveCluster.ts.html |here} to see how to use StopHeatWaveCluster API.
|
|
2286
2382
|
*/
|
|
2287
2383
|
stopHeatWaveCluster(stopHeatWaveClusterRequest) {
|
|
2288
2384
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2289
|
-
|
|
2385
|
+
if (this.logger)
|
|
2386
|
+
this.logger.debug("Calling operation DbSystemClient#stopHeatWaveCluster.");
|
|
2290
2387
|
const operationName = "stopHeatWaveCluster";
|
|
2291
2388
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/HeatWaveCluster/StopHeatWaveCluster";
|
|
2292
2389
|
const pathParams = {
|
|
@@ -2301,6 +2398,8 @@ class DbSystemClient {
|
|
|
2301
2398
|
};
|
|
2302
2399
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2303
2400
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, stopHeatWaveClusterRequest.retryConfiguration, specRetryConfiguration);
|
|
2401
|
+
if (this.logger)
|
|
2402
|
+
retrier.logger = this.logger;
|
|
2304
2403
|
const request = yield oci_common_2.composeRequest({
|
|
2305
2404
|
baseEndpoint: this._endpoint,
|
|
2306
2405
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2348,11 +2447,12 @@ class DbSystemClient {
|
|
|
2348
2447
|
* @param UpdateDbSystemRequest
|
|
2349
2448
|
* @return UpdateDbSystemResponse
|
|
2350
2449
|
* @throws OciError when an error occurs
|
|
2351
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2450
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/UpdateDbSystem.ts.html |here} to see how to use UpdateDbSystem API.
|
|
2352
2451
|
*/
|
|
2353
2452
|
updateDbSystem(updateDbSystemRequest) {
|
|
2354
2453
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2355
|
-
|
|
2454
|
+
if (this.logger)
|
|
2455
|
+
this.logger.debug("Calling operation DbSystemClient#updateDbSystem.");
|
|
2356
2456
|
const operationName = "updateDbSystem";
|
|
2357
2457
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/DbSystem/UpdateDbSystem";
|
|
2358
2458
|
const pathParams = {
|
|
@@ -2366,6 +2466,8 @@ class DbSystemClient {
|
|
|
2366
2466
|
};
|
|
2367
2467
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2368
2468
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateDbSystemRequest.retryConfiguration, specRetryConfiguration);
|
|
2469
|
+
if (this.logger)
|
|
2470
|
+
retrier.logger = this.logger;
|
|
2369
2471
|
const request = yield oci_common_2.composeRequest({
|
|
2370
2472
|
baseEndpoint: this._endpoint,
|
|
2371
2473
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2407,11 +2509,12 @@ class DbSystemClient {
|
|
|
2407
2509
|
* @param UpdateHeatWaveClusterRequest
|
|
2408
2510
|
* @return UpdateHeatWaveClusterResponse
|
|
2409
2511
|
* @throws OciError when an error occurs
|
|
2410
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2512
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/UpdateHeatWaveCluster.ts.html |here} to see how to use UpdateHeatWaveCluster API.
|
|
2411
2513
|
*/
|
|
2412
2514
|
updateHeatWaveCluster(updateHeatWaveClusterRequest) {
|
|
2413
2515
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2414
|
-
|
|
2516
|
+
if (this.logger)
|
|
2517
|
+
this.logger.debug("Calling operation DbSystemClient#updateHeatWaveCluster.");
|
|
2415
2518
|
const operationName = "updateHeatWaveCluster";
|
|
2416
2519
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/HeatWaveCluster/UpdateHeatWaveCluster";
|
|
2417
2520
|
const pathParams = {
|
|
@@ -2425,6 +2528,8 @@ class DbSystemClient {
|
|
|
2425
2528
|
};
|
|
2426
2529
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2427
2530
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateHeatWaveClusterRequest.retryConfiguration, specRetryConfiguration);
|
|
2531
|
+
if (this.logger)
|
|
2532
|
+
retrier.logger = this.logger;
|
|
2428
2533
|
const request = yield oci_common_2.composeRequest({
|
|
2429
2534
|
baseEndpoint: this._endpoint,
|
|
2430
2535
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2471,7 +2576,7 @@ var MysqlaasApiKeys;
|
|
|
2471
2576
|
*/
|
|
2472
2577
|
class MysqlaasClient {
|
|
2473
2578
|
constructor(params, clientConfiguration) {
|
|
2474
|
-
this["_realmSpecificEndpointTemplateEnabled"] =
|
|
2579
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
2475
2580
|
this["_endpoint"] = "";
|
|
2476
2581
|
this["_defaultHeaders"] = {};
|
|
2477
2582
|
this._circuitBreaker = null;
|
|
@@ -2530,7 +2635,11 @@ class MysqlaasClient {
|
|
|
2530
2635
|
set endpoint(endpoint) {
|
|
2531
2636
|
this._endpoint = endpoint;
|
|
2532
2637
|
this._endpoint = this._endpoint + "/20190415";
|
|
2533
|
-
|
|
2638
|
+
if (this.logger)
|
|
2639
|
+
this.logger.info(`MysqlaasClient endpoint set to ${this._endpoint}`);
|
|
2640
|
+
}
|
|
2641
|
+
get logger() {
|
|
2642
|
+
return common.LOG.logger;
|
|
2534
2643
|
}
|
|
2535
2644
|
/**
|
|
2536
2645
|
* Determines whether realm specific endpoint should be used or not.
|
|
@@ -2539,7 +2648,8 @@ class MysqlaasClient {
|
|
|
2539
2648
|
*/
|
|
2540
2649
|
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
2541
2650
|
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
2542
|
-
|
|
2651
|
+
if (this.logger)
|
|
2652
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
2543
2653
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
2544
2654
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(MysqlaasClient.serviceEndpointTemplate, this._region, MysqlaasClient.endpointServiceName);
|
|
2545
2655
|
}
|
|
@@ -2605,11 +2715,12 @@ class MysqlaasClient {
|
|
|
2605
2715
|
* @param CreateConfigurationRequest
|
|
2606
2716
|
* @return CreateConfigurationResponse
|
|
2607
2717
|
* @throws OciError when an error occurs
|
|
2608
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2718
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/CreateConfiguration.ts.html |here} to see how to use CreateConfiguration API.
|
|
2609
2719
|
*/
|
|
2610
2720
|
createConfiguration(createConfigurationRequest) {
|
|
2611
2721
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2612
|
-
|
|
2722
|
+
if (this.logger)
|
|
2723
|
+
this.logger.debug("Calling operation MysqlaasClient#createConfiguration.");
|
|
2613
2724
|
const operationName = "createConfiguration";
|
|
2614
2725
|
const apiReferenceLink = "";
|
|
2615
2726
|
const pathParams = {};
|
|
@@ -2621,6 +2732,8 @@ class MysqlaasClient {
|
|
|
2621
2732
|
};
|
|
2622
2733
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2623
2734
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createConfigurationRequest.retryConfiguration, specRetryConfiguration);
|
|
2735
|
+
if (this.logger)
|
|
2736
|
+
retrier.logger = this.logger;
|
|
2624
2737
|
const request = yield oci_common_2.composeRequest({
|
|
2625
2738
|
baseEndpoint: this._endpoint,
|
|
2626
2739
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2677,11 +2790,12 @@ class MysqlaasClient {
|
|
|
2677
2790
|
* @param DeleteConfigurationRequest
|
|
2678
2791
|
* @return DeleteConfigurationResponse
|
|
2679
2792
|
* @throws OciError when an error occurs
|
|
2680
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2793
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/DeleteConfiguration.ts.html |here} to see how to use DeleteConfiguration API.
|
|
2681
2794
|
*/
|
|
2682
2795
|
deleteConfiguration(deleteConfigurationRequest) {
|
|
2683
2796
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2684
|
-
|
|
2797
|
+
if (this.logger)
|
|
2798
|
+
this.logger.debug("Calling operation MysqlaasClient#deleteConfiguration.");
|
|
2685
2799
|
const operationName = "deleteConfiguration";
|
|
2686
2800
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/Configuration/DeleteConfiguration";
|
|
2687
2801
|
const pathParams = {
|
|
@@ -2695,6 +2809,8 @@ class MysqlaasClient {
|
|
|
2695
2809
|
};
|
|
2696
2810
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2697
2811
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteConfigurationRequest.retryConfiguration, specRetryConfiguration);
|
|
2812
|
+
if (this.logger)
|
|
2813
|
+
retrier.logger = this.logger;
|
|
2698
2814
|
const request = yield oci_common_2.composeRequest({
|
|
2699
2815
|
baseEndpoint: this._endpoint,
|
|
2700
2816
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2730,11 +2846,12 @@ class MysqlaasClient {
|
|
|
2730
2846
|
* @param GetConfigurationRequest
|
|
2731
2847
|
* @return GetConfigurationResponse
|
|
2732
2848
|
* @throws OciError when an error occurs
|
|
2733
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2849
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/GetConfiguration.ts.html |here} to see how to use GetConfiguration API.
|
|
2734
2850
|
*/
|
|
2735
2851
|
getConfiguration(getConfigurationRequest) {
|
|
2736
2852
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2737
|
-
|
|
2853
|
+
if (this.logger)
|
|
2854
|
+
this.logger.debug("Calling operation MysqlaasClient#getConfiguration.");
|
|
2738
2855
|
const operationName = "getConfiguration";
|
|
2739
2856
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/Configuration/GetConfiguration";
|
|
2740
2857
|
const pathParams = {
|
|
@@ -2748,6 +2865,8 @@ class MysqlaasClient {
|
|
|
2748
2865
|
};
|
|
2749
2866
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2750
2867
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getConfigurationRequest.retryConfiguration, specRetryConfiguration);
|
|
2868
|
+
if (this.logger)
|
|
2869
|
+
retrier.logger = this.logger;
|
|
2751
2870
|
const request = yield oci_common_2.composeRequest({
|
|
2752
2871
|
baseEndpoint: this._endpoint,
|
|
2753
2872
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2799,11 +2918,12 @@ class MysqlaasClient {
|
|
|
2799
2918
|
* @param ListConfigurationsRequest
|
|
2800
2919
|
* @return ListConfigurationsResponse
|
|
2801
2920
|
* @throws OciError when an error occurs
|
|
2802
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2921
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/ListConfigurations.ts.html |here} to see how to use ListConfigurations API.
|
|
2803
2922
|
*/
|
|
2804
2923
|
listConfigurations(listConfigurationsRequest) {
|
|
2805
2924
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2806
|
-
|
|
2925
|
+
if (this.logger)
|
|
2926
|
+
this.logger.debug("Calling operation MysqlaasClient#listConfigurations.");
|
|
2807
2927
|
const operationName = "listConfigurations";
|
|
2808
2928
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/ConfigurationSummary/ListConfigurations";
|
|
2809
2929
|
const pathParams = {};
|
|
@@ -2825,6 +2945,8 @@ class MysqlaasClient {
|
|
|
2825
2945
|
};
|
|
2826
2946
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2827
2947
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listConfigurationsRequest.retryConfiguration, specRetryConfiguration);
|
|
2948
|
+
if (this.logger)
|
|
2949
|
+
retrier.logger = this.logger;
|
|
2828
2950
|
const request = yield oci_common_2.composeRequest({
|
|
2829
2951
|
baseEndpoint: this._endpoint,
|
|
2830
2952
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2912,11 +3034,12 @@ class MysqlaasClient {
|
|
|
2912
3034
|
* @param ListShapesRequest
|
|
2913
3035
|
* @return ListShapesResponse
|
|
2914
3036
|
* @throws OciError when an error occurs
|
|
2915
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3037
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/ListShapes.ts.html |here} to see how to use ListShapes API.
|
|
2916
3038
|
*/
|
|
2917
3039
|
listShapes(listShapesRequest) {
|
|
2918
3040
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2919
|
-
|
|
3041
|
+
if (this.logger)
|
|
3042
|
+
this.logger.debug("Calling operation MysqlaasClient#listShapes.");
|
|
2920
3043
|
const operationName = "listShapes";
|
|
2921
3044
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/ShapeSummary/ListShapes";
|
|
2922
3045
|
const pathParams = {};
|
|
@@ -2932,6 +3055,8 @@ class MysqlaasClient {
|
|
|
2932
3055
|
};
|
|
2933
3056
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2934
3057
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listShapesRequest.retryConfiguration, specRetryConfiguration);
|
|
3058
|
+
if (this.logger)
|
|
3059
|
+
retrier.logger = this.logger;
|
|
2935
3060
|
const request = yield oci_common_2.composeRequest({
|
|
2936
3061
|
baseEndpoint: this._endpoint,
|
|
2937
3062
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -2973,11 +3098,12 @@ class MysqlaasClient {
|
|
|
2973
3098
|
* @param ListVersionsRequest
|
|
2974
3099
|
* @return ListVersionsResponse
|
|
2975
3100
|
* @throws OciError when an error occurs
|
|
2976
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3101
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/ListVersions.ts.html |here} to see how to use ListVersions API.
|
|
2977
3102
|
*/
|
|
2978
3103
|
listVersions(listVersionsRequest) {
|
|
2979
3104
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2980
|
-
|
|
3105
|
+
if (this.logger)
|
|
3106
|
+
this.logger.debug("Calling operation MysqlaasClient#listVersions.");
|
|
2981
3107
|
const operationName = "listVersions";
|
|
2982
3108
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/VersionSummary/ListVersions";
|
|
2983
3109
|
const pathParams = {};
|
|
@@ -2990,6 +3116,8 @@ class MysqlaasClient {
|
|
|
2990
3116
|
};
|
|
2991
3117
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2992
3118
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listVersionsRequest.retryConfiguration, specRetryConfiguration);
|
|
3119
|
+
if (this.logger)
|
|
3120
|
+
retrier.logger = this.logger;
|
|
2993
3121
|
const request = yield oci_common_2.composeRequest({
|
|
2994
3122
|
baseEndpoint: this._endpoint,
|
|
2995
3123
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -3028,11 +3156,12 @@ class MysqlaasClient {
|
|
|
3028
3156
|
* @param UpdateConfigurationRequest
|
|
3029
3157
|
* @return UpdateConfigurationResponse
|
|
3030
3158
|
* @throws OciError when an error occurs
|
|
3031
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3159
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/UpdateConfiguration.ts.html |here} to see how to use UpdateConfiguration API.
|
|
3032
3160
|
*/
|
|
3033
3161
|
updateConfiguration(updateConfigurationRequest) {
|
|
3034
3162
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3035
|
-
|
|
3163
|
+
if (this.logger)
|
|
3164
|
+
this.logger.debug("Calling operation MysqlaasClient#updateConfiguration.");
|
|
3036
3165
|
const operationName = "updateConfiguration";
|
|
3037
3166
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/Configuration/UpdateConfiguration";
|
|
3038
3167
|
const pathParams = {
|
|
@@ -3046,6 +3175,8 @@ class MysqlaasClient {
|
|
|
3046
3175
|
};
|
|
3047
3176
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3048
3177
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateConfigurationRequest.retryConfiguration, specRetryConfiguration);
|
|
3178
|
+
if (this.logger)
|
|
3179
|
+
retrier.logger = this.logger;
|
|
3049
3180
|
const request = yield oci_common_2.composeRequest({
|
|
3050
3181
|
baseEndpoint: this._endpoint,
|
|
3051
3182
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -3096,7 +3227,7 @@ var ReplicasApiKeys;
|
|
|
3096
3227
|
*/
|
|
3097
3228
|
class ReplicasClient {
|
|
3098
3229
|
constructor(params, clientConfiguration) {
|
|
3099
|
-
this["_realmSpecificEndpointTemplateEnabled"] =
|
|
3230
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
3100
3231
|
this["_endpoint"] = "";
|
|
3101
3232
|
this["_defaultHeaders"] = {};
|
|
3102
3233
|
this._circuitBreaker = null;
|
|
@@ -3155,7 +3286,11 @@ class ReplicasClient {
|
|
|
3155
3286
|
set endpoint(endpoint) {
|
|
3156
3287
|
this._endpoint = endpoint;
|
|
3157
3288
|
this._endpoint = this._endpoint + "/20190415";
|
|
3158
|
-
|
|
3289
|
+
if (this.logger)
|
|
3290
|
+
this.logger.info(`ReplicasClient endpoint set to ${this._endpoint}`);
|
|
3291
|
+
}
|
|
3292
|
+
get logger() {
|
|
3293
|
+
return common.LOG.logger;
|
|
3159
3294
|
}
|
|
3160
3295
|
/**
|
|
3161
3296
|
* Determines whether realm specific endpoint should be used or not.
|
|
@@ -3164,7 +3299,8 @@ class ReplicasClient {
|
|
|
3164
3299
|
*/
|
|
3165
3300
|
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
3166
3301
|
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
3167
|
-
|
|
3302
|
+
if (this.logger)
|
|
3303
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
3168
3304
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
3169
3305
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ReplicasClient.serviceEndpointTemplate, this._region, ReplicasClient.endpointServiceName);
|
|
3170
3306
|
}
|
|
@@ -3230,11 +3366,12 @@ class ReplicasClient {
|
|
|
3230
3366
|
* @param CreateReplicaRequest
|
|
3231
3367
|
* @return CreateReplicaResponse
|
|
3232
3368
|
* @throws OciError when an error occurs
|
|
3233
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3369
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/CreateReplica.ts.html |here} to see how to use CreateReplica API.
|
|
3234
3370
|
*/
|
|
3235
3371
|
createReplica(createReplicaRequest) {
|
|
3236
3372
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3237
|
-
|
|
3373
|
+
if (this.logger)
|
|
3374
|
+
this.logger.debug("Calling operation ReplicasClient#createReplica.");
|
|
3238
3375
|
const operationName = "createReplica";
|
|
3239
3376
|
const apiReferenceLink = "";
|
|
3240
3377
|
const pathParams = {};
|
|
@@ -3246,6 +3383,8 @@ class ReplicasClient {
|
|
|
3246
3383
|
};
|
|
3247
3384
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3248
3385
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createReplicaRequest.retryConfiguration, specRetryConfiguration);
|
|
3386
|
+
if (this.logger)
|
|
3387
|
+
retrier.logger = this.logger;
|
|
3249
3388
|
const request = yield oci_common_2.composeRequest({
|
|
3250
3389
|
baseEndpoint: this._endpoint,
|
|
3251
3390
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -3300,11 +3439,12 @@ class ReplicasClient {
|
|
|
3300
3439
|
* @param DeleteReplicaRequest
|
|
3301
3440
|
* @return DeleteReplicaResponse
|
|
3302
3441
|
* @throws OciError when an error occurs
|
|
3303
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3442
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/DeleteReplica.ts.html |here} to see how to use DeleteReplica API.
|
|
3304
3443
|
*/
|
|
3305
3444
|
deleteReplica(deleteReplicaRequest) {
|
|
3306
3445
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3307
|
-
|
|
3446
|
+
if (this.logger)
|
|
3447
|
+
this.logger.debug("Calling operation ReplicasClient#deleteReplica.");
|
|
3308
3448
|
const operationName = "deleteReplica";
|
|
3309
3449
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/Replica/DeleteReplica";
|
|
3310
3450
|
const pathParams = {
|
|
@@ -3318,6 +3458,8 @@ class ReplicasClient {
|
|
|
3318
3458
|
};
|
|
3319
3459
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3320
3460
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteReplicaRequest.retryConfiguration, specRetryConfiguration);
|
|
3461
|
+
if (this.logger)
|
|
3462
|
+
retrier.logger = this.logger;
|
|
3321
3463
|
const request = yield oci_common_2.composeRequest({
|
|
3322
3464
|
baseEndpoint: this._endpoint,
|
|
3323
3465
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -3357,11 +3499,12 @@ class ReplicasClient {
|
|
|
3357
3499
|
* @param GetReplicaRequest
|
|
3358
3500
|
* @return GetReplicaResponse
|
|
3359
3501
|
* @throws OciError when an error occurs
|
|
3360
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3502
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/GetReplica.ts.html |here} to see how to use GetReplica API.
|
|
3361
3503
|
*/
|
|
3362
3504
|
getReplica(getReplicaRequest) {
|
|
3363
3505
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3364
|
-
|
|
3506
|
+
if (this.logger)
|
|
3507
|
+
this.logger.debug("Calling operation ReplicasClient#getReplica.");
|
|
3365
3508
|
const operationName = "getReplica";
|
|
3366
3509
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/Replica/GetReplica";
|
|
3367
3510
|
const pathParams = {
|
|
@@ -3375,6 +3518,8 @@ class ReplicasClient {
|
|
|
3375
3518
|
};
|
|
3376
3519
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3377
3520
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getReplicaRequest.retryConfiguration, specRetryConfiguration);
|
|
3521
|
+
if (this.logger)
|
|
3522
|
+
retrier.logger = this.logger;
|
|
3378
3523
|
const request = yield oci_common_2.composeRequest({
|
|
3379
3524
|
baseEndpoint: this._endpoint,
|
|
3380
3525
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -3418,11 +3563,12 @@ class ReplicasClient {
|
|
|
3418
3563
|
* @param ListReplicasRequest
|
|
3419
3564
|
* @return ListReplicasResponse
|
|
3420
3565
|
* @throws OciError when an error occurs
|
|
3421
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3566
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/ListReplicas.ts.html |here} to see how to use ListReplicas API.
|
|
3422
3567
|
*/
|
|
3423
3568
|
listReplicas(listReplicasRequest) {
|
|
3424
3569
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3425
|
-
|
|
3570
|
+
if (this.logger)
|
|
3571
|
+
this.logger.debug("Calling operation ReplicasClient#listReplicas.");
|
|
3426
3572
|
const operationName = "listReplicas";
|
|
3427
3573
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/ReplicaSummary/ListReplicas";
|
|
3428
3574
|
const pathParams = {};
|
|
@@ -3445,6 +3591,8 @@ class ReplicasClient {
|
|
|
3445
3591
|
};
|
|
3446
3592
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3447
3593
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listReplicasRequest.retryConfiguration, specRetryConfiguration);
|
|
3594
|
+
if (this.logger)
|
|
3595
|
+
retrier.logger = this.logger;
|
|
3448
3596
|
const request = yield oci_common_2.composeRequest({
|
|
3449
3597
|
baseEndpoint: this._endpoint,
|
|
3450
3598
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -3528,11 +3676,12 @@ class ReplicasClient {
|
|
|
3528
3676
|
* @param UpdateReplicaRequest
|
|
3529
3677
|
* @return UpdateReplicaResponse
|
|
3530
3678
|
* @throws OciError when an error occurs
|
|
3531
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3679
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/UpdateReplica.ts.html |here} to see how to use UpdateReplica API.
|
|
3532
3680
|
*/
|
|
3533
3681
|
updateReplica(updateReplicaRequest) {
|
|
3534
3682
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3535
|
-
|
|
3683
|
+
if (this.logger)
|
|
3684
|
+
this.logger.debug("Calling operation ReplicasClient#updateReplica.");
|
|
3536
3685
|
const operationName = "updateReplica";
|
|
3537
3686
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/Replica/UpdateReplica";
|
|
3538
3687
|
const pathParams = {
|
|
@@ -3546,6 +3695,8 @@ class ReplicasClient {
|
|
|
3546
3695
|
};
|
|
3547
3696
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3548
3697
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateReplicaRequest.retryConfiguration, specRetryConfiguration);
|
|
3698
|
+
if (this.logger)
|
|
3699
|
+
retrier.logger = this.logger;
|
|
3549
3700
|
const request = yield oci_common_2.composeRequest({
|
|
3550
3701
|
baseEndpoint: this._endpoint,
|
|
3551
3702
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -3592,7 +3743,7 @@ var WorkRequestsApiKeys;
|
|
|
3592
3743
|
*/
|
|
3593
3744
|
class WorkRequestsClient {
|
|
3594
3745
|
constructor(params, clientConfiguration) {
|
|
3595
|
-
this["_realmSpecificEndpointTemplateEnabled"] =
|
|
3746
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
3596
3747
|
this["_endpoint"] = "";
|
|
3597
3748
|
this["_defaultHeaders"] = {};
|
|
3598
3749
|
this._circuitBreaker = null;
|
|
@@ -3651,7 +3802,11 @@ class WorkRequestsClient {
|
|
|
3651
3802
|
set endpoint(endpoint) {
|
|
3652
3803
|
this._endpoint = endpoint;
|
|
3653
3804
|
this._endpoint = this._endpoint + "/20190415";
|
|
3654
|
-
|
|
3805
|
+
if (this.logger)
|
|
3806
|
+
this.logger.info(`WorkRequestsClient endpoint set to ${this._endpoint}`);
|
|
3807
|
+
}
|
|
3808
|
+
get logger() {
|
|
3809
|
+
return common.LOG.logger;
|
|
3655
3810
|
}
|
|
3656
3811
|
/**
|
|
3657
3812
|
* Determines whether realm specific endpoint should be used or not.
|
|
@@ -3660,7 +3815,8 @@ class WorkRequestsClient {
|
|
|
3660
3815
|
*/
|
|
3661
3816
|
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
3662
3817
|
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
3663
|
-
|
|
3818
|
+
if (this.logger)
|
|
3819
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
3664
3820
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
3665
3821
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(WorkRequestsClient.serviceEndpointTemplate, this._region, WorkRequestsClient.endpointServiceName);
|
|
3666
3822
|
}
|
|
@@ -3726,11 +3882,12 @@ class WorkRequestsClient {
|
|
|
3726
3882
|
* @param GetWorkRequestRequest
|
|
3727
3883
|
* @return GetWorkRequestResponse
|
|
3728
3884
|
* @throws OciError when an error occurs
|
|
3729
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3885
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
3730
3886
|
*/
|
|
3731
3887
|
getWorkRequest(getWorkRequestRequest) {
|
|
3732
3888
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3733
|
-
|
|
3889
|
+
if (this.logger)
|
|
3890
|
+
this.logger.debug("Calling operation WorkRequestsClient#getWorkRequest.");
|
|
3734
3891
|
const operationName = "getWorkRequest";
|
|
3735
3892
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/WorkRequest/GetWorkRequest";
|
|
3736
3893
|
const pathParams = {
|
|
@@ -3744,6 +3901,8 @@ class WorkRequestsClient {
|
|
|
3744
3901
|
};
|
|
3745
3902
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3746
3903
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
3904
|
+
if (this.logger)
|
|
3905
|
+
retrier.logger = this.logger;
|
|
3747
3906
|
const request = yield oci_common_2.composeRequest({
|
|
3748
3907
|
baseEndpoint: this._endpoint,
|
|
3749
3908
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -3793,11 +3952,12 @@ class WorkRequestsClient {
|
|
|
3793
3952
|
* @param ListWorkRequestErrorsRequest
|
|
3794
3953
|
* @return ListWorkRequestErrorsResponse
|
|
3795
3954
|
* @throws OciError when an error occurs
|
|
3796
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
3955
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
3797
3956
|
*/
|
|
3798
3957
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
3799
3958
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3800
|
-
|
|
3959
|
+
if (this.logger)
|
|
3960
|
+
this.logger.debug("Calling operation WorkRequestsClient#listWorkRequestErrors.");
|
|
3801
3961
|
const operationName = "listWorkRequestErrors";
|
|
3802
3962
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/WorkRequestError/ListWorkRequestErrors";
|
|
3803
3963
|
const pathParams = {
|
|
@@ -3813,6 +3973,8 @@ class WorkRequestsClient {
|
|
|
3813
3973
|
};
|
|
3814
3974
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3815
3975
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
3976
|
+
if (this.logger)
|
|
3977
|
+
retrier.logger = this.logger;
|
|
3816
3978
|
const request = yield oci_common_2.composeRequest({
|
|
3817
3979
|
baseEndpoint: this._endpoint,
|
|
3818
3980
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -3897,11 +4059,12 @@ class WorkRequestsClient {
|
|
|
3897
4059
|
* @param ListWorkRequestLogsRequest
|
|
3898
4060
|
* @return ListWorkRequestLogsResponse
|
|
3899
4061
|
* @throws OciError when an error occurs
|
|
3900
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4062
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
3901
4063
|
*/
|
|
3902
4064
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
3903
4065
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3904
|
-
|
|
4066
|
+
if (this.logger)
|
|
4067
|
+
this.logger.debug("Calling operation WorkRequestsClient#listWorkRequestLogs.");
|
|
3905
4068
|
const operationName = "listWorkRequestLogs";
|
|
3906
4069
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/WorkRequestLogEntry/ListWorkRequestLogs";
|
|
3907
4070
|
const pathParams = {
|
|
@@ -3917,6 +4080,8 @@ class WorkRequestsClient {
|
|
|
3917
4080
|
};
|
|
3918
4081
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3919
4082
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
4083
|
+
if (this.logger)
|
|
4084
|
+
retrier.logger = this.logger;
|
|
3920
4085
|
const request = yield oci_common_2.composeRequest({
|
|
3921
4086
|
baseEndpoint: this._endpoint,
|
|
3922
4087
|
defaultHeaders: this._defaultHeaders,
|
|
@@ -4001,11 +4166,12 @@ class WorkRequestsClient {
|
|
|
4001
4166
|
* @param ListWorkRequestsRequest
|
|
4002
4167
|
* @return ListWorkRequestsResponse
|
|
4003
4168
|
* @throws OciError when an error occurs
|
|
4004
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
4169
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/mysql/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
4005
4170
|
*/
|
|
4006
4171
|
listWorkRequests(listWorkRequestsRequest) {
|
|
4007
4172
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4008
|
-
|
|
4173
|
+
if (this.logger)
|
|
4174
|
+
this.logger.debug("Calling operation WorkRequestsClient#listWorkRequests.");
|
|
4009
4175
|
const operationName = "listWorkRequests";
|
|
4010
4176
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/WorkRequestSummary/ListWorkRequests";
|
|
4011
4177
|
const pathParams = {};
|
|
@@ -4022,6 +4188,8 @@ class WorkRequestsClient {
|
|
|
4022
4188
|
};
|
|
4023
4189
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4024
4190
|
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
4191
|
+
if (this.logger)
|
|
4192
|
+
retrier.logger = this.logger;
|
|
4025
4193
|
const request = yield oci_common_2.composeRequest({
|
|
4026
4194
|
baseEndpoint: this._endpoint,
|
|
4027
4195
|
defaultHeaders: this._defaultHeaders,
|