@google-cloud/dms 3.0.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.
@@ -59,8 +59,7 @@ export declare class DataMigrationServiceClient {
59
59
  * API remote host.
60
60
  * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
61
61
  * 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.
62
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
64
63
  * For more information, please check the
65
64
  * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
66
65
  * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
@@ -68,7 +67,7 @@ export declare class DataMigrationServiceClient {
68
67
  * HTTP implementation. Load only fallback version and pass it to the constructor:
69
68
  * ```
70
69
  * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
71
- * const client = new DataMigrationServiceClient({fallback: 'rest'}, gax);
70
+ * const client = new DataMigrationServiceClient({fallback: true}, gax);
72
71
  * ```
73
72
  */
74
73
  constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);
@@ -165,6 +164,44 @@ export declare class DataMigrationServiceClient {
165
164
  ]>;
166
165
  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
166
  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;
167
+ /**
168
+ * Generate a TCP Proxy configuration script to configure a cloud-hosted VM
169
+ * running a TCP Proxy.
170
+ *
171
+ * @param {Object} request
172
+ * The request object that will be sent.
173
+ * @param {string} request.migrationJob
174
+ * Name of the migration job resource to generate the TCP Proxy script.
175
+ * @param {string} request.vmName
176
+ * Required. The name of the Compute instance that will host the proxy.
177
+ * @param {string} request.vmMachineType
178
+ * Required. The type of the Compute instance that will host the proxy.
179
+ * @param {string} [request.vmZone]
180
+ * Optional. The Google Cloud Platform zone to create the VM in. The fully
181
+ * qualified name of the zone must be specified, including the region name,
182
+ * for example "us-central1-b". If not specified, uses the "-b" zone of the
183
+ * destination Connection Profile's region.
184
+ * @param {string} request.vmSubnet
185
+ * Required. The name of the subnet the Compute instance will use for private
186
+ * connectivity. Must be supplied in the form of
187
+ * projects/{project}/regions/{region}/subnetworks/{subnetwork}.
188
+ * Note: the region for the subnet must match the Compute instance region.
189
+ * @param {object} [options]
190
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
191
+ * @returns {Promise} - The promise which resolves to an array.
192
+ * The first element of the array is an object representing {@link protos.google.cloud.clouddms.v1.TcpProxyScript|TcpProxyScript}.
193
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
194
+ * for more details and examples.
195
+ * @example <caption>include:samples/generated/v1/data_migration_service.generate_tcp_proxy_script.js</caption>
196
+ * region_tag:datamigration_v1_generated_DataMigrationService_GenerateTcpProxyScript_async
197
+ */
198
+ generateTcpProxyScript(request?: protos.google.cloud.clouddms.v1.IGenerateTcpProxyScriptRequest, options?: CallOptions): Promise<[
199
+ protos.google.cloud.clouddms.v1.ITcpProxyScript,
200
+ (protos.google.cloud.clouddms.v1.IGenerateTcpProxyScriptRequest | undefined),
201
+ {} | undefined
202
+ ]>;
203
+ 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;
204
+ 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
205
  /**
169
206
  * Gets details of a single connection profile.
170
207
  *
@@ -234,6 +271,103 @@ export declare class DataMigrationServiceClient {
234
271
  ]>;
235
272
  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
273
  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;
274
+ /**
275
+ * Creates a new mapping rule for a given conversion workspace.
276
+ *
277
+ * @param {Object} request
278
+ * The request object that will be sent.
279
+ * @param {string} request.parent
280
+ * Required. The parent which owns this collection of mapping rules.
281
+ * @param {string} request.mappingRuleId
282
+ * Required. The ID of the rule to create.
283
+ * @param {google.cloud.clouddms.v1.MappingRule} request.mappingRule
284
+ * Required. Represents a [mapping rule]
285
+ * (https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.mappingRules)
286
+ * object.
287
+ * @param {string} request.requestId
288
+ * A unique ID used to identify the request. If the server receives two
289
+ * requests with the same ID, then the second request is ignored.
290
+ *
291
+ * It is recommended to always set this value to a UUID.
292
+ *
293
+ * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
294
+ * (_), and hyphens (-). The maximum length is 40 characters.
295
+ * @param {object} [options]
296
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
297
+ * @returns {Promise} - The promise which resolves to an array.
298
+ * The first element of the array is an object representing {@link protos.google.cloud.clouddms.v1.MappingRule|MappingRule}.
299
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
300
+ * for more details and examples.
301
+ * @example <caption>include:samples/generated/v1/data_migration_service.create_mapping_rule.js</caption>
302
+ * region_tag:datamigration_v1_generated_DataMigrationService_CreateMappingRule_async
303
+ */
304
+ createMappingRule(request?: protos.google.cloud.clouddms.v1.ICreateMappingRuleRequest, options?: CallOptions): Promise<[
305
+ protos.google.cloud.clouddms.v1.IMappingRule,
306
+ protos.google.cloud.clouddms.v1.ICreateMappingRuleRequest | undefined,
307
+ {} | undefined
308
+ ]>;
309
+ 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;
310
+ 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;
311
+ /**
312
+ * Deletes a single mapping rule.
313
+ *
314
+ * @param {Object} request
315
+ * The request object that will be sent.
316
+ * @param {string} request.name
317
+ * Required. Name of the mapping rule resource to delete.
318
+ * @param {string} [request.requestId]
319
+ * Optional. A unique ID used to identify the request. If the server receives
320
+ * two requests with the same ID, then the second request is ignored.
321
+ *
322
+ * It is recommended to always set this value to a UUID.
323
+ *
324
+ * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
325
+ * (_), and hyphens (-). The maximum length is 40 characters.
326
+ * @param {object} [options]
327
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
328
+ * @returns {Promise} - The promise which resolves to an array.
329
+ * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}.
330
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
331
+ * for more details and examples.
332
+ * @example <caption>include:samples/generated/v1/data_migration_service.delete_mapping_rule.js</caption>
333
+ * region_tag:datamigration_v1_generated_DataMigrationService_DeleteMappingRule_async
334
+ */
335
+ deleteMappingRule(request?: protos.google.cloud.clouddms.v1.IDeleteMappingRuleRequest, options?: CallOptions): Promise<[
336
+ protos.google.protobuf.IEmpty,
337
+ protos.google.cloud.clouddms.v1.IDeleteMappingRuleRequest | undefined,
338
+ {} | undefined
339
+ ]>;
340
+ 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;
341
+ 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;
342
+ /**
343
+ * Gets the details of a mapping rule.
344
+ *
345
+ * @param {Object} request
346
+ * The request object that will be sent.
347
+ * @param {string} request.name
348
+ * Required. Name of the mapping rule resource to get.
349
+ * Example: conversionWorkspaces/123/mappingRules/rule123
350
+ *
351
+ * In order to retrieve a previous revision of the mapping rule, also provide
352
+ * the revision ID.
353
+ * Example:
354
+ * conversionWorkspace/123/mappingRules/rule123@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8
355
+ * @param {object} [options]
356
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
357
+ * @returns {Promise} - The promise which resolves to an array.
358
+ * The first element of the array is an object representing {@link protos.google.cloud.clouddms.v1.MappingRule|MappingRule}.
359
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
360
+ * for more details and examples.
361
+ * @example <caption>include:samples/generated/v1/data_migration_service.get_mapping_rule.js</caption>
362
+ * region_tag:datamigration_v1_generated_DataMigrationService_GetMappingRule_async
363
+ */
364
+ getMappingRule(request?: protos.google.cloud.clouddms.v1.IGetMappingRuleRequest, options?: CallOptions): Promise<[
365
+ protos.google.cloud.clouddms.v1.IMappingRule,
366
+ protos.google.cloud.clouddms.v1.IGetMappingRuleRequest | undefined,
367
+ {} | undefined
368
+ ]>;
369
+ 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;
370
+ 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
371
  /**
238
372
  * Searches/lists the background jobs for a specific
239
373
  * conversion workspace.
@@ -315,9 +449,9 @@ export declare class DataMigrationServiceClient {
315
449
  * Required. Represents a [migration
316
450
  * job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
317
451
  * 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.
452
+ * @param {string} [request.requestId]
453
+ * Optional. A unique ID used to identify the request. If the server receives
454
+ * two requests with the same ID, then the second request is ignored.
321
455
  *
322
456
  * It is recommended to always set this value to a UUID.
323
457
  *
@@ -457,6 +591,9 @@ export declare class DataMigrationServiceClient {
457
591
  * The request object that will be sent.
458
592
  * @param {string} request.name
459
593
  * Name of the migration job resource to start.
594
+ * @param {boolean} [request.skipValidation]
595
+ * Optional. Start the migration job without running prior configuration
596
+ * verification. Defaults to `false`.
460
597
  * @param {object} [options]
461
598
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
462
599
  * @returns {Promise} - The promise which resolves to an array.
@@ -608,6 +745,12 @@ export declare class DataMigrationServiceClient {
608
745
  * The request object that will be sent.
609
746
  * @param {string} request.name
610
747
  * Name of the migration job resource to verify.
748
+ * @param {google.protobuf.FieldMask} [request.updateMask]
749
+ * Optional. Field mask is used to specify the changed fields to be verified.
750
+ * It will not update the migration job.
751
+ * @param {google.cloud.clouddms.v1.MigrationJob} [request.migrationJob]
752
+ * Optional. The changed migration job parameters to verify.
753
+ * It will not update the migration job.
611
754
  * @param {object} [options]
612
755
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
613
756
  * @returns {Promise} - The promise which resolves to an array.
@@ -647,6 +790,9 @@ export declare class DataMigrationServiceClient {
647
790
  * The request object that will be sent.
648
791
  * @param {string} request.name
649
792
  * Name of the migration job resource to restart.
793
+ * @param {boolean} [request.skipValidation]
794
+ * Optional. Restart the migration job without running prior configuration
795
+ * verification. Defaults to `false`.
650
796
  * @param {object} [options]
651
797
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
652
798
  * @returns {Promise} - The promise which resolves to an array.
@@ -1048,6 +1194,9 @@ export declare class DataMigrationServiceClient {
1048
1194
  *
1049
1195
  * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
1050
1196
  * (_), and hyphens (-). The maximum length is 40 characters.
1197
+ * @param {boolean} request.force
1198
+ * Force delete the conversion workspace, even if there's a running migration
1199
+ * that is using the workspace.
1051
1200
  * @param {object} [options]
1052
1201
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1053
1202
  * @returns {Promise} - The promise which resolves to an array.
@@ -1091,10 +1240,11 @@ export declare class DataMigrationServiceClient {
1091
1240
  * @param {boolean} request.autoCommit
1092
1241
  * Should the conversion workspace be committed automatically after the
1093
1242
  * 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.
1243
+ * @param {string} [request.sourceConnectionProfile]
1244
+ * Optional. Fully qualified (Uri) name of the source connection profile.
1245
+ * @param {string} [request.destinationConnectionProfile]
1246
+ * Optional. Fully qualified (Uri) name of the destination connection
1247
+ * profile.
1098
1248
  * @param {object} [options]
1099
1249
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1100
1250
  * @returns {Promise} - The promise which resolves to an array.
@@ -1136,12 +1286,12 @@ export declare class DataMigrationServiceClient {
1136
1286
  * in the form of:
1137
1287
  * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
1138
1288
  * @param {google.cloud.clouddms.v1.ImportRulesFileFormat} request.rulesFormat
1139
- * The format of the rules content file.
1289
+ * Required. The format of the rules content file.
1140
1290
  * @param {number[]} request.rulesFiles
1141
- * One or more rules files.
1291
+ * Required. One or more rules files.
1142
1292
  * @param {boolean} request.autoCommit
1143
- * Should the conversion workspace be committed automatically after the
1144
- * import operation.
1293
+ * Required. Should the conversion workspace be committed automatically after
1294
+ * the import operation.
1145
1295
  * @param {object} [options]
1146
1296
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1147
1297
  * @returns {Promise} - The promise which resolves to an array.
@@ -1180,12 +1330,16 @@ export declare class DataMigrationServiceClient {
1180
1330
  * @param {string} request.name
1181
1331
  * Name of the conversion workspace resource to convert in the form of:
1182
1332
  * 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.
1333
+ * @param {boolean} [request.autoCommit]
1334
+ * Optional. Specifies whether the conversion workspace is to be committed
1335
+ * automatically after the conversion.
1336
+ * @param {string} [request.filter]
1337
+ * Optional. Filter the entities to convert. Leaving this field empty will
1338
+ * convert all of the entities. Supports Google AIP-160 style filtering.
1339
+ * @param {boolean} [request.convertFullPath]
1340
+ * Optional. Automatically convert the full entity path for each entity
1341
+ * specified by the filter. For example, if the filter specifies a table, that
1342
+ * table schema (and database if there is one) will also be converted.
1189
1343
  * @param {object} [options]
1190
1344
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1191
1345
  * @returns {Promise} - The promise which resolves to an array.
@@ -1304,8 +1458,16 @@ export declare class DataMigrationServiceClient {
1304
1458
  * @param {string} request.filter
1305
1459
  * Filter which entities to apply. Leaving this field empty will apply all of
1306
1460
  * the entities. Supports Google AIP 160 based filtering.
1307
- * @param {string} request.connectionProfile
1308
- * Fully qualified (Uri) name of the destination connection profile.
1461
+ * @param {boolean} [request.dryRun]
1462
+ * Optional. Only validates the apply process, but doesn't change the
1463
+ * destination database. Only works for PostgreSQL destination connection
1464
+ * profile.
1465
+ * @param {boolean} [request.autoCommit]
1466
+ * Optional. Specifies whether the conversion workspace is to be committed
1467
+ * automatically after the apply.
1468
+ * @param {string} [request.connectionProfile]
1469
+ * Optional. Fully qualified (Uri) name of the destination connection
1470
+ * profile.
1309
1471
  * @param {object} [options]
1310
1472
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1311
1473
  * @returns {Promise} - The promise which resolves to an array.
@@ -1855,6 +2017,104 @@ export declare class DataMigrationServiceClient {
1855
2017
  * region_tag:datamigration_v1_generated_DataMigrationService_ListConversionWorkspaces_async
1856
2018
  */
1857
2019
  listConversionWorkspacesAsync(request?: protos.google.cloud.clouddms.v1.IListConversionWorkspacesRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.clouddms.v1.IConversionWorkspace>;
2020
+ /**
2021
+ * Lists the mapping rules for a specific conversion workspace.
2022
+ *
2023
+ * @param {Object} request
2024
+ * The request object that will be sent.
2025
+ * @param {string} request.parent
2026
+ * Required. Name of the conversion workspace resource whose mapping rules are
2027
+ * listed in the form of:
2028
+ * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
2029
+ * @param {number} request.pageSize
2030
+ * The maximum number of rules to return. The service may return
2031
+ * fewer than this value.
2032
+ * @param {string} request.pageToken
2033
+ * The nextPageToken value received in the previous call to
2034
+ * mappingRules.list, used in the subsequent request to retrieve the next
2035
+ * page of results. On first call this should be left blank. When paginating,
2036
+ * all other parameters provided to mappingRules.list must match the call
2037
+ * that provided the page token.
2038
+ * @param {object} [options]
2039
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2040
+ * @returns {Promise} - The promise which resolves to an array.
2041
+ * The first element of the array is Array of {@link protos.google.cloud.clouddms.v1.MappingRule|MappingRule}.
2042
+ * The client library will perform auto-pagination by default: it will call the API as many
2043
+ * times as needed and will merge results from all the pages into this array.
2044
+ * Note that it can affect your quota.
2045
+ * We recommend using `listMappingRulesAsync()`
2046
+ * method described below for async iteration which you can stop as needed.
2047
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
2048
+ * for more details and examples.
2049
+ */
2050
+ listMappingRules(request?: protos.google.cloud.clouddms.v1.IListMappingRulesRequest, options?: CallOptions): Promise<[
2051
+ protos.google.cloud.clouddms.v1.IMappingRule[],
2052
+ protos.google.cloud.clouddms.v1.IListMappingRulesRequest | null,
2053
+ protos.google.cloud.clouddms.v1.IListMappingRulesResponse
2054
+ ]>;
2055
+ 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;
2056
+ 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;
2057
+ /**
2058
+ * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
2059
+ * @param {Object} request
2060
+ * The request object that will be sent.
2061
+ * @param {string} request.parent
2062
+ * Required. Name of the conversion workspace resource whose mapping rules are
2063
+ * listed in the form of:
2064
+ * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
2065
+ * @param {number} request.pageSize
2066
+ * The maximum number of rules to return. The service may return
2067
+ * fewer than this value.
2068
+ * @param {string} request.pageToken
2069
+ * The nextPageToken value received in the previous call to
2070
+ * mappingRules.list, used in the subsequent request to retrieve the next
2071
+ * page of results. On first call this should be left blank. When paginating,
2072
+ * all other parameters provided to mappingRules.list must match the call
2073
+ * that provided the page token.
2074
+ * @param {object} [options]
2075
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2076
+ * @returns {Stream}
2077
+ * An object stream which emits an object representing {@link protos.google.cloud.clouddms.v1.MappingRule|MappingRule} on 'data' event.
2078
+ * The client library will perform auto-pagination by default: it will call the API as many
2079
+ * times as needed. Note that it can affect your quota.
2080
+ * We recommend using `listMappingRulesAsync()`
2081
+ * method described below for async iteration which you can stop as needed.
2082
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
2083
+ * for more details and examples.
2084
+ */
2085
+ listMappingRulesStream(request?: protos.google.cloud.clouddms.v1.IListMappingRulesRequest, options?: CallOptions): Transform;
2086
+ /**
2087
+ * Equivalent to `listMappingRules`, but returns an iterable object.
2088
+ *
2089
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
2090
+ * @param {Object} request
2091
+ * The request object that will be sent.
2092
+ * @param {string} request.parent
2093
+ * Required. Name of the conversion workspace resource whose mapping rules are
2094
+ * listed in the form of:
2095
+ * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
2096
+ * @param {number} request.pageSize
2097
+ * The maximum number of rules to return. The service may return
2098
+ * fewer than this value.
2099
+ * @param {string} request.pageToken
2100
+ * The nextPageToken value received in the previous call to
2101
+ * mappingRules.list, used in the subsequent request to retrieve the next
2102
+ * page of results. On first call this should be left blank. When paginating,
2103
+ * all other parameters provided to mappingRules.list must match the call
2104
+ * that provided the page token.
2105
+ * @param {object} [options]
2106
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2107
+ * @returns {Object}
2108
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
2109
+ * When you iterate the returned iterable, each element will be an object representing
2110
+ * {@link protos.google.cloud.clouddms.v1.MappingRule|MappingRule}. The API will be called under the hood as needed, once per the page,
2111
+ * so you can stop the iteration when you don't need more results.
2112
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
2113
+ * for more details and examples.
2114
+ * @example <caption>include:samples/generated/v1/data_migration_service.list_mapping_rules.js</caption>
2115
+ * region_tag:datamigration_v1_generated_DataMigrationService_ListMappingRules_async
2116
+ */
2117
+ listMappingRulesAsync(request?: protos.google.cloud.clouddms.v1.IListMappingRulesRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.clouddms.v1.IMappingRule>;
1858
2118
  /**
1859
2119
  * Describes the database entities tree for a specific conversion workspace
1860
2120
  * and a specific tree type.
@@ -1869,26 +2129,29 @@ export declare class DataMigrationServiceClient {
1869
2129
  * Required. Name of the conversion workspace resource whose database entities
1870
2130
  * are described. Must be in the form of:
1871
2131
  * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
1872
- * @param {number} request.pageSize
1873
- * The maximum number of entities to return. The service may return
2132
+ * @param {number} [request.pageSize]
2133
+ * Optional. The maximum number of entities to return. The service may return
1874
2134
  * fewer entities than the value specifies.
1875
- * @param {string} request.pageToken
1876
- * The nextPageToken value received in the previous call to
2135
+ * @param {string} [request.pageToken]
2136
+ * Optional. The nextPageToken value received in the previous call to
1877
2137
  * conversionWorkspace.describeDatabaseEntities, used in the subsequent
1878
2138
  * request to retrieve the next page of results. On first call this should be
1879
2139
  * left blank. When paginating, all other parameters provided to
1880
2140
  * conversionWorkspace.describeDatabaseEntities must match the call that
1881
2141
  * provided the page token.
1882
2142
  * @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.
2143
+ * Required. The tree to fetch.
2144
+ * @param {boolean} [request.uncommitted]
2145
+ * Optional. Whether to retrieve the latest committed version of the entities
2146
+ * or the latest version. This field is ignored if a specific commit_id is
2147
+ * specified.
2148
+ * @param {string} [request.commitId]
2149
+ * Optional. Request a specific commit ID. If not specified, the entities from
2150
+ * the latest commit are returned.
2151
+ * @param {string} [request.filter]
2152
+ * Optional. Filter the returned entities based on AIP-160 standard.
2153
+ * @param {google.cloud.clouddms.v1.DatabaseEntityView} [request.view]
2154
+ * Optional. Results view based on AIP-157
1892
2155
  * @param {object} [options]
1893
2156
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1894
2157
  * @returns {Promise} - The promise which resolves to an array.
@@ -1916,26 +2179,29 @@ export declare class DataMigrationServiceClient {
1916
2179
  * Required. Name of the conversion workspace resource whose database entities
1917
2180
  * are described. Must be in the form of:
1918
2181
  * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
1919
- * @param {number} request.pageSize
1920
- * The maximum number of entities to return. The service may return
2182
+ * @param {number} [request.pageSize]
2183
+ * Optional. The maximum number of entities to return. The service may return
1921
2184
  * fewer entities than the value specifies.
1922
- * @param {string} request.pageToken
1923
- * The nextPageToken value received in the previous call to
2185
+ * @param {string} [request.pageToken]
2186
+ * Optional. The nextPageToken value received in the previous call to
1924
2187
  * conversionWorkspace.describeDatabaseEntities, used in the subsequent
1925
2188
  * request to retrieve the next page of results. On first call this should be
1926
2189
  * left blank. When paginating, all other parameters provided to
1927
2190
  * conversionWorkspace.describeDatabaseEntities must match the call that
1928
2191
  * provided the page token.
1929
2192
  * @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.
2193
+ * Required. The tree to fetch.
2194
+ * @param {boolean} [request.uncommitted]
2195
+ * Optional. Whether to retrieve the latest committed version of the entities
2196
+ * or the latest version. This field is ignored if a specific commit_id is
2197
+ * specified.
2198
+ * @param {string} [request.commitId]
2199
+ * Optional. Request a specific commit ID. If not specified, the entities from
2200
+ * the latest commit are returned.
2201
+ * @param {string} [request.filter]
2202
+ * Optional. Filter the returned entities based on AIP-160 standard.
2203
+ * @param {google.cloud.clouddms.v1.DatabaseEntityView} [request.view]
2204
+ * Optional. Results view based on AIP-157
1939
2205
  * @param {object} [options]
1940
2206
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1941
2207
  * @returns {Stream}
@@ -1958,26 +2224,29 @@ export declare class DataMigrationServiceClient {
1958
2224
  * Required. Name of the conversion workspace resource whose database entities
1959
2225
  * are described. Must be in the form of:
1960
2226
  * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
1961
- * @param {number} request.pageSize
1962
- * The maximum number of entities to return. The service may return
2227
+ * @param {number} [request.pageSize]
2228
+ * Optional. The maximum number of entities to return. The service may return
1963
2229
  * fewer entities than the value specifies.
1964
- * @param {string} request.pageToken
1965
- * The nextPageToken value received in the previous call to
2230
+ * @param {string} [request.pageToken]
2231
+ * Optional. The nextPageToken value received in the previous call to
1966
2232
  * conversionWorkspace.describeDatabaseEntities, used in the subsequent
1967
2233
  * request to retrieve the next page of results. On first call this should be
1968
2234
  * left blank. When paginating, all other parameters provided to
1969
2235
  * conversionWorkspace.describeDatabaseEntities must match the call that
1970
2236
  * provided the page token.
1971
2237
  * @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.
2238
+ * Required. The tree to fetch.
2239
+ * @param {boolean} [request.uncommitted]
2240
+ * Optional. Whether to retrieve the latest committed version of the entities
2241
+ * or the latest version. This field is ignored if a specific commit_id is
2242
+ * specified.
2243
+ * @param {string} [request.commitId]
2244
+ * Optional. Request a specific commit ID. If not specified, the entities from
2245
+ * the latest commit are returned.
2246
+ * @param {string} [request.filter]
2247
+ * Optional. Filter the returned entities based on AIP-160 standard.
2248
+ * @param {google.cloud.clouddms.v1.DatabaseEntityView} [request.view]
2249
+ * Optional. Results view based on AIP-157
1981
2250
  * @param {object} [options]
1982
2251
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1983
2252
  * @returns {Object}
@@ -2420,6 +2689,48 @@ export declare class DataMigrationServiceClient {
2420
2689
  * @returns {string} A string representing the location.
2421
2690
  */
2422
2691
  matchLocationFromLocationName(locationName: string): string | number;
2692
+ /**
2693
+ * Return a fully-qualified mappingRule resource name string.
2694
+ *
2695
+ * @param {string} project
2696
+ * @param {string} location
2697
+ * @param {string} conversion_workspace
2698
+ * @param {string} mapping_rule
2699
+ * @returns {string} Resource name string.
2700
+ */
2701
+ mappingRulePath(project: string, location: string, conversionWorkspace: string, mappingRule: string): string;
2702
+ /**
2703
+ * Parse the project from MappingRule resource.
2704
+ *
2705
+ * @param {string} mappingRuleName
2706
+ * A fully-qualified path representing MappingRule resource.
2707
+ * @returns {string} A string representing the project.
2708
+ */
2709
+ matchProjectFromMappingRuleName(mappingRuleName: string): string | number;
2710
+ /**
2711
+ * Parse the location from MappingRule resource.
2712
+ *
2713
+ * @param {string} mappingRuleName
2714
+ * A fully-qualified path representing MappingRule resource.
2715
+ * @returns {string} A string representing the location.
2716
+ */
2717
+ matchLocationFromMappingRuleName(mappingRuleName: string): string | number;
2718
+ /**
2719
+ * Parse the conversion_workspace from MappingRule resource.
2720
+ *
2721
+ * @param {string} mappingRuleName
2722
+ * A fully-qualified path representing MappingRule resource.
2723
+ * @returns {string} A string representing the conversion_workspace.
2724
+ */
2725
+ matchConversionWorkspaceFromMappingRuleName(mappingRuleName: string): string | number;
2726
+ /**
2727
+ * Parse the mapping_rule from MappingRule resource.
2728
+ *
2729
+ * @param {string} mappingRuleName
2730
+ * A fully-qualified path representing MappingRule resource.
2731
+ * @returns {string} A string representing the mapping_rule.
2732
+ */
2733
+ matchMappingRuleFromMappingRuleName(mappingRuleName: string): string | number;
2423
2734
  /**
2424
2735
  * Return a fully-qualified migrationJob resource name string.
2425
2736
  *