@google-cloud/dms 3.0.0 → 3.2.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.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2023 Google LLC
2
+ // Copyright 2024 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
@@ -16,6 +16,8 @@ export declare class DataMigrationServiceClient {
16
16
  private _gaxGrpc;
17
17
  private _protos;
18
18
  private _defaults;
19
+ private _universeDomain;
20
+ private _servicePath;
19
21
  auth: gax.GoogleAuth;
20
22
  descriptors: Descriptors;
21
23
  warn: (code: string, message: string, warnType?: string) => void;
@@ -59,8 +61,7 @@ export declare class DataMigrationServiceClient {
59
61
  * API remote host.
60
62
  * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
61
63
  * Follows the structure of {@link gapicConfig}.
62
- * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
63
- * Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
64
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
64
65
  * For more information, please check the
65
66
  * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
66
67
  * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
@@ -68,7 +69,7 @@ export declare class DataMigrationServiceClient {
68
69
  * HTTP implementation. Load only fallback version and pass it to the constructor:
69
70
  * ```
70
71
  * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
71
- * const client = new DataMigrationServiceClient({fallback: 'rest'}, gax);
72
+ * const client = new DataMigrationServiceClient({fallback: true}, gax);
72
73
  * ```
73
74
  */
74
75
  constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);
@@ -88,15 +89,22 @@ export declare class DataMigrationServiceClient {
88
89
  }>;
89
90
  /**
90
91
  * The DNS address for this API service.
92
+ * @deprecated Use the apiEndpoint method of the client instance.
91
93
  * @returns {string} The DNS address for this service.
92
94
  */
93
95
  static get servicePath(): string;
94
96
  /**
95
- * The DNS address for this API service - same as servicePath(),
96
- * exists for compatibility reasons.
97
+ * The DNS address for this API service - same as servicePath.
98
+ * @deprecated Use the apiEndpoint method of the client instance.
97
99
  * @returns {string} The DNS address for this service.
98
100
  */
99
101
  static get apiEndpoint(): string;
102
+ /**
103
+ * The DNS address for this API service.
104
+ * @returns {string} The DNS address for this service.
105
+ */
106
+ get apiEndpoint(): string;
107
+ get universeDomain(): string;
100
108
  /**
101
109
  * The port for this API service.
102
110
  * @returns {number} The default port for this service.
@@ -165,6 +173,44 @@ export declare class DataMigrationServiceClient {
165
173
  ]>;
166
174
  generateSshScript(request: protos.google.cloud.clouddms.v1.IGenerateSshScriptRequest, options: CallOptions, callback: Callback<protos.google.cloud.clouddms.v1.ISshScript, protos.google.cloud.clouddms.v1.IGenerateSshScriptRequest | null | undefined, {} | null | undefined>): void;
167
175
  generateSshScript(request: protos.google.cloud.clouddms.v1.IGenerateSshScriptRequest, callback: Callback<protos.google.cloud.clouddms.v1.ISshScript, protos.google.cloud.clouddms.v1.IGenerateSshScriptRequest | null | undefined, {} | null | undefined>): void;
176
+ /**
177
+ * Generate a TCP Proxy configuration script to configure a cloud-hosted VM
178
+ * running a TCP Proxy.
179
+ *
180
+ * @param {Object} request
181
+ * The request object that will be sent.
182
+ * @param {string} request.migrationJob
183
+ * Name of the migration job resource to generate the TCP Proxy script.
184
+ * @param {string} request.vmName
185
+ * Required. The name of the Compute instance that will host the proxy.
186
+ * @param {string} request.vmMachineType
187
+ * Required. The type of the Compute instance that will host the proxy.
188
+ * @param {string} [request.vmZone]
189
+ * Optional. The Google Cloud Platform zone to create the VM in. The fully
190
+ * qualified name of the zone must be specified, including the region name,
191
+ * for example "us-central1-b". If not specified, uses the "-b" zone of the
192
+ * destination Connection Profile's region.
193
+ * @param {string} request.vmSubnet
194
+ * Required. The name of the subnet the Compute instance will use for private
195
+ * connectivity. Must be supplied in the form of
196
+ * projects/{project}/regions/{region}/subnetworks/{subnetwork}.
197
+ * Note: the region for the subnet must match the Compute instance region.
198
+ * @param {object} [options]
199
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
200
+ * @returns {Promise} - The promise which resolves to an array.
201
+ * The first element of the array is an object representing {@link protos.google.cloud.clouddms.v1.TcpProxyScript|TcpProxyScript}.
202
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
203
+ * for more details and examples.
204
+ * @example <caption>include:samples/generated/v1/data_migration_service.generate_tcp_proxy_script.js</caption>
205
+ * region_tag:datamigration_v1_generated_DataMigrationService_GenerateTcpProxyScript_async
206
+ */
207
+ generateTcpProxyScript(request?: protos.google.cloud.clouddms.v1.IGenerateTcpProxyScriptRequest, options?: CallOptions): Promise<[
208
+ protos.google.cloud.clouddms.v1.ITcpProxyScript,
209
+ (protos.google.cloud.clouddms.v1.IGenerateTcpProxyScriptRequest | undefined),
210
+ {} | undefined
211
+ ]>;
212
+ generateTcpProxyScript(request: protos.google.cloud.clouddms.v1.IGenerateTcpProxyScriptRequest, options: CallOptions, callback: Callback<protos.google.cloud.clouddms.v1.ITcpProxyScript, protos.google.cloud.clouddms.v1.IGenerateTcpProxyScriptRequest | null | undefined, {} | null | undefined>): void;
213
+ generateTcpProxyScript(request: protos.google.cloud.clouddms.v1.IGenerateTcpProxyScriptRequest, callback: Callback<protos.google.cloud.clouddms.v1.ITcpProxyScript, protos.google.cloud.clouddms.v1.IGenerateTcpProxyScriptRequest | null | undefined, {} | null | undefined>): void;
168
214
  /**
169
215
  * Gets details of a single connection profile.
170
216
  *
@@ -234,6 +280,103 @@ export declare class DataMigrationServiceClient {
234
280
  ]>;
235
281
  getConversionWorkspace(request: protos.google.cloud.clouddms.v1.IGetConversionWorkspaceRequest, options: CallOptions, callback: Callback<protos.google.cloud.clouddms.v1.IConversionWorkspace, protos.google.cloud.clouddms.v1.IGetConversionWorkspaceRequest | null | undefined, {} | null | undefined>): void;
236
282
  getConversionWorkspace(request: protos.google.cloud.clouddms.v1.IGetConversionWorkspaceRequest, callback: Callback<protos.google.cloud.clouddms.v1.IConversionWorkspace, protos.google.cloud.clouddms.v1.IGetConversionWorkspaceRequest | null | undefined, {} | null | undefined>): void;
283
+ /**
284
+ * Creates a new mapping rule for a given conversion workspace.
285
+ *
286
+ * @param {Object} request
287
+ * The request object that will be sent.
288
+ * @param {string} request.parent
289
+ * Required. The parent which owns this collection of mapping rules.
290
+ * @param {string} request.mappingRuleId
291
+ * Required. The ID of the rule to create.
292
+ * @param {google.cloud.clouddms.v1.MappingRule} request.mappingRule
293
+ * Required. Represents a [mapping rule]
294
+ * (https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules)
295
+ * object.
296
+ * @param {string} request.requestId
297
+ * A unique ID used to identify the request. If the server receives two
298
+ * requests with the same ID, then the second request is ignored.
299
+ *
300
+ * It is recommended to always set this value to a UUID.
301
+ *
302
+ * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
303
+ * (_), and hyphens (-). The maximum length is 40 characters.
304
+ * @param {object} [options]
305
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
306
+ * @returns {Promise} - The promise which resolves to an array.
307
+ * The first element of the array is an object representing {@link protos.google.cloud.clouddms.v1.MappingRule|MappingRule}.
308
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
309
+ * for more details and examples.
310
+ * @example <caption>include:samples/generated/v1/data_migration_service.create_mapping_rule.js</caption>
311
+ * region_tag:datamigration_v1_generated_DataMigrationService_CreateMappingRule_async
312
+ */
313
+ createMappingRule(request?: protos.google.cloud.clouddms.v1.ICreateMappingRuleRequest, options?: CallOptions): Promise<[
314
+ protos.google.cloud.clouddms.v1.IMappingRule,
315
+ protos.google.cloud.clouddms.v1.ICreateMappingRuleRequest | undefined,
316
+ {} | undefined
317
+ ]>;
318
+ createMappingRule(request: protos.google.cloud.clouddms.v1.ICreateMappingRuleRequest, options: CallOptions, callback: Callback<protos.google.cloud.clouddms.v1.IMappingRule, protos.google.cloud.clouddms.v1.ICreateMappingRuleRequest | null | undefined, {} | null | undefined>): void;
319
+ createMappingRule(request: protos.google.cloud.clouddms.v1.ICreateMappingRuleRequest, callback: Callback<protos.google.cloud.clouddms.v1.IMappingRule, protos.google.cloud.clouddms.v1.ICreateMappingRuleRequest | null | undefined, {} | null | undefined>): void;
320
+ /**
321
+ * Deletes a single mapping rule.
322
+ *
323
+ * @param {Object} request
324
+ * The request object that will be sent.
325
+ * @param {string} request.name
326
+ * Required. Name of the mapping rule resource to delete.
327
+ * @param {string} [request.requestId]
328
+ * Optional. A unique ID used to identify the request. If the server receives
329
+ * two requests with the same ID, then the second request is ignored.
330
+ *
331
+ * It is recommended to always set this value to a UUID.
332
+ *
333
+ * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
334
+ * (_), and hyphens (-). The maximum length is 40 characters.
335
+ * @param {object} [options]
336
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
337
+ * @returns {Promise} - The promise which resolves to an array.
338
+ * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}.
339
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
340
+ * for more details and examples.
341
+ * @example <caption>include:samples/generated/v1/data_migration_service.delete_mapping_rule.js</caption>
342
+ * region_tag:datamigration_v1_generated_DataMigrationService_DeleteMappingRule_async
343
+ */
344
+ deleteMappingRule(request?: protos.google.cloud.clouddms.v1.IDeleteMappingRuleRequest, options?: CallOptions): Promise<[
345
+ protos.google.protobuf.IEmpty,
346
+ protos.google.cloud.clouddms.v1.IDeleteMappingRuleRequest | undefined,
347
+ {} | undefined
348
+ ]>;
349
+ deleteMappingRule(request: protos.google.cloud.clouddms.v1.IDeleteMappingRuleRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.clouddms.v1.IDeleteMappingRuleRequest | null | undefined, {} | null | undefined>): void;
350
+ deleteMappingRule(request: protos.google.cloud.clouddms.v1.IDeleteMappingRuleRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.clouddms.v1.IDeleteMappingRuleRequest | null | undefined, {} | null | undefined>): void;
351
+ /**
352
+ * Gets the details of a mapping rule.
353
+ *
354
+ * @param {Object} request
355
+ * The request object that will be sent.
356
+ * @param {string} request.name
357
+ * Required. Name of the mapping rule resource to get.
358
+ * Example: conversionWorkspaces/123/mappingRules/rule123
359
+ *
360
+ * In order to retrieve a previous revision of the mapping rule, also provide
361
+ * the revision ID.
362
+ * Example:
363
+ * conversionWorkspace/123/mappingRules/rule123@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8
364
+ * @param {object} [options]
365
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
366
+ * @returns {Promise} - The promise which resolves to an array.
367
+ * The first element of the array is an object representing {@link protos.google.cloud.clouddms.v1.MappingRule|MappingRule}.
368
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
369
+ * for more details and examples.
370
+ * @example <caption>include:samples/generated/v1/data_migration_service.get_mapping_rule.js</caption>
371
+ * region_tag:datamigration_v1_generated_DataMigrationService_GetMappingRule_async
372
+ */
373
+ getMappingRule(request?: protos.google.cloud.clouddms.v1.IGetMappingRuleRequest, options?: CallOptions): Promise<[
374
+ protos.google.cloud.clouddms.v1.IMappingRule,
375
+ protos.google.cloud.clouddms.v1.IGetMappingRuleRequest | undefined,
376
+ {} | undefined
377
+ ]>;
378
+ getMappingRule(request: protos.google.cloud.clouddms.v1.IGetMappingRuleRequest, options: CallOptions, callback: Callback<protos.google.cloud.clouddms.v1.IMappingRule, protos.google.cloud.clouddms.v1.IGetMappingRuleRequest | null | undefined, {} | null | undefined>): void;
379
+ getMappingRule(request: protos.google.cloud.clouddms.v1.IGetMappingRuleRequest, callback: Callback<protos.google.cloud.clouddms.v1.IMappingRule, protos.google.cloud.clouddms.v1.IGetMappingRuleRequest | null | undefined, {} | null | undefined>): void;
237
380
  /**
238
381
  * Searches/lists the background jobs for a specific
239
382
  * conversion workspace.
@@ -315,9 +458,9 @@ export declare class DataMigrationServiceClient {
315
458
  * Required. Represents a [migration
316
459
  * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
317
460
  * object.
318
- * @param {string} request.requestId
319
- * A unique ID used to identify the request. If the server receives two
320
- * requests with the same ID, then the second request is ignored.
461
+ * @param {string} [request.requestId]
462
+ * Optional. A unique ID used to identify the request. If the server receives
463
+ * two requests with the same ID, then the second request is ignored.
321
464
  *
322
465
  * It is recommended to always set this value to a UUID.
323
466
  *
@@ -457,6 +600,9 @@ export declare class DataMigrationServiceClient {
457
600
  * The request object that will be sent.
458
601
  * @param {string} request.name
459
602
  * Name of the migration job resource to start.
603
+ * @param {boolean} [request.skipValidation]
604
+ * Optional. Start the migration job without running prior configuration
605
+ * verification. Defaults to `false`.
460
606
  * @param {object} [options]
461
607
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
462
608
  * @returns {Promise} - The promise which resolves to an array.
@@ -608,6 +754,12 @@ export declare class DataMigrationServiceClient {
608
754
  * The request object that will be sent.
609
755
  * @param {string} request.name
610
756
  * Name of the migration job resource to verify.
757
+ * @param {google.protobuf.FieldMask} [request.updateMask]
758
+ * Optional. Field mask is used to specify the changed fields to be verified.
759
+ * It will not update the migration job.
760
+ * @param {google.cloud.clouddms.v1.MigrationJob} [request.migrationJob]
761
+ * Optional. The changed migration job parameters to verify.
762
+ * It will not update the migration job.
611
763
  * @param {object} [options]
612
764
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
613
765
  * @returns {Promise} - The promise which resolves to an array.
@@ -647,6 +799,9 @@ export declare class DataMigrationServiceClient {
647
799
  * The request object that will be sent.
648
800
  * @param {string} request.name
649
801
  * Name of the migration job resource to restart.
802
+ * @param {boolean} [request.skipValidation]
803
+ * Optional. Restart the migration job without running prior configuration
804
+ * verification. Defaults to `false`.
650
805
  * @param {object} [options]
651
806
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
652
807
  * @returns {Promise} - The promise which resolves to an array.
@@ -1048,6 +1203,9 @@ export declare class DataMigrationServiceClient {
1048
1203
  *
1049
1204
  * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
1050
1205
  * (_), and hyphens (-). The maximum length is 40 characters.
1206
+ * @param {boolean} request.force
1207
+ * Force delete the conversion workspace, even if there's a running migration
1208
+ * that is using the workspace.
1051
1209
  * @param {object} [options]
1052
1210
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1053
1211
  * @returns {Promise} - The promise which resolves to an array.
@@ -1091,10 +1249,11 @@ export declare class DataMigrationServiceClient {
1091
1249
  * @param {boolean} request.autoCommit
1092
1250
  * Should the conversion workspace be committed automatically after the
1093
1251
  * seed operation.
1094
- * @param {string} request.sourceConnectionProfile
1095
- * Fully qualified (Uri) name of the source connection profile.
1096
- * @param {string} request.destinationConnectionProfile
1097
- * Fully qualified (Uri) name of the destination connection profile.
1252
+ * @param {string} [request.sourceConnectionProfile]
1253
+ * Optional. Fully qualified (Uri) name of the source connection profile.
1254
+ * @param {string} [request.destinationConnectionProfile]
1255
+ * Optional. Fully qualified (Uri) name of the destination connection
1256
+ * profile.
1098
1257
  * @param {object} [options]
1099
1258
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1100
1259
  * @returns {Promise} - The promise which resolves to an array.
@@ -1136,12 +1295,12 @@ export declare class DataMigrationServiceClient {
1136
1295
  * in the form of:
1137
1296
  * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
1138
1297
  * @param {google.cloud.clouddms.v1.ImportRulesFileFormat} request.rulesFormat
1139
- * The format of the rules content file.
1298
+ * Required. The format of the rules content file.
1140
1299
  * @param {number[]} request.rulesFiles
1141
- * One or more rules files.
1300
+ * Required. One or more rules files.
1142
1301
  * @param {boolean} request.autoCommit
1143
- * Should the conversion workspace be committed automatically after the
1144
- * import operation.
1302
+ * Required. Should the conversion workspace be committed automatically after
1303
+ * the import operation.
1145
1304
  * @param {object} [options]
1146
1305
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1147
1306
  * @returns {Promise} - The promise which resolves to an array.
@@ -1180,12 +1339,16 @@ export declare class DataMigrationServiceClient {
1180
1339
  * @param {string} request.name
1181
1340
  * Name of the conversion workspace resource to convert in the form of:
1182
1341
  * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
1183
- * @param {boolean} request.autoCommit
1184
- * Specifies whether the conversion workspace is to be committed automatically
1185
- * after the conversion.
1186
- * @param {string} request.filter
1187
- * Filter the entities to convert. Leaving this field empty will convert all
1188
- * of the entities. Supports Google AIP-160 style filtering.
1342
+ * @param {boolean} [request.autoCommit]
1343
+ * Optional. Specifies whether the conversion workspace is to be committed
1344
+ * automatically after the conversion.
1345
+ * @param {string} [request.filter]
1346
+ * Optional. Filter the entities to convert. Leaving this field empty will
1347
+ * convert all of the entities. Supports Google AIP-160 style filtering.
1348
+ * @param {boolean} [request.convertFullPath]
1349
+ * Optional. Automatically convert the full entity path for each entity
1350
+ * specified by the filter. For example, if the filter specifies a table, that
1351
+ * table schema (and database if there is one) will also be converted.
1189
1352
  * @param {object} [options]
1190
1353
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1191
1354
  * @returns {Promise} - The promise which resolves to an array.
@@ -1304,8 +1467,16 @@ export declare class DataMigrationServiceClient {
1304
1467
  * @param {string} request.filter
1305
1468
  * Filter which entities to apply. Leaving this field empty will apply all of
1306
1469
  * the entities. Supports Google AIP 160 based filtering.
1307
- * @param {string} request.connectionProfile
1308
- * Fully qualified (Uri) name of the destination connection profile.
1470
+ * @param {boolean} [request.dryRun]
1471
+ * Optional. Only validates the apply process, but doesn't change the
1472
+ * destination database. Only works for PostgreSQL destination connection
1473
+ * profile.
1474
+ * @param {boolean} [request.autoCommit]
1475
+ * Optional. Specifies whether the conversion workspace is to be committed
1476
+ * automatically after the apply.
1477
+ * @param {string} [request.connectionProfile]
1478
+ * Optional. Fully qualified (Uri) name of the destination connection
1479
+ * profile.
1309
1480
  * @param {object} [options]
1310
1481
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1311
1482
  * @returns {Promise} - The promise which resolves to an array.
@@ -1855,6 +2026,104 @@ export declare class DataMigrationServiceClient {
1855
2026
  * region_tag:datamigration_v1_generated_DataMigrationService_ListConversionWorkspaces_async
1856
2027
  */
1857
2028
  listConversionWorkspacesAsync(request?: protos.google.cloud.clouddms.v1.IListConversionWorkspacesRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.clouddms.v1.IConversionWorkspace>;
2029
+ /**
2030
+ * Lists the mapping rules for a specific conversion workspace.
2031
+ *
2032
+ * @param {Object} request
2033
+ * The request object that will be sent.
2034
+ * @param {string} request.parent
2035
+ * Required. Name of the conversion workspace resource whose mapping rules are
2036
+ * listed in the form of:
2037
+ * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
2038
+ * @param {number} request.pageSize
2039
+ * The maximum number of rules to return. The service may return
2040
+ * fewer than this value.
2041
+ * @param {string} request.pageToken
2042
+ * The nextPageToken value received in the previous call to
2043
+ * mappingRules.list, used in the subsequent request to retrieve the next
2044
+ * page of results. On first call this should be left blank. When paginating,
2045
+ * all other parameters provided to mappingRules.list must match the call
2046
+ * that provided the page token.
2047
+ * @param {object} [options]
2048
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2049
+ * @returns {Promise} - The promise which resolves to an array.
2050
+ * The first element of the array is Array of {@link protos.google.cloud.clouddms.v1.MappingRule|MappingRule}.
2051
+ * The client library will perform auto-pagination by default: it will call the API as many
2052
+ * times as needed and will merge results from all the pages into this array.
2053
+ * Note that it can affect your quota.
2054
+ * We recommend using `listMappingRulesAsync()`
2055
+ * method described below for async iteration which you can stop as needed.
2056
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
2057
+ * for more details and examples.
2058
+ */
2059
+ listMappingRules(request?: protos.google.cloud.clouddms.v1.IListMappingRulesRequest, options?: CallOptions): Promise<[
2060
+ protos.google.cloud.clouddms.v1.IMappingRule[],
2061
+ protos.google.cloud.clouddms.v1.IListMappingRulesRequest | null,
2062
+ protos.google.cloud.clouddms.v1.IListMappingRulesResponse
2063
+ ]>;
2064
+ listMappingRules(request: protos.google.cloud.clouddms.v1.IListMappingRulesRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.clouddms.v1.IListMappingRulesRequest, protos.google.cloud.clouddms.v1.IListMappingRulesResponse | null | undefined, protos.google.cloud.clouddms.v1.IMappingRule>): void;
2065
+ listMappingRules(request: protos.google.cloud.clouddms.v1.IListMappingRulesRequest, callback: PaginationCallback<protos.google.cloud.clouddms.v1.IListMappingRulesRequest, protos.google.cloud.clouddms.v1.IListMappingRulesResponse | null | undefined, protos.google.cloud.clouddms.v1.IMappingRule>): void;
2066
+ /**
2067
+ * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
2068
+ * @param {Object} request
2069
+ * The request object that will be sent.
2070
+ * @param {string} request.parent
2071
+ * Required. Name of the conversion workspace resource whose mapping rules are
2072
+ * listed in the form of:
2073
+ * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
2074
+ * @param {number} request.pageSize
2075
+ * The maximum number of rules to return. The service may return
2076
+ * fewer than this value.
2077
+ * @param {string} request.pageToken
2078
+ * The nextPageToken value received in the previous call to
2079
+ * mappingRules.list, used in the subsequent request to retrieve the next
2080
+ * page of results. On first call this should be left blank. When paginating,
2081
+ * all other parameters provided to mappingRules.list must match the call
2082
+ * that provided the page token.
2083
+ * @param {object} [options]
2084
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2085
+ * @returns {Stream}
2086
+ * An object stream which emits an object representing {@link protos.google.cloud.clouddms.v1.MappingRule|MappingRule} on 'data' event.
2087
+ * The client library will perform auto-pagination by default: it will call the API as many
2088
+ * times as needed. Note that it can affect your quota.
2089
+ * We recommend using `listMappingRulesAsync()`
2090
+ * method described below for async iteration which you can stop as needed.
2091
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
2092
+ * for more details and examples.
2093
+ */
2094
+ listMappingRulesStream(request?: protos.google.cloud.clouddms.v1.IListMappingRulesRequest, options?: CallOptions): Transform;
2095
+ /**
2096
+ * Equivalent to `listMappingRules`, but returns an iterable object.
2097
+ *
2098
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
2099
+ * @param {Object} request
2100
+ * The request object that will be sent.
2101
+ * @param {string} request.parent
2102
+ * Required. Name of the conversion workspace resource whose mapping rules are
2103
+ * listed in the form of:
2104
+ * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
2105
+ * @param {number} request.pageSize
2106
+ * The maximum number of rules to return. The service may return
2107
+ * fewer than this value.
2108
+ * @param {string} request.pageToken
2109
+ * The nextPageToken value received in the previous call to
2110
+ * mappingRules.list, used in the subsequent request to retrieve the next
2111
+ * page of results. On first call this should be left blank. When paginating,
2112
+ * all other parameters provided to mappingRules.list must match the call
2113
+ * that provided the page token.
2114
+ * @param {object} [options]
2115
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2116
+ * @returns {Object}
2117
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
2118
+ * When you iterate the returned iterable, each element will be an object representing
2119
+ * {@link protos.google.cloud.clouddms.v1.MappingRule|MappingRule}. The API will be called under the hood as needed, once per the page,
2120
+ * so you can stop the iteration when you don't need more results.
2121
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
2122
+ * for more details and examples.
2123
+ * @example <caption>include:samples/generated/v1/data_migration_service.list_mapping_rules.js</caption>
2124
+ * region_tag:datamigration_v1_generated_DataMigrationService_ListMappingRules_async
2125
+ */
2126
+ listMappingRulesAsync(request?: protos.google.cloud.clouddms.v1.IListMappingRulesRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.clouddms.v1.IMappingRule>;
1858
2127
  /**
1859
2128
  * Describes the database entities tree for a specific conversion workspace
1860
2129
  * and a specific tree type.
@@ -1869,26 +2138,29 @@ export declare class DataMigrationServiceClient {
1869
2138
  * Required. Name of the conversion workspace resource whose database entities
1870
2139
  * are described. Must be in the form of:
1871
2140
  * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
1872
- * @param {number} request.pageSize
1873
- * The maximum number of entities to return. The service may return
2141
+ * @param {number} [request.pageSize]
2142
+ * Optional. The maximum number of entities to return. The service may return
1874
2143
  * fewer entities than the value specifies.
1875
- * @param {string} request.pageToken
1876
- * The nextPageToken value received in the previous call to
2144
+ * @param {string} [request.pageToken]
2145
+ * Optional. The nextPageToken value received in the previous call to
1877
2146
  * conversionWorkspace.describeDatabaseEntities, used in the subsequent
1878
2147
  * request to retrieve the next page of results. On first call this should be
1879
2148
  * left blank. When paginating, all other parameters provided to
1880
2149
  * conversionWorkspace.describeDatabaseEntities must match the call that
1881
2150
  * provided the page token.
1882
2151
  * @param {google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType} request.tree
1883
- * The tree to fetch.
1884
- * @param {boolean} request.uncommitted
1885
- * Whether to retrieve the latest committed version of the entities or the
1886
- * latest version. This field is ignored if a specific commit_id is specified.
1887
- * @param {string} request.commitId
1888
- * Request a specific commit ID. If not specified, the entities from the
1889
- * latest commit are returned.
1890
- * @param {string} request.filter
1891
- * Filter the returned entities based on AIP-160 standard.
2152
+ * Required. The tree to fetch.
2153
+ * @param {boolean} [request.uncommitted]
2154
+ * Optional. Whether to retrieve the latest committed version of the entities
2155
+ * or the latest version. This field is ignored if a specific commit_id is
2156
+ * specified.
2157
+ * @param {string} [request.commitId]
2158
+ * Optional. Request a specific commit ID. If not specified, the entities from
2159
+ * the latest commit are returned.
2160
+ * @param {string} [request.filter]
2161
+ * Optional. Filter the returned entities based on AIP-160 standard.
2162
+ * @param {google.cloud.clouddms.v1.DatabaseEntityView} [request.view]
2163
+ * Optional. Results view based on AIP-157
1892
2164
  * @param {object} [options]
1893
2165
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1894
2166
  * @returns {Promise} - The promise which resolves to an array.
@@ -1916,26 +2188,29 @@ export declare class DataMigrationServiceClient {
1916
2188
  * Required. Name of the conversion workspace resource whose database entities
1917
2189
  * are described. Must be in the form of:
1918
2190
  * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
1919
- * @param {number} request.pageSize
1920
- * The maximum number of entities to return. The service may return
2191
+ * @param {number} [request.pageSize]
2192
+ * Optional. The maximum number of entities to return. The service may return
1921
2193
  * fewer entities than the value specifies.
1922
- * @param {string} request.pageToken
1923
- * The nextPageToken value received in the previous call to
2194
+ * @param {string} [request.pageToken]
2195
+ * Optional. The nextPageToken value received in the previous call to
1924
2196
  * conversionWorkspace.describeDatabaseEntities, used in the subsequent
1925
2197
  * request to retrieve the next page of results. On first call this should be
1926
2198
  * left blank. When paginating, all other parameters provided to
1927
2199
  * conversionWorkspace.describeDatabaseEntities must match the call that
1928
2200
  * provided the page token.
1929
2201
  * @param {google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType} request.tree
1930
- * The tree to fetch.
1931
- * @param {boolean} request.uncommitted
1932
- * Whether to retrieve the latest committed version of the entities or the
1933
- * latest version. This field is ignored if a specific commit_id is specified.
1934
- * @param {string} request.commitId
1935
- * Request a specific commit ID. If not specified, the entities from the
1936
- * latest commit are returned.
1937
- * @param {string} request.filter
1938
- * Filter the returned entities based on AIP-160 standard.
2202
+ * Required. The tree to fetch.
2203
+ * @param {boolean} [request.uncommitted]
2204
+ * Optional. Whether to retrieve the latest committed version of the entities
2205
+ * or the latest version. This field is ignored if a specific commit_id is
2206
+ * specified.
2207
+ * @param {string} [request.commitId]
2208
+ * Optional. Request a specific commit ID. If not specified, the entities from
2209
+ * the latest commit are returned.
2210
+ * @param {string} [request.filter]
2211
+ * Optional. Filter the returned entities based on AIP-160 standard.
2212
+ * @param {google.cloud.clouddms.v1.DatabaseEntityView} [request.view]
2213
+ * Optional. Results view based on AIP-157
1939
2214
  * @param {object} [options]
1940
2215
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1941
2216
  * @returns {Stream}
@@ -1958,26 +2233,29 @@ export declare class DataMigrationServiceClient {
1958
2233
  * Required. Name of the conversion workspace resource whose database entities
1959
2234
  * are described. Must be in the form of:
1960
2235
  * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
1961
- * @param {number} request.pageSize
1962
- * The maximum number of entities to return. The service may return
2236
+ * @param {number} [request.pageSize]
2237
+ * Optional. The maximum number of entities to return. The service may return
1963
2238
  * fewer entities than the value specifies.
1964
- * @param {string} request.pageToken
1965
- * The nextPageToken value received in the previous call to
2239
+ * @param {string} [request.pageToken]
2240
+ * Optional. The nextPageToken value received in the previous call to
1966
2241
  * conversionWorkspace.describeDatabaseEntities, used in the subsequent
1967
2242
  * request to retrieve the next page of results. On first call this should be
1968
2243
  * left blank. When paginating, all other parameters provided to
1969
2244
  * conversionWorkspace.describeDatabaseEntities must match the call that
1970
2245
  * provided the page token.
1971
2246
  * @param {google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType} request.tree
1972
- * The tree to fetch.
1973
- * @param {boolean} request.uncommitted
1974
- * Whether to retrieve the latest committed version of the entities or the
1975
- * latest version. This field is ignored if a specific commit_id is specified.
1976
- * @param {string} request.commitId
1977
- * Request a specific commit ID. If not specified, the entities from the
1978
- * latest commit are returned.
1979
- * @param {string} request.filter
1980
- * Filter the returned entities based on AIP-160 standard.
2247
+ * Required. The tree to fetch.
2248
+ * @param {boolean} [request.uncommitted]
2249
+ * Optional. Whether to retrieve the latest committed version of the entities
2250
+ * or the latest version. This field is ignored if a specific commit_id is
2251
+ * specified.
2252
+ * @param {string} [request.commitId]
2253
+ * Optional. Request a specific commit ID. If not specified, the entities from
2254
+ * the latest commit are returned.
2255
+ * @param {string} [request.filter]
2256
+ * Optional. Filter the returned entities based on AIP-160 standard.
2257
+ * @param {google.cloud.clouddms.v1.DatabaseEntityView} [request.view]
2258
+ * Optional. Results view based on AIP-157
1981
2259
  * @param {object} [options]
1982
2260
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1983
2261
  * @returns {Object}
@@ -2420,6 +2698,48 @@ export declare class DataMigrationServiceClient {
2420
2698
  * @returns {string} A string representing the location.
2421
2699
  */
2422
2700
  matchLocationFromLocationName(locationName: string): string | number;
2701
+ /**
2702
+ * Return a fully-qualified mappingRule resource name string.
2703
+ *
2704
+ * @param {string} project
2705
+ * @param {string} location
2706
+ * @param {string} conversion_workspace
2707
+ * @param {string} mapping_rule
2708
+ * @returns {string} Resource name string.
2709
+ */
2710
+ mappingRulePath(project: string, location: string, conversionWorkspace: string, mappingRule: string): string;
2711
+ /**
2712
+ * Parse the project from MappingRule resource.
2713
+ *
2714
+ * @param {string} mappingRuleName
2715
+ * A fully-qualified path representing MappingRule resource.
2716
+ * @returns {string} A string representing the project.
2717
+ */
2718
+ matchProjectFromMappingRuleName(mappingRuleName: string): string | number;
2719
+ /**
2720
+ * Parse the location from MappingRule resource.
2721
+ *
2722
+ * @param {string} mappingRuleName
2723
+ * A fully-qualified path representing MappingRule resource.
2724
+ * @returns {string} A string representing the location.
2725
+ */
2726
+ matchLocationFromMappingRuleName(mappingRuleName: string): string | number;
2727
+ /**
2728
+ * Parse the conversion_workspace from MappingRule resource.
2729
+ *
2730
+ * @param {string} mappingRuleName
2731
+ * A fully-qualified path representing MappingRule resource.
2732
+ * @returns {string} A string representing the conversion_workspace.
2733
+ */
2734
+ matchConversionWorkspaceFromMappingRuleName(mappingRuleName: string): string | number;
2735
+ /**
2736
+ * Parse the mapping_rule from MappingRule resource.
2737
+ *
2738
+ * @param {string} mappingRuleName
2739
+ * A fully-qualified path representing MappingRule resource.
2740
+ * @returns {string} A string representing the mapping_rule.
2741
+ */
2742
+ matchMappingRuleFromMappingRuleName(mappingRuleName: string): string | number;
2423
2743
  /**
2424
2744
  * Return a fully-qualified migrationJob resource name string.
2425
2745
  *