@google-cloud/dms 3.3.0 → 4.0.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/CHANGELOG.md +24 -0
- package/build/protos/google/cloud/clouddms/v1/clouddms.proto +5 -4
- package/build/protos/google/cloud/clouddms/v1/clouddms_resources.proto +1 -1
- package/build/protos/google/cloud/clouddms/v1/conversionworkspace_resources.proto +1 -1
- package/build/protos/protos.d.ts +1 -1
- package/build/protos/protos.js +1 -1
- package/build/src/index.js +1 -1
- package/build/src/v1/data_migration_service_client.d.ts +12 -12
- package/build/src/v1/data_migration_service_client.js +728 -180
- package/build/src/v1/data_migration_service_proto_list.json +5 -0
- package/build/src/v1/gapic_metadata.json +461 -0
- package/build/src/v1/index.js +1 -1
- package/package.json +17 -17
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright
|
|
2
|
+
// Copyright 2025 Google LLC
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
exports.DataMigrationServiceClient = void 0;
|
|
21
21
|
const jsonProtos = require("../../protos/protos.json");
|
|
22
|
+
const google_gax_1 = require("google-gax");
|
|
22
23
|
/**
|
|
23
24
|
* Client JSON configuration object, loaded from
|
|
24
25
|
* `src/v1/data_migration_service_client_config.json`.
|
|
@@ -32,6 +33,30 @@ const version = require('../../../package.json').version;
|
|
|
32
33
|
* @memberof v1
|
|
33
34
|
*/
|
|
34
35
|
class DataMigrationServiceClient {
|
|
36
|
+
_terminated = false;
|
|
37
|
+
_opts;
|
|
38
|
+
_providedCustomServicePath;
|
|
39
|
+
_gaxModule;
|
|
40
|
+
_gaxGrpc;
|
|
41
|
+
_protos;
|
|
42
|
+
_defaults;
|
|
43
|
+
_universeDomain;
|
|
44
|
+
_servicePath;
|
|
45
|
+
_log = google_gax_1.loggingUtils.log('dms');
|
|
46
|
+
auth;
|
|
47
|
+
descriptors = {
|
|
48
|
+
page: {},
|
|
49
|
+
stream: {},
|
|
50
|
+
longrunning: {},
|
|
51
|
+
batching: {},
|
|
52
|
+
};
|
|
53
|
+
warn;
|
|
54
|
+
innerApiCalls;
|
|
55
|
+
iamClient;
|
|
56
|
+
locationsClient;
|
|
57
|
+
pathTemplates;
|
|
58
|
+
operationsClient;
|
|
59
|
+
dataMigrationServiceStub;
|
|
35
60
|
/**
|
|
36
61
|
* Construct an instance of DataMigrationServiceClient.
|
|
37
62
|
*
|
|
@@ -54,7 +79,7 @@ class DataMigrationServiceClient {
|
|
|
54
79
|
* Developer's Console, e.g. 'grape-spaceship-123'. We will also check
|
|
55
80
|
* the environment variable GCLOUD_PROJECT for your project ID. If your
|
|
56
81
|
* app is running in an environment which supports
|
|
57
|
-
* {@link https://
|
|
82
|
+
* {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials},
|
|
58
83
|
* your project ID will be detected automatically.
|
|
59
84
|
* @param {string} [options.apiEndpoint] - The domain name of the
|
|
60
85
|
* API remote host.
|
|
@@ -72,32 +97,28 @@ class DataMigrationServiceClient {
|
|
|
72
97
|
* ```
|
|
73
98
|
*/
|
|
74
99
|
constructor(opts, gaxInstance) {
|
|
75
|
-
var _a, _b, _c, _d, _e;
|
|
76
|
-
this._terminated = false;
|
|
77
|
-
this.descriptors = {
|
|
78
|
-
page: {},
|
|
79
|
-
stream: {},
|
|
80
|
-
longrunning: {},
|
|
81
|
-
batching: {},
|
|
82
|
-
};
|
|
83
100
|
// Ensure that options include all the required fields.
|
|
84
101
|
const staticMembers = this.constructor;
|
|
85
|
-
if (
|
|
86
|
-
|
|
87
|
-
|
|
102
|
+
if (opts?.universe_domain &&
|
|
103
|
+
opts?.universeDomain &&
|
|
104
|
+
opts?.universe_domain !== opts?.universeDomain) {
|
|
88
105
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
|
89
106
|
}
|
|
90
107
|
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
|
91
108
|
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
|
92
109
|
: undefined;
|
|
93
110
|
this._universeDomain =
|
|
94
|
-
|
|
111
|
+
opts?.universeDomain ??
|
|
112
|
+
opts?.universe_domain ??
|
|
113
|
+
universeDomainEnvVar ??
|
|
114
|
+
'googleapis.com';
|
|
95
115
|
this._servicePath = 'datamigration.' + this._universeDomain;
|
|
96
|
-
const servicePath =
|
|
97
|
-
this._providedCustomServicePath = !!(
|
|
98
|
-
const port =
|
|
99
|
-
const clientConfig =
|
|
100
|
-
const fallback =
|
|
116
|
+
const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
|
|
117
|
+
this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
|
|
118
|
+
const port = opts?.port || staticMembers.port;
|
|
119
|
+
const clientConfig = opts?.clientConfig ?? {};
|
|
120
|
+
const fallback = opts?.fallback ??
|
|
121
|
+
(typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
|
101
122
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
|
102
123
|
// Request numeric enum values if REST transport is used.
|
|
103
124
|
opts.numericEnums = true;
|
|
@@ -490,7 +511,6 @@ class DataMigrationServiceClient {
|
|
|
490
511
|
return this.auth.getProjectId();
|
|
491
512
|
}
|
|
492
513
|
getMigrationJob(request, optionsOrCallback, callback) {
|
|
493
|
-
var _a;
|
|
494
514
|
request = request || {};
|
|
495
515
|
let options;
|
|
496
516
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -505,13 +525,24 @@ class DataMigrationServiceClient {
|
|
|
505
525
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
506
526
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
507
527
|
this._gaxModule.routingHeader.fromParams({
|
|
508
|
-
name:
|
|
528
|
+
name: request.name ?? '',
|
|
509
529
|
});
|
|
510
530
|
this.initialize();
|
|
511
|
-
|
|
531
|
+
this._log.info('getMigrationJob request %j', request);
|
|
532
|
+
const wrappedCallback = callback
|
|
533
|
+
? (error, response, options, rawResponse) => {
|
|
534
|
+
this._log.info('getMigrationJob response %j', response);
|
|
535
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
536
|
+
}
|
|
537
|
+
: undefined;
|
|
538
|
+
return this.innerApiCalls
|
|
539
|
+
.getMigrationJob(request, options, wrappedCallback)
|
|
540
|
+
?.then(([response, options, rawResponse]) => {
|
|
541
|
+
this._log.info('getMigrationJob response %j', response);
|
|
542
|
+
return [response, options, rawResponse];
|
|
543
|
+
});
|
|
512
544
|
}
|
|
513
545
|
generateSshScript(request, optionsOrCallback, callback) {
|
|
514
|
-
var _a;
|
|
515
546
|
request = request || {};
|
|
516
547
|
let options;
|
|
517
548
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -526,13 +557,24 @@ class DataMigrationServiceClient {
|
|
|
526
557
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
527
558
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
528
559
|
this._gaxModule.routingHeader.fromParams({
|
|
529
|
-
migration_job:
|
|
560
|
+
migration_job: request.migrationJob ?? '',
|
|
530
561
|
});
|
|
531
562
|
this.initialize();
|
|
532
|
-
|
|
563
|
+
this._log.info('generateSshScript request %j', request);
|
|
564
|
+
const wrappedCallback = callback
|
|
565
|
+
? (error, response, options, rawResponse) => {
|
|
566
|
+
this._log.info('generateSshScript response %j', response);
|
|
567
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
568
|
+
}
|
|
569
|
+
: undefined;
|
|
570
|
+
return this.innerApiCalls
|
|
571
|
+
.generateSshScript(request, options, wrappedCallback)
|
|
572
|
+
?.then(([response, options, rawResponse]) => {
|
|
573
|
+
this._log.info('generateSshScript response %j', response);
|
|
574
|
+
return [response, options, rawResponse];
|
|
575
|
+
});
|
|
533
576
|
}
|
|
534
577
|
generateTcpProxyScript(request, optionsOrCallback, callback) {
|
|
535
|
-
var _a;
|
|
536
578
|
request = request || {};
|
|
537
579
|
let options;
|
|
538
580
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -547,13 +589,24 @@ class DataMigrationServiceClient {
|
|
|
547
589
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
548
590
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
549
591
|
this._gaxModule.routingHeader.fromParams({
|
|
550
|
-
migration_job:
|
|
592
|
+
migration_job: request.migrationJob ?? '',
|
|
551
593
|
});
|
|
552
594
|
this.initialize();
|
|
553
|
-
|
|
595
|
+
this._log.info('generateTcpProxyScript request %j', request);
|
|
596
|
+
const wrappedCallback = callback
|
|
597
|
+
? (error, response, options, rawResponse) => {
|
|
598
|
+
this._log.info('generateTcpProxyScript response %j', response);
|
|
599
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
600
|
+
}
|
|
601
|
+
: undefined;
|
|
602
|
+
return this.innerApiCalls
|
|
603
|
+
.generateTcpProxyScript(request, options, wrappedCallback)
|
|
604
|
+
?.then(([response, options, rawResponse]) => {
|
|
605
|
+
this._log.info('generateTcpProxyScript response %j', response);
|
|
606
|
+
return [response, options, rawResponse];
|
|
607
|
+
});
|
|
554
608
|
}
|
|
555
609
|
getConnectionProfile(request, optionsOrCallback, callback) {
|
|
556
|
-
var _a;
|
|
557
610
|
request = request || {};
|
|
558
611
|
let options;
|
|
559
612
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -568,13 +621,24 @@ class DataMigrationServiceClient {
|
|
|
568
621
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
569
622
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
570
623
|
this._gaxModule.routingHeader.fromParams({
|
|
571
|
-
name:
|
|
624
|
+
name: request.name ?? '',
|
|
572
625
|
});
|
|
573
626
|
this.initialize();
|
|
574
|
-
|
|
627
|
+
this._log.info('getConnectionProfile request %j', request);
|
|
628
|
+
const wrappedCallback = callback
|
|
629
|
+
? (error, response, options, rawResponse) => {
|
|
630
|
+
this._log.info('getConnectionProfile response %j', response);
|
|
631
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
632
|
+
}
|
|
633
|
+
: undefined;
|
|
634
|
+
return this.innerApiCalls
|
|
635
|
+
.getConnectionProfile(request, options, wrappedCallback)
|
|
636
|
+
?.then(([response, options, rawResponse]) => {
|
|
637
|
+
this._log.info('getConnectionProfile response %j', response);
|
|
638
|
+
return [response, options, rawResponse];
|
|
639
|
+
});
|
|
575
640
|
}
|
|
576
641
|
getPrivateConnection(request, optionsOrCallback, callback) {
|
|
577
|
-
var _a;
|
|
578
642
|
request = request || {};
|
|
579
643
|
let options;
|
|
580
644
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -589,13 +653,24 @@ class DataMigrationServiceClient {
|
|
|
589
653
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
590
654
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
591
655
|
this._gaxModule.routingHeader.fromParams({
|
|
592
|
-
name:
|
|
656
|
+
name: request.name ?? '',
|
|
593
657
|
});
|
|
594
658
|
this.initialize();
|
|
595
|
-
|
|
659
|
+
this._log.info('getPrivateConnection request %j', request);
|
|
660
|
+
const wrappedCallback = callback
|
|
661
|
+
? (error, response, options, rawResponse) => {
|
|
662
|
+
this._log.info('getPrivateConnection response %j', response);
|
|
663
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
664
|
+
}
|
|
665
|
+
: undefined;
|
|
666
|
+
return this.innerApiCalls
|
|
667
|
+
.getPrivateConnection(request, options, wrappedCallback)
|
|
668
|
+
?.then(([response, options, rawResponse]) => {
|
|
669
|
+
this._log.info('getPrivateConnection response %j', response);
|
|
670
|
+
return [response, options, rawResponse];
|
|
671
|
+
});
|
|
596
672
|
}
|
|
597
673
|
getConversionWorkspace(request, optionsOrCallback, callback) {
|
|
598
|
-
var _a;
|
|
599
674
|
request = request || {};
|
|
600
675
|
let options;
|
|
601
676
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -610,13 +685,24 @@ class DataMigrationServiceClient {
|
|
|
610
685
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
611
686
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
612
687
|
this._gaxModule.routingHeader.fromParams({
|
|
613
|
-
name:
|
|
688
|
+
name: request.name ?? '',
|
|
614
689
|
});
|
|
615
690
|
this.initialize();
|
|
616
|
-
|
|
691
|
+
this._log.info('getConversionWorkspace request %j', request);
|
|
692
|
+
const wrappedCallback = callback
|
|
693
|
+
? (error, response, options, rawResponse) => {
|
|
694
|
+
this._log.info('getConversionWorkspace response %j', response);
|
|
695
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
696
|
+
}
|
|
697
|
+
: undefined;
|
|
698
|
+
return this.innerApiCalls
|
|
699
|
+
.getConversionWorkspace(request, options, wrappedCallback)
|
|
700
|
+
?.then(([response, options, rawResponse]) => {
|
|
701
|
+
this._log.info('getConversionWorkspace response %j', response);
|
|
702
|
+
return [response, options, rawResponse];
|
|
703
|
+
});
|
|
617
704
|
}
|
|
618
705
|
createMappingRule(request, optionsOrCallback, callback) {
|
|
619
|
-
var _a;
|
|
620
706
|
request = request || {};
|
|
621
707
|
let options;
|
|
622
708
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -631,13 +717,24 @@ class DataMigrationServiceClient {
|
|
|
631
717
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
632
718
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
633
719
|
this._gaxModule.routingHeader.fromParams({
|
|
634
|
-
parent:
|
|
720
|
+
parent: request.parent ?? '',
|
|
635
721
|
});
|
|
636
722
|
this.initialize();
|
|
637
|
-
|
|
723
|
+
this._log.info('createMappingRule request %j', request);
|
|
724
|
+
const wrappedCallback = callback
|
|
725
|
+
? (error, response, options, rawResponse) => {
|
|
726
|
+
this._log.info('createMappingRule response %j', response);
|
|
727
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
728
|
+
}
|
|
729
|
+
: undefined;
|
|
730
|
+
return this.innerApiCalls
|
|
731
|
+
.createMappingRule(request, options, wrappedCallback)
|
|
732
|
+
?.then(([response, options, rawResponse]) => {
|
|
733
|
+
this._log.info('createMappingRule response %j', response);
|
|
734
|
+
return [response, options, rawResponse];
|
|
735
|
+
});
|
|
638
736
|
}
|
|
639
737
|
deleteMappingRule(request, optionsOrCallback, callback) {
|
|
640
|
-
var _a;
|
|
641
738
|
request = request || {};
|
|
642
739
|
let options;
|
|
643
740
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -652,13 +749,24 @@ class DataMigrationServiceClient {
|
|
|
652
749
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
653
750
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
654
751
|
this._gaxModule.routingHeader.fromParams({
|
|
655
|
-
name:
|
|
752
|
+
name: request.name ?? '',
|
|
656
753
|
});
|
|
657
754
|
this.initialize();
|
|
658
|
-
|
|
755
|
+
this._log.info('deleteMappingRule request %j', request);
|
|
756
|
+
const wrappedCallback = callback
|
|
757
|
+
? (error, response, options, rawResponse) => {
|
|
758
|
+
this._log.info('deleteMappingRule response %j', response);
|
|
759
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
760
|
+
}
|
|
761
|
+
: undefined;
|
|
762
|
+
return this.innerApiCalls
|
|
763
|
+
.deleteMappingRule(request, options, wrappedCallback)
|
|
764
|
+
?.then(([response, options, rawResponse]) => {
|
|
765
|
+
this._log.info('deleteMappingRule response %j', response);
|
|
766
|
+
return [response, options, rawResponse];
|
|
767
|
+
});
|
|
659
768
|
}
|
|
660
769
|
getMappingRule(request, optionsOrCallback, callback) {
|
|
661
|
-
var _a;
|
|
662
770
|
request = request || {};
|
|
663
771
|
let options;
|
|
664
772
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -673,13 +781,24 @@ class DataMigrationServiceClient {
|
|
|
673
781
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
674
782
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
675
783
|
this._gaxModule.routingHeader.fromParams({
|
|
676
|
-
name:
|
|
784
|
+
name: request.name ?? '',
|
|
677
785
|
});
|
|
678
786
|
this.initialize();
|
|
679
|
-
|
|
787
|
+
this._log.info('getMappingRule request %j', request);
|
|
788
|
+
const wrappedCallback = callback
|
|
789
|
+
? (error, response, options, rawResponse) => {
|
|
790
|
+
this._log.info('getMappingRule response %j', response);
|
|
791
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
792
|
+
}
|
|
793
|
+
: undefined;
|
|
794
|
+
return this.innerApiCalls
|
|
795
|
+
.getMappingRule(request, options, wrappedCallback)
|
|
796
|
+
?.then(([response, options, rawResponse]) => {
|
|
797
|
+
this._log.info('getMappingRule response %j', response);
|
|
798
|
+
return [response, options, rawResponse];
|
|
799
|
+
});
|
|
680
800
|
}
|
|
681
801
|
searchBackgroundJobs(request, optionsOrCallback, callback) {
|
|
682
|
-
var _a;
|
|
683
802
|
request = request || {};
|
|
684
803
|
let options;
|
|
685
804
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -694,13 +813,24 @@ class DataMigrationServiceClient {
|
|
|
694
813
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
695
814
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
696
815
|
this._gaxModule.routingHeader.fromParams({
|
|
697
|
-
conversion_workspace:
|
|
816
|
+
conversion_workspace: request.conversionWorkspace ?? '',
|
|
698
817
|
});
|
|
699
818
|
this.initialize();
|
|
700
|
-
|
|
819
|
+
this._log.info('searchBackgroundJobs request %j', request);
|
|
820
|
+
const wrappedCallback = callback
|
|
821
|
+
? (error, response, options, rawResponse) => {
|
|
822
|
+
this._log.info('searchBackgroundJobs response %j', response);
|
|
823
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
824
|
+
}
|
|
825
|
+
: undefined;
|
|
826
|
+
return this.innerApiCalls
|
|
827
|
+
.searchBackgroundJobs(request, options, wrappedCallback)
|
|
828
|
+
?.then(([response, options, rawResponse]) => {
|
|
829
|
+
this._log.info('searchBackgroundJobs response %j', response);
|
|
830
|
+
return [response, options, rawResponse];
|
|
831
|
+
});
|
|
701
832
|
}
|
|
702
833
|
describeConversionWorkspaceRevisions(request, optionsOrCallback, callback) {
|
|
703
|
-
var _a;
|
|
704
834
|
request = request || {};
|
|
705
835
|
let options;
|
|
706
836
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -715,13 +845,24 @@ class DataMigrationServiceClient {
|
|
|
715
845
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
716
846
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
717
847
|
this._gaxModule.routingHeader.fromParams({
|
|
718
|
-
conversion_workspace:
|
|
848
|
+
conversion_workspace: request.conversionWorkspace ?? '',
|
|
719
849
|
});
|
|
720
850
|
this.initialize();
|
|
721
|
-
|
|
851
|
+
this._log.info('describeConversionWorkspaceRevisions request %j', request);
|
|
852
|
+
const wrappedCallback = callback
|
|
853
|
+
? (error, response, options, rawResponse) => {
|
|
854
|
+
this._log.info('describeConversionWorkspaceRevisions response %j', response);
|
|
855
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
856
|
+
}
|
|
857
|
+
: undefined;
|
|
858
|
+
return this.innerApiCalls
|
|
859
|
+
.describeConversionWorkspaceRevisions(request, options, wrappedCallback)
|
|
860
|
+
?.then(([response, options, rawResponse]) => {
|
|
861
|
+
this._log.info('describeConversionWorkspaceRevisions response %j', response);
|
|
862
|
+
return [response, options, rawResponse];
|
|
863
|
+
});
|
|
722
864
|
}
|
|
723
865
|
createMigrationJob(request, optionsOrCallback, callback) {
|
|
724
|
-
var _a;
|
|
725
866
|
request = request || {};
|
|
726
867
|
let options;
|
|
727
868
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -736,10 +877,22 @@ class DataMigrationServiceClient {
|
|
|
736
877
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
737
878
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
738
879
|
this._gaxModule.routingHeader.fromParams({
|
|
739
|
-
parent:
|
|
880
|
+
parent: request.parent ?? '',
|
|
740
881
|
});
|
|
741
882
|
this.initialize();
|
|
742
|
-
|
|
883
|
+
const wrappedCallback = callback
|
|
884
|
+
? (error, response, rawResponse, _) => {
|
|
885
|
+
this._log.info('createMigrationJob response %j', rawResponse);
|
|
886
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
887
|
+
}
|
|
888
|
+
: undefined;
|
|
889
|
+
this._log.info('createMigrationJob request %j', request);
|
|
890
|
+
return this.innerApiCalls
|
|
891
|
+
.createMigrationJob(request, options, wrappedCallback)
|
|
892
|
+
?.then(([response, rawResponse, _]) => {
|
|
893
|
+
this._log.info('createMigrationJob response %j', rawResponse);
|
|
894
|
+
return [response, rawResponse, _];
|
|
895
|
+
});
|
|
743
896
|
}
|
|
744
897
|
/**
|
|
745
898
|
* Check the status of the long running operation returned by `createMigrationJob()`.
|
|
@@ -753,13 +906,13 @@ class DataMigrationServiceClient {
|
|
|
753
906
|
* region_tag:datamigration_v1_generated_DataMigrationService_CreateMigrationJob_async
|
|
754
907
|
*/
|
|
755
908
|
async checkCreateMigrationJobProgress(name) {
|
|
909
|
+
this._log.info('createMigrationJob long-running');
|
|
756
910
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
757
911
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
758
912
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.createMigrationJob, this._gaxModule.createDefaultBackoffSettings());
|
|
759
913
|
return decodeOperation;
|
|
760
914
|
}
|
|
761
915
|
updateMigrationJob(request, optionsOrCallback, callback) {
|
|
762
|
-
var _a;
|
|
763
916
|
request = request || {};
|
|
764
917
|
let options;
|
|
765
918
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -774,10 +927,22 @@ class DataMigrationServiceClient {
|
|
|
774
927
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
775
928
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
776
929
|
this._gaxModule.routingHeader.fromParams({
|
|
777
|
-
'migration_job.name':
|
|
930
|
+
'migration_job.name': request.migrationJob.name ?? '',
|
|
778
931
|
});
|
|
779
932
|
this.initialize();
|
|
780
|
-
|
|
933
|
+
const wrappedCallback = callback
|
|
934
|
+
? (error, response, rawResponse, _) => {
|
|
935
|
+
this._log.info('updateMigrationJob response %j', rawResponse);
|
|
936
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
937
|
+
}
|
|
938
|
+
: undefined;
|
|
939
|
+
this._log.info('updateMigrationJob request %j', request);
|
|
940
|
+
return this.innerApiCalls
|
|
941
|
+
.updateMigrationJob(request, options, wrappedCallback)
|
|
942
|
+
?.then(([response, rawResponse, _]) => {
|
|
943
|
+
this._log.info('updateMigrationJob response %j', rawResponse);
|
|
944
|
+
return [response, rawResponse, _];
|
|
945
|
+
});
|
|
781
946
|
}
|
|
782
947
|
/**
|
|
783
948
|
* Check the status of the long running operation returned by `updateMigrationJob()`.
|
|
@@ -791,13 +956,13 @@ class DataMigrationServiceClient {
|
|
|
791
956
|
* region_tag:datamigration_v1_generated_DataMigrationService_UpdateMigrationJob_async
|
|
792
957
|
*/
|
|
793
958
|
async checkUpdateMigrationJobProgress(name) {
|
|
959
|
+
this._log.info('updateMigrationJob long-running');
|
|
794
960
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
795
961
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
796
962
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.updateMigrationJob, this._gaxModule.createDefaultBackoffSettings());
|
|
797
963
|
return decodeOperation;
|
|
798
964
|
}
|
|
799
965
|
deleteMigrationJob(request, optionsOrCallback, callback) {
|
|
800
|
-
var _a;
|
|
801
966
|
request = request || {};
|
|
802
967
|
let options;
|
|
803
968
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -812,10 +977,22 @@ class DataMigrationServiceClient {
|
|
|
812
977
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
813
978
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
814
979
|
this._gaxModule.routingHeader.fromParams({
|
|
815
|
-
name:
|
|
980
|
+
name: request.name ?? '',
|
|
816
981
|
});
|
|
817
982
|
this.initialize();
|
|
818
|
-
|
|
983
|
+
const wrappedCallback = callback
|
|
984
|
+
? (error, response, rawResponse, _) => {
|
|
985
|
+
this._log.info('deleteMigrationJob response %j', rawResponse);
|
|
986
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
987
|
+
}
|
|
988
|
+
: undefined;
|
|
989
|
+
this._log.info('deleteMigrationJob request %j', request);
|
|
990
|
+
return this.innerApiCalls
|
|
991
|
+
.deleteMigrationJob(request, options, wrappedCallback)
|
|
992
|
+
?.then(([response, rawResponse, _]) => {
|
|
993
|
+
this._log.info('deleteMigrationJob response %j', rawResponse);
|
|
994
|
+
return [response, rawResponse, _];
|
|
995
|
+
});
|
|
819
996
|
}
|
|
820
997
|
/**
|
|
821
998
|
* Check the status of the long running operation returned by `deleteMigrationJob()`.
|
|
@@ -829,13 +1006,13 @@ class DataMigrationServiceClient {
|
|
|
829
1006
|
* region_tag:datamigration_v1_generated_DataMigrationService_DeleteMigrationJob_async
|
|
830
1007
|
*/
|
|
831
1008
|
async checkDeleteMigrationJobProgress(name) {
|
|
1009
|
+
this._log.info('deleteMigrationJob long-running');
|
|
832
1010
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
833
1011
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
834
1012
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.deleteMigrationJob, this._gaxModule.createDefaultBackoffSettings());
|
|
835
1013
|
return decodeOperation;
|
|
836
1014
|
}
|
|
837
1015
|
startMigrationJob(request, optionsOrCallback, callback) {
|
|
838
|
-
var _a;
|
|
839
1016
|
request = request || {};
|
|
840
1017
|
let options;
|
|
841
1018
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -850,10 +1027,22 @@ class DataMigrationServiceClient {
|
|
|
850
1027
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
851
1028
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
852
1029
|
this._gaxModule.routingHeader.fromParams({
|
|
853
|
-
name:
|
|
1030
|
+
name: request.name ?? '',
|
|
854
1031
|
});
|
|
855
1032
|
this.initialize();
|
|
856
|
-
|
|
1033
|
+
const wrappedCallback = callback
|
|
1034
|
+
? (error, response, rawResponse, _) => {
|
|
1035
|
+
this._log.info('startMigrationJob response %j', rawResponse);
|
|
1036
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1037
|
+
}
|
|
1038
|
+
: undefined;
|
|
1039
|
+
this._log.info('startMigrationJob request %j', request);
|
|
1040
|
+
return this.innerApiCalls
|
|
1041
|
+
.startMigrationJob(request, options, wrappedCallback)
|
|
1042
|
+
?.then(([response, rawResponse, _]) => {
|
|
1043
|
+
this._log.info('startMigrationJob response %j', rawResponse);
|
|
1044
|
+
return [response, rawResponse, _];
|
|
1045
|
+
});
|
|
857
1046
|
}
|
|
858
1047
|
/**
|
|
859
1048
|
* Check the status of the long running operation returned by `startMigrationJob()`.
|
|
@@ -867,13 +1056,13 @@ class DataMigrationServiceClient {
|
|
|
867
1056
|
* region_tag:datamigration_v1_generated_DataMigrationService_StartMigrationJob_async
|
|
868
1057
|
*/
|
|
869
1058
|
async checkStartMigrationJobProgress(name) {
|
|
1059
|
+
this._log.info('startMigrationJob long-running');
|
|
870
1060
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
871
1061
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
872
1062
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.startMigrationJob, this._gaxModule.createDefaultBackoffSettings());
|
|
873
1063
|
return decodeOperation;
|
|
874
1064
|
}
|
|
875
1065
|
stopMigrationJob(request, optionsOrCallback, callback) {
|
|
876
|
-
var _a;
|
|
877
1066
|
request = request || {};
|
|
878
1067
|
let options;
|
|
879
1068
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -888,10 +1077,22 @@ class DataMigrationServiceClient {
|
|
|
888
1077
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
889
1078
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
890
1079
|
this._gaxModule.routingHeader.fromParams({
|
|
891
|
-
name:
|
|
1080
|
+
name: request.name ?? '',
|
|
892
1081
|
});
|
|
893
1082
|
this.initialize();
|
|
894
|
-
|
|
1083
|
+
const wrappedCallback = callback
|
|
1084
|
+
? (error, response, rawResponse, _) => {
|
|
1085
|
+
this._log.info('stopMigrationJob response %j', rawResponse);
|
|
1086
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1087
|
+
}
|
|
1088
|
+
: undefined;
|
|
1089
|
+
this._log.info('stopMigrationJob request %j', request);
|
|
1090
|
+
return this.innerApiCalls
|
|
1091
|
+
.stopMigrationJob(request, options, wrappedCallback)
|
|
1092
|
+
?.then(([response, rawResponse, _]) => {
|
|
1093
|
+
this._log.info('stopMigrationJob response %j', rawResponse);
|
|
1094
|
+
return [response, rawResponse, _];
|
|
1095
|
+
});
|
|
895
1096
|
}
|
|
896
1097
|
/**
|
|
897
1098
|
* Check the status of the long running operation returned by `stopMigrationJob()`.
|
|
@@ -905,13 +1106,13 @@ class DataMigrationServiceClient {
|
|
|
905
1106
|
* region_tag:datamigration_v1_generated_DataMigrationService_StopMigrationJob_async
|
|
906
1107
|
*/
|
|
907
1108
|
async checkStopMigrationJobProgress(name) {
|
|
1109
|
+
this._log.info('stopMigrationJob long-running');
|
|
908
1110
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
909
1111
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
910
1112
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.stopMigrationJob, this._gaxModule.createDefaultBackoffSettings());
|
|
911
1113
|
return decodeOperation;
|
|
912
1114
|
}
|
|
913
1115
|
resumeMigrationJob(request, optionsOrCallback, callback) {
|
|
914
|
-
var _a;
|
|
915
1116
|
request = request || {};
|
|
916
1117
|
let options;
|
|
917
1118
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -926,10 +1127,22 @@ class DataMigrationServiceClient {
|
|
|
926
1127
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
927
1128
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
928
1129
|
this._gaxModule.routingHeader.fromParams({
|
|
929
|
-
name:
|
|
1130
|
+
name: request.name ?? '',
|
|
930
1131
|
});
|
|
931
1132
|
this.initialize();
|
|
932
|
-
|
|
1133
|
+
const wrappedCallback = callback
|
|
1134
|
+
? (error, response, rawResponse, _) => {
|
|
1135
|
+
this._log.info('resumeMigrationJob response %j', rawResponse);
|
|
1136
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1137
|
+
}
|
|
1138
|
+
: undefined;
|
|
1139
|
+
this._log.info('resumeMigrationJob request %j', request);
|
|
1140
|
+
return this.innerApiCalls
|
|
1141
|
+
.resumeMigrationJob(request, options, wrappedCallback)
|
|
1142
|
+
?.then(([response, rawResponse, _]) => {
|
|
1143
|
+
this._log.info('resumeMigrationJob response %j', rawResponse);
|
|
1144
|
+
return [response, rawResponse, _];
|
|
1145
|
+
});
|
|
933
1146
|
}
|
|
934
1147
|
/**
|
|
935
1148
|
* Check the status of the long running operation returned by `resumeMigrationJob()`.
|
|
@@ -943,13 +1156,13 @@ class DataMigrationServiceClient {
|
|
|
943
1156
|
* region_tag:datamigration_v1_generated_DataMigrationService_ResumeMigrationJob_async
|
|
944
1157
|
*/
|
|
945
1158
|
async checkResumeMigrationJobProgress(name) {
|
|
1159
|
+
this._log.info('resumeMigrationJob long-running');
|
|
946
1160
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
947
1161
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
948
1162
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.resumeMigrationJob, this._gaxModule.createDefaultBackoffSettings());
|
|
949
1163
|
return decodeOperation;
|
|
950
1164
|
}
|
|
951
1165
|
promoteMigrationJob(request, optionsOrCallback, callback) {
|
|
952
|
-
var _a;
|
|
953
1166
|
request = request || {};
|
|
954
1167
|
let options;
|
|
955
1168
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -964,10 +1177,22 @@ class DataMigrationServiceClient {
|
|
|
964
1177
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
965
1178
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
966
1179
|
this._gaxModule.routingHeader.fromParams({
|
|
967
|
-
name:
|
|
1180
|
+
name: request.name ?? '',
|
|
968
1181
|
});
|
|
969
1182
|
this.initialize();
|
|
970
|
-
|
|
1183
|
+
const wrappedCallback = callback
|
|
1184
|
+
? (error, response, rawResponse, _) => {
|
|
1185
|
+
this._log.info('promoteMigrationJob response %j', rawResponse);
|
|
1186
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1187
|
+
}
|
|
1188
|
+
: undefined;
|
|
1189
|
+
this._log.info('promoteMigrationJob request %j', request);
|
|
1190
|
+
return this.innerApiCalls
|
|
1191
|
+
.promoteMigrationJob(request, options, wrappedCallback)
|
|
1192
|
+
?.then(([response, rawResponse, _]) => {
|
|
1193
|
+
this._log.info('promoteMigrationJob response %j', rawResponse);
|
|
1194
|
+
return [response, rawResponse, _];
|
|
1195
|
+
});
|
|
971
1196
|
}
|
|
972
1197
|
/**
|
|
973
1198
|
* Check the status of the long running operation returned by `promoteMigrationJob()`.
|
|
@@ -981,13 +1206,13 @@ class DataMigrationServiceClient {
|
|
|
981
1206
|
* region_tag:datamigration_v1_generated_DataMigrationService_PromoteMigrationJob_async
|
|
982
1207
|
*/
|
|
983
1208
|
async checkPromoteMigrationJobProgress(name) {
|
|
1209
|
+
this._log.info('promoteMigrationJob long-running');
|
|
984
1210
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
985
1211
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
986
1212
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.promoteMigrationJob, this._gaxModule.createDefaultBackoffSettings());
|
|
987
1213
|
return decodeOperation;
|
|
988
1214
|
}
|
|
989
1215
|
verifyMigrationJob(request, optionsOrCallback, callback) {
|
|
990
|
-
var _a;
|
|
991
1216
|
request = request || {};
|
|
992
1217
|
let options;
|
|
993
1218
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1002,10 +1227,22 @@ class DataMigrationServiceClient {
|
|
|
1002
1227
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1003
1228
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1004
1229
|
this._gaxModule.routingHeader.fromParams({
|
|
1005
|
-
name:
|
|
1230
|
+
name: request.name ?? '',
|
|
1006
1231
|
});
|
|
1007
1232
|
this.initialize();
|
|
1008
|
-
|
|
1233
|
+
const wrappedCallback = callback
|
|
1234
|
+
? (error, response, rawResponse, _) => {
|
|
1235
|
+
this._log.info('verifyMigrationJob response %j', rawResponse);
|
|
1236
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1237
|
+
}
|
|
1238
|
+
: undefined;
|
|
1239
|
+
this._log.info('verifyMigrationJob request %j', request);
|
|
1240
|
+
return this.innerApiCalls
|
|
1241
|
+
.verifyMigrationJob(request, options, wrappedCallback)
|
|
1242
|
+
?.then(([response, rawResponse, _]) => {
|
|
1243
|
+
this._log.info('verifyMigrationJob response %j', rawResponse);
|
|
1244
|
+
return [response, rawResponse, _];
|
|
1245
|
+
});
|
|
1009
1246
|
}
|
|
1010
1247
|
/**
|
|
1011
1248
|
* Check the status of the long running operation returned by `verifyMigrationJob()`.
|
|
@@ -1019,13 +1256,13 @@ class DataMigrationServiceClient {
|
|
|
1019
1256
|
* region_tag:datamigration_v1_generated_DataMigrationService_VerifyMigrationJob_async
|
|
1020
1257
|
*/
|
|
1021
1258
|
async checkVerifyMigrationJobProgress(name) {
|
|
1259
|
+
this._log.info('verifyMigrationJob long-running');
|
|
1022
1260
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1023
1261
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1024
1262
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.verifyMigrationJob, this._gaxModule.createDefaultBackoffSettings());
|
|
1025
1263
|
return decodeOperation;
|
|
1026
1264
|
}
|
|
1027
1265
|
restartMigrationJob(request, optionsOrCallback, callback) {
|
|
1028
|
-
var _a;
|
|
1029
1266
|
request = request || {};
|
|
1030
1267
|
let options;
|
|
1031
1268
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1040,10 +1277,22 @@ class DataMigrationServiceClient {
|
|
|
1040
1277
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1041
1278
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1042
1279
|
this._gaxModule.routingHeader.fromParams({
|
|
1043
|
-
name:
|
|
1280
|
+
name: request.name ?? '',
|
|
1044
1281
|
});
|
|
1045
1282
|
this.initialize();
|
|
1046
|
-
|
|
1283
|
+
const wrappedCallback = callback
|
|
1284
|
+
? (error, response, rawResponse, _) => {
|
|
1285
|
+
this._log.info('restartMigrationJob response %j', rawResponse);
|
|
1286
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1287
|
+
}
|
|
1288
|
+
: undefined;
|
|
1289
|
+
this._log.info('restartMigrationJob request %j', request);
|
|
1290
|
+
return this.innerApiCalls
|
|
1291
|
+
.restartMigrationJob(request, options, wrappedCallback)
|
|
1292
|
+
?.then(([response, rawResponse, _]) => {
|
|
1293
|
+
this._log.info('restartMigrationJob response %j', rawResponse);
|
|
1294
|
+
return [response, rawResponse, _];
|
|
1295
|
+
});
|
|
1047
1296
|
}
|
|
1048
1297
|
/**
|
|
1049
1298
|
* Check the status of the long running operation returned by `restartMigrationJob()`.
|
|
@@ -1057,13 +1306,13 @@ class DataMigrationServiceClient {
|
|
|
1057
1306
|
* region_tag:datamigration_v1_generated_DataMigrationService_RestartMigrationJob_async
|
|
1058
1307
|
*/
|
|
1059
1308
|
async checkRestartMigrationJobProgress(name) {
|
|
1309
|
+
this._log.info('restartMigrationJob long-running');
|
|
1060
1310
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1061
1311
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1062
1312
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.restartMigrationJob, this._gaxModule.createDefaultBackoffSettings());
|
|
1063
1313
|
return decodeOperation;
|
|
1064
1314
|
}
|
|
1065
1315
|
createConnectionProfile(request, optionsOrCallback, callback) {
|
|
1066
|
-
var _a;
|
|
1067
1316
|
request = request || {};
|
|
1068
1317
|
let options;
|
|
1069
1318
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1078,10 +1327,22 @@ class DataMigrationServiceClient {
|
|
|
1078
1327
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1079
1328
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1080
1329
|
this._gaxModule.routingHeader.fromParams({
|
|
1081
|
-
parent:
|
|
1330
|
+
parent: request.parent ?? '',
|
|
1082
1331
|
});
|
|
1083
1332
|
this.initialize();
|
|
1084
|
-
|
|
1333
|
+
const wrappedCallback = callback
|
|
1334
|
+
? (error, response, rawResponse, _) => {
|
|
1335
|
+
this._log.info('createConnectionProfile response %j', rawResponse);
|
|
1336
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1337
|
+
}
|
|
1338
|
+
: undefined;
|
|
1339
|
+
this._log.info('createConnectionProfile request %j', request);
|
|
1340
|
+
return this.innerApiCalls
|
|
1341
|
+
.createConnectionProfile(request, options, wrappedCallback)
|
|
1342
|
+
?.then(([response, rawResponse, _]) => {
|
|
1343
|
+
this._log.info('createConnectionProfile response %j', rawResponse);
|
|
1344
|
+
return [response, rawResponse, _];
|
|
1345
|
+
});
|
|
1085
1346
|
}
|
|
1086
1347
|
/**
|
|
1087
1348
|
* Check the status of the long running operation returned by `createConnectionProfile()`.
|
|
@@ -1095,13 +1356,13 @@ class DataMigrationServiceClient {
|
|
|
1095
1356
|
* region_tag:datamigration_v1_generated_DataMigrationService_CreateConnectionProfile_async
|
|
1096
1357
|
*/
|
|
1097
1358
|
async checkCreateConnectionProfileProgress(name) {
|
|
1359
|
+
this._log.info('createConnectionProfile long-running');
|
|
1098
1360
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1099
1361
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1100
1362
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.createConnectionProfile, this._gaxModule.createDefaultBackoffSettings());
|
|
1101
1363
|
return decodeOperation;
|
|
1102
1364
|
}
|
|
1103
1365
|
updateConnectionProfile(request, optionsOrCallback, callback) {
|
|
1104
|
-
var _a;
|
|
1105
1366
|
request = request || {};
|
|
1106
1367
|
let options;
|
|
1107
1368
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1116,10 +1377,22 @@ class DataMigrationServiceClient {
|
|
|
1116
1377
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1117
1378
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1118
1379
|
this._gaxModule.routingHeader.fromParams({
|
|
1119
|
-
'connection_profile.name':
|
|
1380
|
+
'connection_profile.name': request.connectionProfile.name ?? '',
|
|
1120
1381
|
});
|
|
1121
1382
|
this.initialize();
|
|
1122
|
-
|
|
1383
|
+
const wrappedCallback = callback
|
|
1384
|
+
? (error, response, rawResponse, _) => {
|
|
1385
|
+
this._log.info('updateConnectionProfile response %j', rawResponse);
|
|
1386
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1387
|
+
}
|
|
1388
|
+
: undefined;
|
|
1389
|
+
this._log.info('updateConnectionProfile request %j', request);
|
|
1390
|
+
return this.innerApiCalls
|
|
1391
|
+
.updateConnectionProfile(request, options, wrappedCallback)
|
|
1392
|
+
?.then(([response, rawResponse, _]) => {
|
|
1393
|
+
this._log.info('updateConnectionProfile response %j', rawResponse);
|
|
1394
|
+
return [response, rawResponse, _];
|
|
1395
|
+
});
|
|
1123
1396
|
}
|
|
1124
1397
|
/**
|
|
1125
1398
|
* Check the status of the long running operation returned by `updateConnectionProfile()`.
|
|
@@ -1133,13 +1406,13 @@ class DataMigrationServiceClient {
|
|
|
1133
1406
|
* region_tag:datamigration_v1_generated_DataMigrationService_UpdateConnectionProfile_async
|
|
1134
1407
|
*/
|
|
1135
1408
|
async checkUpdateConnectionProfileProgress(name) {
|
|
1409
|
+
this._log.info('updateConnectionProfile long-running');
|
|
1136
1410
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1137
1411
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1138
1412
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.updateConnectionProfile, this._gaxModule.createDefaultBackoffSettings());
|
|
1139
1413
|
return decodeOperation;
|
|
1140
1414
|
}
|
|
1141
1415
|
deleteConnectionProfile(request, optionsOrCallback, callback) {
|
|
1142
|
-
var _a;
|
|
1143
1416
|
request = request || {};
|
|
1144
1417
|
let options;
|
|
1145
1418
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1154,10 +1427,22 @@ class DataMigrationServiceClient {
|
|
|
1154
1427
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1155
1428
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1156
1429
|
this._gaxModule.routingHeader.fromParams({
|
|
1157
|
-
name:
|
|
1430
|
+
name: request.name ?? '',
|
|
1158
1431
|
});
|
|
1159
1432
|
this.initialize();
|
|
1160
|
-
|
|
1433
|
+
const wrappedCallback = callback
|
|
1434
|
+
? (error, response, rawResponse, _) => {
|
|
1435
|
+
this._log.info('deleteConnectionProfile response %j', rawResponse);
|
|
1436
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1437
|
+
}
|
|
1438
|
+
: undefined;
|
|
1439
|
+
this._log.info('deleteConnectionProfile request %j', request);
|
|
1440
|
+
return this.innerApiCalls
|
|
1441
|
+
.deleteConnectionProfile(request, options, wrappedCallback)
|
|
1442
|
+
?.then(([response, rawResponse, _]) => {
|
|
1443
|
+
this._log.info('deleteConnectionProfile response %j', rawResponse);
|
|
1444
|
+
return [response, rawResponse, _];
|
|
1445
|
+
});
|
|
1161
1446
|
}
|
|
1162
1447
|
/**
|
|
1163
1448
|
* Check the status of the long running operation returned by `deleteConnectionProfile()`.
|
|
@@ -1171,13 +1456,13 @@ class DataMigrationServiceClient {
|
|
|
1171
1456
|
* region_tag:datamigration_v1_generated_DataMigrationService_DeleteConnectionProfile_async
|
|
1172
1457
|
*/
|
|
1173
1458
|
async checkDeleteConnectionProfileProgress(name) {
|
|
1459
|
+
this._log.info('deleteConnectionProfile long-running');
|
|
1174
1460
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1175
1461
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1176
1462
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.deleteConnectionProfile, this._gaxModule.createDefaultBackoffSettings());
|
|
1177
1463
|
return decodeOperation;
|
|
1178
1464
|
}
|
|
1179
1465
|
createPrivateConnection(request, optionsOrCallback, callback) {
|
|
1180
|
-
var _a;
|
|
1181
1466
|
request = request || {};
|
|
1182
1467
|
let options;
|
|
1183
1468
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1192,10 +1477,22 @@ class DataMigrationServiceClient {
|
|
|
1192
1477
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1193
1478
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1194
1479
|
this._gaxModule.routingHeader.fromParams({
|
|
1195
|
-
parent:
|
|
1480
|
+
parent: request.parent ?? '',
|
|
1196
1481
|
});
|
|
1197
1482
|
this.initialize();
|
|
1198
|
-
|
|
1483
|
+
const wrappedCallback = callback
|
|
1484
|
+
? (error, response, rawResponse, _) => {
|
|
1485
|
+
this._log.info('createPrivateConnection response %j', rawResponse);
|
|
1486
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1487
|
+
}
|
|
1488
|
+
: undefined;
|
|
1489
|
+
this._log.info('createPrivateConnection request %j', request);
|
|
1490
|
+
return this.innerApiCalls
|
|
1491
|
+
.createPrivateConnection(request, options, wrappedCallback)
|
|
1492
|
+
?.then(([response, rawResponse, _]) => {
|
|
1493
|
+
this._log.info('createPrivateConnection response %j', rawResponse);
|
|
1494
|
+
return [response, rawResponse, _];
|
|
1495
|
+
});
|
|
1199
1496
|
}
|
|
1200
1497
|
/**
|
|
1201
1498
|
* Check the status of the long running operation returned by `createPrivateConnection()`.
|
|
@@ -1209,13 +1506,13 @@ class DataMigrationServiceClient {
|
|
|
1209
1506
|
* region_tag:datamigration_v1_generated_DataMigrationService_CreatePrivateConnection_async
|
|
1210
1507
|
*/
|
|
1211
1508
|
async checkCreatePrivateConnectionProgress(name) {
|
|
1509
|
+
this._log.info('createPrivateConnection long-running');
|
|
1212
1510
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1213
1511
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1214
1512
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.createPrivateConnection, this._gaxModule.createDefaultBackoffSettings());
|
|
1215
1513
|
return decodeOperation;
|
|
1216
1514
|
}
|
|
1217
1515
|
deletePrivateConnection(request, optionsOrCallback, callback) {
|
|
1218
|
-
var _a;
|
|
1219
1516
|
request = request || {};
|
|
1220
1517
|
let options;
|
|
1221
1518
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1230,10 +1527,22 @@ class DataMigrationServiceClient {
|
|
|
1230
1527
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1231
1528
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1232
1529
|
this._gaxModule.routingHeader.fromParams({
|
|
1233
|
-
name:
|
|
1530
|
+
name: request.name ?? '',
|
|
1234
1531
|
});
|
|
1235
1532
|
this.initialize();
|
|
1236
|
-
|
|
1533
|
+
const wrappedCallback = callback
|
|
1534
|
+
? (error, response, rawResponse, _) => {
|
|
1535
|
+
this._log.info('deletePrivateConnection response %j', rawResponse);
|
|
1536
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1537
|
+
}
|
|
1538
|
+
: undefined;
|
|
1539
|
+
this._log.info('deletePrivateConnection request %j', request);
|
|
1540
|
+
return this.innerApiCalls
|
|
1541
|
+
.deletePrivateConnection(request, options, wrappedCallback)
|
|
1542
|
+
?.then(([response, rawResponse, _]) => {
|
|
1543
|
+
this._log.info('deletePrivateConnection response %j', rawResponse);
|
|
1544
|
+
return [response, rawResponse, _];
|
|
1545
|
+
});
|
|
1237
1546
|
}
|
|
1238
1547
|
/**
|
|
1239
1548
|
* Check the status of the long running operation returned by `deletePrivateConnection()`.
|
|
@@ -1247,13 +1556,13 @@ class DataMigrationServiceClient {
|
|
|
1247
1556
|
* region_tag:datamigration_v1_generated_DataMigrationService_DeletePrivateConnection_async
|
|
1248
1557
|
*/
|
|
1249
1558
|
async checkDeletePrivateConnectionProgress(name) {
|
|
1559
|
+
this._log.info('deletePrivateConnection long-running');
|
|
1250
1560
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1251
1561
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1252
1562
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.deletePrivateConnection, this._gaxModule.createDefaultBackoffSettings());
|
|
1253
1563
|
return decodeOperation;
|
|
1254
1564
|
}
|
|
1255
1565
|
createConversionWorkspace(request, optionsOrCallback, callback) {
|
|
1256
|
-
var _a;
|
|
1257
1566
|
request = request || {};
|
|
1258
1567
|
let options;
|
|
1259
1568
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1268,10 +1577,22 @@ class DataMigrationServiceClient {
|
|
|
1268
1577
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1269
1578
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1270
1579
|
this._gaxModule.routingHeader.fromParams({
|
|
1271
|
-
parent:
|
|
1580
|
+
parent: request.parent ?? '',
|
|
1272
1581
|
});
|
|
1273
1582
|
this.initialize();
|
|
1274
|
-
|
|
1583
|
+
const wrappedCallback = callback
|
|
1584
|
+
? (error, response, rawResponse, _) => {
|
|
1585
|
+
this._log.info('createConversionWorkspace response %j', rawResponse);
|
|
1586
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1587
|
+
}
|
|
1588
|
+
: undefined;
|
|
1589
|
+
this._log.info('createConversionWorkspace request %j', request);
|
|
1590
|
+
return this.innerApiCalls
|
|
1591
|
+
.createConversionWorkspace(request, options, wrappedCallback)
|
|
1592
|
+
?.then(([response, rawResponse, _]) => {
|
|
1593
|
+
this._log.info('createConversionWorkspace response %j', rawResponse);
|
|
1594
|
+
return [response, rawResponse, _];
|
|
1595
|
+
});
|
|
1275
1596
|
}
|
|
1276
1597
|
/**
|
|
1277
1598
|
* Check the status of the long running operation returned by `createConversionWorkspace()`.
|
|
@@ -1285,13 +1606,13 @@ class DataMigrationServiceClient {
|
|
|
1285
1606
|
* region_tag:datamigration_v1_generated_DataMigrationService_CreateConversionWorkspace_async
|
|
1286
1607
|
*/
|
|
1287
1608
|
async checkCreateConversionWorkspaceProgress(name) {
|
|
1609
|
+
this._log.info('createConversionWorkspace long-running');
|
|
1288
1610
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1289
1611
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1290
1612
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.createConversionWorkspace, this._gaxModule.createDefaultBackoffSettings());
|
|
1291
1613
|
return decodeOperation;
|
|
1292
1614
|
}
|
|
1293
1615
|
updateConversionWorkspace(request, optionsOrCallback, callback) {
|
|
1294
|
-
var _a;
|
|
1295
1616
|
request = request || {};
|
|
1296
1617
|
let options;
|
|
1297
1618
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1306,10 +1627,22 @@ class DataMigrationServiceClient {
|
|
|
1306
1627
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1307
1628
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1308
1629
|
this._gaxModule.routingHeader.fromParams({
|
|
1309
|
-
'conversion_workspace.name':
|
|
1630
|
+
'conversion_workspace.name': request.conversionWorkspace.name ?? '',
|
|
1310
1631
|
});
|
|
1311
1632
|
this.initialize();
|
|
1312
|
-
|
|
1633
|
+
const wrappedCallback = callback
|
|
1634
|
+
? (error, response, rawResponse, _) => {
|
|
1635
|
+
this._log.info('updateConversionWorkspace response %j', rawResponse);
|
|
1636
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1637
|
+
}
|
|
1638
|
+
: undefined;
|
|
1639
|
+
this._log.info('updateConversionWorkspace request %j', request);
|
|
1640
|
+
return this.innerApiCalls
|
|
1641
|
+
.updateConversionWorkspace(request, options, wrappedCallback)
|
|
1642
|
+
?.then(([response, rawResponse, _]) => {
|
|
1643
|
+
this._log.info('updateConversionWorkspace response %j', rawResponse);
|
|
1644
|
+
return [response, rawResponse, _];
|
|
1645
|
+
});
|
|
1313
1646
|
}
|
|
1314
1647
|
/**
|
|
1315
1648
|
* Check the status of the long running operation returned by `updateConversionWorkspace()`.
|
|
@@ -1323,13 +1656,13 @@ class DataMigrationServiceClient {
|
|
|
1323
1656
|
* region_tag:datamigration_v1_generated_DataMigrationService_UpdateConversionWorkspace_async
|
|
1324
1657
|
*/
|
|
1325
1658
|
async checkUpdateConversionWorkspaceProgress(name) {
|
|
1659
|
+
this._log.info('updateConversionWorkspace long-running');
|
|
1326
1660
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1327
1661
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1328
1662
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.updateConversionWorkspace, this._gaxModule.createDefaultBackoffSettings());
|
|
1329
1663
|
return decodeOperation;
|
|
1330
1664
|
}
|
|
1331
1665
|
deleteConversionWorkspace(request, optionsOrCallback, callback) {
|
|
1332
|
-
var _a;
|
|
1333
1666
|
request = request || {};
|
|
1334
1667
|
let options;
|
|
1335
1668
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1344,10 +1677,22 @@ class DataMigrationServiceClient {
|
|
|
1344
1677
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1345
1678
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1346
1679
|
this._gaxModule.routingHeader.fromParams({
|
|
1347
|
-
name:
|
|
1680
|
+
name: request.name ?? '',
|
|
1348
1681
|
});
|
|
1349
1682
|
this.initialize();
|
|
1350
|
-
|
|
1683
|
+
const wrappedCallback = callback
|
|
1684
|
+
? (error, response, rawResponse, _) => {
|
|
1685
|
+
this._log.info('deleteConversionWorkspace response %j', rawResponse);
|
|
1686
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1687
|
+
}
|
|
1688
|
+
: undefined;
|
|
1689
|
+
this._log.info('deleteConversionWorkspace request %j', request);
|
|
1690
|
+
return this.innerApiCalls
|
|
1691
|
+
.deleteConversionWorkspace(request, options, wrappedCallback)
|
|
1692
|
+
?.then(([response, rawResponse, _]) => {
|
|
1693
|
+
this._log.info('deleteConversionWorkspace response %j', rawResponse);
|
|
1694
|
+
return [response, rawResponse, _];
|
|
1695
|
+
});
|
|
1351
1696
|
}
|
|
1352
1697
|
/**
|
|
1353
1698
|
* Check the status of the long running operation returned by `deleteConversionWorkspace()`.
|
|
@@ -1361,13 +1706,13 @@ class DataMigrationServiceClient {
|
|
|
1361
1706
|
* region_tag:datamigration_v1_generated_DataMigrationService_DeleteConversionWorkspace_async
|
|
1362
1707
|
*/
|
|
1363
1708
|
async checkDeleteConversionWorkspaceProgress(name) {
|
|
1709
|
+
this._log.info('deleteConversionWorkspace long-running');
|
|
1364
1710
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1365
1711
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1366
1712
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.deleteConversionWorkspace, this._gaxModule.createDefaultBackoffSettings());
|
|
1367
1713
|
return decodeOperation;
|
|
1368
1714
|
}
|
|
1369
1715
|
seedConversionWorkspace(request, optionsOrCallback, callback) {
|
|
1370
|
-
var _a;
|
|
1371
1716
|
request = request || {};
|
|
1372
1717
|
let options;
|
|
1373
1718
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1382,10 +1727,22 @@ class DataMigrationServiceClient {
|
|
|
1382
1727
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1383
1728
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1384
1729
|
this._gaxModule.routingHeader.fromParams({
|
|
1385
|
-
name:
|
|
1730
|
+
name: request.name ?? '',
|
|
1386
1731
|
});
|
|
1387
1732
|
this.initialize();
|
|
1388
|
-
|
|
1733
|
+
const wrappedCallback = callback
|
|
1734
|
+
? (error, response, rawResponse, _) => {
|
|
1735
|
+
this._log.info('seedConversionWorkspace response %j', rawResponse);
|
|
1736
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1737
|
+
}
|
|
1738
|
+
: undefined;
|
|
1739
|
+
this._log.info('seedConversionWorkspace request %j', request);
|
|
1740
|
+
return this.innerApiCalls
|
|
1741
|
+
.seedConversionWorkspace(request, options, wrappedCallback)
|
|
1742
|
+
?.then(([response, rawResponse, _]) => {
|
|
1743
|
+
this._log.info('seedConversionWorkspace response %j', rawResponse);
|
|
1744
|
+
return [response, rawResponse, _];
|
|
1745
|
+
});
|
|
1389
1746
|
}
|
|
1390
1747
|
/**
|
|
1391
1748
|
* Check the status of the long running operation returned by `seedConversionWorkspace()`.
|
|
@@ -1399,13 +1756,13 @@ class DataMigrationServiceClient {
|
|
|
1399
1756
|
* region_tag:datamigration_v1_generated_DataMigrationService_SeedConversionWorkspace_async
|
|
1400
1757
|
*/
|
|
1401
1758
|
async checkSeedConversionWorkspaceProgress(name) {
|
|
1759
|
+
this._log.info('seedConversionWorkspace long-running');
|
|
1402
1760
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1403
1761
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1404
1762
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.seedConversionWorkspace, this._gaxModule.createDefaultBackoffSettings());
|
|
1405
1763
|
return decodeOperation;
|
|
1406
1764
|
}
|
|
1407
1765
|
importMappingRules(request, optionsOrCallback, callback) {
|
|
1408
|
-
var _a;
|
|
1409
1766
|
request = request || {};
|
|
1410
1767
|
let options;
|
|
1411
1768
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1420,10 +1777,22 @@ class DataMigrationServiceClient {
|
|
|
1420
1777
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1421
1778
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1422
1779
|
this._gaxModule.routingHeader.fromParams({
|
|
1423
|
-
parent:
|
|
1780
|
+
parent: request.parent ?? '',
|
|
1424
1781
|
});
|
|
1425
1782
|
this.initialize();
|
|
1426
|
-
|
|
1783
|
+
const wrappedCallback = callback
|
|
1784
|
+
? (error, response, rawResponse, _) => {
|
|
1785
|
+
this._log.info('importMappingRules response %j', rawResponse);
|
|
1786
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1787
|
+
}
|
|
1788
|
+
: undefined;
|
|
1789
|
+
this._log.info('importMappingRules request %j', request);
|
|
1790
|
+
return this.innerApiCalls
|
|
1791
|
+
.importMappingRules(request, options, wrappedCallback)
|
|
1792
|
+
?.then(([response, rawResponse, _]) => {
|
|
1793
|
+
this._log.info('importMappingRules response %j', rawResponse);
|
|
1794
|
+
return [response, rawResponse, _];
|
|
1795
|
+
});
|
|
1427
1796
|
}
|
|
1428
1797
|
/**
|
|
1429
1798
|
* Check the status of the long running operation returned by `importMappingRules()`.
|
|
@@ -1437,13 +1806,13 @@ class DataMigrationServiceClient {
|
|
|
1437
1806
|
* region_tag:datamigration_v1_generated_DataMigrationService_ImportMappingRules_async
|
|
1438
1807
|
*/
|
|
1439
1808
|
async checkImportMappingRulesProgress(name) {
|
|
1809
|
+
this._log.info('importMappingRules long-running');
|
|
1440
1810
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1441
1811
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1442
1812
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.importMappingRules, this._gaxModule.createDefaultBackoffSettings());
|
|
1443
1813
|
return decodeOperation;
|
|
1444
1814
|
}
|
|
1445
1815
|
convertConversionWorkspace(request, optionsOrCallback, callback) {
|
|
1446
|
-
var _a;
|
|
1447
1816
|
request = request || {};
|
|
1448
1817
|
let options;
|
|
1449
1818
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1458,10 +1827,22 @@ class DataMigrationServiceClient {
|
|
|
1458
1827
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1459
1828
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1460
1829
|
this._gaxModule.routingHeader.fromParams({
|
|
1461
|
-
name:
|
|
1830
|
+
name: request.name ?? '',
|
|
1462
1831
|
});
|
|
1463
1832
|
this.initialize();
|
|
1464
|
-
|
|
1833
|
+
const wrappedCallback = callback
|
|
1834
|
+
? (error, response, rawResponse, _) => {
|
|
1835
|
+
this._log.info('convertConversionWorkspace response %j', rawResponse);
|
|
1836
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1837
|
+
}
|
|
1838
|
+
: undefined;
|
|
1839
|
+
this._log.info('convertConversionWorkspace request %j', request);
|
|
1840
|
+
return this.innerApiCalls
|
|
1841
|
+
.convertConversionWorkspace(request, options, wrappedCallback)
|
|
1842
|
+
?.then(([response, rawResponse, _]) => {
|
|
1843
|
+
this._log.info('convertConversionWorkspace response %j', rawResponse);
|
|
1844
|
+
return [response, rawResponse, _];
|
|
1845
|
+
});
|
|
1465
1846
|
}
|
|
1466
1847
|
/**
|
|
1467
1848
|
* Check the status of the long running operation returned by `convertConversionWorkspace()`.
|
|
@@ -1475,13 +1856,13 @@ class DataMigrationServiceClient {
|
|
|
1475
1856
|
* region_tag:datamigration_v1_generated_DataMigrationService_ConvertConversionWorkspace_async
|
|
1476
1857
|
*/
|
|
1477
1858
|
async checkConvertConversionWorkspaceProgress(name) {
|
|
1859
|
+
this._log.info('convertConversionWorkspace long-running');
|
|
1478
1860
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1479
1861
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1480
1862
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.convertConversionWorkspace, this._gaxModule.createDefaultBackoffSettings());
|
|
1481
1863
|
return decodeOperation;
|
|
1482
1864
|
}
|
|
1483
1865
|
commitConversionWorkspace(request, optionsOrCallback, callback) {
|
|
1484
|
-
var _a;
|
|
1485
1866
|
request = request || {};
|
|
1486
1867
|
let options;
|
|
1487
1868
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1496,10 +1877,22 @@ class DataMigrationServiceClient {
|
|
|
1496
1877
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1497
1878
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1498
1879
|
this._gaxModule.routingHeader.fromParams({
|
|
1499
|
-
name:
|
|
1880
|
+
name: request.name ?? '',
|
|
1500
1881
|
});
|
|
1501
1882
|
this.initialize();
|
|
1502
|
-
|
|
1883
|
+
const wrappedCallback = callback
|
|
1884
|
+
? (error, response, rawResponse, _) => {
|
|
1885
|
+
this._log.info('commitConversionWorkspace response %j', rawResponse);
|
|
1886
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1887
|
+
}
|
|
1888
|
+
: undefined;
|
|
1889
|
+
this._log.info('commitConversionWorkspace request %j', request);
|
|
1890
|
+
return this.innerApiCalls
|
|
1891
|
+
.commitConversionWorkspace(request, options, wrappedCallback)
|
|
1892
|
+
?.then(([response, rawResponse, _]) => {
|
|
1893
|
+
this._log.info('commitConversionWorkspace response %j', rawResponse);
|
|
1894
|
+
return [response, rawResponse, _];
|
|
1895
|
+
});
|
|
1503
1896
|
}
|
|
1504
1897
|
/**
|
|
1505
1898
|
* Check the status of the long running operation returned by `commitConversionWorkspace()`.
|
|
@@ -1513,13 +1906,13 @@ class DataMigrationServiceClient {
|
|
|
1513
1906
|
* region_tag:datamigration_v1_generated_DataMigrationService_CommitConversionWorkspace_async
|
|
1514
1907
|
*/
|
|
1515
1908
|
async checkCommitConversionWorkspaceProgress(name) {
|
|
1909
|
+
this._log.info('commitConversionWorkspace long-running');
|
|
1516
1910
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1517
1911
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1518
1912
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.commitConversionWorkspace, this._gaxModule.createDefaultBackoffSettings());
|
|
1519
1913
|
return decodeOperation;
|
|
1520
1914
|
}
|
|
1521
1915
|
rollbackConversionWorkspace(request, optionsOrCallback, callback) {
|
|
1522
|
-
var _a;
|
|
1523
1916
|
request = request || {};
|
|
1524
1917
|
let options;
|
|
1525
1918
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1534,10 +1927,22 @@ class DataMigrationServiceClient {
|
|
|
1534
1927
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1535
1928
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1536
1929
|
this._gaxModule.routingHeader.fromParams({
|
|
1537
|
-
name:
|
|
1930
|
+
name: request.name ?? '',
|
|
1538
1931
|
});
|
|
1539
1932
|
this.initialize();
|
|
1540
|
-
|
|
1933
|
+
const wrappedCallback = callback
|
|
1934
|
+
? (error, response, rawResponse, _) => {
|
|
1935
|
+
this._log.info('rollbackConversionWorkspace response %j', rawResponse);
|
|
1936
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1937
|
+
}
|
|
1938
|
+
: undefined;
|
|
1939
|
+
this._log.info('rollbackConversionWorkspace request %j', request);
|
|
1940
|
+
return this.innerApiCalls
|
|
1941
|
+
.rollbackConversionWorkspace(request, options, wrappedCallback)
|
|
1942
|
+
?.then(([response, rawResponse, _]) => {
|
|
1943
|
+
this._log.info('rollbackConversionWorkspace response %j', rawResponse);
|
|
1944
|
+
return [response, rawResponse, _];
|
|
1945
|
+
});
|
|
1541
1946
|
}
|
|
1542
1947
|
/**
|
|
1543
1948
|
* Check the status of the long running operation returned by `rollbackConversionWorkspace()`.
|
|
@@ -1551,13 +1956,13 @@ class DataMigrationServiceClient {
|
|
|
1551
1956
|
* region_tag:datamigration_v1_generated_DataMigrationService_RollbackConversionWorkspace_async
|
|
1552
1957
|
*/
|
|
1553
1958
|
async checkRollbackConversionWorkspaceProgress(name) {
|
|
1959
|
+
this._log.info('rollbackConversionWorkspace long-running');
|
|
1554
1960
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1555
1961
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1556
1962
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.rollbackConversionWorkspace, this._gaxModule.createDefaultBackoffSettings());
|
|
1557
1963
|
return decodeOperation;
|
|
1558
1964
|
}
|
|
1559
1965
|
applyConversionWorkspace(request, optionsOrCallback, callback) {
|
|
1560
|
-
var _a;
|
|
1561
1966
|
request = request || {};
|
|
1562
1967
|
let options;
|
|
1563
1968
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1572,10 +1977,22 @@ class DataMigrationServiceClient {
|
|
|
1572
1977
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1573
1978
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1574
1979
|
this._gaxModule.routingHeader.fromParams({
|
|
1575
|
-
name:
|
|
1980
|
+
name: request.name ?? '',
|
|
1576
1981
|
});
|
|
1577
1982
|
this.initialize();
|
|
1578
|
-
|
|
1983
|
+
const wrappedCallback = callback
|
|
1984
|
+
? (error, response, rawResponse, _) => {
|
|
1985
|
+
this._log.info('applyConversionWorkspace response %j', rawResponse);
|
|
1986
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1987
|
+
}
|
|
1988
|
+
: undefined;
|
|
1989
|
+
this._log.info('applyConversionWorkspace request %j', request);
|
|
1990
|
+
return this.innerApiCalls
|
|
1991
|
+
.applyConversionWorkspace(request, options, wrappedCallback)
|
|
1992
|
+
?.then(([response, rawResponse, _]) => {
|
|
1993
|
+
this._log.info('applyConversionWorkspace response %j', rawResponse);
|
|
1994
|
+
return [response, rawResponse, _];
|
|
1995
|
+
});
|
|
1579
1996
|
}
|
|
1580
1997
|
/**
|
|
1581
1998
|
* Check the status of the long running operation returned by `applyConversionWorkspace()`.
|
|
@@ -1589,13 +2006,13 @@ class DataMigrationServiceClient {
|
|
|
1589
2006
|
* region_tag:datamigration_v1_generated_DataMigrationService_ApplyConversionWorkspace_async
|
|
1590
2007
|
*/
|
|
1591
2008
|
async checkApplyConversionWorkspaceProgress(name) {
|
|
2009
|
+
this._log.info('applyConversionWorkspace long-running');
|
|
1592
2010
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1593
2011
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1594
2012
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.applyConversionWorkspace, this._gaxModule.createDefaultBackoffSettings());
|
|
1595
2013
|
return decodeOperation;
|
|
1596
2014
|
}
|
|
1597
2015
|
listMigrationJobs(request, optionsOrCallback, callback) {
|
|
1598
|
-
var _a;
|
|
1599
2016
|
request = request || {};
|
|
1600
2017
|
let options;
|
|
1601
2018
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1610,13 +2027,25 @@ class DataMigrationServiceClient {
|
|
|
1610
2027
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1611
2028
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1612
2029
|
this._gaxModule.routingHeader.fromParams({
|
|
1613
|
-
parent:
|
|
2030
|
+
parent: request.parent ?? '',
|
|
1614
2031
|
});
|
|
1615
2032
|
this.initialize();
|
|
1616
|
-
|
|
2033
|
+
const wrappedCallback = callback
|
|
2034
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
2035
|
+
this._log.info('listMigrationJobs values %j', values);
|
|
2036
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
2037
|
+
}
|
|
2038
|
+
: undefined;
|
|
2039
|
+
this._log.info('listMigrationJobs request %j', request);
|
|
2040
|
+
return this.innerApiCalls
|
|
2041
|
+
.listMigrationJobs(request, options, wrappedCallback)
|
|
2042
|
+
?.then(([response, input, output]) => {
|
|
2043
|
+
this._log.info('listMigrationJobs values %j', response);
|
|
2044
|
+
return [response, input, output];
|
|
2045
|
+
});
|
|
1617
2046
|
}
|
|
1618
2047
|
/**
|
|
1619
|
-
* Equivalent to `
|
|
2048
|
+
* Equivalent to `listMigrationJobs`, but returns a NodeJS Stream object.
|
|
1620
2049
|
* @param {Object} request
|
|
1621
2050
|
* The request object that will be sent.
|
|
1622
2051
|
* @param {string} request.parent
|
|
@@ -1657,18 +2086,18 @@ class DataMigrationServiceClient {
|
|
|
1657
2086
|
* for more details and examples.
|
|
1658
2087
|
*/
|
|
1659
2088
|
listMigrationJobsStream(request, options) {
|
|
1660
|
-
var _a;
|
|
1661
2089
|
request = request || {};
|
|
1662
2090
|
options = options || {};
|
|
1663
2091
|
options.otherArgs = options.otherArgs || {};
|
|
1664
2092
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1665
2093
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1666
2094
|
this._gaxModule.routingHeader.fromParams({
|
|
1667
|
-
parent:
|
|
2095
|
+
parent: request.parent ?? '',
|
|
1668
2096
|
});
|
|
1669
2097
|
const defaultCallSettings = this._defaults['listMigrationJobs'];
|
|
1670
2098
|
const callSettings = defaultCallSettings.merge(options);
|
|
1671
2099
|
this.initialize();
|
|
2100
|
+
this._log.info('listMigrationJobs stream %j', request);
|
|
1672
2101
|
return this.descriptors.page.listMigrationJobs.createStream(this.innerApiCalls.listMigrationJobs, request, callSettings);
|
|
1673
2102
|
}
|
|
1674
2103
|
/**
|
|
@@ -1716,22 +2145,21 @@ class DataMigrationServiceClient {
|
|
|
1716
2145
|
* region_tag:datamigration_v1_generated_DataMigrationService_ListMigrationJobs_async
|
|
1717
2146
|
*/
|
|
1718
2147
|
listMigrationJobsAsync(request, options) {
|
|
1719
|
-
var _a;
|
|
1720
2148
|
request = request || {};
|
|
1721
2149
|
options = options || {};
|
|
1722
2150
|
options.otherArgs = options.otherArgs || {};
|
|
1723
2151
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1724
2152
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1725
2153
|
this._gaxModule.routingHeader.fromParams({
|
|
1726
|
-
parent:
|
|
2154
|
+
parent: request.parent ?? '',
|
|
1727
2155
|
});
|
|
1728
2156
|
const defaultCallSettings = this._defaults['listMigrationJobs'];
|
|
1729
2157
|
const callSettings = defaultCallSettings.merge(options);
|
|
1730
2158
|
this.initialize();
|
|
2159
|
+
this._log.info('listMigrationJobs iterate %j', request);
|
|
1731
2160
|
return this.descriptors.page.listMigrationJobs.asyncIterate(this.innerApiCalls['listMigrationJobs'], request, callSettings);
|
|
1732
2161
|
}
|
|
1733
2162
|
listConnectionProfiles(request, optionsOrCallback, callback) {
|
|
1734
|
-
var _a;
|
|
1735
2163
|
request = request || {};
|
|
1736
2164
|
let options;
|
|
1737
2165
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1746,13 +2174,25 @@ class DataMigrationServiceClient {
|
|
|
1746
2174
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1747
2175
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1748
2176
|
this._gaxModule.routingHeader.fromParams({
|
|
1749
|
-
parent:
|
|
2177
|
+
parent: request.parent ?? '',
|
|
1750
2178
|
});
|
|
1751
2179
|
this.initialize();
|
|
1752
|
-
|
|
2180
|
+
const wrappedCallback = callback
|
|
2181
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
2182
|
+
this._log.info('listConnectionProfiles values %j', values);
|
|
2183
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
2184
|
+
}
|
|
2185
|
+
: undefined;
|
|
2186
|
+
this._log.info('listConnectionProfiles request %j', request);
|
|
2187
|
+
return this.innerApiCalls
|
|
2188
|
+
.listConnectionProfiles(request, options, wrappedCallback)
|
|
2189
|
+
?.then(([response, input, output]) => {
|
|
2190
|
+
this._log.info('listConnectionProfiles values %j', response);
|
|
2191
|
+
return [response, input, output];
|
|
2192
|
+
});
|
|
1753
2193
|
}
|
|
1754
2194
|
/**
|
|
1755
|
-
* Equivalent to `
|
|
2195
|
+
* Equivalent to `listConnectionProfiles`, but returns a NodeJS Stream object.
|
|
1756
2196
|
* @param {Object} request
|
|
1757
2197
|
* The request object that will be sent.
|
|
1758
2198
|
* @param {string} request.parent
|
|
@@ -1792,18 +2232,18 @@ class DataMigrationServiceClient {
|
|
|
1792
2232
|
* for more details and examples.
|
|
1793
2233
|
*/
|
|
1794
2234
|
listConnectionProfilesStream(request, options) {
|
|
1795
|
-
var _a;
|
|
1796
2235
|
request = request || {};
|
|
1797
2236
|
options = options || {};
|
|
1798
2237
|
options.otherArgs = options.otherArgs || {};
|
|
1799
2238
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1800
2239
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1801
2240
|
this._gaxModule.routingHeader.fromParams({
|
|
1802
|
-
parent:
|
|
2241
|
+
parent: request.parent ?? '',
|
|
1803
2242
|
});
|
|
1804
2243
|
const defaultCallSettings = this._defaults['listConnectionProfiles'];
|
|
1805
2244
|
const callSettings = defaultCallSettings.merge(options);
|
|
1806
2245
|
this.initialize();
|
|
2246
|
+
this._log.info('listConnectionProfiles stream %j', request);
|
|
1807
2247
|
return this.descriptors.page.listConnectionProfiles.createStream(this.innerApiCalls.listConnectionProfiles, request, callSettings);
|
|
1808
2248
|
}
|
|
1809
2249
|
/**
|
|
@@ -1850,22 +2290,21 @@ class DataMigrationServiceClient {
|
|
|
1850
2290
|
* region_tag:datamigration_v1_generated_DataMigrationService_ListConnectionProfiles_async
|
|
1851
2291
|
*/
|
|
1852
2292
|
listConnectionProfilesAsync(request, options) {
|
|
1853
|
-
var _a;
|
|
1854
2293
|
request = request || {};
|
|
1855
2294
|
options = options || {};
|
|
1856
2295
|
options.otherArgs = options.otherArgs || {};
|
|
1857
2296
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1858
2297
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1859
2298
|
this._gaxModule.routingHeader.fromParams({
|
|
1860
|
-
parent:
|
|
2299
|
+
parent: request.parent ?? '',
|
|
1861
2300
|
});
|
|
1862
2301
|
const defaultCallSettings = this._defaults['listConnectionProfiles'];
|
|
1863
2302
|
const callSettings = defaultCallSettings.merge(options);
|
|
1864
2303
|
this.initialize();
|
|
2304
|
+
this._log.info('listConnectionProfiles iterate %j', request);
|
|
1865
2305
|
return this.descriptors.page.listConnectionProfiles.asyncIterate(this.innerApiCalls['listConnectionProfiles'], request, callSettings);
|
|
1866
2306
|
}
|
|
1867
2307
|
listPrivateConnections(request, optionsOrCallback, callback) {
|
|
1868
|
-
var _a;
|
|
1869
2308
|
request = request || {};
|
|
1870
2309
|
let options;
|
|
1871
2310
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1880,13 +2319,25 @@ class DataMigrationServiceClient {
|
|
|
1880
2319
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1881
2320
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1882
2321
|
this._gaxModule.routingHeader.fromParams({
|
|
1883
|
-
parent:
|
|
2322
|
+
parent: request.parent ?? '',
|
|
1884
2323
|
});
|
|
1885
2324
|
this.initialize();
|
|
1886
|
-
|
|
2325
|
+
const wrappedCallback = callback
|
|
2326
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
2327
|
+
this._log.info('listPrivateConnections values %j', values);
|
|
2328
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
2329
|
+
}
|
|
2330
|
+
: undefined;
|
|
2331
|
+
this._log.info('listPrivateConnections request %j', request);
|
|
2332
|
+
return this.innerApiCalls
|
|
2333
|
+
.listPrivateConnections(request, options, wrappedCallback)
|
|
2334
|
+
?.then(([response, input, output]) => {
|
|
2335
|
+
this._log.info('listPrivateConnections values %j', response);
|
|
2336
|
+
return [response, input, output];
|
|
2337
|
+
});
|
|
1887
2338
|
}
|
|
1888
2339
|
/**
|
|
1889
|
-
* Equivalent to `
|
|
2340
|
+
* Equivalent to `listPrivateConnections`, but returns a NodeJS Stream object.
|
|
1890
2341
|
* @param {Object} request
|
|
1891
2342
|
* The request object that will be sent.
|
|
1892
2343
|
* @param {string} request.parent
|
|
@@ -1923,18 +2374,18 @@ class DataMigrationServiceClient {
|
|
|
1923
2374
|
* for more details and examples.
|
|
1924
2375
|
*/
|
|
1925
2376
|
listPrivateConnectionsStream(request, options) {
|
|
1926
|
-
var _a;
|
|
1927
2377
|
request = request || {};
|
|
1928
2378
|
options = options || {};
|
|
1929
2379
|
options.otherArgs = options.otherArgs || {};
|
|
1930
2380
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1931
2381
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1932
2382
|
this._gaxModule.routingHeader.fromParams({
|
|
1933
|
-
parent:
|
|
2383
|
+
parent: request.parent ?? '',
|
|
1934
2384
|
});
|
|
1935
2385
|
const defaultCallSettings = this._defaults['listPrivateConnections'];
|
|
1936
2386
|
const callSettings = defaultCallSettings.merge(options);
|
|
1937
2387
|
this.initialize();
|
|
2388
|
+
this._log.info('listPrivateConnections stream %j', request);
|
|
1938
2389
|
return this.descriptors.page.listPrivateConnections.createStream(this.innerApiCalls.listPrivateConnections, request, callSettings);
|
|
1939
2390
|
}
|
|
1940
2391
|
/**
|
|
@@ -1978,22 +2429,21 @@ class DataMigrationServiceClient {
|
|
|
1978
2429
|
* region_tag:datamigration_v1_generated_DataMigrationService_ListPrivateConnections_async
|
|
1979
2430
|
*/
|
|
1980
2431
|
listPrivateConnectionsAsync(request, options) {
|
|
1981
|
-
var _a;
|
|
1982
2432
|
request = request || {};
|
|
1983
2433
|
options = options || {};
|
|
1984
2434
|
options.otherArgs = options.otherArgs || {};
|
|
1985
2435
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1986
2436
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1987
2437
|
this._gaxModule.routingHeader.fromParams({
|
|
1988
|
-
parent:
|
|
2438
|
+
parent: request.parent ?? '',
|
|
1989
2439
|
});
|
|
1990
2440
|
const defaultCallSettings = this._defaults['listPrivateConnections'];
|
|
1991
2441
|
const callSettings = defaultCallSettings.merge(options);
|
|
1992
2442
|
this.initialize();
|
|
2443
|
+
this._log.info('listPrivateConnections iterate %j', request);
|
|
1993
2444
|
return this.descriptors.page.listPrivateConnections.asyncIterate(this.innerApiCalls['listPrivateConnections'], request, callSettings);
|
|
1994
2445
|
}
|
|
1995
2446
|
listConversionWorkspaces(request, optionsOrCallback, callback) {
|
|
1996
|
-
var _a;
|
|
1997
2447
|
request = request || {};
|
|
1998
2448
|
let options;
|
|
1999
2449
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -2008,13 +2458,25 @@ class DataMigrationServiceClient {
|
|
|
2008
2458
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2009
2459
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2010
2460
|
this._gaxModule.routingHeader.fromParams({
|
|
2011
|
-
parent:
|
|
2461
|
+
parent: request.parent ?? '',
|
|
2012
2462
|
});
|
|
2013
2463
|
this.initialize();
|
|
2014
|
-
|
|
2464
|
+
const wrappedCallback = callback
|
|
2465
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
2466
|
+
this._log.info('listConversionWorkspaces values %j', values);
|
|
2467
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
2468
|
+
}
|
|
2469
|
+
: undefined;
|
|
2470
|
+
this._log.info('listConversionWorkspaces request %j', request);
|
|
2471
|
+
return this.innerApiCalls
|
|
2472
|
+
.listConversionWorkspaces(request, options, wrappedCallback)
|
|
2473
|
+
?.then(([response, input, output]) => {
|
|
2474
|
+
this._log.info('listConversionWorkspaces values %j', response);
|
|
2475
|
+
return [response, input, output];
|
|
2476
|
+
});
|
|
2015
2477
|
}
|
|
2016
2478
|
/**
|
|
2017
|
-
* Equivalent to `
|
|
2479
|
+
* Equivalent to `listConversionWorkspaces`, but returns a NodeJS Stream object.
|
|
2018
2480
|
* @param {Object} request
|
|
2019
2481
|
* The request object that will be sent.
|
|
2020
2482
|
* @param {string} request.parent
|
|
@@ -2050,18 +2512,18 @@ class DataMigrationServiceClient {
|
|
|
2050
2512
|
* for more details and examples.
|
|
2051
2513
|
*/
|
|
2052
2514
|
listConversionWorkspacesStream(request, options) {
|
|
2053
|
-
var _a;
|
|
2054
2515
|
request = request || {};
|
|
2055
2516
|
options = options || {};
|
|
2056
2517
|
options.otherArgs = options.otherArgs || {};
|
|
2057
2518
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2058
2519
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2059
2520
|
this._gaxModule.routingHeader.fromParams({
|
|
2060
|
-
parent:
|
|
2521
|
+
parent: request.parent ?? '',
|
|
2061
2522
|
});
|
|
2062
2523
|
const defaultCallSettings = this._defaults['listConversionWorkspaces'];
|
|
2063
2524
|
const callSettings = defaultCallSettings.merge(options);
|
|
2064
2525
|
this.initialize();
|
|
2526
|
+
this._log.info('listConversionWorkspaces stream %j', request);
|
|
2065
2527
|
return this.descriptors.page.listConversionWorkspaces.createStream(this.innerApiCalls.listConversionWorkspaces, request, callSettings);
|
|
2066
2528
|
}
|
|
2067
2529
|
/**
|
|
@@ -2104,22 +2566,21 @@ class DataMigrationServiceClient {
|
|
|
2104
2566
|
* region_tag:datamigration_v1_generated_DataMigrationService_ListConversionWorkspaces_async
|
|
2105
2567
|
*/
|
|
2106
2568
|
listConversionWorkspacesAsync(request, options) {
|
|
2107
|
-
var _a;
|
|
2108
2569
|
request = request || {};
|
|
2109
2570
|
options = options || {};
|
|
2110
2571
|
options.otherArgs = options.otherArgs || {};
|
|
2111
2572
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2112
2573
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2113
2574
|
this._gaxModule.routingHeader.fromParams({
|
|
2114
|
-
parent:
|
|
2575
|
+
parent: request.parent ?? '',
|
|
2115
2576
|
});
|
|
2116
2577
|
const defaultCallSettings = this._defaults['listConversionWorkspaces'];
|
|
2117
2578
|
const callSettings = defaultCallSettings.merge(options);
|
|
2118
2579
|
this.initialize();
|
|
2580
|
+
this._log.info('listConversionWorkspaces iterate %j', request);
|
|
2119
2581
|
return this.descriptors.page.listConversionWorkspaces.asyncIterate(this.innerApiCalls['listConversionWorkspaces'], request, callSettings);
|
|
2120
2582
|
}
|
|
2121
2583
|
listMappingRules(request, optionsOrCallback, callback) {
|
|
2122
|
-
var _a;
|
|
2123
2584
|
request = request || {};
|
|
2124
2585
|
let options;
|
|
2125
2586
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -2134,13 +2595,25 @@ class DataMigrationServiceClient {
|
|
|
2134
2595
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2135
2596
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2136
2597
|
this._gaxModule.routingHeader.fromParams({
|
|
2137
|
-
parent:
|
|
2598
|
+
parent: request.parent ?? '',
|
|
2138
2599
|
});
|
|
2139
2600
|
this.initialize();
|
|
2140
|
-
|
|
2601
|
+
const wrappedCallback = callback
|
|
2602
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
2603
|
+
this._log.info('listMappingRules values %j', values);
|
|
2604
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
2605
|
+
}
|
|
2606
|
+
: undefined;
|
|
2607
|
+
this._log.info('listMappingRules request %j', request);
|
|
2608
|
+
return this.innerApiCalls
|
|
2609
|
+
.listMappingRules(request, options, wrappedCallback)
|
|
2610
|
+
?.then(([response, input, output]) => {
|
|
2611
|
+
this._log.info('listMappingRules values %j', response);
|
|
2612
|
+
return [response, input, output];
|
|
2613
|
+
});
|
|
2141
2614
|
}
|
|
2142
2615
|
/**
|
|
2143
|
-
* Equivalent to `
|
|
2616
|
+
* Equivalent to `listMappingRules`, but returns a NodeJS Stream object.
|
|
2144
2617
|
* @param {Object} request
|
|
2145
2618
|
* The request object that will be sent.
|
|
2146
2619
|
* @param {string} request.parent
|
|
@@ -2168,18 +2641,18 @@ class DataMigrationServiceClient {
|
|
|
2168
2641
|
* for more details and examples.
|
|
2169
2642
|
*/
|
|
2170
2643
|
listMappingRulesStream(request, options) {
|
|
2171
|
-
var _a;
|
|
2172
2644
|
request = request || {};
|
|
2173
2645
|
options = options || {};
|
|
2174
2646
|
options.otherArgs = options.otherArgs || {};
|
|
2175
2647
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2176
2648
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2177
2649
|
this._gaxModule.routingHeader.fromParams({
|
|
2178
|
-
parent:
|
|
2650
|
+
parent: request.parent ?? '',
|
|
2179
2651
|
});
|
|
2180
2652
|
const defaultCallSettings = this._defaults['listMappingRules'];
|
|
2181
2653
|
const callSettings = defaultCallSettings.merge(options);
|
|
2182
2654
|
this.initialize();
|
|
2655
|
+
this._log.info('listMappingRules stream %j', request);
|
|
2183
2656
|
return this.descriptors.page.listMappingRules.createStream(this.innerApiCalls.listMappingRules, request, callSettings);
|
|
2184
2657
|
}
|
|
2185
2658
|
/**
|
|
@@ -2214,22 +2687,21 @@ class DataMigrationServiceClient {
|
|
|
2214
2687
|
* region_tag:datamigration_v1_generated_DataMigrationService_ListMappingRules_async
|
|
2215
2688
|
*/
|
|
2216
2689
|
listMappingRulesAsync(request, options) {
|
|
2217
|
-
var _a;
|
|
2218
2690
|
request = request || {};
|
|
2219
2691
|
options = options || {};
|
|
2220
2692
|
options.otherArgs = options.otherArgs || {};
|
|
2221
2693
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2222
2694
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2223
2695
|
this._gaxModule.routingHeader.fromParams({
|
|
2224
|
-
parent:
|
|
2696
|
+
parent: request.parent ?? '',
|
|
2225
2697
|
});
|
|
2226
2698
|
const defaultCallSettings = this._defaults['listMappingRules'];
|
|
2227
2699
|
const callSettings = defaultCallSettings.merge(options);
|
|
2228
2700
|
this.initialize();
|
|
2701
|
+
this._log.info('listMappingRules iterate %j', request);
|
|
2229
2702
|
return this.descriptors.page.listMappingRules.asyncIterate(this.innerApiCalls['listMappingRules'], request, callSettings);
|
|
2230
2703
|
}
|
|
2231
2704
|
describeDatabaseEntities(request, optionsOrCallback, callback) {
|
|
2232
|
-
var _a;
|
|
2233
2705
|
request = request || {};
|
|
2234
2706
|
let options;
|
|
2235
2707
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -2244,13 +2716,25 @@ class DataMigrationServiceClient {
|
|
|
2244
2716
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2245
2717
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2246
2718
|
this._gaxModule.routingHeader.fromParams({
|
|
2247
|
-
conversion_workspace:
|
|
2719
|
+
conversion_workspace: request.conversionWorkspace ?? '',
|
|
2248
2720
|
});
|
|
2249
2721
|
this.initialize();
|
|
2250
|
-
|
|
2722
|
+
const wrappedCallback = callback
|
|
2723
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
2724
|
+
this._log.info('describeDatabaseEntities values %j', values);
|
|
2725
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
2726
|
+
}
|
|
2727
|
+
: undefined;
|
|
2728
|
+
this._log.info('describeDatabaseEntities request %j', request);
|
|
2729
|
+
return this.innerApiCalls
|
|
2730
|
+
.describeDatabaseEntities(request, options, wrappedCallback)
|
|
2731
|
+
?.then(([response, input, output]) => {
|
|
2732
|
+
this._log.info('describeDatabaseEntities values %j', response);
|
|
2733
|
+
return [response, input, output];
|
|
2734
|
+
});
|
|
2251
2735
|
}
|
|
2252
2736
|
/**
|
|
2253
|
-
* Equivalent to `
|
|
2737
|
+
* Equivalent to `describeDatabaseEntities`, but returns a NodeJS Stream object.
|
|
2254
2738
|
* @param {Object} request
|
|
2255
2739
|
* The request object that will be sent.
|
|
2256
2740
|
* @param {string} request.conversionWorkspace
|
|
@@ -2292,18 +2776,18 @@ class DataMigrationServiceClient {
|
|
|
2292
2776
|
* for more details and examples.
|
|
2293
2777
|
*/
|
|
2294
2778
|
describeDatabaseEntitiesStream(request, options) {
|
|
2295
|
-
var _a;
|
|
2296
2779
|
request = request || {};
|
|
2297
2780
|
options = options || {};
|
|
2298
2781
|
options.otherArgs = options.otherArgs || {};
|
|
2299
2782
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2300
2783
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2301
2784
|
this._gaxModule.routingHeader.fromParams({
|
|
2302
|
-
conversion_workspace:
|
|
2785
|
+
conversion_workspace: request.conversionWorkspace ?? '',
|
|
2303
2786
|
});
|
|
2304
2787
|
const defaultCallSettings = this._defaults['describeDatabaseEntities'];
|
|
2305
2788
|
const callSettings = defaultCallSettings.merge(options);
|
|
2306
2789
|
this.initialize();
|
|
2790
|
+
this._log.info('describeDatabaseEntities stream %j', request);
|
|
2307
2791
|
return this.descriptors.page.describeDatabaseEntities.createStream(this.innerApiCalls.describeDatabaseEntities, request, callSettings);
|
|
2308
2792
|
}
|
|
2309
2793
|
/**
|
|
@@ -2352,22 +2836,21 @@ class DataMigrationServiceClient {
|
|
|
2352
2836
|
* region_tag:datamigration_v1_generated_DataMigrationService_DescribeDatabaseEntities_async
|
|
2353
2837
|
*/
|
|
2354
2838
|
describeDatabaseEntitiesAsync(request, options) {
|
|
2355
|
-
var _a;
|
|
2356
2839
|
request = request || {};
|
|
2357
2840
|
options = options || {};
|
|
2358
2841
|
options.otherArgs = options.otherArgs || {};
|
|
2359
2842
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2360
2843
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2361
2844
|
this._gaxModule.routingHeader.fromParams({
|
|
2362
|
-
conversion_workspace:
|
|
2845
|
+
conversion_workspace: request.conversionWorkspace ?? '',
|
|
2363
2846
|
});
|
|
2364
2847
|
const defaultCallSettings = this._defaults['describeDatabaseEntities'];
|
|
2365
2848
|
const callSettings = defaultCallSettings.merge(options);
|
|
2366
2849
|
this.initialize();
|
|
2850
|
+
this._log.info('describeDatabaseEntities iterate %j', request);
|
|
2367
2851
|
return this.descriptors.page.describeDatabaseEntities.asyncIterate(this.innerApiCalls['describeDatabaseEntities'], request, callSettings);
|
|
2368
2852
|
}
|
|
2369
2853
|
fetchStaticIps(request, optionsOrCallback, callback) {
|
|
2370
|
-
var _a;
|
|
2371
2854
|
request = request || {};
|
|
2372
2855
|
let options;
|
|
2373
2856
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -2382,13 +2865,25 @@ class DataMigrationServiceClient {
|
|
|
2382
2865
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2383
2866
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2384
2867
|
this._gaxModule.routingHeader.fromParams({
|
|
2385
|
-
name:
|
|
2868
|
+
name: request.name ?? '',
|
|
2386
2869
|
});
|
|
2387
2870
|
this.initialize();
|
|
2388
|
-
|
|
2871
|
+
const wrappedCallback = callback
|
|
2872
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
2873
|
+
this._log.info('fetchStaticIps values %j', values);
|
|
2874
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
2875
|
+
}
|
|
2876
|
+
: undefined;
|
|
2877
|
+
this._log.info('fetchStaticIps request %j', request);
|
|
2878
|
+
return this.innerApiCalls
|
|
2879
|
+
.fetchStaticIps(request, options, wrappedCallback)
|
|
2880
|
+
?.then(([response, input, output]) => {
|
|
2881
|
+
this._log.info('fetchStaticIps values %j', response);
|
|
2882
|
+
return [response, input, output];
|
|
2883
|
+
});
|
|
2389
2884
|
}
|
|
2390
2885
|
/**
|
|
2391
|
-
* Equivalent to `
|
|
2886
|
+
* Equivalent to `fetchStaticIps`, but returns a NodeJS Stream object.
|
|
2392
2887
|
* @param {Object} request
|
|
2393
2888
|
* The request object that will be sent.
|
|
2394
2889
|
* @param {string} request.name
|
|
@@ -2410,18 +2905,18 @@ class DataMigrationServiceClient {
|
|
|
2410
2905
|
* for more details and examples.
|
|
2411
2906
|
*/
|
|
2412
2907
|
fetchStaticIpsStream(request, options) {
|
|
2413
|
-
var _a;
|
|
2414
2908
|
request = request || {};
|
|
2415
2909
|
options = options || {};
|
|
2416
2910
|
options.otherArgs = options.otherArgs || {};
|
|
2417
2911
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2418
2912
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2419
2913
|
this._gaxModule.routingHeader.fromParams({
|
|
2420
|
-
name:
|
|
2914
|
+
name: request.name ?? '',
|
|
2421
2915
|
});
|
|
2422
2916
|
const defaultCallSettings = this._defaults['fetchStaticIps'];
|
|
2423
2917
|
const callSettings = defaultCallSettings.merge(options);
|
|
2424
2918
|
this.initialize();
|
|
2919
|
+
this._log.info('fetchStaticIps stream %j', request);
|
|
2425
2920
|
return this.descriptors.page.fetchStaticIps.createStream(this.innerApiCalls.fetchStaticIps, request, callSettings);
|
|
2426
2921
|
}
|
|
2427
2922
|
/**
|
|
@@ -2450,18 +2945,18 @@ class DataMigrationServiceClient {
|
|
|
2450
2945
|
* region_tag:datamigration_v1_generated_DataMigrationService_FetchStaticIps_async
|
|
2451
2946
|
*/
|
|
2452
2947
|
fetchStaticIpsAsync(request, options) {
|
|
2453
|
-
var _a;
|
|
2454
2948
|
request = request || {};
|
|
2455
2949
|
options = options || {};
|
|
2456
2950
|
options.otherArgs = options.otherArgs || {};
|
|
2457
2951
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2458
2952
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2459
2953
|
this._gaxModule.routingHeader.fromParams({
|
|
2460
|
-
name:
|
|
2954
|
+
name: request.name ?? '',
|
|
2461
2955
|
});
|
|
2462
2956
|
const defaultCallSettings = this._defaults['fetchStaticIps'];
|
|
2463
2957
|
const callSettings = defaultCallSettings.merge(options);
|
|
2464
2958
|
this.initialize();
|
|
2959
|
+
this._log.info('fetchStaticIps iterate %j', request);
|
|
2465
2960
|
return this.descriptors.page.fetchStaticIps.asyncIterate(this.innerApiCalls['fetchStaticIps'], request, callSettings);
|
|
2466
2961
|
}
|
|
2467
2962
|
/**
|
|
@@ -2642,7 +3137,22 @@ class DataMigrationServiceClient {
|
|
|
2642
3137
|
* // doThingsWith(response)
|
|
2643
3138
|
* ```
|
|
2644
3139
|
*/
|
|
2645
|
-
getOperation(request,
|
|
3140
|
+
getOperation(request, optionsOrCallback, callback) {
|
|
3141
|
+
let options;
|
|
3142
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
3143
|
+
callback = optionsOrCallback;
|
|
3144
|
+
options = {};
|
|
3145
|
+
}
|
|
3146
|
+
else {
|
|
3147
|
+
options = optionsOrCallback;
|
|
3148
|
+
}
|
|
3149
|
+
options = options || {};
|
|
3150
|
+
options.otherArgs = options.otherArgs || {};
|
|
3151
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3152
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
3153
|
+
this._gaxModule.routingHeader.fromParams({
|
|
3154
|
+
name: request.name ?? '',
|
|
3155
|
+
});
|
|
2646
3156
|
return this.operationsClient.getOperation(request, options, callback);
|
|
2647
3157
|
}
|
|
2648
3158
|
/**
|
|
@@ -2676,6 +3186,13 @@ class DataMigrationServiceClient {
|
|
|
2676
3186
|
* ```
|
|
2677
3187
|
*/
|
|
2678
3188
|
listOperationsAsync(request, options) {
|
|
3189
|
+
options = options || {};
|
|
3190
|
+
options.otherArgs = options.otherArgs || {};
|
|
3191
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3192
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
3193
|
+
this._gaxModule.routingHeader.fromParams({
|
|
3194
|
+
name: request.name ?? '',
|
|
3195
|
+
});
|
|
2679
3196
|
return this.operationsClient.listOperationsAsync(request, options);
|
|
2680
3197
|
}
|
|
2681
3198
|
/**
|
|
@@ -2709,7 +3226,22 @@ class DataMigrationServiceClient {
|
|
|
2709
3226
|
* await client.cancelOperation({name: ''});
|
|
2710
3227
|
* ```
|
|
2711
3228
|
*/
|
|
2712
|
-
cancelOperation(request,
|
|
3229
|
+
cancelOperation(request, optionsOrCallback, callback) {
|
|
3230
|
+
let options;
|
|
3231
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
3232
|
+
callback = optionsOrCallback;
|
|
3233
|
+
options = {};
|
|
3234
|
+
}
|
|
3235
|
+
else {
|
|
3236
|
+
options = optionsOrCallback;
|
|
3237
|
+
}
|
|
3238
|
+
options = options || {};
|
|
3239
|
+
options.otherArgs = options.otherArgs || {};
|
|
3240
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3241
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
3242
|
+
this._gaxModule.routingHeader.fromParams({
|
|
3243
|
+
name: request.name ?? '',
|
|
3244
|
+
});
|
|
2713
3245
|
return this.operationsClient.cancelOperation(request, options, callback);
|
|
2714
3246
|
}
|
|
2715
3247
|
/**
|
|
@@ -2737,7 +3269,22 @@ class DataMigrationServiceClient {
|
|
|
2737
3269
|
* await client.deleteOperation({name: ''});
|
|
2738
3270
|
* ```
|
|
2739
3271
|
*/
|
|
2740
|
-
deleteOperation(request,
|
|
3272
|
+
deleteOperation(request, optionsOrCallback, callback) {
|
|
3273
|
+
let options;
|
|
3274
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
3275
|
+
callback = optionsOrCallback;
|
|
3276
|
+
options = {};
|
|
3277
|
+
}
|
|
3278
|
+
else {
|
|
3279
|
+
options = optionsOrCallback;
|
|
3280
|
+
}
|
|
3281
|
+
options = options || {};
|
|
3282
|
+
options.otherArgs = options.otherArgs || {};
|
|
3283
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3284
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
3285
|
+
this._gaxModule.routingHeader.fromParams({
|
|
3286
|
+
name: request.name ?? '',
|
|
3287
|
+
});
|
|
2741
3288
|
return this.operationsClient.deleteOperation(request, options, callback);
|
|
2742
3289
|
}
|
|
2743
3290
|
// --------------------
|
|
@@ -3050,6 +3597,7 @@ class DataMigrationServiceClient {
|
|
|
3050
3597
|
close() {
|
|
3051
3598
|
if (this.dataMigrationServiceStub && !this._terminated) {
|
|
3052
3599
|
return this.dataMigrationServiceStub.then(stub => {
|
|
3600
|
+
this._log.info('ending gRPC channel');
|
|
3053
3601
|
this._terminated = true;
|
|
3054
3602
|
stub.close();
|
|
3055
3603
|
this.iamClient.close();
|