@google-cloud/dms 2.3.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -60,8 +60,7 @@ class DataMigrationServiceClient {
60
60
  * API remote host.
61
61
  * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
62
62
  * Follows the structure of {@link gapicConfig}.
63
- * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
64
- * Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
63
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
65
64
  * For more information, please check the
66
65
  * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
67
66
  * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
@@ -69,7 +68,7 @@ class DataMigrationServiceClient {
69
68
  * HTTP implementation. Load only fallback version and pass it to the constructor:
70
69
  * ```
71
70
  * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
72
- * const client = new DataMigrationServiceClient({fallback: 'rest'}, gax);
71
+ * const client = new DataMigrationServiceClient({fallback: true}, gax);
73
72
  * ```
74
73
  */
75
74
  constructor(opts, gaxInstance) {
@@ -128,7 +127,7 @@ class DataMigrationServiceClient {
128
127
  if (!opts.fallback) {
129
128
  clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
130
129
  }
131
- else if (opts.fallback === 'rest') {
130
+ else {
132
131
  clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
133
132
  }
134
133
  if (opts.libName && opts.libVersion) {
@@ -143,6 +142,7 @@ class DataMigrationServiceClient {
143
142
  connectionProfilePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/connectionProfiles/{connection_profile}'),
144
143
  conversionWorkspacePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}'),
145
144
  locationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}'),
145
+ mappingRulePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}/mappingRules/{mapping_rule}'),
146
146
  migrationJobPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/migrationJobs/{migration_job}'),
147
147
  privateConnectionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/privateConnections/{private_connection}'),
148
148
  projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
@@ -155,6 +155,7 @@ class DataMigrationServiceClient {
155
155
  listConnectionProfiles: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'connectionProfiles'),
156
156
  listPrivateConnections: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'privateConnections'),
157
157
  listConversionWorkspaces: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'conversionWorkspaces'),
158
+ listMappingRules: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'mappingRules'),
158
159
  describeDatabaseEntities: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'databaseEntities'),
159
160
  fetchStaticIps: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'staticIps'),
160
161
  };
@@ -166,7 +167,7 @@ class DataMigrationServiceClient {
166
167
  auth: this.auth,
167
168
  grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined,
168
169
  };
169
- if (opts.fallback === 'rest') {
170
+ if (opts.fallback) {
170
171
  lroOptions.protoJson = protoFilesRoot;
171
172
  lroOptions.httpRules = [
172
173
  {
@@ -369,6 +370,7 @@ class DataMigrationServiceClient {
369
370
  'verifyMigrationJob',
370
371
  'restartMigrationJob',
371
372
  'generateSshScript',
373
+ 'generateTcpProxyScript',
372
374
  'listConnectionProfiles',
373
375
  'getConnectionProfile',
374
376
  'createConnectionProfile',
@@ -383,6 +385,10 @@ class DataMigrationServiceClient {
383
385
  'createConversionWorkspace',
384
386
  'updateConversionWorkspace',
385
387
  'deleteConversionWorkspace',
388
+ 'createMappingRule',
389
+ 'deleteMappingRule',
390
+ 'listMappingRules',
391
+ 'getMappingRule',
386
392
  'seedConversionWorkspace',
387
393
  'importMappingRules',
388
394
  'convertConversionWorkspace',
@@ -495,6 +501,27 @@ class DataMigrationServiceClient {
495
501
  this.initialize();
496
502
  return this.innerApiCalls.generateSshScript(request, options, callback);
497
503
  }
504
+ generateTcpProxyScript(request, optionsOrCallback, callback) {
505
+ var _a;
506
+ request = request || {};
507
+ let options;
508
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
509
+ callback = optionsOrCallback;
510
+ options = {};
511
+ }
512
+ else {
513
+ options = optionsOrCallback;
514
+ }
515
+ options = options || {};
516
+ options.otherArgs = options.otherArgs || {};
517
+ options.otherArgs.headers = options.otherArgs.headers || {};
518
+ options.otherArgs.headers['x-goog-request-params'] =
519
+ this._gaxModule.routingHeader.fromParams({
520
+ migration_job: (_a = request.migrationJob) !== null && _a !== void 0 ? _a : '',
521
+ });
522
+ this.initialize();
523
+ return this.innerApiCalls.generateTcpProxyScript(request, options, callback);
524
+ }
498
525
  getConnectionProfile(request, optionsOrCallback, callback) {
499
526
  var _a;
500
527
  request = request || {};
@@ -558,6 +585,69 @@ class DataMigrationServiceClient {
558
585
  this.initialize();
559
586
  return this.innerApiCalls.getConversionWorkspace(request, options, callback);
560
587
  }
588
+ createMappingRule(request, optionsOrCallback, callback) {
589
+ var _a;
590
+ request = request || {};
591
+ let options;
592
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
593
+ callback = optionsOrCallback;
594
+ options = {};
595
+ }
596
+ else {
597
+ options = optionsOrCallback;
598
+ }
599
+ options = options || {};
600
+ options.otherArgs = options.otherArgs || {};
601
+ options.otherArgs.headers = options.otherArgs.headers || {};
602
+ options.otherArgs.headers['x-goog-request-params'] =
603
+ this._gaxModule.routingHeader.fromParams({
604
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
605
+ });
606
+ this.initialize();
607
+ return this.innerApiCalls.createMappingRule(request, options, callback);
608
+ }
609
+ deleteMappingRule(request, optionsOrCallback, callback) {
610
+ var _a;
611
+ request = request || {};
612
+ let options;
613
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
614
+ callback = optionsOrCallback;
615
+ options = {};
616
+ }
617
+ else {
618
+ options = optionsOrCallback;
619
+ }
620
+ options = options || {};
621
+ options.otherArgs = options.otherArgs || {};
622
+ options.otherArgs.headers = options.otherArgs.headers || {};
623
+ options.otherArgs.headers['x-goog-request-params'] =
624
+ this._gaxModule.routingHeader.fromParams({
625
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
626
+ });
627
+ this.initialize();
628
+ return this.innerApiCalls.deleteMappingRule(request, options, callback);
629
+ }
630
+ getMappingRule(request, optionsOrCallback, callback) {
631
+ var _a;
632
+ request = request || {};
633
+ let options;
634
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
635
+ callback = optionsOrCallback;
636
+ options = {};
637
+ }
638
+ else {
639
+ options = optionsOrCallback;
640
+ }
641
+ options = options || {};
642
+ options.otherArgs = options.otherArgs || {};
643
+ options.otherArgs.headers = options.otherArgs.headers || {};
644
+ options.otherArgs.headers['x-goog-request-params'] =
645
+ this._gaxModule.routingHeader.fromParams({
646
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
647
+ });
648
+ this.initialize();
649
+ return this.innerApiCalls.getMappingRule(request, options, callback);
650
+ }
561
651
  searchBackgroundJobs(request, optionsOrCallback, callback) {
562
652
  var _a;
563
653
  request = request || {};
@@ -627,8 +717,7 @@ class DataMigrationServiceClient {
627
717
  * The operation name that will be passed.
628
718
  * @returns {Promise} - The promise which resolves to an object.
629
719
  * The decoded operation object has result and metadata field to get information from.
630
- * Please see the
631
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
720
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
632
721
  * for more details and examples.
633
722
  * @example <caption>include:samples/generated/v1/data_migration_service.create_migration_job.js</caption>
634
723
  * region_tag:datamigration_v1_generated_DataMigrationService_CreateMigrationJob_async
@@ -666,8 +755,7 @@ class DataMigrationServiceClient {
666
755
  * The operation name that will be passed.
667
756
  * @returns {Promise} - The promise which resolves to an object.
668
757
  * The decoded operation object has result and metadata field to get information from.
669
- * Please see the
670
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
758
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
671
759
  * for more details and examples.
672
760
  * @example <caption>include:samples/generated/v1/data_migration_service.update_migration_job.js</caption>
673
761
  * region_tag:datamigration_v1_generated_DataMigrationService_UpdateMigrationJob_async
@@ -705,8 +793,7 @@ class DataMigrationServiceClient {
705
793
  * The operation name that will be passed.
706
794
  * @returns {Promise} - The promise which resolves to an object.
707
795
  * The decoded operation object has result and metadata field to get information from.
708
- * Please see the
709
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
796
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
710
797
  * for more details and examples.
711
798
  * @example <caption>include:samples/generated/v1/data_migration_service.delete_migration_job.js</caption>
712
799
  * region_tag:datamigration_v1_generated_DataMigrationService_DeleteMigrationJob_async
@@ -744,8 +831,7 @@ class DataMigrationServiceClient {
744
831
  * The operation name that will be passed.
745
832
  * @returns {Promise} - The promise which resolves to an object.
746
833
  * The decoded operation object has result and metadata field to get information from.
747
- * Please see the
748
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
834
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
749
835
  * for more details and examples.
750
836
  * @example <caption>include:samples/generated/v1/data_migration_service.start_migration_job.js</caption>
751
837
  * region_tag:datamigration_v1_generated_DataMigrationService_StartMigrationJob_async
@@ -783,8 +869,7 @@ class DataMigrationServiceClient {
783
869
  * The operation name that will be passed.
784
870
  * @returns {Promise} - The promise which resolves to an object.
785
871
  * The decoded operation object has result and metadata field to get information from.
786
- * Please see the
787
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
872
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
788
873
  * for more details and examples.
789
874
  * @example <caption>include:samples/generated/v1/data_migration_service.stop_migration_job.js</caption>
790
875
  * region_tag:datamigration_v1_generated_DataMigrationService_StopMigrationJob_async
@@ -822,8 +907,7 @@ class DataMigrationServiceClient {
822
907
  * The operation name that will be passed.
823
908
  * @returns {Promise} - The promise which resolves to an object.
824
909
  * The decoded operation object has result and metadata field to get information from.
825
- * Please see the
826
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
910
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
827
911
  * for more details and examples.
828
912
  * @example <caption>include:samples/generated/v1/data_migration_service.resume_migration_job.js</caption>
829
913
  * region_tag:datamigration_v1_generated_DataMigrationService_ResumeMigrationJob_async
@@ -861,8 +945,7 @@ class DataMigrationServiceClient {
861
945
  * The operation name that will be passed.
862
946
  * @returns {Promise} - The promise which resolves to an object.
863
947
  * The decoded operation object has result and metadata field to get information from.
864
- * Please see the
865
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
948
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
866
949
  * for more details and examples.
867
950
  * @example <caption>include:samples/generated/v1/data_migration_service.promote_migration_job.js</caption>
868
951
  * region_tag:datamigration_v1_generated_DataMigrationService_PromoteMigrationJob_async
@@ -900,8 +983,7 @@ class DataMigrationServiceClient {
900
983
  * The operation name that will be passed.
901
984
  * @returns {Promise} - The promise which resolves to an object.
902
985
  * The decoded operation object has result and metadata field to get information from.
903
- * Please see the
904
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
986
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
905
987
  * for more details and examples.
906
988
  * @example <caption>include:samples/generated/v1/data_migration_service.verify_migration_job.js</caption>
907
989
  * region_tag:datamigration_v1_generated_DataMigrationService_VerifyMigrationJob_async
@@ -939,8 +1021,7 @@ class DataMigrationServiceClient {
939
1021
  * The operation name that will be passed.
940
1022
  * @returns {Promise} - The promise which resolves to an object.
941
1023
  * The decoded operation object has result and metadata field to get information from.
942
- * Please see the
943
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
1024
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
944
1025
  * for more details and examples.
945
1026
  * @example <caption>include:samples/generated/v1/data_migration_service.restart_migration_job.js</caption>
946
1027
  * region_tag:datamigration_v1_generated_DataMigrationService_RestartMigrationJob_async
@@ -978,8 +1059,7 @@ class DataMigrationServiceClient {
978
1059
  * The operation name that will be passed.
979
1060
  * @returns {Promise} - The promise which resolves to an object.
980
1061
  * The decoded operation object has result and metadata field to get information from.
981
- * Please see the
982
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
1062
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
983
1063
  * for more details and examples.
984
1064
  * @example <caption>include:samples/generated/v1/data_migration_service.create_connection_profile.js</caption>
985
1065
  * region_tag:datamigration_v1_generated_DataMigrationService_CreateConnectionProfile_async
@@ -1017,8 +1097,7 @@ class DataMigrationServiceClient {
1017
1097
  * The operation name that will be passed.
1018
1098
  * @returns {Promise} - The promise which resolves to an object.
1019
1099
  * The decoded operation object has result and metadata field to get information from.
1020
- * Please see the
1021
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
1100
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
1022
1101
  * for more details and examples.
1023
1102
  * @example <caption>include:samples/generated/v1/data_migration_service.update_connection_profile.js</caption>
1024
1103
  * region_tag:datamigration_v1_generated_DataMigrationService_UpdateConnectionProfile_async
@@ -1056,8 +1135,7 @@ class DataMigrationServiceClient {
1056
1135
  * The operation name that will be passed.
1057
1136
  * @returns {Promise} - The promise which resolves to an object.
1058
1137
  * The decoded operation object has result and metadata field to get information from.
1059
- * Please see the
1060
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
1138
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
1061
1139
  * for more details and examples.
1062
1140
  * @example <caption>include:samples/generated/v1/data_migration_service.delete_connection_profile.js</caption>
1063
1141
  * region_tag:datamigration_v1_generated_DataMigrationService_DeleteConnectionProfile_async
@@ -1095,8 +1173,7 @@ class DataMigrationServiceClient {
1095
1173
  * The operation name that will be passed.
1096
1174
  * @returns {Promise} - The promise which resolves to an object.
1097
1175
  * The decoded operation object has result and metadata field to get information from.
1098
- * Please see the
1099
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
1176
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
1100
1177
  * for more details and examples.
1101
1178
  * @example <caption>include:samples/generated/v1/data_migration_service.create_private_connection.js</caption>
1102
1179
  * region_tag:datamigration_v1_generated_DataMigrationService_CreatePrivateConnection_async
@@ -1134,8 +1211,7 @@ class DataMigrationServiceClient {
1134
1211
  * The operation name that will be passed.
1135
1212
  * @returns {Promise} - The promise which resolves to an object.
1136
1213
  * The decoded operation object has result and metadata field to get information from.
1137
- * Please see the
1138
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
1214
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
1139
1215
  * for more details and examples.
1140
1216
  * @example <caption>include:samples/generated/v1/data_migration_service.delete_private_connection.js</caption>
1141
1217
  * region_tag:datamigration_v1_generated_DataMigrationService_DeletePrivateConnection_async
@@ -1173,8 +1249,7 @@ class DataMigrationServiceClient {
1173
1249
  * The operation name that will be passed.
1174
1250
  * @returns {Promise} - The promise which resolves to an object.
1175
1251
  * The decoded operation object has result and metadata field to get information from.
1176
- * Please see the
1177
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
1252
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
1178
1253
  * for more details and examples.
1179
1254
  * @example <caption>include:samples/generated/v1/data_migration_service.create_conversion_workspace.js</caption>
1180
1255
  * region_tag:datamigration_v1_generated_DataMigrationService_CreateConversionWorkspace_async
@@ -1212,8 +1287,7 @@ class DataMigrationServiceClient {
1212
1287
  * The operation name that will be passed.
1213
1288
  * @returns {Promise} - The promise which resolves to an object.
1214
1289
  * The decoded operation object has result and metadata field to get information from.
1215
- * Please see the
1216
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
1290
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
1217
1291
  * for more details and examples.
1218
1292
  * @example <caption>include:samples/generated/v1/data_migration_service.update_conversion_workspace.js</caption>
1219
1293
  * region_tag:datamigration_v1_generated_DataMigrationService_UpdateConversionWorkspace_async
@@ -1251,8 +1325,7 @@ class DataMigrationServiceClient {
1251
1325
  * The operation name that will be passed.
1252
1326
  * @returns {Promise} - The promise which resolves to an object.
1253
1327
  * The decoded operation object has result and metadata field to get information from.
1254
- * Please see the
1255
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
1328
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
1256
1329
  * for more details and examples.
1257
1330
  * @example <caption>include:samples/generated/v1/data_migration_service.delete_conversion_workspace.js</caption>
1258
1331
  * region_tag:datamigration_v1_generated_DataMigrationService_DeleteConversionWorkspace_async
@@ -1290,8 +1363,7 @@ class DataMigrationServiceClient {
1290
1363
  * The operation name that will be passed.
1291
1364
  * @returns {Promise} - The promise which resolves to an object.
1292
1365
  * The decoded operation object has result and metadata field to get information from.
1293
- * Please see the
1294
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
1366
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
1295
1367
  * for more details and examples.
1296
1368
  * @example <caption>include:samples/generated/v1/data_migration_service.seed_conversion_workspace.js</caption>
1297
1369
  * region_tag:datamigration_v1_generated_DataMigrationService_SeedConversionWorkspace_async
@@ -1329,8 +1401,7 @@ class DataMigrationServiceClient {
1329
1401
  * The operation name that will be passed.
1330
1402
  * @returns {Promise} - The promise which resolves to an object.
1331
1403
  * The decoded operation object has result and metadata field to get information from.
1332
- * Please see the
1333
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
1404
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
1334
1405
  * for more details and examples.
1335
1406
  * @example <caption>include:samples/generated/v1/data_migration_service.import_mapping_rules.js</caption>
1336
1407
  * region_tag:datamigration_v1_generated_DataMigrationService_ImportMappingRules_async
@@ -1368,8 +1439,7 @@ class DataMigrationServiceClient {
1368
1439
  * The operation name that will be passed.
1369
1440
  * @returns {Promise} - The promise which resolves to an object.
1370
1441
  * The decoded operation object has result and metadata field to get information from.
1371
- * Please see the
1372
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
1442
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
1373
1443
  * for more details and examples.
1374
1444
  * @example <caption>include:samples/generated/v1/data_migration_service.convert_conversion_workspace.js</caption>
1375
1445
  * region_tag:datamigration_v1_generated_DataMigrationService_ConvertConversionWorkspace_async
@@ -1407,8 +1477,7 @@ class DataMigrationServiceClient {
1407
1477
  * The operation name that will be passed.
1408
1478
  * @returns {Promise} - The promise which resolves to an object.
1409
1479
  * The decoded operation object has result and metadata field to get information from.
1410
- * Please see the
1411
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
1480
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
1412
1481
  * for more details and examples.
1413
1482
  * @example <caption>include:samples/generated/v1/data_migration_service.commit_conversion_workspace.js</caption>
1414
1483
  * region_tag:datamigration_v1_generated_DataMigrationService_CommitConversionWorkspace_async
@@ -1446,8 +1515,7 @@ class DataMigrationServiceClient {
1446
1515
  * The operation name that will be passed.
1447
1516
  * @returns {Promise} - The promise which resolves to an object.
1448
1517
  * The decoded operation object has result and metadata field to get information from.
1449
- * Please see the
1450
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
1518
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
1451
1519
  * for more details and examples.
1452
1520
  * @example <caption>include:samples/generated/v1/data_migration_service.rollback_conversion_workspace.js</caption>
1453
1521
  * region_tag:datamigration_v1_generated_DataMigrationService_RollbackConversionWorkspace_async
@@ -1485,8 +1553,7 @@ class DataMigrationServiceClient {
1485
1553
  * The operation name that will be passed.
1486
1554
  * @returns {Promise} - The promise which resolves to an object.
1487
1555
  * The decoded operation object has result and metadata field to get information from.
1488
- * Please see the
1489
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
1556
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
1490
1557
  * for more details and examples.
1491
1558
  * @example <caption>include:samples/generated/v1/data_migration_service.apply_conversion_workspace.js</caption>
1492
1559
  * region_tag:datamigration_v1_generated_DataMigrationService_ApplyConversionWorkspace_async
@@ -1551,13 +1618,12 @@ class DataMigrationServiceClient {
1551
1618
  * @param {object} [options]
1552
1619
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1553
1620
  * @returns {Stream}
1554
- * An object stream which emits an object representing {@link google.cloud.clouddms.v1.MigrationJob | MigrationJob} on 'data' event.
1621
+ * An object stream which emits an object representing {@link protos.google.cloud.clouddms.v1.MigrationJob|MigrationJob} on 'data' event.
1555
1622
  * The client library will perform auto-pagination by default: it will call the API as many
1556
1623
  * times as needed. Note that it can affect your quota.
1557
1624
  * We recommend using `listMigrationJobsAsync()`
1558
1625
  * method described below for async iteration which you can stop as needed.
1559
- * Please see the
1560
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
1626
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1561
1627
  * for more details and examples.
1562
1628
  */
1563
1629
  listMigrationJobsStream(request, options) {
@@ -1610,12 +1676,11 @@ class DataMigrationServiceClient {
1610
1676
  * @param {object} [options]
1611
1677
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1612
1678
  * @returns {Object}
1613
- * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
1679
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
1614
1680
  * When you iterate the returned iterable, each element will be an object representing
1615
- * {@link google.cloud.clouddms.v1.MigrationJob | MigrationJob}. The API will be called under the hood as needed, once per the page,
1681
+ * {@link protos.google.cloud.clouddms.v1.MigrationJob|MigrationJob}. The API will be called under the hood as needed, once per the page,
1616
1682
  * so you can stop the iteration when you don't need more results.
1617
- * Please see the
1618
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
1683
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1619
1684
  * for more details and examples.
1620
1685
  * @example <caption>include:samples/generated/v1/data_migration_service.list_migration_jobs.js</caption>
1621
1686
  * region_tag:datamigration_v1_generated_DataMigrationService_ListMigrationJobs_async
@@ -1688,13 +1753,12 @@ class DataMigrationServiceClient {
1688
1753
  * @param {object} [options]
1689
1754
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1690
1755
  * @returns {Stream}
1691
- * An object stream which emits an object representing {@link google.cloud.clouddms.v1.ConnectionProfile | ConnectionProfile} on 'data' event.
1756
+ * An object stream which emits an object representing {@link protos.google.cloud.clouddms.v1.ConnectionProfile|ConnectionProfile} on 'data' event.
1692
1757
  * The client library will perform auto-pagination by default: it will call the API as many
1693
1758
  * times as needed. Note that it can affect your quota.
1694
1759
  * We recommend using `listConnectionProfilesAsync()`
1695
1760
  * method described below for async iteration which you can stop as needed.
1696
- * Please see the
1697
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
1761
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1698
1762
  * for more details and examples.
1699
1763
  */
1700
1764
  listConnectionProfilesStream(request, options) {
@@ -1746,12 +1810,11 @@ class DataMigrationServiceClient {
1746
1810
  * @param {object} [options]
1747
1811
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1748
1812
  * @returns {Object}
1749
- * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
1813
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
1750
1814
  * When you iterate the returned iterable, each element will be an object representing
1751
- * {@link google.cloud.clouddms.v1.ConnectionProfile | ConnectionProfile}. The API will be called under the hood as needed, once per the page,
1815
+ * {@link protos.google.cloud.clouddms.v1.ConnectionProfile|ConnectionProfile}. The API will be called under the hood as needed, once per the page,
1752
1816
  * so you can stop the iteration when you don't need more results.
1753
- * Please see the
1754
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
1817
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1755
1818
  * for more details and examples.
1756
1819
  * @example <caption>include:samples/generated/v1/data_migration_service.list_connection_profiles.js</caption>
1757
1820
  * region_tag:datamigration_v1_generated_DataMigrationService_ListConnectionProfiles_async
@@ -1821,13 +1884,12 @@ class DataMigrationServiceClient {
1821
1884
  * @param {object} [options]
1822
1885
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1823
1886
  * @returns {Stream}
1824
- * An object stream which emits an object representing {@link google.cloud.clouddms.v1.PrivateConnection | PrivateConnection} on 'data' event.
1887
+ * An object stream which emits an object representing {@link protos.google.cloud.clouddms.v1.PrivateConnection|PrivateConnection} on 'data' event.
1825
1888
  * The client library will perform auto-pagination by default: it will call the API as many
1826
1889
  * times as needed. Note that it can affect your quota.
1827
1890
  * We recommend using `listPrivateConnectionsAsync()`
1828
1891
  * method described below for async iteration which you can stop as needed.
1829
- * Please see the
1830
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
1892
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1831
1893
  * for more details and examples.
1832
1894
  */
1833
1895
  listPrivateConnectionsStream(request, options) {
@@ -1876,12 +1938,11 @@ class DataMigrationServiceClient {
1876
1938
  * @param {object} [options]
1877
1939
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1878
1940
  * @returns {Object}
1879
- * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
1941
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
1880
1942
  * When you iterate the returned iterable, each element will be an object representing
1881
- * {@link google.cloud.clouddms.v1.PrivateConnection | PrivateConnection}. The API will be called under the hood as needed, once per the page,
1943
+ * {@link protos.google.cloud.clouddms.v1.PrivateConnection|PrivateConnection}. The API will be called under the hood as needed, once per the page,
1882
1944
  * so you can stop the iteration when you don't need more results.
1883
- * Please see the
1884
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
1945
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1885
1946
  * for more details and examples.
1886
1947
  * @example <caption>include:samples/generated/v1/data_migration_service.list_private_connections.js</caption>
1887
1948
  * region_tag:datamigration_v1_generated_DataMigrationService_ListPrivateConnections_async
@@ -1950,13 +2011,12 @@ class DataMigrationServiceClient {
1950
2011
  * @param {object} [options]
1951
2012
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1952
2013
  * @returns {Stream}
1953
- * An object stream which emits an object representing {@link google.cloud.clouddms.v1.ConversionWorkspace | ConversionWorkspace} on 'data' event.
2014
+ * An object stream which emits an object representing {@link protos.google.cloud.clouddms.v1.ConversionWorkspace|ConversionWorkspace} on 'data' event.
1954
2015
  * The client library will perform auto-pagination by default: it will call the API as many
1955
2016
  * times as needed. Note that it can affect your quota.
1956
2017
  * We recommend using `listConversionWorkspacesAsync()`
1957
2018
  * method described below for async iteration which you can stop as needed.
1958
- * Please see the
1959
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
2019
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1960
2020
  * for more details and examples.
1961
2021
  */
1962
2022
  listConversionWorkspacesStream(request, options) {
@@ -2004,12 +2064,11 @@ class DataMigrationServiceClient {
2004
2064
  * @param {object} [options]
2005
2065
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2006
2066
  * @returns {Object}
2007
- * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
2067
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
2008
2068
  * When you iterate the returned iterable, each element will be an object representing
2009
- * {@link google.cloud.clouddms.v1.ConversionWorkspace | ConversionWorkspace}. The API will be called under the hood as needed, once per the page,
2069
+ * {@link protos.google.cloud.clouddms.v1.ConversionWorkspace|ConversionWorkspace}. The API will be called under the hood as needed, once per the page,
2010
2070
  * so you can stop the iteration when you don't need more results.
2011
- * Please see the
2012
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
2071
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
2013
2072
  * for more details and examples.
2014
2073
  * @example <caption>include:samples/generated/v1/data_migration_service.list_conversion_workspaces.js</caption>
2015
2074
  * region_tag:datamigration_v1_generated_DataMigrationService_ListConversionWorkspaces_async
@@ -2029,6 +2088,116 @@ class DataMigrationServiceClient {
2029
2088
  this.initialize();
2030
2089
  return this.descriptors.page.listConversionWorkspaces.asyncIterate(this.innerApiCalls['listConversionWorkspaces'], request, callSettings);
2031
2090
  }
2091
+ listMappingRules(request, optionsOrCallback, callback) {
2092
+ var _a;
2093
+ request = request || {};
2094
+ let options;
2095
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
2096
+ callback = optionsOrCallback;
2097
+ options = {};
2098
+ }
2099
+ else {
2100
+ options = optionsOrCallback;
2101
+ }
2102
+ options = options || {};
2103
+ options.otherArgs = options.otherArgs || {};
2104
+ options.otherArgs.headers = options.otherArgs.headers || {};
2105
+ options.otherArgs.headers['x-goog-request-params'] =
2106
+ this._gaxModule.routingHeader.fromParams({
2107
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
2108
+ });
2109
+ this.initialize();
2110
+ return this.innerApiCalls.listMappingRules(request, options, callback);
2111
+ }
2112
+ /**
2113
+ * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
2114
+ * @param {Object} request
2115
+ * The request object that will be sent.
2116
+ * @param {string} request.parent
2117
+ * Required. Name of the conversion workspace resource whose mapping rules are
2118
+ * listed in the form of:
2119
+ * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
2120
+ * @param {number} request.pageSize
2121
+ * The maximum number of rules to return. The service may return
2122
+ * fewer than this value.
2123
+ * @param {string} request.pageToken
2124
+ * The nextPageToken value received in the previous call to
2125
+ * mappingRules.list, used in the subsequent request to retrieve the next
2126
+ * page of results. On first call this should be left blank. When paginating,
2127
+ * all other parameters provided to mappingRules.list must match the call
2128
+ * that provided the page token.
2129
+ * @param {object} [options]
2130
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2131
+ * @returns {Stream}
2132
+ * An object stream which emits an object representing {@link protos.google.cloud.clouddms.v1.MappingRule|MappingRule} on 'data' event.
2133
+ * The client library will perform auto-pagination by default: it will call the API as many
2134
+ * times as needed. Note that it can affect your quota.
2135
+ * We recommend using `listMappingRulesAsync()`
2136
+ * method described below for async iteration which you can stop as needed.
2137
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
2138
+ * for more details and examples.
2139
+ */
2140
+ listMappingRulesStream(request, options) {
2141
+ var _a;
2142
+ request = request || {};
2143
+ options = options || {};
2144
+ options.otherArgs = options.otherArgs || {};
2145
+ options.otherArgs.headers = options.otherArgs.headers || {};
2146
+ options.otherArgs.headers['x-goog-request-params'] =
2147
+ this._gaxModule.routingHeader.fromParams({
2148
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
2149
+ });
2150
+ const defaultCallSettings = this._defaults['listMappingRules'];
2151
+ const callSettings = defaultCallSettings.merge(options);
2152
+ this.initialize();
2153
+ return this.descriptors.page.listMappingRules.createStream(this.innerApiCalls.listMappingRules, request, callSettings);
2154
+ }
2155
+ /**
2156
+ * Equivalent to `listMappingRules`, but returns an iterable object.
2157
+ *
2158
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
2159
+ * @param {Object} request
2160
+ * The request object that will be sent.
2161
+ * @param {string} request.parent
2162
+ * Required. Name of the conversion workspace resource whose mapping rules are
2163
+ * listed in the form of:
2164
+ * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
2165
+ * @param {number} request.pageSize
2166
+ * The maximum number of rules to return. The service may return
2167
+ * fewer than this value.
2168
+ * @param {string} request.pageToken
2169
+ * The nextPageToken value received in the previous call to
2170
+ * mappingRules.list, used in the subsequent request to retrieve the next
2171
+ * page of results. On first call this should be left blank. When paginating,
2172
+ * all other parameters provided to mappingRules.list must match the call
2173
+ * that provided the page token.
2174
+ * @param {object} [options]
2175
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2176
+ * @returns {Object}
2177
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
2178
+ * When you iterate the returned iterable, each element will be an object representing
2179
+ * {@link protos.google.cloud.clouddms.v1.MappingRule|MappingRule}. The API will be called under the hood as needed, once per the page,
2180
+ * so you can stop the iteration when you don't need more results.
2181
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
2182
+ * for more details and examples.
2183
+ * @example <caption>include:samples/generated/v1/data_migration_service.list_mapping_rules.js</caption>
2184
+ * region_tag:datamigration_v1_generated_DataMigrationService_ListMappingRules_async
2185
+ */
2186
+ listMappingRulesAsync(request, options) {
2187
+ var _a;
2188
+ request = request || {};
2189
+ options = options || {};
2190
+ options.otherArgs = options.otherArgs || {};
2191
+ options.otherArgs.headers = options.otherArgs.headers || {};
2192
+ options.otherArgs.headers['x-goog-request-params'] =
2193
+ this._gaxModule.routingHeader.fromParams({
2194
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
2195
+ });
2196
+ const defaultCallSettings = this._defaults['listMappingRules'];
2197
+ const callSettings = defaultCallSettings.merge(options);
2198
+ this.initialize();
2199
+ return this.descriptors.page.listMappingRules.asyncIterate(this.innerApiCalls['listMappingRules'], request, callSettings);
2200
+ }
2032
2201
  describeDatabaseEntities(request, optionsOrCallback, callback) {
2033
2202
  var _a;
2034
2203
  request = request || {};
@@ -2058,36 +2227,38 @@ class DataMigrationServiceClient {
2058
2227
  * Required. Name of the conversion workspace resource whose database entities
2059
2228
  * are described. Must be in the form of:
2060
2229
  * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
2061
- * @param {number} request.pageSize
2062
- * The maximum number of entities to return. The service may return
2230
+ * @param {number} [request.pageSize]
2231
+ * Optional. The maximum number of entities to return. The service may return
2063
2232
  * fewer entities than the value specifies.
2064
- * @param {string} request.pageToken
2065
- * The nextPageToken value received in the previous call to
2233
+ * @param {string} [request.pageToken]
2234
+ * Optional. The nextPageToken value received in the previous call to
2066
2235
  * conversionWorkspace.describeDatabaseEntities, used in the subsequent
2067
2236
  * request to retrieve the next page of results. On first call this should be
2068
2237
  * left blank. When paginating, all other parameters provided to
2069
2238
  * conversionWorkspace.describeDatabaseEntities must match the call that
2070
2239
  * provided the page token.
2071
2240
  * @param {google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType} request.tree
2072
- * The tree to fetch.
2073
- * @param {boolean} request.uncommitted
2074
- * Whether to retrieve the latest committed version of the entities or the
2075
- * latest version. This field is ignored if a specific commit_id is specified.
2076
- * @param {string} request.commitId
2077
- * Request a specific commit ID. If not specified, the entities from the
2078
- * latest commit are returned.
2079
- * @param {string} request.filter
2080
- * Filter the returned entities based on AIP-160 standard.
2241
+ * Required. The tree to fetch.
2242
+ * @param {boolean} [request.uncommitted]
2243
+ * Optional. Whether to retrieve the latest committed version of the entities
2244
+ * or the latest version. This field is ignored if a specific commit_id is
2245
+ * specified.
2246
+ * @param {string} [request.commitId]
2247
+ * Optional. Request a specific commit ID. If not specified, the entities from
2248
+ * the latest commit are returned.
2249
+ * @param {string} [request.filter]
2250
+ * Optional. Filter the returned entities based on AIP-160 standard.
2251
+ * @param {google.cloud.clouddms.v1.DatabaseEntityView} [request.view]
2252
+ * Optional. Results view based on AIP-157
2081
2253
  * @param {object} [options]
2082
2254
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2083
2255
  * @returns {Stream}
2084
- * An object stream which emits an object representing {@link google.cloud.clouddms.v1.DatabaseEntity | DatabaseEntity} on 'data' event.
2256
+ * An object stream which emits an object representing {@link protos.google.cloud.clouddms.v1.DatabaseEntity|DatabaseEntity} on 'data' event.
2085
2257
  * The client library will perform auto-pagination by default: it will call the API as many
2086
2258
  * times as needed. Note that it can affect your quota.
2087
2259
  * We recommend using `describeDatabaseEntitiesAsync()`
2088
2260
  * method described below for async iteration which you can stop as needed.
2089
- * Please see the
2090
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
2261
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
2091
2262
  * for more details and examples.
2092
2263
  */
2093
2264
  describeDatabaseEntitiesStream(request, options) {
@@ -2115,35 +2286,37 @@ class DataMigrationServiceClient {
2115
2286
  * Required. Name of the conversion workspace resource whose database entities
2116
2287
  * are described. Must be in the form of:
2117
2288
  * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
2118
- * @param {number} request.pageSize
2119
- * The maximum number of entities to return. The service may return
2289
+ * @param {number} [request.pageSize]
2290
+ * Optional. The maximum number of entities to return. The service may return
2120
2291
  * fewer entities than the value specifies.
2121
- * @param {string} request.pageToken
2122
- * The nextPageToken value received in the previous call to
2292
+ * @param {string} [request.pageToken]
2293
+ * Optional. The nextPageToken value received in the previous call to
2123
2294
  * conversionWorkspace.describeDatabaseEntities, used in the subsequent
2124
2295
  * request to retrieve the next page of results. On first call this should be
2125
2296
  * left blank. When paginating, all other parameters provided to
2126
2297
  * conversionWorkspace.describeDatabaseEntities must match the call that
2127
2298
  * provided the page token.
2128
2299
  * @param {google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType} request.tree
2129
- * The tree to fetch.
2130
- * @param {boolean} request.uncommitted
2131
- * Whether to retrieve the latest committed version of the entities or the
2132
- * latest version. This field is ignored if a specific commit_id is specified.
2133
- * @param {string} request.commitId
2134
- * Request a specific commit ID. If not specified, the entities from the
2135
- * latest commit are returned.
2136
- * @param {string} request.filter
2137
- * Filter the returned entities based on AIP-160 standard.
2300
+ * Required. The tree to fetch.
2301
+ * @param {boolean} [request.uncommitted]
2302
+ * Optional. Whether to retrieve the latest committed version of the entities
2303
+ * or the latest version. This field is ignored if a specific commit_id is
2304
+ * specified.
2305
+ * @param {string} [request.commitId]
2306
+ * Optional. Request a specific commit ID. If not specified, the entities from
2307
+ * the latest commit are returned.
2308
+ * @param {string} [request.filter]
2309
+ * Optional. Filter the returned entities based on AIP-160 standard.
2310
+ * @param {google.cloud.clouddms.v1.DatabaseEntityView} [request.view]
2311
+ * Optional. Results view based on AIP-157
2138
2312
  * @param {object} [options]
2139
2313
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2140
2314
  * @returns {Object}
2141
- * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
2315
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
2142
2316
  * When you iterate the returned iterable, each element will be an object representing
2143
- * {@link google.cloud.clouddms.v1.DatabaseEntity | DatabaseEntity}. The API will be called under the hood as needed, once per the page,
2317
+ * {@link protos.google.cloud.clouddms.v1.DatabaseEntity|DatabaseEntity}. The API will be called under the hood as needed, once per the page,
2144
2318
  * so you can stop the iteration when you don't need more results.
2145
- * Please see the
2146
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
2319
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
2147
2320
  * for more details and examples.
2148
2321
  * @example <caption>include:samples/generated/v1/data_migration_service.describe_database_entities.js</caption>
2149
2322
  * region_tag:datamigration_v1_generated_DataMigrationService_DescribeDatabaseEntities_async
@@ -2203,8 +2376,7 @@ class DataMigrationServiceClient {
2203
2376
  * times as needed. Note that it can affect your quota.
2204
2377
  * We recommend using `fetchStaticIpsAsync()`
2205
2378
  * method described below for async iteration which you can stop as needed.
2206
- * Please see the
2207
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
2379
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
2208
2380
  * for more details and examples.
2209
2381
  */
2210
2382
  fetchStaticIpsStream(request, options) {
@@ -2238,12 +2410,11 @@ class DataMigrationServiceClient {
2238
2410
  * @param {object} [options]
2239
2411
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2240
2412
  * @returns {Object}
2241
- * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
2413
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
2242
2414
  * When you iterate the returned iterable, each element will be an object representing
2243
2415
  * string. The API will be called under the hood as needed, once per the page,
2244
2416
  * so you can stop the iteration when you don't need more results.
2245
- * Please see the
2246
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
2417
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
2247
2418
  * for more details and examples.
2248
2419
  * @example <caption>include:samples/generated/v1/data_migration_service.fetch_static_ips.js</caption>
2249
2420
  * region_tag:datamigration_v1_generated_DataMigrationService_FetchStaticIps_async
@@ -2308,8 +2479,7 @@ class DataMigrationServiceClient {
2308
2479
  * @param {string[]} request.permissions
2309
2480
  * The set of permissions to check for the `resource`. Permissions with
2310
2481
  * wildcards (such as '*' or 'storage.*') are not allowed. For more
2311
- * information see
2312
- * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
2482
+ * information see {@link https://cloud.google.com/iam/docs/overview#permissions | IAM Overview }.
2313
2483
  * @param {Object} [options]
2314
2484
  * Optional parameters. You can override the default settings for this call, e.g, timeout,
2315
2485
  * retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details.
@@ -2341,8 +2511,7 @@ class DataMigrationServiceClient {
2341
2511
  * @param {string[]} request.permissions
2342
2512
  * The set of permissions to check for the `resource`. Permissions with
2343
2513
  * wildcards (such as '*' or 'storage.*') are not allowed. For more
2344
- * information see
2345
- * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
2514
+ * information see {@link https://cloud.google.com/iam/docs/overview#permissions | IAM Overview }.
2346
2515
  * @param {Object} [options]
2347
2516
  * Optional parameters. You can override the default settings for this call, e.g, timeout,
2348
2517
  * retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details.
@@ -2369,8 +2538,7 @@ class DataMigrationServiceClient {
2369
2538
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
2370
2539
  * @returns {Promise} - The promise which resolves to an array.
2371
2540
  * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
2372
- * Please see the
2373
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
2541
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
2374
2542
  * for more details and examples.
2375
2543
  * @example
2376
2544
  * ```
@@ -2397,12 +2565,11 @@ class DataMigrationServiceClient {
2397
2565
  * @param {object} [options]
2398
2566
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2399
2567
  * @returns {Object}
2400
- * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
2568
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
2401
2569
  * When you iterate the returned iterable, each element will be an object representing
2402
2570
  * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
2403
2571
  * so you can stop the iteration when you don't need more results.
2404
- * Please see the
2405
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
2572
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
2406
2573
  * for more details and examples.
2407
2574
  * @example
2408
2575
  * ```
@@ -2669,6 +2836,67 @@ class DataMigrationServiceClient {
2669
2836
  matchLocationFromLocationName(locationName) {
2670
2837
  return this.pathTemplates.locationPathTemplate.match(locationName).location;
2671
2838
  }
2839
+ /**
2840
+ * Return a fully-qualified mappingRule resource name string.
2841
+ *
2842
+ * @param {string} project
2843
+ * @param {string} location
2844
+ * @param {string} conversion_workspace
2845
+ * @param {string} mapping_rule
2846
+ * @returns {string} Resource name string.
2847
+ */
2848
+ mappingRulePath(project, location, conversionWorkspace, mappingRule) {
2849
+ return this.pathTemplates.mappingRulePathTemplate.render({
2850
+ project: project,
2851
+ location: location,
2852
+ conversion_workspace: conversionWorkspace,
2853
+ mapping_rule: mappingRule,
2854
+ });
2855
+ }
2856
+ /**
2857
+ * Parse the project from MappingRule resource.
2858
+ *
2859
+ * @param {string} mappingRuleName
2860
+ * A fully-qualified path representing MappingRule resource.
2861
+ * @returns {string} A string representing the project.
2862
+ */
2863
+ matchProjectFromMappingRuleName(mappingRuleName) {
2864
+ return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName)
2865
+ .project;
2866
+ }
2867
+ /**
2868
+ * Parse the location from MappingRule resource.
2869
+ *
2870
+ * @param {string} mappingRuleName
2871
+ * A fully-qualified path representing MappingRule resource.
2872
+ * @returns {string} A string representing the location.
2873
+ */
2874
+ matchLocationFromMappingRuleName(mappingRuleName) {
2875
+ return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName)
2876
+ .location;
2877
+ }
2878
+ /**
2879
+ * Parse the conversion_workspace from MappingRule resource.
2880
+ *
2881
+ * @param {string} mappingRuleName
2882
+ * A fully-qualified path representing MappingRule resource.
2883
+ * @returns {string} A string representing the conversion_workspace.
2884
+ */
2885
+ matchConversionWorkspaceFromMappingRuleName(mappingRuleName) {
2886
+ return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName)
2887
+ .conversion_workspace;
2888
+ }
2889
+ /**
2890
+ * Parse the mapping_rule from MappingRule resource.
2891
+ *
2892
+ * @param {string} mappingRuleName
2893
+ * A fully-qualified path representing MappingRule resource.
2894
+ * @returns {string} A string representing the mapping_rule.
2895
+ */
2896
+ matchMappingRuleFromMappingRuleName(mappingRuleName) {
2897
+ return this.pathTemplates.mappingRulePathTemplate.match(mappingRuleName)
2898
+ .mapping_rule;
2899
+ }
2672
2900
  /**
2673
2901
  * Return a fully-qualified migrationJob resource name string.
2674
2902
  *