@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.
@@ -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 || {};
@@ -1998,6 +2088,116 @@ class DataMigrationServiceClient {
1998
2088
  this.initialize();
1999
2089
  return this.descriptors.page.listConversionWorkspaces.asyncIterate(this.innerApiCalls['listConversionWorkspaces'], request, callSettings);
2000
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
+ }
2001
2201
  describeDatabaseEntities(request, optionsOrCallback, callback) {
2002
2202
  var _a;
2003
2203
  request = request || {};
@@ -2027,26 +2227,29 @@ class DataMigrationServiceClient {
2027
2227
  * Required. Name of the conversion workspace resource whose database entities
2028
2228
  * are described. Must be in the form of:
2029
2229
  * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
2030
- * @param {number} request.pageSize
2031
- * 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
2032
2232
  * fewer entities than the value specifies.
2033
- * @param {string} request.pageToken
2034
- * 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
2035
2235
  * conversionWorkspace.describeDatabaseEntities, used in the subsequent
2036
2236
  * request to retrieve the next page of results. On first call this should be
2037
2237
  * left blank. When paginating, all other parameters provided to
2038
2238
  * conversionWorkspace.describeDatabaseEntities must match the call that
2039
2239
  * provided the page token.
2040
2240
  * @param {google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType} request.tree
2041
- * The tree to fetch.
2042
- * @param {boolean} request.uncommitted
2043
- * Whether to retrieve the latest committed version of the entities or the
2044
- * latest version. This field is ignored if a specific commit_id is specified.
2045
- * @param {string} request.commitId
2046
- * Request a specific commit ID. If not specified, the entities from the
2047
- * latest commit are returned.
2048
- * @param {string} request.filter
2049
- * Filter the returned entities based on AIP-160 standard.
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
2050
2253
  * @param {object} [options]
2051
2254
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2052
2255
  * @returns {Stream}
@@ -2083,26 +2286,29 @@ class DataMigrationServiceClient {
2083
2286
  * Required. Name of the conversion workspace resource whose database entities
2084
2287
  * are described. Must be in the form of:
2085
2288
  * projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
2086
- * @param {number} request.pageSize
2087
- * 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
2088
2291
  * fewer entities than the value specifies.
2089
- * @param {string} request.pageToken
2090
- * 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
2091
2294
  * conversionWorkspace.describeDatabaseEntities, used in the subsequent
2092
2295
  * request to retrieve the next page of results. On first call this should be
2093
2296
  * left blank. When paginating, all other parameters provided to
2094
2297
  * conversionWorkspace.describeDatabaseEntities must match the call that
2095
2298
  * provided the page token.
2096
2299
  * @param {google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType} request.tree
2097
- * The tree to fetch.
2098
- * @param {boolean} request.uncommitted
2099
- * Whether to retrieve the latest committed version of the entities or the
2100
- * latest version. This field is ignored if a specific commit_id is specified.
2101
- * @param {string} request.commitId
2102
- * Request a specific commit ID. If not specified, the entities from the
2103
- * latest commit are returned.
2104
- * @param {string} request.filter
2105
- * 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
2106
2312
  * @param {object} [options]
2107
2313
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2108
2314
  * @returns {Object}
@@ -2630,6 +2836,67 @@ class DataMigrationServiceClient {
2630
2836
  matchLocationFromLocationName(locationName) {
2631
2837
  return this.pathTemplates.locationPathTemplate.match(locationName).location;
2632
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
+ }
2633
2900
  /**
2634
2901
  * Return a fully-qualified migrationJob resource name string.
2635
2902
  *
@@ -6,6 +6,9 @@
6
6
  "idempotent": [
7
7
  "DEADLINE_EXCEEDED",
8
8
  "UNAVAILABLE"
9
+ ],
10
+ "unavailable": [
11
+ "UNAVAILABLE"
9
12
  ]
10
13
  },
11
14
  "retry_params": {
@@ -17,6 +20,15 @@
17
20
  "rpc_timeout_multiplier": 1,
18
21
  "max_rpc_timeout_millis": 60000,
19
22
  "total_timeout_millis": 600000
23
+ },
24
+ "ce5b960a6ed052e690863808e4f0deff3dc7d49f": {
25
+ "initial_retry_delay_millis": 1000,
26
+ "retry_delay_multiplier": 1.3,
27
+ "max_retry_delay_millis": 10000,
28
+ "initial_rpc_timeout_millis": 60000,
29
+ "rpc_timeout_multiplier": 1,
30
+ "max_rpc_timeout_millis": 60000,
31
+ "total_timeout_millis": 600000
20
32
  }
21
33
  },
22
34
  "methods": {
@@ -80,6 +92,11 @@
80
92
  "retry_codes_name": "non_idempotent",
81
93
  "retry_params_name": "default"
82
94
  },
95
+ "GenerateTcpProxyScript": {
96
+ "timeout_millis": 60000,
97
+ "retry_codes_name": "unavailable",
98
+ "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
99
+ },
83
100
  "ListConnectionProfiles": {
84
101
  "timeout_millis": 60000,
85
102
  "retry_codes_name": "non_idempotent",
@@ -150,6 +167,26 @@
150
167
  "retry_codes_name": "non_idempotent",
151
168
  "retry_params_name": "default"
152
169
  },
170
+ "CreateMappingRule": {
171
+ "timeout_millis": 60000,
172
+ "retry_codes_name": "unavailable",
173
+ "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
174
+ },
175
+ "DeleteMappingRule": {
176
+ "timeout_millis": 60000,
177
+ "retry_codes_name": "unavailable",
178
+ "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
179
+ },
180
+ "ListMappingRules": {
181
+ "timeout_millis": 60000,
182
+ "retry_codes_name": "unavailable",
183
+ "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
184
+ },
185
+ "GetMappingRule": {
186
+ "timeout_millis": 60000,
187
+ "retry_codes_name": "unavailable",
188
+ "retry_params_name": "ce5b960a6ed052e690863808e4f0deff3dc7d49f"
189
+ },
153
190
  "SeedConversionWorkspace": {
154
191
  "timeout_millis": 60000,
155
192
  "retry_codes_name": "non_idempotent",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@google-cloud/dms",
3
3
  "description": "Cloud Database Migration API client for Node.js",
4
- "version": "3.0.0",
4
+ "version": "3.1.0",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Google LLC",
7
7
  "engines": {
@@ -57,8 +57,8 @@
57
57
  "gapic-tools": "^0.1.8",
58
58
  "gts": "^5.0.0",
59
59
  "jsdoc": "^4.0.0",
60
- "jsdoc-fresh": "^2.0.0",
61
- "jsdoc-region-tag": "^2.0.0",
60
+ "jsdoc-fresh": "^3.0.0",
61
+ "jsdoc-region-tag": "^3.0.0",
62
62
  "linkinator": "4.1.2",
63
63
  "long": "^5.2.3",
64
64
  "mocha": "^9.2.2",