@google-cloud/dms 3.4.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -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 +13 -13
- package/build/src/v1/data_migration_service_client.js +893 -235
- 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,26 @@ 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
|
-
this.initialize()
|
|
511
|
-
|
|
530
|
+
this.initialize().catch(err => {
|
|
531
|
+
throw err;
|
|
532
|
+
});
|
|
533
|
+
this._log.info('getMigrationJob request %j', request);
|
|
534
|
+
const wrappedCallback = callback
|
|
535
|
+
? (error, response, options, rawResponse) => {
|
|
536
|
+
this._log.info('getMigrationJob response %j', response);
|
|
537
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
538
|
+
}
|
|
539
|
+
: undefined;
|
|
540
|
+
return this.innerApiCalls
|
|
541
|
+
.getMigrationJob(request, options, wrappedCallback)
|
|
542
|
+
?.then(([response, options, rawResponse]) => {
|
|
543
|
+
this._log.info('getMigrationJob response %j', response);
|
|
544
|
+
return [response, options, rawResponse];
|
|
545
|
+
});
|
|
512
546
|
}
|
|
513
547
|
generateSshScript(request, optionsOrCallback, callback) {
|
|
514
|
-
var _a;
|
|
515
548
|
request = request || {};
|
|
516
549
|
let options;
|
|
517
550
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -526,13 +559,26 @@ class DataMigrationServiceClient {
|
|
|
526
559
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
527
560
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
528
561
|
this._gaxModule.routingHeader.fromParams({
|
|
529
|
-
migration_job:
|
|
562
|
+
migration_job: request.migrationJob ?? '',
|
|
530
563
|
});
|
|
531
|
-
this.initialize()
|
|
532
|
-
|
|
564
|
+
this.initialize().catch(err => {
|
|
565
|
+
throw err;
|
|
566
|
+
});
|
|
567
|
+
this._log.info('generateSshScript request %j', request);
|
|
568
|
+
const wrappedCallback = callback
|
|
569
|
+
? (error, response, options, rawResponse) => {
|
|
570
|
+
this._log.info('generateSshScript response %j', response);
|
|
571
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
572
|
+
}
|
|
573
|
+
: undefined;
|
|
574
|
+
return this.innerApiCalls
|
|
575
|
+
.generateSshScript(request, options, wrappedCallback)
|
|
576
|
+
?.then(([response, options, rawResponse]) => {
|
|
577
|
+
this._log.info('generateSshScript response %j', response);
|
|
578
|
+
return [response, options, rawResponse];
|
|
579
|
+
});
|
|
533
580
|
}
|
|
534
581
|
generateTcpProxyScript(request, optionsOrCallback, callback) {
|
|
535
|
-
var _a;
|
|
536
582
|
request = request || {};
|
|
537
583
|
let options;
|
|
538
584
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -547,13 +593,26 @@ class DataMigrationServiceClient {
|
|
|
547
593
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
548
594
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
549
595
|
this._gaxModule.routingHeader.fromParams({
|
|
550
|
-
migration_job:
|
|
596
|
+
migration_job: request.migrationJob ?? '',
|
|
551
597
|
});
|
|
552
|
-
this.initialize()
|
|
553
|
-
|
|
598
|
+
this.initialize().catch(err => {
|
|
599
|
+
throw err;
|
|
600
|
+
});
|
|
601
|
+
this._log.info('generateTcpProxyScript request %j', request);
|
|
602
|
+
const wrappedCallback = callback
|
|
603
|
+
? (error, response, options, rawResponse) => {
|
|
604
|
+
this._log.info('generateTcpProxyScript response %j', response);
|
|
605
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
606
|
+
}
|
|
607
|
+
: undefined;
|
|
608
|
+
return this.innerApiCalls
|
|
609
|
+
.generateTcpProxyScript(request, options, wrappedCallback)
|
|
610
|
+
?.then(([response, options, rawResponse]) => {
|
|
611
|
+
this._log.info('generateTcpProxyScript response %j', response);
|
|
612
|
+
return [response, options, rawResponse];
|
|
613
|
+
});
|
|
554
614
|
}
|
|
555
615
|
getConnectionProfile(request, optionsOrCallback, callback) {
|
|
556
|
-
var _a;
|
|
557
616
|
request = request || {};
|
|
558
617
|
let options;
|
|
559
618
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -568,13 +627,26 @@ class DataMigrationServiceClient {
|
|
|
568
627
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
569
628
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
570
629
|
this._gaxModule.routingHeader.fromParams({
|
|
571
|
-
name:
|
|
630
|
+
name: request.name ?? '',
|
|
572
631
|
});
|
|
573
|
-
this.initialize()
|
|
574
|
-
|
|
632
|
+
this.initialize().catch(err => {
|
|
633
|
+
throw err;
|
|
634
|
+
});
|
|
635
|
+
this._log.info('getConnectionProfile request %j', request);
|
|
636
|
+
const wrappedCallback = callback
|
|
637
|
+
? (error, response, options, rawResponse) => {
|
|
638
|
+
this._log.info('getConnectionProfile response %j', response);
|
|
639
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
640
|
+
}
|
|
641
|
+
: undefined;
|
|
642
|
+
return this.innerApiCalls
|
|
643
|
+
.getConnectionProfile(request, options, wrappedCallback)
|
|
644
|
+
?.then(([response, options, rawResponse]) => {
|
|
645
|
+
this._log.info('getConnectionProfile response %j', response);
|
|
646
|
+
return [response, options, rawResponse];
|
|
647
|
+
});
|
|
575
648
|
}
|
|
576
649
|
getPrivateConnection(request, optionsOrCallback, callback) {
|
|
577
|
-
var _a;
|
|
578
650
|
request = request || {};
|
|
579
651
|
let options;
|
|
580
652
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -589,13 +661,26 @@ class DataMigrationServiceClient {
|
|
|
589
661
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
590
662
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
591
663
|
this._gaxModule.routingHeader.fromParams({
|
|
592
|
-
name:
|
|
664
|
+
name: request.name ?? '',
|
|
593
665
|
});
|
|
594
|
-
this.initialize()
|
|
595
|
-
|
|
666
|
+
this.initialize().catch(err => {
|
|
667
|
+
throw err;
|
|
668
|
+
});
|
|
669
|
+
this._log.info('getPrivateConnection request %j', request);
|
|
670
|
+
const wrappedCallback = callback
|
|
671
|
+
? (error, response, options, rawResponse) => {
|
|
672
|
+
this._log.info('getPrivateConnection response %j', response);
|
|
673
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
674
|
+
}
|
|
675
|
+
: undefined;
|
|
676
|
+
return this.innerApiCalls
|
|
677
|
+
.getPrivateConnection(request, options, wrappedCallback)
|
|
678
|
+
?.then(([response, options, rawResponse]) => {
|
|
679
|
+
this._log.info('getPrivateConnection response %j', response);
|
|
680
|
+
return [response, options, rawResponse];
|
|
681
|
+
});
|
|
596
682
|
}
|
|
597
683
|
getConversionWorkspace(request, optionsOrCallback, callback) {
|
|
598
|
-
var _a;
|
|
599
684
|
request = request || {};
|
|
600
685
|
let options;
|
|
601
686
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -610,13 +695,26 @@ class DataMigrationServiceClient {
|
|
|
610
695
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
611
696
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
612
697
|
this._gaxModule.routingHeader.fromParams({
|
|
613
|
-
name:
|
|
698
|
+
name: request.name ?? '',
|
|
614
699
|
});
|
|
615
|
-
this.initialize()
|
|
616
|
-
|
|
700
|
+
this.initialize().catch(err => {
|
|
701
|
+
throw err;
|
|
702
|
+
});
|
|
703
|
+
this._log.info('getConversionWorkspace request %j', request);
|
|
704
|
+
const wrappedCallback = callback
|
|
705
|
+
? (error, response, options, rawResponse) => {
|
|
706
|
+
this._log.info('getConversionWorkspace response %j', response);
|
|
707
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
708
|
+
}
|
|
709
|
+
: undefined;
|
|
710
|
+
return this.innerApiCalls
|
|
711
|
+
.getConversionWorkspace(request, options, wrappedCallback)
|
|
712
|
+
?.then(([response, options, rawResponse]) => {
|
|
713
|
+
this._log.info('getConversionWorkspace response %j', response);
|
|
714
|
+
return [response, options, rawResponse];
|
|
715
|
+
});
|
|
617
716
|
}
|
|
618
717
|
createMappingRule(request, optionsOrCallback, callback) {
|
|
619
|
-
var _a;
|
|
620
718
|
request = request || {};
|
|
621
719
|
let options;
|
|
622
720
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -631,13 +729,26 @@ class DataMigrationServiceClient {
|
|
|
631
729
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
632
730
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
633
731
|
this._gaxModule.routingHeader.fromParams({
|
|
634
|
-
parent:
|
|
732
|
+
parent: request.parent ?? '',
|
|
635
733
|
});
|
|
636
|
-
this.initialize()
|
|
637
|
-
|
|
734
|
+
this.initialize().catch(err => {
|
|
735
|
+
throw err;
|
|
736
|
+
});
|
|
737
|
+
this._log.info('createMappingRule request %j', request);
|
|
738
|
+
const wrappedCallback = callback
|
|
739
|
+
? (error, response, options, rawResponse) => {
|
|
740
|
+
this._log.info('createMappingRule response %j', response);
|
|
741
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
742
|
+
}
|
|
743
|
+
: undefined;
|
|
744
|
+
return this.innerApiCalls
|
|
745
|
+
.createMappingRule(request, options, wrappedCallback)
|
|
746
|
+
?.then(([response, options, rawResponse]) => {
|
|
747
|
+
this._log.info('createMappingRule response %j', response);
|
|
748
|
+
return [response, options, rawResponse];
|
|
749
|
+
});
|
|
638
750
|
}
|
|
639
751
|
deleteMappingRule(request, optionsOrCallback, callback) {
|
|
640
|
-
var _a;
|
|
641
752
|
request = request || {};
|
|
642
753
|
let options;
|
|
643
754
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -652,13 +763,26 @@ class DataMigrationServiceClient {
|
|
|
652
763
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
653
764
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
654
765
|
this._gaxModule.routingHeader.fromParams({
|
|
655
|
-
name:
|
|
766
|
+
name: request.name ?? '',
|
|
656
767
|
});
|
|
657
|
-
this.initialize()
|
|
658
|
-
|
|
768
|
+
this.initialize().catch(err => {
|
|
769
|
+
throw err;
|
|
770
|
+
});
|
|
771
|
+
this._log.info('deleteMappingRule request %j', request);
|
|
772
|
+
const wrappedCallback = callback
|
|
773
|
+
? (error, response, options, rawResponse) => {
|
|
774
|
+
this._log.info('deleteMappingRule response %j', response);
|
|
775
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
776
|
+
}
|
|
777
|
+
: undefined;
|
|
778
|
+
return this.innerApiCalls
|
|
779
|
+
.deleteMappingRule(request, options, wrappedCallback)
|
|
780
|
+
?.then(([response, options, rawResponse]) => {
|
|
781
|
+
this._log.info('deleteMappingRule response %j', response);
|
|
782
|
+
return [response, options, rawResponse];
|
|
783
|
+
});
|
|
659
784
|
}
|
|
660
785
|
getMappingRule(request, optionsOrCallback, callback) {
|
|
661
|
-
var _a;
|
|
662
786
|
request = request || {};
|
|
663
787
|
let options;
|
|
664
788
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -673,13 +797,26 @@ class DataMigrationServiceClient {
|
|
|
673
797
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
674
798
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
675
799
|
this._gaxModule.routingHeader.fromParams({
|
|
676
|
-
name:
|
|
800
|
+
name: request.name ?? '',
|
|
677
801
|
});
|
|
678
|
-
this.initialize()
|
|
679
|
-
|
|
802
|
+
this.initialize().catch(err => {
|
|
803
|
+
throw err;
|
|
804
|
+
});
|
|
805
|
+
this._log.info('getMappingRule request %j', request);
|
|
806
|
+
const wrappedCallback = callback
|
|
807
|
+
? (error, response, options, rawResponse) => {
|
|
808
|
+
this._log.info('getMappingRule response %j', response);
|
|
809
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
810
|
+
}
|
|
811
|
+
: undefined;
|
|
812
|
+
return this.innerApiCalls
|
|
813
|
+
.getMappingRule(request, options, wrappedCallback)
|
|
814
|
+
?.then(([response, options, rawResponse]) => {
|
|
815
|
+
this._log.info('getMappingRule response %j', response);
|
|
816
|
+
return [response, options, rawResponse];
|
|
817
|
+
});
|
|
680
818
|
}
|
|
681
819
|
searchBackgroundJobs(request, optionsOrCallback, callback) {
|
|
682
|
-
var _a;
|
|
683
820
|
request = request || {};
|
|
684
821
|
let options;
|
|
685
822
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -694,13 +831,26 @@ class DataMigrationServiceClient {
|
|
|
694
831
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
695
832
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
696
833
|
this._gaxModule.routingHeader.fromParams({
|
|
697
|
-
conversion_workspace:
|
|
834
|
+
conversion_workspace: request.conversionWorkspace ?? '',
|
|
698
835
|
});
|
|
699
|
-
this.initialize()
|
|
700
|
-
|
|
836
|
+
this.initialize().catch(err => {
|
|
837
|
+
throw err;
|
|
838
|
+
});
|
|
839
|
+
this._log.info('searchBackgroundJobs request %j', request);
|
|
840
|
+
const wrappedCallback = callback
|
|
841
|
+
? (error, response, options, rawResponse) => {
|
|
842
|
+
this._log.info('searchBackgroundJobs response %j', response);
|
|
843
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
844
|
+
}
|
|
845
|
+
: undefined;
|
|
846
|
+
return this.innerApiCalls
|
|
847
|
+
.searchBackgroundJobs(request, options, wrappedCallback)
|
|
848
|
+
?.then(([response, options, rawResponse]) => {
|
|
849
|
+
this._log.info('searchBackgroundJobs response %j', response);
|
|
850
|
+
return [response, options, rawResponse];
|
|
851
|
+
});
|
|
701
852
|
}
|
|
702
853
|
describeConversionWorkspaceRevisions(request, optionsOrCallback, callback) {
|
|
703
|
-
var _a;
|
|
704
854
|
request = request || {};
|
|
705
855
|
let options;
|
|
706
856
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -715,13 +865,26 @@ class DataMigrationServiceClient {
|
|
|
715
865
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
716
866
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
717
867
|
this._gaxModule.routingHeader.fromParams({
|
|
718
|
-
conversion_workspace:
|
|
868
|
+
conversion_workspace: request.conversionWorkspace ?? '',
|
|
719
869
|
});
|
|
720
|
-
this.initialize()
|
|
721
|
-
|
|
870
|
+
this.initialize().catch(err => {
|
|
871
|
+
throw err;
|
|
872
|
+
});
|
|
873
|
+
this._log.info('describeConversionWorkspaceRevisions request %j', request);
|
|
874
|
+
const wrappedCallback = callback
|
|
875
|
+
? (error, response, options, rawResponse) => {
|
|
876
|
+
this._log.info('describeConversionWorkspaceRevisions response %j', response);
|
|
877
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
878
|
+
}
|
|
879
|
+
: undefined;
|
|
880
|
+
return this.innerApiCalls
|
|
881
|
+
.describeConversionWorkspaceRevisions(request, options, wrappedCallback)
|
|
882
|
+
?.then(([response, options, rawResponse]) => {
|
|
883
|
+
this._log.info('describeConversionWorkspaceRevisions response %j', response);
|
|
884
|
+
return [response, options, rawResponse];
|
|
885
|
+
});
|
|
722
886
|
}
|
|
723
887
|
createMigrationJob(request, optionsOrCallback, callback) {
|
|
724
|
-
var _a;
|
|
725
888
|
request = request || {};
|
|
726
889
|
let options;
|
|
727
890
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -736,10 +899,24 @@ class DataMigrationServiceClient {
|
|
|
736
899
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
737
900
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
738
901
|
this._gaxModule.routingHeader.fromParams({
|
|
739
|
-
parent:
|
|
902
|
+
parent: request.parent ?? '',
|
|
740
903
|
});
|
|
741
|
-
this.initialize()
|
|
742
|
-
|
|
904
|
+
this.initialize().catch(err => {
|
|
905
|
+
throw err;
|
|
906
|
+
});
|
|
907
|
+
const wrappedCallback = callback
|
|
908
|
+
? (error, response, rawResponse, _) => {
|
|
909
|
+
this._log.info('createMigrationJob response %j', rawResponse);
|
|
910
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
911
|
+
}
|
|
912
|
+
: undefined;
|
|
913
|
+
this._log.info('createMigrationJob request %j', request);
|
|
914
|
+
return this.innerApiCalls
|
|
915
|
+
.createMigrationJob(request, options, wrappedCallback)
|
|
916
|
+
?.then(([response, rawResponse, _]) => {
|
|
917
|
+
this._log.info('createMigrationJob response %j', rawResponse);
|
|
918
|
+
return [response, rawResponse, _];
|
|
919
|
+
});
|
|
743
920
|
}
|
|
744
921
|
/**
|
|
745
922
|
* Check the status of the long running operation returned by `createMigrationJob()`.
|
|
@@ -753,13 +930,13 @@ class DataMigrationServiceClient {
|
|
|
753
930
|
* region_tag:datamigration_v1_generated_DataMigrationService_CreateMigrationJob_async
|
|
754
931
|
*/
|
|
755
932
|
async checkCreateMigrationJobProgress(name) {
|
|
933
|
+
this._log.info('createMigrationJob long-running');
|
|
756
934
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
757
935
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
758
936
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.createMigrationJob, this._gaxModule.createDefaultBackoffSettings());
|
|
759
937
|
return decodeOperation;
|
|
760
938
|
}
|
|
761
939
|
updateMigrationJob(request, optionsOrCallback, callback) {
|
|
762
|
-
var _a;
|
|
763
940
|
request = request || {};
|
|
764
941
|
let options;
|
|
765
942
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -774,10 +951,24 @@ class DataMigrationServiceClient {
|
|
|
774
951
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
775
952
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
776
953
|
this._gaxModule.routingHeader.fromParams({
|
|
777
|
-
'migration_job.name':
|
|
954
|
+
'migration_job.name': request.migrationJob.name ?? '',
|
|
778
955
|
});
|
|
779
|
-
this.initialize()
|
|
780
|
-
|
|
956
|
+
this.initialize().catch(err => {
|
|
957
|
+
throw err;
|
|
958
|
+
});
|
|
959
|
+
const wrappedCallback = callback
|
|
960
|
+
? (error, response, rawResponse, _) => {
|
|
961
|
+
this._log.info('updateMigrationJob response %j', rawResponse);
|
|
962
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
963
|
+
}
|
|
964
|
+
: undefined;
|
|
965
|
+
this._log.info('updateMigrationJob request %j', request);
|
|
966
|
+
return this.innerApiCalls
|
|
967
|
+
.updateMigrationJob(request, options, wrappedCallback)
|
|
968
|
+
?.then(([response, rawResponse, _]) => {
|
|
969
|
+
this._log.info('updateMigrationJob response %j', rawResponse);
|
|
970
|
+
return [response, rawResponse, _];
|
|
971
|
+
});
|
|
781
972
|
}
|
|
782
973
|
/**
|
|
783
974
|
* Check the status of the long running operation returned by `updateMigrationJob()`.
|
|
@@ -791,13 +982,13 @@ class DataMigrationServiceClient {
|
|
|
791
982
|
* region_tag:datamigration_v1_generated_DataMigrationService_UpdateMigrationJob_async
|
|
792
983
|
*/
|
|
793
984
|
async checkUpdateMigrationJobProgress(name) {
|
|
985
|
+
this._log.info('updateMigrationJob long-running');
|
|
794
986
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
795
987
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
796
988
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.updateMigrationJob, this._gaxModule.createDefaultBackoffSettings());
|
|
797
989
|
return decodeOperation;
|
|
798
990
|
}
|
|
799
991
|
deleteMigrationJob(request, optionsOrCallback, callback) {
|
|
800
|
-
var _a;
|
|
801
992
|
request = request || {};
|
|
802
993
|
let options;
|
|
803
994
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -812,10 +1003,24 @@ class DataMigrationServiceClient {
|
|
|
812
1003
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
813
1004
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
814
1005
|
this._gaxModule.routingHeader.fromParams({
|
|
815
|
-
name:
|
|
1006
|
+
name: request.name ?? '',
|
|
816
1007
|
});
|
|
817
|
-
this.initialize()
|
|
818
|
-
|
|
1008
|
+
this.initialize().catch(err => {
|
|
1009
|
+
throw err;
|
|
1010
|
+
});
|
|
1011
|
+
const wrappedCallback = callback
|
|
1012
|
+
? (error, response, rawResponse, _) => {
|
|
1013
|
+
this._log.info('deleteMigrationJob response %j', rawResponse);
|
|
1014
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1015
|
+
}
|
|
1016
|
+
: undefined;
|
|
1017
|
+
this._log.info('deleteMigrationJob request %j', request);
|
|
1018
|
+
return this.innerApiCalls
|
|
1019
|
+
.deleteMigrationJob(request, options, wrappedCallback)
|
|
1020
|
+
?.then(([response, rawResponse, _]) => {
|
|
1021
|
+
this._log.info('deleteMigrationJob response %j', rawResponse);
|
|
1022
|
+
return [response, rawResponse, _];
|
|
1023
|
+
});
|
|
819
1024
|
}
|
|
820
1025
|
/**
|
|
821
1026
|
* Check the status of the long running operation returned by `deleteMigrationJob()`.
|
|
@@ -829,13 +1034,13 @@ class DataMigrationServiceClient {
|
|
|
829
1034
|
* region_tag:datamigration_v1_generated_DataMigrationService_DeleteMigrationJob_async
|
|
830
1035
|
*/
|
|
831
1036
|
async checkDeleteMigrationJobProgress(name) {
|
|
1037
|
+
this._log.info('deleteMigrationJob long-running');
|
|
832
1038
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
833
1039
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
834
1040
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.deleteMigrationJob, this._gaxModule.createDefaultBackoffSettings());
|
|
835
1041
|
return decodeOperation;
|
|
836
1042
|
}
|
|
837
1043
|
startMigrationJob(request, optionsOrCallback, callback) {
|
|
838
|
-
var _a;
|
|
839
1044
|
request = request || {};
|
|
840
1045
|
let options;
|
|
841
1046
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -850,10 +1055,24 @@ class DataMigrationServiceClient {
|
|
|
850
1055
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
851
1056
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
852
1057
|
this._gaxModule.routingHeader.fromParams({
|
|
853
|
-
name:
|
|
1058
|
+
name: request.name ?? '',
|
|
854
1059
|
});
|
|
855
|
-
this.initialize()
|
|
856
|
-
|
|
1060
|
+
this.initialize().catch(err => {
|
|
1061
|
+
throw err;
|
|
1062
|
+
});
|
|
1063
|
+
const wrappedCallback = callback
|
|
1064
|
+
? (error, response, rawResponse, _) => {
|
|
1065
|
+
this._log.info('startMigrationJob response %j', rawResponse);
|
|
1066
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1067
|
+
}
|
|
1068
|
+
: undefined;
|
|
1069
|
+
this._log.info('startMigrationJob request %j', request);
|
|
1070
|
+
return this.innerApiCalls
|
|
1071
|
+
.startMigrationJob(request, options, wrappedCallback)
|
|
1072
|
+
?.then(([response, rawResponse, _]) => {
|
|
1073
|
+
this._log.info('startMigrationJob response %j', rawResponse);
|
|
1074
|
+
return [response, rawResponse, _];
|
|
1075
|
+
});
|
|
857
1076
|
}
|
|
858
1077
|
/**
|
|
859
1078
|
* Check the status of the long running operation returned by `startMigrationJob()`.
|
|
@@ -867,13 +1086,13 @@ class DataMigrationServiceClient {
|
|
|
867
1086
|
* region_tag:datamigration_v1_generated_DataMigrationService_StartMigrationJob_async
|
|
868
1087
|
*/
|
|
869
1088
|
async checkStartMigrationJobProgress(name) {
|
|
1089
|
+
this._log.info('startMigrationJob long-running');
|
|
870
1090
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
871
1091
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
872
1092
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.startMigrationJob, this._gaxModule.createDefaultBackoffSettings());
|
|
873
1093
|
return decodeOperation;
|
|
874
1094
|
}
|
|
875
1095
|
stopMigrationJob(request, optionsOrCallback, callback) {
|
|
876
|
-
var _a;
|
|
877
1096
|
request = request || {};
|
|
878
1097
|
let options;
|
|
879
1098
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -888,10 +1107,24 @@ class DataMigrationServiceClient {
|
|
|
888
1107
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
889
1108
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
890
1109
|
this._gaxModule.routingHeader.fromParams({
|
|
891
|
-
name:
|
|
1110
|
+
name: request.name ?? '',
|
|
892
1111
|
});
|
|
893
|
-
this.initialize()
|
|
894
|
-
|
|
1112
|
+
this.initialize().catch(err => {
|
|
1113
|
+
throw err;
|
|
1114
|
+
});
|
|
1115
|
+
const wrappedCallback = callback
|
|
1116
|
+
? (error, response, rawResponse, _) => {
|
|
1117
|
+
this._log.info('stopMigrationJob response %j', rawResponse);
|
|
1118
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1119
|
+
}
|
|
1120
|
+
: undefined;
|
|
1121
|
+
this._log.info('stopMigrationJob request %j', request);
|
|
1122
|
+
return this.innerApiCalls
|
|
1123
|
+
.stopMigrationJob(request, options, wrappedCallback)
|
|
1124
|
+
?.then(([response, rawResponse, _]) => {
|
|
1125
|
+
this._log.info('stopMigrationJob response %j', rawResponse);
|
|
1126
|
+
return [response, rawResponse, _];
|
|
1127
|
+
});
|
|
895
1128
|
}
|
|
896
1129
|
/**
|
|
897
1130
|
* Check the status of the long running operation returned by `stopMigrationJob()`.
|
|
@@ -905,13 +1138,13 @@ class DataMigrationServiceClient {
|
|
|
905
1138
|
* region_tag:datamigration_v1_generated_DataMigrationService_StopMigrationJob_async
|
|
906
1139
|
*/
|
|
907
1140
|
async checkStopMigrationJobProgress(name) {
|
|
1141
|
+
this._log.info('stopMigrationJob long-running');
|
|
908
1142
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
909
1143
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
910
1144
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.stopMigrationJob, this._gaxModule.createDefaultBackoffSettings());
|
|
911
1145
|
return decodeOperation;
|
|
912
1146
|
}
|
|
913
1147
|
resumeMigrationJob(request, optionsOrCallback, callback) {
|
|
914
|
-
var _a;
|
|
915
1148
|
request = request || {};
|
|
916
1149
|
let options;
|
|
917
1150
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -926,10 +1159,24 @@ class DataMigrationServiceClient {
|
|
|
926
1159
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
927
1160
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
928
1161
|
this._gaxModule.routingHeader.fromParams({
|
|
929
|
-
name:
|
|
1162
|
+
name: request.name ?? '',
|
|
930
1163
|
});
|
|
931
|
-
this.initialize()
|
|
932
|
-
|
|
1164
|
+
this.initialize().catch(err => {
|
|
1165
|
+
throw err;
|
|
1166
|
+
});
|
|
1167
|
+
const wrappedCallback = callback
|
|
1168
|
+
? (error, response, rawResponse, _) => {
|
|
1169
|
+
this._log.info('resumeMigrationJob response %j', rawResponse);
|
|
1170
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1171
|
+
}
|
|
1172
|
+
: undefined;
|
|
1173
|
+
this._log.info('resumeMigrationJob request %j', request);
|
|
1174
|
+
return this.innerApiCalls
|
|
1175
|
+
.resumeMigrationJob(request, options, wrappedCallback)
|
|
1176
|
+
?.then(([response, rawResponse, _]) => {
|
|
1177
|
+
this._log.info('resumeMigrationJob response %j', rawResponse);
|
|
1178
|
+
return [response, rawResponse, _];
|
|
1179
|
+
});
|
|
933
1180
|
}
|
|
934
1181
|
/**
|
|
935
1182
|
* Check the status of the long running operation returned by `resumeMigrationJob()`.
|
|
@@ -943,13 +1190,13 @@ class DataMigrationServiceClient {
|
|
|
943
1190
|
* region_tag:datamigration_v1_generated_DataMigrationService_ResumeMigrationJob_async
|
|
944
1191
|
*/
|
|
945
1192
|
async checkResumeMigrationJobProgress(name) {
|
|
1193
|
+
this._log.info('resumeMigrationJob long-running');
|
|
946
1194
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
947
1195
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
948
1196
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.resumeMigrationJob, this._gaxModule.createDefaultBackoffSettings());
|
|
949
1197
|
return decodeOperation;
|
|
950
1198
|
}
|
|
951
1199
|
promoteMigrationJob(request, optionsOrCallback, callback) {
|
|
952
|
-
var _a;
|
|
953
1200
|
request = request || {};
|
|
954
1201
|
let options;
|
|
955
1202
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -964,10 +1211,24 @@ class DataMigrationServiceClient {
|
|
|
964
1211
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
965
1212
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
966
1213
|
this._gaxModule.routingHeader.fromParams({
|
|
967
|
-
name:
|
|
1214
|
+
name: request.name ?? '',
|
|
968
1215
|
});
|
|
969
|
-
this.initialize()
|
|
970
|
-
|
|
1216
|
+
this.initialize().catch(err => {
|
|
1217
|
+
throw err;
|
|
1218
|
+
});
|
|
1219
|
+
const wrappedCallback = callback
|
|
1220
|
+
? (error, response, rawResponse, _) => {
|
|
1221
|
+
this._log.info('promoteMigrationJob response %j', rawResponse);
|
|
1222
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1223
|
+
}
|
|
1224
|
+
: undefined;
|
|
1225
|
+
this._log.info('promoteMigrationJob request %j', request);
|
|
1226
|
+
return this.innerApiCalls
|
|
1227
|
+
.promoteMigrationJob(request, options, wrappedCallback)
|
|
1228
|
+
?.then(([response, rawResponse, _]) => {
|
|
1229
|
+
this._log.info('promoteMigrationJob response %j', rawResponse);
|
|
1230
|
+
return [response, rawResponse, _];
|
|
1231
|
+
});
|
|
971
1232
|
}
|
|
972
1233
|
/**
|
|
973
1234
|
* Check the status of the long running operation returned by `promoteMigrationJob()`.
|
|
@@ -981,13 +1242,13 @@ class DataMigrationServiceClient {
|
|
|
981
1242
|
* region_tag:datamigration_v1_generated_DataMigrationService_PromoteMigrationJob_async
|
|
982
1243
|
*/
|
|
983
1244
|
async checkPromoteMigrationJobProgress(name) {
|
|
1245
|
+
this._log.info('promoteMigrationJob long-running');
|
|
984
1246
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
985
1247
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
986
1248
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.promoteMigrationJob, this._gaxModule.createDefaultBackoffSettings());
|
|
987
1249
|
return decodeOperation;
|
|
988
1250
|
}
|
|
989
1251
|
verifyMigrationJob(request, optionsOrCallback, callback) {
|
|
990
|
-
var _a;
|
|
991
1252
|
request = request || {};
|
|
992
1253
|
let options;
|
|
993
1254
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1002,10 +1263,24 @@ class DataMigrationServiceClient {
|
|
|
1002
1263
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1003
1264
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1004
1265
|
this._gaxModule.routingHeader.fromParams({
|
|
1005
|
-
name:
|
|
1266
|
+
name: request.name ?? '',
|
|
1006
1267
|
});
|
|
1007
|
-
this.initialize()
|
|
1008
|
-
|
|
1268
|
+
this.initialize().catch(err => {
|
|
1269
|
+
throw err;
|
|
1270
|
+
});
|
|
1271
|
+
const wrappedCallback = callback
|
|
1272
|
+
? (error, response, rawResponse, _) => {
|
|
1273
|
+
this._log.info('verifyMigrationJob response %j', rawResponse);
|
|
1274
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1275
|
+
}
|
|
1276
|
+
: undefined;
|
|
1277
|
+
this._log.info('verifyMigrationJob request %j', request);
|
|
1278
|
+
return this.innerApiCalls
|
|
1279
|
+
.verifyMigrationJob(request, options, wrappedCallback)
|
|
1280
|
+
?.then(([response, rawResponse, _]) => {
|
|
1281
|
+
this._log.info('verifyMigrationJob response %j', rawResponse);
|
|
1282
|
+
return [response, rawResponse, _];
|
|
1283
|
+
});
|
|
1009
1284
|
}
|
|
1010
1285
|
/**
|
|
1011
1286
|
* Check the status of the long running operation returned by `verifyMigrationJob()`.
|
|
@@ -1019,13 +1294,13 @@ class DataMigrationServiceClient {
|
|
|
1019
1294
|
* region_tag:datamigration_v1_generated_DataMigrationService_VerifyMigrationJob_async
|
|
1020
1295
|
*/
|
|
1021
1296
|
async checkVerifyMigrationJobProgress(name) {
|
|
1297
|
+
this._log.info('verifyMigrationJob long-running');
|
|
1022
1298
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1023
1299
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1024
1300
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.verifyMigrationJob, this._gaxModule.createDefaultBackoffSettings());
|
|
1025
1301
|
return decodeOperation;
|
|
1026
1302
|
}
|
|
1027
1303
|
restartMigrationJob(request, optionsOrCallback, callback) {
|
|
1028
|
-
var _a;
|
|
1029
1304
|
request = request || {};
|
|
1030
1305
|
let options;
|
|
1031
1306
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1040,10 +1315,24 @@ class DataMigrationServiceClient {
|
|
|
1040
1315
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1041
1316
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1042
1317
|
this._gaxModule.routingHeader.fromParams({
|
|
1043
|
-
name:
|
|
1318
|
+
name: request.name ?? '',
|
|
1044
1319
|
});
|
|
1045
|
-
this.initialize()
|
|
1046
|
-
|
|
1320
|
+
this.initialize().catch(err => {
|
|
1321
|
+
throw err;
|
|
1322
|
+
});
|
|
1323
|
+
const wrappedCallback = callback
|
|
1324
|
+
? (error, response, rawResponse, _) => {
|
|
1325
|
+
this._log.info('restartMigrationJob response %j', rawResponse);
|
|
1326
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1327
|
+
}
|
|
1328
|
+
: undefined;
|
|
1329
|
+
this._log.info('restartMigrationJob request %j', request);
|
|
1330
|
+
return this.innerApiCalls
|
|
1331
|
+
.restartMigrationJob(request, options, wrappedCallback)
|
|
1332
|
+
?.then(([response, rawResponse, _]) => {
|
|
1333
|
+
this._log.info('restartMigrationJob response %j', rawResponse);
|
|
1334
|
+
return [response, rawResponse, _];
|
|
1335
|
+
});
|
|
1047
1336
|
}
|
|
1048
1337
|
/**
|
|
1049
1338
|
* Check the status of the long running operation returned by `restartMigrationJob()`.
|
|
@@ -1057,13 +1346,13 @@ class DataMigrationServiceClient {
|
|
|
1057
1346
|
* region_tag:datamigration_v1_generated_DataMigrationService_RestartMigrationJob_async
|
|
1058
1347
|
*/
|
|
1059
1348
|
async checkRestartMigrationJobProgress(name) {
|
|
1349
|
+
this._log.info('restartMigrationJob long-running');
|
|
1060
1350
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1061
1351
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1062
1352
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.restartMigrationJob, this._gaxModule.createDefaultBackoffSettings());
|
|
1063
1353
|
return decodeOperation;
|
|
1064
1354
|
}
|
|
1065
1355
|
createConnectionProfile(request, optionsOrCallback, callback) {
|
|
1066
|
-
var _a;
|
|
1067
1356
|
request = request || {};
|
|
1068
1357
|
let options;
|
|
1069
1358
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1078,10 +1367,24 @@ class DataMigrationServiceClient {
|
|
|
1078
1367
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1079
1368
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1080
1369
|
this._gaxModule.routingHeader.fromParams({
|
|
1081
|
-
parent:
|
|
1370
|
+
parent: request.parent ?? '',
|
|
1082
1371
|
});
|
|
1083
|
-
this.initialize()
|
|
1084
|
-
|
|
1372
|
+
this.initialize().catch(err => {
|
|
1373
|
+
throw err;
|
|
1374
|
+
});
|
|
1375
|
+
const wrappedCallback = callback
|
|
1376
|
+
? (error, response, rawResponse, _) => {
|
|
1377
|
+
this._log.info('createConnectionProfile response %j', rawResponse);
|
|
1378
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1379
|
+
}
|
|
1380
|
+
: undefined;
|
|
1381
|
+
this._log.info('createConnectionProfile request %j', request);
|
|
1382
|
+
return this.innerApiCalls
|
|
1383
|
+
.createConnectionProfile(request, options, wrappedCallback)
|
|
1384
|
+
?.then(([response, rawResponse, _]) => {
|
|
1385
|
+
this._log.info('createConnectionProfile response %j', rawResponse);
|
|
1386
|
+
return [response, rawResponse, _];
|
|
1387
|
+
});
|
|
1085
1388
|
}
|
|
1086
1389
|
/**
|
|
1087
1390
|
* Check the status of the long running operation returned by `createConnectionProfile()`.
|
|
@@ -1095,13 +1398,13 @@ class DataMigrationServiceClient {
|
|
|
1095
1398
|
* region_tag:datamigration_v1_generated_DataMigrationService_CreateConnectionProfile_async
|
|
1096
1399
|
*/
|
|
1097
1400
|
async checkCreateConnectionProfileProgress(name) {
|
|
1401
|
+
this._log.info('createConnectionProfile long-running');
|
|
1098
1402
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1099
1403
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1100
1404
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.createConnectionProfile, this._gaxModule.createDefaultBackoffSettings());
|
|
1101
1405
|
return decodeOperation;
|
|
1102
1406
|
}
|
|
1103
1407
|
updateConnectionProfile(request, optionsOrCallback, callback) {
|
|
1104
|
-
var _a;
|
|
1105
1408
|
request = request || {};
|
|
1106
1409
|
let options;
|
|
1107
1410
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1116,10 +1419,24 @@ class DataMigrationServiceClient {
|
|
|
1116
1419
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1117
1420
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1118
1421
|
this._gaxModule.routingHeader.fromParams({
|
|
1119
|
-
'connection_profile.name':
|
|
1422
|
+
'connection_profile.name': request.connectionProfile.name ?? '',
|
|
1120
1423
|
});
|
|
1121
|
-
this.initialize()
|
|
1122
|
-
|
|
1424
|
+
this.initialize().catch(err => {
|
|
1425
|
+
throw err;
|
|
1426
|
+
});
|
|
1427
|
+
const wrappedCallback = callback
|
|
1428
|
+
? (error, response, rawResponse, _) => {
|
|
1429
|
+
this._log.info('updateConnectionProfile response %j', rawResponse);
|
|
1430
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1431
|
+
}
|
|
1432
|
+
: undefined;
|
|
1433
|
+
this._log.info('updateConnectionProfile request %j', request);
|
|
1434
|
+
return this.innerApiCalls
|
|
1435
|
+
.updateConnectionProfile(request, options, wrappedCallback)
|
|
1436
|
+
?.then(([response, rawResponse, _]) => {
|
|
1437
|
+
this._log.info('updateConnectionProfile response %j', rawResponse);
|
|
1438
|
+
return [response, rawResponse, _];
|
|
1439
|
+
});
|
|
1123
1440
|
}
|
|
1124
1441
|
/**
|
|
1125
1442
|
* Check the status of the long running operation returned by `updateConnectionProfile()`.
|
|
@@ -1133,13 +1450,13 @@ class DataMigrationServiceClient {
|
|
|
1133
1450
|
* region_tag:datamigration_v1_generated_DataMigrationService_UpdateConnectionProfile_async
|
|
1134
1451
|
*/
|
|
1135
1452
|
async checkUpdateConnectionProfileProgress(name) {
|
|
1453
|
+
this._log.info('updateConnectionProfile long-running');
|
|
1136
1454
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1137
1455
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1138
1456
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.updateConnectionProfile, this._gaxModule.createDefaultBackoffSettings());
|
|
1139
1457
|
return decodeOperation;
|
|
1140
1458
|
}
|
|
1141
1459
|
deleteConnectionProfile(request, optionsOrCallback, callback) {
|
|
1142
|
-
var _a;
|
|
1143
1460
|
request = request || {};
|
|
1144
1461
|
let options;
|
|
1145
1462
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1154,10 +1471,24 @@ class DataMigrationServiceClient {
|
|
|
1154
1471
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1155
1472
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1156
1473
|
this._gaxModule.routingHeader.fromParams({
|
|
1157
|
-
name:
|
|
1474
|
+
name: request.name ?? '',
|
|
1158
1475
|
});
|
|
1159
|
-
this.initialize()
|
|
1160
|
-
|
|
1476
|
+
this.initialize().catch(err => {
|
|
1477
|
+
throw err;
|
|
1478
|
+
});
|
|
1479
|
+
const wrappedCallback = callback
|
|
1480
|
+
? (error, response, rawResponse, _) => {
|
|
1481
|
+
this._log.info('deleteConnectionProfile response %j', rawResponse);
|
|
1482
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1483
|
+
}
|
|
1484
|
+
: undefined;
|
|
1485
|
+
this._log.info('deleteConnectionProfile request %j', request);
|
|
1486
|
+
return this.innerApiCalls
|
|
1487
|
+
.deleteConnectionProfile(request, options, wrappedCallback)
|
|
1488
|
+
?.then(([response, rawResponse, _]) => {
|
|
1489
|
+
this._log.info('deleteConnectionProfile response %j', rawResponse);
|
|
1490
|
+
return [response, rawResponse, _];
|
|
1491
|
+
});
|
|
1161
1492
|
}
|
|
1162
1493
|
/**
|
|
1163
1494
|
* Check the status of the long running operation returned by `deleteConnectionProfile()`.
|
|
@@ -1171,13 +1502,13 @@ class DataMigrationServiceClient {
|
|
|
1171
1502
|
* region_tag:datamigration_v1_generated_DataMigrationService_DeleteConnectionProfile_async
|
|
1172
1503
|
*/
|
|
1173
1504
|
async checkDeleteConnectionProfileProgress(name) {
|
|
1505
|
+
this._log.info('deleteConnectionProfile long-running');
|
|
1174
1506
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1175
1507
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1176
1508
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.deleteConnectionProfile, this._gaxModule.createDefaultBackoffSettings());
|
|
1177
1509
|
return decodeOperation;
|
|
1178
1510
|
}
|
|
1179
1511
|
createPrivateConnection(request, optionsOrCallback, callback) {
|
|
1180
|
-
var _a;
|
|
1181
1512
|
request = request || {};
|
|
1182
1513
|
let options;
|
|
1183
1514
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1192,10 +1523,24 @@ class DataMigrationServiceClient {
|
|
|
1192
1523
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1193
1524
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1194
1525
|
this._gaxModule.routingHeader.fromParams({
|
|
1195
|
-
parent:
|
|
1526
|
+
parent: request.parent ?? '',
|
|
1196
1527
|
});
|
|
1197
|
-
this.initialize()
|
|
1198
|
-
|
|
1528
|
+
this.initialize().catch(err => {
|
|
1529
|
+
throw err;
|
|
1530
|
+
});
|
|
1531
|
+
const wrappedCallback = callback
|
|
1532
|
+
? (error, response, rawResponse, _) => {
|
|
1533
|
+
this._log.info('createPrivateConnection response %j', rawResponse);
|
|
1534
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1535
|
+
}
|
|
1536
|
+
: undefined;
|
|
1537
|
+
this._log.info('createPrivateConnection request %j', request);
|
|
1538
|
+
return this.innerApiCalls
|
|
1539
|
+
.createPrivateConnection(request, options, wrappedCallback)
|
|
1540
|
+
?.then(([response, rawResponse, _]) => {
|
|
1541
|
+
this._log.info('createPrivateConnection response %j', rawResponse);
|
|
1542
|
+
return [response, rawResponse, _];
|
|
1543
|
+
});
|
|
1199
1544
|
}
|
|
1200
1545
|
/**
|
|
1201
1546
|
* Check the status of the long running operation returned by `createPrivateConnection()`.
|
|
@@ -1209,13 +1554,13 @@ class DataMigrationServiceClient {
|
|
|
1209
1554
|
* region_tag:datamigration_v1_generated_DataMigrationService_CreatePrivateConnection_async
|
|
1210
1555
|
*/
|
|
1211
1556
|
async checkCreatePrivateConnectionProgress(name) {
|
|
1557
|
+
this._log.info('createPrivateConnection long-running');
|
|
1212
1558
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1213
1559
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1214
1560
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.createPrivateConnection, this._gaxModule.createDefaultBackoffSettings());
|
|
1215
1561
|
return decodeOperation;
|
|
1216
1562
|
}
|
|
1217
1563
|
deletePrivateConnection(request, optionsOrCallback, callback) {
|
|
1218
|
-
var _a;
|
|
1219
1564
|
request = request || {};
|
|
1220
1565
|
let options;
|
|
1221
1566
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1230,10 +1575,24 @@ class DataMigrationServiceClient {
|
|
|
1230
1575
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1231
1576
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1232
1577
|
this._gaxModule.routingHeader.fromParams({
|
|
1233
|
-
name:
|
|
1578
|
+
name: request.name ?? '',
|
|
1234
1579
|
});
|
|
1235
|
-
this.initialize()
|
|
1236
|
-
|
|
1580
|
+
this.initialize().catch(err => {
|
|
1581
|
+
throw err;
|
|
1582
|
+
});
|
|
1583
|
+
const wrappedCallback = callback
|
|
1584
|
+
? (error, response, rawResponse, _) => {
|
|
1585
|
+
this._log.info('deletePrivateConnection response %j', rawResponse);
|
|
1586
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1587
|
+
}
|
|
1588
|
+
: undefined;
|
|
1589
|
+
this._log.info('deletePrivateConnection request %j', request);
|
|
1590
|
+
return this.innerApiCalls
|
|
1591
|
+
.deletePrivateConnection(request, options, wrappedCallback)
|
|
1592
|
+
?.then(([response, rawResponse, _]) => {
|
|
1593
|
+
this._log.info('deletePrivateConnection response %j', rawResponse);
|
|
1594
|
+
return [response, rawResponse, _];
|
|
1595
|
+
});
|
|
1237
1596
|
}
|
|
1238
1597
|
/**
|
|
1239
1598
|
* Check the status of the long running operation returned by `deletePrivateConnection()`.
|
|
@@ -1247,13 +1606,13 @@ class DataMigrationServiceClient {
|
|
|
1247
1606
|
* region_tag:datamigration_v1_generated_DataMigrationService_DeletePrivateConnection_async
|
|
1248
1607
|
*/
|
|
1249
1608
|
async checkDeletePrivateConnectionProgress(name) {
|
|
1609
|
+
this._log.info('deletePrivateConnection long-running');
|
|
1250
1610
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1251
1611
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1252
1612
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.deletePrivateConnection, this._gaxModule.createDefaultBackoffSettings());
|
|
1253
1613
|
return decodeOperation;
|
|
1254
1614
|
}
|
|
1255
1615
|
createConversionWorkspace(request, optionsOrCallback, callback) {
|
|
1256
|
-
var _a;
|
|
1257
1616
|
request = request || {};
|
|
1258
1617
|
let options;
|
|
1259
1618
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1268,10 +1627,24 @@ class DataMigrationServiceClient {
|
|
|
1268
1627
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1269
1628
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1270
1629
|
this._gaxModule.routingHeader.fromParams({
|
|
1271
|
-
parent:
|
|
1630
|
+
parent: request.parent ?? '',
|
|
1272
1631
|
});
|
|
1273
|
-
this.initialize()
|
|
1274
|
-
|
|
1632
|
+
this.initialize().catch(err => {
|
|
1633
|
+
throw err;
|
|
1634
|
+
});
|
|
1635
|
+
const wrappedCallback = callback
|
|
1636
|
+
? (error, response, rawResponse, _) => {
|
|
1637
|
+
this._log.info('createConversionWorkspace response %j', rawResponse);
|
|
1638
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1639
|
+
}
|
|
1640
|
+
: undefined;
|
|
1641
|
+
this._log.info('createConversionWorkspace request %j', request);
|
|
1642
|
+
return this.innerApiCalls
|
|
1643
|
+
.createConversionWorkspace(request, options, wrappedCallback)
|
|
1644
|
+
?.then(([response, rawResponse, _]) => {
|
|
1645
|
+
this._log.info('createConversionWorkspace response %j', rawResponse);
|
|
1646
|
+
return [response, rawResponse, _];
|
|
1647
|
+
});
|
|
1275
1648
|
}
|
|
1276
1649
|
/**
|
|
1277
1650
|
* Check the status of the long running operation returned by `createConversionWorkspace()`.
|
|
@@ -1285,13 +1658,13 @@ class DataMigrationServiceClient {
|
|
|
1285
1658
|
* region_tag:datamigration_v1_generated_DataMigrationService_CreateConversionWorkspace_async
|
|
1286
1659
|
*/
|
|
1287
1660
|
async checkCreateConversionWorkspaceProgress(name) {
|
|
1661
|
+
this._log.info('createConversionWorkspace long-running');
|
|
1288
1662
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1289
1663
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1290
1664
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.createConversionWorkspace, this._gaxModule.createDefaultBackoffSettings());
|
|
1291
1665
|
return decodeOperation;
|
|
1292
1666
|
}
|
|
1293
1667
|
updateConversionWorkspace(request, optionsOrCallback, callback) {
|
|
1294
|
-
var _a;
|
|
1295
1668
|
request = request || {};
|
|
1296
1669
|
let options;
|
|
1297
1670
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1306,10 +1679,24 @@ class DataMigrationServiceClient {
|
|
|
1306
1679
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1307
1680
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1308
1681
|
this._gaxModule.routingHeader.fromParams({
|
|
1309
|
-
'conversion_workspace.name':
|
|
1682
|
+
'conversion_workspace.name': request.conversionWorkspace.name ?? '',
|
|
1310
1683
|
});
|
|
1311
|
-
this.initialize()
|
|
1312
|
-
|
|
1684
|
+
this.initialize().catch(err => {
|
|
1685
|
+
throw err;
|
|
1686
|
+
});
|
|
1687
|
+
const wrappedCallback = callback
|
|
1688
|
+
? (error, response, rawResponse, _) => {
|
|
1689
|
+
this._log.info('updateConversionWorkspace response %j', rawResponse);
|
|
1690
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1691
|
+
}
|
|
1692
|
+
: undefined;
|
|
1693
|
+
this._log.info('updateConversionWorkspace request %j', request);
|
|
1694
|
+
return this.innerApiCalls
|
|
1695
|
+
.updateConversionWorkspace(request, options, wrappedCallback)
|
|
1696
|
+
?.then(([response, rawResponse, _]) => {
|
|
1697
|
+
this._log.info('updateConversionWorkspace response %j', rawResponse);
|
|
1698
|
+
return [response, rawResponse, _];
|
|
1699
|
+
});
|
|
1313
1700
|
}
|
|
1314
1701
|
/**
|
|
1315
1702
|
* Check the status of the long running operation returned by `updateConversionWorkspace()`.
|
|
@@ -1323,13 +1710,13 @@ class DataMigrationServiceClient {
|
|
|
1323
1710
|
* region_tag:datamigration_v1_generated_DataMigrationService_UpdateConversionWorkspace_async
|
|
1324
1711
|
*/
|
|
1325
1712
|
async checkUpdateConversionWorkspaceProgress(name) {
|
|
1713
|
+
this._log.info('updateConversionWorkspace long-running');
|
|
1326
1714
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1327
1715
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1328
1716
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.updateConversionWorkspace, this._gaxModule.createDefaultBackoffSettings());
|
|
1329
1717
|
return decodeOperation;
|
|
1330
1718
|
}
|
|
1331
1719
|
deleteConversionWorkspace(request, optionsOrCallback, callback) {
|
|
1332
|
-
var _a;
|
|
1333
1720
|
request = request || {};
|
|
1334
1721
|
let options;
|
|
1335
1722
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1344,10 +1731,24 @@ class DataMigrationServiceClient {
|
|
|
1344
1731
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1345
1732
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1346
1733
|
this._gaxModule.routingHeader.fromParams({
|
|
1347
|
-
name:
|
|
1734
|
+
name: request.name ?? '',
|
|
1348
1735
|
});
|
|
1349
|
-
this.initialize()
|
|
1350
|
-
|
|
1736
|
+
this.initialize().catch(err => {
|
|
1737
|
+
throw err;
|
|
1738
|
+
});
|
|
1739
|
+
const wrappedCallback = callback
|
|
1740
|
+
? (error, response, rawResponse, _) => {
|
|
1741
|
+
this._log.info('deleteConversionWorkspace response %j', rawResponse);
|
|
1742
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1743
|
+
}
|
|
1744
|
+
: undefined;
|
|
1745
|
+
this._log.info('deleteConversionWorkspace request %j', request);
|
|
1746
|
+
return this.innerApiCalls
|
|
1747
|
+
.deleteConversionWorkspace(request, options, wrappedCallback)
|
|
1748
|
+
?.then(([response, rawResponse, _]) => {
|
|
1749
|
+
this._log.info('deleteConversionWorkspace response %j', rawResponse);
|
|
1750
|
+
return [response, rawResponse, _];
|
|
1751
|
+
});
|
|
1351
1752
|
}
|
|
1352
1753
|
/**
|
|
1353
1754
|
* Check the status of the long running operation returned by `deleteConversionWorkspace()`.
|
|
@@ -1361,13 +1762,13 @@ class DataMigrationServiceClient {
|
|
|
1361
1762
|
* region_tag:datamigration_v1_generated_DataMigrationService_DeleteConversionWorkspace_async
|
|
1362
1763
|
*/
|
|
1363
1764
|
async checkDeleteConversionWorkspaceProgress(name) {
|
|
1765
|
+
this._log.info('deleteConversionWorkspace long-running');
|
|
1364
1766
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1365
1767
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1366
1768
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.deleteConversionWorkspace, this._gaxModule.createDefaultBackoffSettings());
|
|
1367
1769
|
return decodeOperation;
|
|
1368
1770
|
}
|
|
1369
1771
|
seedConversionWorkspace(request, optionsOrCallback, callback) {
|
|
1370
|
-
var _a;
|
|
1371
1772
|
request = request || {};
|
|
1372
1773
|
let options;
|
|
1373
1774
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1382,10 +1783,24 @@ class DataMigrationServiceClient {
|
|
|
1382
1783
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1383
1784
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1384
1785
|
this._gaxModule.routingHeader.fromParams({
|
|
1385
|
-
name:
|
|
1786
|
+
name: request.name ?? '',
|
|
1386
1787
|
});
|
|
1387
|
-
this.initialize()
|
|
1388
|
-
|
|
1788
|
+
this.initialize().catch(err => {
|
|
1789
|
+
throw err;
|
|
1790
|
+
});
|
|
1791
|
+
const wrappedCallback = callback
|
|
1792
|
+
? (error, response, rawResponse, _) => {
|
|
1793
|
+
this._log.info('seedConversionWorkspace response %j', rawResponse);
|
|
1794
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1795
|
+
}
|
|
1796
|
+
: undefined;
|
|
1797
|
+
this._log.info('seedConversionWorkspace request %j', request);
|
|
1798
|
+
return this.innerApiCalls
|
|
1799
|
+
.seedConversionWorkspace(request, options, wrappedCallback)
|
|
1800
|
+
?.then(([response, rawResponse, _]) => {
|
|
1801
|
+
this._log.info('seedConversionWorkspace response %j', rawResponse);
|
|
1802
|
+
return [response, rawResponse, _];
|
|
1803
|
+
});
|
|
1389
1804
|
}
|
|
1390
1805
|
/**
|
|
1391
1806
|
* Check the status of the long running operation returned by `seedConversionWorkspace()`.
|
|
@@ -1399,13 +1814,13 @@ class DataMigrationServiceClient {
|
|
|
1399
1814
|
* region_tag:datamigration_v1_generated_DataMigrationService_SeedConversionWorkspace_async
|
|
1400
1815
|
*/
|
|
1401
1816
|
async checkSeedConversionWorkspaceProgress(name) {
|
|
1817
|
+
this._log.info('seedConversionWorkspace long-running');
|
|
1402
1818
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1403
1819
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1404
1820
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.seedConversionWorkspace, this._gaxModule.createDefaultBackoffSettings());
|
|
1405
1821
|
return decodeOperation;
|
|
1406
1822
|
}
|
|
1407
1823
|
importMappingRules(request, optionsOrCallback, callback) {
|
|
1408
|
-
var _a;
|
|
1409
1824
|
request = request || {};
|
|
1410
1825
|
let options;
|
|
1411
1826
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1420,10 +1835,24 @@ class DataMigrationServiceClient {
|
|
|
1420
1835
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1421
1836
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1422
1837
|
this._gaxModule.routingHeader.fromParams({
|
|
1423
|
-
parent:
|
|
1838
|
+
parent: request.parent ?? '',
|
|
1424
1839
|
});
|
|
1425
|
-
this.initialize()
|
|
1426
|
-
|
|
1840
|
+
this.initialize().catch(err => {
|
|
1841
|
+
throw err;
|
|
1842
|
+
});
|
|
1843
|
+
const wrappedCallback = callback
|
|
1844
|
+
? (error, response, rawResponse, _) => {
|
|
1845
|
+
this._log.info('importMappingRules response %j', rawResponse);
|
|
1846
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1847
|
+
}
|
|
1848
|
+
: undefined;
|
|
1849
|
+
this._log.info('importMappingRules request %j', request);
|
|
1850
|
+
return this.innerApiCalls
|
|
1851
|
+
.importMappingRules(request, options, wrappedCallback)
|
|
1852
|
+
?.then(([response, rawResponse, _]) => {
|
|
1853
|
+
this._log.info('importMappingRules response %j', rawResponse);
|
|
1854
|
+
return [response, rawResponse, _];
|
|
1855
|
+
});
|
|
1427
1856
|
}
|
|
1428
1857
|
/**
|
|
1429
1858
|
* Check the status of the long running operation returned by `importMappingRules()`.
|
|
@@ -1437,13 +1866,13 @@ class DataMigrationServiceClient {
|
|
|
1437
1866
|
* region_tag:datamigration_v1_generated_DataMigrationService_ImportMappingRules_async
|
|
1438
1867
|
*/
|
|
1439
1868
|
async checkImportMappingRulesProgress(name) {
|
|
1869
|
+
this._log.info('importMappingRules long-running');
|
|
1440
1870
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1441
1871
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1442
1872
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.importMappingRules, this._gaxModule.createDefaultBackoffSettings());
|
|
1443
1873
|
return decodeOperation;
|
|
1444
1874
|
}
|
|
1445
1875
|
convertConversionWorkspace(request, optionsOrCallback, callback) {
|
|
1446
|
-
var _a;
|
|
1447
1876
|
request = request || {};
|
|
1448
1877
|
let options;
|
|
1449
1878
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1458,10 +1887,24 @@ class DataMigrationServiceClient {
|
|
|
1458
1887
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1459
1888
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1460
1889
|
this._gaxModule.routingHeader.fromParams({
|
|
1461
|
-
name:
|
|
1890
|
+
name: request.name ?? '',
|
|
1462
1891
|
});
|
|
1463
|
-
this.initialize()
|
|
1464
|
-
|
|
1892
|
+
this.initialize().catch(err => {
|
|
1893
|
+
throw err;
|
|
1894
|
+
});
|
|
1895
|
+
const wrappedCallback = callback
|
|
1896
|
+
? (error, response, rawResponse, _) => {
|
|
1897
|
+
this._log.info('convertConversionWorkspace response %j', rawResponse);
|
|
1898
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1899
|
+
}
|
|
1900
|
+
: undefined;
|
|
1901
|
+
this._log.info('convertConversionWorkspace request %j', request);
|
|
1902
|
+
return this.innerApiCalls
|
|
1903
|
+
.convertConversionWorkspace(request, options, wrappedCallback)
|
|
1904
|
+
?.then(([response, rawResponse, _]) => {
|
|
1905
|
+
this._log.info('convertConversionWorkspace response %j', rawResponse);
|
|
1906
|
+
return [response, rawResponse, _];
|
|
1907
|
+
});
|
|
1465
1908
|
}
|
|
1466
1909
|
/**
|
|
1467
1910
|
* Check the status of the long running operation returned by `convertConversionWorkspace()`.
|
|
@@ -1475,13 +1918,13 @@ class DataMigrationServiceClient {
|
|
|
1475
1918
|
* region_tag:datamigration_v1_generated_DataMigrationService_ConvertConversionWorkspace_async
|
|
1476
1919
|
*/
|
|
1477
1920
|
async checkConvertConversionWorkspaceProgress(name) {
|
|
1921
|
+
this._log.info('convertConversionWorkspace long-running');
|
|
1478
1922
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1479
1923
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1480
1924
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.convertConversionWorkspace, this._gaxModule.createDefaultBackoffSettings());
|
|
1481
1925
|
return decodeOperation;
|
|
1482
1926
|
}
|
|
1483
1927
|
commitConversionWorkspace(request, optionsOrCallback, callback) {
|
|
1484
|
-
var _a;
|
|
1485
1928
|
request = request || {};
|
|
1486
1929
|
let options;
|
|
1487
1930
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1496,10 +1939,24 @@ class DataMigrationServiceClient {
|
|
|
1496
1939
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1497
1940
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1498
1941
|
this._gaxModule.routingHeader.fromParams({
|
|
1499
|
-
name:
|
|
1942
|
+
name: request.name ?? '',
|
|
1500
1943
|
});
|
|
1501
|
-
this.initialize()
|
|
1502
|
-
|
|
1944
|
+
this.initialize().catch(err => {
|
|
1945
|
+
throw err;
|
|
1946
|
+
});
|
|
1947
|
+
const wrappedCallback = callback
|
|
1948
|
+
? (error, response, rawResponse, _) => {
|
|
1949
|
+
this._log.info('commitConversionWorkspace response %j', rawResponse);
|
|
1950
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
1951
|
+
}
|
|
1952
|
+
: undefined;
|
|
1953
|
+
this._log.info('commitConversionWorkspace request %j', request);
|
|
1954
|
+
return this.innerApiCalls
|
|
1955
|
+
.commitConversionWorkspace(request, options, wrappedCallback)
|
|
1956
|
+
?.then(([response, rawResponse, _]) => {
|
|
1957
|
+
this._log.info('commitConversionWorkspace response %j', rawResponse);
|
|
1958
|
+
return [response, rawResponse, _];
|
|
1959
|
+
});
|
|
1503
1960
|
}
|
|
1504
1961
|
/**
|
|
1505
1962
|
* Check the status of the long running operation returned by `commitConversionWorkspace()`.
|
|
@@ -1513,13 +1970,13 @@ class DataMigrationServiceClient {
|
|
|
1513
1970
|
* region_tag:datamigration_v1_generated_DataMigrationService_CommitConversionWorkspace_async
|
|
1514
1971
|
*/
|
|
1515
1972
|
async checkCommitConversionWorkspaceProgress(name) {
|
|
1973
|
+
this._log.info('commitConversionWorkspace long-running');
|
|
1516
1974
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1517
1975
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1518
1976
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.commitConversionWorkspace, this._gaxModule.createDefaultBackoffSettings());
|
|
1519
1977
|
return decodeOperation;
|
|
1520
1978
|
}
|
|
1521
1979
|
rollbackConversionWorkspace(request, optionsOrCallback, callback) {
|
|
1522
|
-
var _a;
|
|
1523
1980
|
request = request || {};
|
|
1524
1981
|
let options;
|
|
1525
1982
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1534,10 +1991,24 @@ class DataMigrationServiceClient {
|
|
|
1534
1991
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1535
1992
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1536
1993
|
this._gaxModule.routingHeader.fromParams({
|
|
1537
|
-
name:
|
|
1994
|
+
name: request.name ?? '',
|
|
1538
1995
|
});
|
|
1539
|
-
this.initialize()
|
|
1540
|
-
|
|
1996
|
+
this.initialize().catch(err => {
|
|
1997
|
+
throw err;
|
|
1998
|
+
});
|
|
1999
|
+
const wrappedCallback = callback
|
|
2000
|
+
? (error, response, rawResponse, _) => {
|
|
2001
|
+
this._log.info('rollbackConversionWorkspace response %j', rawResponse);
|
|
2002
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
2003
|
+
}
|
|
2004
|
+
: undefined;
|
|
2005
|
+
this._log.info('rollbackConversionWorkspace request %j', request);
|
|
2006
|
+
return this.innerApiCalls
|
|
2007
|
+
.rollbackConversionWorkspace(request, options, wrappedCallback)
|
|
2008
|
+
?.then(([response, rawResponse, _]) => {
|
|
2009
|
+
this._log.info('rollbackConversionWorkspace response %j', rawResponse);
|
|
2010
|
+
return [response, rawResponse, _];
|
|
2011
|
+
});
|
|
1541
2012
|
}
|
|
1542
2013
|
/**
|
|
1543
2014
|
* Check the status of the long running operation returned by `rollbackConversionWorkspace()`.
|
|
@@ -1551,13 +2022,13 @@ class DataMigrationServiceClient {
|
|
|
1551
2022
|
* region_tag:datamigration_v1_generated_DataMigrationService_RollbackConversionWorkspace_async
|
|
1552
2023
|
*/
|
|
1553
2024
|
async checkRollbackConversionWorkspaceProgress(name) {
|
|
2025
|
+
this._log.info('rollbackConversionWorkspace long-running');
|
|
1554
2026
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1555
2027
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1556
2028
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.rollbackConversionWorkspace, this._gaxModule.createDefaultBackoffSettings());
|
|
1557
2029
|
return decodeOperation;
|
|
1558
2030
|
}
|
|
1559
2031
|
applyConversionWorkspace(request, optionsOrCallback, callback) {
|
|
1560
|
-
var _a;
|
|
1561
2032
|
request = request || {};
|
|
1562
2033
|
let options;
|
|
1563
2034
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1572,10 +2043,24 @@ class DataMigrationServiceClient {
|
|
|
1572
2043
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1573
2044
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1574
2045
|
this._gaxModule.routingHeader.fromParams({
|
|
1575
|
-
name:
|
|
2046
|
+
name: request.name ?? '',
|
|
1576
2047
|
});
|
|
1577
|
-
this.initialize()
|
|
1578
|
-
|
|
2048
|
+
this.initialize().catch(err => {
|
|
2049
|
+
throw err;
|
|
2050
|
+
});
|
|
2051
|
+
const wrappedCallback = callback
|
|
2052
|
+
? (error, response, rawResponse, _) => {
|
|
2053
|
+
this._log.info('applyConversionWorkspace response %j', rawResponse);
|
|
2054
|
+
callback(error, response, rawResponse, _); // We verified callback above.
|
|
2055
|
+
}
|
|
2056
|
+
: undefined;
|
|
2057
|
+
this._log.info('applyConversionWorkspace request %j', request);
|
|
2058
|
+
return this.innerApiCalls
|
|
2059
|
+
.applyConversionWorkspace(request, options, wrappedCallback)
|
|
2060
|
+
?.then(([response, rawResponse, _]) => {
|
|
2061
|
+
this._log.info('applyConversionWorkspace response %j', rawResponse);
|
|
2062
|
+
return [response, rawResponse, _];
|
|
2063
|
+
});
|
|
1579
2064
|
}
|
|
1580
2065
|
/**
|
|
1581
2066
|
* Check the status of the long running operation returned by `applyConversionWorkspace()`.
|
|
@@ -1589,13 +2074,13 @@ class DataMigrationServiceClient {
|
|
|
1589
2074
|
* region_tag:datamigration_v1_generated_DataMigrationService_ApplyConversionWorkspace_async
|
|
1590
2075
|
*/
|
|
1591
2076
|
async checkApplyConversionWorkspaceProgress(name) {
|
|
2077
|
+
this._log.info('applyConversionWorkspace long-running');
|
|
1592
2078
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
1593
2079
|
const [operation] = await this.operationsClient.getOperation(request);
|
|
1594
2080
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.applyConversionWorkspace, this._gaxModule.createDefaultBackoffSettings());
|
|
1595
2081
|
return decodeOperation;
|
|
1596
2082
|
}
|
|
1597
2083
|
listMigrationJobs(request, optionsOrCallback, callback) {
|
|
1598
|
-
var _a;
|
|
1599
2084
|
request = request || {};
|
|
1600
2085
|
let options;
|
|
1601
2086
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1610,13 +2095,27 @@ class DataMigrationServiceClient {
|
|
|
1610
2095
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1611
2096
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1612
2097
|
this._gaxModule.routingHeader.fromParams({
|
|
1613
|
-
parent:
|
|
2098
|
+
parent: request.parent ?? '',
|
|
1614
2099
|
});
|
|
1615
|
-
this.initialize()
|
|
1616
|
-
|
|
2100
|
+
this.initialize().catch(err => {
|
|
2101
|
+
throw err;
|
|
2102
|
+
});
|
|
2103
|
+
const wrappedCallback = callback
|
|
2104
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
2105
|
+
this._log.info('listMigrationJobs values %j', values);
|
|
2106
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
2107
|
+
}
|
|
2108
|
+
: undefined;
|
|
2109
|
+
this._log.info('listMigrationJobs request %j', request);
|
|
2110
|
+
return this.innerApiCalls
|
|
2111
|
+
.listMigrationJobs(request, options, wrappedCallback)
|
|
2112
|
+
?.then(([response, input, output]) => {
|
|
2113
|
+
this._log.info('listMigrationJobs values %j', response);
|
|
2114
|
+
return [response, input, output];
|
|
2115
|
+
});
|
|
1617
2116
|
}
|
|
1618
2117
|
/**
|
|
1619
|
-
* Equivalent to `
|
|
2118
|
+
* Equivalent to `listMigrationJobs`, but returns a NodeJS Stream object.
|
|
1620
2119
|
* @param {Object} request
|
|
1621
2120
|
* The request object that will be sent.
|
|
1622
2121
|
* @param {string} request.parent
|
|
@@ -1657,18 +2156,20 @@ class DataMigrationServiceClient {
|
|
|
1657
2156
|
* for more details and examples.
|
|
1658
2157
|
*/
|
|
1659
2158
|
listMigrationJobsStream(request, options) {
|
|
1660
|
-
var _a;
|
|
1661
2159
|
request = request || {};
|
|
1662
2160
|
options = options || {};
|
|
1663
2161
|
options.otherArgs = options.otherArgs || {};
|
|
1664
2162
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1665
2163
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1666
2164
|
this._gaxModule.routingHeader.fromParams({
|
|
1667
|
-
parent:
|
|
2165
|
+
parent: request.parent ?? '',
|
|
1668
2166
|
});
|
|
1669
2167
|
const defaultCallSettings = this._defaults['listMigrationJobs'];
|
|
1670
2168
|
const callSettings = defaultCallSettings.merge(options);
|
|
1671
|
-
this.initialize()
|
|
2169
|
+
this.initialize().catch(err => {
|
|
2170
|
+
throw err;
|
|
2171
|
+
});
|
|
2172
|
+
this._log.info('listMigrationJobs stream %j', request);
|
|
1672
2173
|
return this.descriptors.page.listMigrationJobs.createStream(this.innerApiCalls.listMigrationJobs, request, callSettings);
|
|
1673
2174
|
}
|
|
1674
2175
|
/**
|
|
@@ -1716,22 +2217,23 @@ class DataMigrationServiceClient {
|
|
|
1716
2217
|
* region_tag:datamigration_v1_generated_DataMigrationService_ListMigrationJobs_async
|
|
1717
2218
|
*/
|
|
1718
2219
|
listMigrationJobsAsync(request, options) {
|
|
1719
|
-
var _a;
|
|
1720
2220
|
request = request || {};
|
|
1721
2221
|
options = options || {};
|
|
1722
2222
|
options.otherArgs = options.otherArgs || {};
|
|
1723
2223
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1724
2224
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1725
2225
|
this._gaxModule.routingHeader.fromParams({
|
|
1726
|
-
parent:
|
|
2226
|
+
parent: request.parent ?? '',
|
|
1727
2227
|
});
|
|
1728
2228
|
const defaultCallSettings = this._defaults['listMigrationJobs'];
|
|
1729
2229
|
const callSettings = defaultCallSettings.merge(options);
|
|
1730
|
-
this.initialize()
|
|
2230
|
+
this.initialize().catch(err => {
|
|
2231
|
+
throw err;
|
|
2232
|
+
});
|
|
2233
|
+
this._log.info('listMigrationJobs iterate %j', request);
|
|
1731
2234
|
return this.descriptors.page.listMigrationJobs.asyncIterate(this.innerApiCalls['listMigrationJobs'], request, callSettings);
|
|
1732
2235
|
}
|
|
1733
2236
|
listConnectionProfiles(request, optionsOrCallback, callback) {
|
|
1734
|
-
var _a;
|
|
1735
2237
|
request = request || {};
|
|
1736
2238
|
let options;
|
|
1737
2239
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1746,13 +2248,27 @@ class DataMigrationServiceClient {
|
|
|
1746
2248
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1747
2249
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1748
2250
|
this._gaxModule.routingHeader.fromParams({
|
|
1749
|
-
parent:
|
|
2251
|
+
parent: request.parent ?? '',
|
|
1750
2252
|
});
|
|
1751
|
-
this.initialize()
|
|
1752
|
-
|
|
2253
|
+
this.initialize().catch(err => {
|
|
2254
|
+
throw err;
|
|
2255
|
+
});
|
|
2256
|
+
const wrappedCallback = callback
|
|
2257
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
2258
|
+
this._log.info('listConnectionProfiles values %j', values);
|
|
2259
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
2260
|
+
}
|
|
2261
|
+
: undefined;
|
|
2262
|
+
this._log.info('listConnectionProfiles request %j', request);
|
|
2263
|
+
return this.innerApiCalls
|
|
2264
|
+
.listConnectionProfiles(request, options, wrappedCallback)
|
|
2265
|
+
?.then(([response, input, output]) => {
|
|
2266
|
+
this._log.info('listConnectionProfiles values %j', response);
|
|
2267
|
+
return [response, input, output];
|
|
2268
|
+
});
|
|
1753
2269
|
}
|
|
1754
2270
|
/**
|
|
1755
|
-
* Equivalent to `
|
|
2271
|
+
* Equivalent to `listConnectionProfiles`, but returns a NodeJS Stream object.
|
|
1756
2272
|
* @param {Object} request
|
|
1757
2273
|
* The request object that will be sent.
|
|
1758
2274
|
* @param {string} request.parent
|
|
@@ -1792,18 +2308,20 @@ class DataMigrationServiceClient {
|
|
|
1792
2308
|
* for more details and examples.
|
|
1793
2309
|
*/
|
|
1794
2310
|
listConnectionProfilesStream(request, options) {
|
|
1795
|
-
var _a;
|
|
1796
2311
|
request = request || {};
|
|
1797
2312
|
options = options || {};
|
|
1798
2313
|
options.otherArgs = options.otherArgs || {};
|
|
1799
2314
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1800
2315
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1801
2316
|
this._gaxModule.routingHeader.fromParams({
|
|
1802
|
-
parent:
|
|
2317
|
+
parent: request.parent ?? '',
|
|
1803
2318
|
});
|
|
1804
2319
|
const defaultCallSettings = this._defaults['listConnectionProfiles'];
|
|
1805
2320
|
const callSettings = defaultCallSettings.merge(options);
|
|
1806
|
-
this.initialize()
|
|
2321
|
+
this.initialize().catch(err => {
|
|
2322
|
+
throw err;
|
|
2323
|
+
});
|
|
2324
|
+
this._log.info('listConnectionProfiles stream %j', request);
|
|
1807
2325
|
return this.descriptors.page.listConnectionProfiles.createStream(this.innerApiCalls.listConnectionProfiles, request, callSettings);
|
|
1808
2326
|
}
|
|
1809
2327
|
/**
|
|
@@ -1850,22 +2368,23 @@ class DataMigrationServiceClient {
|
|
|
1850
2368
|
* region_tag:datamigration_v1_generated_DataMigrationService_ListConnectionProfiles_async
|
|
1851
2369
|
*/
|
|
1852
2370
|
listConnectionProfilesAsync(request, options) {
|
|
1853
|
-
var _a;
|
|
1854
2371
|
request = request || {};
|
|
1855
2372
|
options = options || {};
|
|
1856
2373
|
options.otherArgs = options.otherArgs || {};
|
|
1857
2374
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1858
2375
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1859
2376
|
this._gaxModule.routingHeader.fromParams({
|
|
1860
|
-
parent:
|
|
2377
|
+
parent: request.parent ?? '',
|
|
1861
2378
|
});
|
|
1862
2379
|
const defaultCallSettings = this._defaults['listConnectionProfiles'];
|
|
1863
2380
|
const callSettings = defaultCallSettings.merge(options);
|
|
1864
|
-
this.initialize()
|
|
2381
|
+
this.initialize().catch(err => {
|
|
2382
|
+
throw err;
|
|
2383
|
+
});
|
|
2384
|
+
this._log.info('listConnectionProfiles iterate %j', request);
|
|
1865
2385
|
return this.descriptors.page.listConnectionProfiles.asyncIterate(this.innerApiCalls['listConnectionProfiles'], request, callSettings);
|
|
1866
2386
|
}
|
|
1867
2387
|
listPrivateConnections(request, optionsOrCallback, callback) {
|
|
1868
|
-
var _a;
|
|
1869
2388
|
request = request || {};
|
|
1870
2389
|
let options;
|
|
1871
2390
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1880,13 +2399,27 @@ class DataMigrationServiceClient {
|
|
|
1880
2399
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1881
2400
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1882
2401
|
this._gaxModule.routingHeader.fromParams({
|
|
1883
|
-
parent:
|
|
2402
|
+
parent: request.parent ?? '',
|
|
1884
2403
|
});
|
|
1885
|
-
this.initialize()
|
|
1886
|
-
|
|
2404
|
+
this.initialize().catch(err => {
|
|
2405
|
+
throw err;
|
|
2406
|
+
});
|
|
2407
|
+
const wrappedCallback = callback
|
|
2408
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
2409
|
+
this._log.info('listPrivateConnections values %j', values);
|
|
2410
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
2411
|
+
}
|
|
2412
|
+
: undefined;
|
|
2413
|
+
this._log.info('listPrivateConnections request %j', request);
|
|
2414
|
+
return this.innerApiCalls
|
|
2415
|
+
.listPrivateConnections(request, options, wrappedCallback)
|
|
2416
|
+
?.then(([response, input, output]) => {
|
|
2417
|
+
this._log.info('listPrivateConnections values %j', response);
|
|
2418
|
+
return [response, input, output];
|
|
2419
|
+
});
|
|
1887
2420
|
}
|
|
1888
2421
|
/**
|
|
1889
|
-
* Equivalent to `
|
|
2422
|
+
* Equivalent to `listPrivateConnections`, but returns a NodeJS Stream object.
|
|
1890
2423
|
* @param {Object} request
|
|
1891
2424
|
* The request object that will be sent.
|
|
1892
2425
|
* @param {string} request.parent
|
|
@@ -1923,18 +2456,20 @@ class DataMigrationServiceClient {
|
|
|
1923
2456
|
* for more details and examples.
|
|
1924
2457
|
*/
|
|
1925
2458
|
listPrivateConnectionsStream(request, options) {
|
|
1926
|
-
var _a;
|
|
1927
2459
|
request = request || {};
|
|
1928
2460
|
options = options || {};
|
|
1929
2461
|
options.otherArgs = options.otherArgs || {};
|
|
1930
2462
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1931
2463
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1932
2464
|
this._gaxModule.routingHeader.fromParams({
|
|
1933
|
-
parent:
|
|
2465
|
+
parent: request.parent ?? '',
|
|
1934
2466
|
});
|
|
1935
2467
|
const defaultCallSettings = this._defaults['listPrivateConnections'];
|
|
1936
2468
|
const callSettings = defaultCallSettings.merge(options);
|
|
1937
|
-
this.initialize()
|
|
2469
|
+
this.initialize().catch(err => {
|
|
2470
|
+
throw err;
|
|
2471
|
+
});
|
|
2472
|
+
this._log.info('listPrivateConnections stream %j', request);
|
|
1938
2473
|
return this.descriptors.page.listPrivateConnections.createStream(this.innerApiCalls.listPrivateConnections, request, callSettings);
|
|
1939
2474
|
}
|
|
1940
2475
|
/**
|
|
@@ -1978,22 +2513,23 @@ class DataMigrationServiceClient {
|
|
|
1978
2513
|
* region_tag:datamigration_v1_generated_DataMigrationService_ListPrivateConnections_async
|
|
1979
2514
|
*/
|
|
1980
2515
|
listPrivateConnectionsAsync(request, options) {
|
|
1981
|
-
var _a;
|
|
1982
2516
|
request = request || {};
|
|
1983
2517
|
options = options || {};
|
|
1984
2518
|
options.otherArgs = options.otherArgs || {};
|
|
1985
2519
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1986
2520
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1987
2521
|
this._gaxModule.routingHeader.fromParams({
|
|
1988
|
-
parent:
|
|
2522
|
+
parent: request.parent ?? '',
|
|
1989
2523
|
});
|
|
1990
2524
|
const defaultCallSettings = this._defaults['listPrivateConnections'];
|
|
1991
2525
|
const callSettings = defaultCallSettings.merge(options);
|
|
1992
|
-
this.initialize()
|
|
2526
|
+
this.initialize().catch(err => {
|
|
2527
|
+
throw err;
|
|
2528
|
+
});
|
|
2529
|
+
this._log.info('listPrivateConnections iterate %j', request);
|
|
1993
2530
|
return this.descriptors.page.listPrivateConnections.asyncIterate(this.innerApiCalls['listPrivateConnections'], request, callSettings);
|
|
1994
2531
|
}
|
|
1995
2532
|
listConversionWorkspaces(request, optionsOrCallback, callback) {
|
|
1996
|
-
var _a;
|
|
1997
2533
|
request = request || {};
|
|
1998
2534
|
let options;
|
|
1999
2535
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -2008,13 +2544,27 @@ class DataMigrationServiceClient {
|
|
|
2008
2544
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2009
2545
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2010
2546
|
this._gaxModule.routingHeader.fromParams({
|
|
2011
|
-
parent:
|
|
2547
|
+
parent: request.parent ?? '',
|
|
2012
2548
|
});
|
|
2013
|
-
this.initialize()
|
|
2014
|
-
|
|
2549
|
+
this.initialize().catch(err => {
|
|
2550
|
+
throw err;
|
|
2551
|
+
});
|
|
2552
|
+
const wrappedCallback = callback
|
|
2553
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
2554
|
+
this._log.info('listConversionWorkspaces values %j', values);
|
|
2555
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
2556
|
+
}
|
|
2557
|
+
: undefined;
|
|
2558
|
+
this._log.info('listConversionWorkspaces request %j', request);
|
|
2559
|
+
return this.innerApiCalls
|
|
2560
|
+
.listConversionWorkspaces(request, options, wrappedCallback)
|
|
2561
|
+
?.then(([response, input, output]) => {
|
|
2562
|
+
this._log.info('listConversionWorkspaces values %j', response);
|
|
2563
|
+
return [response, input, output];
|
|
2564
|
+
});
|
|
2015
2565
|
}
|
|
2016
2566
|
/**
|
|
2017
|
-
* Equivalent to `
|
|
2567
|
+
* Equivalent to `listConversionWorkspaces`, but returns a NodeJS Stream object.
|
|
2018
2568
|
* @param {Object} request
|
|
2019
2569
|
* The request object that will be sent.
|
|
2020
2570
|
* @param {string} request.parent
|
|
@@ -2050,18 +2600,20 @@ class DataMigrationServiceClient {
|
|
|
2050
2600
|
* for more details and examples.
|
|
2051
2601
|
*/
|
|
2052
2602
|
listConversionWorkspacesStream(request, options) {
|
|
2053
|
-
var _a;
|
|
2054
2603
|
request = request || {};
|
|
2055
2604
|
options = options || {};
|
|
2056
2605
|
options.otherArgs = options.otherArgs || {};
|
|
2057
2606
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2058
2607
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2059
2608
|
this._gaxModule.routingHeader.fromParams({
|
|
2060
|
-
parent:
|
|
2609
|
+
parent: request.parent ?? '',
|
|
2061
2610
|
});
|
|
2062
2611
|
const defaultCallSettings = this._defaults['listConversionWorkspaces'];
|
|
2063
2612
|
const callSettings = defaultCallSettings.merge(options);
|
|
2064
|
-
this.initialize()
|
|
2613
|
+
this.initialize().catch(err => {
|
|
2614
|
+
throw err;
|
|
2615
|
+
});
|
|
2616
|
+
this._log.info('listConversionWorkspaces stream %j', request);
|
|
2065
2617
|
return this.descriptors.page.listConversionWorkspaces.createStream(this.innerApiCalls.listConversionWorkspaces, request, callSettings);
|
|
2066
2618
|
}
|
|
2067
2619
|
/**
|
|
@@ -2104,22 +2656,23 @@ class DataMigrationServiceClient {
|
|
|
2104
2656
|
* region_tag:datamigration_v1_generated_DataMigrationService_ListConversionWorkspaces_async
|
|
2105
2657
|
*/
|
|
2106
2658
|
listConversionWorkspacesAsync(request, options) {
|
|
2107
|
-
var _a;
|
|
2108
2659
|
request = request || {};
|
|
2109
2660
|
options = options || {};
|
|
2110
2661
|
options.otherArgs = options.otherArgs || {};
|
|
2111
2662
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2112
2663
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2113
2664
|
this._gaxModule.routingHeader.fromParams({
|
|
2114
|
-
parent:
|
|
2665
|
+
parent: request.parent ?? '',
|
|
2115
2666
|
});
|
|
2116
2667
|
const defaultCallSettings = this._defaults['listConversionWorkspaces'];
|
|
2117
2668
|
const callSettings = defaultCallSettings.merge(options);
|
|
2118
|
-
this.initialize()
|
|
2669
|
+
this.initialize().catch(err => {
|
|
2670
|
+
throw err;
|
|
2671
|
+
});
|
|
2672
|
+
this._log.info('listConversionWorkspaces iterate %j', request);
|
|
2119
2673
|
return this.descriptors.page.listConversionWorkspaces.asyncIterate(this.innerApiCalls['listConversionWorkspaces'], request, callSettings);
|
|
2120
2674
|
}
|
|
2121
2675
|
listMappingRules(request, optionsOrCallback, callback) {
|
|
2122
|
-
var _a;
|
|
2123
2676
|
request = request || {};
|
|
2124
2677
|
let options;
|
|
2125
2678
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -2134,13 +2687,27 @@ class DataMigrationServiceClient {
|
|
|
2134
2687
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2135
2688
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2136
2689
|
this._gaxModule.routingHeader.fromParams({
|
|
2137
|
-
parent:
|
|
2690
|
+
parent: request.parent ?? '',
|
|
2138
2691
|
});
|
|
2139
|
-
this.initialize()
|
|
2140
|
-
|
|
2692
|
+
this.initialize().catch(err => {
|
|
2693
|
+
throw err;
|
|
2694
|
+
});
|
|
2695
|
+
const wrappedCallback = callback
|
|
2696
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
2697
|
+
this._log.info('listMappingRules values %j', values);
|
|
2698
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
2699
|
+
}
|
|
2700
|
+
: undefined;
|
|
2701
|
+
this._log.info('listMappingRules request %j', request);
|
|
2702
|
+
return this.innerApiCalls
|
|
2703
|
+
.listMappingRules(request, options, wrappedCallback)
|
|
2704
|
+
?.then(([response, input, output]) => {
|
|
2705
|
+
this._log.info('listMappingRules values %j', response);
|
|
2706
|
+
return [response, input, output];
|
|
2707
|
+
});
|
|
2141
2708
|
}
|
|
2142
2709
|
/**
|
|
2143
|
-
* Equivalent to `
|
|
2710
|
+
* Equivalent to `listMappingRules`, but returns a NodeJS Stream object.
|
|
2144
2711
|
* @param {Object} request
|
|
2145
2712
|
* The request object that will be sent.
|
|
2146
2713
|
* @param {string} request.parent
|
|
@@ -2168,18 +2735,20 @@ class DataMigrationServiceClient {
|
|
|
2168
2735
|
* for more details and examples.
|
|
2169
2736
|
*/
|
|
2170
2737
|
listMappingRulesStream(request, options) {
|
|
2171
|
-
var _a;
|
|
2172
2738
|
request = request || {};
|
|
2173
2739
|
options = options || {};
|
|
2174
2740
|
options.otherArgs = options.otherArgs || {};
|
|
2175
2741
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2176
2742
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2177
2743
|
this._gaxModule.routingHeader.fromParams({
|
|
2178
|
-
parent:
|
|
2744
|
+
parent: request.parent ?? '',
|
|
2179
2745
|
});
|
|
2180
2746
|
const defaultCallSettings = this._defaults['listMappingRules'];
|
|
2181
2747
|
const callSettings = defaultCallSettings.merge(options);
|
|
2182
|
-
this.initialize()
|
|
2748
|
+
this.initialize().catch(err => {
|
|
2749
|
+
throw err;
|
|
2750
|
+
});
|
|
2751
|
+
this._log.info('listMappingRules stream %j', request);
|
|
2183
2752
|
return this.descriptors.page.listMappingRules.createStream(this.innerApiCalls.listMappingRules, request, callSettings);
|
|
2184
2753
|
}
|
|
2185
2754
|
/**
|
|
@@ -2214,22 +2783,23 @@ class DataMigrationServiceClient {
|
|
|
2214
2783
|
* region_tag:datamigration_v1_generated_DataMigrationService_ListMappingRules_async
|
|
2215
2784
|
*/
|
|
2216
2785
|
listMappingRulesAsync(request, options) {
|
|
2217
|
-
var _a;
|
|
2218
2786
|
request = request || {};
|
|
2219
2787
|
options = options || {};
|
|
2220
2788
|
options.otherArgs = options.otherArgs || {};
|
|
2221
2789
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2222
2790
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2223
2791
|
this._gaxModule.routingHeader.fromParams({
|
|
2224
|
-
parent:
|
|
2792
|
+
parent: request.parent ?? '',
|
|
2225
2793
|
});
|
|
2226
2794
|
const defaultCallSettings = this._defaults['listMappingRules'];
|
|
2227
2795
|
const callSettings = defaultCallSettings.merge(options);
|
|
2228
|
-
this.initialize()
|
|
2796
|
+
this.initialize().catch(err => {
|
|
2797
|
+
throw err;
|
|
2798
|
+
});
|
|
2799
|
+
this._log.info('listMappingRules iterate %j', request);
|
|
2229
2800
|
return this.descriptors.page.listMappingRules.asyncIterate(this.innerApiCalls['listMappingRules'], request, callSettings);
|
|
2230
2801
|
}
|
|
2231
2802
|
describeDatabaseEntities(request, optionsOrCallback, callback) {
|
|
2232
|
-
var _a;
|
|
2233
2803
|
request = request || {};
|
|
2234
2804
|
let options;
|
|
2235
2805
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -2244,13 +2814,27 @@ class DataMigrationServiceClient {
|
|
|
2244
2814
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2245
2815
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2246
2816
|
this._gaxModule.routingHeader.fromParams({
|
|
2247
|
-
conversion_workspace:
|
|
2817
|
+
conversion_workspace: request.conversionWorkspace ?? '',
|
|
2248
2818
|
});
|
|
2249
|
-
this.initialize()
|
|
2250
|
-
|
|
2819
|
+
this.initialize().catch(err => {
|
|
2820
|
+
throw err;
|
|
2821
|
+
});
|
|
2822
|
+
const wrappedCallback = callback
|
|
2823
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
2824
|
+
this._log.info('describeDatabaseEntities values %j', values);
|
|
2825
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
2826
|
+
}
|
|
2827
|
+
: undefined;
|
|
2828
|
+
this._log.info('describeDatabaseEntities request %j', request);
|
|
2829
|
+
return this.innerApiCalls
|
|
2830
|
+
.describeDatabaseEntities(request, options, wrappedCallback)
|
|
2831
|
+
?.then(([response, input, output]) => {
|
|
2832
|
+
this._log.info('describeDatabaseEntities values %j', response);
|
|
2833
|
+
return [response, input, output];
|
|
2834
|
+
});
|
|
2251
2835
|
}
|
|
2252
2836
|
/**
|
|
2253
|
-
* Equivalent to `
|
|
2837
|
+
* Equivalent to `describeDatabaseEntities`, but returns a NodeJS Stream object.
|
|
2254
2838
|
* @param {Object} request
|
|
2255
2839
|
* The request object that will be sent.
|
|
2256
2840
|
* @param {string} request.conversionWorkspace
|
|
@@ -2292,18 +2876,20 @@ class DataMigrationServiceClient {
|
|
|
2292
2876
|
* for more details and examples.
|
|
2293
2877
|
*/
|
|
2294
2878
|
describeDatabaseEntitiesStream(request, options) {
|
|
2295
|
-
var _a;
|
|
2296
2879
|
request = request || {};
|
|
2297
2880
|
options = options || {};
|
|
2298
2881
|
options.otherArgs = options.otherArgs || {};
|
|
2299
2882
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2300
2883
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2301
2884
|
this._gaxModule.routingHeader.fromParams({
|
|
2302
|
-
conversion_workspace:
|
|
2885
|
+
conversion_workspace: request.conversionWorkspace ?? '',
|
|
2303
2886
|
});
|
|
2304
2887
|
const defaultCallSettings = this._defaults['describeDatabaseEntities'];
|
|
2305
2888
|
const callSettings = defaultCallSettings.merge(options);
|
|
2306
|
-
this.initialize()
|
|
2889
|
+
this.initialize().catch(err => {
|
|
2890
|
+
throw err;
|
|
2891
|
+
});
|
|
2892
|
+
this._log.info('describeDatabaseEntities stream %j', request);
|
|
2307
2893
|
return this.descriptors.page.describeDatabaseEntities.createStream(this.innerApiCalls.describeDatabaseEntities, request, callSettings);
|
|
2308
2894
|
}
|
|
2309
2895
|
/**
|
|
@@ -2352,22 +2938,23 @@ class DataMigrationServiceClient {
|
|
|
2352
2938
|
* region_tag:datamigration_v1_generated_DataMigrationService_DescribeDatabaseEntities_async
|
|
2353
2939
|
*/
|
|
2354
2940
|
describeDatabaseEntitiesAsync(request, options) {
|
|
2355
|
-
var _a;
|
|
2356
2941
|
request = request || {};
|
|
2357
2942
|
options = options || {};
|
|
2358
2943
|
options.otherArgs = options.otherArgs || {};
|
|
2359
2944
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2360
2945
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2361
2946
|
this._gaxModule.routingHeader.fromParams({
|
|
2362
|
-
conversion_workspace:
|
|
2947
|
+
conversion_workspace: request.conversionWorkspace ?? '',
|
|
2363
2948
|
});
|
|
2364
2949
|
const defaultCallSettings = this._defaults['describeDatabaseEntities'];
|
|
2365
2950
|
const callSettings = defaultCallSettings.merge(options);
|
|
2366
|
-
this.initialize()
|
|
2951
|
+
this.initialize().catch(err => {
|
|
2952
|
+
throw err;
|
|
2953
|
+
});
|
|
2954
|
+
this._log.info('describeDatabaseEntities iterate %j', request);
|
|
2367
2955
|
return this.descriptors.page.describeDatabaseEntities.asyncIterate(this.innerApiCalls['describeDatabaseEntities'], request, callSettings);
|
|
2368
2956
|
}
|
|
2369
2957
|
fetchStaticIps(request, optionsOrCallback, callback) {
|
|
2370
|
-
var _a;
|
|
2371
2958
|
request = request || {};
|
|
2372
2959
|
let options;
|
|
2373
2960
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -2382,13 +2969,27 @@ class DataMigrationServiceClient {
|
|
|
2382
2969
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2383
2970
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2384
2971
|
this._gaxModule.routingHeader.fromParams({
|
|
2385
|
-
name:
|
|
2972
|
+
name: request.name ?? '',
|
|
2386
2973
|
});
|
|
2387
|
-
this.initialize()
|
|
2388
|
-
|
|
2974
|
+
this.initialize().catch(err => {
|
|
2975
|
+
throw err;
|
|
2976
|
+
});
|
|
2977
|
+
const wrappedCallback = callback
|
|
2978
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
2979
|
+
this._log.info('fetchStaticIps values %j', values);
|
|
2980
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
2981
|
+
}
|
|
2982
|
+
: undefined;
|
|
2983
|
+
this._log.info('fetchStaticIps request %j', request);
|
|
2984
|
+
return this.innerApiCalls
|
|
2985
|
+
.fetchStaticIps(request, options, wrappedCallback)
|
|
2986
|
+
?.then(([response, input, output]) => {
|
|
2987
|
+
this._log.info('fetchStaticIps values %j', response);
|
|
2988
|
+
return [response, input, output];
|
|
2989
|
+
});
|
|
2389
2990
|
}
|
|
2390
2991
|
/**
|
|
2391
|
-
* Equivalent to `
|
|
2992
|
+
* Equivalent to `fetchStaticIps`, but returns a NodeJS Stream object.
|
|
2392
2993
|
* @param {Object} request
|
|
2393
2994
|
* The request object that will be sent.
|
|
2394
2995
|
* @param {string} request.name
|
|
@@ -2410,18 +3011,20 @@ class DataMigrationServiceClient {
|
|
|
2410
3011
|
* for more details and examples.
|
|
2411
3012
|
*/
|
|
2412
3013
|
fetchStaticIpsStream(request, options) {
|
|
2413
|
-
var _a;
|
|
2414
3014
|
request = request || {};
|
|
2415
3015
|
options = options || {};
|
|
2416
3016
|
options.otherArgs = options.otherArgs || {};
|
|
2417
3017
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2418
3018
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2419
3019
|
this._gaxModule.routingHeader.fromParams({
|
|
2420
|
-
name:
|
|
3020
|
+
name: request.name ?? '',
|
|
2421
3021
|
});
|
|
2422
3022
|
const defaultCallSettings = this._defaults['fetchStaticIps'];
|
|
2423
3023
|
const callSettings = defaultCallSettings.merge(options);
|
|
2424
|
-
this.initialize()
|
|
3024
|
+
this.initialize().catch(err => {
|
|
3025
|
+
throw err;
|
|
3026
|
+
});
|
|
3027
|
+
this._log.info('fetchStaticIps stream %j', request);
|
|
2425
3028
|
return this.descriptors.page.fetchStaticIps.createStream(this.innerApiCalls.fetchStaticIps, request, callSettings);
|
|
2426
3029
|
}
|
|
2427
3030
|
/**
|
|
@@ -2450,18 +3053,20 @@ class DataMigrationServiceClient {
|
|
|
2450
3053
|
* region_tag:datamigration_v1_generated_DataMigrationService_FetchStaticIps_async
|
|
2451
3054
|
*/
|
|
2452
3055
|
fetchStaticIpsAsync(request, options) {
|
|
2453
|
-
var _a;
|
|
2454
3056
|
request = request || {};
|
|
2455
3057
|
options = options || {};
|
|
2456
3058
|
options.otherArgs = options.otherArgs || {};
|
|
2457
3059
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2458
3060
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2459
3061
|
this._gaxModule.routingHeader.fromParams({
|
|
2460
|
-
name:
|
|
3062
|
+
name: request.name ?? '',
|
|
2461
3063
|
});
|
|
2462
3064
|
const defaultCallSettings = this._defaults['fetchStaticIps'];
|
|
2463
3065
|
const callSettings = defaultCallSettings.merge(options);
|
|
2464
|
-
this.initialize()
|
|
3066
|
+
this.initialize().catch(err => {
|
|
3067
|
+
throw err;
|
|
3068
|
+
});
|
|
3069
|
+
this._log.info('fetchStaticIps iterate %j', request);
|
|
2465
3070
|
return this.descriptors.page.fetchStaticIps.asyncIterate(this.innerApiCalls['fetchStaticIps'], request, callSettings);
|
|
2466
3071
|
}
|
|
2467
3072
|
/**
|
|
@@ -2642,7 +3247,22 @@ class DataMigrationServiceClient {
|
|
|
2642
3247
|
* // doThingsWith(response)
|
|
2643
3248
|
* ```
|
|
2644
3249
|
*/
|
|
2645
|
-
getOperation(request,
|
|
3250
|
+
getOperation(request, optionsOrCallback, callback) {
|
|
3251
|
+
let options;
|
|
3252
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
3253
|
+
callback = optionsOrCallback;
|
|
3254
|
+
options = {};
|
|
3255
|
+
}
|
|
3256
|
+
else {
|
|
3257
|
+
options = optionsOrCallback;
|
|
3258
|
+
}
|
|
3259
|
+
options = options || {};
|
|
3260
|
+
options.otherArgs = options.otherArgs || {};
|
|
3261
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3262
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
3263
|
+
this._gaxModule.routingHeader.fromParams({
|
|
3264
|
+
name: request.name ?? '',
|
|
3265
|
+
});
|
|
2646
3266
|
return this.operationsClient.getOperation(request, options, callback);
|
|
2647
3267
|
}
|
|
2648
3268
|
/**
|
|
@@ -2676,6 +3296,13 @@ class DataMigrationServiceClient {
|
|
|
2676
3296
|
* ```
|
|
2677
3297
|
*/
|
|
2678
3298
|
listOperationsAsync(request, options) {
|
|
3299
|
+
options = options || {};
|
|
3300
|
+
options.otherArgs = options.otherArgs || {};
|
|
3301
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3302
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
3303
|
+
this._gaxModule.routingHeader.fromParams({
|
|
3304
|
+
name: request.name ?? '',
|
|
3305
|
+
});
|
|
2679
3306
|
return this.operationsClient.listOperationsAsync(request, options);
|
|
2680
3307
|
}
|
|
2681
3308
|
/**
|
|
@@ -2709,7 +3336,22 @@ class DataMigrationServiceClient {
|
|
|
2709
3336
|
* await client.cancelOperation({name: ''});
|
|
2710
3337
|
* ```
|
|
2711
3338
|
*/
|
|
2712
|
-
cancelOperation(request,
|
|
3339
|
+
cancelOperation(request, optionsOrCallback, callback) {
|
|
3340
|
+
let options;
|
|
3341
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
3342
|
+
callback = optionsOrCallback;
|
|
3343
|
+
options = {};
|
|
3344
|
+
}
|
|
3345
|
+
else {
|
|
3346
|
+
options = optionsOrCallback;
|
|
3347
|
+
}
|
|
3348
|
+
options = options || {};
|
|
3349
|
+
options.otherArgs = options.otherArgs || {};
|
|
3350
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3351
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
3352
|
+
this._gaxModule.routingHeader.fromParams({
|
|
3353
|
+
name: request.name ?? '',
|
|
3354
|
+
});
|
|
2713
3355
|
return this.operationsClient.cancelOperation(request, options, callback);
|
|
2714
3356
|
}
|
|
2715
3357
|
/**
|
|
@@ -2737,7 +3379,22 @@ class DataMigrationServiceClient {
|
|
|
2737
3379
|
* await client.deleteOperation({name: ''});
|
|
2738
3380
|
* ```
|
|
2739
3381
|
*/
|
|
2740
|
-
deleteOperation(request,
|
|
3382
|
+
deleteOperation(request, optionsOrCallback, callback) {
|
|
3383
|
+
let options;
|
|
3384
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
3385
|
+
callback = optionsOrCallback;
|
|
3386
|
+
options = {};
|
|
3387
|
+
}
|
|
3388
|
+
else {
|
|
3389
|
+
options = optionsOrCallback;
|
|
3390
|
+
}
|
|
3391
|
+
options = options || {};
|
|
3392
|
+
options.otherArgs = options.otherArgs || {};
|
|
3393
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3394
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
3395
|
+
this._gaxModule.routingHeader.fromParams({
|
|
3396
|
+
name: request.name ?? '',
|
|
3397
|
+
});
|
|
2741
3398
|
return this.operationsClient.deleteOperation(request, options, callback);
|
|
2742
3399
|
}
|
|
2743
3400
|
// --------------------
|
|
@@ -3050,6 +3707,7 @@ class DataMigrationServiceClient {
|
|
|
3050
3707
|
close() {
|
|
3051
3708
|
if (this.dataMigrationServiceStub && !this._terminated) {
|
|
3052
3709
|
return this.dataMigrationServiceStub.then(stub => {
|
|
3710
|
+
this._log.info('ending gRPC channel');
|
|
3053
3711
|
this._terminated = true;
|
|
3054
3712
|
stub.close();
|
|
3055
3713
|
this.iamClient.close();
|