@google-cloud/dms 4.0.1 → 4.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 -2
- package/build/protos/protos.d.ts +21 -18
- package/build/protos/protos.js +689 -230
- package/build/protos/protos.json +64 -16
- package/build/src/v1/data_migration_service_client.d.ts +339 -339
- package/build/src/v1/data_migration_service_client.js +393 -659
- package/package.json +4 -4
- package/CHANGELOG.md +0 -196
|
@@ -99,26 +99,17 @@ 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 &&
|
|
103
|
-
opts?.universeDomain &&
|
|
104
|
-
opts?.universe_domain !== opts?.universeDomain) {
|
|
102
|
+
if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
|
|
105
103
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
|
106
104
|
}
|
|
107
|
-
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
|
108
|
-
|
|
109
|
-
: undefined;
|
|
110
|
-
this._universeDomain =
|
|
111
|
-
opts?.universeDomain ??
|
|
112
|
-
opts?.universe_domain ??
|
|
113
|
-
universeDomainEnvVar ??
|
|
114
|
-
'googleapis.com';
|
|
105
|
+
const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined;
|
|
106
|
+
this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com';
|
|
115
107
|
this._servicePath = 'datamigration.' + this._universeDomain;
|
|
116
108
|
const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
|
|
117
109
|
this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
|
|
118
110
|
const port = opts?.port || staticMembers.port;
|
|
119
111
|
const clientConfig = opts?.clientConfig ?? {};
|
|
120
|
-
const fallback = opts?.fallback ??
|
|
121
|
-
(typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
|
112
|
+
const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
|
122
113
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
|
123
114
|
// Request numeric enum values if REST transport is used.
|
|
124
115
|
opts.numericEnums = true;
|
|
@@ -149,7 +140,10 @@ class DataMigrationServiceClient {
|
|
|
149
140
|
this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts);
|
|
150
141
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
|
151
142
|
// Determine the client header string.
|
|
152
|
-
const clientHeader = [
|
|
143
|
+
const clientHeader = [
|
|
144
|
+
`gax/${this._gaxModule.version}`,
|
|
145
|
+
`gapic/${version}`,
|
|
146
|
+
];
|
|
153
147
|
if (typeof process === 'object' && 'versions' in process) {
|
|
154
148
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
|
155
149
|
}
|
|
@@ -189,102 +183,24 @@ class DataMigrationServiceClient {
|
|
|
189
183
|
listConversionWorkspaces: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'conversionWorkspaces'),
|
|
190
184
|
listMappingRules: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'mappingRules'),
|
|
191
185
|
describeDatabaseEntities: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'databaseEntities'),
|
|
192
|
-
fetchStaticIps: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'staticIps')
|
|
186
|
+
fetchStaticIps: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'staticIps')
|
|
193
187
|
};
|
|
194
|
-
const protoFilesRoot = this._gaxModule.
|
|
188
|
+
const protoFilesRoot = this._gaxModule.protobufFromJSON(jsonProtos);
|
|
195
189
|
// This API contains "long-running operations", which return a
|
|
196
190
|
// an Operation object that allows for tracking of the operation,
|
|
197
191
|
// rather than holding a request open.
|
|
198
192
|
const lroOptions = {
|
|
199
193
|
auth: this.auth,
|
|
200
|
-
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
|
|
194
|
+
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined
|
|
201
195
|
};
|
|
202
196
|
if (opts.fallback) {
|
|
203
197
|
lroOptions.protoJson = protoFilesRoot;
|
|
204
|
-
lroOptions.httpRules = [
|
|
205
|
-
{
|
|
206
|
-
|
|
207
|
-
|
|
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);
|
|
198
|
+
lroOptions.httpRules = [{ selector: 'google.cloud.location.Locations.GetLocation', get: '/v1/{name=projects/*/locations/*}', }, { selector: 'google.cloud.location.Locations.ListLocations', get: '/v1/{name=projects/*}/locations', }, { selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', get: '/v1/{resource=projects/*/locations/*/connectionProfiles/*}:getIamPolicy', additional_bindings: [{ get: '/v1/{resource=projects/*/locations/*/migrationJobs/*}:getIamPolicy', }, { get: '/v1/{resource=projects/*/locations/*/conversionWorkspaces/*}:getIamPolicy', }, { get: '/v1/{resource=projects/*/locations/*/privateConnections/*}:getIamPolicy', }],
|
|
199
|
+
}, { selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', post: '/v1/{resource=projects/*/locations/*/connectionProfiles/*}:setIamPolicy', body: '*', additional_bindings: [{ post: '/v1/{resource=projects/*/locations/*/migrationJobs/*}:setIamPolicy', body: '*', }, { post: '/v1/{resource=projects/*/locations/*/conversionWorkspaces/*}:setIamPolicy', body: '*', }, { post: '/v1/{resource=projects/*/locations/*/privateConnections/*}:setIamPolicy', body: '*', }],
|
|
200
|
+
}, { selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', post: '/v1/{resource=projects/*/locations/*/migrationJobs/*}:testIamPermissions', body: '*', additional_bindings: [{ post: '/v1/{resource=projects/*/locations/*/connectionProfiles/*}:testIamPermissions', body: '*', }, { post: '/v1/{resource=projects/*/locations/*/conversionWorkspaces/*}:testIamPermissions', body: '*', }, { post: '/v1/{resource=projects/*/locations/*/privateConnections/*}:testIamPermissions', body: '*', }],
|
|
201
|
+
}, { selector: 'google.longrunning.Operations.CancelOperation', post: '/v1/{name=projects/*/locations/*/operations/*}:cancel', body: '*', }, { selector: 'google.longrunning.Operations.DeleteOperation', delete: '/v1/{name=projects/*/locations/*/operations/*}', }, { selector: 'google.longrunning.Operations.GetOperation', get: '/v1/{name=projects/*/locations/*/operations/*}', }, { selector: 'google.longrunning.Operations.ListOperations', get: '/v1/{name=projects/*/locations/*}/operations', }];
|
|
202
|
+
}
|
|
203
|
+
this.operationsClient = this._gaxModule.lro(lroOptions).operationsClient(opts);
|
|
288
204
|
const createMigrationJobResponse = protoFilesRoot.lookup('.google.cloud.clouddms.v1.MigrationJob');
|
|
289
205
|
const createMigrationJobMetadata = protoFilesRoot.lookup('.google.cloud.clouddms.v1.OperationMetadata');
|
|
290
206
|
const updateMigrationJobResponse = protoFilesRoot.lookup('.google.cloud.clouddms.v1.MigrationJob');
|
|
@@ -354,7 +270,7 @@ class DataMigrationServiceClient {
|
|
|
354
270
|
convertConversionWorkspace: new this._gaxModule.LongrunningDescriptor(this.operationsClient, convertConversionWorkspaceResponse.decode.bind(convertConversionWorkspaceResponse), convertConversionWorkspaceMetadata.decode.bind(convertConversionWorkspaceMetadata)),
|
|
355
271
|
commitConversionWorkspace: new this._gaxModule.LongrunningDescriptor(this.operationsClient, commitConversionWorkspaceResponse.decode.bind(commitConversionWorkspaceResponse), commitConversionWorkspaceMetadata.decode.bind(commitConversionWorkspaceMetadata)),
|
|
356
272
|
rollbackConversionWorkspace: new this._gaxModule.LongrunningDescriptor(this.operationsClient, rollbackConversionWorkspaceResponse.decode.bind(rollbackConversionWorkspaceResponse), rollbackConversionWorkspaceMetadata.decode.bind(rollbackConversionWorkspaceMetadata)),
|
|
357
|
-
applyConversionWorkspace: new this._gaxModule.LongrunningDescriptor(this.operationsClient, applyConversionWorkspaceResponse.decode.bind(applyConversionWorkspaceResponse), applyConversionWorkspaceMetadata.decode.bind(applyConversionWorkspaceMetadata))
|
|
273
|
+
applyConversionWorkspace: new this._gaxModule.LongrunningDescriptor(this.operationsClient, applyConversionWorkspaceResponse.decode.bind(applyConversionWorkspaceResponse), applyConversionWorkspaceMetadata.decode.bind(applyConversionWorkspaceMetadata))
|
|
358
274
|
};
|
|
359
275
|
// Put together the default options sent with requests.
|
|
360
276
|
this._defaults = this._gaxGrpc.constructSettings('google.cloud.clouddms.v1.DataMigrationService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
|
@@ -383,55 +299,13 @@ class DataMigrationServiceClient {
|
|
|
383
299
|
}
|
|
384
300
|
// Put together the "service stub" for
|
|
385
301
|
// google.cloud.clouddms.v1.DataMigrationService.
|
|
386
|
-
this.dataMigrationServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
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
|
+
this._protos.google.cloud.clouddms.v1.DataMigrationService, this._opts, this._providedCustomServicePath);
|
|
390
306
|
// Iterate over each of the methods that the service provides
|
|
391
307
|
// and create an API call method for each.
|
|
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
|
-
];
|
|
308
|
+
const dataMigrationServiceStubMethods = ['listMigrationJobs', 'getMigrationJob', 'createMigrationJob', 'updateMigrationJob', 'deleteMigrationJob', 'startMigrationJob', 'stopMigrationJob', 'resumeMigrationJob', 'promoteMigrationJob', 'verifyMigrationJob', 'restartMigrationJob', 'generateSshScript', 'generateTcpProxyScript', 'listConnectionProfiles', 'getConnectionProfile', 'createConnectionProfile', 'updateConnectionProfile', 'deleteConnectionProfile', 'createPrivateConnection', 'getPrivateConnection', 'listPrivateConnections', 'deletePrivateConnection', 'getConversionWorkspace', 'listConversionWorkspaces', 'createConversionWorkspace', 'updateConversionWorkspace', 'deleteConversionWorkspace', 'createMappingRule', 'deleteMappingRule', 'listMappingRules', 'getMappingRule', 'seedConversionWorkspace', 'importMappingRules', 'convertConversionWorkspace', 'commitConversionWorkspace', 'rollbackConversionWorkspace', 'applyConversionWorkspace', 'describeDatabaseEntities', 'searchBackgroundJobs', 'describeConversionWorkspaceRevisions', 'fetchStaticIps'];
|
|
435
309
|
for (const methodName of dataMigrationServiceStubMethods) {
|
|
436
310
|
const callPromise = this.dataMigrationServiceStub.then(stub => (...args) => {
|
|
437
311
|
if (this._terminated) {
|
|
@@ -456,8 +330,7 @@ class DataMigrationServiceClient {
|
|
|
456
330
|
* @returns {string} The DNS address for this service.
|
|
457
331
|
*/
|
|
458
332
|
static get servicePath() {
|
|
459
|
-
if (typeof process === 'object' &&
|
|
460
|
-
typeof process.emitWarning === 'function') {
|
|
333
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
|
461
334
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
462
335
|
}
|
|
463
336
|
return 'datamigration.googleapis.com';
|
|
@@ -468,8 +341,7 @@ class DataMigrationServiceClient {
|
|
|
468
341
|
* @returns {string} The DNS address for this service.
|
|
469
342
|
*/
|
|
470
343
|
static get apiEndpoint() {
|
|
471
|
-
if (typeof process === 'object' &&
|
|
472
|
-
typeof process.emitWarning === 'function') {
|
|
344
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
|
473
345
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
474
346
|
}
|
|
475
347
|
return 'datamigration.googleapis.com';
|
|
@@ -497,7 +369,9 @@ class DataMigrationServiceClient {
|
|
|
497
369
|
* @returns {string[]} List of default scopes.
|
|
498
370
|
*/
|
|
499
371
|
static get scopes() {
|
|
500
|
-
return [
|
|
372
|
+
return [
|
|
373
|
+
'https://www.googleapis.com/auth/cloud-platform'
|
|
374
|
+
];
|
|
501
375
|
}
|
|
502
376
|
/**
|
|
503
377
|
* Return the project ID used by this class.
|
|
@@ -523,13 +397,10 @@ class DataMigrationServiceClient {
|
|
|
523
397
|
options = options || {};
|
|
524
398
|
options.otherArgs = options.otherArgs || {};
|
|
525
399
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
526
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
527
|
-
|
|
528
|
-
name: request.name ?? '',
|
|
529
|
-
});
|
|
530
|
-
this.initialize().catch(err => {
|
|
531
|
-
throw err;
|
|
400
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
401
|
+
'name': request.name ?? '',
|
|
532
402
|
});
|
|
403
|
+
this.initialize().catch(err => { throw err; });
|
|
533
404
|
this._log.info('getMigrationJob request %j', request);
|
|
534
405
|
const wrappedCallback = callback
|
|
535
406
|
? (error, response, options, rawResponse) => {
|
|
@@ -537,11 +408,16 @@ class DataMigrationServiceClient {
|
|
|
537
408
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
538
409
|
}
|
|
539
410
|
: undefined;
|
|
540
|
-
return this.innerApiCalls
|
|
541
|
-
.getMigrationJob(request, options, wrappedCallback)
|
|
411
|
+
return this.innerApiCalls.getMigrationJob(request, options, wrappedCallback)
|
|
542
412
|
?.then(([response, options, rawResponse]) => {
|
|
543
413
|
this._log.info('getMigrationJob response %j', response);
|
|
544
414
|
return [response, options, rawResponse];
|
|
415
|
+
}).catch((error) => {
|
|
416
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
417
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
418
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
419
|
+
}
|
|
420
|
+
throw error;
|
|
545
421
|
});
|
|
546
422
|
}
|
|
547
423
|
generateSshScript(request, optionsOrCallback, callback) {
|
|
@@ -557,13 +433,10 @@ class DataMigrationServiceClient {
|
|
|
557
433
|
options = options || {};
|
|
558
434
|
options.otherArgs = options.otherArgs || {};
|
|
559
435
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
560
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
561
|
-
|
|
562
|
-
migration_job: request.migrationJob ?? '',
|
|
563
|
-
});
|
|
564
|
-
this.initialize().catch(err => {
|
|
565
|
-
throw err;
|
|
436
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
437
|
+
'migration_job': request.migrationJob ?? '',
|
|
566
438
|
});
|
|
439
|
+
this.initialize().catch(err => { throw err; });
|
|
567
440
|
this._log.info('generateSshScript request %j', request);
|
|
568
441
|
const wrappedCallback = callback
|
|
569
442
|
? (error, response, options, rawResponse) => {
|
|
@@ -571,11 +444,16 @@ class DataMigrationServiceClient {
|
|
|
571
444
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
572
445
|
}
|
|
573
446
|
: undefined;
|
|
574
|
-
return this.innerApiCalls
|
|
575
|
-
.generateSshScript(request, options, wrappedCallback)
|
|
447
|
+
return this.innerApiCalls.generateSshScript(request, options, wrappedCallback)
|
|
576
448
|
?.then(([response, options, rawResponse]) => {
|
|
577
449
|
this._log.info('generateSshScript response %j', response);
|
|
578
450
|
return [response, options, rawResponse];
|
|
451
|
+
}).catch((error) => {
|
|
452
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
453
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
454
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
455
|
+
}
|
|
456
|
+
throw error;
|
|
579
457
|
});
|
|
580
458
|
}
|
|
581
459
|
generateTcpProxyScript(request, optionsOrCallback, callback) {
|
|
@@ -591,13 +469,10 @@ class DataMigrationServiceClient {
|
|
|
591
469
|
options = options || {};
|
|
592
470
|
options.otherArgs = options.otherArgs || {};
|
|
593
471
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
594
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
595
|
-
|
|
596
|
-
migration_job: request.migrationJob ?? '',
|
|
597
|
-
});
|
|
598
|
-
this.initialize().catch(err => {
|
|
599
|
-
throw err;
|
|
472
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
473
|
+
'migration_job': request.migrationJob ?? '',
|
|
600
474
|
});
|
|
475
|
+
this.initialize().catch(err => { throw err; });
|
|
601
476
|
this._log.info('generateTcpProxyScript request %j', request);
|
|
602
477
|
const wrappedCallback = callback
|
|
603
478
|
? (error, response, options, rawResponse) => {
|
|
@@ -605,11 +480,16 @@ class DataMigrationServiceClient {
|
|
|
605
480
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
606
481
|
}
|
|
607
482
|
: undefined;
|
|
608
|
-
return this.innerApiCalls
|
|
609
|
-
.generateTcpProxyScript(request, options, wrappedCallback)
|
|
483
|
+
return this.innerApiCalls.generateTcpProxyScript(request, options, wrappedCallback)
|
|
610
484
|
?.then(([response, options, rawResponse]) => {
|
|
611
485
|
this._log.info('generateTcpProxyScript response %j', response);
|
|
612
486
|
return [response, options, rawResponse];
|
|
487
|
+
}).catch((error) => {
|
|
488
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
489
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
490
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
491
|
+
}
|
|
492
|
+
throw error;
|
|
613
493
|
});
|
|
614
494
|
}
|
|
615
495
|
getConnectionProfile(request, optionsOrCallback, callback) {
|
|
@@ -625,13 +505,10 @@ class DataMigrationServiceClient {
|
|
|
625
505
|
options = options || {};
|
|
626
506
|
options.otherArgs = options.otherArgs || {};
|
|
627
507
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
628
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
629
|
-
|
|
630
|
-
name: request.name ?? '',
|
|
631
|
-
});
|
|
632
|
-
this.initialize().catch(err => {
|
|
633
|
-
throw err;
|
|
508
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
509
|
+
'name': request.name ?? '',
|
|
634
510
|
});
|
|
511
|
+
this.initialize().catch(err => { throw err; });
|
|
635
512
|
this._log.info('getConnectionProfile request %j', request);
|
|
636
513
|
const wrappedCallback = callback
|
|
637
514
|
? (error, response, options, rawResponse) => {
|
|
@@ -639,11 +516,16 @@ class DataMigrationServiceClient {
|
|
|
639
516
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
640
517
|
}
|
|
641
518
|
: undefined;
|
|
642
|
-
return this.innerApiCalls
|
|
643
|
-
.getConnectionProfile(request, options, wrappedCallback)
|
|
519
|
+
return this.innerApiCalls.getConnectionProfile(request, options, wrappedCallback)
|
|
644
520
|
?.then(([response, options, rawResponse]) => {
|
|
645
521
|
this._log.info('getConnectionProfile response %j', response);
|
|
646
522
|
return [response, options, rawResponse];
|
|
523
|
+
}).catch((error) => {
|
|
524
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
525
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
526
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
527
|
+
}
|
|
528
|
+
throw error;
|
|
647
529
|
});
|
|
648
530
|
}
|
|
649
531
|
getPrivateConnection(request, optionsOrCallback, callback) {
|
|
@@ -659,13 +541,10 @@ class DataMigrationServiceClient {
|
|
|
659
541
|
options = options || {};
|
|
660
542
|
options.otherArgs = options.otherArgs || {};
|
|
661
543
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
662
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
663
|
-
|
|
664
|
-
name: request.name ?? '',
|
|
665
|
-
});
|
|
666
|
-
this.initialize().catch(err => {
|
|
667
|
-
throw err;
|
|
544
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
545
|
+
'name': request.name ?? '',
|
|
668
546
|
});
|
|
547
|
+
this.initialize().catch(err => { throw err; });
|
|
669
548
|
this._log.info('getPrivateConnection request %j', request);
|
|
670
549
|
const wrappedCallback = callback
|
|
671
550
|
? (error, response, options, rawResponse) => {
|
|
@@ -673,11 +552,16 @@ class DataMigrationServiceClient {
|
|
|
673
552
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
674
553
|
}
|
|
675
554
|
: undefined;
|
|
676
|
-
return this.innerApiCalls
|
|
677
|
-
.getPrivateConnection(request, options, wrappedCallback)
|
|
555
|
+
return this.innerApiCalls.getPrivateConnection(request, options, wrappedCallback)
|
|
678
556
|
?.then(([response, options, rawResponse]) => {
|
|
679
557
|
this._log.info('getPrivateConnection response %j', response);
|
|
680
558
|
return [response, options, rawResponse];
|
|
559
|
+
}).catch((error) => {
|
|
560
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
561
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
562
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
563
|
+
}
|
|
564
|
+
throw error;
|
|
681
565
|
});
|
|
682
566
|
}
|
|
683
567
|
getConversionWorkspace(request, optionsOrCallback, callback) {
|
|
@@ -693,13 +577,10 @@ class DataMigrationServiceClient {
|
|
|
693
577
|
options = options || {};
|
|
694
578
|
options.otherArgs = options.otherArgs || {};
|
|
695
579
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
696
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
697
|
-
|
|
698
|
-
name: request.name ?? '',
|
|
699
|
-
});
|
|
700
|
-
this.initialize().catch(err => {
|
|
701
|
-
throw err;
|
|
580
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
581
|
+
'name': request.name ?? '',
|
|
702
582
|
});
|
|
583
|
+
this.initialize().catch(err => { throw err; });
|
|
703
584
|
this._log.info('getConversionWorkspace request %j', request);
|
|
704
585
|
const wrappedCallback = callback
|
|
705
586
|
? (error, response, options, rawResponse) => {
|
|
@@ -707,11 +588,16 @@ class DataMigrationServiceClient {
|
|
|
707
588
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
708
589
|
}
|
|
709
590
|
: undefined;
|
|
710
|
-
return this.innerApiCalls
|
|
711
|
-
.getConversionWorkspace(request, options, wrappedCallback)
|
|
591
|
+
return this.innerApiCalls.getConversionWorkspace(request, options, wrappedCallback)
|
|
712
592
|
?.then(([response, options, rawResponse]) => {
|
|
713
593
|
this._log.info('getConversionWorkspace response %j', response);
|
|
714
594
|
return [response, options, rawResponse];
|
|
595
|
+
}).catch((error) => {
|
|
596
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
597
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
598
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
599
|
+
}
|
|
600
|
+
throw error;
|
|
715
601
|
});
|
|
716
602
|
}
|
|
717
603
|
createMappingRule(request, optionsOrCallback, callback) {
|
|
@@ -727,13 +613,10 @@ class DataMigrationServiceClient {
|
|
|
727
613
|
options = options || {};
|
|
728
614
|
options.otherArgs = options.otherArgs || {};
|
|
729
615
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
730
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
731
|
-
|
|
732
|
-
parent: request.parent ?? '',
|
|
733
|
-
});
|
|
734
|
-
this.initialize().catch(err => {
|
|
735
|
-
throw err;
|
|
616
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
617
|
+
'parent': request.parent ?? '',
|
|
736
618
|
});
|
|
619
|
+
this.initialize().catch(err => { throw err; });
|
|
737
620
|
this._log.info('createMappingRule request %j', request);
|
|
738
621
|
const wrappedCallback = callback
|
|
739
622
|
? (error, response, options, rawResponse) => {
|
|
@@ -741,11 +624,16 @@ class DataMigrationServiceClient {
|
|
|
741
624
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
742
625
|
}
|
|
743
626
|
: undefined;
|
|
744
|
-
return this.innerApiCalls
|
|
745
|
-
.createMappingRule(request, options, wrappedCallback)
|
|
627
|
+
return this.innerApiCalls.createMappingRule(request, options, wrappedCallback)
|
|
746
628
|
?.then(([response, options, rawResponse]) => {
|
|
747
629
|
this._log.info('createMappingRule response %j', response);
|
|
748
630
|
return [response, options, rawResponse];
|
|
631
|
+
}).catch((error) => {
|
|
632
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
633
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
634
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
635
|
+
}
|
|
636
|
+
throw error;
|
|
749
637
|
});
|
|
750
638
|
}
|
|
751
639
|
deleteMappingRule(request, optionsOrCallback, callback) {
|
|
@@ -761,13 +649,10 @@ class DataMigrationServiceClient {
|
|
|
761
649
|
options = options || {};
|
|
762
650
|
options.otherArgs = options.otherArgs || {};
|
|
763
651
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
764
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
765
|
-
|
|
766
|
-
name: request.name ?? '',
|
|
767
|
-
});
|
|
768
|
-
this.initialize().catch(err => {
|
|
769
|
-
throw err;
|
|
652
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
653
|
+
'name': request.name ?? '',
|
|
770
654
|
});
|
|
655
|
+
this.initialize().catch(err => { throw err; });
|
|
771
656
|
this._log.info('deleteMappingRule request %j', request);
|
|
772
657
|
const wrappedCallback = callback
|
|
773
658
|
? (error, response, options, rawResponse) => {
|
|
@@ -775,11 +660,16 @@ class DataMigrationServiceClient {
|
|
|
775
660
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
776
661
|
}
|
|
777
662
|
: undefined;
|
|
778
|
-
return this.innerApiCalls
|
|
779
|
-
.deleteMappingRule(request, options, wrappedCallback)
|
|
663
|
+
return this.innerApiCalls.deleteMappingRule(request, options, wrappedCallback)
|
|
780
664
|
?.then(([response, options, rawResponse]) => {
|
|
781
665
|
this._log.info('deleteMappingRule response %j', response);
|
|
782
666
|
return [response, options, rawResponse];
|
|
667
|
+
}).catch((error) => {
|
|
668
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
669
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
670
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
671
|
+
}
|
|
672
|
+
throw error;
|
|
783
673
|
});
|
|
784
674
|
}
|
|
785
675
|
getMappingRule(request, optionsOrCallback, callback) {
|
|
@@ -795,13 +685,10 @@ class DataMigrationServiceClient {
|
|
|
795
685
|
options = options || {};
|
|
796
686
|
options.otherArgs = options.otherArgs || {};
|
|
797
687
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
798
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
799
|
-
|
|
800
|
-
name: request.name ?? '',
|
|
801
|
-
});
|
|
802
|
-
this.initialize().catch(err => {
|
|
803
|
-
throw err;
|
|
688
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
689
|
+
'name': request.name ?? '',
|
|
804
690
|
});
|
|
691
|
+
this.initialize().catch(err => { throw err; });
|
|
805
692
|
this._log.info('getMappingRule request %j', request);
|
|
806
693
|
const wrappedCallback = callback
|
|
807
694
|
? (error, response, options, rawResponse) => {
|
|
@@ -809,11 +696,16 @@ class DataMigrationServiceClient {
|
|
|
809
696
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
810
697
|
}
|
|
811
698
|
: undefined;
|
|
812
|
-
return this.innerApiCalls
|
|
813
|
-
.getMappingRule(request, options, wrappedCallback)
|
|
699
|
+
return this.innerApiCalls.getMappingRule(request, options, wrappedCallback)
|
|
814
700
|
?.then(([response, options, rawResponse]) => {
|
|
815
701
|
this._log.info('getMappingRule response %j', response);
|
|
816
702
|
return [response, options, rawResponse];
|
|
703
|
+
}).catch((error) => {
|
|
704
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
705
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
706
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
707
|
+
}
|
|
708
|
+
throw error;
|
|
817
709
|
});
|
|
818
710
|
}
|
|
819
711
|
searchBackgroundJobs(request, optionsOrCallback, callback) {
|
|
@@ -829,13 +721,10 @@ class DataMigrationServiceClient {
|
|
|
829
721
|
options = options || {};
|
|
830
722
|
options.otherArgs = options.otherArgs || {};
|
|
831
723
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
832
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
833
|
-
|
|
834
|
-
conversion_workspace: request.conversionWorkspace ?? '',
|
|
835
|
-
});
|
|
836
|
-
this.initialize().catch(err => {
|
|
837
|
-
throw err;
|
|
724
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
725
|
+
'conversion_workspace': request.conversionWorkspace ?? '',
|
|
838
726
|
});
|
|
727
|
+
this.initialize().catch(err => { throw err; });
|
|
839
728
|
this._log.info('searchBackgroundJobs request %j', request);
|
|
840
729
|
const wrappedCallback = callback
|
|
841
730
|
? (error, response, options, rawResponse) => {
|
|
@@ -843,11 +732,16 @@ class DataMigrationServiceClient {
|
|
|
843
732
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
844
733
|
}
|
|
845
734
|
: undefined;
|
|
846
|
-
return this.innerApiCalls
|
|
847
|
-
.searchBackgroundJobs(request, options, wrappedCallback)
|
|
735
|
+
return this.innerApiCalls.searchBackgroundJobs(request, options, wrappedCallback)
|
|
848
736
|
?.then(([response, options, rawResponse]) => {
|
|
849
737
|
this._log.info('searchBackgroundJobs response %j', response);
|
|
850
738
|
return [response, options, rawResponse];
|
|
739
|
+
}).catch((error) => {
|
|
740
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
741
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
742
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
743
|
+
}
|
|
744
|
+
throw error;
|
|
851
745
|
});
|
|
852
746
|
}
|
|
853
747
|
describeConversionWorkspaceRevisions(request, optionsOrCallback, callback) {
|
|
@@ -863,13 +757,10 @@ class DataMigrationServiceClient {
|
|
|
863
757
|
options = options || {};
|
|
864
758
|
options.otherArgs = options.otherArgs || {};
|
|
865
759
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
866
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
867
|
-
|
|
868
|
-
conversion_workspace: request.conversionWorkspace ?? '',
|
|
869
|
-
});
|
|
870
|
-
this.initialize().catch(err => {
|
|
871
|
-
throw err;
|
|
760
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
761
|
+
'conversion_workspace': request.conversionWorkspace ?? '',
|
|
872
762
|
});
|
|
763
|
+
this.initialize().catch(err => { throw err; });
|
|
873
764
|
this._log.info('describeConversionWorkspaceRevisions request %j', request);
|
|
874
765
|
const wrappedCallback = callback
|
|
875
766
|
? (error, response, options, rawResponse) => {
|
|
@@ -877,11 +768,16 @@ class DataMigrationServiceClient {
|
|
|
877
768
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
878
769
|
}
|
|
879
770
|
: undefined;
|
|
880
|
-
return this.innerApiCalls
|
|
881
|
-
.describeConversionWorkspaceRevisions(request, options, wrappedCallback)
|
|
771
|
+
return this.innerApiCalls.describeConversionWorkspaceRevisions(request, options, wrappedCallback)
|
|
882
772
|
?.then(([response, options, rawResponse]) => {
|
|
883
773
|
this._log.info('describeConversionWorkspaceRevisions response %j', response);
|
|
884
774
|
return [response, options, rawResponse];
|
|
775
|
+
}).catch((error) => {
|
|
776
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
777
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
778
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
779
|
+
}
|
|
780
|
+
throw error;
|
|
885
781
|
});
|
|
886
782
|
}
|
|
887
783
|
createMigrationJob(request, optionsOrCallback, callback) {
|
|
@@ -897,13 +793,10 @@ class DataMigrationServiceClient {
|
|
|
897
793
|
options = options || {};
|
|
898
794
|
options.otherArgs = options.otherArgs || {};
|
|
899
795
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
900
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
901
|
-
|
|
902
|
-
parent: request.parent ?? '',
|
|
903
|
-
});
|
|
904
|
-
this.initialize().catch(err => {
|
|
905
|
-
throw err;
|
|
796
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
797
|
+
'parent': request.parent ?? '',
|
|
906
798
|
});
|
|
799
|
+
this.initialize().catch(err => { throw err; });
|
|
907
800
|
const wrappedCallback = callback
|
|
908
801
|
? (error, response, rawResponse, _) => {
|
|
909
802
|
this._log.info('createMigrationJob response %j', rawResponse);
|
|
@@ -911,8 +804,7 @@ class DataMigrationServiceClient {
|
|
|
911
804
|
}
|
|
912
805
|
: undefined;
|
|
913
806
|
this._log.info('createMigrationJob request %j', request);
|
|
914
|
-
return this.innerApiCalls
|
|
915
|
-
.createMigrationJob(request, options, wrappedCallback)
|
|
807
|
+
return this.innerApiCalls.createMigrationJob(request, options, wrappedCallback)
|
|
916
808
|
?.then(([response, rawResponse, _]) => {
|
|
917
809
|
this._log.info('createMigrationJob response %j', rawResponse);
|
|
918
810
|
return [response, rawResponse, _];
|
|
@@ -949,13 +841,10 @@ class DataMigrationServiceClient {
|
|
|
949
841
|
options = options || {};
|
|
950
842
|
options.otherArgs = options.otherArgs || {};
|
|
951
843
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
952
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
953
|
-
|
|
954
|
-
'migration_job.name': request.migrationJob.name ?? '',
|
|
955
|
-
});
|
|
956
|
-
this.initialize().catch(err => {
|
|
957
|
-
throw err;
|
|
844
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
845
|
+
'migration_job.name': request.migrationJob.name ?? '',
|
|
958
846
|
});
|
|
847
|
+
this.initialize().catch(err => { throw err; });
|
|
959
848
|
const wrappedCallback = callback
|
|
960
849
|
? (error, response, rawResponse, _) => {
|
|
961
850
|
this._log.info('updateMigrationJob response %j', rawResponse);
|
|
@@ -963,8 +852,7 @@ class DataMigrationServiceClient {
|
|
|
963
852
|
}
|
|
964
853
|
: undefined;
|
|
965
854
|
this._log.info('updateMigrationJob request %j', request);
|
|
966
|
-
return this.innerApiCalls
|
|
967
|
-
.updateMigrationJob(request, options, wrappedCallback)
|
|
855
|
+
return this.innerApiCalls.updateMigrationJob(request, options, wrappedCallback)
|
|
968
856
|
?.then(([response, rawResponse, _]) => {
|
|
969
857
|
this._log.info('updateMigrationJob response %j', rawResponse);
|
|
970
858
|
return [response, rawResponse, _];
|
|
@@ -1001,13 +889,10 @@ class DataMigrationServiceClient {
|
|
|
1001
889
|
options = options || {};
|
|
1002
890
|
options.otherArgs = options.otherArgs || {};
|
|
1003
891
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1004
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1005
|
-
|
|
1006
|
-
name: request.name ?? '',
|
|
1007
|
-
});
|
|
1008
|
-
this.initialize().catch(err => {
|
|
1009
|
-
throw err;
|
|
892
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
893
|
+
'name': request.name ?? '',
|
|
1010
894
|
});
|
|
895
|
+
this.initialize().catch(err => { throw err; });
|
|
1011
896
|
const wrappedCallback = callback
|
|
1012
897
|
? (error, response, rawResponse, _) => {
|
|
1013
898
|
this._log.info('deleteMigrationJob response %j', rawResponse);
|
|
@@ -1015,8 +900,7 @@ class DataMigrationServiceClient {
|
|
|
1015
900
|
}
|
|
1016
901
|
: undefined;
|
|
1017
902
|
this._log.info('deleteMigrationJob request %j', request);
|
|
1018
|
-
return this.innerApiCalls
|
|
1019
|
-
.deleteMigrationJob(request, options, wrappedCallback)
|
|
903
|
+
return this.innerApiCalls.deleteMigrationJob(request, options, wrappedCallback)
|
|
1020
904
|
?.then(([response, rawResponse, _]) => {
|
|
1021
905
|
this._log.info('deleteMigrationJob response %j', rawResponse);
|
|
1022
906
|
return [response, rawResponse, _];
|
|
@@ -1053,13 +937,10 @@ class DataMigrationServiceClient {
|
|
|
1053
937
|
options = options || {};
|
|
1054
938
|
options.otherArgs = options.otherArgs || {};
|
|
1055
939
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1056
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1057
|
-
|
|
1058
|
-
name: request.name ?? '',
|
|
1059
|
-
});
|
|
1060
|
-
this.initialize().catch(err => {
|
|
1061
|
-
throw err;
|
|
940
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
941
|
+
'name': request.name ?? '',
|
|
1062
942
|
});
|
|
943
|
+
this.initialize().catch(err => { throw err; });
|
|
1063
944
|
const wrappedCallback = callback
|
|
1064
945
|
? (error, response, rawResponse, _) => {
|
|
1065
946
|
this._log.info('startMigrationJob response %j', rawResponse);
|
|
@@ -1067,8 +948,7 @@ class DataMigrationServiceClient {
|
|
|
1067
948
|
}
|
|
1068
949
|
: undefined;
|
|
1069
950
|
this._log.info('startMigrationJob request %j', request);
|
|
1070
|
-
return this.innerApiCalls
|
|
1071
|
-
.startMigrationJob(request, options, wrappedCallback)
|
|
951
|
+
return this.innerApiCalls.startMigrationJob(request, options, wrappedCallback)
|
|
1072
952
|
?.then(([response, rawResponse, _]) => {
|
|
1073
953
|
this._log.info('startMigrationJob response %j', rawResponse);
|
|
1074
954
|
return [response, rawResponse, _];
|
|
@@ -1105,13 +985,10 @@ class DataMigrationServiceClient {
|
|
|
1105
985
|
options = options || {};
|
|
1106
986
|
options.otherArgs = options.otherArgs || {};
|
|
1107
987
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1108
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1109
|
-
|
|
1110
|
-
name: request.name ?? '',
|
|
1111
|
-
});
|
|
1112
|
-
this.initialize().catch(err => {
|
|
1113
|
-
throw err;
|
|
988
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
989
|
+
'name': request.name ?? '',
|
|
1114
990
|
});
|
|
991
|
+
this.initialize().catch(err => { throw err; });
|
|
1115
992
|
const wrappedCallback = callback
|
|
1116
993
|
? (error, response, rawResponse, _) => {
|
|
1117
994
|
this._log.info('stopMigrationJob response %j', rawResponse);
|
|
@@ -1119,8 +996,7 @@ class DataMigrationServiceClient {
|
|
|
1119
996
|
}
|
|
1120
997
|
: undefined;
|
|
1121
998
|
this._log.info('stopMigrationJob request %j', request);
|
|
1122
|
-
return this.innerApiCalls
|
|
1123
|
-
.stopMigrationJob(request, options, wrappedCallback)
|
|
999
|
+
return this.innerApiCalls.stopMigrationJob(request, options, wrappedCallback)
|
|
1124
1000
|
?.then(([response, rawResponse, _]) => {
|
|
1125
1001
|
this._log.info('stopMigrationJob response %j', rawResponse);
|
|
1126
1002
|
return [response, rawResponse, _];
|
|
@@ -1157,13 +1033,10 @@ class DataMigrationServiceClient {
|
|
|
1157
1033
|
options = options || {};
|
|
1158
1034
|
options.otherArgs = options.otherArgs || {};
|
|
1159
1035
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1160
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1161
|
-
|
|
1162
|
-
name: request.name ?? '',
|
|
1163
|
-
});
|
|
1164
|
-
this.initialize().catch(err => {
|
|
1165
|
-
throw err;
|
|
1036
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1037
|
+
'name': request.name ?? '',
|
|
1166
1038
|
});
|
|
1039
|
+
this.initialize().catch(err => { throw err; });
|
|
1167
1040
|
const wrappedCallback = callback
|
|
1168
1041
|
? (error, response, rawResponse, _) => {
|
|
1169
1042
|
this._log.info('resumeMigrationJob response %j', rawResponse);
|
|
@@ -1171,8 +1044,7 @@ class DataMigrationServiceClient {
|
|
|
1171
1044
|
}
|
|
1172
1045
|
: undefined;
|
|
1173
1046
|
this._log.info('resumeMigrationJob request %j', request);
|
|
1174
|
-
return this.innerApiCalls
|
|
1175
|
-
.resumeMigrationJob(request, options, wrappedCallback)
|
|
1047
|
+
return this.innerApiCalls.resumeMigrationJob(request, options, wrappedCallback)
|
|
1176
1048
|
?.then(([response, rawResponse, _]) => {
|
|
1177
1049
|
this._log.info('resumeMigrationJob response %j', rawResponse);
|
|
1178
1050
|
return [response, rawResponse, _];
|
|
@@ -1209,13 +1081,10 @@ class DataMigrationServiceClient {
|
|
|
1209
1081
|
options = options || {};
|
|
1210
1082
|
options.otherArgs = options.otherArgs || {};
|
|
1211
1083
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1212
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1213
|
-
|
|
1214
|
-
name: request.name ?? '',
|
|
1215
|
-
});
|
|
1216
|
-
this.initialize().catch(err => {
|
|
1217
|
-
throw err;
|
|
1084
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1085
|
+
'name': request.name ?? '',
|
|
1218
1086
|
});
|
|
1087
|
+
this.initialize().catch(err => { throw err; });
|
|
1219
1088
|
const wrappedCallback = callback
|
|
1220
1089
|
? (error, response, rawResponse, _) => {
|
|
1221
1090
|
this._log.info('promoteMigrationJob response %j', rawResponse);
|
|
@@ -1223,8 +1092,7 @@ class DataMigrationServiceClient {
|
|
|
1223
1092
|
}
|
|
1224
1093
|
: undefined;
|
|
1225
1094
|
this._log.info('promoteMigrationJob request %j', request);
|
|
1226
|
-
return this.innerApiCalls
|
|
1227
|
-
.promoteMigrationJob(request, options, wrappedCallback)
|
|
1095
|
+
return this.innerApiCalls.promoteMigrationJob(request, options, wrappedCallback)
|
|
1228
1096
|
?.then(([response, rawResponse, _]) => {
|
|
1229
1097
|
this._log.info('promoteMigrationJob response %j', rawResponse);
|
|
1230
1098
|
return [response, rawResponse, _];
|
|
@@ -1261,13 +1129,10 @@ class DataMigrationServiceClient {
|
|
|
1261
1129
|
options = options || {};
|
|
1262
1130
|
options.otherArgs = options.otherArgs || {};
|
|
1263
1131
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1264
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1265
|
-
|
|
1266
|
-
name: request.name ?? '',
|
|
1267
|
-
});
|
|
1268
|
-
this.initialize().catch(err => {
|
|
1269
|
-
throw err;
|
|
1132
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1133
|
+
'name': request.name ?? '',
|
|
1270
1134
|
});
|
|
1135
|
+
this.initialize().catch(err => { throw err; });
|
|
1271
1136
|
const wrappedCallback = callback
|
|
1272
1137
|
? (error, response, rawResponse, _) => {
|
|
1273
1138
|
this._log.info('verifyMigrationJob response %j', rawResponse);
|
|
@@ -1275,8 +1140,7 @@ class DataMigrationServiceClient {
|
|
|
1275
1140
|
}
|
|
1276
1141
|
: undefined;
|
|
1277
1142
|
this._log.info('verifyMigrationJob request %j', request);
|
|
1278
|
-
return this.innerApiCalls
|
|
1279
|
-
.verifyMigrationJob(request, options, wrappedCallback)
|
|
1143
|
+
return this.innerApiCalls.verifyMigrationJob(request, options, wrappedCallback)
|
|
1280
1144
|
?.then(([response, rawResponse, _]) => {
|
|
1281
1145
|
this._log.info('verifyMigrationJob response %j', rawResponse);
|
|
1282
1146
|
return [response, rawResponse, _];
|
|
@@ -1313,13 +1177,10 @@ class DataMigrationServiceClient {
|
|
|
1313
1177
|
options = options || {};
|
|
1314
1178
|
options.otherArgs = options.otherArgs || {};
|
|
1315
1179
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1316
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1317
|
-
|
|
1318
|
-
name: request.name ?? '',
|
|
1319
|
-
});
|
|
1320
|
-
this.initialize().catch(err => {
|
|
1321
|
-
throw err;
|
|
1180
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1181
|
+
'name': request.name ?? '',
|
|
1322
1182
|
});
|
|
1183
|
+
this.initialize().catch(err => { throw err; });
|
|
1323
1184
|
const wrappedCallback = callback
|
|
1324
1185
|
? (error, response, rawResponse, _) => {
|
|
1325
1186
|
this._log.info('restartMigrationJob response %j', rawResponse);
|
|
@@ -1327,8 +1188,7 @@ class DataMigrationServiceClient {
|
|
|
1327
1188
|
}
|
|
1328
1189
|
: undefined;
|
|
1329
1190
|
this._log.info('restartMigrationJob request %j', request);
|
|
1330
|
-
return this.innerApiCalls
|
|
1331
|
-
.restartMigrationJob(request, options, wrappedCallback)
|
|
1191
|
+
return this.innerApiCalls.restartMigrationJob(request, options, wrappedCallback)
|
|
1332
1192
|
?.then(([response, rawResponse, _]) => {
|
|
1333
1193
|
this._log.info('restartMigrationJob response %j', rawResponse);
|
|
1334
1194
|
return [response, rawResponse, _];
|
|
@@ -1365,13 +1225,10 @@ class DataMigrationServiceClient {
|
|
|
1365
1225
|
options = options || {};
|
|
1366
1226
|
options.otherArgs = options.otherArgs || {};
|
|
1367
1227
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1368
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1369
|
-
|
|
1370
|
-
parent: request.parent ?? '',
|
|
1371
|
-
});
|
|
1372
|
-
this.initialize().catch(err => {
|
|
1373
|
-
throw err;
|
|
1228
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1229
|
+
'parent': request.parent ?? '',
|
|
1374
1230
|
});
|
|
1231
|
+
this.initialize().catch(err => { throw err; });
|
|
1375
1232
|
const wrappedCallback = callback
|
|
1376
1233
|
? (error, response, rawResponse, _) => {
|
|
1377
1234
|
this._log.info('createConnectionProfile response %j', rawResponse);
|
|
@@ -1379,8 +1236,7 @@ class DataMigrationServiceClient {
|
|
|
1379
1236
|
}
|
|
1380
1237
|
: undefined;
|
|
1381
1238
|
this._log.info('createConnectionProfile request %j', request);
|
|
1382
|
-
return this.innerApiCalls
|
|
1383
|
-
.createConnectionProfile(request, options, wrappedCallback)
|
|
1239
|
+
return this.innerApiCalls.createConnectionProfile(request, options, wrappedCallback)
|
|
1384
1240
|
?.then(([response, rawResponse, _]) => {
|
|
1385
1241
|
this._log.info('createConnectionProfile response %j', rawResponse);
|
|
1386
1242
|
return [response, rawResponse, _];
|
|
@@ -1417,13 +1273,10 @@ class DataMigrationServiceClient {
|
|
|
1417
1273
|
options = options || {};
|
|
1418
1274
|
options.otherArgs = options.otherArgs || {};
|
|
1419
1275
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1420
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1421
|
-
|
|
1422
|
-
'connection_profile.name': request.connectionProfile.name ?? '',
|
|
1423
|
-
});
|
|
1424
|
-
this.initialize().catch(err => {
|
|
1425
|
-
throw err;
|
|
1276
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1277
|
+
'connection_profile.name': request.connectionProfile.name ?? '',
|
|
1426
1278
|
});
|
|
1279
|
+
this.initialize().catch(err => { throw err; });
|
|
1427
1280
|
const wrappedCallback = callback
|
|
1428
1281
|
? (error, response, rawResponse, _) => {
|
|
1429
1282
|
this._log.info('updateConnectionProfile response %j', rawResponse);
|
|
@@ -1431,8 +1284,7 @@ class DataMigrationServiceClient {
|
|
|
1431
1284
|
}
|
|
1432
1285
|
: undefined;
|
|
1433
1286
|
this._log.info('updateConnectionProfile request %j', request);
|
|
1434
|
-
return this.innerApiCalls
|
|
1435
|
-
.updateConnectionProfile(request, options, wrappedCallback)
|
|
1287
|
+
return this.innerApiCalls.updateConnectionProfile(request, options, wrappedCallback)
|
|
1436
1288
|
?.then(([response, rawResponse, _]) => {
|
|
1437
1289
|
this._log.info('updateConnectionProfile response %j', rawResponse);
|
|
1438
1290
|
return [response, rawResponse, _];
|
|
@@ -1469,13 +1321,10 @@ class DataMigrationServiceClient {
|
|
|
1469
1321
|
options = options || {};
|
|
1470
1322
|
options.otherArgs = options.otherArgs || {};
|
|
1471
1323
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1472
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1473
|
-
|
|
1474
|
-
name: request.name ?? '',
|
|
1475
|
-
});
|
|
1476
|
-
this.initialize().catch(err => {
|
|
1477
|
-
throw err;
|
|
1324
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1325
|
+
'name': request.name ?? '',
|
|
1478
1326
|
});
|
|
1327
|
+
this.initialize().catch(err => { throw err; });
|
|
1479
1328
|
const wrappedCallback = callback
|
|
1480
1329
|
? (error, response, rawResponse, _) => {
|
|
1481
1330
|
this._log.info('deleteConnectionProfile response %j', rawResponse);
|
|
@@ -1483,8 +1332,7 @@ class DataMigrationServiceClient {
|
|
|
1483
1332
|
}
|
|
1484
1333
|
: undefined;
|
|
1485
1334
|
this._log.info('deleteConnectionProfile request %j', request);
|
|
1486
|
-
return this.innerApiCalls
|
|
1487
|
-
.deleteConnectionProfile(request, options, wrappedCallback)
|
|
1335
|
+
return this.innerApiCalls.deleteConnectionProfile(request, options, wrappedCallback)
|
|
1488
1336
|
?.then(([response, rawResponse, _]) => {
|
|
1489
1337
|
this._log.info('deleteConnectionProfile response %j', rawResponse);
|
|
1490
1338
|
return [response, rawResponse, _];
|
|
@@ -1521,13 +1369,10 @@ class DataMigrationServiceClient {
|
|
|
1521
1369
|
options = options || {};
|
|
1522
1370
|
options.otherArgs = options.otherArgs || {};
|
|
1523
1371
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1524
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1525
|
-
|
|
1526
|
-
parent: request.parent ?? '',
|
|
1527
|
-
});
|
|
1528
|
-
this.initialize().catch(err => {
|
|
1529
|
-
throw err;
|
|
1372
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1373
|
+
'parent': request.parent ?? '',
|
|
1530
1374
|
});
|
|
1375
|
+
this.initialize().catch(err => { throw err; });
|
|
1531
1376
|
const wrappedCallback = callback
|
|
1532
1377
|
? (error, response, rawResponse, _) => {
|
|
1533
1378
|
this._log.info('createPrivateConnection response %j', rawResponse);
|
|
@@ -1535,8 +1380,7 @@ class DataMigrationServiceClient {
|
|
|
1535
1380
|
}
|
|
1536
1381
|
: undefined;
|
|
1537
1382
|
this._log.info('createPrivateConnection request %j', request);
|
|
1538
|
-
return this.innerApiCalls
|
|
1539
|
-
.createPrivateConnection(request, options, wrappedCallback)
|
|
1383
|
+
return this.innerApiCalls.createPrivateConnection(request, options, wrappedCallback)
|
|
1540
1384
|
?.then(([response, rawResponse, _]) => {
|
|
1541
1385
|
this._log.info('createPrivateConnection response %j', rawResponse);
|
|
1542
1386
|
return [response, rawResponse, _];
|
|
@@ -1573,13 +1417,10 @@ class DataMigrationServiceClient {
|
|
|
1573
1417
|
options = options || {};
|
|
1574
1418
|
options.otherArgs = options.otherArgs || {};
|
|
1575
1419
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1576
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1577
|
-
|
|
1578
|
-
name: request.name ?? '',
|
|
1579
|
-
});
|
|
1580
|
-
this.initialize().catch(err => {
|
|
1581
|
-
throw err;
|
|
1420
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1421
|
+
'name': request.name ?? '',
|
|
1582
1422
|
});
|
|
1423
|
+
this.initialize().catch(err => { throw err; });
|
|
1583
1424
|
const wrappedCallback = callback
|
|
1584
1425
|
? (error, response, rawResponse, _) => {
|
|
1585
1426
|
this._log.info('deletePrivateConnection response %j', rawResponse);
|
|
@@ -1587,8 +1428,7 @@ class DataMigrationServiceClient {
|
|
|
1587
1428
|
}
|
|
1588
1429
|
: undefined;
|
|
1589
1430
|
this._log.info('deletePrivateConnection request %j', request);
|
|
1590
|
-
return this.innerApiCalls
|
|
1591
|
-
.deletePrivateConnection(request, options, wrappedCallback)
|
|
1431
|
+
return this.innerApiCalls.deletePrivateConnection(request, options, wrappedCallback)
|
|
1592
1432
|
?.then(([response, rawResponse, _]) => {
|
|
1593
1433
|
this._log.info('deletePrivateConnection response %j', rawResponse);
|
|
1594
1434
|
return [response, rawResponse, _];
|
|
@@ -1625,13 +1465,10 @@ class DataMigrationServiceClient {
|
|
|
1625
1465
|
options = options || {};
|
|
1626
1466
|
options.otherArgs = options.otherArgs || {};
|
|
1627
1467
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1628
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1629
|
-
|
|
1630
|
-
parent: request.parent ?? '',
|
|
1631
|
-
});
|
|
1632
|
-
this.initialize().catch(err => {
|
|
1633
|
-
throw err;
|
|
1468
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1469
|
+
'parent': request.parent ?? '',
|
|
1634
1470
|
});
|
|
1471
|
+
this.initialize().catch(err => { throw err; });
|
|
1635
1472
|
const wrappedCallback = callback
|
|
1636
1473
|
? (error, response, rawResponse, _) => {
|
|
1637
1474
|
this._log.info('createConversionWorkspace response %j', rawResponse);
|
|
@@ -1639,8 +1476,7 @@ class DataMigrationServiceClient {
|
|
|
1639
1476
|
}
|
|
1640
1477
|
: undefined;
|
|
1641
1478
|
this._log.info('createConversionWorkspace request %j', request);
|
|
1642
|
-
return this.innerApiCalls
|
|
1643
|
-
.createConversionWorkspace(request, options, wrappedCallback)
|
|
1479
|
+
return this.innerApiCalls.createConversionWorkspace(request, options, wrappedCallback)
|
|
1644
1480
|
?.then(([response, rawResponse, _]) => {
|
|
1645
1481
|
this._log.info('createConversionWorkspace response %j', rawResponse);
|
|
1646
1482
|
return [response, rawResponse, _];
|
|
@@ -1677,13 +1513,10 @@ class DataMigrationServiceClient {
|
|
|
1677
1513
|
options = options || {};
|
|
1678
1514
|
options.otherArgs = options.otherArgs || {};
|
|
1679
1515
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1680
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1681
|
-
|
|
1682
|
-
'conversion_workspace.name': request.conversionWorkspace.name ?? '',
|
|
1683
|
-
});
|
|
1684
|
-
this.initialize().catch(err => {
|
|
1685
|
-
throw err;
|
|
1516
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1517
|
+
'conversion_workspace.name': request.conversionWorkspace.name ?? '',
|
|
1686
1518
|
});
|
|
1519
|
+
this.initialize().catch(err => { throw err; });
|
|
1687
1520
|
const wrappedCallback = callback
|
|
1688
1521
|
? (error, response, rawResponse, _) => {
|
|
1689
1522
|
this._log.info('updateConversionWorkspace response %j', rawResponse);
|
|
@@ -1691,8 +1524,7 @@ class DataMigrationServiceClient {
|
|
|
1691
1524
|
}
|
|
1692
1525
|
: undefined;
|
|
1693
1526
|
this._log.info('updateConversionWorkspace request %j', request);
|
|
1694
|
-
return this.innerApiCalls
|
|
1695
|
-
.updateConversionWorkspace(request, options, wrappedCallback)
|
|
1527
|
+
return this.innerApiCalls.updateConversionWorkspace(request, options, wrappedCallback)
|
|
1696
1528
|
?.then(([response, rawResponse, _]) => {
|
|
1697
1529
|
this._log.info('updateConversionWorkspace response %j', rawResponse);
|
|
1698
1530
|
return [response, rawResponse, _];
|
|
@@ -1729,13 +1561,10 @@ class DataMigrationServiceClient {
|
|
|
1729
1561
|
options = options || {};
|
|
1730
1562
|
options.otherArgs = options.otherArgs || {};
|
|
1731
1563
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1732
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1733
|
-
|
|
1734
|
-
name: request.name ?? '',
|
|
1735
|
-
});
|
|
1736
|
-
this.initialize().catch(err => {
|
|
1737
|
-
throw err;
|
|
1564
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1565
|
+
'name': request.name ?? '',
|
|
1738
1566
|
});
|
|
1567
|
+
this.initialize().catch(err => { throw err; });
|
|
1739
1568
|
const wrappedCallback = callback
|
|
1740
1569
|
? (error, response, rawResponse, _) => {
|
|
1741
1570
|
this._log.info('deleteConversionWorkspace response %j', rawResponse);
|
|
@@ -1743,8 +1572,7 @@ class DataMigrationServiceClient {
|
|
|
1743
1572
|
}
|
|
1744
1573
|
: undefined;
|
|
1745
1574
|
this._log.info('deleteConversionWorkspace request %j', request);
|
|
1746
|
-
return this.innerApiCalls
|
|
1747
|
-
.deleteConversionWorkspace(request, options, wrappedCallback)
|
|
1575
|
+
return this.innerApiCalls.deleteConversionWorkspace(request, options, wrappedCallback)
|
|
1748
1576
|
?.then(([response, rawResponse, _]) => {
|
|
1749
1577
|
this._log.info('deleteConversionWorkspace response %j', rawResponse);
|
|
1750
1578
|
return [response, rawResponse, _];
|
|
@@ -1781,13 +1609,10 @@ class DataMigrationServiceClient {
|
|
|
1781
1609
|
options = options || {};
|
|
1782
1610
|
options.otherArgs = options.otherArgs || {};
|
|
1783
1611
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1784
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1785
|
-
|
|
1786
|
-
name: request.name ?? '',
|
|
1787
|
-
});
|
|
1788
|
-
this.initialize().catch(err => {
|
|
1789
|
-
throw err;
|
|
1612
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1613
|
+
'name': request.name ?? '',
|
|
1790
1614
|
});
|
|
1615
|
+
this.initialize().catch(err => { throw err; });
|
|
1791
1616
|
const wrappedCallback = callback
|
|
1792
1617
|
? (error, response, rawResponse, _) => {
|
|
1793
1618
|
this._log.info('seedConversionWorkspace response %j', rawResponse);
|
|
@@ -1795,8 +1620,7 @@ class DataMigrationServiceClient {
|
|
|
1795
1620
|
}
|
|
1796
1621
|
: undefined;
|
|
1797
1622
|
this._log.info('seedConversionWorkspace request %j', request);
|
|
1798
|
-
return this.innerApiCalls
|
|
1799
|
-
.seedConversionWorkspace(request, options, wrappedCallback)
|
|
1623
|
+
return this.innerApiCalls.seedConversionWorkspace(request, options, wrappedCallback)
|
|
1800
1624
|
?.then(([response, rawResponse, _]) => {
|
|
1801
1625
|
this._log.info('seedConversionWorkspace response %j', rawResponse);
|
|
1802
1626
|
return [response, rawResponse, _];
|
|
@@ -1833,13 +1657,10 @@ class DataMigrationServiceClient {
|
|
|
1833
1657
|
options = options || {};
|
|
1834
1658
|
options.otherArgs = options.otherArgs || {};
|
|
1835
1659
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1836
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1837
|
-
|
|
1838
|
-
parent: request.parent ?? '',
|
|
1839
|
-
});
|
|
1840
|
-
this.initialize().catch(err => {
|
|
1841
|
-
throw err;
|
|
1660
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1661
|
+
'parent': request.parent ?? '',
|
|
1842
1662
|
});
|
|
1663
|
+
this.initialize().catch(err => { throw err; });
|
|
1843
1664
|
const wrappedCallback = callback
|
|
1844
1665
|
? (error, response, rawResponse, _) => {
|
|
1845
1666
|
this._log.info('importMappingRules response %j', rawResponse);
|
|
@@ -1847,8 +1668,7 @@ class DataMigrationServiceClient {
|
|
|
1847
1668
|
}
|
|
1848
1669
|
: undefined;
|
|
1849
1670
|
this._log.info('importMappingRules request %j', request);
|
|
1850
|
-
return this.innerApiCalls
|
|
1851
|
-
.importMappingRules(request, options, wrappedCallback)
|
|
1671
|
+
return this.innerApiCalls.importMappingRules(request, options, wrappedCallback)
|
|
1852
1672
|
?.then(([response, rawResponse, _]) => {
|
|
1853
1673
|
this._log.info('importMappingRules response %j', rawResponse);
|
|
1854
1674
|
return [response, rawResponse, _];
|
|
@@ -1885,13 +1705,10 @@ class DataMigrationServiceClient {
|
|
|
1885
1705
|
options = options || {};
|
|
1886
1706
|
options.otherArgs = options.otherArgs || {};
|
|
1887
1707
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1888
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1889
|
-
|
|
1890
|
-
name: request.name ?? '',
|
|
1891
|
-
});
|
|
1892
|
-
this.initialize().catch(err => {
|
|
1893
|
-
throw err;
|
|
1708
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1709
|
+
'name': request.name ?? '',
|
|
1894
1710
|
});
|
|
1711
|
+
this.initialize().catch(err => { throw err; });
|
|
1895
1712
|
const wrappedCallback = callback
|
|
1896
1713
|
? (error, response, rawResponse, _) => {
|
|
1897
1714
|
this._log.info('convertConversionWorkspace response %j', rawResponse);
|
|
@@ -1899,8 +1716,7 @@ class DataMigrationServiceClient {
|
|
|
1899
1716
|
}
|
|
1900
1717
|
: undefined;
|
|
1901
1718
|
this._log.info('convertConversionWorkspace request %j', request);
|
|
1902
|
-
return this.innerApiCalls
|
|
1903
|
-
.convertConversionWorkspace(request, options, wrappedCallback)
|
|
1719
|
+
return this.innerApiCalls.convertConversionWorkspace(request, options, wrappedCallback)
|
|
1904
1720
|
?.then(([response, rawResponse, _]) => {
|
|
1905
1721
|
this._log.info('convertConversionWorkspace response %j', rawResponse);
|
|
1906
1722
|
return [response, rawResponse, _];
|
|
@@ -1937,13 +1753,10 @@ class DataMigrationServiceClient {
|
|
|
1937
1753
|
options = options || {};
|
|
1938
1754
|
options.otherArgs = options.otherArgs || {};
|
|
1939
1755
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1940
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1941
|
-
|
|
1942
|
-
name: request.name ?? '',
|
|
1943
|
-
});
|
|
1944
|
-
this.initialize().catch(err => {
|
|
1945
|
-
throw err;
|
|
1756
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1757
|
+
'name': request.name ?? '',
|
|
1946
1758
|
});
|
|
1759
|
+
this.initialize().catch(err => { throw err; });
|
|
1947
1760
|
const wrappedCallback = callback
|
|
1948
1761
|
? (error, response, rawResponse, _) => {
|
|
1949
1762
|
this._log.info('commitConversionWorkspace response %j', rawResponse);
|
|
@@ -1951,8 +1764,7 @@ class DataMigrationServiceClient {
|
|
|
1951
1764
|
}
|
|
1952
1765
|
: undefined;
|
|
1953
1766
|
this._log.info('commitConversionWorkspace request %j', request);
|
|
1954
|
-
return this.innerApiCalls
|
|
1955
|
-
.commitConversionWorkspace(request, options, wrappedCallback)
|
|
1767
|
+
return this.innerApiCalls.commitConversionWorkspace(request, options, wrappedCallback)
|
|
1956
1768
|
?.then(([response, rawResponse, _]) => {
|
|
1957
1769
|
this._log.info('commitConversionWorkspace response %j', rawResponse);
|
|
1958
1770
|
return [response, rawResponse, _];
|
|
@@ -1989,13 +1801,10 @@ class DataMigrationServiceClient {
|
|
|
1989
1801
|
options = options || {};
|
|
1990
1802
|
options.otherArgs = options.otherArgs || {};
|
|
1991
1803
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1992
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1993
|
-
|
|
1994
|
-
name: request.name ?? '',
|
|
1995
|
-
});
|
|
1996
|
-
this.initialize().catch(err => {
|
|
1997
|
-
throw err;
|
|
1804
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1805
|
+
'name': request.name ?? '',
|
|
1998
1806
|
});
|
|
1807
|
+
this.initialize().catch(err => { throw err; });
|
|
1999
1808
|
const wrappedCallback = callback
|
|
2000
1809
|
? (error, response, rawResponse, _) => {
|
|
2001
1810
|
this._log.info('rollbackConversionWorkspace response %j', rawResponse);
|
|
@@ -2003,8 +1812,7 @@ class DataMigrationServiceClient {
|
|
|
2003
1812
|
}
|
|
2004
1813
|
: undefined;
|
|
2005
1814
|
this._log.info('rollbackConversionWorkspace request %j', request);
|
|
2006
|
-
return this.innerApiCalls
|
|
2007
|
-
.rollbackConversionWorkspace(request, options, wrappedCallback)
|
|
1815
|
+
return this.innerApiCalls.rollbackConversionWorkspace(request, options, wrappedCallback)
|
|
2008
1816
|
?.then(([response, rawResponse, _]) => {
|
|
2009
1817
|
this._log.info('rollbackConversionWorkspace response %j', rawResponse);
|
|
2010
1818
|
return [response, rawResponse, _];
|
|
@@ -2041,13 +1849,10 @@ class DataMigrationServiceClient {
|
|
|
2041
1849
|
options = options || {};
|
|
2042
1850
|
options.otherArgs = options.otherArgs || {};
|
|
2043
1851
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2044
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2045
|
-
|
|
2046
|
-
name: request.name ?? '',
|
|
2047
|
-
});
|
|
2048
|
-
this.initialize().catch(err => {
|
|
2049
|
-
throw err;
|
|
1852
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1853
|
+
'name': request.name ?? '',
|
|
2050
1854
|
});
|
|
1855
|
+
this.initialize().catch(err => { throw err; });
|
|
2051
1856
|
const wrappedCallback = callback
|
|
2052
1857
|
? (error, response, rawResponse, _) => {
|
|
2053
1858
|
this._log.info('applyConversionWorkspace response %j', rawResponse);
|
|
@@ -2055,8 +1860,7 @@ class DataMigrationServiceClient {
|
|
|
2055
1860
|
}
|
|
2056
1861
|
: undefined;
|
|
2057
1862
|
this._log.info('applyConversionWorkspace request %j', request);
|
|
2058
|
-
return this.innerApiCalls
|
|
2059
|
-
.applyConversionWorkspace(request, options, wrappedCallback)
|
|
1863
|
+
return this.innerApiCalls.applyConversionWorkspace(request, options, wrappedCallback)
|
|
2060
1864
|
?.then(([response, rawResponse, _]) => {
|
|
2061
1865
|
this._log.info('applyConversionWorkspace response %j', rawResponse);
|
|
2062
1866
|
return [response, rawResponse, _];
|
|
@@ -2093,13 +1897,10 @@ class DataMigrationServiceClient {
|
|
|
2093
1897
|
options = options || {};
|
|
2094
1898
|
options.otherArgs = options.otherArgs || {};
|
|
2095
1899
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2096
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2097
|
-
|
|
2098
|
-
parent: request.parent ?? '',
|
|
2099
|
-
});
|
|
2100
|
-
this.initialize().catch(err => {
|
|
2101
|
-
throw err;
|
|
1900
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1901
|
+
'parent': request.parent ?? '',
|
|
2102
1902
|
});
|
|
1903
|
+
this.initialize().catch(err => { throw err; });
|
|
2103
1904
|
const wrappedCallback = callback
|
|
2104
1905
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2105
1906
|
this._log.info('listMigrationJobs values %j', values);
|
|
@@ -2160,15 +1961,12 @@ class DataMigrationServiceClient {
|
|
|
2160
1961
|
options = options || {};
|
|
2161
1962
|
options.otherArgs = options.otherArgs || {};
|
|
2162
1963
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2163
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
});
|
|
1964
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1965
|
+
'parent': request.parent ?? '',
|
|
1966
|
+
});
|
|
2167
1967
|
const defaultCallSettings = this._defaults['listMigrationJobs'];
|
|
2168
1968
|
const callSettings = defaultCallSettings.merge(options);
|
|
2169
|
-
this.initialize().catch(err => {
|
|
2170
|
-
throw err;
|
|
2171
|
-
});
|
|
1969
|
+
this.initialize().catch(err => { throw err; });
|
|
2172
1970
|
this._log.info('listMigrationJobs stream %j', request);
|
|
2173
1971
|
return this.descriptors.page.listMigrationJobs.createStream(this.innerApiCalls.listMigrationJobs, request, callSettings);
|
|
2174
1972
|
}
|
|
@@ -2221,15 +2019,12 @@ class DataMigrationServiceClient {
|
|
|
2221
2019
|
options = options || {};
|
|
2222
2020
|
options.otherArgs = options.otherArgs || {};
|
|
2223
2021
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2224
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
});
|
|
2022
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2023
|
+
'parent': request.parent ?? '',
|
|
2024
|
+
});
|
|
2228
2025
|
const defaultCallSettings = this._defaults['listMigrationJobs'];
|
|
2229
2026
|
const callSettings = defaultCallSettings.merge(options);
|
|
2230
|
-
this.initialize().catch(err => {
|
|
2231
|
-
throw err;
|
|
2232
|
-
});
|
|
2027
|
+
this.initialize().catch(err => { throw err; });
|
|
2233
2028
|
this._log.info('listMigrationJobs iterate %j', request);
|
|
2234
2029
|
return this.descriptors.page.listMigrationJobs.asyncIterate(this.innerApiCalls['listMigrationJobs'], request, callSettings);
|
|
2235
2030
|
}
|
|
@@ -2246,13 +2041,10 @@ class DataMigrationServiceClient {
|
|
|
2246
2041
|
options = options || {};
|
|
2247
2042
|
options.otherArgs = options.otherArgs || {};
|
|
2248
2043
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2249
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2250
|
-
|
|
2251
|
-
parent: request.parent ?? '',
|
|
2252
|
-
});
|
|
2253
|
-
this.initialize().catch(err => {
|
|
2254
|
-
throw err;
|
|
2044
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2045
|
+
'parent': request.parent ?? '',
|
|
2255
2046
|
});
|
|
2047
|
+
this.initialize().catch(err => { throw err; });
|
|
2256
2048
|
const wrappedCallback = callback
|
|
2257
2049
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2258
2050
|
this._log.info('listConnectionProfiles values %j', values);
|
|
@@ -2312,15 +2104,12 @@ class DataMigrationServiceClient {
|
|
|
2312
2104
|
options = options || {};
|
|
2313
2105
|
options.otherArgs = options.otherArgs || {};
|
|
2314
2106
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2315
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
});
|
|
2107
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2108
|
+
'parent': request.parent ?? '',
|
|
2109
|
+
});
|
|
2319
2110
|
const defaultCallSettings = this._defaults['listConnectionProfiles'];
|
|
2320
2111
|
const callSettings = defaultCallSettings.merge(options);
|
|
2321
|
-
this.initialize().catch(err => {
|
|
2322
|
-
throw err;
|
|
2323
|
-
});
|
|
2112
|
+
this.initialize().catch(err => { throw err; });
|
|
2324
2113
|
this._log.info('listConnectionProfiles stream %j', request);
|
|
2325
2114
|
return this.descriptors.page.listConnectionProfiles.createStream(this.innerApiCalls.listConnectionProfiles, request, callSettings);
|
|
2326
2115
|
}
|
|
@@ -2372,15 +2161,12 @@ class DataMigrationServiceClient {
|
|
|
2372
2161
|
options = options || {};
|
|
2373
2162
|
options.otherArgs = options.otherArgs || {};
|
|
2374
2163
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2375
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
});
|
|
2164
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2165
|
+
'parent': request.parent ?? '',
|
|
2166
|
+
});
|
|
2379
2167
|
const defaultCallSettings = this._defaults['listConnectionProfiles'];
|
|
2380
2168
|
const callSettings = defaultCallSettings.merge(options);
|
|
2381
|
-
this.initialize().catch(err => {
|
|
2382
|
-
throw err;
|
|
2383
|
-
});
|
|
2169
|
+
this.initialize().catch(err => { throw err; });
|
|
2384
2170
|
this._log.info('listConnectionProfiles iterate %j', request);
|
|
2385
2171
|
return this.descriptors.page.listConnectionProfiles.asyncIterate(this.innerApiCalls['listConnectionProfiles'], request, callSettings);
|
|
2386
2172
|
}
|
|
@@ -2397,13 +2183,10 @@ class DataMigrationServiceClient {
|
|
|
2397
2183
|
options = options || {};
|
|
2398
2184
|
options.otherArgs = options.otherArgs || {};
|
|
2399
2185
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2400
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2401
|
-
|
|
2402
|
-
parent: request.parent ?? '',
|
|
2403
|
-
});
|
|
2404
|
-
this.initialize().catch(err => {
|
|
2405
|
-
throw err;
|
|
2186
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2187
|
+
'parent': request.parent ?? '',
|
|
2406
2188
|
});
|
|
2189
|
+
this.initialize().catch(err => { throw err; });
|
|
2407
2190
|
const wrappedCallback = callback
|
|
2408
2191
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2409
2192
|
this._log.info('listPrivateConnections values %j', values);
|
|
@@ -2460,15 +2243,12 @@ class DataMigrationServiceClient {
|
|
|
2460
2243
|
options = options || {};
|
|
2461
2244
|
options.otherArgs = options.otherArgs || {};
|
|
2462
2245
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2463
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
});
|
|
2246
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2247
|
+
'parent': request.parent ?? '',
|
|
2248
|
+
});
|
|
2467
2249
|
const defaultCallSettings = this._defaults['listPrivateConnections'];
|
|
2468
2250
|
const callSettings = defaultCallSettings.merge(options);
|
|
2469
|
-
this.initialize().catch(err => {
|
|
2470
|
-
throw err;
|
|
2471
|
-
});
|
|
2251
|
+
this.initialize().catch(err => { throw err; });
|
|
2472
2252
|
this._log.info('listPrivateConnections stream %j', request);
|
|
2473
2253
|
return this.descriptors.page.listPrivateConnections.createStream(this.innerApiCalls.listPrivateConnections, request, callSettings);
|
|
2474
2254
|
}
|
|
@@ -2517,15 +2297,12 @@ class DataMigrationServiceClient {
|
|
|
2517
2297
|
options = options || {};
|
|
2518
2298
|
options.otherArgs = options.otherArgs || {};
|
|
2519
2299
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2520
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
});
|
|
2300
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2301
|
+
'parent': request.parent ?? '',
|
|
2302
|
+
});
|
|
2524
2303
|
const defaultCallSettings = this._defaults['listPrivateConnections'];
|
|
2525
2304
|
const callSettings = defaultCallSettings.merge(options);
|
|
2526
|
-
this.initialize().catch(err => {
|
|
2527
|
-
throw err;
|
|
2528
|
-
});
|
|
2305
|
+
this.initialize().catch(err => { throw err; });
|
|
2529
2306
|
this._log.info('listPrivateConnections iterate %j', request);
|
|
2530
2307
|
return this.descriptors.page.listPrivateConnections.asyncIterate(this.innerApiCalls['listPrivateConnections'], request, callSettings);
|
|
2531
2308
|
}
|
|
@@ -2542,13 +2319,10 @@ class DataMigrationServiceClient {
|
|
|
2542
2319
|
options = options || {};
|
|
2543
2320
|
options.otherArgs = options.otherArgs || {};
|
|
2544
2321
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2545
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2546
|
-
|
|
2547
|
-
parent: request.parent ?? '',
|
|
2548
|
-
});
|
|
2549
|
-
this.initialize().catch(err => {
|
|
2550
|
-
throw err;
|
|
2322
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2323
|
+
'parent': request.parent ?? '',
|
|
2551
2324
|
});
|
|
2325
|
+
this.initialize().catch(err => { throw err; });
|
|
2552
2326
|
const wrappedCallback = callback
|
|
2553
2327
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2554
2328
|
this._log.info('listConversionWorkspaces values %j', values);
|
|
@@ -2604,15 +2378,12 @@ class DataMigrationServiceClient {
|
|
|
2604
2378
|
options = options || {};
|
|
2605
2379
|
options.otherArgs = options.otherArgs || {};
|
|
2606
2380
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2607
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
});
|
|
2381
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2382
|
+
'parent': request.parent ?? '',
|
|
2383
|
+
});
|
|
2611
2384
|
const defaultCallSettings = this._defaults['listConversionWorkspaces'];
|
|
2612
2385
|
const callSettings = defaultCallSettings.merge(options);
|
|
2613
|
-
this.initialize().catch(err => {
|
|
2614
|
-
throw err;
|
|
2615
|
-
});
|
|
2386
|
+
this.initialize().catch(err => { throw err; });
|
|
2616
2387
|
this._log.info('listConversionWorkspaces stream %j', request);
|
|
2617
2388
|
return this.descriptors.page.listConversionWorkspaces.createStream(this.innerApiCalls.listConversionWorkspaces, request, callSettings);
|
|
2618
2389
|
}
|
|
@@ -2660,15 +2431,12 @@ class DataMigrationServiceClient {
|
|
|
2660
2431
|
options = options || {};
|
|
2661
2432
|
options.otherArgs = options.otherArgs || {};
|
|
2662
2433
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2663
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
});
|
|
2434
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2435
|
+
'parent': request.parent ?? '',
|
|
2436
|
+
});
|
|
2667
2437
|
const defaultCallSettings = this._defaults['listConversionWorkspaces'];
|
|
2668
2438
|
const callSettings = defaultCallSettings.merge(options);
|
|
2669
|
-
this.initialize().catch(err => {
|
|
2670
|
-
throw err;
|
|
2671
|
-
});
|
|
2439
|
+
this.initialize().catch(err => { throw err; });
|
|
2672
2440
|
this._log.info('listConversionWorkspaces iterate %j', request);
|
|
2673
2441
|
return this.descriptors.page.listConversionWorkspaces.asyncIterate(this.innerApiCalls['listConversionWorkspaces'], request, callSettings);
|
|
2674
2442
|
}
|
|
@@ -2685,13 +2453,10 @@ class DataMigrationServiceClient {
|
|
|
2685
2453
|
options = options || {};
|
|
2686
2454
|
options.otherArgs = options.otherArgs || {};
|
|
2687
2455
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2688
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2689
|
-
|
|
2690
|
-
parent: request.parent ?? '',
|
|
2691
|
-
});
|
|
2692
|
-
this.initialize().catch(err => {
|
|
2693
|
-
throw err;
|
|
2456
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2457
|
+
'parent': request.parent ?? '',
|
|
2694
2458
|
});
|
|
2459
|
+
this.initialize().catch(err => { throw err; });
|
|
2695
2460
|
const wrappedCallback = callback
|
|
2696
2461
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2697
2462
|
this._log.info('listMappingRules values %j', values);
|
|
@@ -2739,15 +2504,12 @@ class DataMigrationServiceClient {
|
|
|
2739
2504
|
options = options || {};
|
|
2740
2505
|
options.otherArgs = options.otherArgs || {};
|
|
2741
2506
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2742
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
});
|
|
2507
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2508
|
+
'parent': request.parent ?? '',
|
|
2509
|
+
});
|
|
2746
2510
|
const defaultCallSettings = this._defaults['listMappingRules'];
|
|
2747
2511
|
const callSettings = defaultCallSettings.merge(options);
|
|
2748
|
-
this.initialize().catch(err => {
|
|
2749
|
-
throw err;
|
|
2750
|
-
});
|
|
2512
|
+
this.initialize().catch(err => { throw err; });
|
|
2751
2513
|
this._log.info('listMappingRules stream %j', request);
|
|
2752
2514
|
return this.descriptors.page.listMappingRules.createStream(this.innerApiCalls.listMappingRules, request, callSettings);
|
|
2753
2515
|
}
|
|
@@ -2787,15 +2549,12 @@ class DataMigrationServiceClient {
|
|
|
2787
2549
|
options = options || {};
|
|
2788
2550
|
options.otherArgs = options.otherArgs || {};
|
|
2789
2551
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2790
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
});
|
|
2552
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2553
|
+
'parent': request.parent ?? '',
|
|
2554
|
+
});
|
|
2794
2555
|
const defaultCallSettings = this._defaults['listMappingRules'];
|
|
2795
2556
|
const callSettings = defaultCallSettings.merge(options);
|
|
2796
|
-
this.initialize().catch(err => {
|
|
2797
|
-
throw err;
|
|
2798
|
-
});
|
|
2557
|
+
this.initialize().catch(err => { throw err; });
|
|
2799
2558
|
this._log.info('listMappingRules iterate %j', request);
|
|
2800
2559
|
return this.descriptors.page.listMappingRules.asyncIterate(this.innerApiCalls['listMappingRules'], request, callSettings);
|
|
2801
2560
|
}
|
|
@@ -2812,13 +2571,10 @@ class DataMigrationServiceClient {
|
|
|
2812
2571
|
options = options || {};
|
|
2813
2572
|
options.otherArgs = options.otherArgs || {};
|
|
2814
2573
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2815
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2816
|
-
|
|
2817
|
-
conversion_workspace: request.conversionWorkspace ?? '',
|
|
2818
|
-
});
|
|
2819
|
-
this.initialize().catch(err => {
|
|
2820
|
-
throw err;
|
|
2574
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2575
|
+
'conversion_workspace': request.conversionWorkspace ?? '',
|
|
2821
2576
|
});
|
|
2577
|
+
this.initialize().catch(err => { throw err; });
|
|
2822
2578
|
const wrappedCallback = callback
|
|
2823
2579
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2824
2580
|
this._log.info('describeDatabaseEntities values %j', values);
|
|
@@ -2880,15 +2636,12 @@ class DataMigrationServiceClient {
|
|
|
2880
2636
|
options = options || {};
|
|
2881
2637
|
options.otherArgs = options.otherArgs || {};
|
|
2882
2638
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2883
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
});
|
|
2639
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2640
|
+
'conversion_workspace': request.conversionWorkspace ?? '',
|
|
2641
|
+
});
|
|
2887
2642
|
const defaultCallSettings = this._defaults['describeDatabaseEntities'];
|
|
2888
2643
|
const callSettings = defaultCallSettings.merge(options);
|
|
2889
|
-
this.initialize().catch(err => {
|
|
2890
|
-
throw err;
|
|
2891
|
-
});
|
|
2644
|
+
this.initialize().catch(err => { throw err; });
|
|
2892
2645
|
this._log.info('describeDatabaseEntities stream %j', request);
|
|
2893
2646
|
return this.descriptors.page.describeDatabaseEntities.createStream(this.innerApiCalls.describeDatabaseEntities, request, callSettings);
|
|
2894
2647
|
}
|
|
@@ -2942,15 +2695,12 @@ class DataMigrationServiceClient {
|
|
|
2942
2695
|
options = options || {};
|
|
2943
2696
|
options.otherArgs = options.otherArgs || {};
|
|
2944
2697
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2945
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
});
|
|
2698
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2699
|
+
'conversion_workspace': request.conversionWorkspace ?? '',
|
|
2700
|
+
});
|
|
2949
2701
|
const defaultCallSettings = this._defaults['describeDatabaseEntities'];
|
|
2950
2702
|
const callSettings = defaultCallSettings.merge(options);
|
|
2951
|
-
this.initialize().catch(err => {
|
|
2952
|
-
throw err;
|
|
2953
|
-
});
|
|
2703
|
+
this.initialize().catch(err => { throw err; });
|
|
2954
2704
|
this._log.info('describeDatabaseEntities iterate %j', request);
|
|
2955
2705
|
return this.descriptors.page.describeDatabaseEntities.asyncIterate(this.innerApiCalls['describeDatabaseEntities'], request, callSettings);
|
|
2956
2706
|
}
|
|
@@ -2967,13 +2717,10 @@ class DataMigrationServiceClient {
|
|
|
2967
2717
|
options = options || {};
|
|
2968
2718
|
options.otherArgs = options.otherArgs || {};
|
|
2969
2719
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2970
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2971
|
-
|
|
2972
|
-
name: request.name ?? '',
|
|
2973
|
-
});
|
|
2974
|
-
this.initialize().catch(err => {
|
|
2975
|
-
throw err;
|
|
2720
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2721
|
+
'name': request.name ?? '',
|
|
2976
2722
|
});
|
|
2723
|
+
this.initialize().catch(err => { throw err; });
|
|
2977
2724
|
const wrappedCallback = callback
|
|
2978
2725
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2979
2726
|
this._log.info('fetchStaticIps values %j', values);
|
|
@@ -3015,15 +2762,12 @@ class DataMigrationServiceClient {
|
|
|
3015
2762
|
options = options || {};
|
|
3016
2763
|
options.otherArgs = options.otherArgs || {};
|
|
3017
2764
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3018
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
});
|
|
2765
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2766
|
+
'name': request.name ?? '',
|
|
2767
|
+
});
|
|
3022
2768
|
const defaultCallSettings = this._defaults['fetchStaticIps'];
|
|
3023
2769
|
const callSettings = defaultCallSettings.merge(options);
|
|
3024
|
-
this.initialize().catch(err => {
|
|
3025
|
-
throw err;
|
|
3026
|
-
});
|
|
2770
|
+
this.initialize().catch(err => { throw err; });
|
|
3027
2771
|
this._log.info('fetchStaticIps stream %j', request);
|
|
3028
2772
|
return this.descriptors.page.fetchStaticIps.createStream(this.innerApiCalls.fetchStaticIps, request, callSettings);
|
|
3029
2773
|
}
|
|
@@ -3057,15 +2801,12 @@ class DataMigrationServiceClient {
|
|
|
3057
2801
|
options = options || {};
|
|
3058
2802
|
options.otherArgs = options.otherArgs || {};
|
|
3059
2803
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3060
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
});
|
|
2804
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2805
|
+
'name': request.name ?? '',
|
|
2806
|
+
});
|
|
3064
2807
|
const defaultCallSettings = this._defaults['fetchStaticIps'];
|
|
3065
2808
|
const callSettings = defaultCallSettings.merge(options);
|
|
3066
|
-
this.initialize().catch(err => {
|
|
3067
|
-
throw err;
|
|
3068
|
-
});
|
|
2809
|
+
this.initialize().catch(err => { throw err; });
|
|
3069
2810
|
this._log.info('fetchStaticIps iterate %j', request);
|
|
3070
2811
|
return this.descriptors.page.fetchStaticIps.asyncIterate(this.innerApiCalls['fetchStaticIps'], request, callSettings);
|
|
3071
2812
|
}
|
|
@@ -3163,90 +2904,90 @@ class DataMigrationServiceClient {
|
|
|
3163
2904
|
return this.iamClient.testIamPermissions(request, options, callback);
|
|
3164
2905
|
}
|
|
3165
2906
|
/**
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
2907
|
+
* Gets information about a location.
|
|
2908
|
+
*
|
|
2909
|
+
* @param {Object} request
|
|
2910
|
+
* The request object that will be sent.
|
|
2911
|
+
* @param {string} request.name
|
|
2912
|
+
* Resource name for the location.
|
|
2913
|
+
* @param {object} [options]
|
|
2914
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
|
|
2915
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
2916
|
+
* The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
|
|
2917
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
2918
|
+
* for more details and examples.
|
|
2919
|
+
* @example
|
|
2920
|
+
* ```
|
|
2921
|
+
* const [response] = await client.getLocation(request);
|
|
2922
|
+
* ```
|
|
2923
|
+
*/
|
|
3183
2924
|
getLocation(request, options, callback) {
|
|
3184
2925
|
return this.locationsClient.getLocation(request, options, callback);
|
|
3185
2926
|
}
|
|
3186
2927
|
/**
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
2928
|
+
* Lists information about the supported locations for this service. Returns an iterable object.
|
|
2929
|
+
*
|
|
2930
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
2931
|
+
* @param {Object} request
|
|
2932
|
+
* The request object that will be sent.
|
|
2933
|
+
* @param {string} request.name
|
|
2934
|
+
* The resource that owns the locations collection, if applicable.
|
|
2935
|
+
* @param {string} request.filter
|
|
2936
|
+
* The standard list filter.
|
|
2937
|
+
* @param {number} request.pageSize
|
|
2938
|
+
* The standard list page size.
|
|
2939
|
+
* @param {string} request.pageToken
|
|
2940
|
+
* The standard list page token.
|
|
2941
|
+
* @param {object} [options]
|
|
2942
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2943
|
+
* @returns {Object}
|
|
2944
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
2945
|
+
* When you iterate the returned iterable, each element will be an object representing
|
|
2946
|
+
* {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
|
|
2947
|
+
* so you can stop the iteration when you don't need more results.
|
|
2948
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
2949
|
+
* for more details and examples.
|
|
2950
|
+
* @example
|
|
2951
|
+
* ```
|
|
2952
|
+
* const iterable = client.listLocationsAsync(request);
|
|
2953
|
+
* for await (const response of iterable) {
|
|
2954
|
+
* // process response
|
|
2955
|
+
* }
|
|
2956
|
+
* ```
|
|
2957
|
+
*/
|
|
3217
2958
|
listLocationsAsync(request, options) {
|
|
3218
2959
|
return this.locationsClient.listLocationsAsync(request, options);
|
|
3219
2960
|
}
|
|
3220
2961
|
/**
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
2962
|
+
* Gets the latest state of a long-running operation. Clients can use this
|
|
2963
|
+
* method to poll the operation result at intervals as recommended by the API
|
|
2964
|
+
* service.
|
|
2965
|
+
*
|
|
2966
|
+
* @param {Object} request - The request object that will be sent.
|
|
2967
|
+
* @param {string} request.name - The name of the operation resource.
|
|
2968
|
+
* @param {Object=} options
|
|
2969
|
+
* Optional parameters. You can override the default settings for this call,
|
|
2970
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
|
2971
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
|
2972
|
+
* for the details.
|
|
2973
|
+
* @param {function(?Error, ?Object)=} callback
|
|
2974
|
+
* The function which will be called with the result of the API call.
|
|
2975
|
+
*
|
|
2976
|
+
* The second parameter to the callback is an object representing
|
|
2977
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
|
2978
|
+
* @return {Promise} - The promise which resolves to an array.
|
|
2979
|
+
* The first element of the array is an object representing
|
|
2980
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
|
2981
|
+
* The promise has a method named "cancel" which cancels the ongoing API call.
|
|
2982
|
+
*
|
|
2983
|
+
* @example
|
|
2984
|
+
* ```
|
|
2985
|
+
* const client = longrunning.operationsClient();
|
|
2986
|
+
* const name = '';
|
|
2987
|
+
* const [response] = await client.getOperation({name});
|
|
2988
|
+
* // doThingsWith(response)
|
|
2989
|
+
* ```
|
|
2990
|
+
*/
|
|
3250
2991
|
getOperation(request, optionsOrCallback, callback) {
|
|
3251
2992
|
let options;
|
|
3252
2993
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -3548,8 +3289,7 @@ class DataMigrationServiceClient {
|
|
|
3548
3289
|
* @returns {string} A string representing the project.
|
|
3549
3290
|
*/
|
|
3550
3291
|
matchProjectFromMappingRuleName(mappingRuleName) {
|
|
3551
|
-
return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName)
|
|
3552
|
-
.project;
|
|
3292
|
+
return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName).project;
|
|
3553
3293
|
}
|
|
3554
3294
|
/**
|
|
3555
3295
|
* Parse the location from MappingRule resource.
|
|
@@ -3559,8 +3299,7 @@ class DataMigrationServiceClient {
|
|
|
3559
3299
|
* @returns {string} A string representing the location.
|
|
3560
3300
|
*/
|
|
3561
3301
|
matchLocationFromMappingRuleName(mappingRuleName) {
|
|
3562
|
-
return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName)
|
|
3563
|
-
.location;
|
|
3302
|
+
return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName).location;
|
|
3564
3303
|
}
|
|
3565
3304
|
/**
|
|
3566
3305
|
* Parse the conversion_workspace from MappingRule resource.
|
|
@@ -3570,8 +3309,7 @@ class DataMigrationServiceClient {
|
|
|
3570
3309
|
* @returns {string} A string representing the conversion_workspace.
|
|
3571
3310
|
*/
|
|
3572
3311
|
matchConversionWorkspaceFromMappingRuleName(mappingRuleName) {
|
|
3573
|
-
return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName)
|
|
3574
|
-
.conversion_workspace;
|
|
3312
|
+
return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName).conversion_workspace;
|
|
3575
3313
|
}
|
|
3576
3314
|
/**
|
|
3577
3315
|
* Parse the mapping_rule from MappingRule resource.
|
|
@@ -3581,8 +3319,7 @@ class DataMigrationServiceClient {
|
|
|
3581
3319
|
* @returns {string} A string representing the mapping_rule.
|
|
3582
3320
|
*/
|
|
3583
3321
|
matchMappingRuleFromMappingRuleName(mappingRuleName) {
|
|
3584
|
-
return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName)
|
|
3585
|
-
.mapping_rule;
|
|
3322
|
+
return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName).mapping_rule;
|
|
3586
3323
|
}
|
|
3587
3324
|
/**
|
|
3588
3325
|
* Return a fully-qualified migrationJob resource name string.
|
|
@@ -3607,8 +3344,7 @@ class DataMigrationServiceClient {
|
|
|
3607
3344
|
* @returns {string} A string representing the project.
|
|
3608
3345
|
*/
|
|
3609
3346
|
matchProjectFromMigrationJobName(migrationJobName) {
|
|
3610
|
-
return this.pathTemplates.migrationJobPathTemplate.match(migrationJobName)
|
|
3611
|
-
.project;
|
|
3347
|
+
return this.pathTemplates.migrationJobPathTemplate.match(migrationJobName).project;
|
|
3612
3348
|
}
|
|
3613
3349
|
/**
|
|
3614
3350
|
* Parse the location from MigrationJob resource.
|
|
@@ -3618,8 +3354,7 @@ class DataMigrationServiceClient {
|
|
|
3618
3354
|
* @returns {string} A string representing the location.
|
|
3619
3355
|
*/
|
|
3620
3356
|
matchLocationFromMigrationJobName(migrationJobName) {
|
|
3621
|
-
return this.pathTemplates.migrationJobPathTemplate.match(migrationJobName)
|
|
3622
|
-
.location;
|
|
3357
|
+
return this.pathTemplates.migrationJobPathTemplate.match(migrationJobName).location;
|
|
3623
3358
|
}
|
|
3624
3359
|
/**
|
|
3625
3360
|
* Parse the migration_job from MigrationJob resource.
|
|
@@ -3629,8 +3364,7 @@ class DataMigrationServiceClient {
|
|
|
3629
3364
|
* @returns {string} A string representing the migration_job.
|
|
3630
3365
|
*/
|
|
3631
3366
|
matchMigrationJobFromMigrationJobName(migrationJobName) {
|
|
3632
|
-
return this.pathTemplates.migrationJobPathTemplate.match(migrationJobName)
|
|
3633
|
-
.migration_job;
|
|
3367
|
+
return this.pathTemplates.migrationJobPathTemplate.match(migrationJobName).migration_job;
|
|
3634
3368
|
}
|
|
3635
3369
|
/**
|
|
3636
3370
|
* Return a fully-qualified privateConnection resource name string.
|
|
@@ -3710,9 +3444,9 @@ class DataMigrationServiceClient {
|
|
|
3710
3444
|
this._log.info('ending gRPC channel');
|
|
3711
3445
|
this._terminated = true;
|
|
3712
3446
|
stub.close();
|
|
3713
|
-
this.iamClient.close();
|
|
3714
|
-
this.locationsClient.close();
|
|
3715
|
-
this.operationsClient.close();
|
|
3447
|
+
this.iamClient.close().catch(err => { throw err; });
|
|
3448
|
+
this.locationsClient.close().catch(err => { throw err; });
|
|
3449
|
+
void this.operationsClient.close();
|
|
3716
3450
|
});
|
|
3717
3451
|
}
|
|
3718
3452
|
return Promise.resolve();
|