@google-cloud/dms 4.1.2 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -3
- package/build/protos/protos.d.ts +1033 -20
- package/build/protos/protos.js +1 -68257
- package/build/protos/protos.json +368 -27
- package/build/src/v1/data_migration_service_client.d.ts +339 -339
- package/build/src/v1/data_migration_service_client.js +716 -347
- package/package.json +9 -12
|
@@ -99,17 +99,26 @@ class DataMigrationServiceClient {
|
|
|
99
99
|
constructor(opts, gaxInstance) {
|
|
100
100
|
// Ensure that options include all the required fields.
|
|
101
101
|
const staticMembers = this.constructor;
|
|
102
|
-
if (opts?.universe_domain &&
|
|
102
|
+
if (opts?.universe_domain &&
|
|
103
|
+
opts?.universeDomain &&
|
|
104
|
+
opts?.universe_domain !== opts?.universeDomain) {
|
|
103
105
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
|
104
106
|
}
|
|
105
|
-
const universeDomainEnvVar =
|
|
106
|
-
|
|
107
|
+
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
|
108
|
+
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
|
109
|
+
: undefined;
|
|
110
|
+
this._universeDomain =
|
|
111
|
+
opts?.universeDomain ??
|
|
112
|
+
opts?.universe_domain ??
|
|
113
|
+
universeDomainEnvVar ??
|
|
114
|
+
'googleapis.com';
|
|
107
115
|
this._servicePath = 'datamigration.' + this._universeDomain;
|
|
108
116
|
const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
|
|
109
117
|
this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
|
|
110
118
|
const port = opts?.port || staticMembers.port;
|
|
111
119
|
const clientConfig = opts?.clientConfig ?? {};
|
|
112
|
-
const fallback = opts?.fallback ??
|
|
120
|
+
const fallback = opts?.fallback ??
|
|
121
|
+
(typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
|
113
122
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
|
114
123
|
// Request numeric enum values if REST transport is used.
|
|
115
124
|
opts.numericEnums = true;
|
|
@@ -140,10 +149,7 @@ class DataMigrationServiceClient {
|
|
|
140
149
|
this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts);
|
|
141
150
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
|
142
151
|
// Determine the client header string.
|
|
143
|
-
const clientHeader = [
|
|
144
|
-
`gax/${this._gaxModule.version}`,
|
|
145
|
-
`gapic/${version}`,
|
|
146
|
-
];
|
|
152
|
+
const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
|
|
147
153
|
if (typeof process === 'object' && 'versions' in process) {
|
|
148
154
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
|
149
155
|
}
|
|
@@ -183,7 +189,7 @@ class DataMigrationServiceClient {
|
|
|
183
189
|
listConversionWorkspaces: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'conversionWorkspaces'),
|
|
184
190
|
listMappingRules: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'mappingRules'),
|
|
185
191
|
describeDatabaseEntities: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'databaseEntities'),
|
|
186
|
-
fetchStaticIps: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'staticIps')
|
|
192
|
+
fetchStaticIps: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'staticIps'),
|
|
187
193
|
};
|
|
188
194
|
const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
|
|
189
195
|
// This API contains "long-running operations", which return a
|
|
@@ -191,16 +197,94 @@ class DataMigrationServiceClient {
|
|
|
191
197
|
// rather than holding a request open.
|
|
192
198
|
const lroOptions = {
|
|
193
199
|
auth: this.auth,
|
|
194
|
-
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
|
|
200
|
+
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined,
|
|
195
201
|
};
|
|
196
202
|
if (opts.fallback) {
|
|
197
203
|
lroOptions.protoJson = protoFilesRoot;
|
|
198
|
-
lroOptions.httpRules = [
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
+
lroOptions.httpRules = [
|
|
205
|
+
{
|
|
206
|
+
selector: 'google.cloud.location.Locations.GetLocation',
|
|
207
|
+
get: '/v1/{name=projects/*/locations/*}',
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
selector: 'google.cloud.location.Locations.ListLocations',
|
|
211
|
+
get: '/v1/{name=projects/*}/locations',
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
selector: 'google.iam.v1.IAMPolicy.GetIamPolicy',
|
|
215
|
+
get: '/v1/{resource=projects/*/locations/*/connectionProfiles/*}:getIamPolicy',
|
|
216
|
+
additional_bindings: [
|
|
217
|
+
{
|
|
218
|
+
get: '/v1/{resource=projects/*/locations/*/migrationJobs/*}:getIamPolicy',
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
get: '/v1/{resource=projects/*/locations/*/conversionWorkspaces/*}:getIamPolicy',
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
get: '/v1/{resource=projects/*/locations/*/privateConnections/*}:getIamPolicy',
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
selector: 'google.iam.v1.IAMPolicy.SetIamPolicy',
|
|
230
|
+
post: '/v1/{resource=projects/*/locations/*/connectionProfiles/*}:setIamPolicy',
|
|
231
|
+
body: '*',
|
|
232
|
+
additional_bindings: [
|
|
233
|
+
{
|
|
234
|
+
post: '/v1/{resource=projects/*/locations/*/migrationJobs/*}:setIamPolicy',
|
|
235
|
+
body: '*',
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
post: '/v1/{resource=projects/*/locations/*/conversionWorkspaces/*}:setIamPolicy',
|
|
239
|
+
body: '*',
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
post: '/v1/{resource=projects/*/locations/*/privateConnections/*}:setIamPolicy',
|
|
243
|
+
body: '*',
|
|
244
|
+
},
|
|
245
|
+
],
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
selector: 'google.iam.v1.IAMPolicy.TestIamPermissions',
|
|
249
|
+
post: '/v1/{resource=projects/*/locations/*/migrationJobs/*}:testIamPermissions',
|
|
250
|
+
body: '*',
|
|
251
|
+
additional_bindings: [
|
|
252
|
+
{
|
|
253
|
+
post: '/v1/{resource=projects/*/locations/*/connectionProfiles/*}:testIamPermissions',
|
|
254
|
+
body: '*',
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
post: '/v1/{resource=projects/*/locations/*/conversionWorkspaces/*}:testIamPermissions',
|
|
258
|
+
body: '*',
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
post: '/v1/{resource=projects/*/locations/*/privateConnections/*}:testIamPermissions',
|
|
262
|
+
body: '*',
|
|
263
|
+
},
|
|
264
|
+
],
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
selector: 'google.longrunning.Operations.CancelOperation',
|
|
268
|
+
post: '/v1/{name=projects/*/locations/*/operations/*}:cancel',
|
|
269
|
+
body: '*',
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
selector: 'google.longrunning.Operations.DeleteOperation',
|
|
273
|
+
delete: '/v1/{name=projects/*/locations/*/operations/*}',
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
selector: 'google.longrunning.Operations.GetOperation',
|
|
277
|
+
get: '/v1/{name=projects/*/locations/*/operations/*}',
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
selector: 'google.longrunning.Operations.ListOperations',
|
|
281
|
+
get: '/v1/{name=projects/*/locations/*}/operations',
|
|
282
|
+
},
|
|
283
|
+
];
|
|
284
|
+
}
|
|
285
|
+
this.operationsClient = this._gaxModule
|
|
286
|
+
.lro(lroOptions)
|
|
287
|
+
.operationsClient(opts);
|
|
204
288
|
const createMigrationJobResponse = protoFilesRoot.lookup('.google.cloud.clouddms.v1.MigrationJob');
|
|
205
289
|
const createMigrationJobMetadata = protoFilesRoot.lookup('.google.cloud.clouddms.v1.OperationMetadata');
|
|
206
290
|
const updateMigrationJobResponse = protoFilesRoot.lookup('.google.cloud.clouddms.v1.MigrationJob');
|
|
@@ -270,7 +354,7 @@ class DataMigrationServiceClient {
|
|
|
270
354
|
convertConversionWorkspace: new this._gaxModule.LongrunningDescriptor(this.operationsClient, convertConversionWorkspaceResponse.decode.bind(convertConversionWorkspaceResponse), convertConversionWorkspaceMetadata.decode.bind(convertConversionWorkspaceMetadata)),
|
|
271
355
|
commitConversionWorkspace: new this._gaxModule.LongrunningDescriptor(this.operationsClient, commitConversionWorkspaceResponse.decode.bind(commitConversionWorkspaceResponse), commitConversionWorkspaceMetadata.decode.bind(commitConversionWorkspaceMetadata)),
|
|
272
356
|
rollbackConversionWorkspace: new this._gaxModule.LongrunningDescriptor(this.operationsClient, rollbackConversionWorkspaceResponse.decode.bind(rollbackConversionWorkspaceResponse), rollbackConversionWorkspaceMetadata.decode.bind(rollbackConversionWorkspaceMetadata)),
|
|
273
|
-
applyConversionWorkspace: new this._gaxModule.LongrunningDescriptor(this.operationsClient, applyConversionWorkspaceResponse.decode.bind(applyConversionWorkspaceResponse), applyConversionWorkspaceMetadata.decode.bind(applyConversionWorkspaceMetadata))
|
|
357
|
+
applyConversionWorkspace: new this._gaxModule.LongrunningDescriptor(this.operationsClient, applyConversionWorkspaceResponse.decode.bind(applyConversionWorkspaceResponse), applyConversionWorkspaceMetadata.decode.bind(applyConversionWorkspaceMetadata)),
|
|
274
358
|
};
|
|
275
359
|
// Put together the default options sent with requests.
|
|
276
360
|
this._defaults = this._gaxGrpc.constructSettings('google.cloud.clouddms.v1.DataMigrationService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
|
@@ -299,13 +383,55 @@ class DataMigrationServiceClient {
|
|
|
299
383
|
}
|
|
300
384
|
// Put together the "service stub" for
|
|
301
385
|
// google.cloud.clouddms.v1.DataMigrationService.
|
|
302
|
-
this.dataMigrationServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
|
303
|
-
this._protos.lookupService('google.cloud.clouddms.v1.DataMigrationService')
|
|
304
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
305
|
-
|
|
386
|
+
this.dataMigrationServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
|
387
|
+
? this._protos.lookupService('google.cloud.clouddms.v1.DataMigrationService')
|
|
388
|
+
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
389
|
+
this._protos.google.cloud.clouddms.v1.DataMigrationService, this._opts, this._providedCustomServicePath);
|
|
306
390
|
// Iterate over each of the methods that the service provides
|
|
307
391
|
// and create an API call method for each.
|
|
308
|
-
const dataMigrationServiceStubMethods = [
|
|
392
|
+
const dataMigrationServiceStubMethods = [
|
|
393
|
+
'listMigrationJobs',
|
|
394
|
+
'getMigrationJob',
|
|
395
|
+
'createMigrationJob',
|
|
396
|
+
'updateMigrationJob',
|
|
397
|
+
'deleteMigrationJob',
|
|
398
|
+
'startMigrationJob',
|
|
399
|
+
'stopMigrationJob',
|
|
400
|
+
'resumeMigrationJob',
|
|
401
|
+
'promoteMigrationJob',
|
|
402
|
+
'verifyMigrationJob',
|
|
403
|
+
'restartMigrationJob',
|
|
404
|
+
'generateSshScript',
|
|
405
|
+
'generateTcpProxyScript',
|
|
406
|
+
'listConnectionProfiles',
|
|
407
|
+
'getConnectionProfile',
|
|
408
|
+
'createConnectionProfile',
|
|
409
|
+
'updateConnectionProfile',
|
|
410
|
+
'deleteConnectionProfile',
|
|
411
|
+
'createPrivateConnection',
|
|
412
|
+
'getPrivateConnection',
|
|
413
|
+
'listPrivateConnections',
|
|
414
|
+
'deletePrivateConnection',
|
|
415
|
+
'getConversionWorkspace',
|
|
416
|
+
'listConversionWorkspaces',
|
|
417
|
+
'createConversionWorkspace',
|
|
418
|
+
'updateConversionWorkspace',
|
|
419
|
+
'deleteConversionWorkspace',
|
|
420
|
+
'createMappingRule',
|
|
421
|
+
'deleteMappingRule',
|
|
422
|
+
'listMappingRules',
|
|
423
|
+
'getMappingRule',
|
|
424
|
+
'seedConversionWorkspace',
|
|
425
|
+
'importMappingRules',
|
|
426
|
+
'convertConversionWorkspace',
|
|
427
|
+
'commitConversionWorkspace',
|
|
428
|
+
'rollbackConversionWorkspace',
|
|
429
|
+
'applyConversionWorkspace',
|
|
430
|
+
'describeDatabaseEntities',
|
|
431
|
+
'searchBackgroundJobs',
|
|
432
|
+
'describeConversionWorkspaceRevisions',
|
|
433
|
+
'fetchStaticIps',
|
|
434
|
+
];
|
|
309
435
|
for (const methodName of dataMigrationServiceStubMethods) {
|
|
310
436
|
const callPromise = this.dataMigrationServiceStub.then(stub => (...args) => {
|
|
311
437
|
if (this._terminated) {
|
|
@@ -330,7 +456,8 @@ class DataMigrationServiceClient {
|
|
|
330
456
|
* @returns {string} The DNS address for this service.
|
|
331
457
|
*/
|
|
332
458
|
static get servicePath() {
|
|
333
|
-
if (typeof process === 'object' &&
|
|
459
|
+
if (typeof process === 'object' &&
|
|
460
|
+
typeof process.emitWarning === 'function') {
|
|
334
461
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
335
462
|
}
|
|
336
463
|
return 'datamigration.googleapis.com';
|
|
@@ -341,7 +468,8 @@ class DataMigrationServiceClient {
|
|
|
341
468
|
* @returns {string} The DNS address for this service.
|
|
342
469
|
*/
|
|
343
470
|
static get apiEndpoint() {
|
|
344
|
-
if (typeof process === 'object' &&
|
|
471
|
+
if (typeof process === 'object' &&
|
|
472
|
+
typeof process.emitWarning === 'function') {
|
|
345
473
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
346
474
|
}
|
|
347
475
|
return 'datamigration.googleapis.com';
|
|
@@ -369,9 +497,7 @@ class DataMigrationServiceClient {
|
|
|
369
497
|
* @returns {string[]} List of default scopes.
|
|
370
498
|
*/
|
|
371
499
|
static get scopes() {
|
|
372
|
-
return [
|
|
373
|
-
'https://www.googleapis.com/auth/cloud-platform'
|
|
374
|
-
];
|
|
500
|
+
return ['https://www.googleapis.com/auth/cloud-platform'];
|
|
375
501
|
}
|
|
376
502
|
/**
|
|
377
503
|
* Return the project ID used by this class.
|
|
@@ -397,10 +523,13 @@ class DataMigrationServiceClient {
|
|
|
397
523
|
options = options || {};
|
|
398
524
|
options.otherArgs = options.otherArgs || {};
|
|
399
525
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
400
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
401
|
-
|
|
526
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
527
|
+
this._gaxModule.routingHeader.fromParams({
|
|
528
|
+
name: request.name ?? '',
|
|
529
|
+
});
|
|
530
|
+
this.initialize().catch(err => {
|
|
531
|
+
throw err;
|
|
402
532
|
});
|
|
403
|
-
this.initialize().catch(err => { throw err; });
|
|
404
533
|
this._log.info('getMigrationJob request %j', request);
|
|
405
534
|
const wrappedCallback = callback
|
|
406
535
|
? (error, response, options, rawResponse) => {
|
|
@@ -408,12 +537,16 @@ class DataMigrationServiceClient {
|
|
|
408
537
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
409
538
|
}
|
|
410
539
|
: undefined;
|
|
411
|
-
return this.innerApiCalls
|
|
540
|
+
return this.innerApiCalls
|
|
541
|
+
.getMigrationJob(request, options, wrappedCallback)
|
|
412
542
|
?.then(([response, options, rawResponse]) => {
|
|
413
543
|
this._log.info('getMigrationJob response %j', response);
|
|
414
544
|
return [response, options, rawResponse];
|
|
415
|
-
})
|
|
416
|
-
|
|
545
|
+
})
|
|
546
|
+
.catch((error) => {
|
|
547
|
+
if (error &&
|
|
548
|
+
'statusDetails' in error &&
|
|
549
|
+
error.statusDetails instanceof Array) {
|
|
417
550
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
418
551
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
419
552
|
}
|
|
@@ -433,10 +566,13 @@ class DataMigrationServiceClient {
|
|
|
433
566
|
options = options || {};
|
|
434
567
|
options.otherArgs = options.otherArgs || {};
|
|
435
568
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
436
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
437
|
-
|
|
569
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
570
|
+
this._gaxModule.routingHeader.fromParams({
|
|
571
|
+
migration_job: request.migrationJob ?? '',
|
|
572
|
+
});
|
|
573
|
+
this.initialize().catch(err => {
|
|
574
|
+
throw err;
|
|
438
575
|
});
|
|
439
|
-
this.initialize().catch(err => { throw err; });
|
|
440
576
|
this._log.info('generateSshScript request %j', request);
|
|
441
577
|
const wrappedCallback = callback
|
|
442
578
|
? (error, response, options, rawResponse) => {
|
|
@@ -444,12 +580,16 @@ class DataMigrationServiceClient {
|
|
|
444
580
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
445
581
|
}
|
|
446
582
|
: undefined;
|
|
447
|
-
return this.innerApiCalls
|
|
583
|
+
return this.innerApiCalls
|
|
584
|
+
.generateSshScript(request, options, wrappedCallback)
|
|
448
585
|
?.then(([response, options, rawResponse]) => {
|
|
449
586
|
this._log.info('generateSshScript response %j', response);
|
|
450
587
|
return [response, options, rawResponse];
|
|
451
|
-
})
|
|
452
|
-
|
|
588
|
+
})
|
|
589
|
+
.catch((error) => {
|
|
590
|
+
if (error &&
|
|
591
|
+
'statusDetails' in error &&
|
|
592
|
+
error.statusDetails instanceof Array) {
|
|
453
593
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
454
594
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
455
595
|
}
|
|
@@ -469,10 +609,13 @@ class DataMigrationServiceClient {
|
|
|
469
609
|
options = options || {};
|
|
470
610
|
options.otherArgs = options.otherArgs || {};
|
|
471
611
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
472
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
473
|
-
|
|
612
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
613
|
+
this._gaxModule.routingHeader.fromParams({
|
|
614
|
+
migration_job: request.migrationJob ?? '',
|
|
615
|
+
});
|
|
616
|
+
this.initialize().catch(err => {
|
|
617
|
+
throw err;
|
|
474
618
|
});
|
|
475
|
-
this.initialize().catch(err => { throw err; });
|
|
476
619
|
this._log.info('generateTcpProxyScript request %j', request);
|
|
477
620
|
const wrappedCallback = callback
|
|
478
621
|
? (error, response, options, rawResponse) => {
|
|
@@ -480,12 +623,16 @@ class DataMigrationServiceClient {
|
|
|
480
623
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
481
624
|
}
|
|
482
625
|
: undefined;
|
|
483
|
-
return this.innerApiCalls
|
|
626
|
+
return this.innerApiCalls
|
|
627
|
+
.generateTcpProxyScript(request, options, wrappedCallback)
|
|
484
628
|
?.then(([response, options, rawResponse]) => {
|
|
485
629
|
this._log.info('generateTcpProxyScript response %j', response);
|
|
486
630
|
return [response, options, rawResponse];
|
|
487
|
-
})
|
|
488
|
-
|
|
631
|
+
})
|
|
632
|
+
.catch((error) => {
|
|
633
|
+
if (error &&
|
|
634
|
+
'statusDetails' in error &&
|
|
635
|
+
error.statusDetails instanceof Array) {
|
|
489
636
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
490
637
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
491
638
|
}
|
|
@@ -505,10 +652,13 @@ class DataMigrationServiceClient {
|
|
|
505
652
|
options = options || {};
|
|
506
653
|
options.otherArgs = options.otherArgs || {};
|
|
507
654
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
508
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
509
|
-
|
|
655
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
656
|
+
this._gaxModule.routingHeader.fromParams({
|
|
657
|
+
name: request.name ?? '',
|
|
658
|
+
});
|
|
659
|
+
this.initialize().catch(err => {
|
|
660
|
+
throw err;
|
|
510
661
|
});
|
|
511
|
-
this.initialize().catch(err => { throw err; });
|
|
512
662
|
this._log.info('getConnectionProfile request %j', request);
|
|
513
663
|
const wrappedCallback = callback
|
|
514
664
|
? (error, response, options, rawResponse) => {
|
|
@@ -516,12 +666,16 @@ class DataMigrationServiceClient {
|
|
|
516
666
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
517
667
|
}
|
|
518
668
|
: undefined;
|
|
519
|
-
return this.innerApiCalls
|
|
669
|
+
return this.innerApiCalls
|
|
670
|
+
.getConnectionProfile(request, options, wrappedCallback)
|
|
520
671
|
?.then(([response, options, rawResponse]) => {
|
|
521
672
|
this._log.info('getConnectionProfile response %j', response);
|
|
522
673
|
return [response, options, rawResponse];
|
|
523
|
-
})
|
|
524
|
-
|
|
674
|
+
})
|
|
675
|
+
.catch((error) => {
|
|
676
|
+
if (error &&
|
|
677
|
+
'statusDetails' in error &&
|
|
678
|
+
error.statusDetails instanceof Array) {
|
|
525
679
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
526
680
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
527
681
|
}
|
|
@@ -541,10 +695,13 @@ class DataMigrationServiceClient {
|
|
|
541
695
|
options = options || {};
|
|
542
696
|
options.otherArgs = options.otherArgs || {};
|
|
543
697
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
544
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
545
|
-
|
|
698
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
699
|
+
this._gaxModule.routingHeader.fromParams({
|
|
700
|
+
name: request.name ?? '',
|
|
701
|
+
});
|
|
702
|
+
this.initialize().catch(err => {
|
|
703
|
+
throw err;
|
|
546
704
|
});
|
|
547
|
-
this.initialize().catch(err => { throw err; });
|
|
548
705
|
this._log.info('getPrivateConnection request %j', request);
|
|
549
706
|
const wrappedCallback = callback
|
|
550
707
|
? (error, response, options, rawResponse) => {
|
|
@@ -552,12 +709,16 @@ class DataMigrationServiceClient {
|
|
|
552
709
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
553
710
|
}
|
|
554
711
|
: undefined;
|
|
555
|
-
return this.innerApiCalls
|
|
712
|
+
return this.innerApiCalls
|
|
713
|
+
.getPrivateConnection(request, options, wrappedCallback)
|
|
556
714
|
?.then(([response, options, rawResponse]) => {
|
|
557
715
|
this._log.info('getPrivateConnection response %j', response);
|
|
558
716
|
return [response, options, rawResponse];
|
|
559
|
-
})
|
|
560
|
-
|
|
717
|
+
})
|
|
718
|
+
.catch((error) => {
|
|
719
|
+
if (error &&
|
|
720
|
+
'statusDetails' in error &&
|
|
721
|
+
error.statusDetails instanceof Array) {
|
|
561
722
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
562
723
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
563
724
|
}
|
|
@@ -577,10 +738,13 @@ class DataMigrationServiceClient {
|
|
|
577
738
|
options = options || {};
|
|
578
739
|
options.otherArgs = options.otherArgs || {};
|
|
579
740
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
580
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
581
|
-
|
|
741
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
742
|
+
this._gaxModule.routingHeader.fromParams({
|
|
743
|
+
name: request.name ?? '',
|
|
744
|
+
});
|
|
745
|
+
this.initialize().catch(err => {
|
|
746
|
+
throw err;
|
|
582
747
|
});
|
|
583
|
-
this.initialize().catch(err => { throw err; });
|
|
584
748
|
this._log.info('getConversionWorkspace request %j', request);
|
|
585
749
|
const wrappedCallback = callback
|
|
586
750
|
? (error, response, options, rawResponse) => {
|
|
@@ -588,12 +752,16 @@ class DataMigrationServiceClient {
|
|
|
588
752
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
589
753
|
}
|
|
590
754
|
: undefined;
|
|
591
|
-
return this.innerApiCalls
|
|
755
|
+
return this.innerApiCalls
|
|
756
|
+
.getConversionWorkspace(request, options, wrappedCallback)
|
|
592
757
|
?.then(([response, options, rawResponse]) => {
|
|
593
758
|
this._log.info('getConversionWorkspace response %j', response);
|
|
594
759
|
return [response, options, rawResponse];
|
|
595
|
-
})
|
|
596
|
-
|
|
760
|
+
})
|
|
761
|
+
.catch((error) => {
|
|
762
|
+
if (error &&
|
|
763
|
+
'statusDetails' in error &&
|
|
764
|
+
error.statusDetails instanceof Array) {
|
|
597
765
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
598
766
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
599
767
|
}
|
|
@@ -613,10 +781,13 @@ class DataMigrationServiceClient {
|
|
|
613
781
|
options = options || {};
|
|
614
782
|
options.otherArgs = options.otherArgs || {};
|
|
615
783
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
616
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
617
|
-
|
|
784
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
785
|
+
this._gaxModule.routingHeader.fromParams({
|
|
786
|
+
parent: request.parent ?? '',
|
|
787
|
+
});
|
|
788
|
+
this.initialize().catch(err => {
|
|
789
|
+
throw err;
|
|
618
790
|
});
|
|
619
|
-
this.initialize().catch(err => { throw err; });
|
|
620
791
|
this._log.info('createMappingRule request %j', request);
|
|
621
792
|
const wrappedCallback = callback
|
|
622
793
|
? (error, response, options, rawResponse) => {
|
|
@@ -624,12 +795,16 @@ class DataMigrationServiceClient {
|
|
|
624
795
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
625
796
|
}
|
|
626
797
|
: undefined;
|
|
627
|
-
return this.innerApiCalls
|
|
798
|
+
return this.innerApiCalls
|
|
799
|
+
.createMappingRule(request, options, wrappedCallback)
|
|
628
800
|
?.then(([response, options, rawResponse]) => {
|
|
629
801
|
this._log.info('createMappingRule response %j', response);
|
|
630
802
|
return [response, options, rawResponse];
|
|
631
|
-
})
|
|
632
|
-
|
|
803
|
+
})
|
|
804
|
+
.catch((error) => {
|
|
805
|
+
if (error &&
|
|
806
|
+
'statusDetails' in error &&
|
|
807
|
+
error.statusDetails instanceof Array) {
|
|
633
808
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
634
809
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
635
810
|
}
|
|
@@ -649,10 +824,13 @@ class DataMigrationServiceClient {
|
|
|
649
824
|
options = options || {};
|
|
650
825
|
options.otherArgs = options.otherArgs || {};
|
|
651
826
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
652
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
653
|
-
|
|
827
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
828
|
+
this._gaxModule.routingHeader.fromParams({
|
|
829
|
+
name: request.name ?? '',
|
|
830
|
+
});
|
|
831
|
+
this.initialize().catch(err => {
|
|
832
|
+
throw err;
|
|
654
833
|
});
|
|
655
|
-
this.initialize().catch(err => { throw err; });
|
|
656
834
|
this._log.info('deleteMappingRule request %j', request);
|
|
657
835
|
const wrappedCallback = callback
|
|
658
836
|
? (error, response, options, rawResponse) => {
|
|
@@ -660,12 +838,16 @@ class DataMigrationServiceClient {
|
|
|
660
838
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
661
839
|
}
|
|
662
840
|
: undefined;
|
|
663
|
-
return this.innerApiCalls
|
|
841
|
+
return this.innerApiCalls
|
|
842
|
+
.deleteMappingRule(request, options, wrappedCallback)
|
|
664
843
|
?.then(([response, options, rawResponse]) => {
|
|
665
844
|
this._log.info('deleteMappingRule response %j', response);
|
|
666
845
|
return [response, options, rawResponse];
|
|
667
|
-
})
|
|
668
|
-
|
|
846
|
+
})
|
|
847
|
+
.catch((error) => {
|
|
848
|
+
if (error &&
|
|
849
|
+
'statusDetails' in error &&
|
|
850
|
+
error.statusDetails instanceof Array) {
|
|
669
851
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
670
852
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
671
853
|
}
|
|
@@ -685,10 +867,13 @@ class DataMigrationServiceClient {
|
|
|
685
867
|
options = options || {};
|
|
686
868
|
options.otherArgs = options.otherArgs || {};
|
|
687
869
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
688
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
689
|
-
|
|
870
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
871
|
+
this._gaxModule.routingHeader.fromParams({
|
|
872
|
+
name: request.name ?? '',
|
|
873
|
+
});
|
|
874
|
+
this.initialize().catch(err => {
|
|
875
|
+
throw err;
|
|
690
876
|
});
|
|
691
|
-
this.initialize().catch(err => { throw err; });
|
|
692
877
|
this._log.info('getMappingRule request %j', request);
|
|
693
878
|
const wrappedCallback = callback
|
|
694
879
|
? (error, response, options, rawResponse) => {
|
|
@@ -696,12 +881,16 @@ class DataMigrationServiceClient {
|
|
|
696
881
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
697
882
|
}
|
|
698
883
|
: undefined;
|
|
699
|
-
return this.innerApiCalls
|
|
884
|
+
return this.innerApiCalls
|
|
885
|
+
.getMappingRule(request, options, wrappedCallback)
|
|
700
886
|
?.then(([response, options, rawResponse]) => {
|
|
701
887
|
this._log.info('getMappingRule response %j', response);
|
|
702
888
|
return [response, options, rawResponse];
|
|
703
|
-
})
|
|
704
|
-
|
|
889
|
+
})
|
|
890
|
+
.catch((error) => {
|
|
891
|
+
if (error &&
|
|
892
|
+
'statusDetails' in error &&
|
|
893
|
+
error.statusDetails instanceof Array) {
|
|
705
894
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
706
895
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
707
896
|
}
|
|
@@ -721,10 +910,13 @@ class DataMigrationServiceClient {
|
|
|
721
910
|
options = options || {};
|
|
722
911
|
options.otherArgs = options.otherArgs || {};
|
|
723
912
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
724
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
725
|
-
|
|
913
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
914
|
+
this._gaxModule.routingHeader.fromParams({
|
|
915
|
+
conversion_workspace: request.conversionWorkspace ?? '',
|
|
916
|
+
});
|
|
917
|
+
this.initialize().catch(err => {
|
|
918
|
+
throw err;
|
|
726
919
|
});
|
|
727
|
-
this.initialize().catch(err => { throw err; });
|
|
728
920
|
this._log.info('searchBackgroundJobs request %j', request);
|
|
729
921
|
const wrappedCallback = callback
|
|
730
922
|
? (error, response, options, rawResponse) => {
|
|
@@ -732,12 +924,16 @@ class DataMigrationServiceClient {
|
|
|
732
924
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
733
925
|
}
|
|
734
926
|
: undefined;
|
|
735
|
-
return this.innerApiCalls
|
|
927
|
+
return this.innerApiCalls
|
|
928
|
+
.searchBackgroundJobs(request, options, wrappedCallback)
|
|
736
929
|
?.then(([response, options, rawResponse]) => {
|
|
737
930
|
this._log.info('searchBackgroundJobs response %j', response);
|
|
738
931
|
return [response, options, rawResponse];
|
|
739
|
-
})
|
|
740
|
-
|
|
932
|
+
})
|
|
933
|
+
.catch((error) => {
|
|
934
|
+
if (error &&
|
|
935
|
+
'statusDetails' in error &&
|
|
936
|
+
error.statusDetails instanceof Array) {
|
|
741
937
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
742
938
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
743
939
|
}
|
|
@@ -757,10 +953,13 @@ class DataMigrationServiceClient {
|
|
|
757
953
|
options = options || {};
|
|
758
954
|
options.otherArgs = options.otherArgs || {};
|
|
759
955
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
760
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
761
|
-
|
|
956
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
957
|
+
this._gaxModule.routingHeader.fromParams({
|
|
958
|
+
conversion_workspace: request.conversionWorkspace ?? '',
|
|
959
|
+
});
|
|
960
|
+
this.initialize().catch(err => {
|
|
961
|
+
throw err;
|
|
762
962
|
});
|
|
763
|
-
this.initialize().catch(err => { throw err; });
|
|
764
963
|
this._log.info('describeConversionWorkspaceRevisions request %j', request);
|
|
765
964
|
const wrappedCallback = callback
|
|
766
965
|
? (error, response, options, rawResponse) => {
|
|
@@ -768,12 +967,16 @@ class DataMigrationServiceClient {
|
|
|
768
967
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
769
968
|
}
|
|
770
969
|
: undefined;
|
|
771
|
-
return this.innerApiCalls
|
|
970
|
+
return this.innerApiCalls
|
|
971
|
+
.describeConversionWorkspaceRevisions(request, options, wrappedCallback)
|
|
772
972
|
?.then(([response, options, rawResponse]) => {
|
|
773
973
|
this._log.info('describeConversionWorkspaceRevisions response %j', response);
|
|
774
974
|
return [response, options, rawResponse];
|
|
775
|
-
})
|
|
776
|
-
|
|
975
|
+
})
|
|
976
|
+
.catch((error) => {
|
|
977
|
+
if (error &&
|
|
978
|
+
'statusDetails' in error &&
|
|
979
|
+
error.statusDetails instanceof Array) {
|
|
777
980
|
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
778
981
|
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
779
982
|
}
|
|
@@ -793,10 +996,13 @@ class DataMigrationServiceClient {
|
|
|
793
996
|
options = options || {};
|
|
794
997
|
options.otherArgs = options.otherArgs || {};
|
|
795
998
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
796
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
797
|
-
|
|
999
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1000
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1001
|
+
parent: request.parent ?? '',
|
|
1002
|
+
});
|
|
1003
|
+
this.initialize().catch(err => {
|
|
1004
|
+
throw err;
|
|
798
1005
|
});
|
|
799
|
-
this.initialize().catch(err => { throw err; });
|
|
800
1006
|
const wrappedCallback = callback
|
|
801
1007
|
? (error, response, rawResponse, _) => {
|
|
802
1008
|
this._log.info('createMigrationJob response %j', rawResponse);
|
|
@@ -804,7 +1010,8 @@ class DataMigrationServiceClient {
|
|
|
804
1010
|
}
|
|
805
1011
|
: undefined;
|
|
806
1012
|
this._log.info('createMigrationJob request %j', request);
|
|
807
|
-
return this.innerApiCalls
|
|
1013
|
+
return this.innerApiCalls
|
|
1014
|
+
.createMigrationJob(request, options, wrappedCallback)
|
|
808
1015
|
?.then(([response, rawResponse, _]) => {
|
|
809
1016
|
this._log.info('createMigrationJob response %j', rawResponse);
|
|
810
1017
|
return [response, rawResponse, _];
|
|
@@ -841,10 +1048,13 @@ class DataMigrationServiceClient {
|
|
|
841
1048
|
options = options || {};
|
|
842
1049
|
options.otherArgs = options.otherArgs || {};
|
|
843
1050
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
844
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
845
|
-
|
|
1051
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1052
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1053
|
+
'migration_job.name': request.migrationJob.name ?? '',
|
|
1054
|
+
});
|
|
1055
|
+
this.initialize().catch(err => {
|
|
1056
|
+
throw err;
|
|
846
1057
|
});
|
|
847
|
-
this.initialize().catch(err => { throw err; });
|
|
848
1058
|
const wrappedCallback = callback
|
|
849
1059
|
? (error, response, rawResponse, _) => {
|
|
850
1060
|
this._log.info('updateMigrationJob response %j', rawResponse);
|
|
@@ -852,7 +1062,8 @@ class DataMigrationServiceClient {
|
|
|
852
1062
|
}
|
|
853
1063
|
: undefined;
|
|
854
1064
|
this._log.info('updateMigrationJob request %j', request);
|
|
855
|
-
return this.innerApiCalls
|
|
1065
|
+
return this.innerApiCalls
|
|
1066
|
+
.updateMigrationJob(request, options, wrappedCallback)
|
|
856
1067
|
?.then(([response, rawResponse, _]) => {
|
|
857
1068
|
this._log.info('updateMigrationJob response %j', rawResponse);
|
|
858
1069
|
return [response, rawResponse, _];
|
|
@@ -889,10 +1100,13 @@ class DataMigrationServiceClient {
|
|
|
889
1100
|
options = options || {};
|
|
890
1101
|
options.otherArgs = options.otherArgs || {};
|
|
891
1102
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
892
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
893
|
-
|
|
1103
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1104
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1105
|
+
name: request.name ?? '',
|
|
1106
|
+
});
|
|
1107
|
+
this.initialize().catch(err => {
|
|
1108
|
+
throw err;
|
|
894
1109
|
});
|
|
895
|
-
this.initialize().catch(err => { throw err; });
|
|
896
1110
|
const wrappedCallback = callback
|
|
897
1111
|
? (error, response, rawResponse, _) => {
|
|
898
1112
|
this._log.info('deleteMigrationJob response %j', rawResponse);
|
|
@@ -900,7 +1114,8 @@ class DataMigrationServiceClient {
|
|
|
900
1114
|
}
|
|
901
1115
|
: undefined;
|
|
902
1116
|
this._log.info('deleteMigrationJob request %j', request);
|
|
903
|
-
return this.innerApiCalls
|
|
1117
|
+
return this.innerApiCalls
|
|
1118
|
+
.deleteMigrationJob(request, options, wrappedCallback)
|
|
904
1119
|
?.then(([response, rawResponse, _]) => {
|
|
905
1120
|
this._log.info('deleteMigrationJob response %j', rawResponse);
|
|
906
1121
|
return [response, rawResponse, _];
|
|
@@ -937,10 +1152,13 @@ class DataMigrationServiceClient {
|
|
|
937
1152
|
options = options || {};
|
|
938
1153
|
options.otherArgs = options.otherArgs || {};
|
|
939
1154
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
940
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
941
|
-
|
|
1155
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1156
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1157
|
+
name: request.name ?? '',
|
|
1158
|
+
});
|
|
1159
|
+
this.initialize().catch(err => {
|
|
1160
|
+
throw err;
|
|
942
1161
|
});
|
|
943
|
-
this.initialize().catch(err => { throw err; });
|
|
944
1162
|
const wrappedCallback = callback
|
|
945
1163
|
? (error, response, rawResponse, _) => {
|
|
946
1164
|
this._log.info('startMigrationJob response %j', rawResponse);
|
|
@@ -948,7 +1166,8 @@ class DataMigrationServiceClient {
|
|
|
948
1166
|
}
|
|
949
1167
|
: undefined;
|
|
950
1168
|
this._log.info('startMigrationJob request %j', request);
|
|
951
|
-
return this.innerApiCalls
|
|
1169
|
+
return this.innerApiCalls
|
|
1170
|
+
.startMigrationJob(request, options, wrappedCallback)
|
|
952
1171
|
?.then(([response, rawResponse, _]) => {
|
|
953
1172
|
this._log.info('startMigrationJob response %j', rawResponse);
|
|
954
1173
|
return [response, rawResponse, _];
|
|
@@ -985,10 +1204,13 @@ class DataMigrationServiceClient {
|
|
|
985
1204
|
options = options || {};
|
|
986
1205
|
options.otherArgs = options.otherArgs || {};
|
|
987
1206
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
988
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
989
|
-
|
|
1207
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1208
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1209
|
+
name: request.name ?? '',
|
|
1210
|
+
});
|
|
1211
|
+
this.initialize().catch(err => {
|
|
1212
|
+
throw err;
|
|
990
1213
|
});
|
|
991
|
-
this.initialize().catch(err => { throw err; });
|
|
992
1214
|
const wrappedCallback = callback
|
|
993
1215
|
? (error, response, rawResponse, _) => {
|
|
994
1216
|
this._log.info('stopMigrationJob response %j', rawResponse);
|
|
@@ -996,7 +1218,8 @@ class DataMigrationServiceClient {
|
|
|
996
1218
|
}
|
|
997
1219
|
: undefined;
|
|
998
1220
|
this._log.info('stopMigrationJob request %j', request);
|
|
999
|
-
return this.innerApiCalls
|
|
1221
|
+
return this.innerApiCalls
|
|
1222
|
+
.stopMigrationJob(request, options, wrappedCallback)
|
|
1000
1223
|
?.then(([response, rawResponse, _]) => {
|
|
1001
1224
|
this._log.info('stopMigrationJob response %j', rawResponse);
|
|
1002
1225
|
return [response, rawResponse, _];
|
|
@@ -1033,10 +1256,13 @@ class DataMigrationServiceClient {
|
|
|
1033
1256
|
options = options || {};
|
|
1034
1257
|
options.otherArgs = options.otherArgs || {};
|
|
1035
1258
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1036
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1037
|
-
|
|
1259
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1260
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1261
|
+
name: request.name ?? '',
|
|
1262
|
+
});
|
|
1263
|
+
this.initialize().catch(err => {
|
|
1264
|
+
throw err;
|
|
1038
1265
|
});
|
|
1039
|
-
this.initialize().catch(err => { throw err; });
|
|
1040
1266
|
const wrappedCallback = callback
|
|
1041
1267
|
? (error, response, rawResponse, _) => {
|
|
1042
1268
|
this._log.info('resumeMigrationJob response %j', rawResponse);
|
|
@@ -1044,7 +1270,8 @@ class DataMigrationServiceClient {
|
|
|
1044
1270
|
}
|
|
1045
1271
|
: undefined;
|
|
1046
1272
|
this._log.info('resumeMigrationJob request %j', request);
|
|
1047
|
-
return this.innerApiCalls
|
|
1273
|
+
return this.innerApiCalls
|
|
1274
|
+
.resumeMigrationJob(request, options, wrappedCallback)
|
|
1048
1275
|
?.then(([response, rawResponse, _]) => {
|
|
1049
1276
|
this._log.info('resumeMigrationJob response %j', rawResponse);
|
|
1050
1277
|
return [response, rawResponse, _];
|
|
@@ -1081,10 +1308,13 @@ class DataMigrationServiceClient {
|
|
|
1081
1308
|
options = options || {};
|
|
1082
1309
|
options.otherArgs = options.otherArgs || {};
|
|
1083
1310
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1084
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1085
|
-
|
|
1311
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1312
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1313
|
+
name: request.name ?? '',
|
|
1314
|
+
});
|
|
1315
|
+
this.initialize().catch(err => {
|
|
1316
|
+
throw err;
|
|
1086
1317
|
});
|
|
1087
|
-
this.initialize().catch(err => { throw err; });
|
|
1088
1318
|
const wrappedCallback = callback
|
|
1089
1319
|
? (error, response, rawResponse, _) => {
|
|
1090
1320
|
this._log.info('promoteMigrationJob response %j', rawResponse);
|
|
@@ -1092,7 +1322,8 @@ class DataMigrationServiceClient {
|
|
|
1092
1322
|
}
|
|
1093
1323
|
: undefined;
|
|
1094
1324
|
this._log.info('promoteMigrationJob request %j', request);
|
|
1095
|
-
return this.innerApiCalls
|
|
1325
|
+
return this.innerApiCalls
|
|
1326
|
+
.promoteMigrationJob(request, options, wrappedCallback)
|
|
1096
1327
|
?.then(([response, rawResponse, _]) => {
|
|
1097
1328
|
this._log.info('promoteMigrationJob response %j', rawResponse);
|
|
1098
1329
|
return [response, rawResponse, _];
|
|
@@ -1129,10 +1360,13 @@ class DataMigrationServiceClient {
|
|
|
1129
1360
|
options = options || {};
|
|
1130
1361
|
options.otherArgs = options.otherArgs || {};
|
|
1131
1362
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1132
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1133
|
-
|
|
1363
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1364
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1365
|
+
name: request.name ?? '',
|
|
1366
|
+
});
|
|
1367
|
+
this.initialize().catch(err => {
|
|
1368
|
+
throw err;
|
|
1134
1369
|
});
|
|
1135
|
-
this.initialize().catch(err => { throw err; });
|
|
1136
1370
|
const wrappedCallback = callback
|
|
1137
1371
|
? (error, response, rawResponse, _) => {
|
|
1138
1372
|
this._log.info('verifyMigrationJob response %j', rawResponse);
|
|
@@ -1140,7 +1374,8 @@ class DataMigrationServiceClient {
|
|
|
1140
1374
|
}
|
|
1141
1375
|
: undefined;
|
|
1142
1376
|
this._log.info('verifyMigrationJob request %j', request);
|
|
1143
|
-
return this.innerApiCalls
|
|
1377
|
+
return this.innerApiCalls
|
|
1378
|
+
.verifyMigrationJob(request, options, wrappedCallback)
|
|
1144
1379
|
?.then(([response, rawResponse, _]) => {
|
|
1145
1380
|
this._log.info('verifyMigrationJob response %j', rawResponse);
|
|
1146
1381
|
return [response, rawResponse, _];
|
|
@@ -1177,10 +1412,13 @@ class DataMigrationServiceClient {
|
|
|
1177
1412
|
options = options || {};
|
|
1178
1413
|
options.otherArgs = options.otherArgs || {};
|
|
1179
1414
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1180
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1181
|
-
|
|
1415
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1416
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1417
|
+
name: request.name ?? '',
|
|
1418
|
+
});
|
|
1419
|
+
this.initialize().catch(err => {
|
|
1420
|
+
throw err;
|
|
1182
1421
|
});
|
|
1183
|
-
this.initialize().catch(err => { throw err; });
|
|
1184
1422
|
const wrappedCallback = callback
|
|
1185
1423
|
? (error, response, rawResponse, _) => {
|
|
1186
1424
|
this._log.info('restartMigrationJob response %j', rawResponse);
|
|
@@ -1188,7 +1426,8 @@ class DataMigrationServiceClient {
|
|
|
1188
1426
|
}
|
|
1189
1427
|
: undefined;
|
|
1190
1428
|
this._log.info('restartMigrationJob request %j', request);
|
|
1191
|
-
return this.innerApiCalls
|
|
1429
|
+
return this.innerApiCalls
|
|
1430
|
+
.restartMigrationJob(request, options, wrappedCallback)
|
|
1192
1431
|
?.then(([response, rawResponse, _]) => {
|
|
1193
1432
|
this._log.info('restartMigrationJob response %j', rawResponse);
|
|
1194
1433
|
return [response, rawResponse, _];
|
|
@@ -1225,10 +1464,13 @@ class DataMigrationServiceClient {
|
|
|
1225
1464
|
options = options || {};
|
|
1226
1465
|
options.otherArgs = options.otherArgs || {};
|
|
1227
1466
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1228
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1229
|
-
|
|
1467
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1468
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1469
|
+
parent: request.parent ?? '',
|
|
1470
|
+
});
|
|
1471
|
+
this.initialize().catch(err => {
|
|
1472
|
+
throw err;
|
|
1230
1473
|
});
|
|
1231
|
-
this.initialize().catch(err => { throw err; });
|
|
1232
1474
|
const wrappedCallback = callback
|
|
1233
1475
|
? (error, response, rawResponse, _) => {
|
|
1234
1476
|
this._log.info('createConnectionProfile response %j', rawResponse);
|
|
@@ -1236,7 +1478,8 @@ class DataMigrationServiceClient {
|
|
|
1236
1478
|
}
|
|
1237
1479
|
: undefined;
|
|
1238
1480
|
this._log.info('createConnectionProfile request %j', request);
|
|
1239
|
-
return this.innerApiCalls
|
|
1481
|
+
return this.innerApiCalls
|
|
1482
|
+
.createConnectionProfile(request, options, wrappedCallback)
|
|
1240
1483
|
?.then(([response, rawResponse, _]) => {
|
|
1241
1484
|
this._log.info('createConnectionProfile response %j', rawResponse);
|
|
1242
1485
|
return [response, rawResponse, _];
|
|
@@ -1273,10 +1516,13 @@ class DataMigrationServiceClient {
|
|
|
1273
1516
|
options = options || {};
|
|
1274
1517
|
options.otherArgs = options.otherArgs || {};
|
|
1275
1518
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1276
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1277
|
-
|
|
1519
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1520
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1521
|
+
'connection_profile.name': request.connectionProfile.name ?? '',
|
|
1522
|
+
});
|
|
1523
|
+
this.initialize().catch(err => {
|
|
1524
|
+
throw err;
|
|
1278
1525
|
});
|
|
1279
|
-
this.initialize().catch(err => { throw err; });
|
|
1280
1526
|
const wrappedCallback = callback
|
|
1281
1527
|
? (error, response, rawResponse, _) => {
|
|
1282
1528
|
this._log.info('updateConnectionProfile response %j', rawResponse);
|
|
@@ -1284,7 +1530,8 @@ class DataMigrationServiceClient {
|
|
|
1284
1530
|
}
|
|
1285
1531
|
: undefined;
|
|
1286
1532
|
this._log.info('updateConnectionProfile request %j', request);
|
|
1287
|
-
return this.innerApiCalls
|
|
1533
|
+
return this.innerApiCalls
|
|
1534
|
+
.updateConnectionProfile(request, options, wrappedCallback)
|
|
1288
1535
|
?.then(([response, rawResponse, _]) => {
|
|
1289
1536
|
this._log.info('updateConnectionProfile response %j', rawResponse);
|
|
1290
1537
|
return [response, rawResponse, _];
|
|
@@ -1321,10 +1568,13 @@ class DataMigrationServiceClient {
|
|
|
1321
1568
|
options = options || {};
|
|
1322
1569
|
options.otherArgs = options.otherArgs || {};
|
|
1323
1570
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1324
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1325
|
-
|
|
1571
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1572
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1573
|
+
name: request.name ?? '',
|
|
1574
|
+
});
|
|
1575
|
+
this.initialize().catch(err => {
|
|
1576
|
+
throw err;
|
|
1326
1577
|
});
|
|
1327
|
-
this.initialize().catch(err => { throw err; });
|
|
1328
1578
|
const wrappedCallback = callback
|
|
1329
1579
|
? (error, response, rawResponse, _) => {
|
|
1330
1580
|
this._log.info('deleteConnectionProfile response %j', rawResponse);
|
|
@@ -1332,7 +1582,8 @@ class DataMigrationServiceClient {
|
|
|
1332
1582
|
}
|
|
1333
1583
|
: undefined;
|
|
1334
1584
|
this._log.info('deleteConnectionProfile request %j', request);
|
|
1335
|
-
return this.innerApiCalls
|
|
1585
|
+
return this.innerApiCalls
|
|
1586
|
+
.deleteConnectionProfile(request, options, wrappedCallback)
|
|
1336
1587
|
?.then(([response, rawResponse, _]) => {
|
|
1337
1588
|
this._log.info('deleteConnectionProfile response %j', rawResponse);
|
|
1338
1589
|
return [response, rawResponse, _];
|
|
@@ -1369,10 +1620,13 @@ class DataMigrationServiceClient {
|
|
|
1369
1620
|
options = options || {};
|
|
1370
1621
|
options.otherArgs = options.otherArgs || {};
|
|
1371
1622
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1372
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1373
|
-
|
|
1623
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1624
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1625
|
+
parent: request.parent ?? '',
|
|
1626
|
+
});
|
|
1627
|
+
this.initialize().catch(err => {
|
|
1628
|
+
throw err;
|
|
1374
1629
|
});
|
|
1375
|
-
this.initialize().catch(err => { throw err; });
|
|
1376
1630
|
const wrappedCallback = callback
|
|
1377
1631
|
? (error, response, rawResponse, _) => {
|
|
1378
1632
|
this._log.info('createPrivateConnection response %j', rawResponse);
|
|
@@ -1380,7 +1634,8 @@ class DataMigrationServiceClient {
|
|
|
1380
1634
|
}
|
|
1381
1635
|
: undefined;
|
|
1382
1636
|
this._log.info('createPrivateConnection request %j', request);
|
|
1383
|
-
return this.innerApiCalls
|
|
1637
|
+
return this.innerApiCalls
|
|
1638
|
+
.createPrivateConnection(request, options, wrappedCallback)
|
|
1384
1639
|
?.then(([response, rawResponse, _]) => {
|
|
1385
1640
|
this._log.info('createPrivateConnection response %j', rawResponse);
|
|
1386
1641
|
return [response, rawResponse, _];
|
|
@@ -1417,10 +1672,13 @@ class DataMigrationServiceClient {
|
|
|
1417
1672
|
options = options || {};
|
|
1418
1673
|
options.otherArgs = options.otherArgs || {};
|
|
1419
1674
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1420
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1421
|
-
|
|
1675
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1676
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1677
|
+
name: request.name ?? '',
|
|
1678
|
+
});
|
|
1679
|
+
this.initialize().catch(err => {
|
|
1680
|
+
throw err;
|
|
1422
1681
|
});
|
|
1423
|
-
this.initialize().catch(err => { throw err; });
|
|
1424
1682
|
const wrappedCallback = callback
|
|
1425
1683
|
? (error, response, rawResponse, _) => {
|
|
1426
1684
|
this._log.info('deletePrivateConnection response %j', rawResponse);
|
|
@@ -1428,7 +1686,8 @@ class DataMigrationServiceClient {
|
|
|
1428
1686
|
}
|
|
1429
1687
|
: undefined;
|
|
1430
1688
|
this._log.info('deletePrivateConnection request %j', request);
|
|
1431
|
-
return this.innerApiCalls
|
|
1689
|
+
return this.innerApiCalls
|
|
1690
|
+
.deletePrivateConnection(request, options, wrappedCallback)
|
|
1432
1691
|
?.then(([response, rawResponse, _]) => {
|
|
1433
1692
|
this._log.info('deletePrivateConnection response %j', rawResponse);
|
|
1434
1693
|
return [response, rawResponse, _];
|
|
@@ -1465,10 +1724,13 @@ class DataMigrationServiceClient {
|
|
|
1465
1724
|
options = options || {};
|
|
1466
1725
|
options.otherArgs = options.otherArgs || {};
|
|
1467
1726
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1468
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1469
|
-
|
|
1727
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1728
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1729
|
+
parent: request.parent ?? '',
|
|
1730
|
+
});
|
|
1731
|
+
this.initialize().catch(err => {
|
|
1732
|
+
throw err;
|
|
1470
1733
|
});
|
|
1471
|
-
this.initialize().catch(err => { throw err; });
|
|
1472
1734
|
const wrappedCallback = callback
|
|
1473
1735
|
? (error, response, rawResponse, _) => {
|
|
1474
1736
|
this._log.info('createConversionWorkspace response %j', rawResponse);
|
|
@@ -1476,7 +1738,8 @@ class DataMigrationServiceClient {
|
|
|
1476
1738
|
}
|
|
1477
1739
|
: undefined;
|
|
1478
1740
|
this._log.info('createConversionWorkspace request %j', request);
|
|
1479
|
-
return this.innerApiCalls
|
|
1741
|
+
return this.innerApiCalls
|
|
1742
|
+
.createConversionWorkspace(request, options, wrappedCallback)
|
|
1480
1743
|
?.then(([response, rawResponse, _]) => {
|
|
1481
1744
|
this._log.info('createConversionWorkspace response %j', rawResponse);
|
|
1482
1745
|
return [response, rawResponse, _];
|
|
@@ -1513,10 +1776,13 @@ class DataMigrationServiceClient {
|
|
|
1513
1776
|
options = options || {};
|
|
1514
1777
|
options.otherArgs = options.otherArgs || {};
|
|
1515
1778
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1516
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1517
|
-
|
|
1779
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1780
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1781
|
+
'conversion_workspace.name': request.conversionWorkspace.name ?? '',
|
|
1782
|
+
});
|
|
1783
|
+
this.initialize().catch(err => {
|
|
1784
|
+
throw err;
|
|
1518
1785
|
});
|
|
1519
|
-
this.initialize().catch(err => { throw err; });
|
|
1520
1786
|
const wrappedCallback = callback
|
|
1521
1787
|
? (error, response, rawResponse, _) => {
|
|
1522
1788
|
this._log.info('updateConversionWorkspace response %j', rawResponse);
|
|
@@ -1524,7 +1790,8 @@ class DataMigrationServiceClient {
|
|
|
1524
1790
|
}
|
|
1525
1791
|
: undefined;
|
|
1526
1792
|
this._log.info('updateConversionWorkspace request %j', request);
|
|
1527
|
-
return this.innerApiCalls
|
|
1793
|
+
return this.innerApiCalls
|
|
1794
|
+
.updateConversionWorkspace(request, options, wrappedCallback)
|
|
1528
1795
|
?.then(([response, rawResponse, _]) => {
|
|
1529
1796
|
this._log.info('updateConversionWorkspace response %j', rawResponse);
|
|
1530
1797
|
return [response, rawResponse, _];
|
|
@@ -1561,10 +1828,13 @@ class DataMigrationServiceClient {
|
|
|
1561
1828
|
options = options || {};
|
|
1562
1829
|
options.otherArgs = options.otherArgs || {};
|
|
1563
1830
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1564
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1565
|
-
|
|
1831
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1832
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1833
|
+
name: request.name ?? '',
|
|
1834
|
+
});
|
|
1835
|
+
this.initialize().catch(err => {
|
|
1836
|
+
throw err;
|
|
1566
1837
|
});
|
|
1567
|
-
this.initialize().catch(err => { throw err; });
|
|
1568
1838
|
const wrappedCallback = callback
|
|
1569
1839
|
? (error, response, rawResponse, _) => {
|
|
1570
1840
|
this._log.info('deleteConversionWorkspace response %j', rawResponse);
|
|
@@ -1572,7 +1842,8 @@ class DataMigrationServiceClient {
|
|
|
1572
1842
|
}
|
|
1573
1843
|
: undefined;
|
|
1574
1844
|
this._log.info('deleteConversionWorkspace request %j', request);
|
|
1575
|
-
return this.innerApiCalls
|
|
1845
|
+
return this.innerApiCalls
|
|
1846
|
+
.deleteConversionWorkspace(request, options, wrappedCallback)
|
|
1576
1847
|
?.then(([response, rawResponse, _]) => {
|
|
1577
1848
|
this._log.info('deleteConversionWorkspace response %j', rawResponse);
|
|
1578
1849
|
return [response, rawResponse, _];
|
|
@@ -1609,10 +1880,13 @@ class DataMigrationServiceClient {
|
|
|
1609
1880
|
options = options || {};
|
|
1610
1881
|
options.otherArgs = options.otherArgs || {};
|
|
1611
1882
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1612
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1613
|
-
|
|
1883
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1884
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1885
|
+
name: request.name ?? '',
|
|
1886
|
+
});
|
|
1887
|
+
this.initialize().catch(err => {
|
|
1888
|
+
throw err;
|
|
1614
1889
|
});
|
|
1615
|
-
this.initialize().catch(err => { throw err; });
|
|
1616
1890
|
const wrappedCallback = callback
|
|
1617
1891
|
? (error, response, rawResponse, _) => {
|
|
1618
1892
|
this._log.info('seedConversionWorkspace response %j', rawResponse);
|
|
@@ -1620,7 +1894,8 @@ class DataMigrationServiceClient {
|
|
|
1620
1894
|
}
|
|
1621
1895
|
: undefined;
|
|
1622
1896
|
this._log.info('seedConversionWorkspace request %j', request);
|
|
1623
|
-
return this.innerApiCalls
|
|
1897
|
+
return this.innerApiCalls
|
|
1898
|
+
.seedConversionWorkspace(request, options, wrappedCallback)
|
|
1624
1899
|
?.then(([response, rawResponse, _]) => {
|
|
1625
1900
|
this._log.info('seedConversionWorkspace response %j', rawResponse);
|
|
1626
1901
|
return [response, rawResponse, _];
|
|
@@ -1657,10 +1932,13 @@ class DataMigrationServiceClient {
|
|
|
1657
1932
|
options = options || {};
|
|
1658
1933
|
options.otherArgs = options.otherArgs || {};
|
|
1659
1934
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1660
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1661
|
-
|
|
1935
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1936
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1937
|
+
parent: request.parent ?? '',
|
|
1938
|
+
});
|
|
1939
|
+
this.initialize().catch(err => {
|
|
1940
|
+
throw err;
|
|
1662
1941
|
});
|
|
1663
|
-
this.initialize().catch(err => { throw err; });
|
|
1664
1942
|
const wrappedCallback = callback
|
|
1665
1943
|
? (error, response, rawResponse, _) => {
|
|
1666
1944
|
this._log.info('importMappingRules response %j', rawResponse);
|
|
@@ -1668,7 +1946,8 @@ class DataMigrationServiceClient {
|
|
|
1668
1946
|
}
|
|
1669
1947
|
: undefined;
|
|
1670
1948
|
this._log.info('importMappingRules request %j', request);
|
|
1671
|
-
return this.innerApiCalls
|
|
1949
|
+
return this.innerApiCalls
|
|
1950
|
+
.importMappingRules(request, options, wrappedCallback)
|
|
1672
1951
|
?.then(([response, rawResponse, _]) => {
|
|
1673
1952
|
this._log.info('importMappingRules response %j', rawResponse);
|
|
1674
1953
|
return [response, rawResponse, _];
|
|
@@ -1705,10 +1984,13 @@ class DataMigrationServiceClient {
|
|
|
1705
1984
|
options = options || {};
|
|
1706
1985
|
options.otherArgs = options.otherArgs || {};
|
|
1707
1986
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1708
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1709
|
-
|
|
1987
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1988
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1989
|
+
name: request.name ?? '',
|
|
1990
|
+
});
|
|
1991
|
+
this.initialize().catch(err => {
|
|
1992
|
+
throw err;
|
|
1710
1993
|
});
|
|
1711
|
-
this.initialize().catch(err => { throw err; });
|
|
1712
1994
|
const wrappedCallback = callback
|
|
1713
1995
|
? (error, response, rawResponse, _) => {
|
|
1714
1996
|
this._log.info('convertConversionWorkspace response %j', rawResponse);
|
|
@@ -1716,7 +1998,8 @@ class DataMigrationServiceClient {
|
|
|
1716
1998
|
}
|
|
1717
1999
|
: undefined;
|
|
1718
2000
|
this._log.info('convertConversionWorkspace request %j', request);
|
|
1719
|
-
return this.innerApiCalls
|
|
2001
|
+
return this.innerApiCalls
|
|
2002
|
+
.convertConversionWorkspace(request, options, wrappedCallback)
|
|
1720
2003
|
?.then(([response, rawResponse, _]) => {
|
|
1721
2004
|
this._log.info('convertConversionWorkspace response %j', rawResponse);
|
|
1722
2005
|
return [response, rawResponse, _];
|
|
@@ -1753,10 +2036,13 @@ class DataMigrationServiceClient {
|
|
|
1753
2036
|
options = options || {};
|
|
1754
2037
|
options.otherArgs = options.otherArgs || {};
|
|
1755
2038
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1756
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1757
|
-
|
|
2039
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2040
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2041
|
+
name: request.name ?? '',
|
|
2042
|
+
});
|
|
2043
|
+
this.initialize().catch(err => {
|
|
2044
|
+
throw err;
|
|
1758
2045
|
});
|
|
1759
|
-
this.initialize().catch(err => { throw err; });
|
|
1760
2046
|
const wrappedCallback = callback
|
|
1761
2047
|
? (error, response, rawResponse, _) => {
|
|
1762
2048
|
this._log.info('commitConversionWorkspace response %j', rawResponse);
|
|
@@ -1764,7 +2050,8 @@ class DataMigrationServiceClient {
|
|
|
1764
2050
|
}
|
|
1765
2051
|
: undefined;
|
|
1766
2052
|
this._log.info('commitConversionWorkspace request %j', request);
|
|
1767
|
-
return this.innerApiCalls
|
|
2053
|
+
return this.innerApiCalls
|
|
2054
|
+
.commitConversionWorkspace(request, options, wrappedCallback)
|
|
1768
2055
|
?.then(([response, rawResponse, _]) => {
|
|
1769
2056
|
this._log.info('commitConversionWorkspace response %j', rawResponse);
|
|
1770
2057
|
return [response, rawResponse, _];
|
|
@@ -1801,10 +2088,13 @@ class DataMigrationServiceClient {
|
|
|
1801
2088
|
options = options || {};
|
|
1802
2089
|
options.otherArgs = options.otherArgs || {};
|
|
1803
2090
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1804
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1805
|
-
|
|
2091
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2092
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2093
|
+
name: request.name ?? '',
|
|
2094
|
+
});
|
|
2095
|
+
this.initialize().catch(err => {
|
|
2096
|
+
throw err;
|
|
1806
2097
|
});
|
|
1807
|
-
this.initialize().catch(err => { throw err; });
|
|
1808
2098
|
const wrappedCallback = callback
|
|
1809
2099
|
? (error, response, rawResponse, _) => {
|
|
1810
2100
|
this._log.info('rollbackConversionWorkspace response %j', rawResponse);
|
|
@@ -1812,7 +2102,8 @@ class DataMigrationServiceClient {
|
|
|
1812
2102
|
}
|
|
1813
2103
|
: undefined;
|
|
1814
2104
|
this._log.info('rollbackConversionWorkspace request %j', request);
|
|
1815
|
-
return this.innerApiCalls
|
|
2105
|
+
return this.innerApiCalls
|
|
2106
|
+
.rollbackConversionWorkspace(request, options, wrappedCallback)
|
|
1816
2107
|
?.then(([response, rawResponse, _]) => {
|
|
1817
2108
|
this._log.info('rollbackConversionWorkspace response %j', rawResponse);
|
|
1818
2109
|
return [response, rawResponse, _];
|
|
@@ -1849,10 +2140,13 @@ class DataMigrationServiceClient {
|
|
|
1849
2140
|
options = options || {};
|
|
1850
2141
|
options.otherArgs = options.otherArgs || {};
|
|
1851
2142
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1852
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1853
|
-
|
|
2143
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2144
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2145
|
+
name: request.name ?? '',
|
|
2146
|
+
});
|
|
2147
|
+
this.initialize().catch(err => {
|
|
2148
|
+
throw err;
|
|
1854
2149
|
});
|
|
1855
|
-
this.initialize().catch(err => { throw err; });
|
|
1856
2150
|
const wrappedCallback = callback
|
|
1857
2151
|
? (error, response, rawResponse, _) => {
|
|
1858
2152
|
this._log.info('applyConversionWorkspace response %j', rawResponse);
|
|
@@ -1860,7 +2154,8 @@ class DataMigrationServiceClient {
|
|
|
1860
2154
|
}
|
|
1861
2155
|
: undefined;
|
|
1862
2156
|
this._log.info('applyConversionWorkspace request %j', request);
|
|
1863
|
-
return this.innerApiCalls
|
|
2157
|
+
return this.innerApiCalls
|
|
2158
|
+
.applyConversionWorkspace(request, options, wrappedCallback)
|
|
1864
2159
|
?.then(([response, rawResponse, _]) => {
|
|
1865
2160
|
this._log.info('applyConversionWorkspace response %j', rawResponse);
|
|
1866
2161
|
return [response, rawResponse, _];
|
|
@@ -1897,10 +2192,13 @@ class DataMigrationServiceClient {
|
|
|
1897
2192
|
options = options || {};
|
|
1898
2193
|
options.otherArgs = options.otherArgs || {};
|
|
1899
2194
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1900
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1901
|
-
|
|
2195
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2196
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2197
|
+
parent: request.parent ?? '',
|
|
2198
|
+
});
|
|
2199
|
+
this.initialize().catch(err => {
|
|
2200
|
+
throw err;
|
|
1902
2201
|
});
|
|
1903
|
-
this.initialize().catch(err => { throw err; });
|
|
1904
2202
|
const wrappedCallback = callback
|
|
1905
2203
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
1906
2204
|
this._log.info('listMigrationJobs values %j', values);
|
|
@@ -1961,12 +2259,15 @@ class DataMigrationServiceClient {
|
|
|
1961
2259
|
options = options || {};
|
|
1962
2260
|
options.otherArgs = options.otherArgs || {};
|
|
1963
2261
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1964
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1965
|
-
|
|
1966
|
-
|
|
2262
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2263
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2264
|
+
parent: request.parent ?? '',
|
|
2265
|
+
});
|
|
1967
2266
|
const defaultCallSettings = this._defaults['listMigrationJobs'];
|
|
1968
2267
|
const callSettings = defaultCallSettings.merge(options);
|
|
1969
|
-
this.initialize().catch(err => {
|
|
2268
|
+
this.initialize().catch(err => {
|
|
2269
|
+
throw err;
|
|
2270
|
+
});
|
|
1970
2271
|
this._log.info('listMigrationJobs stream %j', request);
|
|
1971
2272
|
return this.descriptors.page.listMigrationJobs.createStream(this.innerApiCalls.listMigrationJobs, request, callSettings);
|
|
1972
2273
|
}
|
|
@@ -2019,12 +2320,15 @@ class DataMigrationServiceClient {
|
|
|
2019
2320
|
options = options || {};
|
|
2020
2321
|
options.otherArgs = options.otherArgs || {};
|
|
2021
2322
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2022
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2023
|
-
|
|
2024
|
-
|
|
2323
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2324
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2325
|
+
parent: request.parent ?? '',
|
|
2326
|
+
});
|
|
2025
2327
|
const defaultCallSettings = this._defaults['listMigrationJobs'];
|
|
2026
2328
|
const callSettings = defaultCallSettings.merge(options);
|
|
2027
|
-
this.initialize().catch(err => {
|
|
2329
|
+
this.initialize().catch(err => {
|
|
2330
|
+
throw err;
|
|
2331
|
+
});
|
|
2028
2332
|
this._log.info('listMigrationJobs iterate %j', request);
|
|
2029
2333
|
return this.descriptors.page.listMigrationJobs.asyncIterate(this.innerApiCalls['listMigrationJobs'], request, callSettings);
|
|
2030
2334
|
}
|
|
@@ -2041,10 +2345,13 @@ class DataMigrationServiceClient {
|
|
|
2041
2345
|
options = options || {};
|
|
2042
2346
|
options.otherArgs = options.otherArgs || {};
|
|
2043
2347
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2044
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2045
|
-
|
|
2348
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2349
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2350
|
+
parent: request.parent ?? '',
|
|
2351
|
+
});
|
|
2352
|
+
this.initialize().catch(err => {
|
|
2353
|
+
throw err;
|
|
2046
2354
|
});
|
|
2047
|
-
this.initialize().catch(err => { throw err; });
|
|
2048
2355
|
const wrappedCallback = callback
|
|
2049
2356
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2050
2357
|
this._log.info('listConnectionProfiles values %j', values);
|
|
@@ -2104,12 +2411,15 @@ class DataMigrationServiceClient {
|
|
|
2104
2411
|
options = options || {};
|
|
2105
2412
|
options.otherArgs = options.otherArgs || {};
|
|
2106
2413
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2107
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2108
|
-
|
|
2109
|
-
|
|
2414
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2415
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2416
|
+
parent: request.parent ?? '',
|
|
2417
|
+
});
|
|
2110
2418
|
const defaultCallSettings = this._defaults['listConnectionProfiles'];
|
|
2111
2419
|
const callSettings = defaultCallSettings.merge(options);
|
|
2112
|
-
this.initialize().catch(err => {
|
|
2420
|
+
this.initialize().catch(err => {
|
|
2421
|
+
throw err;
|
|
2422
|
+
});
|
|
2113
2423
|
this._log.info('listConnectionProfiles stream %j', request);
|
|
2114
2424
|
return this.descriptors.page.listConnectionProfiles.createStream(this.innerApiCalls.listConnectionProfiles, request, callSettings);
|
|
2115
2425
|
}
|
|
@@ -2161,12 +2471,15 @@ class DataMigrationServiceClient {
|
|
|
2161
2471
|
options = options || {};
|
|
2162
2472
|
options.otherArgs = options.otherArgs || {};
|
|
2163
2473
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2164
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2165
|
-
|
|
2166
|
-
|
|
2474
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2475
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2476
|
+
parent: request.parent ?? '',
|
|
2477
|
+
});
|
|
2167
2478
|
const defaultCallSettings = this._defaults['listConnectionProfiles'];
|
|
2168
2479
|
const callSettings = defaultCallSettings.merge(options);
|
|
2169
|
-
this.initialize().catch(err => {
|
|
2480
|
+
this.initialize().catch(err => {
|
|
2481
|
+
throw err;
|
|
2482
|
+
});
|
|
2170
2483
|
this._log.info('listConnectionProfiles iterate %j', request);
|
|
2171
2484
|
return this.descriptors.page.listConnectionProfiles.asyncIterate(this.innerApiCalls['listConnectionProfiles'], request, callSettings);
|
|
2172
2485
|
}
|
|
@@ -2183,10 +2496,13 @@ class DataMigrationServiceClient {
|
|
|
2183
2496
|
options = options || {};
|
|
2184
2497
|
options.otherArgs = options.otherArgs || {};
|
|
2185
2498
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2186
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2187
|
-
|
|
2499
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2500
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2501
|
+
parent: request.parent ?? '',
|
|
2502
|
+
});
|
|
2503
|
+
this.initialize().catch(err => {
|
|
2504
|
+
throw err;
|
|
2188
2505
|
});
|
|
2189
|
-
this.initialize().catch(err => { throw err; });
|
|
2190
2506
|
const wrappedCallback = callback
|
|
2191
2507
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2192
2508
|
this._log.info('listPrivateConnections values %j', values);
|
|
@@ -2243,12 +2559,15 @@ class DataMigrationServiceClient {
|
|
|
2243
2559
|
options = options || {};
|
|
2244
2560
|
options.otherArgs = options.otherArgs || {};
|
|
2245
2561
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2246
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2247
|
-
|
|
2248
|
-
|
|
2562
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2563
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2564
|
+
parent: request.parent ?? '',
|
|
2565
|
+
});
|
|
2249
2566
|
const defaultCallSettings = this._defaults['listPrivateConnections'];
|
|
2250
2567
|
const callSettings = defaultCallSettings.merge(options);
|
|
2251
|
-
this.initialize().catch(err => {
|
|
2568
|
+
this.initialize().catch(err => {
|
|
2569
|
+
throw err;
|
|
2570
|
+
});
|
|
2252
2571
|
this._log.info('listPrivateConnections stream %j', request);
|
|
2253
2572
|
return this.descriptors.page.listPrivateConnections.createStream(this.innerApiCalls.listPrivateConnections, request, callSettings);
|
|
2254
2573
|
}
|
|
@@ -2297,12 +2616,15 @@ class DataMigrationServiceClient {
|
|
|
2297
2616
|
options = options || {};
|
|
2298
2617
|
options.otherArgs = options.otherArgs || {};
|
|
2299
2618
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2300
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2301
|
-
|
|
2302
|
-
|
|
2619
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2620
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2621
|
+
parent: request.parent ?? '',
|
|
2622
|
+
});
|
|
2303
2623
|
const defaultCallSettings = this._defaults['listPrivateConnections'];
|
|
2304
2624
|
const callSettings = defaultCallSettings.merge(options);
|
|
2305
|
-
this.initialize().catch(err => {
|
|
2625
|
+
this.initialize().catch(err => {
|
|
2626
|
+
throw err;
|
|
2627
|
+
});
|
|
2306
2628
|
this._log.info('listPrivateConnections iterate %j', request);
|
|
2307
2629
|
return this.descriptors.page.listPrivateConnections.asyncIterate(this.innerApiCalls['listPrivateConnections'], request, callSettings);
|
|
2308
2630
|
}
|
|
@@ -2319,10 +2641,13 @@ class DataMigrationServiceClient {
|
|
|
2319
2641
|
options = options || {};
|
|
2320
2642
|
options.otherArgs = options.otherArgs || {};
|
|
2321
2643
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2322
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2323
|
-
|
|
2644
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2645
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2646
|
+
parent: request.parent ?? '',
|
|
2647
|
+
});
|
|
2648
|
+
this.initialize().catch(err => {
|
|
2649
|
+
throw err;
|
|
2324
2650
|
});
|
|
2325
|
-
this.initialize().catch(err => { throw err; });
|
|
2326
2651
|
const wrappedCallback = callback
|
|
2327
2652
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2328
2653
|
this._log.info('listConversionWorkspaces values %j', values);
|
|
@@ -2378,12 +2703,15 @@ class DataMigrationServiceClient {
|
|
|
2378
2703
|
options = options || {};
|
|
2379
2704
|
options.otherArgs = options.otherArgs || {};
|
|
2380
2705
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2381
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2382
|
-
|
|
2383
|
-
|
|
2706
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2707
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2708
|
+
parent: request.parent ?? '',
|
|
2709
|
+
});
|
|
2384
2710
|
const defaultCallSettings = this._defaults['listConversionWorkspaces'];
|
|
2385
2711
|
const callSettings = defaultCallSettings.merge(options);
|
|
2386
|
-
this.initialize().catch(err => {
|
|
2712
|
+
this.initialize().catch(err => {
|
|
2713
|
+
throw err;
|
|
2714
|
+
});
|
|
2387
2715
|
this._log.info('listConversionWorkspaces stream %j', request);
|
|
2388
2716
|
return this.descriptors.page.listConversionWorkspaces.createStream(this.innerApiCalls.listConversionWorkspaces, request, callSettings);
|
|
2389
2717
|
}
|
|
@@ -2431,12 +2759,15 @@ class DataMigrationServiceClient {
|
|
|
2431
2759
|
options = options || {};
|
|
2432
2760
|
options.otherArgs = options.otherArgs || {};
|
|
2433
2761
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2434
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2435
|
-
|
|
2436
|
-
|
|
2762
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2763
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2764
|
+
parent: request.parent ?? '',
|
|
2765
|
+
});
|
|
2437
2766
|
const defaultCallSettings = this._defaults['listConversionWorkspaces'];
|
|
2438
2767
|
const callSettings = defaultCallSettings.merge(options);
|
|
2439
|
-
this.initialize().catch(err => {
|
|
2768
|
+
this.initialize().catch(err => {
|
|
2769
|
+
throw err;
|
|
2770
|
+
});
|
|
2440
2771
|
this._log.info('listConversionWorkspaces iterate %j', request);
|
|
2441
2772
|
return this.descriptors.page.listConversionWorkspaces.asyncIterate(this.innerApiCalls['listConversionWorkspaces'], request, callSettings);
|
|
2442
2773
|
}
|
|
@@ -2453,10 +2784,13 @@ class DataMigrationServiceClient {
|
|
|
2453
2784
|
options = options || {};
|
|
2454
2785
|
options.otherArgs = options.otherArgs || {};
|
|
2455
2786
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2456
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2457
|
-
|
|
2787
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2788
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2789
|
+
parent: request.parent ?? '',
|
|
2790
|
+
});
|
|
2791
|
+
this.initialize().catch(err => {
|
|
2792
|
+
throw err;
|
|
2458
2793
|
});
|
|
2459
|
-
this.initialize().catch(err => { throw err; });
|
|
2460
2794
|
const wrappedCallback = callback
|
|
2461
2795
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2462
2796
|
this._log.info('listMappingRules values %j', values);
|
|
@@ -2504,12 +2838,15 @@ class DataMigrationServiceClient {
|
|
|
2504
2838
|
options = options || {};
|
|
2505
2839
|
options.otherArgs = options.otherArgs || {};
|
|
2506
2840
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2507
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2508
|
-
|
|
2509
|
-
|
|
2841
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2842
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2843
|
+
parent: request.parent ?? '',
|
|
2844
|
+
});
|
|
2510
2845
|
const defaultCallSettings = this._defaults['listMappingRules'];
|
|
2511
2846
|
const callSettings = defaultCallSettings.merge(options);
|
|
2512
|
-
this.initialize().catch(err => {
|
|
2847
|
+
this.initialize().catch(err => {
|
|
2848
|
+
throw err;
|
|
2849
|
+
});
|
|
2513
2850
|
this._log.info('listMappingRules stream %j', request);
|
|
2514
2851
|
return this.descriptors.page.listMappingRules.createStream(this.innerApiCalls.listMappingRules, request, callSettings);
|
|
2515
2852
|
}
|
|
@@ -2549,12 +2886,15 @@ class DataMigrationServiceClient {
|
|
|
2549
2886
|
options = options || {};
|
|
2550
2887
|
options.otherArgs = options.otherArgs || {};
|
|
2551
2888
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2552
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2553
|
-
|
|
2554
|
-
|
|
2889
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2890
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2891
|
+
parent: request.parent ?? '',
|
|
2892
|
+
});
|
|
2555
2893
|
const defaultCallSettings = this._defaults['listMappingRules'];
|
|
2556
2894
|
const callSettings = defaultCallSettings.merge(options);
|
|
2557
|
-
this.initialize().catch(err => {
|
|
2895
|
+
this.initialize().catch(err => {
|
|
2896
|
+
throw err;
|
|
2897
|
+
});
|
|
2558
2898
|
this._log.info('listMappingRules iterate %j', request);
|
|
2559
2899
|
return this.descriptors.page.listMappingRules.asyncIterate(this.innerApiCalls['listMappingRules'], request, callSettings);
|
|
2560
2900
|
}
|
|
@@ -2571,10 +2911,13 @@ class DataMigrationServiceClient {
|
|
|
2571
2911
|
options = options || {};
|
|
2572
2912
|
options.otherArgs = options.otherArgs || {};
|
|
2573
2913
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2574
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2575
|
-
|
|
2914
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2915
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2916
|
+
conversion_workspace: request.conversionWorkspace ?? '',
|
|
2917
|
+
});
|
|
2918
|
+
this.initialize().catch(err => {
|
|
2919
|
+
throw err;
|
|
2576
2920
|
});
|
|
2577
|
-
this.initialize().catch(err => { throw err; });
|
|
2578
2921
|
const wrappedCallback = callback
|
|
2579
2922
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2580
2923
|
this._log.info('describeDatabaseEntities values %j', values);
|
|
@@ -2636,12 +2979,15 @@ class DataMigrationServiceClient {
|
|
|
2636
2979
|
options = options || {};
|
|
2637
2980
|
options.otherArgs = options.otherArgs || {};
|
|
2638
2981
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2639
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2640
|
-
|
|
2641
|
-
|
|
2982
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2983
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2984
|
+
conversion_workspace: request.conversionWorkspace ?? '',
|
|
2985
|
+
});
|
|
2642
2986
|
const defaultCallSettings = this._defaults['describeDatabaseEntities'];
|
|
2643
2987
|
const callSettings = defaultCallSettings.merge(options);
|
|
2644
|
-
this.initialize().catch(err => {
|
|
2988
|
+
this.initialize().catch(err => {
|
|
2989
|
+
throw err;
|
|
2990
|
+
});
|
|
2645
2991
|
this._log.info('describeDatabaseEntities stream %j', request);
|
|
2646
2992
|
return this.descriptors.page.describeDatabaseEntities.createStream(this.innerApiCalls.describeDatabaseEntities, request, callSettings);
|
|
2647
2993
|
}
|
|
@@ -2695,12 +3041,15 @@ class DataMigrationServiceClient {
|
|
|
2695
3041
|
options = options || {};
|
|
2696
3042
|
options.otherArgs = options.otherArgs || {};
|
|
2697
3043
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2698
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2699
|
-
|
|
2700
|
-
|
|
3044
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
3045
|
+
this._gaxModule.routingHeader.fromParams({
|
|
3046
|
+
conversion_workspace: request.conversionWorkspace ?? '',
|
|
3047
|
+
});
|
|
2701
3048
|
const defaultCallSettings = this._defaults['describeDatabaseEntities'];
|
|
2702
3049
|
const callSettings = defaultCallSettings.merge(options);
|
|
2703
|
-
this.initialize().catch(err => {
|
|
3050
|
+
this.initialize().catch(err => {
|
|
3051
|
+
throw err;
|
|
3052
|
+
});
|
|
2704
3053
|
this._log.info('describeDatabaseEntities iterate %j', request);
|
|
2705
3054
|
return this.descriptors.page.describeDatabaseEntities.asyncIterate(this.innerApiCalls['describeDatabaseEntities'], request, callSettings);
|
|
2706
3055
|
}
|
|
@@ -2717,10 +3066,13 @@ class DataMigrationServiceClient {
|
|
|
2717
3066
|
options = options || {};
|
|
2718
3067
|
options.otherArgs = options.otherArgs || {};
|
|
2719
3068
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2720
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2721
|
-
|
|
3069
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
3070
|
+
this._gaxModule.routingHeader.fromParams({
|
|
3071
|
+
name: request.name ?? '',
|
|
3072
|
+
});
|
|
3073
|
+
this.initialize().catch(err => {
|
|
3074
|
+
throw err;
|
|
2722
3075
|
});
|
|
2723
|
-
this.initialize().catch(err => { throw err; });
|
|
2724
3076
|
const wrappedCallback = callback
|
|
2725
3077
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2726
3078
|
this._log.info('fetchStaticIps values %j', values);
|
|
@@ -2762,12 +3114,15 @@ class DataMigrationServiceClient {
|
|
|
2762
3114
|
options = options || {};
|
|
2763
3115
|
options.otherArgs = options.otherArgs || {};
|
|
2764
3116
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2765
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2766
|
-
|
|
2767
|
-
|
|
3117
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
3118
|
+
this._gaxModule.routingHeader.fromParams({
|
|
3119
|
+
name: request.name ?? '',
|
|
3120
|
+
});
|
|
2768
3121
|
const defaultCallSettings = this._defaults['fetchStaticIps'];
|
|
2769
3122
|
const callSettings = defaultCallSettings.merge(options);
|
|
2770
|
-
this.initialize().catch(err => {
|
|
3123
|
+
this.initialize().catch(err => {
|
|
3124
|
+
throw err;
|
|
3125
|
+
});
|
|
2771
3126
|
this._log.info('fetchStaticIps stream %j', request);
|
|
2772
3127
|
return this.descriptors.page.fetchStaticIps.createStream(this.innerApiCalls.fetchStaticIps, request, callSettings);
|
|
2773
3128
|
}
|
|
@@ -2801,12 +3156,15 @@ class DataMigrationServiceClient {
|
|
|
2801
3156
|
options = options || {};
|
|
2802
3157
|
options.otherArgs = options.otherArgs || {};
|
|
2803
3158
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2804
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2805
|
-
|
|
2806
|
-
|
|
3159
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
3160
|
+
this._gaxModule.routingHeader.fromParams({
|
|
3161
|
+
name: request.name ?? '',
|
|
3162
|
+
});
|
|
2807
3163
|
const defaultCallSettings = this._defaults['fetchStaticIps'];
|
|
2808
3164
|
const callSettings = defaultCallSettings.merge(options);
|
|
2809
|
-
this.initialize().catch(err => {
|
|
3165
|
+
this.initialize().catch(err => {
|
|
3166
|
+
throw err;
|
|
3167
|
+
});
|
|
2810
3168
|
this._log.info('fetchStaticIps iterate %j', request);
|
|
2811
3169
|
return this.descriptors.page.fetchStaticIps.asyncIterate(this.innerApiCalls['fetchStaticIps'], request, callSettings);
|
|
2812
3170
|
}
|
|
@@ -2904,90 +3262,90 @@ class DataMigrationServiceClient {
|
|
|
2904
3262
|
return this.iamClient.testIamPermissions(request, options, callback);
|
|
2905
3263
|
}
|
|
2906
3264
|
/**
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
3265
|
+
* Gets information about a location.
|
|
3266
|
+
*
|
|
3267
|
+
* @param {Object} request
|
|
3268
|
+
* The request object that will be sent.
|
|
3269
|
+
* @param {string} request.name
|
|
3270
|
+
* Resource name for the location.
|
|
3271
|
+
* @param {object} [options]
|
|
3272
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
|
|
3273
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
3274
|
+
* The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
|
|
3275
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
3276
|
+
* for more details and examples.
|
|
3277
|
+
* @example
|
|
3278
|
+
* ```
|
|
3279
|
+
* const [response] = await client.getLocation(request);
|
|
3280
|
+
* ```
|
|
3281
|
+
*/
|
|
2924
3282
|
getLocation(request, options, callback) {
|
|
2925
3283
|
return this.locationsClient.getLocation(request, options, callback);
|
|
2926
3284
|
}
|
|
2927
3285
|
/**
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
3286
|
+
* Lists information about the supported locations for this service. Returns an iterable object.
|
|
3287
|
+
*
|
|
3288
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
3289
|
+
* @param {Object} request
|
|
3290
|
+
* The request object that will be sent.
|
|
3291
|
+
* @param {string} request.name
|
|
3292
|
+
* The resource that owns the locations collection, if applicable.
|
|
3293
|
+
* @param {string} request.filter
|
|
3294
|
+
* The standard list filter.
|
|
3295
|
+
* @param {number} request.pageSize
|
|
3296
|
+
* The standard list page size.
|
|
3297
|
+
* @param {string} request.pageToken
|
|
3298
|
+
* The standard list page token.
|
|
3299
|
+
* @param {object} [options]
|
|
3300
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
3301
|
+
* @returns {Object}
|
|
3302
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
3303
|
+
* When you iterate the returned iterable, each element will be an object representing
|
|
3304
|
+
* {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
|
|
3305
|
+
* so you can stop the iteration when you don't need more results.
|
|
3306
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
3307
|
+
* for more details and examples.
|
|
3308
|
+
* @example
|
|
3309
|
+
* ```
|
|
3310
|
+
* const iterable = client.listLocationsAsync(request);
|
|
3311
|
+
* for await (const response of iterable) {
|
|
3312
|
+
* // process response
|
|
3313
|
+
* }
|
|
3314
|
+
* ```
|
|
3315
|
+
*/
|
|
2958
3316
|
listLocationsAsync(request, options) {
|
|
2959
3317
|
return this.locationsClient.listLocationsAsync(request, options);
|
|
2960
3318
|
}
|
|
2961
3319
|
/**
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
3320
|
+
* Gets the latest state of a long-running operation. Clients can use this
|
|
3321
|
+
* method to poll the operation result at intervals as recommended by the API
|
|
3322
|
+
* service.
|
|
3323
|
+
*
|
|
3324
|
+
* @param {Object} request - The request object that will be sent.
|
|
3325
|
+
* @param {string} request.name - The name of the operation resource.
|
|
3326
|
+
* @param {Object=} options
|
|
3327
|
+
* Optional parameters. You can override the default settings for this call,
|
|
3328
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
|
3329
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
|
3330
|
+
* for the details.
|
|
3331
|
+
* @param {function(?Error, ?Object)=} callback
|
|
3332
|
+
* The function which will be called with the result of the API call.
|
|
3333
|
+
*
|
|
3334
|
+
* The second parameter to the callback is an object representing
|
|
3335
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
|
3336
|
+
* @return {Promise} - The promise which resolves to an array.
|
|
3337
|
+
* The first element of the array is an object representing
|
|
3338
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
|
3339
|
+
* The promise has a method named "cancel" which cancels the ongoing API call.
|
|
3340
|
+
*
|
|
3341
|
+
* @example
|
|
3342
|
+
* ```
|
|
3343
|
+
* const client = longrunning.operationsClient();
|
|
3344
|
+
* const name = '';
|
|
3345
|
+
* const [response] = await client.getOperation({name});
|
|
3346
|
+
* // doThingsWith(response)
|
|
3347
|
+
* ```
|
|
3348
|
+
*/
|
|
2991
3349
|
getOperation(request, optionsOrCallback, callback) {
|
|
2992
3350
|
let options;
|
|
2993
3351
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -3289,7 +3647,8 @@ class DataMigrationServiceClient {
|
|
|
3289
3647
|
* @returns {string} A string representing the project.
|
|
3290
3648
|
*/
|
|
3291
3649
|
matchProjectFromMappingRuleName(mappingRuleName) {
|
|
3292
|
-
return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName)
|
|
3650
|
+
return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName)
|
|
3651
|
+
.project;
|
|
3293
3652
|
}
|
|
3294
3653
|
/**
|
|
3295
3654
|
* Parse the location from MappingRule resource.
|
|
@@ -3299,7 +3658,8 @@ class DataMigrationServiceClient {
|
|
|
3299
3658
|
* @returns {string} A string representing the location.
|
|
3300
3659
|
*/
|
|
3301
3660
|
matchLocationFromMappingRuleName(mappingRuleName) {
|
|
3302
|
-
return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName)
|
|
3661
|
+
return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName)
|
|
3662
|
+
.location;
|
|
3303
3663
|
}
|
|
3304
3664
|
/**
|
|
3305
3665
|
* Parse the conversion_workspace from MappingRule resource.
|
|
@@ -3309,7 +3669,8 @@ class DataMigrationServiceClient {
|
|
|
3309
3669
|
* @returns {string} A string representing the conversion_workspace.
|
|
3310
3670
|
*/
|
|
3311
3671
|
matchConversionWorkspaceFromMappingRuleName(mappingRuleName) {
|
|
3312
|
-
return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName)
|
|
3672
|
+
return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName)
|
|
3673
|
+
.conversion_workspace;
|
|
3313
3674
|
}
|
|
3314
3675
|
/**
|
|
3315
3676
|
* Parse the mapping_rule from MappingRule resource.
|
|
@@ -3319,7 +3680,8 @@ class DataMigrationServiceClient {
|
|
|
3319
3680
|
* @returns {string} A string representing the mapping_rule.
|
|
3320
3681
|
*/
|
|
3321
3682
|
matchMappingRuleFromMappingRuleName(mappingRuleName) {
|
|
3322
|
-
return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName)
|
|
3683
|
+
return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName)
|
|
3684
|
+
.mapping_rule;
|
|
3323
3685
|
}
|
|
3324
3686
|
/**
|
|
3325
3687
|
* Return a fully-qualified migrationJob resource name string.
|
|
@@ -3344,7 +3706,8 @@ class DataMigrationServiceClient {
|
|
|
3344
3706
|
* @returns {string} A string representing the project.
|
|
3345
3707
|
*/
|
|
3346
3708
|
matchProjectFromMigrationJobName(migrationJobName) {
|
|
3347
|
-
return this.pathTemplates.migrationJobPathTemplate.match(migrationJobName)
|
|
3709
|
+
return this.pathTemplates.migrationJobPathTemplate.match(migrationJobName)
|
|
3710
|
+
.project;
|
|
3348
3711
|
}
|
|
3349
3712
|
/**
|
|
3350
3713
|
* Parse the location from MigrationJob resource.
|
|
@@ -3354,7 +3717,8 @@ class DataMigrationServiceClient {
|
|
|
3354
3717
|
* @returns {string} A string representing the location.
|
|
3355
3718
|
*/
|
|
3356
3719
|
matchLocationFromMigrationJobName(migrationJobName) {
|
|
3357
|
-
return this.pathTemplates.migrationJobPathTemplate.match(migrationJobName)
|
|
3720
|
+
return this.pathTemplates.migrationJobPathTemplate.match(migrationJobName)
|
|
3721
|
+
.location;
|
|
3358
3722
|
}
|
|
3359
3723
|
/**
|
|
3360
3724
|
* Parse the migration_job from MigrationJob resource.
|
|
@@ -3364,7 +3728,8 @@ class DataMigrationServiceClient {
|
|
|
3364
3728
|
* @returns {string} A string representing the migration_job.
|
|
3365
3729
|
*/
|
|
3366
3730
|
matchMigrationJobFromMigrationJobName(migrationJobName) {
|
|
3367
|
-
return this.pathTemplates.migrationJobPathTemplate.match(migrationJobName)
|
|
3731
|
+
return this.pathTemplates.migrationJobPathTemplate.match(migrationJobName)
|
|
3732
|
+
.migration_job;
|
|
3368
3733
|
}
|
|
3369
3734
|
/**
|
|
3370
3735
|
* Return a fully-qualified privateConnection resource name string.
|
|
@@ -3444,8 +3809,12 @@ class DataMigrationServiceClient {
|
|
|
3444
3809
|
this._log.info('ending gRPC channel');
|
|
3445
3810
|
this._terminated = true;
|
|
3446
3811
|
stub.close();
|
|
3447
|
-
this.iamClient.close().catch(err => {
|
|
3448
|
-
|
|
3812
|
+
this.iamClient.close().catch(err => {
|
|
3813
|
+
throw err;
|
|
3814
|
+
});
|
|
3815
|
+
this.locationsClient.close().catch(err => {
|
|
3816
|
+
throw err;
|
|
3817
|
+
});
|
|
3449
3818
|
void this.operationsClient.close();
|
|
3450
3819
|
});
|
|
3451
3820
|
}
|