@google-cloud/dms 2.2.2 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -115,6 +115,8 @@ class DataMigrationServiceClient {
115
115
  if (servicePath === staticMembers.servicePath) {
116
116
  this.auth.defaultScopes = staticMembers.scopes;
117
117
  }
118
+ this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts);
119
+ this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
118
120
  // Determine the client header string.
119
121
  const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
120
122
  if (typeof process !== 'undefined' && 'versions' in process) {
@@ -139,8 +141,10 @@ class DataMigrationServiceClient {
139
141
  // Create useful helper objects for these.
140
142
  this.pathTemplates = {
141
143
  connectionProfilePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/connectionProfiles/{connection_profile}'),
144
+ conversionWorkspacePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}'),
142
145
  locationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}'),
143
146
  migrationJobPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/migrationJobs/{migration_job}'),
147
+ privateConnectionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/privateConnections/{private_connection}'),
144
148
  projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
145
149
  };
146
150
  // Some of the methods on this service return "paged" results,
@@ -149,6 +153,10 @@ class DataMigrationServiceClient {
149
153
  this.descriptors.page = {
150
154
  listMigrationJobs: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'migrationJobs'),
151
155
  listConnectionProfiles: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'connectionProfiles'),
156
+ listPrivateConnections: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'privateConnections'),
157
+ listConversionWorkspaces: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'conversionWorkspaces'),
158
+ describeDatabaseEntities: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'databaseEntities'),
159
+ fetchStaticIps: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'staticIps'),
152
160
  };
153
161
  const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
154
162
  // This API contains "long-running operations", which return a
@@ -176,6 +184,12 @@ class DataMigrationServiceClient {
176
184
  {
177
185
  get: '/v1/{resource=projects/*/locations/*/migrationJobs/*}:getIamPolicy',
178
186
  },
187
+ {
188
+ get: '/v1/{resource=projects/*/locations/*/conversionWorkspaces/*}:getIamPolicy',
189
+ },
190
+ {
191
+ get: '/v1/{resource=projects/*/locations/*/privateConnections/*}:getIamPolicy',
192
+ },
179
193
  ],
180
194
  },
181
195
  {
@@ -187,6 +201,14 @@ class DataMigrationServiceClient {
187
201
  post: '/v1/{resource=projects/*/locations/*/migrationJobs/*}:setIamPolicy',
188
202
  body: '*',
189
203
  },
204
+ {
205
+ post: '/v1/{resource=projects/*/locations/*/conversionWorkspaces/*}:setIamPolicy',
206
+ body: '*',
207
+ },
208
+ {
209
+ post: '/v1/{resource=projects/*/locations/*/privateConnections/*}:setIamPolicy',
210
+ body: '*',
211
+ },
190
212
  ],
191
213
  },
192
214
  {
@@ -198,6 +220,14 @@ class DataMigrationServiceClient {
198
220
  post: '/v1/{resource=projects/*/locations/*/connectionProfiles/*}:testIamPermissions',
199
221
  body: '*',
200
222
  },
223
+ {
224
+ post: '/v1/{resource=projects/*/locations/*/conversionWorkspaces/*}:testIamPermissions',
225
+ body: '*',
226
+ },
227
+ {
228
+ post: '/v1/{resource=projects/*/locations/*/privateConnections/*}:testIamPermissions',
229
+ body: '*',
230
+ },
201
231
  ],
202
232
  },
203
233
  {
@@ -246,6 +276,28 @@ class DataMigrationServiceClient {
246
276
  const updateConnectionProfileMetadata = protoFilesRoot.lookup('.google.cloud.clouddms.v1.OperationMetadata');
247
277
  const deleteConnectionProfileResponse = protoFilesRoot.lookup('.google.protobuf.Empty');
248
278
  const deleteConnectionProfileMetadata = protoFilesRoot.lookup('.google.cloud.clouddms.v1.OperationMetadata');
279
+ const createPrivateConnectionResponse = protoFilesRoot.lookup('.google.cloud.clouddms.v1.PrivateConnection');
280
+ const createPrivateConnectionMetadata = protoFilesRoot.lookup('.google.cloud.clouddms.v1.OperationMetadata');
281
+ const deletePrivateConnectionResponse = protoFilesRoot.lookup('.google.protobuf.Empty');
282
+ const deletePrivateConnectionMetadata = protoFilesRoot.lookup('.google.cloud.clouddms.v1.OperationMetadata');
283
+ const createConversionWorkspaceResponse = protoFilesRoot.lookup('.google.cloud.clouddms.v1.ConversionWorkspace');
284
+ const createConversionWorkspaceMetadata = protoFilesRoot.lookup('.google.cloud.clouddms.v1.OperationMetadata');
285
+ const updateConversionWorkspaceResponse = protoFilesRoot.lookup('.google.cloud.clouddms.v1.ConversionWorkspace');
286
+ const updateConversionWorkspaceMetadata = protoFilesRoot.lookup('.google.cloud.clouddms.v1.OperationMetadata');
287
+ const deleteConversionWorkspaceResponse = protoFilesRoot.lookup('.google.protobuf.Empty');
288
+ const deleteConversionWorkspaceMetadata = protoFilesRoot.lookup('.google.cloud.clouddms.v1.OperationMetadata');
289
+ const seedConversionWorkspaceResponse = protoFilesRoot.lookup('.google.cloud.clouddms.v1.ConversionWorkspace');
290
+ const seedConversionWorkspaceMetadata = protoFilesRoot.lookup('.google.cloud.clouddms.v1.OperationMetadata');
291
+ const importMappingRulesResponse = protoFilesRoot.lookup('.google.cloud.clouddms.v1.ConversionWorkspace');
292
+ const importMappingRulesMetadata = protoFilesRoot.lookup('.google.cloud.clouddms.v1.OperationMetadata');
293
+ const convertConversionWorkspaceResponse = protoFilesRoot.lookup('.google.cloud.clouddms.v1.ConversionWorkspace');
294
+ const convertConversionWorkspaceMetadata = protoFilesRoot.lookup('.google.cloud.clouddms.v1.OperationMetadata');
295
+ const commitConversionWorkspaceResponse = protoFilesRoot.lookup('.google.cloud.clouddms.v1.ConversionWorkspace');
296
+ const commitConversionWorkspaceMetadata = protoFilesRoot.lookup('.google.cloud.clouddms.v1.OperationMetadata');
297
+ const rollbackConversionWorkspaceResponse = protoFilesRoot.lookup('.google.cloud.clouddms.v1.ConversionWorkspace');
298
+ const rollbackConversionWorkspaceMetadata = protoFilesRoot.lookup('.google.cloud.clouddms.v1.OperationMetadata');
299
+ const applyConversionWorkspaceResponse = protoFilesRoot.lookup('.google.cloud.clouddms.v1.ConversionWorkspace');
300
+ const applyConversionWorkspaceMetadata = protoFilesRoot.lookup('.google.cloud.clouddms.v1.OperationMetadata');
249
301
  this.descriptors.longrunning = {
250
302
  createMigrationJob: new this._gaxModule.LongrunningDescriptor(this.operationsClient, createMigrationJobResponse.decode.bind(createMigrationJobResponse), createMigrationJobMetadata.decode.bind(createMigrationJobMetadata)),
251
303
  updateMigrationJob: new this._gaxModule.LongrunningDescriptor(this.operationsClient, updateMigrationJobResponse.decode.bind(updateMigrationJobResponse), updateMigrationJobMetadata.decode.bind(updateMigrationJobMetadata)),
@@ -259,6 +311,17 @@ class DataMigrationServiceClient {
259
311
  createConnectionProfile: new this._gaxModule.LongrunningDescriptor(this.operationsClient, createConnectionProfileResponse.decode.bind(createConnectionProfileResponse), createConnectionProfileMetadata.decode.bind(createConnectionProfileMetadata)),
260
312
  updateConnectionProfile: new this._gaxModule.LongrunningDescriptor(this.operationsClient, updateConnectionProfileResponse.decode.bind(updateConnectionProfileResponse), updateConnectionProfileMetadata.decode.bind(updateConnectionProfileMetadata)),
261
313
  deleteConnectionProfile: new this._gaxModule.LongrunningDescriptor(this.operationsClient, deleteConnectionProfileResponse.decode.bind(deleteConnectionProfileResponse), deleteConnectionProfileMetadata.decode.bind(deleteConnectionProfileMetadata)),
314
+ createPrivateConnection: new this._gaxModule.LongrunningDescriptor(this.operationsClient, createPrivateConnectionResponse.decode.bind(createPrivateConnectionResponse), createPrivateConnectionMetadata.decode.bind(createPrivateConnectionMetadata)),
315
+ deletePrivateConnection: new this._gaxModule.LongrunningDescriptor(this.operationsClient, deletePrivateConnectionResponse.decode.bind(deletePrivateConnectionResponse), deletePrivateConnectionMetadata.decode.bind(deletePrivateConnectionMetadata)),
316
+ createConversionWorkspace: new this._gaxModule.LongrunningDescriptor(this.operationsClient, createConversionWorkspaceResponse.decode.bind(createConversionWorkspaceResponse), createConversionWorkspaceMetadata.decode.bind(createConversionWorkspaceMetadata)),
317
+ updateConversionWorkspace: new this._gaxModule.LongrunningDescriptor(this.operationsClient, updateConversionWorkspaceResponse.decode.bind(updateConversionWorkspaceResponse), updateConversionWorkspaceMetadata.decode.bind(updateConversionWorkspaceMetadata)),
318
+ deleteConversionWorkspace: new this._gaxModule.LongrunningDescriptor(this.operationsClient, deleteConversionWorkspaceResponse.decode.bind(deleteConversionWorkspaceResponse), deleteConversionWorkspaceMetadata.decode.bind(deleteConversionWorkspaceMetadata)),
319
+ seedConversionWorkspace: new this._gaxModule.LongrunningDescriptor(this.operationsClient, seedConversionWorkspaceResponse.decode.bind(seedConversionWorkspaceResponse), seedConversionWorkspaceMetadata.decode.bind(seedConversionWorkspaceMetadata)),
320
+ importMappingRules: new this._gaxModule.LongrunningDescriptor(this.operationsClient, importMappingRulesResponse.decode.bind(importMappingRulesResponse), importMappingRulesMetadata.decode.bind(importMappingRulesMetadata)),
321
+ convertConversionWorkspace: new this._gaxModule.LongrunningDescriptor(this.operationsClient, convertConversionWorkspaceResponse.decode.bind(convertConversionWorkspaceResponse), convertConversionWorkspaceMetadata.decode.bind(convertConversionWorkspaceMetadata)),
322
+ commitConversionWorkspace: new this._gaxModule.LongrunningDescriptor(this.operationsClient, commitConversionWorkspaceResponse.decode.bind(commitConversionWorkspaceResponse), commitConversionWorkspaceMetadata.decode.bind(commitConversionWorkspaceMetadata)),
323
+ rollbackConversionWorkspace: new this._gaxModule.LongrunningDescriptor(this.operationsClient, rollbackConversionWorkspaceResponse.decode.bind(rollbackConversionWorkspaceResponse), rollbackConversionWorkspaceMetadata.decode.bind(rollbackConversionWorkspaceMetadata)),
324
+ applyConversionWorkspace: new this._gaxModule.LongrunningDescriptor(this.operationsClient, applyConversionWorkspaceResponse.decode.bind(applyConversionWorkspaceResponse), applyConversionWorkspaceMetadata.decode.bind(applyConversionWorkspaceMetadata)),
262
325
  };
263
326
  // Put together the default options sent with requests.
264
327
  this._defaults = this._gaxGrpc.constructSettings('google.cloud.clouddms.v1.DataMigrationService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
@@ -311,6 +374,25 @@ class DataMigrationServiceClient {
311
374
  'createConnectionProfile',
312
375
  'updateConnectionProfile',
313
376
  'deleteConnectionProfile',
377
+ 'createPrivateConnection',
378
+ 'getPrivateConnection',
379
+ 'listPrivateConnections',
380
+ 'deletePrivateConnection',
381
+ 'getConversionWorkspace',
382
+ 'listConversionWorkspaces',
383
+ 'createConversionWorkspace',
384
+ 'updateConversionWorkspace',
385
+ 'deleteConversionWorkspace',
386
+ 'seedConversionWorkspace',
387
+ 'importMappingRules',
388
+ 'convertConversionWorkspace',
389
+ 'commitConversionWorkspace',
390
+ 'rollbackConversionWorkspace',
391
+ 'applyConversionWorkspace',
392
+ 'describeDatabaseEntities',
393
+ 'searchBackgroundJobs',
394
+ 'describeConversionWorkspaceRevisions',
395
+ 'fetchStaticIps',
314
396
  ];
315
397
  for (const methodName of dataMigrationServiceStubMethods) {
316
398
  const callPromise = this.dataMigrationServiceStub.then(stub => (...args) => {
@@ -434,6 +516,90 @@ class DataMigrationServiceClient {
434
516
  this.initialize();
435
517
  return this.innerApiCalls.getConnectionProfile(request, options, callback);
436
518
  }
519
+ getPrivateConnection(request, optionsOrCallback, callback) {
520
+ var _a;
521
+ request = request || {};
522
+ let options;
523
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
524
+ callback = optionsOrCallback;
525
+ options = {};
526
+ }
527
+ else {
528
+ options = optionsOrCallback;
529
+ }
530
+ options = options || {};
531
+ options.otherArgs = options.otherArgs || {};
532
+ options.otherArgs.headers = options.otherArgs.headers || {};
533
+ options.otherArgs.headers['x-goog-request-params'] =
534
+ this._gaxModule.routingHeader.fromParams({
535
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
536
+ });
537
+ this.initialize();
538
+ return this.innerApiCalls.getPrivateConnection(request, options, callback);
539
+ }
540
+ getConversionWorkspace(request, optionsOrCallback, callback) {
541
+ var _a;
542
+ request = request || {};
543
+ let options;
544
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
545
+ callback = optionsOrCallback;
546
+ options = {};
547
+ }
548
+ else {
549
+ options = optionsOrCallback;
550
+ }
551
+ options = options || {};
552
+ options.otherArgs = options.otherArgs || {};
553
+ options.otherArgs.headers = options.otherArgs.headers || {};
554
+ options.otherArgs.headers['x-goog-request-params'] =
555
+ this._gaxModule.routingHeader.fromParams({
556
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
557
+ });
558
+ this.initialize();
559
+ return this.innerApiCalls.getConversionWorkspace(request, options, callback);
560
+ }
561
+ searchBackgroundJobs(request, optionsOrCallback, callback) {
562
+ var _a;
563
+ request = request || {};
564
+ let options;
565
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
566
+ callback = optionsOrCallback;
567
+ options = {};
568
+ }
569
+ else {
570
+ options = optionsOrCallback;
571
+ }
572
+ options = options || {};
573
+ options.otherArgs = options.otherArgs || {};
574
+ options.otherArgs.headers = options.otherArgs.headers || {};
575
+ options.otherArgs.headers['x-goog-request-params'] =
576
+ this._gaxModule.routingHeader.fromParams({
577
+ conversion_workspace: (_a = request.conversionWorkspace) !== null && _a !== void 0 ? _a : '',
578
+ });
579
+ this.initialize();
580
+ return this.innerApiCalls.searchBackgroundJobs(request, options, callback);
581
+ }
582
+ describeConversionWorkspaceRevisions(request, optionsOrCallback, callback) {
583
+ var _a;
584
+ request = request || {};
585
+ let options;
586
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
587
+ callback = optionsOrCallback;
588
+ options = {};
589
+ }
590
+ else {
591
+ options = optionsOrCallback;
592
+ }
593
+ options = options || {};
594
+ options.otherArgs = options.otherArgs || {};
595
+ options.otherArgs.headers = options.otherArgs.headers || {};
596
+ options.otherArgs.headers['x-goog-request-params'] =
597
+ this._gaxModule.routingHeader.fromParams({
598
+ conversion_workspace: (_a = request.conversionWorkspace) !== null && _a !== void 0 ? _a : '',
599
+ });
600
+ this.initialize();
601
+ return this.innerApiCalls.describeConversionWorkspaceRevisions(request, options, callback);
602
+ }
437
603
  createMigrationJob(request, optionsOrCallback, callback) {
438
604
  var _a;
439
605
  request = request || {};
@@ -461,8 +627,7 @@ class DataMigrationServiceClient {
461
627
  * The operation name that will be passed.
462
628
  * @returns {Promise} - The promise which resolves to an object.
463
629
  * The decoded operation object has result and metadata field to get information from.
464
- * Please see the
465
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
630
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
466
631
  * for more details and examples.
467
632
  * @example <caption>include:samples/generated/v1/data_migration_service.create_migration_job.js</caption>
468
633
  * region_tag:datamigration_v1_generated_DataMigrationService_CreateMigrationJob_async
@@ -500,8 +665,7 @@ class DataMigrationServiceClient {
500
665
  * The operation name that will be passed.
501
666
  * @returns {Promise} - The promise which resolves to an object.
502
667
  * The decoded operation object has result and metadata field to get information from.
503
- * Please see the
504
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
668
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
505
669
  * for more details and examples.
506
670
  * @example <caption>include:samples/generated/v1/data_migration_service.update_migration_job.js</caption>
507
671
  * region_tag:datamigration_v1_generated_DataMigrationService_UpdateMigrationJob_async
@@ -539,8 +703,7 @@ class DataMigrationServiceClient {
539
703
  * The operation name that will be passed.
540
704
  * @returns {Promise} - The promise which resolves to an object.
541
705
  * The decoded operation object has result and metadata field to get information from.
542
- * Please see the
543
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
706
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
544
707
  * for more details and examples.
545
708
  * @example <caption>include:samples/generated/v1/data_migration_service.delete_migration_job.js</caption>
546
709
  * region_tag:datamigration_v1_generated_DataMigrationService_DeleteMigrationJob_async
@@ -578,8 +741,7 @@ class DataMigrationServiceClient {
578
741
  * The operation name that will be passed.
579
742
  * @returns {Promise} - The promise which resolves to an object.
580
743
  * The decoded operation object has result and metadata field to get information from.
581
- * Please see the
582
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
744
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
583
745
  * for more details and examples.
584
746
  * @example <caption>include:samples/generated/v1/data_migration_service.start_migration_job.js</caption>
585
747
  * region_tag:datamigration_v1_generated_DataMigrationService_StartMigrationJob_async
@@ -617,8 +779,7 @@ class DataMigrationServiceClient {
617
779
  * The operation name that will be passed.
618
780
  * @returns {Promise} - The promise which resolves to an object.
619
781
  * The decoded operation object has result and metadata field to get information from.
620
- * Please see the
621
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
782
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
622
783
  * for more details and examples.
623
784
  * @example <caption>include:samples/generated/v1/data_migration_service.stop_migration_job.js</caption>
624
785
  * region_tag:datamigration_v1_generated_DataMigrationService_StopMigrationJob_async
@@ -656,8 +817,7 @@ class DataMigrationServiceClient {
656
817
  * The operation name that will be passed.
657
818
  * @returns {Promise} - The promise which resolves to an object.
658
819
  * The decoded operation object has result and metadata field to get information from.
659
- * Please see the
660
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
820
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
661
821
  * for more details and examples.
662
822
  * @example <caption>include:samples/generated/v1/data_migration_service.resume_migration_job.js</caption>
663
823
  * region_tag:datamigration_v1_generated_DataMigrationService_ResumeMigrationJob_async
@@ -695,8 +855,7 @@ class DataMigrationServiceClient {
695
855
  * The operation name that will be passed.
696
856
  * @returns {Promise} - The promise which resolves to an object.
697
857
  * The decoded operation object has result and metadata field to get information from.
698
- * Please see the
699
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
858
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
700
859
  * for more details and examples.
701
860
  * @example <caption>include:samples/generated/v1/data_migration_service.promote_migration_job.js</caption>
702
861
  * region_tag:datamigration_v1_generated_DataMigrationService_PromoteMigrationJob_async
@@ -734,8 +893,7 @@ class DataMigrationServiceClient {
734
893
  * The operation name that will be passed.
735
894
  * @returns {Promise} - The promise which resolves to an object.
736
895
  * The decoded operation object has result and metadata field to get information from.
737
- * Please see the
738
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
896
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
739
897
  * for more details and examples.
740
898
  * @example <caption>include:samples/generated/v1/data_migration_service.verify_migration_job.js</caption>
741
899
  * region_tag:datamigration_v1_generated_DataMigrationService_VerifyMigrationJob_async
@@ -773,8 +931,7 @@ class DataMigrationServiceClient {
773
931
  * The operation name that will be passed.
774
932
  * @returns {Promise} - The promise which resolves to an object.
775
933
  * The decoded operation object has result and metadata field to get information from.
776
- * Please see the
777
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
934
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
778
935
  * for more details and examples.
779
936
  * @example <caption>include:samples/generated/v1/data_migration_service.restart_migration_job.js</caption>
780
937
  * region_tag:datamigration_v1_generated_DataMigrationService_RestartMigrationJob_async
@@ -812,8 +969,7 @@ class DataMigrationServiceClient {
812
969
  * The operation name that will be passed.
813
970
  * @returns {Promise} - The promise which resolves to an object.
814
971
  * The decoded operation object has result and metadata field to get information from.
815
- * Please see the
816
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
972
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
817
973
  * for more details and examples.
818
974
  * @example <caption>include:samples/generated/v1/data_migration_service.create_connection_profile.js</caption>
819
975
  * region_tag:datamigration_v1_generated_DataMigrationService_CreateConnectionProfile_async
@@ -851,8 +1007,7 @@ class DataMigrationServiceClient {
851
1007
  * The operation name that will be passed.
852
1008
  * @returns {Promise} - The promise which resolves to an object.
853
1009
  * The decoded operation object has result and metadata field to get information from.
854
- * Please see the
855
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
1010
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
856
1011
  * for more details and examples.
857
1012
  * @example <caption>include:samples/generated/v1/data_migration_service.update_connection_profile.js</caption>
858
1013
  * region_tag:datamigration_v1_generated_DataMigrationService_UpdateConnectionProfile_async
@@ -890,8 +1045,7 @@ class DataMigrationServiceClient {
890
1045
  * The operation name that will be passed.
891
1046
  * @returns {Promise} - The promise which resolves to an object.
892
1047
  * The decoded operation object has result and metadata field to get information from.
893
- * Please see the
894
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
1048
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
895
1049
  * for more details and examples.
896
1050
  * @example <caption>include:samples/generated/v1/data_migration_service.delete_connection_profile.js</caption>
897
1051
  * region_tag:datamigration_v1_generated_DataMigrationService_DeleteConnectionProfile_async
@@ -902,7 +1056,7 @@ class DataMigrationServiceClient {
902
1056
  const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.deleteConnectionProfile, this._gaxModule.createDefaultBackoffSettings());
903
1057
  return decodeOperation;
904
1058
  }
905
- listMigrationJobs(request, optionsOrCallback, callback) {
1059
+ createPrivateConnection(request, optionsOrCallback, callback) {
906
1060
  var _a;
907
1061
  request = request || {};
908
1062
  let options;
@@ -921,113 +1075,74 @@ class DataMigrationServiceClient {
921
1075
  parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
922
1076
  });
923
1077
  this.initialize();
924
- return this.innerApiCalls.listMigrationJobs(request, options, callback);
1078
+ return this.innerApiCalls.createPrivateConnection(request, options, callback);
925
1079
  }
926
1080
  /**
927
- * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
928
- * @param {Object} request
929
- * The request object that will be sent.
930
- * @param {string} request.parent
931
- * Required. The parent, which owns this collection of migrationJobs.
932
- * @param {number} request.pageSize
933
- * The maximum number of migration jobs to return. The service may return
934
- * fewer than this value. If unspecified, at most 50 migration jobs will be
935
- * returned. The maximum value is 1000; values above 1000 will be coerced to
936
- * 1000.
937
- * @param {string} request.pageToken
938
- * The nextPageToken value received in the previous call to
939
- * migrationJobs.list, used in the subsequent request to retrieve the next
940
- * page of results. On first call this should be left blank. When paginating,
941
- * all other parameters provided to migrationJobs.list must match the call
942
- * that provided the page token.
943
- * @param {string} request.filter
944
- * A filter expression that filters migration jobs listed in the response.
945
- * The expression must specify the field name, a comparison operator, and the
946
- * value that you want to use for filtering. The value must be a string,
947
- * a number, or a boolean. The comparison operator must be
948
- * either =, !=, >, or <. For example, list migration jobs created this year
949
- * by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.**
950
- * You can also filter nested fields. For example, you could specify
951
- * **reverseSshConnectivity.vmIp = "1.2.3.4"** to select all migration
952
- * jobs connecting through the specific SSH tunnel bastion.
953
- * @param {string} request.orderBy
954
- * Sort the results based on the migration job name.
955
- * Valid values are: "name", "name asc", and "name desc".
956
- * @param {object} [options]
957
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
958
- * @returns {Stream}
959
- * An object stream which emits an object representing {@link google.cloud.clouddms.v1.MigrationJob | MigrationJob} on 'data' event.
960
- * The client library will perform auto-pagination by default: it will call the API as many
961
- * times as needed. Note that it can affect your quota.
962
- * We recommend using `listMigrationJobsAsync()`
963
- * method described below for async iteration which you can stop as needed.
964
- * Please see the
965
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
1081
+ * Check the status of the long running operation returned by `createPrivateConnection()`.
1082
+ * @param {String} name
1083
+ * The operation name that will be passed.
1084
+ * @returns {Promise} - The promise which resolves to an object.
1085
+ * The decoded operation object has result and metadata field to get information from.
1086
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
966
1087
  * for more details and examples.
1088
+ * @example <caption>include:samples/generated/v1/data_migration_service.create_private_connection.js</caption>
1089
+ * region_tag:datamigration_v1_generated_DataMigrationService_CreatePrivateConnection_async
967
1090
  */
968
- listMigrationJobsStream(request, options) {
1091
+ async checkCreatePrivateConnectionProgress(name) {
1092
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
1093
+ const [operation] = await this.operationsClient.getOperation(request);
1094
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.createPrivateConnection, this._gaxModule.createDefaultBackoffSettings());
1095
+ return decodeOperation;
1096
+ }
1097
+ deletePrivateConnection(request, optionsOrCallback, callback) {
969
1098
  var _a;
970
1099
  request = request || {};
1100
+ let options;
1101
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
1102
+ callback = optionsOrCallback;
1103
+ options = {};
1104
+ }
1105
+ else {
1106
+ options = optionsOrCallback;
1107
+ }
971
1108
  options = options || {};
972
1109
  options.otherArgs = options.otherArgs || {};
973
1110
  options.otherArgs.headers = options.otherArgs.headers || {};
974
1111
  options.otherArgs.headers['x-goog-request-params'] =
975
1112
  this._gaxModule.routingHeader.fromParams({
976
- parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
1113
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
977
1114
  });
978
- const defaultCallSettings = this._defaults['listMigrationJobs'];
979
- const callSettings = defaultCallSettings.merge(options);
980
1115
  this.initialize();
981
- return this.descriptors.page.listMigrationJobs.createStream(this.innerApiCalls.listMigrationJobs, request, callSettings);
1116
+ return this.innerApiCalls.deletePrivateConnection(request, options, callback);
982
1117
  }
983
1118
  /**
984
- * Equivalent to `listMigrationJobs`, but returns an iterable object.
985
- *
986
- * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
987
- * @param {Object} request
988
- * The request object that will be sent.
989
- * @param {string} request.parent
990
- * Required. The parent, which owns this collection of migrationJobs.
991
- * @param {number} request.pageSize
992
- * The maximum number of migration jobs to return. The service may return
993
- * fewer than this value. If unspecified, at most 50 migration jobs will be
994
- * returned. The maximum value is 1000; values above 1000 will be coerced to
995
- * 1000.
996
- * @param {string} request.pageToken
997
- * The nextPageToken value received in the previous call to
998
- * migrationJobs.list, used in the subsequent request to retrieve the next
999
- * page of results. On first call this should be left blank. When paginating,
1000
- * all other parameters provided to migrationJobs.list must match the call
1001
- * that provided the page token.
1002
- * @param {string} request.filter
1003
- * A filter expression that filters migration jobs listed in the response.
1004
- * The expression must specify the field name, a comparison operator, and the
1005
- * value that you want to use for filtering. The value must be a string,
1006
- * a number, or a boolean. The comparison operator must be
1007
- * either =, !=, >, or <. For example, list migration jobs created this year
1008
- * by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.**
1009
- * You can also filter nested fields. For example, you could specify
1010
- * **reverseSshConnectivity.vmIp = "1.2.3.4"** to select all migration
1011
- * jobs connecting through the specific SSH tunnel bastion.
1012
- * @param {string} request.orderBy
1013
- * Sort the results based on the migration job name.
1014
- * Valid values are: "name", "name asc", and "name desc".
1015
- * @param {object} [options]
1016
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1017
- * @returns {Object}
1018
- * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
1019
- * When you iterate the returned iterable, each element will be an object representing
1020
- * {@link google.cloud.clouddms.v1.MigrationJob | MigrationJob}. The API will be called under the hood as needed, once per the page,
1021
- * so you can stop the iteration when you don't need more results.
1022
- * Please see the
1023
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
1119
+ * Check the status of the long running operation returned by `deletePrivateConnection()`.
1120
+ * @param {String} name
1121
+ * The operation name that will be passed.
1122
+ * @returns {Promise} - The promise which resolves to an object.
1123
+ * The decoded operation object has result and metadata field to get information from.
1124
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
1024
1125
  * for more details and examples.
1025
- * @example <caption>include:samples/generated/v1/data_migration_service.list_migration_jobs.js</caption>
1026
- * region_tag:datamigration_v1_generated_DataMigrationService_ListMigrationJobs_async
1126
+ * @example <caption>include:samples/generated/v1/data_migration_service.delete_private_connection.js</caption>
1127
+ * region_tag:datamigration_v1_generated_DataMigrationService_DeletePrivateConnection_async
1027
1128
  */
1028
- listMigrationJobsAsync(request, options) {
1129
+ async checkDeletePrivateConnectionProgress(name) {
1130
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
1131
+ const [operation] = await this.operationsClient.getOperation(request);
1132
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.deletePrivateConnection, this._gaxModule.createDefaultBackoffSettings());
1133
+ return decodeOperation;
1134
+ }
1135
+ createConversionWorkspace(request, optionsOrCallback, callback) {
1029
1136
  var _a;
1030
1137
  request = request || {};
1138
+ let options;
1139
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
1140
+ callback = optionsOrCallback;
1141
+ options = {};
1142
+ }
1143
+ else {
1144
+ options = optionsOrCallback;
1145
+ }
1031
1146
  options = options || {};
1032
1147
  options.otherArgs = options.otherArgs || {};
1033
1148
  options.otherArgs.headers = options.otherArgs.headers || {};
@@ -1035,12 +1150,27 @@ class DataMigrationServiceClient {
1035
1150
  this._gaxModule.routingHeader.fromParams({
1036
1151
  parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
1037
1152
  });
1038
- const defaultCallSettings = this._defaults['listMigrationJobs'];
1039
- const callSettings = defaultCallSettings.merge(options);
1040
1153
  this.initialize();
1041
- return this.descriptors.page.listMigrationJobs.asyncIterate(this.innerApiCalls['listMigrationJobs'], request, callSettings);
1154
+ return this.innerApiCalls.createConversionWorkspace(request, options, callback);
1042
1155
  }
1043
- listConnectionProfiles(request, optionsOrCallback, callback) {
1156
+ /**
1157
+ * Check the status of the long running operation returned by `createConversionWorkspace()`.
1158
+ * @param {String} name
1159
+ * The operation name that will be passed.
1160
+ * @returns {Promise} - The promise which resolves to an object.
1161
+ * The decoded operation object has result and metadata field to get information from.
1162
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
1163
+ * for more details and examples.
1164
+ * @example <caption>include:samples/generated/v1/data_migration_service.create_conversion_workspace.js</caption>
1165
+ * region_tag:datamigration_v1_generated_DataMigrationService_CreateConversionWorkspace_async
1166
+ */
1167
+ async checkCreateConversionWorkspaceProgress(name) {
1168
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
1169
+ const [operation] = await this.operationsClient.getOperation(request);
1170
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.createConversionWorkspace, this._gaxModule.createDefaultBackoffSettings());
1171
+ return decodeOperation;
1172
+ }
1173
+ updateConversionWorkspace(request, optionsOrCallback, callback) {
1044
1174
  var _a;
1045
1175
  request = request || {};
1046
1176
  let options;
@@ -1056,112 +1186,936 @@ class DataMigrationServiceClient {
1056
1186
  options.otherArgs.headers = options.otherArgs.headers || {};
1057
1187
  options.otherArgs.headers['x-goog-request-params'] =
1058
1188
  this._gaxModule.routingHeader.fromParams({
1059
- parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
1189
+ 'conversion_workspace.name': (_a = request.conversionWorkspace.name) !== null && _a !== void 0 ? _a : '',
1060
1190
  });
1061
1191
  this.initialize();
1062
- return this.innerApiCalls.listConnectionProfiles(request, options, callback);
1192
+ return this.innerApiCalls.updateConversionWorkspace(request, options, callback);
1063
1193
  }
1064
1194
  /**
1065
- * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
1066
- * @param {Object} request
1067
- * The request object that will be sent.
1068
- * @param {string} request.parent
1069
- * Required. The parent, which owns this collection of connection profiles.
1070
- * @param {number} request.pageSize
1071
- * The maximum number of connection profiles to return. The service may return
1072
- * fewer than this value. If unspecified, at most 50 connection profiles will
1073
- * be returned. The maximum value is 1000; values above 1000 will be coerced
1074
- * to 1000.
1075
- * @param {string} request.pageToken
1076
- * A page token, received from a previous `ListConnectionProfiles` call.
1077
- * Provide this to retrieve the subsequent page.
1078
- *
1079
- * When paginating, all other parameters provided to `ListConnectionProfiles`
1080
- * must match the call that provided the page token.
1081
- * @param {string} request.filter
1082
- * A filter expression that filters connection profiles listed in the
1083
- * response. The expression must specify the field name, a comparison
1084
- * operator, and the value that you want to use for filtering. The value must
1085
- * be a string, a number, or a boolean. The comparison operator must be either
1086
- * =, !=, >, or <. For example, list connection profiles created this year by
1087
- * specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z**. You can
1088
- * also filter nested fields. For example, you could specify **mySql.username
1089
- * = %lt;my_username%gt;** to list all connection profiles configured to
1090
- * connect with a specific username.
1091
- * @param {string} request.orderBy
1092
- * the order by fields for the result.
1093
- * @param {object} [options]
1094
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1095
- * @returns {Stream}
1096
- * An object stream which emits an object representing {@link google.cloud.clouddms.v1.ConnectionProfile | ConnectionProfile} on 'data' event.
1097
- * The client library will perform auto-pagination by default: it will call the API as many
1098
- * times as needed. Note that it can affect your quota.
1099
- * We recommend using `listConnectionProfilesAsync()`
1100
- * method described below for async iteration which you can stop as needed.
1101
- * Please see the
1102
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
1195
+ * Check the status of the long running operation returned by `updateConversionWorkspace()`.
1196
+ * @param {String} name
1197
+ * The operation name that will be passed.
1198
+ * @returns {Promise} - The promise which resolves to an object.
1199
+ * The decoded operation object has result and metadata field to get information from.
1200
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
1103
1201
  * for more details and examples.
1202
+ * @example <caption>include:samples/generated/v1/data_migration_service.update_conversion_workspace.js</caption>
1203
+ * region_tag:datamigration_v1_generated_DataMigrationService_UpdateConversionWorkspace_async
1104
1204
  */
1105
- listConnectionProfilesStream(request, options) {
1106
- var _a;
1205
+ async checkUpdateConversionWorkspaceProgress(name) {
1206
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
1207
+ const [operation] = await this.operationsClient.getOperation(request);
1208
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.updateConversionWorkspace, this._gaxModule.createDefaultBackoffSettings());
1209
+ return decodeOperation;
1210
+ }
1211
+ deleteConversionWorkspace(request, optionsOrCallback, callback) {
1212
+ var _a;
1213
+ request = request || {};
1214
+ let options;
1215
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
1216
+ callback = optionsOrCallback;
1217
+ options = {};
1218
+ }
1219
+ else {
1220
+ options = optionsOrCallback;
1221
+ }
1222
+ options = options || {};
1223
+ options.otherArgs = options.otherArgs || {};
1224
+ options.otherArgs.headers = options.otherArgs.headers || {};
1225
+ options.otherArgs.headers['x-goog-request-params'] =
1226
+ this._gaxModule.routingHeader.fromParams({
1227
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
1228
+ });
1229
+ this.initialize();
1230
+ return this.innerApiCalls.deleteConversionWorkspace(request, options, callback);
1231
+ }
1232
+ /**
1233
+ * Check the status of the long running operation returned by `deleteConversionWorkspace()`.
1234
+ * @param {String} name
1235
+ * The operation name that will be passed.
1236
+ * @returns {Promise} - The promise which resolves to an object.
1237
+ * The decoded operation object has result and metadata field to get information from.
1238
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
1239
+ * for more details and examples.
1240
+ * @example <caption>include:samples/generated/v1/data_migration_service.delete_conversion_workspace.js</caption>
1241
+ * region_tag:datamigration_v1_generated_DataMigrationService_DeleteConversionWorkspace_async
1242
+ */
1243
+ async checkDeleteConversionWorkspaceProgress(name) {
1244
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
1245
+ const [operation] = await this.operationsClient.getOperation(request);
1246
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.deleteConversionWorkspace, this._gaxModule.createDefaultBackoffSettings());
1247
+ return decodeOperation;
1248
+ }
1249
+ seedConversionWorkspace(request, optionsOrCallback, callback) {
1250
+ var _a;
1251
+ request = request || {};
1252
+ let options;
1253
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
1254
+ callback = optionsOrCallback;
1255
+ options = {};
1256
+ }
1257
+ else {
1258
+ options = optionsOrCallback;
1259
+ }
1260
+ options = options || {};
1261
+ options.otherArgs = options.otherArgs || {};
1262
+ options.otherArgs.headers = options.otherArgs.headers || {};
1263
+ options.otherArgs.headers['x-goog-request-params'] =
1264
+ this._gaxModule.routingHeader.fromParams({
1265
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
1266
+ });
1267
+ this.initialize();
1268
+ return this.innerApiCalls.seedConversionWorkspace(request, options, callback);
1269
+ }
1270
+ /**
1271
+ * Check the status of the long running operation returned by `seedConversionWorkspace()`.
1272
+ * @param {String} name
1273
+ * The operation name that will be passed.
1274
+ * @returns {Promise} - The promise which resolves to an object.
1275
+ * The decoded operation object has result and metadata field to get information from.
1276
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
1277
+ * for more details and examples.
1278
+ * @example <caption>include:samples/generated/v1/data_migration_service.seed_conversion_workspace.js</caption>
1279
+ * region_tag:datamigration_v1_generated_DataMigrationService_SeedConversionWorkspace_async
1280
+ */
1281
+ async checkSeedConversionWorkspaceProgress(name) {
1282
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
1283
+ const [operation] = await this.operationsClient.getOperation(request);
1284
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.seedConversionWorkspace, this._gaxModule.createDefaultBackoffSettings());
1285
+ return decodeOperation;
1286
+ }
1287
+ importMappingRules(request, optionsOrCallback, callback) {
1288
+ var _a;
1289
+ request = request || {};
1290
+ let options;
1291
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
1292
+ callback = optionsOrCallback;
1293
+ options = {};
1294
+ }
1295
+ else {
1296
+ options = optionsOrCallback;
1297
+ }
1298
+ options = options || {};
1299
+ options.otherArgs = options.otherArgs || {};
1300
+ options.otherArgs.headers = options.otherArgs.headers || {};
1301
+ options.otherArgs.headers['x-goog-request-params'] =
1302
+ this._gaxModule.routingHeader.fromParams({
1303
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
1304
+ });
1305
+ this.initialize();
1306
+ return this.innerApiCalls.importMappingRules(request, options, callback);
1307
+ }
1308
+ /**
1309
+ * Check the status of the long running operation returned by `importMappingRules()`.
1310
+ * @param {String} name
1311
+ * The operation name that will be passed.
1312
+ * @returns {Promise} - The promise which resolves to an object.
1313
+ * The decoded operation object has result and metadata field to get information from.
1314
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
1315
+ * for more details and examples.
1316
+ * @example <caption>include:samples/generated/v1/data_migration_service.import_mapping_rules.js</caption>
1317
+ * region_tag:datamigration_v1_generated_DataMigrationService_ImportMappingRules_async
1318
+ */
1319
+ async checkImportMappingRulesProgress(name) {
1320
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
1321
+ const [operation] = await this.operationsClient.getOperation(request);
1322
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.importMappingRules, this._gaxModule.createDefaultBackoffSettings());
1323
+ return decodeOperation;
1324
+ }
1325
+ convertConversionWorkspace(request, optionsOrCallback, callback) {
1326
+ var _a;
1327
+ request = request || {};
1328
+ let options;
1329
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
1330
+ callback = optionsOrCallback;
1331
+ options = {};
1332
+ }
1333
+ else {
1334
+ options = optionsOrCallback;
1335
+ }
1336
+ options = options || {};
1337
+ options.otherArgs = options.otherArgs || {};
1338
+ options.otherArgs.headers = options.otherArgs.headers || {};
1339
+ options.otherArgs.headers['x-goog-request-params'] =
1340
+ this._gaxModule.routingHeader.fromParams({
1341
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
1342
+ });
1343
+ this.initialize();
1344
+ return this.innerApiCalls.convertConversionWorkspace(request, options, callback);
1345
+ }
1346
+ /**
1347
+ * Check the status of the long running operation returned by `convertConversionWorkspace()`.
1348
+ * @param {String} name
1349
+ * The operation name that will be passed.
1350
+ * @returns {Promise} - The promise which resolves to an object.
1351
+ * The decoded operation object has result and metadata field to get information from.
1352
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
1353
+ * for more details and examples.
1354
+ * @example <caption>include:samples/generated/v1/data_migration_service.convert_conversion_workspace.js</caption>
1355
+ * region_tag:datamigration_v1_generated_DataMigrationService_ConvertConversionWorkspace_async
1356
+ */
1357
+ async checkConvertConversionWorkspaceProgress(name) {
1358
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
1359
+ const [operation] = await this.operationsClient.getOperation(request);
1360
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.convertConversionWorkspace, this._gaxModule.createDefaultBackoffSettings());
1361
+ return decodeOperation;
1362
+ }
1363
+ commitConversionWorkspace(request, optionsOrCallback, callback) {
1364
+ var _a;
1365
+ request = request || {};
1366
+ let options;
1367
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
1368
+ callback = optionsOrCallback;
1369
+ options = {};
1370
+ }
1371
+ else {
1372
+ options = optionsOrCallback;
1373
+ }
1374
+ options = options || {};
1375
+ options.otherArgs = options.otherArgs || {};
1376
+ options.otherArgs.headers = options.otherArgs.headers || {};
1377
+ options.otherArgs.headers['x-goog-request-params'] =
1378
+ this._gaxModule.routingHeader.fromParams({
1379
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
1380
+ });
1381
+ this.initialize();
1382
+ return this.innerApiCalls.commitConversionWorkspace(request, options, callback);
1383
+ }
1384
+ /**
1385
+ * Check the status of the long running operation returned by `commitConversionWorkspace()`.
1386
+ * @param {String} name
1387
+ * The operation name that will be passed.
1388
+ * @returns {Promise} - The promise which resolves to an object.
1389
+ * The decoded operation object has result and metadata field to get information from.
1390
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
1391
+ * for more details and examples.
1392
+ * @example <caption>include:samples/generated/v1/data_migration_service.commit_conversion_workspace.js</caption>
1393
+ * region_tag:datamigration_v1_generated_DataMigrationService_CommitConversionWorkspace_async
1394
+ */
1395
+ async checkCommitConversionWorkspaceProgress(name) {
1396
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
1397
+ const [operation] = await this.operationsClient.getOperation(request);
1398
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.commitConversionWorkspace, this._gaxModule.createDefaultBackoffSettings());
1399
+ return decodeOperation;
1400
+ }
1401
+ rollbackConversionWorkspace(request, optionsOrCallback, callback) {
1402
+ var _a;
1403
+ request = request || {};
1404
+ let options;
1405
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
1406
+ callback = optionsOrCallback;
1407
+ options = {};
1408
+ }
1409
+ else {
1410
+ options = optionsOrCallback;
1411
+ }
1412
+ options = options || {};
1413
+ options.otherArgs = options.otherArgs || {};
1414
+ options.otherArgs.headers = options.otherArgs.headers || {};
1415
+ options.otherArgs.headers['x-goog-request-params'] =
1416
+ this._gaxModule.routingHeader.fromParams({
1417
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
1418
+ });
1419
+ this.initialize();
1420
+ return this.innerApiCalls.rollbackConversionWorkspace(request, options, callback);
1421
+ }
1422
+ /**
1423
+ * Check the status of the long running operation returned by `rollbackConversionWorkspace()`.
1424
+ * @param {String} name
1425
+ * The operation name that will be passed.
1426
+ * @returns {Promise} - The promise which resolves to an object.
1427
+ * The decoded operation object has result and metadata field to get information from.
1428
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
1429
+ * for more details and examples.
1430
+ * @example <caption>include:samples/generated/v1/data_migration_service.rollback_conversion_workspace.js</caption>
1431
+ * region_tag:datamigration_v1_generated_DataMigrationService_RollbackConversionWorkspace_async
1432
+ */
1433
+ async checkRollbackConversionWorkspaceProgress(name) {
1434
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
1435
+ const [operation] = await this.operationsClient.getOperation(request);
1436
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.rollbackConversionWorkspace, this._gaxModule.createDefaultBackoffSettings());
1437
+ return decodeOperation;
1438
+ }
1439
+ applyConversionWorkspace(request, optionsOrCallback, callback) {
1440
+ var _a;
1441
+ request = request || {};
1442
+ let options;
1443
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
1444
+ callback = optionsOrCallback;
1445
+ options = {};
1446
+ }
1447
+ else {
1448
+ options = optionsOrCallback;
1449
+ }
1450
+ options = options || {};
1451
+ options.otherArgs = options.otherArgs || {};
1452
+ options.otherArgs.headers = options.otherArgs.headers || {};
1453
+ options.otherArgs.headers['x-goog-request-params'] =
1454
+ this._gaxModule.routingHeader.fromParams({
1455
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
1456
+ });
1457
+ this.initialize();
1458
+ return this.innerApiCalls.applyConversionWorkspace(request, options, callback);
1459
+ }
1460
+ /**
1461
+ * Check the status of the long running operation returned by `applyConversionWorkspace()`.
1462
+ * @param {String} name
1463
+ * The operation name that will be passed.
1464
+ * @returns {Promise} - The promise which resolves to an object.
1465
+ * The decoded operation object has result and metadata field to get information from.
1466
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
1467
+ * for more details and examples.
1468
+ * @example <caption>include:samples/generated/v1/data_migration_service.apply_conversion_workspace.js</caption>
1469
+ * region_tag:datamigration_v1_generated_DataMigrationService_ApplyConversionWorkspace_async
1470
+ */
1471
+ async checkApplyConversionWorkspaceProgress(name) {
1472
+ const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
1473
+ const [operation] = await this.operationsClient.getOperation(request);
1474
+ const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.applyConversionWorkspace, this._gaxModule.createDefaultBackoffSettings());
1475
+ return decodeOperation;
1476
+ }
1477
+ listMigrationJobs(request, optionsOrCallback, callback) {
1478
+ var _a;
1479
+ request = request || {};
1480
+ let options;
1481
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
1482
+ callback = optionsOrCallback;
1483
+ options = {};
1484
+ }
1485
+ else {
1486
+ options = optionsOrCallback;
1487
+ }
1488
+ options = options || {};
1489
+ options.otherArgs = options.otherArgs || {};
1490
+ options.otherArgs.headers = options.otherArgs.headers || {};
1491
+ options.otherArgs.headers['x-goog-request-params'] =
1492
+ this._gaxModule.routingHeader.fromParams({
1493
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
1494
+ });
1495
+ this.initialize();
1496
+ return this.innerApiCalls.listMigrationJobs(request, options, callback);
1497
+ }
1498
+ /**
1499
+ * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
1500
+ * @param {Object} request
1501
+ * The request object that will be sent.
1502
+ * @param {string} request.parent
1503
+ * Required. The parent which owns this collection of migrationJobs.
1504
+ * @param {number} request.pageSize
1505
+ * The maximum number of migration jobs to return. The service may return
1506
+ * fewer than this value. If unspecified, at most 50 migration jobs will be
1507
+ * returned. The maximum value is 1000; values above 1000 are coerced to
1508
+ * 1000.
1509
+ * @param {string} request.pageToken
1510
+ * The nextPageToken value received in the previous call to
1511
+ * migrationJobs.list, used in the subsequent request to retrieve the next
1512
+ * page of results. On first call this should be left blank. When paginating,
1513
+ * all other parameters provided to migrationJobs.list must match the call
1514
+ * that provided the page token.
1515
+ * @param {string} request.filter
1516
+ * A filter expression that filters migration jobs listed in the response.
1517
+ * The expression must specify the field name, a comparison operator, and the
1518
+ * value that you want to use for filtering. The value must be a string,
1519
+ * a number, or a boolean. The comparison operator must be
1520
+ * either =, !=, >, or <. For example, list migration jobs created this year
1521
+ * by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.**
1522
+ * You can also filter nested fields. For example, you could specify
1523
+ * **reverseSshConnectivity.vmIp = "1.2.3.4"** to select all migration
1524
+ * jobs connecting through the specific SSH tunnel bastion.
1525
+ * @param {string} request.orderBy
1526
+ * Sort the results based on the migration job name.
1527
+ * Valid values are: "name", "name asc", and "name desc".
1528
+ * @param {object} [options]
1529
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1530
+ * @returns {Stream}
1531
+ * An object stream which emits an object representing {@link protos.google.cloud.clouddms.v1.MigrationJob|MigrationJob} on 'data' event.
1532
+ * The client library will perform auto-pagination by default: it will call the API as many
1533
+ * times as needed. Note that it can affect your quota.
1534
+ * We recommend using `listMigrationJobsAsync()`
1535
+ * method described below for async iteration which you can stop as needed.
1536
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1537
+ * for more details and examples.
1538
+ */
1539
+ listMigrationJobsStream(request, options) {
1540
+ var _a;
1541
+ request = request || {};
1542
+ options = options || {};
1543
+ options.otherArgs = options.otherArgs || {};
1544
+ options.otherArgs.headers = options.otherArgs.headers || {};
1545
+ options.otherArgs.headers['x-goog-request-params'] =
1546
+ this._gaxModule.routingHeader.fromParams({
1547
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
1548
+ });
1549
+ const defaultCallSettings = this._defaults['listMigrationJobs'];
1550
+ const callSettings = defaultCallSettings.merge(options);
1551
+ this.initialize();
1552
+ return this.descriptors.page.listMigrationJobs.createStream(this.innerApiCalls.listMigrationJobs, request, callSettings);
1553
+ }
1554
+ /**
1555
+ * Equivalent to `listMigrationJobs`, but returns an iterable object.
1556
+ *
1557
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
1558
+ * @param {Object} request
1559
+ * The request object that will be sent.
1560
+ * @param {string} request.parent
1561
+ * Required. The parent which owns this collection of migrationJobs.
1562
+ * @param {number} request.pageSize
1563
+ * The maximum number of migration jobs to return. The service may return
1564
+ * fewer than this value. If unspecified, at most 50 migration jobs will be
1565
+ * returned. The maximum value is 1000; values above 1000 are coerced to
1566
+ * 1000.
1567
+ * @param {string} request.pageToken
1568
+ * The nextPageToken value received in the previous call to
1569
+ * migrationJobs.list, used in the subsequent request to retrieve the next
1570
+ * page of results. On first call this should be left blank. When paginating,
1571
+ * all other parameters provided to migrationJobs.list must match the call
1572
+ * that provided the page token.
1573
+ * @param {string} request.filter
1574
+ * A filter expression that filters migration jobs listed in the response.
1575
+ * The expression must specify the field name, a comparison operator, and the
1576
+ * value that you want to use for filtering. The value must be a string,
1577
+ * a number, or a boolean. The comparison operator must be
1578
+ * either =, !=, >, or <. For example, list migration jobs created this year
1579
+ * by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.**
1580
+ * You can also filter nested fields. For example, you could specify
1581
+ * **reverseSshConnectivity.vmIp = "1.2.3.4"** to select all migration
1582
+ * jobs connecting through the specific SSH tunnel bastion.
1583
+ * @param {string} request.orderBy
1584
+ * Sort the results based on the migration job name.
1585
+ * Valid values are: "name", "name asc", and "name desc".
1586
+ * @param {object} [options]
1587
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1588
+ * @returns {Object}
1589
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
1590
+ * When you iterate the returned iterable, each element will be an object representing
1591
+ * {@link protos.google.cloud.clouddms.v1.MigrationJob|MigrationJob}. The API will be called under the hood as needed, once per the page,
1592
+ * so you can stop the iteration when you don't need more results.
1593
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1594
+ * for more details and examples.
1595
+ * @example <caption>include:samples/generated/v1/data_migration_service.list_migration_jobs.js</caption>
1596
+ * region_tag:datamigration_v1_generated_DataMigrationService_ListMigrationJobs_async
1597
+ */
1598
+ listMigrationJobsAsync(request, options) {
1599
+ var _a;
1600
+ request = request || {};
1601
+ options = options || {};
1602
+ options.otherArgs = options.otherArgs || {};
1603
+ options.otherArgs.headers = options.otherArgs.headers || {};
1604
+ options.otherArgs.headers['x-goog-request-params'] =
1605
+ this._gaxModule.routingHeader.fromParams({
1606
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
1607
+ });
1608
+ const defaultCallSettings = this._defaults['listMigrationJobs'];
1609
+ const callSettings = defaultCallSettings.merge(options);
1610
+ this.initialize();
1611
+ return this.descriptors.page.listMigrationJobs.asyncIterate(this.innerApiCalls['listMigrationJobs'], request, callSettings);
1612
+ }
1613
+ listConnectionProfiles(request, optionsOrCallback, callback) {
1614
+ var _a;
1615
+ request = request || {};
1616
+ let options;
1617
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
1618
+ callback = optionsOrCallback;
1619
+ options = {};
1620
+ }
1621
+ else {
1622
+ options = optionsOrCallback;
1623
+ }
1624
+ options = options || {};
1625
+ options.otherArgs = options.otherArgs || {};
1626
+ options.otherArgs.headers = options.otherArgs.headers || {};
1627
+ options.otherArgs.headers['x-goog-request-params'] =
1628
+ this._gaxModule.routingHeader.fromParams({
1629
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
1630
+ });
1631
+ this.initialize();
1632
+ return this.innerApiCalls.listConnectionProfiles(request, options, callback);
1633
+ }
1634
+ /**
1635
+ * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
1636
+ * @param {Object} request
1637
+ * The request object that will be sent.
1638
+ * @param {string} request.parent
1639
+ * Required. The parent which owns this collection of connection profiles.
1640
+ * @param {number} request.pageSize
1641
+ * The maximum number of connection profiles to return. The service may return
1642
+ * fewer than this value. If unspecified, at most 50 connection profiles will
1643
+ * be returned. The maximum value is 1000; values above 1000 are coerced
1644
+ * to 1000.
1645
+ * @param {string} request.pageToken
1646
+ * A page token, received from a previous `ListConnectionProfiles` call.
1647
+ * Provide this to retrieve the subsequent page.
1648
+ *
1649
+ * When paginating, all other parameters provided to `ListConnectionProfiles`
1650
+ * must match the call that provided the page token.
1651
+ * @param {string} request.filter
1652
+ * A filter expression that filters connection profiles listed in the
1653
+ * response. The expression must specify the field name, a comparison
1654
+ * operator, and the value that you want to use for filtering. The value must
1655
+ * be a string, a number, or a boolean. The comparison operator must be either
1656
+ * =, !=, >, or <. For example, list connection profiles created this year by
1657
+ * specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z**. You can
1658
+ * also filter nested fields. For example, you could specify **mySql.username
1659
+ * = %lt;my_username%gt;** to list all connection profiles configured to
1660
+ * connect with a specific username.
1661
+ * @param {string} request.orderBy
1662
+ * A comma-separated list of fields to order results according to.
1663
+ * @param {object} [options]
1664
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1665
+ * @returns {Stream}
1666
+ * An object stream which emits an object representing {@link protos.google.cloud.clouddms.v1.ConnectionProfile|ConnectionProfile} on 'data' event.
1667
+ * The client library will perform auto-pagination by default: it will call the API as many
1668
+ * times as needed. Note that it can affect your quota.
1669
+ * We recommend using `listConnectionProfilesAsync()`
1670
+ * method described below for async iteration which you can stop as needed.
1671
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1672
+ * for more details and examples.
1673
+ */
1674
+ listConnectionProfilesStream(request, options) {
1675
+ var _a;
1676
+ request = request || {};
1677
+ options = options || {};
1678
+ options.otherArgs = options.otherArgs || {};
1679
+ options.otherArgs.headers = options.otherArgs.headers || {};
1680
+ options.otherArgs.headers['x-goog-request-params'] =
1681
+ this._gaxModule.routingHeader.fromParams({
1682
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
1683
+ });
1684
+ const defaultCallSettings = this._defaults['listConnectionProfiles'];
1685
+ const callSettings = defaultCallSettings.merge(options);
1686
+ this.initialize();
1687
+ return this.descriptors.page.listConnectionProfiles.createStream(this.innerApiCalls.listConnectionProfiles, request, callSettings);
1688
+ }
1689
+ /**
1690
+ * Equivalent to `listConnectionProfiles`, but returns an iterable object.
1691
+ *
1692
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
1693
+ * @param {Object} request
1694
+ * The request object that will be sent.
1695
+ * @param {string} request.parent
1696
+ * Required. The parent which owns this collection of connection profiles.
1697
+ * @param {number} request.pageSize
1698
+ * The maximum number of connection profiles to return. The service may return
1699
+ * fewer than this value. If unspecified, at most 50 connection profiles will
1700
+ * be returned. The maximum value is 1000; values above 1000 are coerced
1701
+ * to 1000.
1702
+ * @param {string} request.pageToken
1703
+ * A page token, received from a previous `ListConnectionProfiles` call.
1704
+ * Provide this to retrieve the subsequent page.
1705
+ *
1706
+ * When paginating, all other parameters provided to `ListConnectionProfiles`
1707
+ * must match the call that provided the page token.
1708
+ * @param {string} request.filter
1709
+ * A filter expression that filters connection profiles listed in the
1710
+ * response. The expression must specify the field name, a comparison
1711
+ * operator, and the value that you want to use for filtering. The value must
1712
+ * be a string, a number, or a boolean. The comparison operator must be either
1713
+ * =, !=, >, or <. For example, list connection profiles created this year by
1714
+ * specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z**. You can
1715
+ * also filter nested fields. For example, you could specify **mySql.username
1716
+ * = %lt;my_username%gt;** to list all connection profiles configured to
1717
+ * connect with a specific username.
1718
+ * @param {string} request.orderBy
1719
+ * A comma-separated list of fields to order results according to.
1720
+ * @param {object} [options]
1721
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1722
+ * @returns {Object}
1723
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
1724
+ * When you iterate the returned iterable, each element will be an object representing
1725
+ * {@link protos.google.cloud.clouddms.v1.ConnectionProfile|ConnectionProfile}. The API will be called under the hood as needed, once per the page,
1726
+ * so you can stop the iteration when you don't need more results.
1727
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1728
+ * for more details and examples.
1729
+ * @example <caption>include:samples/generated/v1/data_migration_service.list_connection_profiles.js</caption>
1730
+ * region_tag:datamigration_v1_generated_DataMigrationService_ListConnectionProfiles_async
1731
+ */
1732
+ listConnectionProfilesAsync(request, options) {
1733
+ var _a;
1734
+ request = request || {};
1735
+ options = options || {};
1736
+ options.otherArgs = options.otherArgs || {};
1737
+ options.otherArgs.headers = options.otherArgs.headers || {};
1738
+ options.otherArgs.headers['x-goog-request-params'] =
1739
+ this._gaxModule.routingHeader.fromParams({
1740
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
1741
+ });
1742
+ const defaultCallSettings = this._defaults['listConnectionProfiles'];
1743
+ const callSettings = defaultCallSettings.merge(options);
1744
+ this.initialize();
1745
+ return this.descriptors.page.listConnectionProfiles.asyncIterate(this.innerApiCalls['listConnectionProfiles'], request, callSettings);
1746
+ }
1747
+ listPrivateConnections(request, optionsOrCallback, callback) {
1748
+ var _a;
1749
+ request = request || {};
1750
+ let options;
1751
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
1752
+ callback = optionsOrCallback;
1753
+ options = {};
1754
+ }
1755
+ else {
1756
+ options = optionsOrCallback;
1757
+ }
1758
+ options = options || {};
1759
+ options.otherArgs = options.otherArgs || {};
1760
+ options.otherArgs.headers = options.otherArgs.headers || {};
1761
+ options.otherArgs.headers['x-goog-request-params'] =
1762
+ this._gaxModule.routingHeader.fromParams({
1763
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
1764
+ });
1765
+ this.initialize();
1766
+ return this.innerApiCalls.listPrivateConnections(request, options, callback);
1767
+ }
1768
+ /**
1769
+ * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
1770
+ * @param {Object} request
1771
+ * The request object that will be sent.
1772
+ * @param {string} request.parent
1773
+ * Required. The parent that owns the collection of private connections.
1774
+ * @param {number} request.pageSize
1775
+ * Maximum number of private connections to return.
1776
+ * If unspecified, at most 50 private connections that are returned.
1777
+ * The maximum value is 1000; values above 1000 are coerced to 1000.
1778
+ * @param {string} request.pageToken
1779
+ * Page token received from a previous `ListPrivateConnections` call.
1780
+ * Provide this to retrieve the subsequent page.
1781
+ *
1782
+ * When paginating, all other parameters provided to
1783
+ * `ListPrivateConnections` must match the call that provided the page
1784
+ * token.
1785
+ * @param {string} request.filter
1786
+ * A filter expression that filters private connections listed in the
1787
+ * response. The expression must specify the field name, a comparison
1788
+ * operator, and the value that you want to use for filtering. The value must
1789
+ * be a string, a number, or a boolean. The comparison operator must be either
1790
+ * =, !=, >, or <. For example, list private connections created this year by
1791
+ * specifying **createTime %gt; 2021-01-01T00:00:00.000000000Z**.
1792
+ * @param {string} request.orderBy
1793
+ * Order by fields for the result.
1794
+ * @param {object} [options]
1795
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1796
+ * @returns {Stream}
1797
+ * An object stream which emits an object representing {@link protos.google.cloud.clouddms.v1.PrivateConnection|PrivateConnection} on 'data' event.
1798
+ * The client library will perform auto-pagination by default: it will call the API as many
1799
+ * times as needed. Note that it can affect your quota.
1800
+ * We recommend using `listPrivateConnectionsAsync()`
1801
+ * method described below for async iteration which you can stop as needed.
1802
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1803
+ * for more details and examples.
1804
+ */
1805
+ listPrivateConnectionsStream(request, options) {
1806
+ var _a;
1807
+ request = request || {};
1808
+ options = options || {};
1809
+ options.otherArgs = options.otherArgs || {};
1810
+ options.otherArgs.headers = options.otherArgs.headers || {};
1811
+ options.otherArgs.headers['x-goog-request-params'] =
1812
+ this._gaxModule.routingHeader.fromParams({
1813
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
1814
+ });
1815
+ const defaultCallSettings = this._defaults['listPrivateConnections'];
1816
+ const callSettings = defaultCallSettings.merge(options);
1817
+ this.initialize();
1818
+ return this.descriptors.page.listPrivateConnections.createStream(this.innerApiCalls.listPrivateConnections, request, callSettings);
1819
+ }
1820
+ /**
1821
+ * Equivalent to `listPrivateConnections`, but returns an iterable object.
1822
+ *
1823
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
1824
+ * @param {Object} request
1825
+ * The request object that will be sent.
1826
+ * @param {string} request.parent
1827
+ * Required. The parent that owns the collection of private connections.
1828
+ * @param {number} request.pageSize
1829
+ * Maximum number of private connections to return.
1830
+ * If unspecified, at most 50 private connections that are returned.
1831
+ * The maximum value is 1000; values above 1000 are coerced to 1000.
1832
+ * @param {string} request.pageToken
1833
+ * Page token received from a previous `ListPrivateConnections` call.
1834
+ * Provide this to retrieve the subsequent page.
1835
+ *
1836
+ * When paginating, all other parameters provided to
1837
+ * `ListPrivateConnections` must match the call that provided the page
1838
+ * token.
1839
+ * @param {string} request.filter
1840
+ * A filter expression that filters private connections listed in the
1841
+ * response. The expression must specify the field name, a comparison
1842
+ * operator, and the value that you want to use for filtering. The value must
1843
+ * be a string, a number, or a boolean. The comparison operator must be either
1844
+ * =, !=, >, or <. For example, list private connections created this year by
1845
+ * specifying **createTime %gt; 2021-01-01T00:00:00.000000000Z**.
1846
+ * @param {string} request.orderBy
1847
+ * Order by fields for the result.
1848
+ * @param {object} [options]
1849
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1850
+ * @returns {Object}
1851
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
1852
+ * When you iterate the returned iterable, each element will be an object representing
1853
+ * {@link protos.google.cloud.clouddms.v1.PrivateConnection|PrivateConnection}. The API will be called under the hood as needed, once per the page,
1854
+ * so you can stop the iteration when you don't need more results.
1855
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1856
+ * for more details and examples.
1857
+ * @example <caption>include:samples/generated/v1/data_migration_service.list_private_connections.js</caption>
1858
+ * region_tag:datamigration_v1_generated_DataMigrationService_ListPrivateConnections_async
1859
+ */
1860
+ listPrivateConnectionsAsync(request, options) {
1861
+ var _a;
1862
+ request = request || {};
1863
+ options = options || {};
1864
+ options.otherArgs = options.otherArgs || {};
1865
+ options.otherArgs.headers = options.otherArgs.headers || {};
1866
+ options.otherArgs.headers['x-goog-request-params'] =
1867
+ this._gaxModule.routingHeader.fromParams({
1868
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
1869
+ });
1870
+ const defaultCallSettings = this._defaults['listPrivateConnections'];
1871
+ const callSettings = defaultCallSettings.merge(options);
1872
+ this.initialize();
1873
+ return this.descriptors.page.listPrivateConnections.asyncIterate(this.innerApiCalls['listPrivateConnections'], request, callSettings);
1874
+ }
1875
+ listConversionWorkspaces(request, optionsOrCallback, callback) {
1876
+ var _a;
1877
+ request = request || {};
1878
+ let options;
1879
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
1880
+ callback = optionsOrCallback;
1881
+ options = {};
1882
+ }
1883
+ else {
1884
+ options = optionsOrCallback;
1885
+ }
1886
+ options = options || {};
1887
+ options.otherArgs = options.otherArgs || {};
1888
+ options.otherArgs.headers = options.otherArgs.headers || {};
1889
+ options.otherArgs.headers['x-goog-request-params'] =
1890
+ this._gaxModule.routingHeader.fromParams({
1891
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
1892
+ });
1893
+ this.initialize();
1894
+ return this.innerApiCalls.listConversionWorkspaces(request, options, callback);
1895
+ }
1896
+ /**
1897
+ * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
1898
+ * @param {Object} request
1899
+ * The request object that will be sent.
1900
+ * @param {string} request.parent
1901
+ * Required. The parent which owns this collection of conversion workspaces.
1902
+ * @param {number} request.pageSize
1903
+ * The maximum number of conversion workspaces to return. The service may
1904
+ * return fewer than this value. If unspecified, at most 50 sets are returned.
1905
+ * @param {string} request.pageToken
1906
+ * The nextPageToken value received in the previous call to
1907
+ * conversionWorkspaces.list, used in the subsequent request to retrieve the
1908
+ * next page of results. On first call this should be left blank. When
1909
+ * paginating, all other parameters provided to conversionWorkspaces.list must
1910
+ * match the call that provided the page token.
1911
+ * @param {string} request.filter
1912
+ * A filter expression that filters conversion workspaces listed in the
1913
+ * response. The expression must specify the field name, a comparison
1914
+ * operator, and the value that you want to use for filtering. The value must
1915
+ * be a string, a number, or a boolean. The comparison operator must be either
1916
+ * =, !=, >, or <. For example, list conversion workspaces created this year
1917
+ * by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can
1918
+ * also filter nested fields. For example, you could specify
1919
+ * **source.version = "12.c.1"** to select all conversion workspaces with
1920
+ * source database version equal to 12.c.1.
1921
+ * @param {object} [options]
1922
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1923
+ * @returns {Stream}
1924
+ * An object stream which emits an object representing {@link protos.google.cloud.clouddms.v1.ConversionWorkspace|ConversionWorkspace} on 'data' event.
1925
+ * The client library will perform auto-pagination by default: it will call the API as many
1926
+ * times as needed. Note that it can affect your quota.
1927
+ * We recommend using `listConversionWorkspacesAsync()`
1928
+ * method described below for async iteration which you can stop as needed.
1929
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1930
+ * for more details and examples.
1931
+ */
1932
+ listConversionWorkspacesStream(request, options) {
1933
+ var _a;
1934
+ request = request || {};
1935
+ options = options || {};
1936
+ options.otherArgs = options.otherArgs || {};
1937
+ options.otherArgs.headers = options.otherArgs.headers || {};
1938
+ options.otherArgs.headers['x-goog-request-params'] =
1939
+ this._gaxModule.routingHeader.fromParams({
1940
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
1941
+ });
1942
+ const defaultCallSettings = this._defaults['listConversionWorkspaces'];
1943
+ const callSettings = defaultCallSettings.merge(options);
1944
+ this.initialize();
1945
+ return this.descriptors.page.listConversionWorkspaces.createStream(this.innerApiCalls.listConversionWorkspaces, request, callSettings);
1946
+ }
1947
+ /**
1948
+ * Equivalent to `listConversionWorkspaces`, but returns an iterable object.
1949
+ *
1950
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
1951
+ * @param {Object} request
1952
+ * The request object that will be sent.
1953
+ * @param {string} request.parent
1954
+ * Required. The parent which owns this collection of conversion workspaces.
1955
+ * @param {number} request.pageSize
1956
+ * The maximum number of conversion workspaces to return. The service may
1957
+ * return fewer than this value. If unspecified, at most 50 sets are returned.
1958
+ * @param {string} request.pageToken
1959
+ * The nextPageToken value received in the previous call to
1960
+ * conversionWorkspaces.list, used in the subsequent request to retrieve the
1961
+ * next page of results. On first call this should be left blank. When
1962
+ * paginating, all other parameters provided to conversionWorkspaces.list must
1963
+ * match the call that provided the page token.
1964
+ * @param {string} request.filter
1965
+ * A filter expression that filters conversion workspaces listed in the
1966
+ * response. The expression must specify the field name, a comparison
1967
+ * operator, and the value that you want to use for filtering. The value must
1968
+ * be a string, a number, or a boolean. The comparison operator must be either
1969
+ * =, !=, >, or <. For example, list conversion workspaces created this year
1970
+ * by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can
1971
+ * also filter nested fields. For example, you could specify
1972
+ * **source.version = "12.c.1"** to select all conversion workspaces with
1973
+ * source database version equal to 12.c.1.
1974
+ * @param {object} [options]
1975
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1976
+ * @returns {Object}
1977
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
1978
+ * When you iterate the returned iterable, each element will be an object representing
1979
+ * {@link protos.google.cloud.clouddms.v1.ConversionWorkspace|ConversionWorkspace}. The API will be called under the hood as needed, once per the page,
1980
+ * so you can stop the iteration when you don't need more results.
1981
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1982
+ * for more details and examples.
1983
+ * @example <caption>include:samples/generated/v1/data_migration_service.list_conversion_workspaces.js</caption>
1984
+ * region_tag:datamigration_v1_generated_DataMigrationService_ListConversionWorkspaces_async
1985
+ */
1986
+ listConversionWorkspacesAsync(request, options) {
1987
+ var _a;
1988
+ request = request || {};
1989
+ options = options || {};
1990
+ options.otherArgs = options.otherArgs || {};
1991
+ options.otherArgs.headers = options.otherArgs.headers || {};
1992
+ options.otherArgs.headers['x-goog-request-params'] =
1993
+ this._gaxModule.routingHeader.fromParams({
1994
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
1995
+ });
1996
+ const defaultCallSettings = this._defaults['listConversionWorkspaces'];
1997
+ const callSettings = defaultCallSettings.merge(options);
1998
+ this.initialize();
1999
+ return this.descriptors.page.listConversionWorkspaces.asyncIterate(this.innerApiCalls['listConversionWorkspaces'], request, callSettings);
2000
+ }
2001
+ describeDatabaseEntities(request, optionsOrCallback, callback) {
2002
+ var _a;
1107
2003
  request = request || {};
2004
+ let options;
2005
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
2006
+ callback = optionsOrCallback;
2007
+ options = {};
2008
+ }
2009
+ else {
2010
+ options = optionsOrCallback;
2011
+ }
1108
2012
  options = options || {};
1109
2013
  options.otherArgs = options.otherArgs || {};
1110
2014
  options.otherArgs.headers = options.otherArgs.headers || {};
1111
2015
  options.otherArgs.headers['x-goog-request-params'] =
1112
2016
  this._gaxModule.routingHeader.fromParams({
1113
- parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
2017
+ conversion_workspace: (_a = request.conversionWorkspace) !== null && _a !== void 0 ? _a : '',
1114
2018
  });
1115
- const defaultCallSettings = this._defaults['listConnectionProfiles'];
2019
+ this.initialize();
2020
+ return this.innerApiCalls.describeDatabaseEntities(request, options, callback);
2021
+ }
2022
+ /**
2023
+ * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
2024
+ * @param {Object} request
2025
+ * The request object that will be sent.
2026
+ * @param {string} request.conversionWorkspace
2027
+ * Required. Name of the conversion workspace resource whose database entities
2028
+ * are described. Must be in the form of:
2029
+ * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
2030
+ * @param {number} request.pageSize
2031
+ * The maximum number of entities to return. The service may return
2032
+ * fewer entities than the value specifies.
2033
+ * @param {string} request.pageToken
2034
+ * The nextPageToken value received in the previous call to
2035
+ * conversionWorkspace.describeDatabaseEntities, used in the subsequent
2036
+ * request to retrieve the next page of results. On first call this should be
2037
+ * left blank. When paginating, all other parameters provided to
2038
+ * conversionWorkspace.describeDatabaseEntities must match the call that
2039
+ * provided the page token.
2040
+ * @param {google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType} request.tree
2041
+ * The tree to fetch.
2042
+ * @param {boolean} request.uncommitted
2043
+ * Whether to retrieve the latest committed version of the entities or the
2044
+ * latest version. This field is ignored if a specific commit_id is specified.
2045
+ * @param {string} request.commitId
2046
+ * Request a specific commit ID. If not specified, the entities from the
2047
+ * latest commit are returned.
2048
+ * @param {string} request.filter
2049
+ * Filter the returned entities based on AIP-160 standard.
2050
+ * @param {object} [options]
2051
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2052
+ * @returns {Stream}
2053
+ * An object stream which emits an object representing {@link protos.google.cloud.clouddms.v1.DatabaseEntity|DatabaseEntity} on 'data' event.
2054
+ * The client library will perform auto-pagination by default: it will call the API as many
2055
+ * times as needed. Note that it can affect your quota.
2056
+ * We recommend using `describeDatabaseEntitiesAsync()`
2057
+ * method described below for async iteration which you can stop as needed.
2058
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
2059
+ * for more details and examples.
2060
+ */
2061
+ describeDatabaseEntitiesStream(request, options) {
2062
+ var _a;
2063
+ request = request || {};
2064
+ options = options || {};
2065
+ options.otherArgs = options.otherArgs || {};
2066
+ options.otherArgs.headers = options.otherArgs.headers || {};
2067
+ options.otherArgs.headers['x-goog-request-params'] =
2068
+ this._gaxModule.routingHeader.fromParams({
2069
+ conversion_workspace: (_a = request.conversionWorkspace) !== null && _a !== void 0 ? _a : '',
2070
+ });
2071
+ const defaultCallSettings = this._defaults['describeDatabaseEntities'];
1116
2072
  const callSettings = defaultCallSettings.merge(options);
1117
2073
  this.initialize();
1118
- return this.descriptors.page.listConnectionProfiles.createStream(this.innerApiCalls.listConnectionProfiles, request, callSettings);
2074
+ return this.descriptors.page.describeDatabaseEntities.createStream(this.innerApiCalls.describeDatabaseEntities, request, callSettings);
1119
2075
  }
1120
2076
  /**
1121
- * Equivalent to `listConnectionProfiles`, but returns an iterable object.
2077
+ * Equivalent to `describeDatabaseEntities`, but returns an iterable object.
1122
2078
  *
1123
2079
  * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
1124
2080
  * @param {Object} request
1125
2081
  * The request object that will be sent.
1126
- * @param {string} request.parent
1127
- * Required. The parent, which owns this collection of connection profiles.
2082
+ * @param {string} request.conversionWorkspace
2083
+ * Required. Name of the conversion workspace resource whose database entities
2084
+ * are described. Must be in the form of:
2085
+ * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
1128
2086
  * @param {number} request.pageSize
1129
- * The maximum number of connection profiles to return. The service may return
1130
- * fewer than this value. If unspecified, at most 50 connection profiles will
1131
- * be returned. The maximum value is 1000; values above 1000 will be coerced
1132
- * to 1000.
2087
+ * The maximum number of entities to return. The service may return
2088
+ * fewer entities than the value specifies.
1133
2089
  * @param {string} request.pageToken
1134
- * A page token, received from a previous `ListConnectionProfiles` call.
1135
- * Provide this to retrieve the subsequent page.
1136
- *
1137
- * When paginating, all other parameters provided to `ListConnectionProfiles`
1138
- * must match the call that provided the page token.
2090
+ * The nextPageToken value received in the previous call to
2091
+ * conversionWorkspace.describeDatabaseEntities, used in the subsequent
2092
+ * request to retrieve the next page of results. On first call this should be
2093
+ * left blank. When paginating, all other parameters provided to
2094
+ * conversionWorkspace.describeDatabaseEntities must match the call that
2095
+ * provided the page token.
2096
+ * @param {google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType} request.tree
2097
+ * The tree to fetch.
2098
+ * @param {boolean} request.uncommitted
2099
+ * Whether to retrieve the latest committed version of the entities or the
2100
+ * latest version. This field is ignored if a specific commit_id is specified.
2101
+ * @param {string} request.commitId
2102
+ * Request a specific commit ID. If not specified, the entities from the
2103
+ * latest commit are returned.
1139
2104
  * @param {string} request.filter
1140
- * A filter expression that filters connection profiles listed in the
1141
- * response. The expression must specify the field name, a comparison
1142
- * operator, and the value that you want to use for filtering. The value must
1143
- * be a string, a number, or a boolean. The comparison operator must be either
1144
- * =, !=, >, or <. For example, list connection profiles created this year by
1145
- * specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z**. You can
1146
- * also filter nested fields. For example, you could specify **mySql.username
1147
- * = %lt;my_username%gt;** to list all connection profiles configured to
1148
- * connect with a specific username.
1149
- * @param {string} request.orderBy
1150
- * the order by fields for the result.
2105
+ * Filter the returned entities based on AIP-160 standard.
1151
2106
  * @param {object} [options]
1152
2107
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1153
2108
  * @returns {Object}
1154
- * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
2109
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
1155
2110
  * When you iterate the returned iterable, each element will be an object representing
1156
- * {@link google.cloud.clouddms.v1.ConnectionProfile | ConnectionProfile}. The API will be called under the hood as needed, once per the page,
2111
+ * {@link protos.google.cloud.clouddms.v1.DatabaseEntity|DatabaseEntity}. The API will be called under the hood as needed, once per the page,
1157
2112
  * so you can stop the iteration when you don't need more results.
1158
- * Please see the
1159
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
2113
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1160
2114
  * for more details and examples.
1161
- * @example <caption>include:samples/generated/v1/data_migration_service.list_connection_profiles.js</caption>
1162
- * region_tag:datamigration_v1_generated_DataMigrationService_ListConnectionProfiles_async
2115
+ * @example <caption>include:samples/generated/v1/data_migration_service.describe_database_entities.js</caption>
2116
+ * region_tag:datamigration_v1_generated_DataMigrationService_DescribeDatabaseEntities_async
1163
2117
  */
1164
- listConnectionProfilesAsync(request, options) {
2118
+ describeDatabaseEntitiesAsync(request, options) {
1165
2119
  var _a;
1166
2120
  request = request || {};
1167
2121
  options = options || {};
@@ -1169,12 +2123,386 @@ class DataMigrationServiceClient {
1169
2123
  options.otherArgs.headers = options.otherArgs.headers || {};
1170
2124
  options.otherArgs.headers['x-goog-request-params'] =
1171
2125
  this._gaxModule.routingHeader.fromParams({
1172
- parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
2126
+ conversion_workspace: (_a = request.conversionWorkspace) !== null && _a !== void 0 ? _a : '',
1173
2127
  });
1174
- const defaultCallSettings = this._defaults['listConnectionProfiles'];
2128
+ const defaultCallSettings = this._defaults['describeDatabaseEntities'];
1175
2129
  const callSettings = defaultCallSettings.merge(options);
1176
2130
  this.initialize();
1177
- return this.descriptors.page.listConnectionProfiles.asyncIterate(this.innerApiCalls['listConnectionProfiles'], request, callSettings);
2131
+ return this.descriptors.page.describeDatabaseEntities.asyncIterate(this.innerApiCalls['describeDatabaseEntities'], request, callSettings);
2132
+ }
2133
+ fetchStaticIps(request, optionsOrCallback, callback) {
2134
+ var _a;
2135
+ request = request || {};
2136
+ let options;
2137
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
2138
+ callback = optionsOrCallback;
2139
+ options = {};
2140
+ }
2141
+ else {
2142
+ options = optionsOrCallback;
2143
+ }
2144
+ options = options || {};
2145
+ options.otherArgs = options.otherArgs || {};
2146
+ options.otherArgs.headers = options.otherArgs.headers || {};
2147
+ options.otherArgs.headers['x-goog-request-params'] =
2148
+ this._gaxModule.routingHeader.fromParams({
2149
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
2150
+ });
2151
+ this.initialize();
2152
+ return this.innerApiCalls.fetchStaticIps(request, options, callback);
2153
+ }
2154
+ /**
2155
+ * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
2156
+ * @param {Object} request
2157
+ * The request object that will be sent.
2158
+ * @param {string} request.name
2159
+ * Required. The resource name for the location for which static IPs should be
2160
+ * returned. Must be in the format `projects/* /locations/*`.
2161
+ * @param {number} request.pageSize
2162
+ * Maximum number of IPs to return.
2163
+ * @param {string} request.pageToken
2164
+ * A page token, received from a previous `FetchStaticIps` call.
2165
+ * @param {object} [options]
2166
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2167
+ * @returns {Stream}
2168
+ * An object stream which emits an object representing string on 'data' event.
2169
+ * The client library will perform auto-pagination by default: it will call the API as many
2170
+ * times as needed. Note that it can affect your quota.
2171
+ * We recommend using `fetchStaticIpsAsync()`
2172
+ * method described below for async iteration which you can stop as needed.
2173
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
2174
+ * for more details and examples.
2175
+ */
2176
+ fetchStaticIpsStream(request, options) {
2177
+ var _a;
2178
+ request = request || {};
2179
+ options = options || {};
2180
+ options.otherArgs = options.otherArgs || {};
2181
+ options.otherArgs.headers = options.otherArgs.headers || {};
2182
+ options.otherArgs.headers['x-goog-request-params'] =
2183
+ this._gaxModule.routingHeader.fromParams({
2184
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
2185
+ });
2186
+ const defaultCallSettings = this._defaults['fetchStaticIps'];
2187
+ const callSettings = defaultCallSettings.merge(options);
2188
+ this.initialize();
2189
+ return this.descriptors.page.fetchStaticIps.createStream(this.innerApiCalls.fetchStaticIps, request, callSettings);
2190
+ }
2191
+ /**
2192
+ * Equivalent to `fetchStaticIps`, but returns an iterable object.
2193
+ *
2194
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
2195
+ * @param {Object} request
2196
+ * The request object that will be sent.
2197
+ * @param {string} request.name
2198
+ * Required. The resource name for the location for which static IPs should be
2199
+ * returned. Must be in the format `projects/* /locations/*`.
2200
+ * @param {number} request.pageSize
2201
+ * Maximum number of IPs to return.
2202
+ * @param {string} request.pageToken
2203
+ * A page token, received from a previous `FetchStaticIps` call.
2204
+ * @param {object} [options]
2205
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2206
+ * @returns {Object}
2207
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
2208
+ * When you iterate the returned iterable, each element will be an object representing
2209
+ * string. The API will be called under the hood as needed, once per the page,
2210
+ * so you can stop the iteration when you don't need more results.
2211
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
2212
+ * for more details and examples.
2213
+ * @example <caption>include:samples/generated/v1/data_migration_service.fetch_static_ips.js</caption>
2214
+ * region_tag:datamigration_v1_generated_DataMigrationService_FetchStaticIps_async
2215
+ */
2216
+ fetchStaticIpsAsync(request, options) {
2217
+ var _a;
2218
+ request = request || {};
2219
+ options = options || {};
2220
+ options.otherArgs = options.otherArgs || {};
2221
+ options.otherArgs.headers = options.otherArgs.headers || {};
2222
+ options.otherArgs.headers['x-goog-request-params'] =
2223
+ this._gaxModule.routingHeader.fromParams({
2224
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
2225
+ });
2226
+ const defaultCallSettings = this._defaults['fetchStaticIps'];
2227
+ const callSettings = defaultCallSettings.merge(options);
2228
+ this.initialize();
2229
+ return this.descriptors.page.fetchStaticIps.asyncIterate(this.innerApiCalls['fetchStaticIps'], request, callSettings);
2230
+ }
2231
+ /**
2232
+ * Gets the access control policy for a resource. Returns an empty policy
2233
+ * if the resource exists and does not have a policy set.
2234
+ *
2235
+ * @param {Object} request
2236
+ * The request object that will be sent.
2237
+ * @param {string} request.resource
2238
+ * REQUIRED: The resource for which the policy is being requested.
2239
+ * See the operation documentation for the appropriate value for this field.
2240
+ * @param {Object} [request.options]
2241
+ * OPTIONAL: A `GetPolicyOptions` object for specifying options to
2242
+ * `GetIamPolicy`. This field is only used by Cloud IAM.
2243
+ *
2244
+ * This object should have the same structure as {@link google.iam.v1.GetPolicyOptions | GetPolicyOptions}.
2245
+ * @param {Object} [options]
2246
+ * Optional parameters. You can override the default settings for this call, e.g, timeout,
2247
+ * retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details.
2248
+ * @param {function(?Error, ?Object)} [callback]
2249
+ * The function which will be called with the result of the API call.
2250
+ *
2251
+ * The second parameter to the callback is an object representing {@link google.iam.v1.Policy | Policy}.
2252
+ * @returns {Promise} - The promise which resolves to an array.
2253
+ * The first element of the array is an object representing {@link google.iam.v1.Policy | Policy}.
2254
+ * The promise has a method named "cancel" which cancels the ongoing API call.
2255
+ */
2256
+ getIamPolicy(request, options, callback) {
2257
+ return this.iamClient.getIamPolicy(request, options, callback);
2258
+ }
2259
+ /**
2260
+ * Returns permissions that a caller has on the specified resource. If the
2261
+ * resource does not exist, this will return an empty set of
2262
+ * permissions, not a NOT_FOUND error.
2263
+ *
2264
+ * Note: This operation is designed to be used for building
2265
+ * permission-aware UIs and command-line tools, not for authorization
2266
+ * checking. This operation may "fail open" without warning.
2267
+ *
2268
+ * @param {Object} request
2269
+ * The request object that will be sent.
2270
+ * @param {string} request.resource
2271
+ * REQUIRED: The resource for which the policy detail is being requested.
2272
+ * See the operation documentation for the appropriate value for this field.
2273
+ * @param {string[]} request.permissions
2274
+ * The set of permissions to check for the `resource`. Permissions with
2275
+ * wildcards (such as '*' or 'storage.*') are not allowed. For more
2276
+ * information see {@link https://cloud.google.com/iam/docs/overview#permissions | IAM Overview }.
2277
+ * @param {Object} [options]
2278
+ * Optional parameters. You can override the default settings for this call, e.g, timeout,
2279
+ * retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details.
2280
+ * @param {function(?Error, ?Object)} [callback]
2281
+ * The function which will be called with the result of the API call.
2282
+ *
2283
+ * The second parameter to the callback is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}.
2284
+ * @returns {Promise} - The promise which resolves to an array.
2285
+ * The first element of the array is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}.
2286
+ * The promise has a method named "cancel" which cancels the ongoing API call.
2287
+ */
2288
+ setIamPolicy(request, options, callback) {
2289
+ return this.iamClient.setIamPolicy(request, options, callback);
2290
+ }
2291
+ /**
2292
+ * Returns permissions that a caller has on the specified resource. If the
2293
+ * resource does not exist, this will return an empty set of
2294
+ * permissions, not a NOT_FOUND error.
2295
+ *
2296
+ * Note: This operation is designed to be used for building
2297
+ * permission-aware UIs and command-line tools, not for authorization
2298
+ * checking. This operation may "fail open" without warning.
2299
+ *
2300
+ * @param {Object} request
2301
+ * The request object that will be sent.
2302
+ * @param {string} request.resource
2303
+ * REQUIRED: The resource for which the policy detail is being requested.
2304
+ * See the operation documentation for the appropriate value for this field.
2305
+ * @param {string[]} request.permissions
2306
+ * The set of permissions to check for the `resource`. Permissions with
2307
+ * wildcards (such as '*' or 'storage.*') are not allowed. For more
2308
+ * information see {@link https://cloud.google.com/iam/docs/overview#permissions | IAM Overview }.
2309
+ * @param {Object} [options]
2310
+ * Optional parameters. You can override the default settings for this call, e.g, timeout,
2311
+ * retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details.
2312
+ * @param {function(?Error, ?Object)} [callback]
2313
+ * The function which will be called with the result of the API call.
2314
+ *
2315
+ * The second parameter to the callback is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}.
2316
+ * @returns {Promise} - The promise which resolves to an array.
2317
+ * The first element of the array is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}.
2318
+ * The promise has a method named "cancel" which cancels the ongoing API call.
2319
+ *
2320
+ */
2321
+ testIamPermissions(request, options, callback) {
2322
+ return this.iamClient.testIamPermissions(request, options, callback);
2323
+ }
2324
+ /**
2325
+ * Gets information about a location.
2326
+ *
2327
+ * @param {Object} request
2328
+ * The request object that will be sent.
2329
+ * @param {string} request.name
2330
+ * Resource name for the location.
2331
+ * @param {object} [options]
2332
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
2333
+ * @returns {Promise} - The promise which resolves to an array.
2334
+ * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
2335
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
2336
+ * for more details and examples.
2337
+ * @example
2338
+ * ```
2339
+ * const [response] = await client.getLocation(request);
2340
+ * ```
2341
+ */
2342
+ getLocation(request, options, callback) {
2343
+ return this.locationsClient.getLocation(request, options, callback);
2344
+ }
2345
+ /**
2346
+ * Lists information about the supported locations for this service. Returns an iterable object.
2347
+ *
2348
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
2349
+ * @param {Object} request
2350
+ * The request object that will be sent.
2351
+ * @param {string} request.name
2352
+ * The resource that owns the locations collection, if applicable.
2353
+ * @param {string} request.filter
2354
+ * The standard list filter.
2355
+ * @param {number} request.pageSize
2356
+ * The standard list page size.
2357
+ * @param {string} request.pageToken
2358
+ * The standard list page token.
2359
+ * @param {object} [options]
2360
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2361
+ * @returns {Object}
2362
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
2363
+ * When you iterate the returned iterable, each element will be an object representing
2364
+ * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
2365
+ * so you can stop the iteration when you don't need more results.
2366
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
2367
+ * for more details and examples.
2368
+ * @example
2369
+ * ```
2370
+ * const iterable = client.listLocationsAsync(request);
2371
+ * for await (const response of iterable) {
2372
+ * // process response
2373
+ * }
2374
+ * ```
2375
+ */
2376
+ listLocationsAsync(request, options) {
2377
+ return this.locationsClient.listLocationsAsync(request, options);
2378
+ }
2379
+ /**
2380
+ * Gets the latest state of a long-running operation. Clients can use this
2381
+ * method to poll the operation result at intervals as recommended by the API
2382
+ * service.
2383
+ *
2384
+ * @param {Object} request - The request object that will be sent.
2385
+ * @param {string} request.name - The name of the operation resource.
2386
+ * @param {Object=} options
2387
+ * Optional parameters. You can override the default settings for this call,
2388
+ * e.g, timeout, retries, paginations, etc. See {@link
2389
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
2390
+ * for the details.
2391
+ * @param {function(?Error, ?Object)=} callback
2392
+ * The function which will be called with the result of the API call.
2393
+ *
2394
+ * The second parameter to the callback is an object representing
2395
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
2396
+ * @return {Promise} - The promise which resolves to an array.
2397
+ * The first element of the array is an object representing
2398
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
2399
+ * The promise has a method named "cancel" which cancels the ongoing API call.
2400
+ *
2401
+ * @example
2402
+ * ```
2403
+ * const client = longrunning.operationsClient();
2404
+ * const name = '';
2405
+ * const [response] = await client.getOperation({name});
2406
+ * // doThingsWith(response)
2407
+ * ```
2408
+ */
2409
+ getOperation(request, options, callback) {
2410
+ return this.operationsClient.getOperation(request, options, callback);
2411
+ }
2412
+ /**
2413
+ * Lists operations that match the specified filter in the request. If the
2414
+ * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object.
2415
+ *
2416
+ * For-await-of syntax is used with the iterable to recursively get response element on-demand.
2417
+ *
2418
+ * @param {Object} request - The request object that will be sent.
2419
+ * @param {string} request.name - The name of the operation collection.
2420
+ * @param {string} request.filter - The standard list filter.
2421
+ * @param {number=} request.pageSize -
2422
+ * The maximum number of resources contained in the underlying API
2423
+ * response. If page streaming is performed per-resource, this
2424
+ * parameter does not affect the return value. If page streaming is
2425
+ * performed per-page, this determines the maximum number of
2426
+ * resources in a page.
2427
+ * @param {Object=} options
2428
+ * Optional parameters. You can override the default settings for this call,
2429
+ * e.g, timeout, retries, paginations, etc. See {@link
2430
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
2431
+ * details.
2432
+ * @returns {Object}
2433
+ * An iterable Object that conforms to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | iteration protocols}.
2434
+ *
2435
+ * @example
2436
+ * ```
2437
+ * const client = longrunning.operationsClient();
2438
+ * for await (const response of client.listOperationsAsync(request));
2439
+ * // doThingsWith(response)
2440
+ * ```
2441
+ */
2442
+ listOperationsAsync(request, options) {
2443
+ return this.operationsClient.listOperationsAsync(request, options);
2444
+ }
2445
+ /**
2446
+ * Starts asynchronous cancellation on a long-running operation. The server
2447
+ * makes a best effort to cancel the operation, but success is not
2448
+ * guaranteed. If the server doesn't support this method, it returns
2449
+ * `google.rpc.Code.UNIMPLEMENTED`. Clients can use
2450
+ * {@link Operations.GetOperation} or
2451
+ * other methods to check whether the cancellation succeeded or whether the
2452
+ * operation completed despite cancellation. On successful cancellation,
2453
+ * the operation is not deleted; instead, it becomes an operation with
2454
+ * an {@link Operation.error} value with a {@link google.rpc.Status.code} of
2455
+ * 1, corresponding to `Code.CANCELLED`.
2456
+ *
2457
+ * @param {Object} request - The request object that will be sent.
2458
+ * @param {string} request.name - The name of the operation resource to be cancelled.
2459
+ * @param {Object=} options
2460
+ * Optional parameters. You can override the default settings for this call,
2461
+ * e.g, timeout, retries, paginations, etc. See {@link
2462
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
2463
+ * details.
2464
+ * @param {function(?Error)=} callback
2465
+ * The function which will be called with the result of the API call.
2466
+ * @return {Promise} - The promise which resolves when API call finishes.
2467
+ * The promise has a method named "cancel" which cancels the ongoing API
2468
+ * call.
2469
+ *
2470
+ * @example
2471
+ * ```
2472
+ * const client = longrunning.operationsClient();
2473
+ * await client.cancelOperation({name: ''});
2474
+ * ```
2475
+ */
2476
+ cancelOperation(request, options, callback) {
2477
+ return this.operationsClient.cancelOperation(request, options, callback);
2478
+ }
2479
+ /**
2480
+ * Deletes a long-running operation. This method indicates that the client is
2481
+ * no longer interested in the operation result. It does not cancel the
2482
+ * operation. If the server doesn't support this method, it returns
2483
+ * `google.rpc.Code.UNIMPLEMENTED`.
2484
+ *
2485
+ * @param {Object} request - The request object that will be sent.
2486
+ * @param {string} request.name - The name of the operation resource to be deleted.
2487
+ * @param {Object=} options
2488
+ * Optional parameters. You can override the default settings for this call,
2489
+ * e.g, timeout, retries, paginations, etc. See {@link
2490
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
2491
+ * for the details.
2492
+ * @param {function(?Error)=} callback
2493
+ * The function which will be called with the result of the API call.
2494
+ * @return {Promise} - The promise which resolves when API call finishes.
2495
+ * The promise has a method named "cancel" which cancels the ongoing API
2496
+ * call.
2497
+ *
2498
+ * @example
2499
+ * ```
2500
+ * const client = longrunning.operationsClient();
2501
+ * await client.deleteOperation({name: ''});
2502
+ * ```
2503
+ */
2504
+ deleteOperation(request, options, callback) {
2505
+ return this.operationsClient.deleteOperation(request, options, callback);
1178
2506
  }
1179
2507
  // --------------------
1180
2508
  // -- Path templates --
@@ -1224,6 +2552,51 @@ class DataMigrationServiceClient {
1224
2552
  matchConnectionProfileFromConnectionProfileName(connectionProfileName) {
1225
2553
  return this.pathTemplates.connectionProfilePathTemplate.match(connectionProfileName).connection_profile;
1226
2554
  }
2555
+ /**
2556
+ * Return a fully-qualified conversionWorkspace resource name string.
2557
+ *
2558
+ * @param {string} project
2559
+ * @param {string} location
2560
+ * @param {string} conversion_workspace
2561
+ * @returns {string} Resource name string.
2562
+ */
2563
+ conversionWorkspacePath(project, location, conversionWorkspace) {
2564
+ return this.pathTemplates.conversionWorkspacePathTemplate.render({
2565
+ project: project,
2566
+ location: location,
2567
+ conversion_workspace: conversionWorkspace,
2568
+ });
2569
+ }
2570
+ /**
2571
+ * Parse the project from ConversionWorkspace resource.
2572
+ *
2573
+ * @param {string} conversionWorkspaceName
2574
+ * A fully-qualified path representing ConversionWorkspace resource.
2575
+ * @returns {string} A string representing the project.
2576
+ */
2577
+ matchProjectFromConversionWorkspaceName(conversionWorkspaceName) {
2578
+ return this.pathTemplates.conversionWorkspacePathTemplate.match(conversionWorkspaceName).project;
2579
+ }
2580
+ /**
2581
+ * Parse the location from ConversionWorkspace resource.
2582
+ *
2583
+ * @param {string} conversionWorkspaceName
2584
+ * A fully-qualified path representing ConversionWorkspace resource.
2585
+ * @returns {string} A string representing the location.
2586
+ */
2587
+ matchLocationFromConversionWorkspaceName(conversionWorkspaceName) {
2588
+ return this.pathTemplates.conversionWorkspacePathTemplate.match(conversionWorkspaceName).location;
2589
+ }
2590
+ /**
2591
+ * Parse the conversion_workspace from ConversionWorkspace resource.
2592
+ *
2593
+ * @param {string} conversionWorkspaceName
2594
+ * A fully-qualified path representing ConversionWorkspace resource.
2595
+ * @returns {string} A string representing the conversion_workspace.
2596
+ */
2597
+ matchConversionWorkspaceFromConversionWorkspaceName(conversionWorkspaceName) {
2598
+ return this.pathTemplates.conversionWorkspacePathTemplate.match(conversionWorkspaceName).conversion_workspace;
2599
+ }
1227
2600
  /**
1228
2601
  * Return a fully-qualified location resource name string.
1229
2602
  *
@@ -1305,6 +2678,51 @@ class DataMigrationServiceClient {
1305
2678
  return this.pathTemplates.migrationJobPathTemplate.match(migrationJobName)
1306
2679
  .migration_job;
1307
2680
  }
2681
+ /**
2682
+ * Return a fully-qualified privateConnection resource name string.
2683
+ *
2684
+ * @param {string} project
2685
+ * @param {string} location
2686
+ * @param {string} private_connection
2687
+ * @returns {string} Resource name string.
2688
+ */
2689
+ privateConnectionPath(project, location, privateConnection) {
2690
+ return this.pathTemplates.privateConnectionPathTemplate.render({
2691
+ project: project,
2692
+ location: location,
2693
+ private_connection: privateConnection,
2694
+ });
2695
+ }
2696
+ /**
2697
+ * Parse the project from PrivateConnection resource.
2698
+ *
2699
+ * @param {string} privateConnectionName
2700
+ * A fully-qualified path representing PrivateConnection resource.
2701
+ * @returns {string} A string representing the project.
2702
+ */
2703
+ matchProjectFromPrivateConnectionName(privateConnectionName) {
2704
+ return this.pathTemplates.privateConnectionPathTemplate.match(privateConnectionName).project;
2705
+ }
2706
+ /**
2707
+ * Parse the location from PrivateConnection resource.
2708
+ *
2709
+ * @param {string} privateConnectionName
2710
+ * A fully-qualified path representing PrivateConnection resource.
2711
+ * @returns {string} A string representing the location.
2712
+ */
2713
+ matchLocationFromPrivateConnectionName(privateConnectionName) {
2714
+ return this.pathTemplates.privateConnectionPathTemplate.match(privateConnectionName).location;
2715
+ }
2716
+ /**
2717
+ * Parse the private_connection from PrivateConnection resource.
2718
+ *
2719
+ * @param {string} privateConnectionName
2720
+ * A fully-qualified path representing PrivateConnection resource.
2721
+ * @returns {string} A string representing the private_connection.
2722
+ */
2723
+ matchPrivateConnectionFromPrivateConnectionName(privateConnectionName) {
2724
+ return this.pathTemplates.privateConnectionPathTemplate.match(privateConnectionName).private_connection;
2725
+ }
1308
2726
  /**
1309
2727
  * Return a fully-qualified project resource name string.
1310
2728
  *
@@ -1337,6 +2755,8 @@ class DataMigrationServiceClient {
1337
2755
  return this.dataMigrationServiceStub.then(stub => {
1338
2756
  this._terminated = true;
1339
2757
  stub.close();
2758
+ this.iamClient.close();
2759
+ this.locationsClient.close();
1340
2760
  this.operationsClient.close();
1341
2761
  });
1342
2762
  }