@google-cloud/dms 4.0.0 → 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 +340 -340
- package/build/src/v1/data_migration_service_client.js +434 -590
- package/package.json +4 -4
- package/CHANGELOG.md +0 -189
|
@@ -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,11 +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
|
-
|
|
529
|
-
|
|
530
|
-
this.initialize();
|
|
400
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
401
|
+
'name': request.name ?? '',
|
|
402
|
+
});
|
|
403
|
+
this.initialize().catch(err => { throw err; });
|
|
531
404
|
this._log.info('getMigrationJob request %j', request);
|
|
532
405
|
const wrappedCallback = callback
|
|
533
406
|
? (error, response, options, rawResponse) => {
|
|
@@ -535,11 +408,16 @@ class DataMigrationServiceClient {
|
|
|
535
408
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
536
409
|
}
|
|
537
410
|
: undefined;
|
|
538
|
-
return this.innerApiCalls
|
|
539
|
-
.getMigrationJob(request, options, wrappedCallback)
|
|
411
|
+
return this.innerApiCalls.getMigrationJob(request, options, wrappedCallback)
|
|
540
412
|
?.then(([response, options, rawResponse]) => {
|
|
541
413
|
this._log.info('getMigrationJob response %j', response);
|
|
542
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;
|
|
543
421
|
});
|
|
544
422
|
}
|
|
545
423
|
generateSshScript(request, optionsOrCallback, callback) {
|
|
@@ -555,11 +433,10 @@ class DataMigrationServiceClient {
|
|
|
555
433
|
options = options || {};
|
|
556
434
|
options.otherArgs = options.otherArgs || {};
|
|
557
435
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
558
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
this.initialize();
|
|
436
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
437
|
+
'migration_job': request.migrationJob ?? '',
|
|
438
|
+
});
|
|
439
|
+
this.initialize().catch(err => { throw err; });
|
|
563
440
|
this._log.info('generateSshScript request %j', request);
|
|
564
441
|
const wrappedCallback = callback
|
|
565
442
|
? (error, response, options, rawResponse) => {
|
|
@@ -567,11 +444,16 @@ class DataMigrationServiceClient {
|
|
|
567
444
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
568
445
|
}
|
|
569
446
|
: undefined;
|
|
570
|
-
return this.innerApiCalls
|
|
571
|
-
.generateSshScript(request, options, wrappedCallback)
|
|
447
|
+
return this.innerApiCalls.generateSshScript(request, options, wrappedCallback)
|
|
572
448
|
?.then(([response, options, rawResponse]) => {
|
|
573
449
|
this._log.info('generateSshScript response %j', response);
|
|
574
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;
|
|
575
457
|
});
|
|
576
458
|
}
|
|
577
459
|
generateTcpProxyScript(request, optionsOrCallback, callback) {
|
|
@@ -587,11 +469,10 @@ class DataMigrationServiceClient {
|
|
|
587
469
|
options = options || {};
|
|
588
470
|
options.otherArgs = options.otherArgs || {};
|
|
589
471
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
590
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
this.initialize();
|
|
472
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
473
|
+
'migration_job': request.migrationJob ?? '',
|
|
474
|
+
});
|
|
475
|
+
this.initialize().catch(err => { throw err; });
|
|
595
476
|
this._log.info('generateTcpProxyScript request %j', request);
|
|
596
477
|
const wrappedCallback = callback
|
|
597
478
|
? (error, response, options, rawResponse) => {
|
|
@@ -599,11 +480,16 @@ class DataMigrationServiceClient {
|
|
|
599
480
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
600
481
|
}
|
|
601
482
|
: undefined;
|
|
602
|
-
return this.innerApiCalls
|
|
603
|
-
.generateTcpProxyScript(request, options, wrappedCallback)
|
|
483
|
+
return this.innerApiCalls.generateTcpProxyScript(request, options, wrappedCallback)
|
|
604
484
|
?.then(([response, options, rawResponse]) => {
|
|
605
485
|
this._log.info('generateTcpProxyScript response %j', response);
|
|
606
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;
|
|
607
493
|
});
|
|
608
494
|
}
|
|
609
495
|
getConnectionProfile(request, optionsOrCallback, callback) {
|
|
@@ -619,11 +505,10 @@ class DataMigrationServiceClient {
|
|
|
619
505
|
options = options || {};
|
|
620
506
|
options.otherArgs = options.otherArgs || {};
|
|
621
507
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
622
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
this.initialize();
|
|
508
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
509
|
+
'name': request.name ?? '',
|
|
510
|
+
});
|
|
511
|
+
this.initialize().catch(err => { throw err; });
|
|
627
512
|
this._log.info('getConnectionProfile request %j', request);
|
|
628
513
|
const wrappedCallback = callback
|
|
629
514
|
? (error, response, options, rawResponse) => {
|
|
@@ -631,11 +516,16 @@ class DataMigrationServiceClient {
|
|
|
631
516
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
632
517
|
}
|
|
633
518
|
: undefined;
|
|
634
|
-
return this.innerApiCalls
|
|
635
|
-
.getConnectionProfile(request, options, wrappedCallback)
|
|
519
|
+
return this.innerApiCalls.getConnectionProfile(request, options, wrappedCallback)
|
|
636
520
|
?.then(([response, options, rawResponse]) => {
|
|
637
521
|
this._log.info('getConnectionProfile response %j', response);
|
|
638
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;
|
|
639
529
|
});
|
|
640
530
|
}
|
|
641
531
|
getPrivateConnection(request, optionsOrCallback, callback) {
|
|
@@ -651,11 +541,10 @@ class DataMigrationServiceClient {
|
|
|
651
541
|
options = options || {};
|
|
652
542
|
options.otherArgs = options.otherArgs || {};
|
|
653
543
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
654
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
this.initialize();
|
|
544
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
545
|
+
'name': request.name ?? '',
|
|
546
|
+
});
|
|
547
|
+
this.initialize().catch(err => { throw err; });
|
|
659
548
|
this._log.info('getPrivateConnection request %j', request);
|
|
660
549
|
const wrappedCallback = callback
|
|
661
550
|
? (error, response, options, rawResponse) => {
|
|
@@ -663,11 +552,16 @@ class DataMigrationServiceClient {
|
|
|
663
552
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
664
553
|
}
|
|
665
554
|
: undefined;
|
|
666
|
-
return this.innerApiCalls
|
|
667
|
-
.getPrivateConnection(request, options, wrappedCallback)
|
|
555
|
+
return this.innerApiCalls.getPrivateConnection(request, options, wrappedCallback)
|
|
668
556
|
?.then(([response, options, rawResponse]) => {
|
|
669
557
|
this._log.info('getPrivateConnection response %j', response);
|
|
670
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;
|
|
671
565
|
});
|
|
672
566
|
}
|
|
673
567
|
getConversionWorkspace(request, optionsOrCallback, callback) {
|
|
@@ -683,11 +577,10 @@ class DataMigrationServiceClient {
|
|
|
683
577
|
options = options || {};
|
|
684
578
|
options.otherArgs = options.otherArgs || {};
|
|
685
579
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
686
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
this.initialize();
|
|
580
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
581
|
+
'name': request.name ?? '',
|
|
582
|
+
});
|
|
583
|
+
this.initialize().catch(err => { throw err; });
|
|
691
584
|
this._log.info('getConversionWorkspace request %j', request);
|
|
692
585
|
const wrappedCallback = callback
|
|
693
586
|
? (error, response, options, rawResponse) => {
|
|
@@ -695,11 +588,16 @@ class DataMigrationServiceClient {
|
|
|
695
588
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
696
589
|
}
|
|
697
590
|
: undefined;
|
|
698
|
-
return this.innerApiCalls
|
|
699
|
-
.getConversionWorkspace(request, options, wrappedCallback)
|
|
591
|
+
return this.innerApiCalls.getConversionWorkspace(request, options, wrappedCallback)
|
|
700
592
|
?.then(([response, options, rawResponse]) => {
|
|
701
593
|
this._log.info('getConversionWorkspace response %j', response);
|
|
702
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;
|
|
703
601
|
});
|
|
704
602
|
}
|
|
705
603
|
createMappingRule(request, optionsOrCallback, callback) {
|
|
@@ -715,11 +613,10 @@ class DataMigrationServiceClient {
|
|
|
715
613
|
options = options || {};
|
|
716
614
|
options.otherArgs = options.otherArgs || {};
|
|
717
615
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
718
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
this.initialize();
|
|
616
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
617
|
+
'parent': request.parent ?? '',
|
|
618
|
+
});
|
|
619
|
+
this.initialize().catch(err => { throw err; });
|
|
723
620
|
this._log.info('createMappingRule request %j', request);
|
|
724
621
|
const wrappedCallback = callback
|
|
725
622
|
? (error, response, options, rawResponse) => {
|
|
@@ -727,11 +624,16 @@ class DataMigrationServiceClient {
|
|
|
727
624
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
728
625
|
}
|
|
729
626
|
: undefined;
|
|
730
|
-
return this.innerApiCalls
|
|
731
|
-
.createMappingRule(request, options, wrappedCallback)
|
|
627
|
+
return this.innerApiCalls.createMappingRule(request, options, wrappedCallback)
|
|
732
628
|
?.then(([response, options, rawResponse]) => {
|
|
733
629
|
this._log.info('createMappingRule response %j', response);
|
|
734
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;
|
|
735
637
|
});
|
|
736
638
|
}
|
|
737
639
|
deleteMappingRule(request, optionsOrCallback, callback) {
|
|
@@ -747,11 +649,10 @@ class DataMigrationServiceClient {
|
|
|
747
649
|
options = options || {};
|
|
748
650
|
options.otherArgs = options.otherArgs || {};
|
|
749
651
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
750
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
this.initialize();
|
|
652
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
653
|
+
'name': request.name ?? '',
|
|
654
|
+
});
|
|
655
|
+
this.initialize().catch(err => { throw err; });
|
|
755
656
|
this._log.info('deleteMappingRule request %j', request);
|
|
756
657
|
const wrappedCallback = callback
|
|
757
658
|
? (error, response, options, rawResponse) => {
|
|
@@ -759,11 +660,16 @@ class DataMigrationServiceClient {
|
|
|
759
660
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
760
661
|
}
|
|
761
662
|
: undefined;
|
|
762
|
-
return this.innerApiCalls
|
|
763
|
-
.deleteMappingRule(request, options, wrappedCallback)
|
|
663
|
+
return this.innerApiCalls.deleteMappingRule(request, options, wrappedCallback)
|
|
764
664
|
?.then(([response, options, rawResponse]) => {
|
|
765
665
|
this._log.info('deleteMappingRule response %j', response);
|
|
766
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;
|
|
767
673
|
});
|
|
768
674
|
}
|
|
769
675
|
getMappingRule(request, optionsOrCallback, callback) {
|
|
@@ -779,11 +685,10 @@ class DataMigrationServiceClient {
|
|
|
779
685
|
options = options || {};
|
|
780
686
|
options.otherArgs = options.otherArgs || {};
|
|
781
687
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
782
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
this.initialize();
|
|
688
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
689
|
+
'name': request.name ?? '',
|
|
690
|
+
});
|
|
691
|
+
this.initialize().catch(err => { throw err; });
|
|
787
692
|
this._log.info('getMappingRule request %j', request);
|
|
788
693
|
const wrappedCallback = callback
|
|
789
694
|
? (error, response, options, rawResponse) => {
|
|
@@ -791,11 +696,16 @@ class DataMigrationServiceClient {
|
|
|
791
696
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
792
697
|
}
|
|
793
698
|
: undefined;
|
|
794
|
-
return this.innerApiCalls
|
|
795
|
-
.getMappingRule(request, options, wrappedCallback)
|
|
699
|
+
return this.innerApiCalls.getMappingRule(request, options, wrappedCallback)
|
|
796
700
|
?.then(([response, options, rawResponse]) => {
|
|
797
701
|
this._log.info('getMappingRule response %j', response);
|
|
798
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;
|
|
799
709
|
});
|
|
800
710
|
}
|
|
801
711
|
searchBackgroundJobs(request, optionsOrCallback, callback) {
|
|
@@ -811,11 +721,10 @@ class DataMigrationServiceClient {
|
|
|
811
721
|
options = options || {};
|
|
812
722
|
options.otherArgs = options.otherArgs || {};
|
|
813
723
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
814
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
this.initialize();
|
|
724
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
725
|
+
'conversion_workspace': request.conversionWorkspace ?? '',
|
|
726
|
+
});
|
|
727
|
+
this.initialize().catch(err => { throw err; });
|
|
819
728
|
this._log.info('searchBackgroundJobs request %j', request);
|
|
820
729
|
const wrappedCallback = callback
|
|
821
730
|
? (error, response, options, rawResponse) => {
|
|
@@ -823,11 +732,16 @@ class DataMigrationServiceClient {
|
|
|
823
732
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
824
733
|
}
|
|
825
734
|
: undefined;
|
|
826
|
-
return this.innerApiCalls
|
|
827
|
-
.searchBackgroundJobs(request, options, wrappedCallback)
|
|
735
|
+
return this.innerApiCalls.searchBackgroundJobs(request, options, wrappedCallback)
|
|
828
736
|
?.then(([response, options, rawResponse]) => {
|
|
829
737
|
this._log.info('searchBackgroundJobs response %j', response);
|
|
830
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;
|
|
831
745
|
});
|
|
832
746
|
}
|
|
833
747
|
describeConversionWorkspaceRevisions(request, optionsOrCallback, callback) {
|
|
@@ -843,11 +757,10 @@ class DataMigrationServiceClient {
|
|
|
843
757
|
options = options || {};
|
|
844
758
|
options.otherArgs = options.otherArgs || {};
|
|
845
759
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
846
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
this.initialize();
|
|
760
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
761
|
+
'conversion_workspace': request.conversionWorkspace ?? '',
|
|
762
|
+
});
|
|
763
|
+
this.initialize().catch(err => { throw err; });
|
|
851
764
|
this._log.info('describeConversionWorkspaceRevisions request %j', request);
|
|
852
765
|
const wrappedCallback = callback
|
|
853
766
|
? (error, response, options, rawResponse) => {
|
|
@@ -855,11 +768,16 @@ class DataMigrationServiceClient {
|
|
|
855
768
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
856
769
|
}
|
|
857
770
|
: undefined;
|
|
858
|
-
return this.innerApiCalls
|
|
859
|
-
.describeConversionWorkspaceRevisions(request, options, wrappedCallback)
|
|
771
|
+
return this.innerApiCalls.describeConversionWorkspaceRevisions(request, options, wrappedCallback)
|
|
860
772
|
?.then(([response, options, rawResponse]) => {
|
|
861
773
|
this._log.info('describeConversionWorkspaceRevisions response %j', response);
|
|
862
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;
|
|
863
781
|
});
|
|
864
782
|
}
|
|
865
783
|
createMigrationJob(request, optionsOrCallback, callback) {
|
|
@@ -875,11 +793,10 @@ class DataMigrationServiceClient {
|
|
|
875
793
|
options = options || {};
|
|
876
794
|
options.otherArgs = options.otherArgs || {};
|
|
877
795
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
878
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
this.initialize();
|
|
796
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
797
|
+
'parent': request.parent ?? '',
|
|
798
|
+
});
|
|
799
|
+
this.initialize().catch(err => { throw err; });
|
|
883
800
|
const wrappedCallback = callback
|
|
884
801
|
? (error, response, rawResponse, _) => {
|
|
885
802
|
this._log.info('createMigrationJob response %j', rawResponse);
|
|
@@ -887,8 +804,7 @@ class DataMigrationServiceClient {
|
|
|
887
804
|
}
|
|
888
805
|
: undefined;
|
|
889
806
|
this._log.info('createMigrationJob request %j', request);
|
|
890
|
-
return this.innerApiCalls
|
|
891
|
-
.createMigrationJob(request, options, wrappedCallback)
|
|
807
|
+
return this.innerApiCalls.createMigrationJob(request, options, wrappedCallback)
|
|
892
808
|
?.then(([response, rawResponse, _]) => {
|
|
893
809
|
this._log.info('createMigrationJob response %j', rawResponse);
|
|
894
810
|
return [response, rawResponse, _];
|
|
@@ -925,11 +841,10 @@ class DataMigrationServiceClient {
|
|
|
925
841
|
options = options || {};
|
|
926
842
|
options.otherArgs = options.otherArgs || {};
|
|
927
843
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
928
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
this.initialize();
|
|
844
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
845
|
+
'migration_job.name': request.migrationJob.name ?? '',
|
|
846
|
+
});
|
|
847
|
+
this.initialize().catch(err => { throw err; });
|
|
933
848
|
const wrappedCallback = callback
|
|
934
849
|
? (error, response, rawResponse, _) => {
|
|
935
850
|
this._log.info('updateMigrationJob response %j', rawResponse);
|
|
@@ -937,8 +852,7 @@ class DataMigrationServiceClient {
|
|
|
937
852
|
}
|
|
938
853
|
: undefined;
|
|
939
854
|
this._log.info('updateMigrationJob request %j', request);
|
|
940
|
-
return this.innerApiCalls
|
|
941
|
-
.updateMigrationJob(request, options, wrappedCallback)
|
|
855
|
+
return this.innerApiCalls.updateMigrationJob(request, options, wrappedCallback)
|
|
942
856
|
?.then(([response, rawResponse, _]) => {
|
|
943
857
|
this._log.info('updateMigrationJob response %j', rawResponse);
|
|
944
858
|
return [response, rawResponse, _];
|
|
@@ -975,11 +889,10 @@ class DataMigrationServiceClient {
|
|
|
975
889
|
options = options || {};
|
|
976
890
|
options.otherArgs = options.otherArgs || {};
|
|
977
891
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
978
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
this.initialize();
|
|
892
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
893
|
+
'name': request.name ?? '',
|
|
894
|
+
});
|
|
895
|
+
this.initialize().catch(err => { throw err; });
|
|
983
896
|
const wrappedCallback = callback
|
|
984
897
|
? (error, response, rawResponse, _) => {
|
|
985
898
|
this._log.info('deleteMigrationJob response %j', rawResponse);
|
|
@@ -987,8 +900,7 @@ class DataMigrationServiceClient {
|
|
|
987
900
|
}
|
|
988
901
|
: undefined;
|
|
989
902
|
this._log.info('deleteMigrationJob request %j', request);
|
|
990
|
-
return this.innerApiCalls
|
|
991
|
-
.deleteMigrationJob(request, options, wrappedCallback)
|
|
903
|
+
return this.innerApiCalls.deleteMigrationJob(request, options, wrappedCallback)
|
|
992
904
|
?.then(([response, rawResponse, _]) => {
|
|
993
905
|
this._log.info('deleteMigrationJob response %j', rawResponse);
|
|
994
906
|
return [response, rawResponse, _];
|
|
@@ -1025,11 +937,10 @@ class DataMigrationServiceClient {
|
|
|
1025
937
|
options = options || {};
|
|
1026
938
|
options.otherArgs = options.otherArgs || {};
|
|
1027
939
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1028
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
this.initialize();
|
|
940
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
941
|
+
'name': request.name ?? '',
|
|
942
|
+
});
|
|
943
|
+
this.initialize().catch(err => { throw err; });
|
|
1033
944
|
const wrappedCallback = callback
|
|
1034
945
|
? (error, response, rawResponse, _) => {
|
|
1035
946
|
this._log.info('startMigrationJob response %j', rawResponse);
|
|
@@ -1037,8 +948,7 @@ class DataMigrationServiceClient {
|
|
|
1037
948
|
}
|
|
1038
949
|
: undefined;
|
|
1039
950
|
this._log.info('startMigrationJob request %j', request);
|
|
1040
|
-
return this.innerApiCalls
|
|
1041
|
-
.startMigrationJob(request, options, wrappedCallback)
|
|
951
|
+
return this.innerApiCalls.startMigrationJob(request, options, wrappedCallback)
|
|
1042
952
|
?.then(([response, rawResponse, _]) => {
|
|
1043
953
|
this._log.info('startMigrationJob response %j', rawResponse);
|
|
1044
954
|
return [response, rawResponse, _];
|
|
@@ -1075,11 +985,10 @@ class DataMigrationServiceClient {
|
|
|
1075
985
|
options = options || {};
|
|
1076
986
|
options.otherArgs = options.otherArgs || {};
|
|
1077
987
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1078
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
this.initialize();
|
|
988
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
989
|
+
'name': request.name ?? '',
|
|
990
|
+
});
|
|
991
|
+
this.initialize().catch(err => { throw err; });
|
|
1083
992
|
const wrappedCallback = callback
|
|
1084
993
|
? (error, response, rawResponse, _) => {
|
|
1085
994
|
this._log.info('stopMigrationJob response %j', rawResponse);
|
|
@@ -1087,8 +996,7 @@ class DataMigrationServiceClient {
|
|
|
1087
996
|
}
|
|
1088
997
|
: undefined;
|
|
1089
998
|
this._log.info('stopMigrationJob request %j', request);
|
|
1090
|
-
return this.innerApiCalls
|
|
1091
|
-
.stopMigrationJob(request, options, wrappedCallback)
|
|
999
|
+
return this.innerApiCalls.stopMigrationJob(request, options, wrappedCallback)
|
|
1092
1000
|
?.then(([response, rawResponse, _]) => {
|
|
1093
1001
|
this._log.info('stopMigrationJob response %j', rawResponse);
|
|
1094
1002
|
return [response, rawResponse, _];
|
|
@@ -1125,11 +1033,10 @@ class DataMigrationServiceClient {
|
|
|
1125
1033
|
options = options || {};
|
|
1126
1034
|
options.otherArgs = options.otherArgs || {};
|
|
1127
1035
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1128
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
this.initialize();
|
|
1036
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1037
|
+
'name': request.name ?? '',
|
|
1038
|
+
});
|
|
1039
|
+
this.initialize().catch(err => { throw err; });
|
|
1133
1040
|
const wrappedCallback = callback
|
|
1134
1041
|
? (error, response, rawResponse, _) => {
|
|
1135
1042
|
this._log.info('resumeMigrationJob response %j', rawResponse);
|
|
@@ -1137,8 +1044,7 @@ class DataMigrationServiceClient {
|
|
|
1137
1044
|
}
|
|
1138
1045
|
: undefined;
|
|
1139
1046
|
this._log.info('resumeMigrationJob request %j', request);
|
|
1140
|
-
return this.innerApiCalls
|
|
1141
|
-
.resumeMigrationJob(request, options, wrappedCallback)
|
|
1047
|
+
return this.innerApiCalls.resumeMigrationJob(request, options, wrappedCallback)
|
|
1142
1048
|
?.then(([response, rawResponse, _]) => {
|
|
1143
1049
|
this._log.info('resumeMigrationJob response %j', rawResponse);
|
|
1144
1050
|
return [response, rawResponse, _];
|
|
@@ -1175,11 +1081,10 @@ class DataMigrationServiceClient {
|
|
|
1175
1081
|
options = options || {};
|
|
1176
1082
|
options.otherArgs = options.otherArgs || {};
|
|
1177
1083
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1178
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
this.initialize();
|
|
1084
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1085
|
+
'name': request.name ?? '',
|
|
1086
|
+
});
|
|
1087
|
+
this.initialize().catch(err => { throw err; });
|
|
1183
1088
|
const wrappedCallback = callback
|
|
1184
1089
|
? (error, response, rawResponse, _) => {
|
|
1185
1090
|
this._log.info('promoteMigrationJob response %j', rawResponse);
|
|
@@ -1187,8 +1092,7 @@ class DataMigrationServiceClient {
|
|
|
1187
1092
|
}
|
|
1188
1093
|
: undefined;
|
|
1189
1094
|
this._log.info('promoteMigrationJob request %j', request);
|
|
1190
|
-
return this.innerApiCalls
|
|
1191
|
-
.promoteMigrationJob(request, options, wrappedCallback)
|
|
1095
|
+
return this.innerApiCalls.promoteMigrationJob(request, options, wrappedCallback)
|
|
1192
1096
|
?.then(([response, rawResponse, _]) => {
|
|
1193
1097
|
this._log.info('promoteMigrationJob response %j', rawResponse);
|
|
1194
1098
|
return [response, rawResponse, _];
|
|
@@ -1225,11 +1129,10 @@ class DataMigrationServiceClient {
|
|
|
1225
1129
|
options = options || {};
|
|
1226
1130
|
options.otherArgs = options.otherArgs || {};
|
|
1227
1131
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1228
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
this.initialize();
|
|
1132
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1133
|
+
'name': request.name ?? '',
|
|
1134
|
+
});
|
|
1135
|
+
this.initialize().catch(err => { throw err; });
|
|
1233
1136
|
const wrappedCallback = callback
|
|
1234
1137
|
? (error, response, rawResponse, _) => {
|
|
1235
1138
|
this._log.info('verifyMigrationJob response %j', rawResponse);
|
|
@@ -1237,8 +1140,7 @@ class DataMigrationServiceClient {
|
|
|
1237
1140
|
}
|
|
1238
1141
|
: undefined;
|
|
1239
1142
|
this._log.info('verifyMigrationJob request %j', request);
|
|
1240
|
-
return this.innerApiCalls
|
|
1241
|
-
.verifyMigrationJob(request, options, wrappedCallback)
|
|
1143
|
+
return this.innerApiCalls.verifyMigrationJob(request, options, wrappedCallback)
|
|
1242
1144
|
?.then(([response, rawResponse, _]) => {
|
|
1243
1145
|
this._log.info('verifyMigrationJob response %j', rawResponse);
|
|
1244
1146
|
return [response, rawResponse, _];
|
|
@@ -1275,11 +1177,10 @@ class DataMigrationServiceClient {
|
|
|
1275
1177
|
options = options || {};
|
|
1276
1178
|
options.otherArgs = options.otherArgs || {};
|
|
1277
1179
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1278
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
this.initialize();
|
|
1180
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1181
|
+
'name': request.name ?? '',
|
|
1182
|
+
});
|
|
1183
|
+
this.initialize().catch(err => { throw err; });
|
|
1283
1184
|
const wrappedCallback = callback
|
|
1284
1185
|
? (error, response, rawResponse, _) => {
|
|
1285
1186
|
this._log.info('restartMigrationJob response %j', rawResponse);
|
|
@@ -1287,8 +1188,7 @@ class DataMigrationServiceClient {
|
|
|
1287
1188
|
}
|
|
1288
1189
|
: undefined;
|
|
1289
1190
|
this._log.info('restartMigrationJob request %j', request);
|
|
1290
|
-
return this.innerApiCalls
|
|
1291
|
-
.restartMigrationJob(request, options, wrappedCallback)
|
|
1191
|
+
return this.innerApiCalls.restartMigrationJob(request, options, wrappedCallback)
|
|
1292
1192
|
?.then(([response, rawResponse, _]) => {
|
|
1293
1193
|
this._log.info('restartMigrationJob response %j', rawResponse);
|
|
1294
1194
|
return [response, rawResponse, _];
|
|
@@ -1325,11 +1225,10 @@ class DataMigrationServiceClient {
|
|
|
1325
1225
|
options = options || {};
|
|
1326
1226
|
options.otherArgs = options.otherArgs || {};
|
|
1327
1227
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1328
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
this.initialize();
|
|
1228
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1229
|
+
'parent': request.parent ?? '',
|
|
1230
|
+
});
|
|
1231
|
+
this.initialize().catch(err => { throw err; });
|
|
1333
1232
|
const wrappedCallback = callback
|
|
1334
1233
|
? (error, response, rawResponse, _) => {
|
|
1335
1234
|
this._log.info('createConnectionProfile response %j', rawResponse);
|
|
@@ -1337,8 +1236,7 @@ class DataMigrationServiceClient {
|
|
|
1337
1236
|
}
|
|
1338
1237
|
: undefined;
|
|
1339
1238
|
this._log.info('createConnectionProfile request %j', request);
|
|
1340
|
-
return this.innerApiCalls
|
|
1341
|
-
.createConnectionProfile(request, options, wrappedCallback)
|
|
1239
|
+
return this.innerApiCalls.createConnectionProfile(request, options, wrappedCallback)
|
|
1342
1240
|
?.then(([response, rawResponse, _]) => {
|
|
1343
1241
|
this._log.info('createConnectionProfile response %j', rawResponse);
|
|
1344
1242
|
return [response, rawResponse, _];
|
|
@@ -1375,11 +1273,10 @@ class DataMigrationServiceClient {
|
|
|
1375
1273
|
options = options || {};
|
|
1376
1274
|
options.otherArgs = options.otherArgs || {};
|
|
1377
1275
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1378
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
this.initialize();
|
|
1276
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1277
|
+
'connection_profile.name': request.connectionProfile.name ?? '',
|
|
1278
|
+
});
|
|
1279
|
+
this.initialize().catch(err => { throw err; });
|
|
1383
1280
|
const wrappedCallback = callback
|
|
1384
1281
|
? (error, response, rawResponse, _) => {
|
|
1385
1282
|
this._log.info('updateConnectionProfile response %j', rawResponse);
|
|
@@ -1387,8 +1284,7 @@ class DataMigrationServiceClient {
|
|
|
1387
1284
|
}
|
|
1388
1285
|
: undefined;
|
|
1389
1286
|
this._log.info('updateConnectionProfile request %j', request);
|
|
1390
|
-
return this.innerApiCalls
|
|
1391
|
-
.updateConnectionProfile(request, options, wrappedCallback)
|
|
1287
|
+
return this.innerApiCalls.updateConnectionProfile(request, options, wrappedCallback)
|
|
1392
1288
|
?.then(([response, rawResponse, _]) => {
|
|
1393
1289
|
this._log.info('updateConnectionProfile response %j', rawResponse);
|
|
1394
1290
|
return [response, rawResponse, _];
|
|
@@ -1425,11 +1321,10 @@ class DataMigrationServiceClient {
|
|
|
1425
1321
|
options = options || {};
|
|
1426
1322
|
options.otherArgs = options.otherArgs || {};
|
|
1427
1323
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1428
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
this.initialize();
|
|
1324
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1325
|
+
'name': request.name ?? '',
|
|
1326
|
+
});
|
|
1327
|
+
this.initialize().catch(err => { throw err; });
|
|
1433
1328
|
const wrappedCallback = callback
|
|
1434
1329
|
? (error, response, rawResponse, _) => {
|
|
1435
1330
|
this._log.info('deleteConnectionProfile response %j', rawResponse);
|
|
@@ -1437,8 +1332,7 @@ class DataMigrationServiceClient {
|
|
|
1437
1332
|
}
|
|
1438
1333
|
: undefined;
|
|
1439
1334
|
this._log.info('deleteConnectionProfile request %j', request);
|
|
1440
|
-
return this.innerApiCalls
|
|
1441
|
-
.deleteConnectionProfile(request, options, wrappedCallback)
|
|
1335
|
+
return this.innerApiCalls.deleteConnectionProfile(request, options, wrappedCallback)
|
|
1442
1336
|
?.then(([response, rawResponse, _]) => {
|
|
1443
1337
|
this._log.info('deleteConnectionProfile response %j', rawResponse);
|
|
1444
1338
|
return [response, rawResponse, _];
|
|
@@ -1475,11 +1369,10 @@ class DataMigrationServiceClient {
|
|
|
1475
1369
|
options = options || {};
|
|
1476
1370
|
options.otherArgs = options.otherArgs || {};
|
|
1477
1371
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1478
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
this.initialize();
|
|
1372
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1373
|
+
'parent': request.parent ?? '',
|
|
1374
|
+
});
|
|
1375
|
+
this.initialize().catch(err => { throw err; });
|
|
1483
1376
|
const wrappedCallback = callback
|
|
1484
1377
|
? (error, response, rawResponse, _) => {
|
|
1485
1378
|
this._log.info('createPrivateConnection response %j', rawResponse);
|
|
@@ -1487,8 +1380,7 @@ class DataMigrationServiceClient {
|
|
|
1487
1380
|
}
|
|
1488
1381
|
: undefined;
|
|
1489
1382
|
this._log.info('createPrivateConnection request %j', request);
|
|
1490
|
-
return this.innerApiCalls
|
|
1491
|
-
.createPrivateConnection(request, options, wrappedCallback)
|
|
1383
|
+
return this.innerApiCalls.createPrivateConnection(request, options, wrappedCallback)
|
|
1492
1384
|
?.then(([response, rawResponse, _]) => {
|
|
1493
1385
|
this._log.info('createPrivateConnection response %j', rawResponse);
|
|
1494
1386
|
return [response, rawResponse, _];
|
|
@@ -1525,11 +1417,10 @@ class DataMigrationServiceClient {
|
|
|
1525
1417
|
options = options || {};
|
|
1526
1418
|
options.otherArgs = options.otherArgs || {};
|
|
1527
1419
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1528
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
this.initialize();
|
|
1420
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1421
|
+
'name': request.name ?? '',
|
|
1422
|
+
});
|
|
1423
|
+
this.initialize().catch(err => { throw err; });
|
|
1533
1424
|
const wrappedCallback = callback
|
|
1534
1425
|
? (error, response, rawResponse, _) => {
|
|
1535
1426
|
this._log.info('deletePrivateConnection response %j', rawResponse);
|
|
@@ -1537,8 +1428,7 @@ class DataMigrationServiceClient {
|
|
|
1537
1428
|
}
|
|
1538
1429
|
: undefined;
|
|
1539
1430
|
this._log.info('deletePrivateConnection request %j', request);
|
|
1540
|
-
return this.innerApiCalls
|
|
1541
|
-
.deletePrivateConnection(request, options, wrappedCallback)
|
|
1431
|
+
return this.innerApiCalls.deletePrivateConnection(request, options, wrappedCallback)
|
|
1542
1432
|
?.then(([response, rawResponse, _]) => {
|
|
1543
1433
|
this._log.info('deletePrivateConnection response %j', rawResponse);
|
|
1544
1434
|
return [response, rawResponse, _];
|
|
@@ -1575,11 +1465,10 @@ class DataMigrationServiceClient {
|
|
|
1575
1465
|
options = options || {};
|
|
1576
1466
|
options.otherArgs = options.otherArgs || {};
|
|
1577
1467
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1578
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
this.initialize();
|
|
1468
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1469
|
+
'parent': request.parent ?? '',
|
|
1470
|
+
});
|
|
1471
|
+
this.initialize().catch(err => { throw err; });
|
|
1583
1472
|
const wrappedCallback = callback
|
|
1584
1473
|
? (error, response, rawResponse, _) => {
|
|
1585
1474
|
this._log.info('createConversionWorkspace response %j', rawResponse);
|
|
@@ -1587,8 +1476,7 @@ class DataMigrationServiceClient {
|
|
|
1587
1476
|
}
|
|
1588
1477
|
: undefined;
|
|
1589
1478
|
this._log.info('createConversionWorkspace request %j', request);
|
|
1590
|
-
return this.innerApiCalls
|
|
1591
|
-
.createConversionWorkspace(request, options, wrappedCallback)
|
|
1479
|
+
return this.innerApiCalls.createConversionWorkspace(request, options, wrappedCallback)
|
|
1592
1480
|
?.then(([response, rawResponse, _]) => {
|
|
1593
1481
|
this._log.info('createConversionWorkspace response %j', rawResponse);
|
|
1594
1482
|
return [response, rawResponse, _];
|
|
@@ -1625,11 +1513,10 @@ class DataMigrationServiceClient {
|
|
|
1625
1513
|
options = options || {};
|
|
1626
1514
|
options.otherArgs = options.otherArgs || {};
|
|
1627
1515
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1628
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
this.initialize();
|
|
1516
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1517
|
+
'conversion_workspace.name': request.conversionWorkspace.name ?? '',
|
|
1518
|
+
});
|
|
1519
|
+
this.initialize().catch(err => { throw err; });
|
|
1633
1520
|
const wrappedCallback = callback
|
|
1634
1521
|
? (error, response, rawResponse, _) => {
|
|
1635
1522
|
this._log.info('updateConversionWorkspace response %j', rawResponse);
|
|
@@ -1637,8 +1524,7 @@ class DataMigrationServiceClient {
|
|
|
1637
1524
|
}
|
|
1638
1525
|
: undefined;
|
|
1639
1526
|
this._log.info('updateConversionWorkspace request %j', request);
|
|
1640
|
-
return this.innerApiCalls
|
|
1641
|
-
.updateConversionWorkspace(request, options, wrappedCallback)
|
|
1527
|
+
return this.innerApiCalls.updateConversionWorkspace(request, options, wrappedCallback)
|
|
1642
1528
|
?.then(([response, rawResponse, _]) => {
|
|
1643
1529
|
this._log.info('updateConversionWorkspace response %j', rawResponse);
|
|
1644
1530
|
return [response, rawResponse, _];
|
|
@@ -1675,11 +1561,10 @@ class DataMigrationServiceClient {
|
|
|
1675
1561
|
options = options || {};
|
|
1676
1562
|
options.otherArgs = options.otherArgs || {};
|
|
1677
1563
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1678
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
this.initialize();
|
|
1564
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1565
|
+
'name': request.name ?? '',
|
|
1566
|
+
});
|
|
1567
|
+
this.initialize().catch(err => { throw err; });
|
|
1683
1568
|
const wrappedCallback = callback
|
|
1684
1569
|
? (error, response, rawResponse, _) => {
|
|
1685
1570
|
this._log.info('deleteConversionWorkspace response %j', rawResponse);
|
|
@@ -1687,8 +1572,7 @@ class DataMigrationServiceClient {
|
|
|
1687
1572
|
}
|
|
1688
1573
|
: undefined;
|
|
1689
1574
|
this._log.info('deleteConversionWorkspace request %j', request);
|
|
1690
|
-
return this.innerApiCalls
|
|
1691
|
-
.deleteConversionWorkspace(request, options, wrappedCallback)
|
|
1575
|
+
return this.innerApiCalls.deleteConversionWorkspace(request, options, wrappedCallback)
|
|
1692
1576
|
?.then(([response, rawResponse, _]) => {
|
|
1693
1577
|
this._log.info('deleteConversionWorkspace response %j', rawResponse);
|
|
1694
1578
|
return [response, rawResponse, _];
|
|
@@ -1725,11 +1609,10 @@ class DataMigrationServiceClient {
|
|
|
1725
1609
|
options = options || {};
|
|
1726
1610
|
options.otherArgs = options.otherArgs || {};
|
|
1727
1611
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1728
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
this.initialize();
|
|
1612
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1613
|
+
'name': request.name ?? '',
|
|
1614
|
+
});
|
|
1615
|
+
this.initialize().catch(err => { throw err; });
|
|
1733
1616
|
const wrappedCallback = callback
|
|
1734
1617
|
? (error, response, rawResponse, _) => {
|
|
1735
1618
|
this._log.info('seedConversionWorkspace response %j', rawResponse);
|
|
@@ -1737,8 +1620,7 @@ class DataMigrationServiceClient {
|
|
|
1737
1620
|
}
|
|
1738
1621
|
: undefined;
|
|
1739
1622
|
this._log.info('seedConversionWorkspace request %j', request);
|
|
1740
|
-
return this.innerApiCalls
|
|
1741
|
-
.seedConversionWorkspace(request, options, wrappedCallback)
|
|
1623
|
+
return this.innerApiCalls.seedConversionWorkspace(request, options, wrappedCallback)
|
|
1742
1624
|
?.then(([response, rawResponse, _]) => {
|
|
1743
1625
|
this._log.info('seedConversionWorkspace response %j', rawResponse);
|
|
1744
1626
|
return [response, rawResponse, _];
|
|
@@ -1775,11 +1657,10 @@ class DataMigrationServiceClient {
|
|
|
1775
1657
|
options = options || {};
|
|
1776
1658
|
options.otherArgs = options.otherArgs || {};
|
|
1777
1659
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1778
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
this.initialize();
|
|
1660
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1661
|
+
'parent': request.parent ?? '',
|
|
1662
|
+
});
|
|
1663
|
+
this.initialize().catch(err => { throw err; });
|
|
1783
1664
|
const wrappedCallback = callback
|
|
1784
1665
|
? (error, response, rawResponse, _) => {
|
|
1785
1666
|
this._log.info('importMappingRules response %j', rawResponse);
|
|
@@ -1787,8 +1668,7 @@ class DataMigrationServiceClient {
|
|
|
1787
1668
|
}
|
|
1788
1669
|
: undefined;
|
|
1789
1670
|
this._log.info('importMappingRules request %j', request);
|
|
1790
|
-
return this.innerApiCalls
|
|
1791
|
-
.importMappingRules(request, options, wrappedCallback)
|
|
1671
|
+
return this.innerApiCalls.importMappingRules(request, options, wrappedCallback)
|
|
1792
1672
|
?.then(([response, rawResponse, _]) => {
|
|
1793
1673
|
this._log.info('importMappingRules response %j', rawResponse);
|
|
1794
1674
|
return [response, rawResponse, _];
|
|
@@ -1825,11 +1705,10 @@ class DataMigrationServiceClient {
|
|
|
1825
1705
|
options = options || {};
|
|
1826
1706
|
options.otherArgs = options.otherArgs || {};
|
|
1827
1707
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1828
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
this.initialize();
|
|
1708
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1709
|
+
'name': request.name ?? '',
|
|
1710
|
+
});
|
|
1711
|
+
this.initialize().catch(err => { throw err; });
|
|
1833
1712
|
const wrappedCallback = callback
|
|
1834
1713
|
? (error, response, rawResponse, _) => {
|
|
1835
1714
|
this._log.info('convertConversionWorkspace response %j', rawResponse);
|
|
@@ -1837,8 +1716,7 @@ class DataMigrationServiceClient {
|
|
|
1837
1716
|
}
|
|
1838
1717
|
: undefined;
|
|
1839
1718
|
this._log.info('convertConversionWorkspace request %j', request);
|
|
1840
|
-
return this.innerApiCalls
|
|
1841
|
-
.convertConversionWorkspace(request, options, wrappedCallback)
|
|
1719
|
+
return this.innerApiCalls.convertConversionWorkspace(request, options, wrappedCallback)
|
|
1842
1720
|
?.then(([response, rawResponse, _]) => {
|
|
1843
1721
|
this._log.info('convertConversionWorkspace response %j', rawResponse);
|
|
1844
1722
|
return [response, rawResponse, _];
|
|
@@ -1875,11 +1753,10 @@ class DataMigrationServiceClient {
|
|
|
1875
1753
|
options = options || {};
|
|
1876
1754
|
options.otherArgs = options.otherArgs || {};
|
|
1877
1755
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1878
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
this.initialize();
|
|
1756
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1757
|
+
'name': request.name ?? '',
|
|
1758
|
+
});
|
|
1759
|
+
this.initialize().catch(err => { throw err; });
|
|
1883
1760
|
const wrappedCallback = callback
|
|
1884
1761
|
? (error, response, rawResponse, _) => {
|
|
1885
1762
|
this._log.info('commitConversionWorkspace response %j', rawResponse);
|
|
@@ -1887,8 +1764,7 @@ class DataMigrationServiceClient {
|
|
|
1887
1764
|
}
|
|
1888
1765
|
: undefined;
|
|
1889
1766
|
this._log.info('commitConversionWorkspace request %j', request);
|
|
1890
|
-
return this.innerApiCalls
|
|
1891
|
-
.commitConversionWorkspace(request, options, wrappedCallback)
|
|
1767
|
+
return this.innerApiCalls.commitConversionWorkspace(request, options, wrappedCallback)
|
|
1892
1768
|
?.then(([response, rawResponse, _]) => {
|
|
1893
1769
|
this._log.info('commitConversionWorkspace response %j', rawResponse);
|
|
1894
1770
|
return [response, rawResponse, _];
|
|
@@ -1925,11 +1801,10 @@ class DataMigrationServiceClient {
|
|
|
1925
1801
|
options = options || {};
|
|
1926
1802
|
options.otherArgs = options.otherArgs || {};
|
|
1927
1803
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1928
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
this.initialize();
|
|
1804
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1805
|
+
'name': request.name ?? '',
|
|
1806
|
+
});
|
|
1807
|
+
this.initialize().catch(err => { throw err; });
|
|
1933
1808
|
const wrappedCallback = callback
|
|
1934
1809
|
? (error, response, rawResponse, _) => {
|
|
1935
1810
|
this._log.info('rollbackConversionWorkspace response %j', rawResponse);
|
|
@@ -1937,8 +1812,7 @@ class DataMigrationServiceClient {
|
|
|
1937
1812
|
}
|
|
1938
1813
|
: undefined;
|
|
1939
1814
|
this._log.info('rollbackConversionWorkspace request %j', request);
|
|
1940
|
-
return this.innerApiCalls
|
|
1941
|
-
.rollbackConversionWorkspace(request, options, wrappedCallback)
|
|
1815
|
+
return this.innerApiCalls.rollbackConversionWorkspace(request, options, wrappedCallback)
|
|
1942
1816
|
?.then(([response, rawResponse, _]) => {
|
|
1943
1817
|
this._log.info('rollbackConversionWorkspace response %j', rawResponse);
|
|
1944
1818
|
return [response, rawResponse, _];
|
|
@@ -1975,11 +1849,10 @@ class DataMigrationServiceClient {
|
|
|
1975
1849
|
options = options || {};
|
|
1976
1850
|
options.otherArgs = options.otherArgs || {};
|
|
1977
1851
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1978
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
this.initialize();
|
|
1852
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1853
|
+
'name': request.name ?? '',
|
|
1854
|
+
});
|
|
1855
|
+
this.initialize().catch(err => { throw err; });
|
|
1983
1856
|
const wrappedCallback = callback
|
|
1984
1857
|
? (error, response, rawResponse, _) => {
|
|
1985
1858
|
this._log.info('applyConversionWorkspace response %j', rawResponse);
|
|
@@ -1987,8 +1860,7 @@ class DataMigrationServiceClient {
|
|
|
1987
1860
|
}
|
|
1988
1861
|
: undefined;
|
|
1989
1862
|
this._log.info('applyConversionWorkspace request %j', request);
|
|
1990
|
-
return this.innerApiCalls
|
|
1991
|
-
.applyConversionWorkspace(request, options, wrappedCallback)
|
|
1863
|
+
return this.innerApiCalls.applyConversionWorkspace(request, options, wrappedCallback)
|
|
1992
1864
|
?.then(([response, rawResponse, _]) => {
|
|
1993
1865
|
this._log.info('applyConversionWorkspace response %j', rawResponse);
|
|
1994
1866
|
return [response, rawResponse, _];
|
|
@@ -2025,11 +1897,10 @@ class DataMigrationServiceClient {
|
|
|
2025
1897
|
options = options || {};
|
|
2026
1898
|
options.otherArgs = options.otherArgs || {};
|
|
2027
1899
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2028
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
this.initialize();
|
|
1900
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1901
|
+
'parent': request.parent ?? '',
|
|
1902
|
+
});
|
|
1903
|
+
this.initialize().catch(err => { throw err; });
|
|
2033
1904
|
const wrappedCallback = callback
|
|
2034
1905
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2035
1906
|
this._log.info('listMigrationJobs values %j', values);
|
|
@@ -2090,13 +1961,12 @@ class DataMigrationServiceClient {
|
|
|
2090
1961
|
options = options || {};
|
|
2091
1962
|
options.otherArgs = options.otherArgs || {};
|
|
2092
1963
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2093
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
});
|
|
1964
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1965
|
+
'parent': request.parent ?? '',
|
|
1966
|
+
});
|
|
2097
1967
|
const defaultCallSettings = this._defaults['listMigrationJobs'];
|
|
2098
1968
|
const callSettings = defaultCallSettings.merge(options);
|
|
2099
|
-
this.initialize();
|
|
1969
|
+
this.initialize().catch(err => { throw err; });
|
|
2100
1970
|
this._log.info('listMigrationJobs stream %j', request);
|
|
2101
1971
|
return this.descriptors.page.listMigrationJobs.createStream(this.innerApiCalls.listMigrationJobs, request, callSettings);
|
|
2102
1972
|
}
|
|
@@ -2149,13 +2019,12 @@ class DataMigrationServiceClient {
|
|
|
2149
2019
|
options = options || {};
|
|
2150
2020
|
options.otherArgs = options.otherArgs || {};
|
|
2151
2021
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2152
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
});
|
|
2022
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2023
|
+
'parent': request.parent ?? '',
|
|
2024
|
+
});
|
|
2156
2025
|
const defaultCallSettings = this._defaults['listMigrationJobs'];
|
|
2157
2026
|
const callSettings = defaultCallSettings.merge(options);
|
|
2158
|
-
this.initialize();
|
|
2027
|
+
this.initialize().catch(err => { throw err; });
|
|
2159
2028
|
this._log.info('listMigrationJobs iterate %j', request);
|
|
2160
2029
|
return this.descriptors.page.listMigrationJobs.asyncIterate(this.innerApiCalls['listMigrationJobs'], request, callSettings);
|
|
2161
2030
|
}
|
|
@@ -2172,11 +2041,10 @@ class DataMigrationServiceClient {
|
|
|
2172
2041
|
options = options || {};
|
|
2173
2042
|
options.otherArgs = options.otherArgs || {};
|
|
2174
2043
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2175
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
this.initialize();
|
|
2044
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2045
|
+
'parent': request.parent ?? '',
|
|
2046
|
+
});
|
|
2047
|
+
this.initialize().catch(err => { throw err; });
|
|
2180
2048
|
const wrappedCallback = callback
|
|
2181
2049
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2182
2050
|
this._log.info('listConnectionProfiles values %j', values);
|
|
@@ -2236,13 +2104,12 @@ class DataMigrationServiceClient {
|
|
|
2236
2104
|
options = options || {};
|
|
2237
2105
|
options.otherArgs = options.otherArgs || {};
|
|
2238
2106
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2239
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
});
|
|
2107
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2108
|
+
'parent': request.parent ?? '',
|
|
2109
|
+
});
|
|
2243
2110
|
const defaultCallSettings = this._defaults['listConnectionProfiles'];
|
|
2244
2111
|
const callSettings = defaultCallSettings.merge(options);
|
|
2245
|
-
this.initialize();
|
|
2112
|
+
this.initialize().catch(err => { throw err; });
|
|
2246
2113
|
this._log.info('listConnectionProfiles stream %j', request);
|
|
2247
2114
|
return this.descriptors.page.listConnectionProfiles.createStream(this.innerApiCalls.listConnectionProfiles, request, callSettings);
|
|
2248
2115
|
}
|
|
@@ -2294,13 +2161,12 @@ class DataMigrationServiceClient {
|
|
|
2294
2161
|
options = options || {};
|
|
2295
2162
|
options.otherArgs = options.otherArgs || {};
|
|
2296
2163
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2297
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
});
|
|
2164
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2165
|
+
'parent': request.parent ?? '',
|
|
2166
|
+
});
|
|
2301
2167
|
const defaultCallSettings = this._defaults['listConnectionProfiles'];
|
|
2302
2168
|
const callSettings = defaultCallSettings.merge(options);
|
|
2303
|
-
this.initialize();
|
|
2169
|
+
this.initialize().catch(err => { throw err; });
|
|
2304
2170
|
this._log.info('listConnectionProfiles iterate %j', request);
|
|
2305
2171
|
return this.descriptors.page.listConnectionProfiles.asyncIterate(this.innerApiCalls['listConnectionProfiles'], request, callSettings);
|
|
2306
2172
|
}
|
|
@@ -2317,11 +2183,10 @@ class DataMigrationServiceClient {
|
|
|
2317
2183
|
options = options || {};
|
|
2318
2184
|
options.otherArgs = options.otherArgs || {};
|
|
2319
2185
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2320
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
this.initialize();
|
|
2186
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2187
|
+
'parent': request.parent ?? '',
|
|
2188
|
+
});
|
|
2189
|
+
this.initialize().catch(err => { throw err; });
|
|
2325
2190
|
const wrappedCallback = callback
|
|
2326
2191
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2327
2192
|
this._log.info('listPrivateConnections values %j', values);
|
|
@@ -2378,13 +2243,12 @@ class DataMigrationServiceClient {
|
|
|
2378
2243
|
options = options || {};
|
|
2379
2244
|
options.otherArgs = options.otherArgs || {};
|
|
2380
2245
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2381
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
});
|
|
2246
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2247
|
+
'parent': request.parent ?? '',
|
|
2248
|
+
});
|
|
2385
2249
|
const defaultCallSettings = this._defaults['listPrivateConnections'];
|
|
2386
2250
|
const callSettings = defaultCallSettings.merge(options);
|
|
2387
|
-
this.initialize();
|
|
2251
|
+
this.initialize().catch(err => { throw err; });
|
|
2388
2252
|
this._log.info('listPrivateConnections stream %j', request);
|
|
2389
2253
|
return this.descriptors.page.listPrivateConnections.createStream(this.innerApiCalls.listPrivateConnections, request, callSettings);
|
|
2390
2254
|
}
|
|
@@ -2433,13 +2297,12 @@ class DataMigrationServiceClient {
|
|
|
2433
2297
|
options = options || {};
|
|
2434
2298
|
options.otherArgs = options.otherArgs || {};
|
|
2435
2299
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2436
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
});
|
|
2300
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2301
|
+
'parent': request.parent ?? '',
|
|
2302
|
+
});
|
|
2440
2303
|
const defaultCallSettings = this._defaults['listPrivateConnections'];
|
|
2441
2304
|
const callSettings = defaultCallSettings.merge(options);
|
|
2442
|
-
this.initialize();
|
|
2305
|
+
this.initialize().catch(err => { throw err; });
|
|
2443
2306
|
this._log.info('listPrivateConnections iterate %j', request);
|
|
2444
2307
|
return this.descriptors.page.listPrivateConnections.asyncIterate(this.innerApiCalls['listPrivateConnections'], request, callSettings);
|
|
2445
2308
|
}
|
|
@@ -2456,11 +2319,10 @@ class DataMigrationServiceClient {
|
|
|
2456
2319
|
options = options || {};
|
|
2457
2320
|
options.otherArgs = options.otherArgs || {};
|
|
2458
2321
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2459
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
this.initialize();
|
|
2322
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2323
|
+
'parent': request.parent ?? '',
|
|
2324
|
+
});
|
|
2325
|
+
this.initialize().catch(err => { throw err; });
|
|
2464
2326
|
const wrappedCallback = callback
|
|
2465
2327
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2466
2328
|
this._log.info('listConversionWorkspaces values %j', values);
|
|
@@ -2516,13 +2378,12 @@ class DataMigrationServiceClient {
|
|
|
2516
2378
|
options = options || {};
|
|
2517
2379
|
options.otherArgs = options.otherArgs || {};
|
|
2518
2380
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2519
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
});
|
|
2381
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2382
|
+
'parent': request.parent ?? '',
|
|
2383
|
+
});
|
|
2523
2384
|
const defaultCallSettings = this._defaults['listConversionWorkspaces'];
|
|
2524
2385
|
const callSettings = defaultCallSettings.merge(options);
|
|
2525
|
-
this.initialize();
|
|
2386
|
+
this.initialize().catch(err => { throw err; });
|
|
2526
2387
|
this._log.info('listConversionWorkspaces stream %j', request);
|
|
2527
2388
|
return this.descriptors.page.listConversionWorkspaces.createStream(this.innerApiCalls.listConversionWorkspaces, request, callSettings);
|
|
2528
2389
|
}
|
|
@@ -2570,13 +2431,12 @@ class DataMigrationServiceClient {
|
|
|
2570
2431
|
options = options || {};
|
|
2571
2432
|
options.otherArgs = options.otherArgs || {};
|
|
2572
2433
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2573
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
});
|
|
2434
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2435
|
+
'parent': request.parent ?? '',
|
|
2436
|
+
});
|
|
2577
2437
|
const defaultCallSettings = this._defaults['listConversionWorkspaces'];
|
|
2578
2438
|
const callSettings = defaultCallSettings.merge(options);
|
|
2579
|
-
this.initialize();
|
|
2439
|
+
this.initialize().catch(err => { throw err; });
|
|
2580
2440
|
this._log.info('listConversionWorkspaces iterate %j', request);
|
|
2581
2441
|
return this.descriptors.page.listConversionWorkspaces.asyncIterate(this.innerApiCalls['listConversionWorkspaces'], request, callSettings);
|
|
2582
2442
|
}
|
|
@@ -2593,11 +2453,10 @@ class DataMigrationServiceClient {
|
|
|
2593
2453
|
options = options || {};
|
|
2594
2454
|
options.otherArgs = options.otherArgs || {};
|
|
2595
2455
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2596
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
this.initialize();
|
|
2456
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2457
|
+
'parent': request.parent ?? '',
|
|
2458
|
+
});
|
|
2459
|
+
this.initialize().catch(err => { throw err; });
|
|
2601
2460
|
const wrappedCallback = callback
|
|
2602
2461
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2603
2462
|
this._log.info('listMappingRules values %j', values);
|
|
@@ -2645,13 +2504,12 @@ class DataMigrationServiceClient {
|
|
|
2645
2504
|
options = options || {};
|
|
2646
2505
|
options.otherArgs = options.otherArgs || {};
|
|
2647
2506
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2648
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
});
|
|
2507
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2508
|
+
'parent': request.parent ?? '',
|
|
2509
|
+
});
|
|
2652
2510
|
const defaultCallSettings = this._defaults['listMappingRules'];
|
|
2653
2511
|
const callSettings = defaultCallSettings.merge(options);
|
|
2654
|
-
this.initialize();
|
|
2512
|
+
this.initialize().catch(err => { throw err; });
|
|
2655
2513
|
this._log.info('listMappingRules stream %j', request);
|
|
2656
2514
|
return this.descriptors.page.listMappingRules.createStream(this.innerApiCalls.listMappingRules, request, callSettings);
|
|
2657
2515
|
}
|
|
@@ -2691,13 +2549,12 @@ class DataMigrationServiceClient {
|
|
|
2691
2549
|
options = options || {};
|
|
2692
2550
|
options.otherArgs = options.otherArgs || {};
|
|
2693
2551
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2694
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
});
|
|
2552
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2553
|
+
'parent': request.parent ?? '',
|
|
2554
|
+
});
|
|
2698
2555
|
const defaultCallSettings = this._defaults['listMappingRules'];
|
|
2699
2556
|
const callSettings = defaultCallSettings.merge(options);
|
|
2700
|
-
this.initialize();
|
|
2557
|
+
this.initialize().catch(err => { throw err; });
|
|
2701
2558
|
this._log.info('listMappingRules iterate %j', request);
|
|
2702
2559
|
return this.descriptors.page.listMappingRules.asyncIterate(this.innerApiCalls['listMappingRules'], request, callSettings);
|
|
2703
2560
|
}
|
|
@@ -2714,11 +2571,10 @@ class DataMigrationServiceClient {
|
|
|
2714
2571
|
options = options || {};
|
|
2715
2572
|
options.otherArgs = options.otherArgs || {};
|
|
2716
2573
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2717
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
this.initialize();
|
|
2574
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2575
|
+
'conversion_workspace': request.conversionWorkspace ?? '',
|
|
2576
|
+
});
|
|
2577
|
+
this.initialize().catch(err => { throw err; });
|
|
2722
2578
|
const wrappedCallback = callback
|
|
2723
2579
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2724
2580
|
this._log.info('describeDatabaseEntities values %j', values);
|
|
@@ -2780,13 +2636,12 @@ class DataMigrationServiceClient {
|
|
|
2780
2636
|
options = options || {};
|
|
2781
2637
|
options.otherArgs = options.otherArgs || {};
|
|
2782
2638
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2783
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
});
|
|
2639
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2640
|
+
'conversion_workspace': request.conversionWorkspace ?? '',
|
|
2641
|
+
});
|
|
2787
2642
|
const defaultCallSettings = this._defaults['describeDatabaseEntities'];
|
|
2788
2643
|
const callSettings = defaultCallSettings.merge(options);
|
|
2789
|
-
this.initialize();
|
|
2644
|
+
this.initialize().catch(err => { throw err; });
|
|
2790
2645
|
this._log.info('describeDatabaseEntities stream %j', request);
|
|
2791
2646
|
return this.descriptors.page.describeDatabaseEntities.createStream(this.innerApiCalls.describeDatabaseEntities, request, callSettings);
|
|
2792
2647
|
}
|
|
@@ -2840,13 +2695,12 @@ class DataMigrationServiceClient {
|
|
|
2840
2695
|
options = options || {};
|
|
2841
2696
|
options.otherArgs = options.otherArgs || {};
|
|
2842
2697
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2843
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
});
|
|
2698
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2699
|
+
'conversion_workspace': request.conversionWorkspace ?? '',
|
|
2700
|
+
});
|
|
2847
2701
|
const defaultCallSettings = this._defaults['describeDatabaseEntities'];
|
|
2848
2702
|
const callSettings = defaultCallSettings.merge(options);
|
|
2849
|
-
this.initialize();
|
|
2703
|
+
this.initialize().catch(err => { throw err; });
|
|
2850
2704
|
this._log.info('describeDatabaseEntities iterate %j', request);
|
|
2851
2705
|
return this.descriptors.page.describeDatabaseEntities.asyncIterate(this.innerApiCalls['describeDatabaseEntities'], request, callSettings);
|
|
2852
2706
|
}
|
|
@@ -2863,11 +2717,10 @@ class DataMigrationServiceClient {
|
|
|
2863
2717
|
options = options || {};
|
|
2864
2718
|
options.otherArgs = options.otherArgs || {};
|
|
2865
2719
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2866
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
this.initialize();
|
|
2720
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2721
|
+
'name': request.name ?? '',
|
|
2722
|
+
});
|
|
2723
|
+
this.initialize().catch(err => { throw err; });
|
|
2871
2724
|
const wrappedCallback = callback
|
|
2872
2725
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2873
2726
|
this._log.info('fetchStaticIps values %j', values);
|
|
@@ -2909,13 +2762,12 @@ class DataMigrationServiceClient {
|
|
|
2909
2762
|
options = options || {};
|
|
2910
2763
|
options.otherArgs = options.otherArgs || {};
|
|
2911
2764
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2912
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
});
|
|
2765
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2766
|
+
'name': request.name ?? '',
|
|
2767
|
+
});
|
|
2916
2768
|
const defaultCallSettings = this._defaults['fetchStaticIps'];
|
|
2917
2769
|
const callSettings = defaultCallSettings.merge(options);
|
|
2918
|
-
this.initialize();
|
|
2770
|
+
this.initialize().catch(err => { throw err; });
|
|
2919
2771
|
this._log.info('fetchStaticIps stream %j', request);
|
|
2920
2772
|
return this.descriptors.page.fetchStaticIps.createStream(this.innerApiCalls.fetchStaticIps, request, callSettings);
|
|
2921
2773
|
}
|
|
@@ -2949,13 +2801,12 @@ class DataMigrationServiceClient {
|
|
|
2949
2801
|
options = options || {};
|
|
2950
2802
|
options.otherArgs = options.otherArgs || {};
|
|
2951
2803
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2952
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
});
|
|
2804
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2805
|
+
'name': request.name ?? '',
|
|
2806
|
+
});
|
|
2956
2807
|
const defaultCallSettings = this._defaults['fetchStaticIps'];
|
|
2957
2808
|
const callSettings = defaultCallSettings.merge(options);
|
|
2958
|
-
this.initialize();
|
|
2809
|
+
this.initialize().catch(err => { throw err; });
|
|
2959
2810
|
this._log.info('fetchStaticIps iterate %j', request);
|
|
2960
2811
|
return this.descriptors.page.fetchStaticIps.asyncIterate(this.innerApiCalls['fetchStaticIps'], request, callSettings);
|
|
2961
2812
|
}
|
|
@@ -3053,90 +2904,90 @@ class DataMigrationServiceClient {
|
|
|
3053
2904
|
return this.iamClient.testIamPermissions(request, options, callback);
|
|
3054
2905
|
}
|
|
3055
2906
|
/**
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
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
|
+
*/
|
|
3073
2924
|
getLocation(request, options, callback) {
|
|
3074
2925
|
return this.locationsClient.getLocation(request, options, callback);
|
|
3075
2926
|
}
|
|
3076
2927
|
/**
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
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
|
+
*/
|
|
3107
2958
|
listLocationsAsync(request, options) {
|
|
3108
2959
|
return this.locationsClient.listLocationsAsync(request, options);
|
|
3109
2960
|
}
|
|
3110
2961
|
/**
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
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
|
+
*/
|
|
3140
2991
|
getOperation(request, optionsOrCallback, callback) {
|
|
3141
2992
|
let options;
|
|
3142
2993
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -3438,8 +3289,7 @@ class DataMigrationServiceClient {
|
|
|
3438
3289
|
* @returns {string} A string representing the project.
|
|
3439
3290
|
*/
|
|
3440
3291
|
matchProjectFromMappingRuleName(mappingRuleName) {
|
|
3441
|
-
return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName)
|
|
3442
|
-
.project;
|
|
3292
|
+
return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName).project;
|
|
3443
3293
|
}
|
|
3444
3294
|
/**
|
|
3445
3295
|
* Parse the location from MappingRule resource.
|
|
@@ -3449,8 +3299,7 @@ class DataMigrationServiceClient {
|
|
|
3449
3299
|
* @returns {string} A string representing the location.
|
|
3450
3300
|
*/
|
|
3451
3301
|
matchLocationFromMappingRuleName(mappingRuleName) {
|
|
3452
|
-
return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName)
|
|
3453
|
-
.location;
|
|
3302
|
+
return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName).location;
|
|
3454
3303
|
}
|
|
3455
3304
|
/**
|
|
3456
3305
|
* Parse the conversion_workspace from MappingRule resource.
|
|
@@ -3460,8 +3309,7 @@ class DataMigrationServiceClient {
|
|
|
3460
3309
|
* @returns {string} A string representing the conversion_workspace.
|
|
3461
3310
|
*/
|
|
3462
3311
|
matchConversionWorkspaceFromMappingRuleName(mappingRuleName) {
|
|
3463
|
-
return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName)
|
|
3464
|
-
.conversion_workspace;
|
|
3312
|
+
return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName).conversion_workspace;
|
|
3465
3313
|
}
|
|
3466
3314
|
/**
|
|
3467
3315
|
* Parse the mapping_rule from MappingRule resource.
|
|
@@ -3471,8 +3319,7 @@ class DataMigrationServiceClient {
|
|
|
3471
3319
|
* @returns {string} A string representing the mapping_rule.
|
|
3472
3320
|
*/
|
|
3473
3321
|
matchMappingRuleFromMappingRuleName(mappingRuleName) {
|
|
3474
|
-
return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName)
|
|
3475
|
-
.mapping_rule;
|
|
3322
|
+
return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName).mapping_rule;
|
|
3476
3323
|
}
|
|
3477
3324
|
/**
|
|
3478
3325
|
* Return a fully-qualified migrationJob resource name string.
|
|
@@ -3497,8 +3344,7 @@ class DataMigrationServiceClient {
|
|
|
3497
3344
|
* @returns {string} A string representing the project.
|
|
3498
3345
|
*/
|
|
3499
3346
|
matchProjectFromMigrationJobName(migrationJobName) {
|
|
3500
|
-
return this.pathTemplates.migrationJobPathTemplate.match(migrationJobName)
|
|
3501
|
-
.project;
|
|
3347
|
+
return this.pathTemplates.migrationJobPathTemplate.match(migrationJobName).project;
|
|
3502
3348
|
}
|
|
3503
3349
|
/**
|
|
3504
3350
|
* Parse the location from MigrationJob resource.
|
|
@@ -3508,8 +3354,7 @@ class DataMigrationServiceClient {
|
|
|
3508
3354
|
* @returns {string} A string representing the location.
|
|
3509
3355
|
*/
|
|
3510
3356
|
matchLocationFromMigrationJobName(migrationJobName) {
|
|
3511
|
-
return this.pathTemplates.migrationJobPathTemplate.match(migrationJobName)
|
|
3512
|
-
.location;
|
|
3357
|
+
return this.pathTemplates.migrationJobPathTemplate.match(migrationJobName).location;
|
|
3513
3358
|
}
|
|
3514
3359
|
/**
|
|
3515
3360
|
* Parse the migration_job from MigrationJob resource.
|
|
@@ -3519,8 +3364,7 @@ class DataMigrationServiceClient {
|
|
|
3519
3364
|
* @returns {string} A string representing the migration_job.
|
|
3520
3365
|
*/
|
|
3521
3366
|
matchMigrationJobFromMigrationJobName(migrationJobName) {
|
|
3522
|
-
return this.pathTemplates.migrationJobPathTemplate.match(migrationJobName)
|
|
3523
|
-
.migration_job;
|
|
3367
|
+
return this.pathTemplates.migrationJobPathTemplate.match(migrationJobName).migration_job;
|
|
3524
3368
|
}
|
|
3525
3369
|
/**
|
|
3526
3370
|
* Return a fully-qualified privateConnection resource name string.
|
|
@@ -3600,9 +3444,9 @@ class DataMigrationServiceClient {
|
|
|
3600
3444
|
this._log.info('ending gRPC channel');
|
|
3601
3445
|
this._terminated = true;
|
|
3602
3446
|
stub.close();
|
|
3603
|
-
this.iamClient.close();
|
|
3604
|
-
this.locationsClient.close();
|
|
3605
|
-
this.operationsClient.close();
|
|
3447
|
+
this.iamClient.close().catch(err => { throw err; });
|
|
3448
|
+
this.locationsClient.close().catch(err => { throw err; });
|
|
3449
|
+
void this.operationsClient.close();
|
|
3606
3450
|
});
|
|
3607
3451
|
}
|
|
3608
3452
|
return Promise.resolve();
|